.activity-table th:last-child,
.activity-table td:last-child {
  width: 74px;
}

.editing-row {
  background: #f8faff;
}

.editing-row td {
  padding: 9px 8px;
}

.editing-row input,
.editing-row select {
  width: 100%;
  min-width: 78px;
  height: 32px;
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: #fff;
  color: #354054;
  padding: 0 8px;
  outline: none;
  font-size: 10px;
}

.editing-row input:focus,
.editing-row select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(40, 103, 239, .12);
}

.editing-row input[name="exam"] { min-width: 150px; }
.editing-row input[name="score"] { min-width: 58px; }
.edit-person { display: grid; gap: 5px; min-width: 110px; }
.row-actions { display: flex; gap: 7px; }
.row-actions .save { font-weight: 600; }
.row-actions .cancel { color: #7b8696; }
.row-actions button:disabled { opacity: .55; cursor: wait; }

.crud-actions,
.post-actions,
.card-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-btn.danger { color: #dc4c5a; }
.text-btn.danger:hover { color: #b92938; }
.head-actions a.btn { text-decoration: none; }

.inline-field {
  display: inline-block;
  max-width: 220px;
  border: 1px dashed transparent;
  border-radius: 5px;
  padding: 3px 5px;
  margin: -3px -5px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: text;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-field:hover {
  border-color: #9dbaf8;
  background: #eef4ff;
  color: var(--blue);
}

.inline-field.primary { display: block; font-weight: 600; }
.inline-field.secondary { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.inline-field.score { font-weight: 700; }
.inline-field.score.low { color: #dc7f15; }

.inline-editor {
  width: 100%;
  min-width: 90px;
  height: 32px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
  color: #354054;
  outline: none;
  box-shadow: 0 0 0 2px rgba(40, 103, 239, .12);
  font-size: 10px;
}

.card-actions {
  position: absolute;
  right: 10px;
  top: 127px;
  background: rgba(255, 255, 255, .94);
  border-radius: 6px;
  padding: 4px 6px;
}

.card-action-row {
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.modal-body.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-height: 62vh;
  overflow-y: auto;
}

.modal-body.form-grid label { margin: 0; }
.modal-body.form-grid label.full { grid-column: 1 / -1; }
.modal-body.form-grid textarea { min-height: 100px; }

@media (max-width: 760px) {
  .modal { width: calc(100vw - 30px); }
  .modal-body.form-grid { grid-template-columns: 1fr; }
  .modal-body.form-grid label.full { grid-column: auto; }
}
.community-tabs button span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;margin-left:7px;padding:0 6px;border-radius:10px;background:#eef2f8;color:#70809a;font-size:12px}.community-tabs button.active span{background:#e7efff;color:#2e6cf6}.post-foot button{transition:color .18s,background .18s}.post-foot button:hover,.post-foot button.active{color:#2e6cf6;background:#f3f7ff}.post-foot button.liked{color:#ef476f;background:#fff2f5}.comment-section{margin:18px -24px -24px;padding:18px 24px 20px;border-top:1px solid #e8edf5;background:#fafcff;border-radius:0 0 14px 14px}.comment-list{display:grid;gap:15px}.comment{display:flex;gap:11px}.comment .avatar{width:34px;height:34px;flex:0 0 34px;font-size:12px}.comment>div{min-width:0}.comment strong{font-size:14px;color:#183052}.comment p{margin:4px 0;color:#34445f;line-height:1.6;word-break:break-word}.comment small{color:#98a4b8}.comment-empty{padding:8px 0 18px;text-align:center;color:#8996aa}.comment-form{display:flex;align-items:center;gap:10px;margin-top:16px}.comment-form .avatar{width:36px;height:36px;flex:0 0 36px;font-size:12px}.comment-form input{flex:1;min-width:0;height:42px;padding:0 14px;border:1px solid #dce4ef;border-radius:10px;background:#fff;color:#183052;outline:none}.comment-form input:focus{border-color:#2e6cf6;box-shadow:0 0 0 3px rgba(46,108,246,.1)}.comment-form .btn{height:42px;padding:0 18px}.community-empty{padding:54px 24px;text-align:center}.community-empty>i{display:inline-flex;width:52px;height:52px;padding:13px;border-radius:16px;background:#edf3ff;color:#2e6cf6}.community-empty h3{margin:16px 0 7px}.community-empty p{margin:0 0 20px;color:#78869c}
.topic-empty{padding:34px 8px;text-align:center;color:#8996aa;line-height:1.8}.topic-empty small{color:#a8b2c1}.community-side .topic small{white-space:normal;line-height:1.5}
.login-page{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;background:linear-gradient(125deg,#091a36 0,#102d5c 52%,#f4f7fc 52%);align-items:center;padding:7vw}.login-brand{color:#fff;max-width:440px}.login-brand>span{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:#2e6cf6;margin-bottom:26px}.login-brand .icon{width:30px;height:30px}.login-brand strong{display:block;font-size:34px;letter-spacing:2px}.login-brand p{color:#aebed8;font-size:15px}.login-card{justify-self:end;width:min(410px,100%);background:#fff;border:1px solid #e3e8f0;border-radius:18px;padding:38px;box-shadow:0 28px 70px rgba(7,24,54,.18)}.login-card h1{margin:0;font-size:25px}.login-card>div p{margin:9px 0 28px;color:#8390a3;font-size:12px}.login-card label{display:block;margin:17px 0}.login-card label span{display:block;font-size:12px;margin-bottom:8px;color:#4d5b70}.login-card input{width:100%;height:46px;border:1px solid #dce3ed;border-radius:9px;padding:0 13px;outline:none}.login-card input:focus{border-color:#2e6cf6;box-shadow:0 0 0 3px rgba(46,108,246,.1)}.login-card .btn{width:100%;height:46px;margin-top:7px;font-size:14px}.login-card>small{display:block;text-align:center;color:#a2acba;margin-top:18px}.logout-btn{border:0;background:transparent;color:#8191ab;font-size:10px;cursor:pointer;padding:5px}.logout-btn:hover{color:#fff}.admin-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.admin-summary span{padding:14px 16px;background:#f7f9fc;border:1px solid #e8edf4;border-radius:8px;color:#778397;font-size:10px}.admin-summary strong{display:block;margin-top:6px;font-size:20px;color:#183052}.admin-table{margin:18px -24px -21px}.admin-table select{height:30px;border:1px solid #dfe5ee;border-radius:6px;background:#fff;color:#45536a;font-size:10px}.admin-table .switch span{transform:scale(.9);transform-origin:left center}.admin-table .text-btn+.text-btn{margin-left:8px}.self-tag{margin-left:7px;color:#2e6cf6;background:#edf3ff;padding:2px 5px;border-radius:4px}.badge.danger{background:#fff0f1;color:#dc4c58}.ua-cell{max-width:230px;overflow:hidden;text-overflow:ellipsis}.empty-cell{text-align:center!important;padding:38px!important;color:#929dad!important}@media(max-width:760px){.login-page{grid-template-columns:1fr;background:#f3f6fb;padding:20px}.login-brand{display:none}.login-card{justify-self:center}.admin-summary{grid-template-columns:1fr 1fr}}
