#account-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; padding: 9px; background: var(--atlas-surface, var(--paper, #111827)); border: 1px solid var(--atlas-border, var(--line, #52606b)); border-radius: 7px; color: var(--ink, #e8ebf5); }
#account-btn:hover { background: var(--atlas-hover, var(--surface, #243345)); }
#account-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
button#progress-counter { background: transparent; border: 0; border-left: 1px solid var(--line); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
#progress-dialog { position: fixed; inset: 0; margin: auto; width: min(610px, calc(100vw - 24px)); max-height: min(88dvh, 880px); padding: 0; background: var(--atlas-surface, var(--paper, #111827)); color: var(--ink, #e8ebf5); border: 1px solid var(--atlas-border, var(--rule, #52606b)); border-radius: 14px; box-shadow: 0 24px 80px #0007; font: 14px/1.55 "Segoe UI", system-ui, sans-serif; }
#progress-dialog::backdrop { background: #071016a8; backdrop-filter: blur(4px); }
#progress-dialog [hidden] { display: none !important; }
#progress-dialog .progress-head { position: sticky; top: 0; display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line, var(--rule)); background: var(--atlas-surface, var(--paper, #111827)); z-index: 1; }
#progress-dialog h2 { margin: 0; font: 500 25px/1.2 Georgia, serif; flex: 1; }
#progress-dialog h3 { margin: 0 0 10px; font: 600 16px/1.4 "Segoe UI", system-ui, sans-serif; }
#progress-dialog p { margin: 0 0 12px; }
#progress-dialog .progress-body { padding: 22px; }
#progress-dialog section { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line, var(--rule)); }
#progress-dialog .progress-kicker { color: var(--accent, var(--rust)); font-size: 12px; font-weight: 600; }
#progress-dialog .progress-muted { font-size: 12px; color: var(--ink-dim, var(--muted)); line-height: 1.6; }
#progress-dialog label { display: block; font-size: 13px; margin: 12px 0 6px; }
#progress-dialog input:not([type=checkbox]) { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--atlas-border, var(--rule, #52606b)); background: var(--atlas-surface-soft, var(--paper, #111827)); color: inherit; border-radius: 6px; font: inherit; }
#progress-dialog button { min-height: 44px; padding: 9px 13px; border: 1px solid var(--atlas-border, var(--rule, #52606b)); border-radius: 6px; background: transparent; color: inherit; font: 500 13px/1.4 "Segoe UI", system-ui, sans-serif; }
#progress-dialog button:hover:not(:disabled) { background: var(--atlas-hover, var(--surface, #243345)); }
#progress-dialog button:disabled { opacity: .55; cursor: default; }
#progress-dialog .progress-primary { background: var(--atlas-primary, #315c4a); color: var(--atlas-surface, #fff); margin-top: 10px; }
#progress-dialog .progress-primary:hover:not(:disabled) { filter: brightness(1.1); background: var(--atlas-primary, #315c4a); }
#progress-dialog :is(button,input):focus-visible { outline: 2px solid var(--accent, var(--rust)); outline-offset: 2px; }
#progress-dialog .progress-check { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; }
#progress-dialog input[type=checkbox] { margin-top: 4px; width: 16px; height: 16px; flex-shrink: 0; }
#progress-dialog .progress-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
#progress-meter { display: block; width: 100%; height: 10px; margin: 12px 0; accent-color: var(--accent, var(--rust)); }
#progress-list { list-style: none; margin: 12px 0; padding: 0; max-height: 30dvh; overflow-y: auto; }
#progress-list li + li { border-top: 1px solid var(--line, var(--rule)); }
#progress-list button { width: 100%; text-align: left; border: 0; }
#account-message:empty { display: none; }
#account-message { margin-top: 12px !important; }
@media (max-width: 720px) {
  #progress-dialog .progress-head, #progress-dialog .progress-body { padding: 16px; }
  #progress-dialog h2 { font-size: 22px; }
  html.river-atlas .river-moment { width: 76px; }
  html.river-atlas #river-year { font-size: 16px; white-space: normal; }
  html.river-atlas #river-population { display: none; }
}
@media (max-width: 380px) { html.river-atlas #brand h1 { font-size: 21px; } html.river-atlas .river-moment { width: 60px; } }
