/* fresh.css · Start fresh (Oct 6, Ollie): the small dialog the rail's user row opens, which clears everything this browser
   holds. One dim behind it; the dialog is centred on desktop and a bottom sheet on phones. Raised with html[data-skin] like
   peek.css, so the skin's own rules do not win. Opened by app.js freshOpen(); #/fresh clears with no dialog. */
html[data-skin] .ds-fresh-dim { position: fixed; z-index: 160; inset: 0; background: rgba(4, 10, 24, .46); opacity: 0; transition: opacity .22s ease; }
html[data-skin] .ds-fresh-dim.on { opacity: 1; }
html[data-skin] .ds-fresh-dim[hidden] { display: none; }
html[data-skin] .ds-fresh { position: fixed; z-index: 161; left: 50%; top: 50%; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 22px 22px; background: var(--ds-paper); color: var(--ds-ink); border: 1px solid var(--ds-line-strong); border-radius: 18px; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .55); opacity: 0; transform: translate(-50%, -50%) translateY(8px) scale(.985); transition: opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
html[data-skin] .ds-fresh.on { opacity: 1; transform: translate(-50%, -50%); }
html[data-skin] .ds-fresh[hidden] { display: none; }
html[data-skin] .ds-fresh-who { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 0 0 14px; border-bottom: 1px solid var(--ds-line); }
html[data-skin] .ds-fresh-who > div { flex: 1 1 auto; min-width: 0; }
html[data-skin] .ds-fresh-who b { display: block; font-size: var(--ds-fs-3); font-weight: 600; }
html[data-skin] .ds-fresh-who span:not(.ds-rail-avatar) { display: block; font-size: var(--ds-fs-2); color: var(--ds-muted); }
html[data-skin] .ds-fresh-x { flex: none; width: 28px; height: 28px; margin: 0; padding: 0; display: grid; place-items: center; background: var(--ds-paper); border: 1px solid var(--ds-line-strong); border-radius: 50%; color: var(--ds-ink); font: inherit; font-size: 18px; line-height: 1; }
html[data-skin] .ds-fresh-x:hover { background: var(--ds-wash); border-color: var(--ds-blue); color: var(--ds-blue); }
html[data-skin] .ds-fresh-t { margin: 0 0 8px; font-size: var(--ds-fs-8); font-weight: 650; letter-spacing: -.035em; line-height: 1.12; }
html[data-skin] .ds-fresh-s { margin: 0 0 16px; font-size: var(--ds-fs-4); line-height: 1.45; color: var(--ds-muted); }
html[data-skin] .ds-fresh-list { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--ds-line); }
html[data-skin] .ds-fresh-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ds-line); font-size: var(--ds-fs-4); }
html[data-skin] .ds-fresh-list b { font-weight: 600; font-variant-numeric: tabular-nums; }
html[data-skin] .ds-fresh-none { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: var(--ds-tint); font-size: var(--ds-fs-4); color: var(--ds-muted); }
html[data-skin] .ds-fresh-keep { margin: 0 0 18px; font-size: var(--ds-fs-2); color: var(--ds-muted); }
html[data-skin] .ds-fresh-acts { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-skin] .ds-fresh-acts .ds-btn:disabled { opacity: .7; cursor: default; }
body.ds-fresh-open .ds-totop { opacity: 0; visibility: hidden; }
@media (max-width: 720px) {
  html[data-skin] .ds-fresh { left: 12px; right: 12px; top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: calc(100dvh - 72px); transform: translateY(16px); border-radius: 18px; }
  html[data-skin] .ds-fresh.on { transform: none; }
  html[data-skin] .ds-fresh-acts .ds-btn { flex: 1 1 auto; }
}
body.ds-still .ds-fresh, body.ds-still .ds-fresh-dim { transition: none; }
@media (prefers-reduced-motion: reduce) { html[data-skin] .ds-fresh, html[data-skin] .ds-fresh-dim { transition: none; } }
