/* Mutual ⚚ Anonymous Chat — app styles. No inline styles anywhere (CSP: style-src 'self'). */
:root[data-theme="midnight"] {
  --bg: #0a0c11; --bg2: #10131a; --surf: #161a23; --surf2: #1e232f; --line: #262c39; --txt: #e8eaf0; --muted: #8a92a3;
  --accent: #7df2c8; --ink: #04261b; --orb-hi: #d4ffee; --orb-lo: #1b8f6c; --sym: #ffffff;
  --dng: #ff6b7a; --dng-ink: #2a0509; --warn: #ffcb6b;
  --glow: rgba(125,242,200,.35); --tint: rgba(125,242,200,.11);
  --wall: #0a0c11;
  --scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f4f6fb; --bg2: #ffffff; --surf: #ffffff; --surf2: #e8ebf3; --line: #d6dce9; --txt: #151a24; --muted: #566074;
  --accent: #2fd7a8; --ink: #04261b; --orb-hi: #e6fff6; --orb-lo: #12a07a; --sym: #151a24;
  --dng: #d12f45; --dng-ink: #ffffff; --warn: #9a5b00;
  --glow: rgba(47,215,168,.35); --tint: rgba(47,215,168,.11);
  --wall: #f4f6fb;
  --scheme: light;
}
:root[data-theme="ocean"] {
  --bg: #07121f; --bg2: #0b1a2b; --surf: #11233a; --surf2: #183150; --line: #223e60; --txt: #e6f0fb; --muted: #8aa3bf;
  --accent: #5cb8ff; --ink: #031a30; --orb-hi: #d6eeff; --orb-lo: #1769b3; --sym: #ffffff;
  --dng: #ff6b7a; --dng-ink: #2a0509; --warn: #ffcb6b;
  --glow: rgba(92,184,255,.35); --tint: rgba(92,184,255,.11);
  --wall: url('/img/bg-ocean.svg') center / cover no-repeat, #07121f;
  --scheme: dark;
}
:root[data-theme="sunset"] {
  --bg: #140c0a; --bg2: #1c1210; --surf: #271915; --surf2: #34221c; --line: #46302a; --txt: #fdeee6; --muted: #b99a8c;
  --accent: #ff9a62; --ink: #2e1004; --orb-hi: #ffe3d2; --orb-lo: #c4501a; --sym: #ffffff;
  --dng: #ff6b7a; --dng-ink: #2a0509; --warn: #ffcb6b;
  --glow: rgba(255,154,98,.35); --tint: rgba(255,154,98,.11);
  --wall: url('/img/bg-sunset.svg') center / cover no-repeat, #140c0a;
  --scheme: dark;
}
:root[data-theme="rose"] {
  --bg: #150a10; --bg2: #1d1017; --surf: #28151f; --surf2: #361c2b; --line: #4a2a3c; --txt: #fdecf3; --muted: #bc96a8;
  --accent: #ff8fb8; --ink: #3a0620; --orb-hi: #ffe0ec; --orb-lo: #c0356f; --sym: #ffffff;
  --dng: #ff6b7a; --dng-ink: #2a0509; --warn: #ffcb6b;
  --glow: rgba(255,143,184,.35); --tint: rgba(255,143,184,.11);
  --wall: url('/img/bg-rose.svg') center / cover no-repeat, #150a10;
  --scheme: dark;
}
:root[data-theme="violet"] {
  --bg: #0d0a18; --bg2: #131023; --surf: #1b1730; --surf2: #251f42; --line: #342c58; --txt: #eeeafd; --muted: #9d95c4;
  --accent: #b79bff; --ink: #1a0a45; --orb-hi: #e9e0ff; --orb-lo: #5b3fc4; --sym: #ffffff;
  --dng: #ff6b7a; --dng-ink: #2a0509; --warn: #ffcb6b;
  --glow: rgba(183,155,255,.35); --tint: rgba(183,155,255,.11);
  --wall: url('/img/bg-violet.svg') center / cover no-repeat, #0d0a18;
  --scheme: dark;
}
:root[data-theme="forest"] {
  --bg: #0a120d; --bg2: #0f1913; --surf: #15231a; --surf2: #1d3024; --line: #2a4433; --txt: #e8f3ec; --muted: #8fac9a;
  --accent: #8fe388; --ink: #0a2a08; --orb-hi: #dcfad8; --orb-lo: #2f8a2a; --sym: #ffffff;
  --dng: #ff6b7a; --dng-ink: #2a0509; --warn: #ffcb6b;
  --glow: rgba(143,227,136,.35); --tint: rgba(143,227,136,.11);
  --wall: url('/img/bg-forest.svg') center / cover no-repeat, #0a120d;
  --scheme: dark;
}
:root[data-theme="black"] {
  --bg: #000000; --bg2: #0a0a0a; --surf: #121212; --surf2: #1c1c1c; --line: #2a2a2a; --txt: #f2f2f2; --muted: #9a9a9a;
  --accent: #ffffff; --ink: #000000; --orb-hi: #ffffff; --orb-lo: #666666; --sym: #ffffff;
  --dng: #ff6b7a; --dng-ink: #2a0509; --warn: #ffcb6b;
  --glow: rgba(255,255,255,.35); --tint: rgba(255,255,255,.11);
  --wall: url('/img/bg-black.svg') center / cover no-repeat, #000000;
  --scheme: dark;
}

/* readability scrim behind the home text on the picture themes */
:root[data-theme="ocean"], :root[data-theme="sunset"], :root[data-theme="rose"], :root[data-theme="violet"], :root[data-theme="forest"], :root[data-theme="black"] {
  --scrim: rgba(0, 0, 0, .52); --scrim-text: rgba(0, 0, 0, .75);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--txt);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; overflow: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes breathe { 50% { transform: scale(1.07); } }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes warnPulse { 0% { box-shadow: 0 0 0 0 rgba(255,70,90,.55); } 70% { box-shadow: 0 0 0 9px rgba(255,70,90,0); } 100% { box-shadow: 0 0 0 0 rgba(255,70,90,0); } }
@keyframes warnTilt { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(-14deg); } 30% { transform: rotate(12deg); } 45% { transform: rotate(-8deg); } 60% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ shell */
.app {
  position: relative; width: 100%; max-width: 760px; height: var(--app-h, 100dvh); margin: 0 auto;
  display: flex; flex-direction: column; overflow: hidden; background: var(--wall);
}
@media (min-width: 800px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.screen { display: none; flex: 1; min-height: 0; flex-direction: column; }
.screen.active { display: flex; }
.scroll { overflow-y: auto; padding: 24px 18px; }
.scroll > * { width: 100%; max-width: 520px; margin-left: auto; margin-right: auto; }
.banner { position: absolute; z-index: 20; top: 0; left: 0; right: 0; padding: 8px; text-align: center; font-size: 13px; background: var(--warn); color: #1c1200; }

/* ------------------------------------------------------------------- home */
.home { position: relative; align-items: center; justify-content: center; text-align: center; padding: 24px;
  background: radial-gradient(60% 40% at 50% 30%, var(--tint), transparent 70%), radial-gradient(75% 45% at 50% 52%, var(--scrim, transparent), transparent 100%); }
.home .tagline, .home .consent, .home .online, .home .brand { text-shadow: 0 1px 8px var(--scrim-text, transparent); }
.orb { border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--orb-hi), var(--accent) 35%, var(--orb-lo) 78%); animation: breathe 4.5s ease-in-out infinite; }
.orb--big { width: 112px; height: 112px; margin-bottom: 24px; box-shadow: 0 0 70px var(--glow); }
.orb--mid { width: 54px; height: 54px; background: radial-gradient(circle at 35% 30%, var(--orb-hi), var(--accent) 40%, var(--orb-lo) 82%); animation-duration: 2s; }
.brand { margin: 0; font-size: 15px; line-height: 1.3; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; }
.sym { color: var(--sym); }
.tagline { margin: 12px 0 26px; color: var(--muted); max-width: 260px; }
.consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; max-width: 300px; color: var(--muted); font-size: 14px; margin-bottom: 18px; cursor: pointer; }
.consent input { margin: 2px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.link { border: 0; background: none; padding: 0; font-size: inherit; color: var(--txt); text-decoration: underline; }
.link--small { color: var(--muted); font-size: 13px; }
.rules-link { position: absolute; bottom: 14px; }
.btn-start { border: 0; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 18px; padding: 16px 44px; border-radius: 999px; min-width: 220px; transition: opacity .2s; }
.btn-start:disabled { opacity: .3; }
.home-note { margin: 16px 0 0; max-width: 300px; font-size: 14px; color: var(--warn); }
.online { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-top: 18px; font-variant-numeric: tabular-nums; }
.online__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 8px #3ddc84; animation: pulse 2.4s ease-in-out infinite; }
.online__num { display: inline-flex; height: 20px; }
.digit { display: block; height: 20px; overflow: hidden; }
.digit__col { display: flex; flex-direction: column; transition: transform .8s cubic-bezier(.15,.85,.25,1); }
.digit__col span, .sep { display: block; height: 20px; line-height: 20px; text-align: center; }

/* --------------------------------------------------------------- settings */
.h2 { margin: 0 0 22px; font-size: 22px; }
.h2--flat { margin: 0; }
.sub-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.round-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surf2); color: var(--txt); flex: none; }
.round-btn--s { width: 32px; height: 32px; }
.card-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 22px; background: var(--surf); color: var(--txt); text-align: left; }
.card-row__text { flex: 1; min-width: 0; display: block; }
.card-row__title { display: block; font-size: 17px; font-weight: 700; }
.card-row__sub { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.card-row__chev { color: var(--muted); display: grid; place-items: center; }
.theme-chip { flex: none; width: 56px; height: 56px; border-radius: 16px; border: 1px solid var(--line); background: var(--wall); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding-left: 11px; }
.theme-chip i { display: block; height: 7px; border-radius: 4px; }
.theme-chip__a { width: 26px; background: var(--accent); }
.theme-chip__b { width: 18px; background: var(--surf2); }
.lang-chip { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--surf2); color: var(--accent); }
.avatar-slot { display: block; flex: none; border-radius: 50%; overflow: hidden; line-height: 0; }
.avatar-slot svg { display: block; }
.label { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.label-row .label { margin: 0; }
.muted-s { font-size: 12.5px; color: var(--muted); }
.avatar-big { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 16px; }
.avatar-big .muted-s { font-size: 13px; }
.avatar-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px 4px; margin-bottom: 28px; }
.avatar-pick { justify-self: center; display: grid; place-items: center; padding: 2px; border: 2px solid transparent; border-radius: 50%; background: none; }
.avatar-pick[aria-pressed="true"] { border-color: var(--accent); }
.seg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
.seg3 button { border: 0; border-radius: 14px; padding: 12px 8px; font-size: 15px; font-weight: 600; background: var(--surf2); color: var(--txt); }
.hint-neg { margin: -14px 0 24px; font-size: 12.5px; color: var(--muted); }
.chips3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.chips3 button, .chips3 .chip { height: 42px; min-width: 0; border: 0; border-radius: 14px; padding: 0 6px; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--surf2); color: var(--txt); }
.seg3 button[aria-pressed="true"], .chips3 button[aria-pressed="true"], .chips3 .chip--on { background: var(--accent); color: var(--ink); }
.theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.theme-opt { display: flex; align-items: center; gap: 10px; padding: 10px; border: 2px solid var(--line); border-radius: 16px; background: var(--surf); color: var(--txt); text-align: left; }
.theme-opt[aria-pressed="true"] { border-color: var(--accent); }
.theme-opt__sw { flex: none; width: 56px; height: 44px; border-radius: 12px; border: 1px solid; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; padding-left: 9px; }
.theme-opt__sw i { display: block; height: 6px; border-radius: 3px; }
.theme-opt__sw i:first-child { width: 24px; }
.theme-opt__sw i:last-child { width: 16px; }
.theme-opt__name { font-size: 14px; font-weight: 600; }
.lang-opt { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; margin-bottom: 10px; border: 2px solid var(--line); border-radius: 18px; background: var(--surf); color: var(--txt); font-size: 16px; font-weight: 600; text-align: left; }
.lang-opt__tick { display: grid; place-items: center; color: var(--accent); opacity: 0; }
.lang-opt[aria-pressed="true"] { border-color: var(--accent); }
.lang-opt[aria-pressed="true"] .lang-opt__tick { opacity: 1; }

/* -------------------------------------------------------------------- tabs */
.tabs { flex: none; display: flex; gap: 8px; padding: 6px 12px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg2); }
.tab { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.tab__pill { display: grid; place-items: center; width: 58px; height: 30px; border-radius: 15px; background: transparent; color: var(--muted); }
.tab[aria-current="page"] { color: var(--txt); }
.tab[aria-current="page"] .tab__pill { background: var(--accent); color: var(--ink); }

/* -------------------------------------------------------------------- chat */
.chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(20px + env(safe-area-inset-top)) 12px 10px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.head-avatar { flex: none; padding: 0; border: 0; background: none; border-radius: 50%; display: block; }
.head-avatar.is-ended { opacity: .45; }
.head-q { width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surf2); color: var(--muted); font-size: 18px; font-weight: 700; animation: pulse 1.4s ease-in-out infinite; }
.head-text { flex: 1; min-width: 0; line-height: 1.25; position: relative; top: 1.25px; }
.head-title { line-height: 1.1; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dots i { font-style: normal; animation: blink 1.4s infinite; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
.head-sub { display: flex; align-items: center; gap: 6px; margin-top: -1px; padding-left: 1px; height: 16px; line-height: 16px; font-size: 14px; font-weight: 600; letter-spacing: .04em; font-variant-caps: all-small-caps; color: var(--muted); }
.head-sub > span:last-child { display: block; height: 16px; line-height: 16px; position: relative; top: -1px; left: -2px; }
.st-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.st-dot.is-on { color: #3ddc84; }
.st-dot.is-warn { color: var(--warn); animation: pulse 1.2s ease-in-out infinite; }
.st-dot.is-idle { color: var(--dng); }
.st-x { flex: none; display: block; position: relative; top: 1px; color: var(--dng); }
.rpt { width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--surf2); color: var(--dng); flex: none; position: relative; left: 1px; transition: transform .15s ease, background .2s ease, opacity .2s; }
.rpt:active { transform: scale(.88); }
.rpt:hover:not(:disabled) { background: rgba(255,70,90,.18); }
.rpt:disabled { opacity: .35; }
.rpt.fx { animation: warnPulse 1.3s ease-out infinite; }
.rpt.fx svg { animation: warnTilt 1.3s ease-in-out infinite; transform-origin: 50% 60%; }
.btn-skip { flex: none; width: 64px; height: 32px; border: 0; border-radius: 999px; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-indent: .16em; text-align: center; text-transform: uppercase; background: var(--accent); color: var(--ink); }
.searching { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; color: var(--muted); font-size: 15px; text-align: center; padding: 0 24px; }
.chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.msgs { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 16px 14px 8px; overscroll-behavior: contain; }
.msgs::before { content: ''; margin-top: auto; }
.b { max-width: 78%; padding: 9px 14px; overflow-wrap: anywhere; white-space: pre-wrap; animation: pop .18s ease-out; }
.b--me { align-self: flex-end; border-radius: 18px 18px 6px 18px; background: var(--accent); color: var(--ink); }
.b--them { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: var(--surf2); color: var(--txt); }
.b--failed { align-self: flex-end; padding: 8px 13px; border-radius: 18px 18px 6px 18px; border: 1px solid var(--dng); color: var(--dng); background: transparent; }
.b--sysin { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: var(--surf2); color: var(--txt); white-space: pre-line; }
.b__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.sys { align-self: center; max-width: 85%; padding: 8px 14px; text-align: center; font-size: 13px; border-radius: 12px; background: transparent; color: var(--muted); animation: pop .18s ease-out; }
.sys--warn { color: var(--warn); }
.stk { align-self: flex-end; padding: 2px 4px; animation: pop .18s ease-out; }
.stk--them { align-self: flex-start; }
.stk img { display: block; width: 120px; height: 120px; object-fit: contain; }
.stk__ph { width: 110px; height: 110px; border: 1.5px dashed var(--line); border-radius: 18px; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; margin: 0 14px 6px; width: fit-content; background: var(--surf2); border-radius: 18px 18px 18px 6px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.stickers { flex: none; border-top: 1px solid var(--line); background: var(--bg2); }
.stickers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 12px 6px; }
.stickers__grid button { border: 0; padding: 0; background: none; height: 72px; display: grid; place-items: center; }
.stickers__grid img { max-width: 100%; max-height: 72px; object-fit: contain; }
.stickers__grid .ph { width: 100%; height: 100%; border: 1.5px dashed var(--line); border-radius: 14px; display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.stickers__packs { display: flex; gap: 6px; padding: 4px 12px 8px; overflow-x: auto; }
.stickers__packs button { flex: none; height: 34px; padding: 0 12px; border: 0; border-radius: 17px; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; background: transparent; color: var(--muted); }
.stickers__packs button[aria-pressed="true"] { background: var(--surf2); color: var(--txt); }
.stickers__packs span { width: 16px; height: 16px; border: 1.5px dashed currentColor; border-radius: 5px; }
.composer { flex: none; display: flex; gap: 8px; align-items: center; padding: 8px 12px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg2); }
.ico-btn { width: 40px; height: 44px; border: 0; background: none; flex: none; display: grid; place-items: center; color: var(--muted); margin-right: -4px; }
.ico-btn:disabled { opacity: .28; }
.composer input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--surf); color: var(--txt); font-size: 16px; }
.composer input:disabled { opacity: .5; }
.send { width: 44px; height: 44px; border: 0; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--ink); transition: opacity .2s; }
.send:disabled { opacity: .28; }

/* ----------------------------------------------------------------- dialogs */
.overlay { position: absolute; inset: 0; z-index: 10; background: rgba(0,0,0,.6); display: flex; }
.overlay--center { align-items: center; justify-content: center; padding: 20px; }
.overlay--sheet { align-items: flex-end; z-index: 11; }
.dialog { width: 100%; max-width: 420px; background: var(--surf); border: 1px solid var(--line); border-radius: 22px; padding: 22px; max-height: 100%; overflow-y: auto; }
.dialog__title { margin: 0 0 10px; font-size: 19px; }
.dialog__eyebrow { margin: 0 0 8px; font-size: 15px; line-height: 1.3; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; }
.dialog__small { margin: 0 0 12px; color: var(--muted); font-size: 14px; font-variant: small-caps; letter-spacing: .03em; position: relative; top: -2px; }
.dialog__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.reason { display: flex; gap: 10px; align-items: center; padding: 9px 2px; cursor: pointer; }
.reason input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn-soft, .btn-danger, .btn-accent { border: 0; border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 700; }
.btn-soft { background: var(--surf2); color: var(--txt); }
.btn-danger { background: var(--dng); color: var(--dng-ink); }
.btn-accent { background: var(--accent); color: var(--ink); }
.rules { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 9px; }
.rules b { color: var(--txt); }
.sheet { position: relative; width: 100%; max-width: 760px; margin: 0 auto; background: var(--surf); border-top: 1px solid var(--line); border-radius: 26px 26px 0 0; padding: 22px 18px calc(26px + env(safe-area-inset-bottom)); }
.sheet__close { position: absolute; top: 14px; right: 14px; }
.sheet__top { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.sheet__name { margin-top: 6px; font-size: 19px; font-weight: 700; }
.sheet__note { min-height: 18px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
