/* STREAMIX account website (#1583). Tokens and components follow the account centre designs
   (AC-01 sign-in, AC-03 home, AC-07 devices, AC-13 security, AC-14 privacy and preferences,
   AC-18 TV pairing). Theme: <html class="sx sys|dark|light">, set
   before first paint by theme.js. */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-display: swap; font-weight: 200 900; src: url("/assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Dark (default) */
.sx {
  --bg: #10131B; --bg2: #0E0D12; --panel: rgba(38,38,44,.52); --glass-b: rgba(255,255,255,.07); --shadow: 0 1px 0 rgba(255,255,255,.02) inset;
  --field: rgba(255,255,255,.05); --s1: rgba(255,255,255,.05); --s2: rgba(255,255,255,.08); --s3: rgba(255,255,255,.14); --pop: #24242A;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12); --t1: #EDEDEA; --t2: #ABABA6; --t3: #8E8E88;
  --ac: #58BFEC; --ach: #73CBF0; --onac: #06222E; --act: #58BFEC; --acth: #73CBF0;
  --ok-t: #4CC38A; --warn-t: #E8B04B; --bad-t: #F27066; --onbad: #2A0B08; --scrim: rgba(8,8,12,.6); --inv-bg: #EDEDEA; --inv-t: #141413;
  --p1: rgba(88,191,236,.30); --p2: rgba(124,98,236,.24); --p3: rgba(40,196,170,.15); --p4: rgba(240,124,104,.12);
  --g-op: .07; --g-bl: overlay; --shadow-pop: 0 12px 32px rgba(0,0,0,.4);
  --cjk: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC";
  --sans: "Inter", var(--cjk), system-ui, sans-serif;
  --serif: "Source Serif 4", "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: dark;
}
.sx:lang(ja) {
  --cjk: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", "Noto Sans JP", "Noto Sans CJK JP";
  --serif: "Source Serif 4", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", Georgia, serif;
}
.sx.light {
  --bg: #F3F6FC; --bg2: #F8F6FA; --panel: rgba(255,255,255,.68); --glass-b: rgba(255,255,255,.9); --shadow: 0 10px 28px rgba(70,70,140,.08);
  --field: #FFFFFF; --s1: rgba(30,30,60,.04); --s2: rgba(30,30,60,.07); --s3: rgba(30,30,60,.11); --pop: #FFFFFF;
  --line: rgba(30,30,60,.08); --line2: rgba(30,30,60,.14); --t1: #16161B; --t2: #55555F; --t3: #6E6E7A;
  --act: #1A73A6; --acth: #145C85; --ok-t: #17804F; --warn-t: #8F5F00; --bad-t: #C0392B; --onbad: #FFFFFF; --scrim: rgba(30,30,60,.3);
  --inv-bg: #16161B; --inv-t: #FFFFFF;
  --p1: rgba(108,192,242,.42); --p2: rgba(156,134,255,.34); --p3: rgba(238,168,222,.26); --p4: rgba(255,255,255,.75);
  --g-op: .05; --g-bl: multiply; --shadow-pop: 0 12px 32px rgba(40,40,90,.14);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  .sx.sys {
    --bg: #F3F6FC; --bg2: #F8F6FA; --panel: rgba(255,255,255,.68); --glass-b: rgba(255,255,255,.9); --shadow: 0 10px 28px rgba(70,70,140,.08);
    --field: #FFFFFF; --s1: rgba(30,30,60,.04); --s2: rgba(30,30,60,.07); --s3: rgba(30,30,60,.11); --pop: #FFFFFF;
    --line: rgba(30,30,60,.08); --line2: rgba(30,30,60,.14); --t1: #16161B; --t2: #55555F; --t3: #6E6E7A;
    --act: #1A73A6; --acth: #145C85; --ok-t: #17804F; --warn-t: #8F5F00; --bad-t: #C0392B; --onbad: #FFFFFF; --scrim: rgba(30,30,60,.3);
    --inv-bg: #16161B; --inv-t: #FFFFFF;
    --p1: rgba(108,192,242,.42); --p2: rgba(156,134,255,.34); --p3: rgba(238,168,222,.26); --p4: rgba(255,255,255,.75);
    --g-op: .05; --g-bl: multiply; --shadow-pop: 0 12px 32px rgba(40,40,90,.14);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; position: relative; isolation: isolate;
  background: linear-gradient(165deg, var(--bg), var(--bg2)); background-attachment: fixed;
  color: var(--t1); font: 400 15px/1.5 var(--sans); overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: var(--act); text-decoration: none; }
a:hover { color: var(--acth); }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { margin: 16px; padding: 12px 14px; border-radius: 10px; background: var(--s2); }

/* Ambient background: four slow orbs and a grain layer (off for reduced motion) */
.amb { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.amb span { position: absolute; width: min(1100px, 150%); aspect-ratio: 1 / 1; border-radius: 50%; will-change: transform; }
.amb .o1 { left: -30%; top: 0; background: radial-gradient(closest-side, var(--p1), transparent); animation: sxa1 38s ease-in-out infinite alternate; }
.amb .o2 { right: -38%; top: 22%; background: radial-gradient(closest-side, var(--p2), transparent); animation: sxa2 46s ease-in-out infinite alternate; }
.amb .o3 { left: -36%; top: 55%; background: radial-gradient(closest-side, var(--p3), transparent); animation: sxa3 52s ease-in-out infinite alternate; }
.amb .o4 { right: -30%; top: 82%; background: radial-gradient(closest-side, var(--p4), transparent); animation: sxa4 41s ease-in-out infinite alternate; }
@keyframes sxa1 { from { transform: translate(0, -50%) scale(1); } to { transform: translate(12%, -42%) scale(1.16); } }
@keyframes sxa2 { from { transform: translate(0, -50%) scale(1.08); } to { transform: translate(-12%, -40%) scale(.92); } }
@keyframes sxa3 { from { transform: translate(0, -50%) scale(.94); } to { transform: translate(10%, -58%) scale(1.12); } }
@keyframes sxa4 { from { transform: translate(0, -50%) scale(1.1); } to { transform: translate(-10%, -60%) scale(.9); } }
.amb svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--g-op); mix-blend-mode: var(--g-bl); }
@media (prefers-reduced-motion: reduce) { .amb span { animation: none; } }

/* Wordmark in the ink that suits the theme */
.wm-link { display: inline-flex; width: max-content; }
.wm { display: block; width: auto; }
.wm-on-light { display: none; }
.sx.light .wm-on-dark { display: none; }
.sx.light .wm-on-light { display: block; }
@media (prefers-color-scheme: light) { .sx.sys .wm-on-dark { display: none; } .sx.sys .wm-on-light { display: block; } }

/* Type */
.eyebrow { font: 500 11px/16px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t3); margin: 0; }
.eyebrow-ac { color: var(--act); }
.eyebrow-value { color: var(--t2); letter-spacing: .08em; }

/* Controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 18px;
  border-radius: 8px; font: 600 14px/1 var(--sans); border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .12s cubic-bezier(.2, 0, 0, 1), border-color .12s;
}
.btn-p { background: var(--ac); color: var(--onac); }
.btn-p:hover { background: var(--ach); color: var(--onac); }
.btn-s { background: transparent; color: var(--t1); border-color: var(--line2); }
.btn-s:hover { background: var(--s1); color: var(--t1); }
.btn-g { background: transparent; color: var(--t2); height: 36px; padding: 0 8px; font-weight: 500; }
.btn-g:hover { color: var(--t1); background: var(--s1); }
.btn-block { width: 100%; margin-top: 16px; }
.btn-back { margin-left: -8px; }
.btn-link { height: 24px; font-size: 13px; margin-bottom: 8px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: default; }
.btn:focus-visible, .inp:focus-visible, .cell:focus-visible, .lang select:focus-visible, .menu-item:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.inp {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 8px; background: var(--field); border: 1px solid var(--line2);
  color: var(--t1); font: 400 15px/1 var(--sans);
}
.inp::placeholder { color: var(--t3); }
.inp[aria-invalid="true"], .cell[aria-invalid="true"] { border-color: var(--bad-t); }
.inp-code { font-family: var(--mono); font-size: 20px; letter-spacing: .18em; text-transform: uppercase; text-align: center; height: 56px; }
.lbl { display: block; font: 500 13px/18px var(--sans); color: var(--t2); margin: 0 0 8px; }
.lbl-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
form > .lbl + .inp + .lbl, form .inp + .lbl { margin-top: 16px; }
.cells-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cell { width: 100%; height: 56px; border-radius: 8px; background: var(--field); border: 1px solid var(--line2); color: var(--t1); text-align: center; font: 500 24px/1 var(--mono); padding: 0; }
.cell:focus { border-color: var(--act); }
.or { display: flex; align-items: center; gap: 12px; color: var(--t3); font-size: 12px; margin: 20px 0; }
.or + .btn-block { margin-top: 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.center { display: flex; justify-content: center; margin-top: 8px; }

/* Theme switch and language menu */
.tg { display: inline-flex; padding: 2px; border-radius: 9px; background: var(--s1); border: 1px solid var(--line); }
.tg button { width: 32px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 7px; background: transparent; color: var(--t3); cursor: pointer; }
.tg button:hover { color: var(--t1); }
.tg button[aria-pressed="true"] { background: var(--s3); color: var(--t1); }
.tg button:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.lang { position: relative; display: inline-flex; align-items: center; color: var(--t2); }
.lang select {
  appearance: none; -webkit-appearance: none; height: 36px; padding: 0 28px 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--t2); font: 500 14px/1 var(--sans); cursor: pointer;
}
.lang select:hover { background: var(--s1); color: var(--t1); }
.lang select option { background: var(--pop); color: var(--t1); }
.lang svg { position: absolute; right: 8px; pointer-events: none; }

/* Messages */
.msg { margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 20px; background: var(--s1); box-shadow: inset 3px 0 0 var(--tone, var(--bad-t)); }
.msg[data-tone="ok"] { --tone: var(--ok-t); }
.msg[data-tone="info"] { --tone: var(--act); }
.note { margin-top: 14px; font-size: 13px; line-height: 20px; color: var(--t3); }
.loading { color: var(--t2); font-size: 14px; }

/* Ticket (AC-01, AC-03) */
.tk {
  position: relative; display: flex; border-radius: 12px;
  --mk-main: radial-gradient(circle 10px at 100% 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 100% 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
  --mk-stub: radial-gradient(circle 10px at 0 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 0 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
}
.tk-main, .tk-stub { background: var(--panel); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); border: 1px solid var(--glass-b); box-shadow: var(--shadow); }
.tk-main { flex: 1 1 auto; min-width: 0; border-right: 0; border-radius: 12px 0 0 12px; -webkit-mask: var(--mk-main); mask: var(--mk-main); padding: 16px 18px; }
.tk-stub { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; border-left: 2px dashed var(--line2); border-radius: 0 12px 12px 0; -webkit-mask: var(--mk-stub); mask: var(--mk-stub); width: 124px; padding: 16px 18px; }
.tk-name { margin-top: 6px; font: 600 19px/26px var(--serif); }
.tk-date { margin-top: 6px; font-size: 13px; white-space: nowrap; }

/* Sign-in (AC-01) */
.signin { min-height: 100vh; min-height: 100dvh; display: flex; flex-wrap: wrap; }
.hero {
  flex: 1 1 560px; min-width: 0; background: var(--panel); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border-right: 1px solid var(--line); padding: 44px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.hero .wm { height: 26px; }
.hero-copy { max-width: 560px; }
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero-title { font: 600 clamp(40px, 4.4vw, 60px)/1.12 var(--serif); letter-spacing: -.01em; }
.hero-lead { margin-top: 20px; font-size: 15px; line-height: 25px; color: var(--t2); max-width: 460px; }
.tickets { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.tk-2 { margin-left: 36px; }
.tk-3 { margin-left: 72px; opacity: .55; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 12px; color: var(--t2); }
.platforms .soon { color: var(--t3); }
.auth { flex: 1 1 440px; min-width: 0; padding: 44px 24px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 40px; }
.auth-top { align-self: stretch; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.auth-wm { visibility: hidden; }
.auth-wm .wm { height: 22px; }
.auth-tools { display: flex; align-items: center; gap: 6px; }
.auth-main { width: 100%; max-width: 400px; }
.step-title { font-size: 28px; line-height: 36px; font-weight: 600; }
.btn-back + .step-title { margin-top: 16px; }
.step-title-gap { margin-bottom: 28px; }
.step-lead { margin: 10px 0 28px; font-size: 14px; line-height: 22px; color: var(--t2); }
.step-lead strong { color: var(--t1); font-weight: 400; }
.code-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; margin-top: 14px; font-size: 13px; color: var(--t3); }
.code-foot .btn-g { height: 28px; font-size: 13px; padding: 0 6px; }
.turnstile { margin-top: 16px; display: flex; justify-content: center; }
.trust { display: flex; gap: 10px; align-items: flex-start; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; line-height: 18px; color: var(--t3); }
.trust svg { flex: 0 0 auto; margin-top: 1px; }
.foot { display: flex; gap: 18px; font-size: 12px; color: var(--t3); }
.foot a { color: var(--t2); }
@media (max-width: 1000px) {
  .hero { display: none; }
  .auth-wm { visibility: visible; }
  .auth { padding: 20px 16px 28px; }
}

/* Signed-in pages (AC-03, AC-18) */
.top { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.top-l, .top-r { display: flex; align-items: center; gap: 14px; min-width: 0; }
.top-r { gap: 6px; }
.top .wm { height: 22px; }
.top-sep { width: 1px; height: 18px; background: var(--line2); }
.top-name { font-size: 14px; color: var(--t2); }
.menu { position: relative; }
.menu-button { gap: 10px; padding-right: 6px; }
.menu-email { font-size: 13.5px; color: var(--t1); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--s3); color: var(--t1); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; padding: 6px; border-radius: 12px; background: var(--pop); border: 1px solid var(--line2); box-shadow: var(--shadow-pop); z-index: 20; }
.menu-item { width: 100%; height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--t1); font: 500 14px/1 var(--sans); text-align: left; cursor: pointer; }
.menu-item:hover { background: var(--s1); }
@media (max-width: 640px) {
  .top-sep, .top-name, .menu-email { display: none; }
  .top .lang select { width: 44px; color: transparent; padding-right: 22px; }
  .top .lang select option { color: var(--t1); }
}

.pn { background: var(--panel); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); border: 1px solid var(--glass-b); box-shadow: var(--shadow); border-radius: 14px; padding: 22px 24px; }
.pn h2 { font-size: 16px; line-height: 24px; font-weight: 600; }
.pn-quiet { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-style: dashed; border-color: var(--line2); box-shadow: none; }
.ico { width: 38px; height: 38px; border-radius: 10px; background: var(--s2); display: inline-flex; align-items: center; justify-content: center; color: var(--t2); flex: 0 0 auto; }
.tn { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: var(--s1); font-size: 13px; line-height: 20px; color: var(--t1); box-shadow: inset 3px 0 0 var(--tone, var(--t3)); }
.tn-warn { --tone: var(--warn-t); }
.stamp { display: inline-flex; align-items: center; gap: 6px; font: 500 11px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.stamp-ok { color: var(--ok-t); }
.stamp-bad { color: var(--bad-t); }
.stamp-warn { color: var(--warn-t); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }

.center-col { display: flex; flex-direction: column; align-items: center; padding: 40px 16px 60px; gap: 24px; }
.pair { width: min(480px, 100%); padding: 30px 32px; }
@media (max-width: 480px) { .pair { padding: 24px 20px; } }
.view-title { margin-top: 10px; font-size: 30px; line-height: 38px; font-weight: 600; }
.view-lead { margin: 10px 0 0; font-size: 14px; line-height: 22px; color: var(--t2); }
.view .view-lead + form { margin-top: 22px; }
.view .btn-s { margin-top: 18px; }
.device { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.device-name { font-size: 15px; font-weight: 600; }
.device-meta { margin-top: 2px; font-size: 11.5px; color: var(--t3); }
.pair-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.pair-actions .btn-s { margin-top: 0; }
.footnote { max-width: 480px; text-align: center; font-size: 12.5px; line-height: 19px; color: var(--t3); }

.home [data-ready] { display: flex; flex-direction: column; gap: 28px; }
.home-head .eyebrow { margin-bottom: 10px; }
.home-title { font-size: clamp(34px, 3.4vw, 44px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px 24px; margin: 0; }
.facts dt { font: 500 11px/16px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--t3); }
.facts dd { margin: 4px 0 0; font-size: 14px; color: var(--t1); overflow-wrap: anywhere; }
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.home-grid .btn { margin-top: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; }

/* Account pages with the navigation (AC-03, AC-07, AC-13, AC-14) */
.shell { max-width: 1240px; margin: 0 auto; padding: 36px clamp(16px, 3vw, 40px) 80px; display: flex; flex-wrap: wrap; gap: 40px; }
.nav { flex: 1 1 196px; max-width: 220px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 8px; color: var(--t2); font-size: 14px; white-space: nowrap; }
.nav a:hover { background: var(--s1); color: var(--t1); }
.nav a[aria-current="page"] { background: var(--s1); color: var(--t1); font-weight: 600; }
.nav a:focus-visible, .sel:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.nav .grp { margin: 18px 12px 6px; }
.shell-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.page-head { max-width: 640px; }
.page-title { font-size: clamp(32px, 3.2vw, 42px); line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }
.page-lead { margin-top: 10px; font-size: 14px; line-height: 22px; color: var(--t2); }
.shell-main > .msg { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 32px; }
.sec-title { margin: 0 0 12px; font-size: 16px; line-height: 24px; font-weight: 600; }
.pane { background: var(--panel); -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15); border: 1px solid var(--glass-b); box-shadow: var(--shadow); border-radius: 14px; padding: 6px 22px; }
.pane-pad { padding: 20px 22px; }
.pane-lead { font-size: 14px; line-height: 22px; color: var(--t2); max-width: 720px; }
.page-empty { color: var(--t2); font-size: 14px; line-height: 22px; }
.lm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.lm:first-child { border-top: 0; }
.lm .ic { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--t2); }
.lm .ic-mark { font: 600 13px/1 var(--sans); }
.lm-text { flex: 1 1 240px; min-width: 0; }
.nm { display: block; font-size: 14.5px; font-weight: 600; }
.dt { font-size: 12.5px; line-height: 18px; color: var(--t3); margin-top: 2px; overflow-wrap: anywhere; }
.lm-sub { padding-left: 52px; }
.lm-sub:empty { display: none; }
.lm-sub .lm { padding: 10px 0; border-top-style: dashed; }
.lm-sub .lm:first-child { border-top: 1px dashed var(--line); }
.lm-form { padding: 4px 0 18px 52px; }
.lm-form .lbl { margin-top: 12px; }
.tag { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 5px; border: 1px solid var(--line2); font: 500 10.5px/1 var(--sans); color: var(--t3); vertical-align: 2px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font: 500 12px/1 var(--sans); border: 1px solid var(--line2); color: var(--t2); white-space: nowrap; }
.badge-ok { color: var(--ok-t); border-color: rgba(76,195,138,.35); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; gap: 8px; }
.btn-d { background: transparent; color: var(--bad-t); border-color: rgba(242,112,102,.45); }
.btn-d:hover { background: rgba(242,112,102,.08); color: var(--bad-t); }
.btn-danger { background: var(--bad-t); color: var(--onbad); }
.btn-danger:hover { filter: brightness(1.06); color: var(--onbad); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.fields { display: flex; flex-wrap: wrap; gap: 0 12px; }
.fields > div { flex: 1 1 220px; min-width: 0; }
.rules { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 18px; font-size: 13px; color: var(--t2); }
.rules li { display: flex; align-items: center; gap: 8px; }
.rules li::before { content: "○"; width: 12px; text-align: center; color: var(--t3); }
.rules li[data-met="true"]::before { content: "✓"; color: var(--ok-t); }
.rules li[data-met="false"]::before { content: "✕"; color: var(--bad-t); }
.sub-form { margin-top: 18px; }
.sub-form .lbl { margin-top: 14px; }
.sub-form .tn { margin-top: 0; }
.inp-code { max-width: 220px; }
.sel-wrap { position: relative; display: inline-flex; align-items: center; color: var(--t2); }
.sel { appearance: none; -webkit-appearance: none; height: 38px; padding: 0 32px 0 12px; border-radius: 8px; border: 1px solid var(--line2); background: var(--field); color: var(--t1); font: 500 14px/1 var(--sans); cursor: pointer; }
.sel option { background: var(--pop); color: var(--t1); }
.sel-wrap svg { position: absolute; right: 10px; pointer-events: none; }
.saved { font-size: 12.5px; color: var(--ok-t); }
.counts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.counts li { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); font-size: 12.5px; color: var(--t2); }
.dgroups { display: grid; gap: 12px; }
.dgroup { padding: 14px 16px; border-radius: 10px; background: var(--s1); box-shadow: inset 3px 0 0 var(--tone, var(--t3)); }
.dgroup[data-tone="bad"] { --tone: var(--bad-t); }
.dgroup[data-tone="ok"] { --tone: var(--ok-t); }
.dgroup[data-tone="warn"] { --tone: var(--warn-t); }
.dgroup h3 { margin: 0 0 6px; font-size: 13.5px; line-height: 20px; font-weight: 600; }
.dgroup ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 21px; color: var(--t2); }
.dgroup li + li { margin-top: 4px; }
.dgroup a { white-space: nowrap; }
.dgroups + .tn, .dgroups + .tn + form, .dgroups + form { margin-top: 18px; }
.done-title { margin-top: 10px; font-size: 24px; line-height: 32px; font-weight: 600; }
.tbl { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 13.5px; line-height: 20px; }
.tbl th { padding: 0 12px 8px 0; text-align: left; font: 500 12px/18px var(--sans); color: var(--t3); border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 12px 12px 0; vertical-align: top; border-top: 1px solid var(--line); color: var(--t2); }
.tbl tbody tr:first-child td { border-top: 0; }
.tbl td:first-child { color: var(--t1); white-space: nowrap; }
.tbl tr.is-current td:first-child { font-weight: 600; }
.tbl .tbl-action { padding-right: 0; text-align: right; white-space: nowrap; vertical-align: middle; }
.tbl-note { display: block; margin-top: 2px; font-size: 12px; line-height: 18px; color: var(--t3); }
.tbl-action .tbl-note { display: inline; margin: 0; }
.tbl-warn { color: var(--warn-t); }
.redeem-row { display: flex; flex-wrap: wrap; gap: 8px; }
.redeem-row .inp { flex: 1 1 240px; max-width: 340px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.redeem-row .inp::placeholder { letter-spacing: .1em; }
.pane-pad > .tbl:first-child { margin-top: 0; }
.redeem-done { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.redeem-done .done-title { margin-top: 0; font-size: 20px; line-height: 28px; }
.redeem-units { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 6px; font-size: 14px; line-height: 22px; color: var(--t2); }
.redeem-units strong { color: var(--t1); font-weight: 600; }
.fields-gap { row-gap: 14px; }
.lbl-gap { margin-top: 16px; }
.check { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--t2); cursor: pointer; }
.code-sent { text-decoration: line-through; color: var(--t3); }
.tbl .tbl-action .btn + .btn { margin-left: 4px; }
.dlg { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line2); border-radius: 14px; background: var(--pop); color: var(--t1); box-shadow: var(--shadow-pop); }
.dlg::backdrop { background: var(--scrim); }
.dlg h2 { font-size: 18px; line-height: 26px; font-weight: 600; }
.dlg p { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--t2); }
.dlg .actions { justify-content: flex-end; margin-top: 22px; }
/* Admin console (AD-01…AD-14; #1586): environment tag, grouped navigation, customer list and
   detail, operation record. Channel colours follow the admin designs. */
.page-admin { --ch-web: #3196C6; --ch-apple: #C8793A; --ch-microsoft: #8A6CD0; --ch-google: #4E9A5E; }
.sx.light .page-admin { --ch-web: #2A84BA; --ch-apple: #C0661F; --ch-microsoft: #7B5BD0; --ch-google: #3A8F4A; }
@media (prefers-color-scheme: light) { .sx.sys .page-admin { --ch-web: #2A84BA; --ch-apple: #C0661F; --ch-microsoft: #7B5BD0; --ch-google: #3A8F4A; } }
.env { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font: 500 11.5px/1 var(--sans); border: 1px solid var(--line2); color: var(--t2); }
.env[data-env="production"] { color: var(--bad-t); border-color: currentColor; }
.env[data-env="staging"] { color: var(--warn-t); border-color: currentColor; }
.shell-admin { max-width: 1440px; }
.shell-admin .nav { flex-basis: 180px; max-width: 200px; }
.shell-admin .nav .grp:first-child { margin-top: 4px; }
.nav-foot { margin: 22px 12px 0; font-size: 11.5px; line-height: 17px; color: var(--t3); }
.page-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.page-head-row > div:first-child { max-width: 640px; }
.head-actions { display: flex; gap: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inp-search { flex: 1 1 320px; max-width: 520px; height: 38px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--t2); font: 500 13px/1 var(--sans); cursor: pointer; }
.chip:hover { color: var(--t1); background: var(--s1); }
.chip[aria-pressed="true"] { background: var(--s2); color: var(--t1); border-color: var(--s3); }
.chip:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.chip-n { font: 500 11.5px/1 var(--mono); color: var(--t3); }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--t3); }
.pager-buttons { display: inline-flex; gap: 4px; }
.cust-link { color: var(--t1); font-weight: 500; }
.cust-link:hover { color: var(--act); }
.chs { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.ch { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ch::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--t3)); }
.ch-web { --c: var(--ch-web); }
.ch-apple { --c: var(--ch-apple); }
.ch-microsoft { --c: var(--ch-microsoft); }
.ch-google { --c: var(--ch-google); }
.badge-warn { color: var(--warn-t); border-color: currentColor; }
.badge-bad { color: var(--bad-t); border-color: currentColor; }
.badge-mute { color: var(--t3); }
a.badge:hover { color: var(--t1); }
.tbl-customers td:first-child, .tbl-audit td:first-child { white-space: normal; }
.tbl tr.is-ended td { color: var(--t3); }
.tbl-detail { font-size: 12.5px; line-height: 18px; overflow-wrap: anywhere; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--t3); margin-bottom: -16px; min-width: 0; }
.crumbs span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; }
.cust-id { min-width: 0; flex: 1 1 420px; }
.cust-id .page-title { font-size: clamp(26px, 2.6vw, 34px); overflow-wrap: anywhere; }
.cust-meta { margin-top: 8px; font-size: 13.5px; line-height: 21px; color: var(--t2); overflow-wrap: anywhere; }
.cust-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.cust-actions .menu-button, .cust-actions .btn { gap: 6px; }
.menu-wide { min-width: 260px; z-index: 5; }
.menu-item[disabled] { color: var(--t3); cursor: default; background: transparent; }
.note-tight { margin-top: -18px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tile { padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--glass-b); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-v { font: 600 20px/28px var(--sans); overflow-wrap: anywhere; }
.tile-n { font-size: 12px; line-height: 17px; color: var(--t3); overflow-wrap: anywhere; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: -16px; scroll-margin-top: 12px; }
.tab { flex: 0 0 auto; height: 40px; padding: 0 14px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--t2); font: 500 14px/1 var(--sans); cursor: pointer; }
.tab:hover { color: var(--t1); }
.tab[aria-selected="true"] { color: var(--t1); border-bottom-color: var(--ac); }
.tab:focus-visible { outline: 2px solid var(--ac); outline-offset: -2px; }
[data-panels] { display: flex; flex-direction: column; gap: 16px; }
.quota { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--t2); }
.quota li { display: inline-flex; gap: 10px; align-items: baseline; }
.quota strong { color: var(--t1); font-weight: 600; }
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notes li { padding: 10px 12px; border-radius: 10px; background: var(--s1); }
.notes p { font-size: 14px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-form { margin-top: 12px; }
.inp-area { height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; line-height: 21px; resize: vertical; font: inherit; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 10px 0 10px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.timeline li:first-child { border-top: 0; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--t3); }
.timeline li.tl-admin::before { background: var(--ac); }
.tl-what { font-size: 14px; color: var(--t1); }
.tl-when { font-size: 12.5px; color: var(--t3); }
.dlg-form { width: min(540px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
.dlg-form .lbl-gap:first-child { margin-top: 18px; }
.dlg-form .check { align-items: flex-start; line-height: 19px; }
.sel-block { width: 100%; }
.fld .tbl-note { margin-top: 4px; }
@media (max-width: 760px) {
  .shell { gap: 20px; padding-top: 16px; }
  .nav-foot { display: none; }
  .tabs { margin-bottom: 0; }
  .note-tight, .crumbs { margin: 0; }
  .chips { margin-top: 0; }
  .nav { flex: 1 1 100%; max-width: none; flex-direction: row; flex-wrap: wrap; gap: 4px; margin: 0 -4px; padding: 0 4px; }
  .nav .grp { display: none; }
  .lm-sub, .lm-form { padding-left: 0; }
  .pane { padding: 4px 16px; }
  .pane-pad { padding: 18px 16px; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl tr { position: relative; padding: 12px 0; border-top: 1px solid var(--line); }
  .tbl tbody tr:first-child { border-top: 0; }
  .tbl td, .tbl td:first-child { padding: 0; border: 0; white-space: normal; }
  .tbl td + td { margin-top: 2px; }
  .tbl td:not(:first-child):not(.tbl-action)::before { content: attr(data-label) " · "; color: var(--t3); }
  .tbl .tbl-action { margin-top: 10px; text-align: left; }
}
