.desk-toolbar{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 18px;align-items:center}.desk-filters{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:end;background:#fff;border:1px solid var(--line);padding:15px 18px;border-radius:12px;margin:0 0 20px}.desk-filters label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.desk-filters input,.desk-filters select{width:auto;max-width:250px;flex:1;min-width:130px}.desk-resources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.desk-resources>.card{margin:0;min-width:0}.desk-resource{border:1px solid var(--line);padding:21px;border-radius:13px;min-width:0;background:#fcfdfb;display:flex;flex-direction:column}.desk-resource h3{font-size:17px;margin:15px 0 8px;overflow-wrap:anywhere}.desk-resource p{color:var(--muted);font-size:13px;line-height:1.8;flex:1;overflow-wrap:anywhere;margin:0 0 14px}.desk-resource small{font-size:11px;overflow-wrap:anywhere}.desk-resource .toolbar{margin:16px 0 0;gap:6px}.desk-resource-icon{height:40px;width:40px;display:grid;place-items:center;color:var(--accent);background:var(--soft);border-radius:11px;font-weight:600}.desk-resource-open{font-size:13px;display:inline-block;background:var(--accent);color:white;border-radius:8px;padding:9px 12px;text-decoration:none}.desk-teaching>p{white-space:pre-wrap;line-height:1.8;font-size:13px;color:var(--muted);overflow-wrap:anywhere;max-height:210px;overflow:hidden}.desk-teaching .toolbar{margin-bottom:0}.desk-term{padding:5px 0 18px}.desk-term>strong{display:block;font-size:29px;font-weight:500;color:var(--accent);margin:8px 0}.desk-term>small{display:block}.desk-mini-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.desk-mini-calendar>small{text-align:center;padding-bottom:10px}.desk-mini-calendar>button{color:var(--ink);background:transparent;padding:6px;position:relative;font-weight:400;min-height:35px}.desk-mini-calendar>.selected{background:var(--accent);color:white}.desk-mini-calendar>button:hover{background:var(--soft);color:var(--accent)}.desk-dot{width:4px;height:4px;border-radius:50%;background:var(--orange);position:absolute;bottom:3px;left:calc(50% - 2px)}.desk-tool-links{display:flex;gap:10px;flex-wrap:wrap}.desk-tool-links a{text-decoration:none;display:flex;align-items:center;gap:8px;font-size:13px;color:var(--ink);padding:8px;border:1px solid var(--line);border-radius:9px}.desk-tool-links a span{width:29px;height:29px;display:grid;place-items:center;background:var(--soft);color:var(--accent);border-radius:7px}.desk-week{table-layout:fixed;min-width:540px}.desk-week th{width:85px;font-size:12px;text-align:center;padding:9px}.desk-week th small{display:block;font-size:9px;line-height:1.5}.desk-week td{padding:4px;text-align:center}.desk-week td button{background:transparent;color:var(--ink);font-size:13px;padding:8px 4px;width:100%;min-height:38px;overflow-wrap:anywhere}.desk-week td button:hover{background:var(--soft)}.desk-week .desk-today{background:var(--soft);color:var(--accent)}.wb-widget.desk-wide{grid-column:1/-1}.desk-drag-handle{padding:8px 12px;display:flex;align-items:center;gap:5px;border:1px dashed var(--accent);border-radius:10px;background:var(--soft);margin-bottom:7px;cursor:grab}.desk-drag-handle>span{flex:1;color:var(--accent);font-size:13px}.desk-drag-handle button{padding:5px 10px;min-height:30px}.desk-sheet{max-height:56vh;overflow:auto;border:1px solid var(--line);margin-top:18px}.desk-sheet input{min-width:140px;font-size:13px;padding:8px}.desk-sheet td{padding:4px}.desk-sheet th{position:sticky;top:0;z-index:1}.desk-sheet button{white-space:nowrap;font-size:12px}.desk-nav-group{padding:16px;border:1px solid var(--line);border-radius:12px;margin:14px 0}.desk-nav-group>.toolbar{margin:0 0 12px}.desk-nav-group>.toolbar input{flex:1;max-width:100%;min-width:100px}.desk-nav-row{display:flex;align-items:center;gap:9px;padding:8px;background:var(--bg);border-radius:8px;margin:6px 0}.desk-nav-row>span{flex:1;min-width:100px}.desk-nav-row select{width:160px}.desk-nav-row button{padding:8px 12px}.desk-quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;padding:15px 0}.desk-quick-grid button{padding:24px}.desk-record-remove{text-align:right}.desk-record-remove button{font-size:11px;padding:4px 8px;min-height:24px}.prose{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}#desk-teaching-body{min-height:40vh}#desk-report-frame{width:100%;height:65vh;border:1px solid var(--line);background:white}dialog:has(#desk-report-frame),dialog:has(#desk-table-form){width:min(1100px,96vw)}dialog:has(#desk-navigation-form),dialog:has(#desk-teaching-form){width:min(850px,96vw)}dialog:has(.desk-resources){width:min(1100px,96vw)}.topbar{gap:10px}.topbar>.secondary{padding:9px 12px}.topbar .compact-clock{margin-left:auto}.wb-spacebar+.desk-toolbar{display:inline-flex;vertical-align:middle;margin:0 0 16px 12px}.wb-spacebar+.desk-toolbar button{font-size:12px;padding:8px 11px;min-height:36px}.nav-section{padding-top:15px}.nav{padding-top:8px;padding-bottom:8px;min-height:39px}.sidebar{scrollbar-width:thin}.pagehead{margin-top:20px}
@media(min-width:1400px){.wb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wb-widget.desk-wide{grid-column:span 2}.wb-widget[data-widget="week"] .desk-week td button{min-height:43px}.desk-resources{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.desk-resources{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-clock{display:none}.topbar{flex-wrap:wrap;height:auto;min-height:78px;padding:12px 0}}
@media(max-width:650px){.desk-resources{grid-template-columns:1fr}.wb-widget.desk-wide{grid-column:auto}.desk-toolbar{gap:8px}.desk-toolbar button{font-size:12px;padding:9px 11px}.desk-filters{padding:12px}.desk-filters input,.desk-filters select{max-width:none;width:100%;min-width:0;flex-basis:40%}.desk-filters button{flex:1}.desk-week{min-width:480px}.desk-week th{width:70px}.desk-nav-row{flex-wrap:wrap}.desk-nav-row>span{flex-basis:100%}.desk-nav-row select{flex:1;width:auto}.desk-nav-group{padding:10px}.wb-spacebar+.desk-toolbar{display:flex;margin-left:0}.topbar>.secondary{font-size:12px}.topbar>.secondary::after{content:none}.sidebar .nav-section{display:none}.desk-resource{padding:18px}.desk-quick-grid button{padding:18px 8px}}
@media print{.desk-toolbar,.desk-filters,.desk-drag-handle,.desk-record-remove{display:none!important}.wb-widget.desk-wide{grid-column:auto}}
