/* Context: a quiet paper study desk, with one clear task and a ledger of progress. */
.study-desk { max-width: 940px; margin: 0 auto; color: var(--anki-ink); }
.desk-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding: 24px 0 30px; border-bottom: 1px solid var(--anki-line); }
.desk-kicker { margin: 0 0 12px; color: var(--anki-blue); font-size: 13px; font-weight: 700; }
.desk-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.08; letter-spacing: -.8px; }
.desk-date { margin: 12px 0 0; color: var(--anki-muted); font-size: 14px; }
.desk-primary { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center; min-width: 190px; padding: 15px 17px; border: 1px solid #8eb2df; border-radius: 7px; background: #eaf2fc; color: #17345a; text-decoration: none; }
.desk-primary span { grid-column: 1 / -1; margin-bottom: 5px; font-weight: 700; }.desk-primary strong { font-size: 27px; line-height: 1; }.desk-primary small { color: #55769d; font-size: 12px; }
.desk-primary:hover { border-color: var(--anki-blue); background: #deebfa; }
.desk-focus { margin: 28px 0 0; padding: 25px 26px 22px; border-left: 4px solid #8ea778; background: #f0f4ec; }
.focus-mark { display: inline-block; margin-bottom: 15px; padding: 3px 7px; border: 1px solid #a8b99c; color: #4d6540; font-size: 11px; font-weight: 700; }
.focus-copy h2 { margin: 0; font-size: 24px; line-height: 1.35; }
.study-calendar { margin-top: 22px; padding-top: 18px; border-top: 1px solid #d5dfcf; }
.calendar-scroll { overflow-x: auto; padding-bottom: 5px; scrollbar-width: thin; }
.calendar-body { display: grid; grid-template-columns: 18px max-content; gap: 7px; min-width: 870px; }
.calendar-weekdays { display: grid; grid-template-rows: repeat(7, 12px); gap: 4px; color: #687461; font-size: 9px; line-height: 12px; }
.calendar-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); grid-auto-columns: 12px; gap: 4px; }
.calendar-day, .calendar-legend i { width: 12px; height: 12px; border: 1px solid rgba(72, 91, 63, .1); border-radius: 2px; box-sizing: border-box; background: #dce5d7; }
.calendar-day.level-1, .calendar-legend .level-1 { background: #b7cdaa; }.calendar-day.level-2, .calendar-legend .level-2 { background: #8bab79; }.calendar-day.level-3, .calendar-legend .level-3 { background: #658b53; }.calendar-day.level-4, .calendar-legend .level-4 { background: #416b35; }
.calendar-day.is-future { background: transparent; border-color: rgba(72, 91, 63, .08); }
.calendar-legend { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 11px; color: #687461; font-size: 10px; }.calendar-legend > div { display: flex; align-items: center; gap: 4px; }.calendar-legend i { display: block; }
.desk-ledger { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; border-top: 1px solid var(--anki-line); border-bottom: 1px solid var(--anki-line); }
.desk-ledger div { padding: 16px 18px; border-left: 1px solid var(--anki-line); }.desk-ledger div:first-child { border-left: 0; }.desk-ledger span, .desk-ledger strong { display: block; }.desk-ledger span { color: var(--anki-muted); font-size: 12px; }.desk-ledger strong { margin-top: 7px; font-size: 26px; font-weight: 600; }
.desk-tools { margin-top: 34px; }.tools-heading { display: flex; align-items: baseline; justify-content: space-between; }.tools-heading h2 { margin: 0; font-size: 17px; }.tools-heading span { color: var(--anki-muted); font-size: 12px; }.tool-row { margin-top: 10px; border-top: 1px solid var(--anki-line); }.tool-row a { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; gap: 13px; align-items: center; padding: 15px 3px; border-bottom: 1px solid var(--anki-line); color: var(--anki-ink); text-decoration: none; }.tool-row a:hover { background: rgba(59,130,246,.05); }.tool-symbol { display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid var(--anki-line); color: var(--anki-blue); font-size: 18px; }.tool-row strong, .tool-row small { display: block; }.tool-row strong { font-size: 14px; }.tool-row small { margin-top: 3px; color: var(--anki-muted); font-size: 12px; }.tool-row b { color: var(--anki-muted); font-size: 18px; font-weight: 400; }
html[data-theme="night"] .desk-primary { border-color: #496b93; background: #1a304b; color: #deebfa; }html[data-theme="night"] .desk-primary small { color: #9db9d8; }html[data-theme="night"] .desk-primary:hover { background: #203b5c; }html[data-theme="night"] .desk-focus { background: #283326; border-left-color: #829b70; }html[data-theme="night"] .focus-mark { border-color: #6f865f; color: #c0d2b3; }html[data-theme="night"] .study-calendar { border-color: #43523e; }html[data-theme="night"] .calendar-weekdays,html[data-theme="night"] .calendar-legend { color: #aabca1; }html[data-theme="night"] .calendar-day,html[data-theme="night"] .calendar-legend i { border-color: rgba(215, 231, 207, .08); background: #3b4938; }html[data-theme="night"] .calendar-day.level-1,html[data-theme="night"] .calendar-legend .level-1 { background: #4d6544; }html[data-theme="night"] .calendar-day.level-2,html[data-theme="night"] .calendar-legend .level-2 { background: #638357; }html[data-theme="night"] .calendar-day.level-3,html[data-theme="night"] .calendar-legend .level-3 { background: #7ca46b; }html[data-theme="night"] .calendar-day.level-4,html[data-theme="night"] .calendar-legend .level-4 { background: #9cc487; }html[data-theme="night"] .calendar-day.is-future { background: transparent; border-color: rgba(215, 231, 207, .05); }
@media (max-width: 640px) { .desk-heading { align-items: stretch; flex-direction: column; padding-top: 8px; }.desk-primary { width: 100%; box-sizing: border-box; }.desk-focus { padding: 21px 18px 18px; }.focus-copy h2 { font-size: 21px; }.desk-ledger div { padding: 14px 10px; }.desk-ledger strong { font-size: 22px; }.tool-row a { padding: 14px 0; } }
