dialog#station-about-dialog {
 --sheet-line:#d9d4c9; --sheet-panel:#f1ede4; --sheet-badge:#eae2d1; --sheet-accent:#6c5836; --sheet-link:#214e6a;
 width:min(432px,calc(100% - 28px)); max-height:calc(100dvh - 28px); padding:0;
 border:1px solid var(--sheet-line); border-radius:24px; overflow:hidden;
 box-shadow:0 24px 70px #14253b45;
}
dialog#station-about-dialog[open]{display:flex;flex-direction:column}
dialog#station-about-dialog::backdrop{background:#14243da1}
html[data-theme=dark] dialog#station-about-dialog {
 --sheet-line:#56534b; --sheet-panel:#303b3d; --sheet-badge:#404840; --sheet-accent:#e7ce9c; --sheet-link:#aacfe6;
}
#station-about-dialog .station-sheet-body{overflow:auto;overscroll-behavior:contain;padding:24px 22px 9px}
#station-about-dialog .station-sheet-header{display:flex;align-items:center;gap:14px;text-align:left;padding:0;margin:0}
#station-about-icon{width:54px;height:54px;display:grid;place-items:center;background:var(--sheet-badge);color:var(--sheet-accent);border-radius:16px;flex:none}
#station-about-icon svg{width:32px;height:32px;display:block}
#station-about-dialog h2{font:700 clamp(22px,7vw,31px)/1.08 Georgia,serif;margin:0;overflow-wrap:anywhere}
#station-about-latin{font:italic 16px/1.2 Georgia,serif;color:var(--muted);margin:5px 0 0}
#station-about-description{font:17px/1.45 Georgia,serif;margin:17px 0 19px}
#station-about-dialog .station-sheet-examples{background:var(--sheet-panel);border:1px solid var(--sheet-line);border-radius:16px;padding:14px 15px;margin:0}
#station-about-dialog .station-sheet-examples h3{font:700 15px/1.35 system-ui;margin:0 0 7px}
#station-about-examples{font:15px/1.4 system-ui;margin:0;padding-left:19px}
#station-about-examples li+li{margin-top:5px}
#station-about-examples li::marker{color:var(--sheet-accent)}
#station-about-dialog .station-sheet-examples p{font:13px/1.4 system-ui;color:var(--muted);margin:10px 0 0}
#station-about-dialog .station-sheet-details{margin-top:13px;border-top:1px solid var(--sheet-line);font:14px/1.45 system-ui}
#station-about-dialog .station-sheet-details summary{display:flex;align-items:center;justify-content:space-between;min-height:46px;gap:12px;cursor:pointer;font-weight:650;list-style:none}
#station-about-dialog .station-sheet-details summary::-webkit-details-marker{display:none}
#station-about-dialog .station-sheet-details summary::after{content:'';width:7px;height:7px;border:solid currentColor;border-width:0 1.7px 1.7px 0;transform:rotate(45deg);margin-right:3px}
#station-about-dialog .station-sheet-details[open] summary::after{transform:rotate(225deg)}
#station-about-dialog .station-sheet-details p{margin:0 0 10px}
#station-about-dialog .station-sheet-note{color:var(--muted);font-size:13px}
#station-about-source{color:var(--sheet-link);display:inline-flex;align-items:center;gap:6px;min-height:30px}
#station-about-source svg{width:17px;height:17px}
#station-about-dialog .station-sheet-footer{padding:11px 22px 19px;border-top:1px solid var(--sheet-line);flex:none;background:var(--paper)}
#station-about-close{margin:0;min-height:45px;font:650 15px/1.25 system-ui}
@media(max-width:350px){#station-about-dialog .station-sheet-body{padding:18px 16px 7px}#station-about-dialog .station-sheet-footer{padding:9px 16px 14px}}
/* Make the whole disclosure row look like a control. */
#station-about-dialog .station-sheet-details{border-top:0;margin-top:15px;padding:0}
#station-about-dialog .station-sheet-details summary{
 background:var(--sheet-panel);border:1px solid var(--sheet-line);
 border-radius:13px;padding:8px 11px 8px 13px;min-height:47px;gap:8px;
}
#station-about-dialog .station-sheet-details summary:focus-visible{outline:2px solid var(--sheet-link);outline-offset:2px}
#station-about-dialog .station-sheet-details summary::after{content:none}
#station-about-dialog .station-sheet-toggle{
 display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:none;
 background:var(--paper);border:1px solid var(--sheet-line);border-radius:8px;
 padding:4px 9px;font:700 13px/1.4 system-ui;color:var(--sheet-link);
}
#station-about-dialog .station-sheet-hide,#station-about-dialog details[open] .station-sheet-show{display:none}
#station-about-dialog details[open] .station-sheet-hide{display:inline}
#station-about-dialog .station-sheet-chevron{width:6px;height:6px;border:solid currentColor;border-width:0 1.6px 1.6px 0;transform:translateY(-1px) rotate(45deg)}
#station-about-dialog details[open] .station-sheet-chevron{transform:translateY(2px) rotate(225deg)}
#station-about-dialog .station-sheet-details[open] summary{margin-bottom:13px}
#station-about-dialog .station-history-portrait:not([hidden]){display:flex;align-items:center;gap:13px;margin:0 0 13px;padding:10px;background:var(--sheet-panel);border:1px solid var(--sheet-line);border-radius:12px}
#station-about-dialog .station-history-portrait img{object-fit:cover;object-position:50% 47%;border-radius:7px;flex:none}
#station-about-dialog .station-history-portrait figcaption{display:grid;gap:3px;color:var(--muted);font:13px/1.3 system-ui}
#station-about-dialog .station-history-portrait strong{font:700 19px/1.15 Georgia,serif;color:var(--ink)}
#station-about-dialog .station-history-portrait a{color:var(--sheet-link)}
.glossary-entry .station-heading-tools{display:block;margin-top:5px}.glossary-entry .station-about{min-height:44px}

#stations .station-plan-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:4px 0 0;padding:0 0 12px;border-bottom:1px solid var(--station-plan-divider,#9bb1a8)}
#stations .station-plan-options[hidden],#stations .station-plan-option[hidden]{display:none!important}
#stations .station-plan-option{min-width:0;text-align:center;display:grid;gap:7px;align-content:start}
#stations .station-plan-option[hidden]+.station-plan-option{grid-column:1/-1}
#stations .station-plan-option button{box-sizing:border-box;min-height:44px;width:100%;padding:7px 4px;border:1px solid;border-radius:9px;font:700 15px/1.2 Georgia,serif;box-shadow:none}
#stations .station-plan-option .station-skip{color:var(--station-skip-ink,#61473b);background:var(--station-skip-bg,#faf4ea);border-color:var(--station-skip-line,#987862)}
#stations .station-plan-option .station-remove{color:var(--station-remove-ink,#214f45);background:var(--station-remove-bg,#f1f8f2);border-color:var(--station-remove-line,#6d8f82)}
#stations .station-plan-caption{font:500 12px/1.25 system-ui,sans-serif;color:var(--station-caption-ink,#344b4d);overflow-wrap:anywhere}
#stations .station .station-edit-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:3px}
#stations .station .station-edit-options button{background:transparent;border-color:transparent;grid-column:auto;min-height:44px;width:100%}

html[data-theme=dark]{--station-plan-divider:#667a75;--station-skip-ink:#f4d6c4;--station-skip-bg:#392c28;--station-skip-line:#a57b66;--station-remove-ink:#caecdf;--station-remove-bg:#253a35;--station-remove-line:#71988a;--station-caption-ink:#d7e3e0}

.pocket-notebook #stations .station:not(.done):not(.skipped) .notebook-station-more .station-edit-options .station-note-button{grid-column:auto;width:100%}
#stations .station-outcome-actions:not([hidden]) .completion{grid-column:1/-1}

/* Remove should read as an available choice, not a disabled button. */
#stations .station-plan-option button.station-remove:not(:disabled){
  appearance:none;-webkit-appearance:none;opacity:1;
  color:#315448;background:#e5eee5;border:1px solid #69877a;
  -webkit-text-fill-color:currentColor;
}
html[data-theme=dark] #stations .station-plan-option button.station-remove:not(:disabled){
  color:#c3dfd2;background:#2b4037;border-color:#77988a;
}
/* Quick completion is primary; Boost stays beside it on the same row. */
#stations .station .station-outcome-actions:not([hidden]){
 display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);
 grid-column:1/-1;grid-row:auto;gap:7px;
}
.today-layout #stations.notebook-compact .station.next .station-outcome-actions:not([hidden]){
 grid-row:4;grid-column:1/-1;margin-block:3px;
}
#stations .station .station-outcome-actions:not([hidden]) :is(.completion,.station-boost-open){grid-column:auto;min-height:44px}
#stations .station .station-outcome-actions:not([hidden]) .station-boost-open{
 margin:0;background:#f5f8ef;color:#315448;border:1px solid #69877a;
}
html[data-theme=dark] #stations .station .station-outcome-actions:not([hidden]) .station-boost-open{
 background:#2b4037;color:#c3dfd2;border-color:#77988a;
}