/* Daily Rounds presentation only. Shared study tools keep their existing styles. */
body[data-learning-page="daily-rounds"] .ll-hero{align-items:center}
body[data-learning-page="daily-rounds"] .ll-hero h1{font-size:clamp(2.8rem,6vw,4.7rem);max-width:12ch}
body[data-learning-page="daily-rounds"] .ll-controls{margin-bottom:1.25rem}
.dr-session-intro{margin:1.5rem 0 2rem;padding:1.5rem;border:1px solid var(--ll-line);border-radius:var(--ll-radius-large);background:var(--ll-surface)}
.dr-sequence{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;padding:0;margin:0 0 1.5rem;list-style:none}
.dr-sequence li{display:flex;gap:.65rem;align-items:center;color:var(--ll-text);font-size:.9rem;font-weight:600}
.dr-sequence span{display:inline-flex;align-items:center;justify-content:center;flex:0 0 2rem;min-height:2rem;border:1px solid var(--ll-line-strong);border-radius:50%;color:var(--ll-gold);font-size:.75rem}
.dr-session-progress{display:grid;grid-template-columns:minmax(11rem,1fr) minmax(8rem,2fr);align-items:center;gap:1rem}
.dr-session-progress label{font-size:.9rem;color:var(--ll-text)}
.dr-session-progress progress{display:block;width:100%;height:.55rem;accent-color:var(--ll-gold)}
#rounds-session-note{margin:.75rem 0 0;color:var(--ll-muted);font-size:.87rem}
body[data-learning-page="daily-rounds"] .ll-section{scroll-margin-top:1.5rem}
.dr-source-lesson{display:inline-flex;align-items:center;min-height:44px;font-size:.88rem;overflow-wrap:anywhere}
.dr-miss-deck{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;border-top:1px solid var(--ll-line);padding:1.5rem 0;margin-top:2rem}
.dr-miss-deck h2{font:600 1rem/1.5 var(--ll-sans);margin-bottom:.4rem}
.dr-miss-deck p{max-width:65ch;color:var(--ll-muted);font-size:.9rem;margin-bottom:0}
.dr-miss-deck>a{flex-shrink:0;display:inline-flex;align-items:center;min-height:44px}
@media(max-width:640px){.dr-sequence{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.dr-session-intro{padding:1rem}.dr-session-progress{grid-template-columns:1fr;gap:.6rem}.dr-miss-deck{align-items:flex-start;flex-direction:column;gap:.5rem}}
@media(prefers-reduced-motion:reduce){body[data-learning-page="daily-rounds"]{scroll-behavior:auto}}

/* Daily Rounds guided reader. Tokens inherit from the learning experience;
   this page owns its compact planning surface and its light color scheme. */
body[data-learning-page="daily-rounds"]{
  --dr-canvas:#0e0b13;
  --dr-panel:#191421;
  --dr-soft:#201a29;
  --dr-edge:#4a3956;
  --dr-heading:#fbf8ff;
  --dr-subtle:#cfc1d6;
  --dr-accent:#d8baf8;
  --dr-rail:#b790d6;
  --ll-radius:12px;
  --ll-radius-large:16px;
  background:var(--dr-canvas);
}
body[data-learning-page="daily-rounds"] .ll-main{
  width:min(calc(100% - 2.5rem),75rem);
  padding-top:clamp(1.5rem,4vw,3rem);
}
body[data-learning-page="daily-rounds"] .ll-hero{
  gap:clamp(1.2rem,3.5vw,2.6rem);
  align-items:center;
  margin-bottom:1.5rem;
}
body[data-learning-page="daily-rounds"] .ll-hero-copy{
  max-width:47rem;
}
body[data-learning-page="daily-rounds"] .ll-hero h1{
  font:600 clamp(2.4rem,5.4vw,4.45rem)/1.07 var(--ll-serif,Georgia,serif);
  letter-spacing:-.03em;
}
body[data-learning-page="daily-rounds"] .ll-hero-copy>p:not(.ll-context){
  max-width:61ch;
  font-size:1rem;
  line-height:1.58;
}
.dr-start-actions{
  display:flex;align-items:flex-start;flex-direction:column;
  gap:.55rem;margin-top:1.5rem;
}
.dr-primary{
  min-height:54px!important;
  border-radius:11px!important;
  padding:.85rem 1.45rem!important;
  font-size:1rem;
  max-width:100%;
  overflow-wrap:anywhere;
  box-shadow:0 8px 25px rgba(0,0,0,.12);
}
#start-rounds-caption{
  margin:0;color:var(--ll-muted);
  font-size:.77rem;line-height:1.4;
}
body[data-learning-page="daily-rounds"] .ll-private-note{
  background:var(--dr-panel);
  border-color:var(--dr-edge);
  border-radius:12px;
  padding:1.1rem 1.25rem;
}
body[data-learning-page="daily-rounds"] .ll-controls{
  margin-bottom:1.2rem;
  padding:1rem 0;
  border-color:var(--dr-edge);
}
body[data-learning-page="daily-rounds"] .ll-select{max-width:100%;min-height:48px}
body[data-learning-page="daily-rounds"] .ll-button,
body[data-learning-page="daily-rounds"] .ll-button-secondary{border-radius:9px}
.dr-preview{
  border:1px solid var(--dr-edge);
  border-radius:16px;
  padding:clamp(1rem,3vw,1.65rem);
  background:var(--dr-panel);
}
.dr-preview-heading{max-width:65ch;margin-bottom:1.25rem}
.dr-preview-heading h2{font-size:1.55rem;line-height:1.2;margin-bottom:.4rem}
.dr-preview-heading p:last-child{color:var(--ll-muted);margin-bottom:0}
.dr-preview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.85rem}
.dr-preview-grid article{
  min-width:0;padding:1rem;
  border:1px solid var(--dr-edge);
  border-radius:11px;
  background:var(--dr-soft);
}
.dr-step-index{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:36px;min-height:36px;
  padding:0 .55rem;
  background:rgba(178,140,209,.12);
  border:1px solid var(--dr-edge);
  border-radius:10px;
  color:var(--dr-accent);font-size:.8rem;font-weight:750;
  margin-bottom:.85rem;
}
.dr-preview-grid h3{font-size:.94rem;line-height:1.28;margin-bottom:.45rem;color:var(--ll-text)}
.dr-preview-grid p{font-size:.82rem;line-height:1.55;margin-bottom:0;color:var(--ll-muted)}
body[data-learning-page="daily-rounds"] .dr-session-intro{
  padding:1.15rem 1.3rem;margin:1.4rem 0 2.1rem;
  border-color:var(--dr-edge);background:var(--dr-panel);
}
body[data-learning-page="daily-rounds"] .dr-sequence{gap:.65rem;margin-bottom:1.2rem}
body[data-learning-page="daily-rounds"] .dr-sequence li{font-size:.78rem;font-weight:650}
body[data-learning-page="daily-rounds"] .dr-sequence span{
  border-radius:9px;
  border-color:var(--dr-edge);
  background:var(--dr-soft);
  color:var(--dr-accent);
}
body[data-learning-page="daily-rounds"] .ll-section{
  margin-top:clamp(2rem,4vw,3rem);
  scroll-margin-top:2rem;
}
body[data-learning-page="daily-rounds"] .ll-section-head{
  align-items:start;
  gap:1rem;
  margin-bottom:1.1rem;
}
body[data-learning-page="daily-rounds"] .ll-section-head h2{
  font-size:clamp(1.35rem,2.2vw,1.7rem);
  font-weight:700;
  letter-spacing:-.025em;
}
body[data-learning-page="daily-rounds"] .ll-section-head p:not(.ll-context){
  line-height:1.52;font-size:.9rem;
}
body[data-learning-page="daily-rounds"] .ll-round-list{gap:0}
body[data-learning-page="daily-rounds"] .ll-round{
  display:block;border:0;border-bottom:1px solid var(--dr-edge);
  border-radius:0;padding:.65rem 0;background:transparent;
}
body[data-learning-page="daily-rounds"] .ll-round-copy{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 1rem;
}
.dr-question-jump{
  display:grid;grid-template-columns:2rem minmax(0,1fr);align-items:center;
  gap:.2rem .6rem;width:100%;min-height:64px;padding:.35rem 0;
  border:0;background:transparent;color:var(--ll-text);font:inherit;text-align:left;cursor:pointer;
}
.dr-question-number{grid-row:1/3;color:var(--ll-muted);font-variant-numeric:tabular-nums}
.dr-question-topic{font-size:1rem;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.dr-question-state{color:var(--ll-muted);font-size:.875rem;line-height:1.45}
.dr-question-jump:hover .dr-question-topic{text-decoration:underline;text-underline-offset:.2em}
.dr-question-jump:disabled{cursor:default;color:var(--ll-muted)}
.dr-question-jump:focus-visible{outline:2px solid var(--dr-accent);outline-offset:4px;border-radius:4px}
body[data-learning-page="daily-rounds"] .dr-source-lesson{color:var(--ll-muted);font-size:.875rem}
.dr-question-progress{display:block;width:min(100%,20rem);height:.35rem;margin:.5rem 0 .8rem;accent-color:var(--dr-accent)}
body[data-learning-page="daily-rounds"] .ll-dialog-head .ll-context{text-transform:none;letter-spacing:0;font-size:.875rem}
body[data-learning-page="daily-rounds"] .ll-dialog-head{position:sticky;top:-1px;z-index:2;background:var(--ll-surface);padding-top:.5rem}
body[data-learning-page="daily-rounds"] #question-save-status[data-state="syncing"]::before{
  content:"";display:inline-block;width:.45rem;height:.45rem;border-radius:50%;background:var(--dr-accent);
  animation:dr-sync-breathe 1.5s ease-in-out infinite;
}
body[data-learning-page="daily-rounds"] #question-save-status[data-state="syncing"]{min-height:1rem}
body[data-learning-page="daily-rounds"] #question-save-status[data-state="saved"]::before{
  content:"";display:inline-block;width:.45rem;height:.45rem;border-radius:50%;background:var(--ll-green);
}
@keyframes dr-sync-breathe{0%,100%{opacity:.35}50%{opacity:1}}
@media(prefers-reduced-motion:reduce){body[data-learning-page="daily-rounds"] #question-save-status[data-state="syncing"]::before{animation:none}}
body[data-learning-page="daily-rounds"] .ll-pearl{
  border:1px solid var(--dr-edge);
  border-left-width:1px;
  border-radius:14px;
  background:var(--dr-panel);
  padding:clamp(1.1rem,3vw,1.75rem);
}
body[data-learning-page="daily-rounds"] .ll-pearl h3{
  font-size:1.2rem;margin-bottom:.55rem;
}
body[data-learning-page="daily-rounds"] .ll-pearl #attending-pearl{
  max-width:77ch;line-height:1.65;
}
body[data-learning-page="daily-rounds"] #pearl-source{
  display:flex;align-items:center;flex-wrap:wrap;gap:.35rem 1rem;
}
body[data-learning-page="daily-rounds"] #pearl-source .ll-fine-print{
  width:100%;font-size:.72rem;color:var(--ll-muted);
}
body[data-learning-page="daily-rounds"] .ll-completion{
  border:1px solid var(--dr-edge);
  border-radius:14px;
  background:var(--dr-panel);
  padding:clamp(1rem,3vw,1.7rem);
}
body[data-learning-page="daily-rounds"] .ll-completion .ll-pearl{
  border:0;border-top:1px solid var(--dr-edge);border-radius:0;
  padding:1.25rem 0;background:transparent;box-shadow:none;
}
body[data-learning-page="daily-rounds"] .ll-summary-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:1.2rem 0;
}
body[data-learning-page="daily-rounds"] .ll-summary-stat{
  padding:.95rem .75rem;
  border:1px solid var(--dr-edge);
  background:var(--dr-soft);
  min-width:0;
}
.dr-summary-sources{
  padding:1rem 0;margin:1.1rem 0;
  border-top:1px solid var(--dr-edge);
}
.dr-summary-sources h3{font-size:1rem;margin:0 0 .3rem}
.dr-summary-sources p{font-size:.85rem;color:var(--ll-muted);margin-bottom:.7rem}
.dr-summary-links{display:flex;flex-wrap:wrap;gap:.5rem 1.15rem}
.dr-summary-links .ll-round-resource{
  min-height:44px;
  max-width:100%;
  overflow-wrap:anywhere;
}
body[data-learning-page="daily-rounds"] .dr-miss-deck{border-color:var(--dr-edge)}
@media(min-width:641px) and (max-width:900px){
 .dr-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body[data-learning-page="daily-rounds"] .ll-summary-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
 body[data-learning-page="daily-rounds"] .ll-main{width:calc(100% - 24px);padding-top:1.15rem}
 body[data-learning-page="daily-rounds"] .ll-hero{gap:1.15rem;margin-bottom:1.2rem}
 body[data-learning-page="daily-rounds"] .ll-hero h1{font-size:clamp(2.25rem,9vw,3.1rem)}
 body[data-learning-page="daily-rounds"] .ll-hero-copy>p:not(.ll-context){font-size:.93rem}
 body[data-learning-page="daily-rounds"] .ll-private-note{padding:.8rem 1rem}
 body[data-learning-page="daily-rounds"] .ll-controls{align-items:stretch}
 body[data-learning-page="daily-rounds"] .ll-filter-group{flex:1 1 100%}
 body[data-learning-page="daily-rounds"] .ll-select{width:100%}
 .dr-preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
 .dr-preview-grid article{padding:.8rem}
 .dr-preview-grid h3{font-size:.85rem}
 .dr-preview-grid p{font-size:.76rem}
 .dr-session-intro{padding:.9rem!important}
 body[data-learning-page="daily-rounds"] .dr-sequence{gap:.6rem}
 body[data-learning-page="daily-rounds"] .dr-sequence li{font-size:.77rem}
 body[data-learning-page="daily-rounds"] .ll-round{padding:.6rem 0}
 body[data-learning-page="daily-rounds"] .ll-round-copy{grid-template-columns:minmax(0,1fr)}
 body[data-learning-page="daily-rounds"] .dr-source-lesson{margin-left:2.6rem;justify-self:start}
 body[data-learning-page="daily-rounds"] .ll-feedback-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}
 body[data-learning-page="daily-rounds"] .ll-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dr-summary-links{flex-direction:column;align-items:flex-start}
 .dr-primary{width:100%}
}
@media(max-width:380px){
 .dr-preview-grid{grid-template-columns:minmax(0,1fr)}
}
/* Practice content must use the same light palette as its dialog. */
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"]{--ll-bg:#f7f5f9;--ll-bg-deep:#f0edf3;
  --ll-surface:#fff;--ll-surface-raised:#fff;
  --ll-surface-active:#eee6f5;
  --ll-line:#d8cadf;--ll-line-strong:#b6a2c2;
  --ll-text:#24202c;--ll-muted:#5d5069;--ll-subtle:#70637a;
  --ll-violet:#67388f;--ll-violet-strong:#552777;--ll-violet-ink:#fff;
  --ll-gold:#7b5116;--ll-green:#276240;--ll-red:#af3744;
  --dr-canvas:#f7f5f9;--dr-panel:#fff;--dr-soft:#f8f5fb;
  --dr-edge:#ddd3e4;--dr-heading:#2a2033;--dr-subtle:#63566f;
  --dr-accent:#67388f;--dr-rail:#8352ad;
  background:var(--dr-canvas);
  color-scheme:light;}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-site-header{background:#281c32;border-color:#281c32}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-brand{color:#fff!important}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-brand small{color:#ded2e6}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-account-link{color:#fff!important;border-color:#755985}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-select{color-scheme:light}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-track-switch button[aria-pressed="true"]{background:#eadcf3;color:#2a183a}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-private-note, html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-round, html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-pearl, html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-completion, html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .dr-preview, html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .dr-session-intro{box-shadow:0 10px 28px rgba(43,27,58,.035)}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-empty, html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-state-card{background:#fff}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-access-message{background:#f8f2fc;border-color:#cbb3dd}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-access-message p{color:#584862}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-kind-repair{color:#8a5c18}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-kind-transfer{color:#674080}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-kind-retention{color:#246842}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-pearl #pearl-source a{color:#633b8a}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-round[data-kind]{background:#fff}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-complete-label{color:#1f603a}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-footer{color:#64576d;border-color:#ddd1e3}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] :is(.ll-question-stem,.ll-post-labs,.ll-lab-result,.ll-feedback,.ll-feedback p,.ll-feedback li,.ll-feedback strong){color:var(--ll-text)}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] :is(.ll-post-labs,.ll-lab-table){background:var(--ll-surface)}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] :is(.ll-lab-table thead th){background:var(--ll-surface-active);color:var(--ll-text)}
html[data-bw-study-scheme="light"] body[data-learning-page="daily-rounds"] .ll-lab-table :is(th,td){border-color:var(--ll-line)}
@media (prefers-color-scheme:light){
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"]{--ll-bg:#f7f5f9;--ll-bg-deep:#f0edf3;
  --ll-surface:#fff;--ll-surface-raised:#fff;
  --ll-surface-active:#eee6f5;
  --ll-line:#d8cadf;--ll-line-strong:#b6a2c2;
  --ll-text:#24202c;--ll-muted:#5d5069;--ll-subtle:#70637a;
  --ll-violet:#67388f;--ll-violet-strong:#552777;--ll-violet-ink:#fff;
  --ll-gold:#7b5116;--ll-green:#276240;--ll-red:#af3744;
  --dr-canvas:#f7f5f9;--dr-panel:#fff;--dr-soft:#f8f5fb;
  --dr-edge:#ddd3e4;--dr-heading:#2a2033;--dr-subtle:#63566f;
  --dr-accent:#67388f;--dr-rail:#8352ad;
  background:var(--dr-canvas);
  color-scheme:light;}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-site-header{background:#281c32;border-color:#281c32}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-brand{color:#fff!important}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-brand small{color:#ded2e6}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-account-link{color:#fff!important;border-color:#755985}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-select{color-scheme:light}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-track-switch button[aria-pressed="true"]{background:#eadcf3;color:#2a183a}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-private-note, html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-round, html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-pearl, html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-completion, html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .dr-preview, html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .dr-session-intro{box-shadow:0 10px 28px rgba(43,27,58,.035)}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-empty, html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-state-card{background:#fff}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-access-message{background:#f8f2fc;border-color:#cbb3dd}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-access-message p{color:#584862}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-kind-repair{color:#8a5c18}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-kind-transfer{color:#674080}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-kind-retention{color:#246842}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-pearl #pearl-source a{color:#633b8a}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-round[data-kind]{background:#fff}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-complete-label{color:#1f603a}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-footer{color:#64576d;border-color:#ddd1e3}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] :is(.ll-question-stem,.ll-post-labs,.ll-lab-result,.ll-feedback,.ll-feedback p,.ll-feedback li,.ll-feedback strong){color:var(--ll-text)}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] :is(.ll-post-labs,.ll-lab-table){background:var(--ll-surface)}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] :is(.ll-lab-table thead th){background:var(--ll-surface-active);color:var(--ll-text)}
html:not([data-bw-study-scheme="dark"]) body[data-learning-page="daily-rounds"] .ll-lab-table :is(th,td){border-color:var(--ll-line)}
}


/* Director's reader typography gate: consistent sans-serif medical teaching,
   no mini-text in the application, pearl, or wrap-up surfaces. */
body[data-learning-page="daily-rounds"] #pearl-section #attending-pearl{
  font-family:var(--ll-sans)!important;
  font-size:clamp(15px,1.03rem,18px)!important;
  font-weight:400;
  line-height:1.65;
}
body[data-learning-page="daily-rounds"] :is(#rounds-section,#pearl-section,#completion-summary)
:is(.ll-context,.ll-count-note,.ll-fine-print,.ll-round-resource,.ll-complete-label,
.ll-summary-stat span,.dr-summary-sources p,.dr-summary-sources span,
.ll-round-copy p,#pearl-meta,#pearl-source span,#pearl-source a){
  font-size:max(13px,.82rem)!important;
  line-height:1.5;
}
body[data-learning-page="daily-rounds"] #pearl-meta{
  letter-spacing:.04em;
  text-transform:uppercase;
}
body[data-learning-page="daily-rounds"] .ll-round-copy h3{
  font-weight:700;
  overflow-wrap:anywhere;
}
body[data-learning-page="daily-rounds"] #summary-source-links a{
  max-width:100%;
  overflow-wrap:anywhere;
}
@media(max-width:640px){
 body[data-learning-page="daily-rounds"] :is(#rounds-section,#pearl-section,#completion-summary)
 :is(.ll-context,.ll-count-note,.ll-fine-print,.ll-round-resource,.ll-complete-label,
 .ll-summary-stat span,.dr-summary-sources p,.dr-summary-sources span,
 .ll-round-copy p,#pearl-meta,#pearl-source span,#pearl-source a){
   font-size:max(12px,.77rem)!important;
 }
}

/* UI audit: preview has one next action; authenticated controls stay out of the public state. */
#learning-app[data-status="preview"] .ll-controls{display:none}
#learning-app[data-status="preview"] .ll-sync-status{display:none}

/* The reader fills the space below the shared site header at every width. */
#practice-dialog[open]{
  width:100vw;
  max-width:none;
  height:calc(100dvh - var(--bw-modern-header-height,0px));
  max-height:calc(100dvh - var(--bw-modern-header-height,0px));
  margin:0;
}

/* Shared study-MCQ tokens follow the same resolved theme or OS scheme as the reader. */

/* Rounds redesign (Mo 10-31, from his mock): a title with a slim journey strip,
   the saved exam (read-only) beside the system filter, then four step cards:
   warm-up (painted scene), question set, optional practice, recommended
   reading. Both the standalone page and the study workspace's Rounds tab use
   these rules; colors come from the site theme's study tokens when present. */
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds){
  --dr-card:var(--study-surface,var(--dr-panel,#191421));
  --dr-card-line:var(--study-line-strong,var(--dr-edge,#4a3956));
  --dr-ink:var(--study-ink,var(--ll-text,#fbf8ff));
  --dr-ink-2:var(--study-ink-2,var(--ll-muted,#cfc1d6));
  --dr-ink-3:var(--study-ink-3,var(--ll-muted,#cfc1d6));
  --dr-accent:var(--study-accent,#d8baf8);
  --dr-accent-ink:var(--study-accent-ink,#1b1030);
  --dr-green:var(--study-green,#54d6a0);
  --dr-gold:var(--study-gold,#f4cf7a);
  --dr-display:var(--study-font-display,"Newsreader",Georgia,serif);
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-hero{display:block;margin:0 0 16px;gap:0}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-hero .ll-hero-copy{max-width:none}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-eyebrow{
  display:flex;align-items:center;gap:8px;margin:0 0 6px;
  color:var(--dr-accent);font:600 .8125rem/1.3 var(--study-font-body,inherit);letter-spacing:.08em;text-transform:uppercase;
}
.dr-eyebrow svg{flex:0 0 auto;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-hero h1{
  margin:0 0 6px;max-width:none;color:var(--dr-ink);
  font:500 clamp(2.25rem,7vw,3.25rem)/1.08 var(--dr-display);letter-spacing:-.02em;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-hero .dr-subtitle{
  margin:0;max-width:60ch;color:var(--dr-ink-2);font-size:1rem;line-height:1.5;
}

/* Journey strip: a painted path the wizard walks as the day's steps get done. */
.dr-journey{container-type:inline-size;margin-top:16px}
.dr-journey[hidden]{display:none!important}
.dr-journey-scene{
  position:relative;overflow:hidden;isolation:isolate;
  --dr-art-ground:var(--study-ground,var(--dr-canvas,#0b0d1d));
  height:min(33.333cqw,200px);border-radius:16px;
  border:1px solid var(--dr-card-line,rgba(255,255,255,.2));
  background:var(--dr-art-ground);transition:background-color .5s ease,filter .5s ease;
}
/* Match the Today image fade to the current site Theme without changing the
   painted path selected by the viewer's clock. Paper fades into the page's
   light ground; Night, Exam and Lights Out fade into their own dark grounds. */
.dr-journey-scene::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(180deg,var(--dr-art-ground),transparent 12%,transparent 76%,var(--dr-art-ground));
}
/* Wider than a phone, the strip keeps its path band and crops sky and rocks. */
.dr-journey-frame{position:absolute;left:0;width:100%;bottom:calc((min(33.333cqw,200px) - 33.333cqw) * .45)}
.dr-journey-strip{display:block;width:100%;height:auto}
.dr-journey-wizard{
  position:absolute;width:auto;max-width:none;pointer-events:none;
  translate:var(--anchor-x,-50%) var(--anchor-y,-99%);
  filter:drop-shadow(0 2px 3px rgba(0,0,0,.45));
}
.dr-journey .bw-art-glow[hidden]{display:none!important}
.dr-journey[data-motion="off"] .bw-art-glow,.dr-journey[data-motion="off"] .bw-art-glow::after{animation:none!important}
/* By day the lit lanterns are a softer warm spot: still clearly lit, never a night flare. */
.dr-journey-scene[data-art-light="day"] .dr-journey-glow{opacity:.62}
.dr-journey-scene[data-art-light="day"]{background:var(--dr-art-ground)}
/* Lights Out and Exam: the paintings sit about a quarter dimmer on the darker page. */
html:is([data-bw-theme="lights-out"],[data-bw-theme="exam"]) :is(.dr-journey-scene,.dr-step-art){filter:brightness(.75)}

/* Exam (read-only, set in Account settings) and the system filter on one row. */
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-controls{
  display:grid;grid-template-columns:minmax(0,1fr);gap:4px;margin:0 0 4px;padding:0;border:0;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-controls .ll-filter-group{
  display:grid;grid-template-columns:minmax(0,auto) minmax(9.5rem,1fr);align-items:stretch;gap:10px;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-exam{
  display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:52px;padding:6px 12px;
  border:1px solid var(--dr-card-line);border-radius:14px;background:var(--dr-card);
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-exam-label{color:var(--dr-ink-3);font-size:.75rem;line-height:1.2;font-weight:600}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-exam-value{color:var(--dr-ink);font-size:.9375rem;line-height:1.3;font-weight:600;overflow-wrap:anywhere}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-controls .ll-control-label{display:block;min-width:0}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-controls .ll-control-label>span{
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-controls .ll-select{
  width:100%;height:100%;min-height:52px;padding:0 34px 0 14px;border:1px solid var(--dr-card-line);border-radius:14px;
  background-color:var(--dr-card);color:var(--dr-ink);font-size:1rem;
  -webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f8aa3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:18px 18px;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-exam-change{
  justify-self:start;display:inline-flex;align-items:center;min-height:44px;
  color:var(--dr-accent);font-size:.875rem;font-weight:600;text-decoration:underline;text-underline-offset:3px;
}

/* Step cards. */
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step{
  position:relative;margin:16px 0 0;padding:20px;
  border:1px solid var(--dr-card-line);border-radius:18px;background:var(--dr-card);color:var(--dr-ink);
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step[hidden]{display:none!important}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-warmup{padding:0;overflow:hidden}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-body{padding:18px 20px 20px}
.dr-step-warmup{container-type:inline-size}
.dr-step-art{position:relative;overflow:hidden;isolation:isolate;container-type:inline-size;height:min(40cqw,230px);background:var(--study-ground,var(--dr-canvas,#0b0d1d));transition:background-color .5s ease,filter .5s ease}
.dr-step-art:empty{display:none}
.dr-step-art .bw-art{position:absolute;inset:0;z-index:0}
.dr-step-art .bw-art-frame{top:auto;bottom:calc((min(40cqw,230px) - 56.28cqw) * .55)}
/* The scene settles into the card: a soft fade at its foot. */
.dr-step-art::after{content:"";position:absolute;inset:auto 0 0;height:38%;z-index:1;pointer-events:none;
  background:linear-gradient(to bottom,transparent,var(--dr-card))}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-label{
  display:flex;align-items:center;gap:12px;margin:0;color:var(--dr-ink-2);
  font:600 .8125rem/1.3 var(--study-font-body,inherit);letter-spacing:.07em;text-transform:uppercase;
}
.dr-step-name{min-width:0}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-meta{
  margin-left:auto;color:var(--dr-ink-3);font-size:.875rem;letter-spacing:0;text-transform:none;font-weight:500;white-space:nowrap;
}
.dr-step-icon{
  --tone:var(--dr-accent);
  display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:40px;height:40px;border-radius:12px;
  background:color-mix(in srgb,var(--tone) 14%,transparent);color:var(--tone);
}
.dr-step-warmup .dr-step-icon{width:24px;height:24px;background:none;border-radius:0}
.dr-step-optional .dr-step-icon{--tone:var(--dr-green)}
.dr-step-reading .dr-step-icon{--tone:var(--dr-gold)}
.dr-step-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-title{
  margin:14px 0 6px;color:var(--dr-ink);font:500 clamp(1.5rem,5.4vw,1.75rem)/1.2 var(--dr-display);letter-spacing:-.01em;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-copy{margin:0 0 14px;color:var(--dr-ink-2);font-size:1rem;line-height:1.55}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-cta{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin:4px 0 0;padding:0 20px;
  border:0;border-radius:12px;background:var(--dr-accent);color:var(--dr-accent-ink);font-size:1.0625rem;font-weight:650;cursor:pointer;
}
/* The site-wide control geometry (header stylesheet, 2px corners) yields to the mock's rounded controls here. */
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) #learning-app #start-warmup{border-radius:12px!important}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) #learning-app #system-filter{border-radius:14px!important;border-color:var(--dr-card-line)!important}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) #learning-app #refresh-learning{border-radius:12px!important}
.dr-arrow{display:inline-block;font-weight:500}
/* Text actions in the cards: the question set, optional practice and reading links. */
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step :is(.dr-step-link,#start-rounds){
  --tone:var(--dr-accent);
  display:inline-flex!important;align-items:center;gap:10px;min-height:44px;width:auto;max-width:100%;margin:0;padding:0!important;
  border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;
  color:var(--tone)!important;font-size:1.0625rem;font-weight:650;text-align:left;text-decoration:none;cursor:pointer;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step :is(.dr-step-link,#start-rounds)[hidden]{display:none!important}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step #start-rounds::after{content:"→";font-weight:500}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step #start-rounds:disabled{opacity:.55;cursor:default}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-optional .dr-step-link{--tone:var(--dr-green)}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-reading .dr-step-link{--tone:var(--dr-gold)}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step :is(.dr-step-link,#start-rounds):focus-visible{outline:2px solid var(--tone);outline-offset:4px;border-radius:6px!important}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step .dr-start-actions{margin:2px 0 0;gap:2px}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step #start-rounds-caption{color:var(--dr-ink-3);font-size:.8125rem}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step .dr-session-progress{
  display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:0 0 6px;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step .dr-session-progress label{color:var(--dr-ink-2);font-size:.875rem;min-height:0}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step .dr-session-progress progress{
  height:6px;border:0;border-radius:99px;overflow:hidden;background:color-mix(in srgb,var(--dr-ink) 12%,transparent);accent-color:var(--dr-accent);
}
.dr-step .dr-session-progress progress::-webkit-progress-bar{background:color-mix(in srgb,var(--dr-ink) 12%,transparent);border-radius:99px}
.dr-step .dr-session-progress progress::-webkit-progress-value{background:var(--dr-accent);border-radius:99px}
.dr-step .dr-session-progress progress::-moz-progress-bar{background:var(--dr-accent);border-radius:99px}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step .dr-session-note{margin:0 0 4px;color:var(--dr-ink-3);font-size:.8125rem;line-height:1.45}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-question-list{width:100%;max-width:none;margin:8px 0 0;border-top:1px solid color-mix(in srgb,var(--dr-ink) 10%,transparent)}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-question-list>summary{
  display:flex;align-items:center;min-height:44px;color:var(--dr-ink-2);font-size:.9375rem;font-weight:600;cursor:pointer;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-question-list .ll-round-list{display:grid;gap:8px;margin:4px 0 0}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-questions .ll-round{
  margin:0;padding:12px;border:1px solid color-mix(in srgb,var(--dr-ink) 12%,transparent);border-radius:14px;background:transparent;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step .ll-recommendation{display:grid;justify-items:start;gap:4px;padding:0;border:0;border-radius:0;background:none}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step .ll-recommendation>*{max-width:none}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step .ll-recommendation h3{
  margin:0;color:var(--dr-ink);font:600 1rem/1.4 var(--study-font-body,inherit);
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step .ll-recommendation p{margin:0;color:var(--dr-ink-3);font-size:.875rem}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step .ll-recommendation .dr-source-lesson{margin:0;color:var(--dr-ink-2)}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-reading-list{display:grid;gap:0;margin:0;padding:0;list-style:none}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-reading-list li{margin:0;padding:0}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-reading-link span:first-child{overflow-wrap:anywhere}

/* The warm-up deck opens inside its card after "Start warm-up". */
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-warmup[data-warmup="closed"] #daily-recall-list{display:none}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-warmup[data-warmup="open"] .dr-step-copy{display:none}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-warmup .dr-warmup-head>h2{
  position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-warmup .dr-warmup-head{justify-content:flex-end}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-warmup #daily-fact-review{margin:8px 0 0}

/* Footnote: Miss Deck and a manual refresh, under the cards. */
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-miss-deck{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:24px 0 0;padding:16px 0 0;border-top:1px solid var(--dr-card-line);
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-miss-deck>div{flex:1 1 100%}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-miss-deck h2{margin:0 0 4px;color:var(--dr-ink);font:600 1rem/1.4 var(--study-font-body,inherit)}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-miss-deck p{margin:0;color:var(--dr-ink-3);font-size:.875rem}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-miss-deck .dr-refresh{width:auto;min-height:44px;margin-left:auto}
@media (min-width:760px){
  :is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step{padding:24px 28px}
  :is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-warmup{padding:0}
  :is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-body{padding:22px 28px 26px}
  :is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-cta{width:auto;min-width:240px}
}

/* Full account obligation, distinct from the smaller Daily Rounds question set. */
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-review-total{
  margin:12px 0 0;padding:11px 14px;border:1px solid var(--dr-card-line);
  border-radius:14px;background:var(--dr-card);color:var(--dr-ink-2);
  font-size:.875rem;line-height:1.5;overflow-wrap:anywhere;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-review-total strong{
  color:var(--dr-ink);font-weight:700;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-review-total-list{
  list-style:none;margin:6px 0 0;padding:0;display:grid;gap:2px;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-step-name [data-step-number]{
  margin-inline-end:.5em;
}
:is(body[data-learning-page="daily-rounds"], #bw-study-frame .study-mounted-rounds) .dr-review-total-note{display:block;margin-top:6px;}
