.desk-header {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px max(24px,calc((100vw - 1360px)/2));background:white}
.desk-header img {width:49px;height:49px}
.desk-header .brand strong {font-size:18px}
.desk-header .brand {min-width:0}
.desk-header .brand img {flex:none}
.cabinet-owner {min-width:0;max-width:48%;overflow-wrap:anywhere;text-align:right;font-size:14px;line-height:1.35}
.desk-layout {max-width:1408px;margin:auto;display:grid;grid-template-columns:216px minmax(0,1fr);min-height:calc(100vh - 78px)}
.desk-sidebar {display:flex;flex-direction:column;justify-content:space-between;border-right:1px solid var(--line);padding:32px 18px}
.desk-sidebar nav {display:grid;gap:6px}
.desk-sidebar a {text-decoration:none;padding:10px 14px;border-radius:8px;font-size:14px;font-weight:600}
.desk-sidebar a:hover,.quiet:hover {background:#e8eff4}
.quiet.danger {color:#9b2b28}
.desk-sidebar a[aria-current="page"] {background:#e0efee;color:#155d65}
.demo-note {font-size:13px;padding:14px;border:1px solid var(--line);border-radius:10px;margin:35px 0 0}
.demo-note p {margin:4px 0;color:#53677a}
.portal-logout {align-self:flex-start;margin-top:12px}
.portal-signin label {display:grid;gap:5px;margin-bottom:14px}
.portal-signin input,.invitation-url {width:100%;min-height:42px;padding:8px 10px;border:1px solid #aabac9;border-radius:7px}
#login-error {color:#9b2b28}
.demo-note #profile-preview {margin-top:12px}
.muted {color:#53677a}
#workspace {padding:38px clamp(22px,4vw,56px) 60px;min-width:0}
.desk-title {display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.desk-title h1 {font-size:clamp(28px,4vw,41px);margin:3px 0 0}
.desk-title p,.panel p {margin:6px 0 0}
.desk-title .muted {font-size:14px}
.metrics,.columns {display:grid;gap:16px;margin-bottom:22px}
.metrics {grid-template-columns:repeat(3,minmax(0,1fr))}
.columns {grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);align-items:start}
.metric,.panel {border:1px solid var(--line);background:white;border-radius:12px;min-width:0}
.metric {display:block;padding:16px 20px;text-decoration:none}
.metric span {display:block;font-size:13px;color:#53677a}
.metric strong {font-size:29px;line-height:1.3}
.panel {padding:20px;margin-bottom:16px}
.panel h2,.panel h3 {margin:0;line-height:1.3}
.panel h2 {font-size:20px;margin-bottom:12px}
.panel h3 {font-size:16px}
.row {display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;border-top:1px solid #e7edf2}
.row:first-of-type {border-top:0}
.row:last-child {padding-bottom:0}
.row p,.panel .muted {font-size:14px;overflow-wrap:anywhere}
.row-main {min-width:0}
.lesson-time {color:var(--teal);font-weight:700;font-size:13px}
.status {display:inline-block;background:#e6f2f1;color:#155d65;border-radius:6px;font-size:12px;padding:2px 8px}
.status-warning {background:#fff0d8;color:#714405}
.schedule-timezone {font-size:13px}
.actions {display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.primary,.quiet {border:1px solid var(--line);border-radius:8px;padding:8px 13px;min-height:40px;font-size:14px;font-weight:650;background:white;color:var(--navy)}
.primary {background:#154f59;color:white;border-color:#154f59}
.primary:hover {background:#103c45}
.primary:disabled {opacity:.55;cursor:default}
.inline-link {font-size:14px;color:#155d65;font-weight:650}
.student-name {font-size:16px;font-weight:700}
.student-search {width:min(100%,340px);margin:0 0 16px}
dialog {width:min(500px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;border:1px solid var(--line);border-radius:14px;padding:24px;color:var(--navy)}
dialog::backdrop {background:#102e4b75}
dialog h2 {margin:0 0 16px;font-size:23px}
dialog label {display:grid;gap:4px;margin:0 0 13px;font-size:14px;font-weight:650}
dialog input,dialog select,dialog textarea,.student-search {width:100%;min-height:41px;padding:8px 10px;font:inherit;color:var(--navy);background:white;border:1px solid #aabac9;border-radius:7px}
dialog textarea {resize:vertical;min-height:90px}
.field-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.field-pair input,.field-pair select {min-width:0}
.date-hint {font-size:13px;margin:0 0 12px}
.weekdays {display:flex;gap:6px 12px;flex-wrap:wrap;margin:0 0 13px;padding:8px 10px;border:1px solid var(--line);border-radius:8px}
.weekdays legend {font-size:14px;font-weight:650}
.weekdays label {display:flex;align-items:center;gap:4px;margin:0}
.weekdays input {width:16px;min-height:16px;accent-color:#154f59}
.profile-children {flex-direction:column;max-height:160px;overflow:auto}
.schedule-link {display:inline-flex;align-items:center;text-decoration:none}
.pass-lessons {margin-top:12px}
.pass-lessons summary {cursor:pointer;color:#155d65;font-weight:650}
.schedule-tabs {margin-bottom:16px}
.schedule-series summary {cursor:pointer;color:#155d65;font-weight:650}
.schedule-series .row:first-of-type {margin-top:8px}
.schedule-tabs [aria-current="page"] {background:#e0efee;color:#155d65}
.material-picker {border:1px solid var(--line);border-radius:8px;padding:10px;margin:0 0 13px;min-width:0}
.material-picker legend {font-size:14px;font-weight:650}
.material-options {max-height:190px;overflow:auto}
.material-options label {display:flex;align-items:center;gap:9px;margin:0;padding:6px 0}
.material-options input {width:17px;min-height:17px;flex:none;accent-color:#154f59}
.attachment-links {padding-left:22px}
.preview-profile {font-size:13px;font-weight:650;display:grid;gap:4px}
.preview-profile select {min-height:40px;max-width:100%;font:inherit;color:var(--navy);background:white;border:1px solid #aabac9;border-radius:7px;padding:6px 10px}
.learning-context {width:fit-content;max-width:100%;margin-bottom:16px}
.student-text {white-space:pre-wrap;overflow-wrap:anywhere}
dialog .actions {justify-content:flex-end;margin-top:16px}
dialog .pass-shortcuts {justify-content:flex-start;margin:0 0 14px}
#editor-error {color:#9b2b28;font-size:14px}
#desk-status:not(:empty) {position:fixed;right:16px;bottom:16px;max-width:calc(100% - 32px);padding:10px 16px;border-radius:8px;background:var(--navy);color:white;z-index:2}
@media(max-width:900px) {.desk-layout {grid-template-columns:170px minmax(0,1fr)}.columns {grid-template-columns:1fr}.desk-sidebar {padding-inline:10px}}
@media(max-width:640px) {
  .desk-header {padding:10px 14px}.desk-layout {display:block}
  .desk-sidebar {padding:8px 14px 0;border-right:0}
  .desk-sidebar nav {display:flex;flex-wrap:wrap;gap:4px}
  .desk-sidebar a {padding:7px 9px;font-size:13px}
  .demo-note {margin:8px 0 0;padding:6px 10px}.demo-note br {display:none}.demo-note span {margin-left:6px}
  #workspace {padding:20px 14px 42px}.metrics {gap:6px}.metric {padding:10px}.metric span {font-size:12px}
  .panel {padding:15px}.row {align-items:flex-start;flex-wrap:wrap}.desk-title {margin-bottom:15px}
}
