/* Layout parity with the installed Windows study desk, 2026-10-30. */
body.study-desk {
  background: #e9e4da;
  font: 15px/1.7 "Palatino Linotype", "Book Antiqua", "Songti SC", serif;
}
.study-desk .shell { grid-template-columns: 282px minmax(0, 1fr); }
.study-desk .app-nav { padding: 28px 22px; gap: 22px; }
.study-desk .brand { margin: 0; gap: 13px; font-size: 18px; }
.study-desk .logo { width: 44px; height: 44px; font-size: 22px; }
.study-desk .brand small { font: 9px/1.4 Consolas, monospace; letter-spacing: .18em; }
.study-desk .top, .study-desk .nav-bottom { display: none; }
.desk-course-rail { gap: 12px; }
.desk-rail-label { margin: 12px 0 0; font: 10px/1.4 Consolas, monospace; letter-spacing: .16em; }
#deskCourses { display: grid; gap: 8px; }
.desk-course { margin: 0; padding: 12px; border-radius: 10px; gap: 2px; }
.desk-course strong { font-size: 13px; }
.desk-type-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.desk-type-filter button {
  min-height: 32px; border-radius: 999px; padding: 5px 10px; border: 1px solid #ffffff2e;
  background: transparent; color: #cfd9d2; font-family: inherit; font-size: 11px; line-height: 1.5; cursor: pointer;
}
.desk-type-filter button[aria-pressed="true"] { background: #f6f1e6; color: #203b3d; border-color: #f6f1e6; }
#deskRailMaterials, #deskTogglePanel {
  display: grid; gap: 2px; padding: 13px 14px; background: #c455321f;
  border: 1px solid #d9b39d55; border-radius: 9px; color: #fff8ed;
  font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1.7; text-align: left;
}
#deskRailMaterials small { color: #c4b7aa; font-size: 10px; font-weight: 400; }
#deskRailMaterials:hover, #deskTogglePanel:hover { background: #c4553238; }
.desk-rail-quiet { border: 0; background: transparent; color: #e7ddce; text-align: left; padding: 4px 0; cursor: pointer; font: inherit; font-size: 13px; }
#deskAddCourse { min-height: 32px; border: 0; padding: 0; color: #a9bbb1; font-size: 11px; }
.desk-secondary-tools { font-size: 11px; color: #b9c8bf; }
.desk-secondary-tools summary { cursor: pointer; padding: 5px 0; }
.desk-secondary-tools nav { margin-top: 8px; }
.desk-secondary-tools .nav-item { font-size: 12px; }
.desk-secondary-tools .desk-backup { margin: 8px 0 0; }
.desk-rail-footer { margin-top: auto; display: grid; gap: 12px; }
.desk-rail-footer .header-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.desk-rail-footer .header-btn { min-height: 32px; height: auto; padding: 0; background: transparent; color: #e7ddce; border: 0; font-weight: 400; font-size: 11px; }
.desk-rail-footer .connection { width: fit-content; font-size: 10px; background: transparent; color: #a9bbb1; padding: 0; }
.study-desk .desk-rail-footer .btn.primary { background: transparent; color: #e7ddce; border: 0; }
#cloudStudyStatus { font-size: 10px; color: #a9bbb1; overflow-wrap: anywhere; }
.desk-cloud-controls:empty { display: none; }
#deskContent { padding: 28px clamp(24px, 4vw, 62px) 70px; max-width: 1480px; width: 100%; margin: 0 auto; }
#deskLayout { min-height: 100vh; }
.desk-heading { gap: 20px; margin-bottom: 28px; align-items: flex-start; }
.desk-heading .eyebrow { margin: 0 0 8px; font: 11px/1.4 Consolas, monospace; letter-spacing: .14em; }
.desk-heading h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.desk-top-actions { display: flex; gap: 9px; flex-shrink: 0; }
.desk-top-actions .btn { margin: 0; border-radius: 8px; min-height: 42px; height: auto; padding: 10px 15px; font-family: inherit; font-size: 13px; line-height: 1.7; }
#deskSyncAction { display: flex; }
.desk-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 18px; }
.desk-today, .desk-pulse, .desk-overview-panel { border-radius: 0; border: 1px solid #e3dcd0; box-shadow: 0 18px 60px #362b1b1a; }
.desk-today { padding: 28px; position: relative; overflow: hidden; min-height: 204px; }
.desk-today::after { content: "STUDY"; position: absolute; right: -12px; bottom: -38px; font: 700 104px/1 Consolas, monospace; color: #ffffff09; letter-spacing: -.08em; pointer-events: none; }
.desk-today > * { position: relative; z-index: 1; }
.desk-today h2 { display: none; }
.desk-today .desk-kicker { color: #d8b9a6; opacity: 1; }
.desk-kicker { font: 10px/1.4 Consolas, monospace; letter-spacing: .16em; color: #c45532; opacity: 1; }
#deskToday { margin-top: 28px; }
.desk-today-slot { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; }
.desk-today-slot strong { font-size: 20px; line-height: 1.3; }
.desk-today-slot time { color: #c7d5cc; font-size: 12px; }
.desk-empty { font-size: 18px; padding: 15px 0; margin: 0; color: #d9e2db; }
.desk-pulse { padding: 26px; background: #f8f5ee; display: flex; flex-direction: column; }
.desk-stats { justify-content: space-between; gap: 10px; flex-wrap: nowrap; margin: 28px 0 20px; }
.desk-stats b { font: 600 32px/1 Consolas, monospace; }
.desk-stats span { font-size: 11px; }
.desk-pulse p { font-size: 11px; line-height: 1.7; }
.desk-section-head { margin: 38px 0 16px; align-items: flex-end; gap: 18px; }
.desk-section-head > div { gap: 12px; align-items: baseline; }
.desk-section-head h2 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.desk-week { gap: 0; border-top: 1px solid #d8d1c4; border-left: 1px solid #d8d1c4; background: #fbf8f2; }
.desk-day { border-radius: 0; border: 0; border-right: 1px solid #d8d1c4; border-bottom: 1px solid #d8d1c4; min-height: 168px; padding: 12px 10px; background: transparent; }
.desk-day.today { background: #fff9ef; box-shadow: inset 0 3px 0 #c45532; }
.desk-bottom-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 18px; margin-top: 34px; }
.desk-overview-panel { min-width: 0; padding: 24px; background: #f8f5ee; }
.desk-overview-panel .desk-section-head { margin: 0 0 18px; align-items: center; gap: 10px; flex-wrap: wrap; }
.desk-overview-panel h2 { font-size: 18px; }
.desk-deadlines { border: 0; border-radius: 0; background: transparent; }
.desk-deadline { padding: 14px 0; gap: 10px; align-items: start; border-top: 1px solid #d8d1c4; border-bottom: 0; }
.desk-deadline:last-child { border-top: 1px solid #d8d1c4; }
.desk-deadline strong { font-size: 14px; }
.desk-materials { gap: 0; max-height: 620px; overflow: auto; }
.desk-material { min-height: 64px; padding: 10px 0; gap: 9px; border: 0; border-top: 1px solid #d8d1c4; border-radius: 0; background: transparent; }
.desk-filetype { width: 34px; font-size: 9px; padding: 7px 3px; }
.desk-empty-line { padding: 20px 0; }
.desk-panel-open #deskContent { padding: 24px 18px 70px; }
.desk-panel-open .desk-hero, .desk-panel-open .desk-bottom-grid { grid-template-columns: 1fr; }
.desk-panel-open .desk-heading { flex-wrap: wrap; }
.desk-panel-open .desk-heading h1 { font-size: 32px; }
.desk-panel-open .desk-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.study-desk :is(button, summary):focus-visible { outline: 2px solid #c45532; outline-offset: 3px; }
@media (max-width: 1100px) {
  .study-desk .shell { grid-template-columns: 236px minmax(0, 1fr); }
  #deskContent { padding: 26px 24px 60px; }
  .desk-hero, .desk-bottom-grid { grid-template-columns: 1fr; }
  .desk-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .desk-heading { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .study-desk .shell { display: block; }
  .study-desk .app-nav { position: static; height: auto; padding: 20px 16px; gap: 16px; }
  .desk-course-rail { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .desk-course-rail #deskCourses { display: flex; overflow-x: auto; gap: 8px; }
  .desk-course { min-width: 160px; width: 160px; flex: none; }
  .desk-course small { display: block; }
  .desk-course-rail > * { grid-column: 1; }
  .desk-course-rail > #deskRailMaterials, .desk-course-rail > #deskTogglePanel { min-height: 44px; }
  .desk-rail-footer { gap: 8px; }
  .desk-rail-footer .header-actions { gap: 20px; }
  .desk-rail-footer .header-btn, .desk-rail-quiet, .desk-type-filter button { min-height: 44px; }
  #deskContent, .desk-panel-open #deskContent { padding: 22px 16px 50px; }
  .desk-heading { flex-wrap: wrap; gap: 18px; }
  .desk-heading h1 { font-size: 34px; }
  .desk-heading .btn { margin: 0; font-size: 12px; min-height: 44px; }
  .desk-hero, .desk-bottom-grid { grid-template-columns: 1fr; }
  .desk-today, .desk-pulse { padding: 22px; }
  .desk-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .desk-overview-panel { padding: 20px; }
  .desk-date { white-space: normal; }
  .desk-deadline { gap: 6px; }
}
