/* Screen palette and surfaces. Printed schedules keep their ink-on-paper layout. */
.item-checklist::before {content:"";flex:none;forced-color-adjust:none;width:1em;height:1em;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m1 5 2 2 4-5M10 5h8M10 14h8'/%3E%3Ccircle cx='4' cy='14' r='2.7'/%3E%3C/svg%3E") center/contain no-repeat}
.overview-tools {margin-block-start:1rem}
#week-tools {margin-inline:clamp(14px,2vw,20px)}
.overview-section {background:var(--surface);border:1px solid var(--line);border-radius:var(--desk-radius);padding-inline:1rem;margin-block:.5rem}
.overview-section summary {padding-block:.75rem;cursor:pointer;font-weight:650;color:var(--ink)}
.overview-section>div:not(:empty) {padding-block-end:1rem}
.overview-section table {border-collapse:collapse;width:100%;font-variant-numeric:tabular-nums}
.overview-section :is(th,td) {padding:.5rem .4rem;text-align:start;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.overview-section th {background:var(--surface-week);color:var(--learning-ink);font-size:.875rem}
.overview-section details+details {border-block-start:1px solid var(--line)}
.overview-section form {display:grid;gap:.75rem;justify-items:start}
.overview-section form p:empty {display:none}
.overview-fields {display:flex;align-items:end;flex-wrap:wrap;gap:.6rem}
.overview-fields label {display:grid;gap:.3rem;color:var(--muted);font-weight:600}
.overview-fields select {width:auto;max-width:100%;padding-inline-end:2.25rem}
:root {
  --paper:#f6f7fb; --surface:#fff; --surface-soft:#fafbfe; --surface-hover:#f0f1fa;
  --surface-week:#f1f2f9; --surface-today:#f6f5ff; --surface-shabbos:#faf9fd;
  --ink:#202536; --navy:#353286; --learning-ink:#303650; --muted:#576174;
  --line:#dee1eb; --control-border:#b6bdcd; --link:#4945a4; --warm-ink:#554988;
  --gold:#6958b3; --focus:#6152bc; --green:#147259; --success-ink:#185e49;
  --surface-success:#e1f6ec; --surface-checked:#edf8f2;
  --desk-indigo:#4741a6; --desk-selected:#efedff; --desk-radius:16px; --desk-control-radius:8px;
}
body { background:var(--paper); color:var(--ink) }
::selection { background:#d9d6ff; color:#201c58 }
.hero.desk-header,html[dir=rtl] .hero.desk-header {
  --header-night:#07022c; --header-text:#faf9ff; --header-muted:#dbd8ec; --focus:#ffce70;
  background:var(--header-night); color:var(--header-text); border-block-end:1px solid var(--header-night);
}
.desk-brand,.desk-nav a { color:var(--header-text) }
.desk-brand { font-family:inherit; font-weight:740; letter-spacing:-.045em; gap:6px }
.desk-brand>span { text-box:trim-both cap alphabetic }
@supports not (text-box:trim-both cap alphabetic) { .desk-brand>span { transform:translateY(-.06em) } }
.desk-brand img { display:block;flex:none;border-radius:22% }
.desk-icon { display:inline-block; flex:none; inline-size:1.15em; block-size:1.15em; vertical-align:middle }
.desk-nav a { gap:.45rem; border-radius:9px; color:var(--header-muted) }
.desk-nav a:hover { background:#292346;color:white }
.desk-nav a[aria-current] { background:var(--desk-selected); color:var(--navy);font-weight:750 }
.desk-header #welcome-help {color:var(--header-text)}
.desk-header #header-sign-out {color:var(--header-muted)}
.header-session, #header-identity:not([hidden]) { display:inline-flex; align-items:center; gap:6px; min-width:0; max-width:100% }
.header-session:has(#header-sign-out[hidden]) { display:none }
#header-identity { font-size:var(--font-meta); color:var(--header-text) }
#header-provider {background:white;border-radius:4px;padding:2px;box-sizing:content-box}
#header-account-name {min-inline-size:0;max-inline-size:30ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#header-provider, #header-sign-out { flex:none }
.schedule .day.today.jump-target { outline:2px solid var(--focus); outline-offset:-2px }
@media (prefers-reduced-motion:no-preference) {
  .schedule .day.today.jump-target { animation:today-arrival 1.6s ease-in-out both }
  @keyframes today-arrival {
    from { outline-color:transparent }
    24%,46% { outline-color:var(--focus); background-color:#d9d4fa }
  }
}
.desk-header #welcome-help {min-inline-size:44px;min-block-size:44px;padding-inline:.65rem;gap:.45rem;border:1px solid #726b91;border-radius:9px;background:transparent;font-weight:650}
.desk-header #welcome-help svg {inline-size:1.75rem;block-size:1.75rem;min-inline-size:28px;min-block-size:28px}
.desk-header #welcome-help circle {fill:none;stroke:currentColor;stroke-width:1.8}
.desk-header #welcome-help g {stroke:currentColor}
.desk-header #welcome-help:hover span {text-decoration:none}
.desk-header #welcome-help:focus-visible {outline:3px solid var(--focus);outline-offset:2px}
@media(forced-colors:active){#welcome-help svg circle{fill:ButtonText}#welcome-help svg g{stroke:ButtonFace}}
.desk-header :is(#welcome-help,#header-sign-out):hover {color:white;background:#292346}
.desk-header .language-switcher {
  color:var(--header-text);border:1px solid #726b91;border-radius:9px;background:transparent;
}

.desk-header .language-switcher button {color:var(--header-muted);border-radius:6px;background:transparent}
.desk-header .language-switcher button:hover {color:white;background:#292346}
.desk-header .language-switcher [aria-pressed=true],.desk-header .language-switcher [aria-pressed=true]:hover {background:#dfdafb;color:#21164f}
.desk-header :is(a,button):focus-visible {outline:3px solid var(--focus);outline-offset:2px}
.desk-intro {
  grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);min-height:clamp(204px,17vw,254px);
  background:linear-gradient(110deg,#24214f 0%,#343780 53%,#344d9b 85%);color:white;
  border-radius:var(--desk-radius);isolation:isolate;
}
[dir=rtl] .desk-intro {background:linear-gradient(250deg,#24214f 0%,#343780 53%,#344d9b 85%)}
.desk-intro h1,.desk-location h1 { font-family:inherit;font-weight:695;letter-spacing:-.035em;line-height:1.06 }
.desk-intro h1 {font-size:clamp(2.2rem,3.5vw,3.75rem);max-inline-size:18ch}
.desk-intro-copy {padding:clamp(22px,3.1vw,40px)}
.desk-intro time {color:#dedfff;font-weight:600;font-size:.95rem;letter-spacing:.012em;margin-block-end:10px}
.desk-intro p {color:#f1efff;line-height:1.5;max-inline-size:48ch;font-size:1.075rem}
#desk-progress:not([hidden]) {display:flex;flex-wrap:wrap;gap:5px 12px;align-items:center;max-inline-size:100%;margin-block-start:9px}
body:not([data-desk-view=today][data-library=saved]) #desk-progress,#desk-progress[hidden],#desk-more-plans[hidden],#desk-choices[hidden] {display:none!important}
#desk-progress-caption {font-size:.93rem;font-weight:550;line-height:1.35;color:#f2f2ff}
#desk-progress progress {
  appearance:none;display:block;flex:0 1 9rem;inline-size:9rem;max-inline-size:100%;height:6px;
  border:0;border-radius:6px;overflow:hidden;background:#555687;color:#a3e3c6;accent-color:#a3e3c6;
}
#desk-progress progress::-webkit-progress-bar {background:#555687;border-radius:6px}
#desk-progress progress::-webkit-progress-value {background:#a3e3c6;border-radius:6px}
#desk-progress progress::-moz-progress-bar {background:#a3e3c6;border-radius:6px}
.desk-photo {overflow:hidden}
.desk-photo::after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to right,#343780,transparent 15%)}
[dir=rtl] .desk-photo::after {background:linear-gradient(to left,#343780,transparent 15%)}
:is([data-library=saved],[data-library=checking])[data-desk-view=today] .desk-intro {min-height:100px;grid-template-columns:minmax(0,1fr) minmax(110px,24%)}
:is([data-library=saved],[data-library=checking])[data-desk-view=today] .desk-intro h1 {font-size:clamp(1.95rem,3.1vw,3rem)}
:is([data-library=saved],[data-library=checking])[data-desk-view=today] .desk-intro-copy {padding:16px 24px}
.desk-choices {gap:clamp(14px,1.7vw,22px);padding:18px 0 0;align-items:start}
.desk-choices>div,#today-dashboard,.planner-card,.results,.feature-dialog,.feedback-dialog {
  background:var(--surface);border:1px solid var(--line);border-radius:var(--desk-radius);
}
.desk-choices>div {min-width:0;padding:clamp(16px,2vw,27px)}
.desk-choices h2,.plans-heading-row h2,.desk-location h1,.wz-form h2,.results h2 {
  font-family:inherit;color:var(--ink);font-weight:690;letter-spacing:-.032em;
}
.desk-choices h2,.plans-heading-row h2 {font-size:clamp(1.3rem,1.7vw,1.6rem);line-height:1.25}
.desk-choices p {color:var(--muted)}
#desk-more-plans {order:2;margin:9px 0 0}
.desk-add-plan {
  display:inline-flex;align-items:center;gap:.45rem;min-block-size:44px;padding:.45rem .8rem;
  border:1px solid var(--line);border-radius:9px;background:white;color:var(--link);text-decoration:none;font-weight:650;
}
.desk-add-plan:hover {background:var(--desk-selected);border-color:#bbb4e1}
.desk-texts {gap:8px;grid-template-columns:repeat(auto-fit,minmax(min(100%,calc(11rem + 68px)),1fr))}
.desk-texts li {container:subject-choice / inline-size}
.desk-texts [data-type=kitzur]>span:last-child {white-space:nowrap}
@container subject-choice (inline-size < calc(11rem + 68px)) {
  .desk-texts [data-type=kitzur] {flex-wrap:wrap}
  .desk-texts [data-type=kitzur]>span:last-child {font-size:min(1em,9.1cqi)}
}
.desk-texts a,.desk-cycles a {color:var(--ink)}
.desk-texts a {
  min-block-size:58px;block-size:100%;padding:8px 10px;gap:10px;background:var(--surface-soft);
  border:1px solid var(--line);border-radius:10px;line-height:1.32;
}
.desk-texts a:hover,.desk-texts a:focus-visible {background:#f4f3ff;border-color:#b7b0de;color:var(--navy)}
.desk-cycles a {border-block-end:1px solid var(--line);padding-inline:2px;gap:.65rem}
.desk-cycles li:last-child>a {border-block-end:0}
.desk-cycles a::after {content:"";inline-size:.45rem;block-size:.45rem;flex:none;border:solid #747d91;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);margin-inline-end:.45rem}
html[dir=rtl] .desk-cycles a::after {content:"";transform:rotate(135deg)}
.desk-cycles a:hover {background:#f4f3ff;color:var(--link)}
.desk-book[data-color] {
  display:inline-grid;place-items:center;inline-size:36px;block-size:36px;border:0;border-radius:9px;
  box-shadow:none;color:white;flex:none;background:#6849aa;
}
.desk-book::before,.desk-book::after {content:none}
.desk-book svg {inline-size:24px;block-size:24px}
.desk-book[data-color="1"] {background:#315bae}.desk-book[data-color="2"] {background:#217596}
.desk-book[data-color="3"] {background:#a63869}.desk-book[data-color="4"] {background:#996017}
.desk-book[data-color="5"] {background:#7d478f}.desk-book[data-color="6"] {background:#12676e}
.desk-link-label {min-inline-size:0}
.desk-chevron {inline-size:1em;block-size:1em;flex:none;margin-inline-start:auto}
[dir=rtl] .desk-chevron {transform:scaleX(-1)}
#today-dashboard {margin-block-start:14px;container:today-list / inline-size}
body:not([data-desk-view=plans]) #plans-page,
body[data-desk-view=plans] :is(.desk-intro,.desk-choices,.tab-panel,#desk-location) {display:none!important}
#plans-page {max-inline-size:58rem;inline-size:100%;align-self:center}
.plans-heading-row {display:flex;align-items:center;flex-wrap:wrap;gap:.5rem 1rem}
.plans-heading-row h1,.plans-heading-row h2 {margin:0;min-inline-size:0;overflow-wrap:anywhere}
.plans-heading-row .desk-add-plan {margin-inline-start:auto;justify-content:center;overflow-wrap:anywhere;text-align:center;max-inline-size:100%}
#plans-page h1 {font-size:clamp(1.8rem,3vw,2.75rem);line-height:1.15}
#plans-page .plans-heading-row {margin-block-end:1rem}
#plans-page #plans-edit:not([hidden]) {display:inline-grid;place-items:center}
#plans-edit span {grid-area:1/1}
.plan-reorder {position:relative;flex:none}
.plan-reorder[inert] {visibility:hidden}
.plan-reorder summary {display:grid;place-items:center;min-width:44px;min-height:44px;list-style:none;cursor:grab;touch-action:none;color:var(--desk-indigo);border-radius:8px}
.plan-reorder summary::-webkit-details-marker {display:none}
.plan-reorder summary:is(:focus-visible,:hover),.plan-reorder[open] summary {background:var(--desk-selected)}
.plan-reorder>div {position:absolute;z-index:2;inset-inline-end:0;display:grid;min-width:max-content;padding:4px;gap:2px;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.plan-reorder>div button {min-height:44px}
.saved-card:has(.plan-reorder[open]) {z-index:2}
#plans-edit [aria-hidden],#plans-page :is(.saved-title-edit,.saved-remove)[inert] {visibility:hidden}
.plans-heading-actions {margin-inline-start:auto;display:flex;align-items:center;flex-wrap:wrap;gap:.5rem}
.plans-heading-actions .desk-add-plan {margin-inline-start:0}
#saved-empty {padding:1rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--desk-radius)}
#plans-page .saved-card {padding:1rem 1.15rem;border-radius:var(--desk-radius);overflow-wrap:anywhere}
#plans-page .saved-card h3 {font-family:inherit;font-size:1.12rem;line-height:1.35;font-weight:650}
#plans-page .saved-open {min-block-size:44px;padding-inline:1rem;border-radius:8px}
@media(min-width:760px) {
  #plans-page .saved-card {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) auto;gap:.15rem 1.5rem;align-items:center}
  #plans-page .saved-card-title-row {grid-area:1/1}
  #plans-page .saved-type {grid-area:2/1;margin:0}
  #plans-page .saved-range {grid-area:1/2}
  #plans-page .saved-dates {grid-area:2/2;margin:0}
  #plans-page .saved-card-actions {grid-area:1/3/3/4;gap:.75rem;flex-wrap:wrap;margin:0}
  #plans-page .saved-remove {position:static}
}
#desk-plans-nav b {font-size:.78em;padding:.1em .4em;border-radius:.4em;background:var(--desk-selected);color:var(--navy)}
#desk-plans-nav b:empty {display:none}
.desk-nav {flex-wrap:wrap;max-inline-size:100%}
html.checking-library-profile #workspace>#plans-page {visibility:visible}
#today-dashboard .plans-heading-row {padding:8px 20px}
#today-title-short {display:none}
@container today-list (max-width:32rem) {
  #today-title {display:none}
  #today-title-short {display:inline}
  #today-dashboard .plans-heading-row {column-gap:.5rem}
}
.day-navigation {display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .65rem;padding:0 clamp(12px,3%,20px) .65rem}
.day-navigation[hidden],#learning-day-reset[hidden] {display:none}
.day-navigation>label {font-weight:600;color:var(--muted);font-size:.9rem}
.day-stepper {display:inline-grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:stretch;max-inline-size:100%;min-inline-size:0}
.day-stepper>* {box-sizing:border-box;min-inline-size:0;min-block-size:44px;margin:0;background:var(--surface);color:var(--learning-ink);border:1px solid var(--control-border);font:inherit}
.day-stepper input {width:10em;max-inline-size:100%;text-align:start;padding:0 .75em;border-radius:0}
.day-stepper button {display:grid;place-items:center;inline-size:44px;padding:0;cursor:pointer}
#learning-day-prev {border-inline-end:0;border-radius:0;border-start-start-radius:8px;border-end-start-radius:8px}
#learning-day-next {border-inline-start:0;border-radius:0;border-start-end-radius:8px;border-end-end-radius:8px}
.day-stepper button:disabled {color:var(--muted);cursor:default}
.day-stepper svg {inline-size:1.15em;block-size:1.15em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
[dir=rtl] .day-stepper svg {transform:scaleX(-1)}
#learning-day-reset {min-block-size:44px;max-inline-size:100%;padding:.35em .7em;border-radius:8px;background:var(--desk-selected);color:var(--navy);font-weight:650}
.day-navigation :is(button,input):focus-visible {outline:3px solid var(--focus);outline-offset:2px;position:relative;z-index:1}
#today-toggle {display:flex;align-items:center;gap:.65em;min-block-size:44px;background:transparent;color:inherit;font:inherit;letter-spacing:inherit;text-align:start;border:0;padding:0;cursor:pointer}
#workspace:has(#today-toggle[aria-expanded=false]) #desk-more-plans {display:none}
#today-toggle::after {content:"";inline-size:.4em;block-size:.4em;border-inline-end:2px solid var(--desk-indigo);border-block-end:2px solid var(--desk-indigo);transform:rotate(45deg);flex:none;margin-block-start:-.22em}
#today-toggle[aria-expanded=false]::after {transform:rotate(-45deg);margin:0}
[dir=rtl] #today-toggle::after {transform:rotate(-45deg)}
[dir=rtl] #today-toggle[aria-expanded=false]::after {transform:rotate(45deg)}
#today-assignments {
  --today-columns:minmax(0,1.35fr) minmax(0,1fr) min(21%,6.5rem) 25%;
  padding-inline:20px;display:grid;grid-template-columns:var(--today-columns);column-gap:18px;
}
#today-assignments>* {grid-column:1/-1}
.today-plan-title {
  color:var(--learning-ink);font-size:.98rem;line-height:1.35;font-weight:600;
  text-underline-offset:.18em;min-block-size:32px;
}
.today-entry .today-plan-title:hover {color:var(--link);text-decoration:underline;background:transparent}
.today-plan-title:focus-visible {outline:2px solid var(--focus);outline-offset:3px}
.today-subject small {line-height:1.35}
.today-entry {padding-block:12px;grid-template-columns:var(--today-columns);grid-template-columns:subgrid;column-gap:inherit}
.today-entry>.today-subject,.today-entry>strong {grid-area:1/2}
.today-entry>.today-idle {grid-area:1/1}
.today-idle {color:var(--muted)}
.today-subject {display:flex;align-items:center;gap:10px;min-inline-size:0}
.today-subject>div {min-inline-size:0}
.today-subject .desk-book {inline-size:32px;block-size:32px}
.today-subject .desk-book svg {inline-size:21px;block-size:21px}
.today-entry a,.desk-location>a,.wz-form .wz-mode,.wz-form .wz-back {color:var(--link)}
.today-assignment {
  display:flex;align-items:center;gap:10px;min-block-size:44px;max-inline-size:100%;
  font-size:clamp(1.12rem,1.45vw,1.32rem);font-weight:680;line-height:1.35;color:var(--ink);cursor:pointer;
}
.today-assignment span {min-inline-size:0;overflow-wrap:anywhere}
.today-assignment input.today-check {appearance:auto;accent-color:var(--green);width:20px;height:20px;flex:none;margin:0}
.today-entry .today-count {font-size:.92rem;white-space:normal;padding:.18em .55em;justify-self:start}
.today-entry:is([data-done=true],:has(.today-check:checked)) .today-assignment {color:var(--success-ink)}
.today-entry:is([data-done=true],:has(.today-check:checked)) .today-count {
  background:var(--surface-success);color:var(--success-ink);border-radius:7px;font-weight:600;
}
.today-entry .today-source {display:inline-flex;align-items:center;justify-self:start;gap:.35rem;min-height:44px;color:var(--link);text-underline-offset:.18em;white-space:normal}
.today-lesson-actions {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;justify-items:start;gap:4px 10px}
.today-lesson-actions>:is(.chazarah-action,.chazarah-scheduled) {grid-column:2;grid-row:1;min-inline-size:0;overflow-wrap:anywhere}
.chazarah-scheduled .review-numeric {display:none}
.earlier-line {container:earlier-day / inline-size}
@container earlier-day (max-width:29rem){.chazarah-scheduled .review-prefix {display:none}}
@container earlier-day (max-width:20rem){.chazarah-scheduled .review-short {display:none}.chazarah-scheduled .review-numeric {display:inline}}
.chazarah-scheduled,.today-mobile-plan>time.chazarah-scheduled {white-space:nowrap}
.today-lesson-actions>.chazarah-scheduled {padding-block:.4em}
.today-lesson-actions {container:review-actions / inline-size}
@container review-actions (max-width:17rem){.chazarah-scheduled .review-prefix {display:none}}
@container review-actions (max-width:11rem){.chazarah-scheduled .review-short {display:none}.chazarah-scheduled .review-numeric {display:inline}}
@container review-actions (max-width:10rem){.today-source {grid-column:1/-1}.today-lesson-actions>:is(.chazarah-action,.chazarah-scheduled){grid-column:1/-1;grid-row:2}}
.today-lesson-actions>* {max-inline-size:100%}
/* Keep the same line breaks before completion without exposing an unavailable action. */
.today-review-space {visibility:hidden}
.today-entry>.earlier-rows {grid-column:1/-1}
@container today-list (min-width:52rem) {
  #today-assignments:has(.earlier-tools) {--today-columns:minmax(0,1.3fr) minmax(0,1fr) 6.5rem minmax(0,1fr) minmax(0,1.1fr)}
  .today-entry>.earlier-tools {grid-area:1/5;align-self:start;align-items:center;gap:4px 10px}
  .today-entry>.earlier-rows {justify-self:end;inline-size:min(100%,42rem)}
}
@media(min-width:701px) {
  .today-entry[data-done],.today-subject,.today-lesson-actions {align-items:start}
  .today-subject>div {display:grid;justify-items:start}
  .today-entry .today-plan-title,.today-entry .today-source,.today-entry .today-assignment,
  .today-entry .today-count {
    box-sizing:border-box;min-block-size:32px;display:inline-flex;align-items:center;
  }
  .today-entry .today-source,.today-entry .today-assignment {padding-block-end:12px;min-block-size:44px}
}
.saved-card,.stats article,.week {border-radius:10px}
.edit-title,.saved-title-edit {color:var(--link);background:var(--desk-selected)}
.edit-title:hover,.saved-title-edit:hover {color:var(--surface);background:var(--desk-indigo)}
:is(.editable-kicker,.saved-card-title-row) [contenteditable="plaintext-only"] {background:var(--desk-selected);color:var(--ink);outline-color:var(--focus)}
.planner-card,.results {padding:clamp(16px,2vw,28px)}
.desk-location {color:var(--ink)}
.actions>:is(button,a),.desk-location button,.wz-form .wz-next,.controls .primary {border-radius:var(--desk-control-radius)}
.wz-form .wz-next,.controls .primary,.actions .secondary {background:var(--desk-indigo);border-color:var(--desk-indigo);color:white}
.wz-form .wz-next:hover,.controls .primary:hover,.actions .secondary:hover {background:#37318d}
.controls :is(select,input:not([type=radio]):not([type=checkbox])) {border-radius:7px}
.actions .save-schedule,.actions .save-copy,.cycle-toggle button[aria-pressed=true] {color:var(--navy);background:var(--desk-selected);border-color:#cbc6e7}
.cycle-toggle,.week-head {border-color:var(--line)}
.feature-dialog,.feedback-dialog {box-shadow:0 12px 32px #272b501c}
.desk-nav a:focus-visible,.desk-texts a:focus-visible,.desk-cycles a:focus-visible,.desk-brand:focus-visible,.desk-store a:focus-visible {
  outline:3px solid var(--focus);outline-offset:2px;
}
@media(max-width:700px) {
  .desk-header .header-controls {flex-wrap:wrap}
  .desk-choices {gap:12px;padding-block-start:12px}
  .desk-choices>div {padding:14px}
  #today-dashboard .plans-heading-row {padding-inline:14px}
  #today-assignments {--today-columns:minmax(0,1fr) min(40%,6.5rem);padding:10px 6px;gap:10px;background:var(--paper)}
  :is([data-library=saved],[data-library=checking])[data-desk-view=today] .desk-intro {min-height:88px}
  :is([data-library=saved],[data-library=checking])[data-desk-view=today] .desk-intro-copy {padding:14px}
  #desk-progress {margin-block-start:6px}
  #desk-progress progress {flex-basis:6rem}
  #today-assignments>.today-entry {grid-template-columns:var(--today-columns);row-gap:4px;padding:8px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
  .today-entry[data-done] .today-assignment {grid-area:1/1}
  .today-entry[data-done] .today-count {grid-area:1/2}
  .today-entry>.today-subject,.today-entry>strong,.today-entry>.today-idle {grid-area:auto/1/auto/-1}
  .today-entry .today-plan-title {min-block-size:36px}
  .today-entry .today-source {grid-column:1/-1}
  .today-mobile-lesson,.today-mobile-plan {grid-column:1/-1}
  .today-mobile-lesson {display:flex;align-items:center;gap:10px}
  .today-mobile-copy {flex:1;min-inline-size:0;position:relative;padding-inline-start:34px;display:flex;align-items:center;flex-wrap:wrap;gap:0 8px}
  .today-mobile-copy .today-assignment {min-block-size:36px}
  .today-mobile-copy input.today-check {position:absolute;inset-inline-start:2px;appearance:none;width:22px;height:22px;border:2px solid var(--link);border-radius:50%;background:var(--surface);cursor:pointer}
  .today-mobile-copy input.today-check:is(:checked,:indeterminate) {background:var(--success-ink);border-color:var(--success-ink)}
  .today-mobile-copy input.today-check:checked::after {content:"";display:block;width:5px;height:10px;margin:1px auto;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}
  .today-mobile-copy input.today-check:indeterminate::after {content:"";display:block;width:10px;margin:8px auto;border-block-start:2px solid white}
  @media (forced-colors:active){.today-mobile-copy input.today-check {appearance:auto}}
  .today-mobile-copy .today-mark {display:inline-flex;align-items:center;gap:.32em;min-inline-size:calc(var(--count-width) + 1.32em + 6px);min-height:36px;padding:0 3px;border:0;background:transparent;color:var(--link);font-family:inherit;font-size:.92rem;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
  .today-mobile-lesson .today-source {flex:none;font-weight:620}
  .today-mobile-plan {display:flex;align-items:center;justify-content:space-between;gap:8px}
  .today-mobile-plan .today-subject {flex:1;gap:8px}
  .today-mobile-plan .desk-book {inline-size:26px;block-size:26px;flex:none}
  .today-mobile-plan .desk-book svg {inline-size:18px;block-size:18px}
  .today-mobile-plan .today-plan-title {display:inline;min-block-size:36px;overflow-wrap:anywhere}
  .today-mobile-plan .today-plan-title::after {content:"";display:inline-block;inline-size:.4em;block-size:.4em;margin-inline-start:.6em;border-block-start:1.5px solid currentColor;border-inline-end:1.5px solid currentColor;transform:rotate(45deg)}
  [dir=rtl] .today-mobile-plan .today-plan-title::after {transform:rotate(-45deg)}
  .today-mobile-plan>:is(.chazarah-action,.chazarah-scheduled) {max-inline-size:46%}
  @container today-list (max-width:27rem){.today-mobile-plan .review-prefix {display:none}}
  @container today-list (max-width:20rem){.today-mobile-plan .review-short {display:none}.today-mobile-plan .review-numeric {display:inline}}
}
@media(max-width:600px) {
  [data-library=empty] .desk-intro-copy,[data-desk-view=new] .desk-intro-copy {padding:15px 18px}
  [data-library=empty] .desk-intro h1,[data-desk-view=new] .desk-intro h1 {font-size:clamp(1.75rem,5.7vw,2.5rem)}
  [data-library=empty] .desk-photo::after,[data-desk-view=new] .desk-photo::after {background:none}
  [data-library=empty] .desk-photo,[data-desk-view=new] .desk-photo {height:clamp(112px,33vw,160px)}
  .desk-texts a {gap:7px;padding:7px;min-block-size:55px}
  .desk-texts .desk-book {inline-size:30px;block-size:32px}
}
/* With enlarged text, give the lesson and its status their own lines. */
@container today-list (inline-size < 18rem) {
  #today-assignments {--today-columns:minmax(0,1fr)}
  .today-entry[data-done] :is(.today-assignment,.today-count) {grid-area:auto/1/auto/-1}
}
@media(max-width:375px) {
  .hero.desk-header,html[dir=rtl] .hero.desk-header {gap:3px 5px}
  .desk-header .desk-nav {gap:1px}
  .desk-header .desk-nav a {padding-inline:4px;gap:3px;font-size:.92rem}
  .hero.desk-header .header-controls,.desk-header .header-account-tools {gap:2px}

  .desk-header .language-switcher {padding:2px}
  .desk-header .language-switcher button {padding-inline:4px}
  .desk-header #welcome-help {padding-inline:3px}
}
@media(forced-colors:active) {
  .desk-header .desk-nav a[aria-current],.desk-book[data-color] {outline:1px solid currentColor}
}
#desk-loading,#desk-art:not([src]) {display:none}
body[data-desk-pending] #desk-loading,
html.checking-library-profile body:is([data-desk-view=build],[data-desk-view=schedule]) #desk-loading {display:block;color:var(--muted);margin:12px 0 24px}
body[data-desk-pending] .tab-panel {display:none!important}
html.checking-library-profile #workspace>:is(#desk-intro,#desk-location,#desk-loading),
html.checking-library-profile body[data-desk-view=new] #desk-choices {visibility:visible}
html.checking-library-profile body[data-desk-view=today] :is(#desk-description,#desk-choices,#desk-more-plans) {display:none!important}
html.checking-library-profile body[data-desk-view=today] #workspace>#today-dashboard {visibility:visible}
html.checking-library-profile #today-content>:is(#today-assignments,#today-notice,#chazarah-due) {display:none!important}
#desk-await-lessons {display:none;margin:0;padding:1rem clamp(14px,3%,20px);color:var(--muted);border-block-start:1px solid var(--line)}
body[data-today-pending] #desk-await-lessons:not(:has(+ #today-assignments>*)),html.checking-library-profile #desk-await-lessons {display:block}
body[data-desk-view=today][data-today-pending] .desk-intro {min-block-size:var(--today-hero-height,8rem)}
body[data-desk-view=today][data-today-pending] .hero.desk-header {min-block-size:var(--today-header-height,revert-layer)}
body[data-desk-view=today][data-today-pending] #today-dashboard:has(#today-content:not([hidden])) {min-block-size:var(--today-lessons-height,clamp(15rem,40svh,24rem))}
.seder-learn {display:inline-flex;align-items:center;gap:.35rem;direction:ltr}
.seder-learn img {flex:none;display:block}
.seder-learn span {font-weight:650}
#plan-name-notice {box-sizing:border-box;grid-column:1/-1;flex:1 0 100%;min-inline-size:0;margin:.35rem 0 0;padding:.55rem .8rem;border:1px solid #ccc8e6;border-radius:var(--desk-control-radius);background:var(--desk-selected);color:var(--navy);font-size:1rem;font-weight:500;line-height:1.45;text-align:start;overflow-wrap:anywhere}
.desk-title-row:has(#plan-name-notice),.editable-kicker:has(#plan-name-notice) {flex-wrap:wrap}
#plan-name-announcement,#plan-order-status {position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip-path:inset(50%);margin:0;padding:0;white-space:nowrap}
.controls .plan-boundary-row .unit-number-field select {inline-size:6rem;max-inline-size:100%;justify-self:start;font-variant-numeric:tabular-nums}
@media (min-width:701px) {
  .wz-form .plan-boundary-row:not(:has(input[type=date])) {display:flex;flex-wrap:wrap}
  .wz-form .plan-boundary-row>label:not(.unit-number-field) {flex:0 1 23rem;max-inline-size:100%}
}
