/* Reminders sheet. Uses the site tokens from navig-ui.css (ink, muted, line, raised, surface, accent, radius, font) and the shared .nv-pick / .nv-seg chip spec.
   Same surface, border, radius and shadow as the header info panel (info-modal-styles.css). */
.notify-sheet:focus,.notify-sheet:focus-visible { outline:0; }
.notify-sheet { color-scheme:light; position:fixed; inset:auto auto 8px 412px; box-sizing:border-box; width:440px; max-width:calc(100vw - 16px); max-height:calc(100dvh - 16px); margin:0; padding:0; overflow:hidden; border:1px solid var(--nv-line); border-radius:var(--nv-r); background:var(--nv-raised,#fff); color:var(--nv-ink); box-shadow:var(--nv-shadow); font:.875rem/1.45 var(--nv-font); }
.notify-sheet::backdrop { background:rgba(18,19,22,.3); }
.notify-sheet *, .notify-sheet *::before, .notify-sheet *::after { box-sizing:border-box; }
.notify-sheet [hidden] { display:none!important; }
.notify-core { display:flex; flex-direction:column; min-width:0; max-height:calc(100dvh - 18px); background:var(--nv-raised,#fff); overflow:hidden; }
.notify-grab { flex:none; width:36px; height:4px; margin:10px auto 0; border-radius:2px; background:var(--nv-line); }
.notify-sheet header { position:sticky; top:0; z-index:4; flex:none; display:flex; align-items:center; gap:4px; min-height:52px; padding:1px 12px 0 20px; background:var(--nv-raised,#fff); }
.notify-sheet h2 { flex:1; margin:0; font-size:1rem; font-weight:600; letter-spacing:-.01em; }
.notify-sheet[data-view=list] h2 { font-size:1.5rem; }
.notify-sheet h2 small { margin-left:6px; color:var(--nv-muted); font-size:1rem; font-weight:400; }
.notify-sheet h3 { font-size:.9375rem; font-weight:500; }
:where(.notify-sheet button:not(.nv-pick):not(.nv-seg-item)),.notify-sheet summary { min-height:44px; min-width:44px; color:inherit; font:inherit; cursor:pointer; touch-action:manipulation; }
:where(.notify-sheet button:not(.nv-pick):not(.nv-seg-item)) { border:0; border-radius:var(--nv-r); background:transparent; padding:0 10px; transition:transform .2s var(--nv-ease),background .2s,border-color .2s; }
.notify-sheet button:disabled { opacity:.5; cursor:not-allowed; }
.notify-sheet button:focus-visible,.notify-sheet input:focus-visible,.notify-sheet summary:focus-visible { outline:2px solid var(--nv-ink); outline-offset:2px; }
.notify-sheet button:active:not(:disabled) { transform:scale(.97); }
.notify-sheet .notify-close { width:44px; padding:12px; color:var(--nv-muted); }
.notify-close svg { width:18px; height:18px; }
.notify-body { min-height:0; flex:1 1 auto; overflow:auto; overscroll-behavior:contain; padding:0 20px 16px; }
.notify-hero { padding:8px 0 18px; }
.notify-stop { margin:0 0 10px; color:var(--nv-muted); font-size:.75rem; font-weight:500; letter-spacing:.04em; }
.notify-stop span { margin-left:7px; color:var(--nv-muted); font-variant-numeric:tabular-nums; }
.notify-sentence { margin:0; font-size:1.4375rem; font-weight:400; line-height:1.22; letter-spacing:-.02em; color:var(--nv-ink); text-wrap:pretty; overflow-wrap:anywhere; }
.notify-sentence strong { font-weight:600; }
.notify-row { display:grid; grid-template-columns:66px minmax(0,1fr); align-items:center; gap:10px; min-height:62px; padding:10px 0; border-top:1px solid var(--nv-line); }
.notify-row-label { color:var(--nv-muted); font-size:.8125rem; }
.notify-row-control { min-width:0; }
/* Shared chip spec: 36px visual, 44px hit (::after), selected = yellow fill with ink border. */
.notify-sheet .notify-options { display:flex; width:100%; }
.notify-sheet .notify-options .nv-seg-item { flex:1; min-width:0; min-height:36px; padding:4px 6px; font-size:.8125rem; line-height:1.15; white-space:normal; text-align:center; color:var(--nv-ink); }
.notify-services { display:flex; flex-wrap:wrap; gap:8px; }
.notify-sheet .notify-services .nv-pick { min-width:44px; min-height:36px; padding:4px 12px; font-size:.8125rem; }
.notify-top { align-items:start; }
.notify-top>.notify-row-label { padding-top:12px; }
.notify-toggle>span { display:block; position:relative; width:34px; height:20px; background:var(--nv-surface); border:1px solid var(--nv-line); border-radius:10px; pointer-events:none; transition:background .2s,border-color .2s; }
.notify-toggle>span::after { content:""; position:absolute; left:2px; top:2px; width:14px; height:14px; background:var(--nv-ink); border-radius:50%; transition:transform .2s var(--nv-ease),background .2s; }
.notify-toggle[aria-checked=true]>span { background:var(--nv-ink); border-color:var(--nv-ink); }
.notify-toggle[aria-checked=true]>span::after { background:var(--nv-raised,#fff); transform:translateX(14px); }
.notify-sheet .notify-link { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:44px; min-width:44px; padding:2px 0; border:0; background:none; color:var(--nv-muted); font-size:.8125rem; text-decoration:underline; text-underline-offset:3px; white-space:normal; }
.notify-link-arrow { display:inline-flex; transform:rotate(135deg); }
.notify-link-arrow svg { width:12px; height:12px; }
.notify-sheet .notify-telegram-link { justify-content:flex-start; min-height:44px; }
.notify-help { margin:6px 0; color:var(--nv-muted); font-size:.8125rem; line-height:1.5; }
.notify-permission { margin:6px 0 0; text-align:center; }
.notify-device-note { margin:0 0 8px; color:var(--nv-ink); font-size:.8125rem; line-height:1.4; }
.notify-local-note { padding-top:7px; }
.notify-sheet [data-status] { margin:0; color:var(--nv-bad); font-size:.8125rem; line-height:1.4; }
.notify-sheet [data-status]:not(:empty) { padding:0 0 8px; }
.notify-sheet [data-status][data-kind=success] { color:var(--nv-ok); }
.notify-footer { position:sticky; bottom:0; z-index:3; flex:none; margin:0; padding:12px 20px 14px; background:var(--nv-raised,#fff); border-top:1px solid var(--nv-line); }
/* Primary action: same as .nv-btn (solid ink). */
.notify-sheet .notify-primary { display:flex; align-items:center; justify-content:space-between; gap:8px; width:100%; min-height:50px; padding:8px 10px 8px 18px; border:1px solid var(--nv-ink); border-radius:var(--nv-r); background:var(--nv-ink); color:var(--nv-raised,#fff); font:500 .9375rem var(--nv-font); }
.notify-primary-icon { display:grid; place-items:center; width:32px; height:32px; flex:none; border-radius:var(--nv-r); background:rgba(255,255,255,.14); }
.notify-primary-icon svg { width:17px; height:17px; }
.notify-disclaimer { margin:8px 0 0; font-size:.75rem; text-align:center; }
.notify-sheet input[type=time] { display:flex; align-items:center; width:100%; min-height:44px; padding:0 12px; border:1px solid var(--nv-line); border-radius:var(--nv-r); background:var(--nv-raised,#fff); color:var(--nv-ink); font:1rem/44px var(--nv-font); text-align:left; }
.notify-until { margin:6px 0 0; color:var(--nv-muted); font-size:.8125rem; }
.notify-dest { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:44px; font-size:.9375rem; }
.notify-dest-state { color:var(--nv-muted); font-size:.8125rem; text-align:right; }
.notify-sheet .notify-dest .notify-link { min-height:44px; padding:2px 0; }
.notify-channels .notify-settings-help,.notify-channels .notify-install-help,.notify-channels .notify-device-note { margin:0 0 6px; }
.notify-sentence.is-summary { font-size:1.0625rem; line-height:1.4; letter-spacing:-.005em; }
.notify-list { padding-top:10px; }
.notify-rule { display:flex; align-items:start; gap:10px; padding:18px 0; border-bottom:1px solid var(--nv-line); }
.notify-rule-main { flex:1; min-width:0; }
.notify-rule p { margin:0 0 10px; font-size:.9375rem; line-height:1.5; overflow-wrap:anywhere; }
.notify-rule-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
/* Status: semantic site tokens (ok, info, warn, bad) as a small dot plus ink text; ended is muted. */
.notify-state { display:inline-flex; align-items:center; gap:6px; padding:2px 8px; border:1px solid var(--nv-line); border-radius:var(--nv-r); background:var(--nv-surface); color:var(--nv-ink); font-size:.75rem; line-height:1.5; }
.notify-state::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--nv-ok); }
.notify-state[data-waiting=true]::before { background:var(--nv-info); }
.notify-state[data-state=paused]::before { background:var(--nv-warn); }
.notify-state[data-state=attention]::before { background:var(--nv-bad); }
.notify-state[data-state=ended] { color:var(--nv-muted); }
.notify-state[data-state=ended]::before { background:var(--nv-muted); }
.notify-rule-actions { display:flex; flex-direction:column; align-items:center; }
.notify-sheet .notify-toggle { display:grid; place-items:center; width:44px; min-width:44px; padding:0; }
.notify-rule details,.notify-header-menu { position:relative; }
.notify-sheet summary { display:grid; place-items:center; min-width:44px; min-height:44px; list-style:none; color:var(--nv-muted); font-size:.8125rem; }
.notify-rule summary { width:44px; font-size:1.25rem; letter-spacing:2px; }
.notify-sheet summary::-webkit-details-marker { display:none; }
.notify-overflow { position:absolute; z-index:5; top:44px; right:0; display:grid; min-width:150px; max-width:calc(100vw - 32px); padding:4px; background:var(--nv-raised,#fff); border:1px solid var(--nv-line); border-radius:var(--nv-r); box-shadow:var(--nv-shadow); }
.notify-overflow button { text-align:left; white-space:normal; }
.notify-empty { padding:24px 0 30px; }
.notify-empty p { margin:0 0 12px; font-size:1.1875rem; letter-spacing:-.01em; }
.notify-empty small { display:block; color:var(--nv-muted); font-size:.8125rem; line-height:1.6; }
.notify-empty .notify-primary { margin-top:20px; justify-content:center; }
.notify-empty .notify-help { margin-top:12px; font-size:.8125rem; }
.notify-sheet .notify-erase { margin-top:12px; font-size:.8125rem; }
.notify-skeleton { height:220px; margin:12px 0; background:var(--nv-surface); border-radius:var(--nv-r); }
.notify-toast { position:fixed; z-index:3000; left:50%; bottom:24px; transform:translateX(-50%); width:max-content; max-width:calc(100vw - 32px); padding:12px 18px; border-radius:var(--nv-r); background:var(--nv-ink); color:var(--nv-raised,#fff); font:.875rem/1.5 var(--nv-font); }
.bus-sheet .notify-entry { display:flex; align-items:center; gap:10px; width:100%; min-height:48px; min-width:44px; padding:8px 0; border:0; border-radius:0; background:var(--nv-raised,#fff); color:var(--nv-ink); text-align:left; font-size:.875rem; font-weight:500; scroll-margin-top:84px; }
.bus-sheet .notify-entry svg { width:18px; height:18px; }
.notify-entry-chevron { display:flex; margin-left:auto; transform:rotate(180deg); opacity:.8; }
.bus-sheet .notify-entry.notify-home { position:relative; width:auto; min-height:36px; min-width:0; padding:0 12px; gap:6px; border:1px solid var(--nv-line); border-radius:var(--nv-r); font-size:.8125rem; font-weight:600; }
.bus-sheet .notify-entry.notify-home::after { content:""; position:absolute; inset:-4px; }
.bus-sheet .notify-entry.notify-home svg { width:16px; height:16px; }
.notify-home [data-notify-count]:not(:empty) { margin-left:0; min-width:18px; padding:0 5px; border-radius:var(--nv-r); background:var(--nv-ink); color:var(--nv-raised,#fff); font-size:.6875rem; line-height:18px; text-align:center; }
.notify-bell { position:relative; }
.bus-stop-toolbar .notify-bell,.bus-stop-toolbar [data-notify-list] { width:40px; height:40px; min-width:40px; min-height:40px; border:1px solid var(--nv-line); border-radius:var(--nv-r); background:var(--nv-raised,#fff); }
.bus-stop-toolbar [data-notify-list] { width:auto; padding:0 8px; }
.notify-install-help { margin:4px 0 12px; padding-left:18px; color:var(--nv-ink); font-size:.8125rem; line-height:1.55; }
.notify-install-help li { padding-left:2px; margin-bottom:5px; }
.notify-settings-help { margin:0 0 10px; padding:0; color:var(--nv-muted); font-size:.8125rem; line-height:1.5; }
@media(max-width:900px) and (min-width:768px) { .notify-sheet { left:auto; right:8px; } }
@media(max-width:767px) { .notify-sheet { inset:auto 0 0; width:100%; max-width:100%; max-height:calc(100dvh - 16px); border-width:1px 0 0; border-radius:var(--nv-r) var(--nv-r) 0 0; }.notify-body { padding-inline:16px; }.notify-footer { padding:12px 16px calc(12px + env(safe-area-inset-bottom)); }.notify-sheet header { padding-left:16px; padding-right:10px; }.notify-row { grid-template-columns:62px minmax(0,1fr); gap:8px; } }
@media(max-width:370px) { .notify-body { padding-inline:12px; }.notify-footer { padding-inline:12px; } }
@media(max-height:500px) { .notify-sheet { inset:8px; width:calc(100vw - 16px); max-width:none; max-height:calc(100dvh - 16px); border-width:1px; border-radius:var(--nv-r); }.notify-core { max-height:calc(100dvh - 18px); }.notify-sheet header { min-height:48px; }.notify-hero { padding-top:4px; padding-bottom:12px; }.notify-footer { padding-block:8px; }.notify-disclaimer { margin-top:4px; } }
@media(prefers-reduced-motion:no-preference) { .notify-sheet[open] { animation:notify-sheet-in .38s var(--nv-ease) both; }.notify-sheet[data-enter=true] .notify-settings>.notify-row { animation:notify-row-in .38s var(--nv-ease) both; }.notify-settings>.notify-row:nth-child(2) { animation-delay:40ms; }.notify-settings>.notify-row:nth-child(3) { animation-delay:80ms; } }
@keyframes notify-sheet-in { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
@keyframes notify-row-in { from { opacity:0; transform:translateY(5px); } to { opacity:1; transform:none; } }
@media(prefers-reduced-motion:reduce) { .notify-sheet * { animation:none!important; transition:none!important; }.notify-sheet button:active { transform:none!important; } }
