/* Settings as a pop-up sheet over the page, like OpenAI's (the Founder, 17 October 2026, 07:12; settings-sheet.js). A
   grouped grey ground; the title large with a round close at the top right; the plan on a card; rows on rounded cards,
   each with its icon, its word and a chevron, a hairline between rows. It rises from the bottom over the page, the page
   dimmed above it, never a page of its own (the Founder, 21 October 2026); on a computer it is a card in the middle. */
.settings-sheet{--ss-ground:#f2f2f6;--ss-card:#fff;--ss-ink:#1c1b20;--ss-muted:#7b7b85;--ss-line:#e6e6eb;--ss-press:#0000000a;position:fixed;inset:auto 0 0;width:100%;max-width:none;height:auto;max-height:calc(100dvh - 48px - env(safe-area-inset-top,0px));margin:0;padding:0;border:0;border-radius:22px 22px 0 0;background:var(--ss-ground);color:var(--ss-ink);overflow:hidden;box-shadow:0 -10px 40px #1c142b33}
.settings-sheet[open]{display:flex;flex-direction:column}
@media (max-width:700px){.settings-sheet[open]{animation:sc-rise .24s cubic-bezier(.2,.8,.2,1)}}
@media (prefers-reduced-motion:reduce){.settings-sheet[open]{animation:none}}
@media (min-width:701px){.settings-sheet{inset:0;margin:auto;width:min(520px,calc(100vw - 32px));max-height:min(760px,88dvh);border-radius:22px;box-shadow:0 24px 60px #0004}}
body[data-theme=dark] .settings-sheet{--ss-ground:#0d0e12;--ss-card:#1a1b21;--ss-ink:#f0f1f5;--ss-muted:#9a9dab;--ss-line:#2b2d36;--ss-press:#ffffff0f}
.settings-sheet::backdrop{background:#0005}
.settings-sheet .ss-panel{box-sizing:border-box;flex:1 1 auto;min-height:0;width:100%;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px 16px calc(28px + env(safe-area-inset-bottom,0px));max-width:620px;margin:0 auto;outline:none}
.settings-sheet .ss-head{display:flex;flex-direction:column;align-items:stretch;margin-bottom:16px}
.settings-sheet .ss-close{order:-1;align-self:flex-end;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:1px solid var(--ss-line);background:var(--ss-card);color:var(--ss-ink);box-shadow:0 1px 4px #00000014;cursor:pointer}
.settings-sheet .ss-close .icon{width:20px;height:20px}
.settings-sheet h2{margin:14px 4px 0;font-size:32px;line-height:1.15;font-weight:700;letter-spacing:-.01em}
.settings-sheet .ss-card{margin:0 0 18px;padding:0;list-style:none;border-radius:22px;background:var(--ss-card);overflow:hidden}
.settings-sheet .ss-plan{padding:18px 20px 6px}
.settings-sheet .ss-plan-name{margin:0;font-size:18px;font-weight:600}
.settings-sheet .ss-plan-line{display:flex;justify-content:space-between;gap:12px;margin:6px 0 12px;color:var(--ss-muted);font-size:15px}
.settings-sheet .ss-plan-figure{color:var(--ss-ink);font-weight:600}
.settings-sheet .ss-plan-figure[data-unread]{color:var(--ss-muted);font-weight:400}
.settings-sheet .ss-plan-go{display:flex;align-items:center;min-height:48px;border-top:1px solid var(--ss-line);color:var(--purple,#6d28b5);font-size:16px;font-weight:500;text-decoration:none}
body[data-theme=dark] .settings-sheet .ss-plan-go{color:#c9a7f5}
.settings-sheet .ss-group>li+li .ss-row{border-top:1px solid var(--ss-line)}
.settings-sheet .ss-group>li{margin:0}
.settings-sheet .ss-row{display:flex;align-items:center;gap:14px;width:100%;min-height:58px;margin:0;padding:0 16px 0 18px;border:0;border-radius:0;background:transparent;color:var(--ss-ink);font:inherit;font-size:17px;text-align:start;text-decoration:none;cursor:pointer;box-sizing:border-box}
.settings-sheet .ss-group>li+li .ss-row{box-shadow:none}
.settings-sheet .ss-row:active{background:var(--ss-press)}
.settings-sheet .ss-icon{display:grid;place-items:center;flex:none;width:26px}
.settings-sheet .ss-icon .icon{width:23px;height:23px}
.settings-sheet .ss-word{flex:1;min-width:0}
/* The one line that tells of "Until I sign out" under Sign-in & security, until that page is opened once. */
.settings-sheet .ss-note{display:block;margin-top:2px;font-size:12px;line-height:16px;font-weight:400;color:var(--ss-muted);white-space:normal}
.settings-sheet .ss-chevron{display:grid;place-items:center;flex:none;color:var(--ss-muted)}
.settings-sheet .ss-chevron .icon{width:20px;height:20px}
[dir=rtl] .settings-sheet .ss-chevron .icon{transform:scaleX(-1)}
.settings-sheet .ss-row.danger,.settings-sheet .ss-row.danger .icon{color:var(--red,#bd3551)}
/* A finger leaves no ring; the keyboard's ring stays. */
.settings-sheet :focus:not(:focus-visible){outline:none}
.settings-sheet :is(.ss-row,.ss-plan-go):focus-visible{outline:2px solid var(--purple,#6d28b5);outline-offset:-3px;border-radius:14px}
.settings-sheet .ss-close:focus-visible{outline:2px solid var(--purple,#6d28b5);outline-offset:2px}
