:root {
  color-scheme: light;
  --bg:#f6f7fb; --surface:#fff; --surface-2:#f1f3f9; --surface-3:#e7ebf4;
  --line:#e1e5ef; --text:#20283f; --muted:#70788b;
  --accent:#445bda; --accent-2:#6d7fe5; --grad:linear-gradient(115deg,#445bda,#6377df);
  --ok:#445bda; --warn:#956623; --danger:#bf4a55; --r:20px; --r-sm:12px;
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
[hidden] { display:none!important; }
html { scroll-padding-bottom:110px; }
body { margin:0; padding-bottom:110px; background:var(--bg); color:var(--text); font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-font-smoothing:antialiased; }
main { max-width:850px; margin:auto; padding:32px 28px; }
.sprite { display:none; }
a { color:var(--accent); text-underline-offset:3px; }
button,input,select,textarea,summary { touch-action:manipulation; }
button { min-height:46px; display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:11px 16px; appearance:none; border:0; border-radius:var(--r-sm); background:var(--surface-2); color:var(--text); font:inherit; font-weight:550; cursor:pointer; }
button:active { transform:translateY(1px); }
button:disabled { background:var(--surface-3)!important; color:#81899a!important; border-color:var(--line)!important; cursor:not-allowed; box-shadow:none; }
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #8c9bec; outline-offset:3px; }
select,input:not([type=checkbox]):not([type=range]):not([type=file]),textarea { width:100%; min-width:0; min-height:48px; padding:12px 14px; border:1px solid var(--line); border-radius:var(--r-sm); background:var(--surface); color:var(--text); font:inherit; font-size:16px; line-height:1.4; appearance:none; }
textarea { min-height:82px; resize:vertical; }
input::placeholder,textarea::placeholder { color:#8c93a3; }
input:focus,select:focus,textarea:focus { border-color:var(--accent); }
input:disabled,select:disabled { opacity:.6; }
.accent { color:#fff; background:var(--accent); }
.ghost { color:var(--text); background:var(--surface); border:1px solid var(--line); }
.wide { width:100%; }
.square { width:48px; height:48px; flex:none; padding:0; }
.danger { color:var(--danger); background:transparent; }
.text-link,.back-link { padding:8px 0; background:transparent; color:var(--accent); font-size:13px; }
.back-link { color:var(--muted); min-height:40px; }
.back-link .ic { width:16px; }
.forward { transform:rotate(180deg); }
.ic { width:22px; height:22px; flex:none; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.ic.xl { width:38px; height:38px; color:var(--accent); }
.ic.chev { width:18px; height:18px; color:var(--muted); transform:rotate(-90deg); transition:transform .15s; }
details[open]>.summary .chev,details[open]>summary .chev { transform:rotate(90deg); }
.head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:28px; }
.brand { display:flex; align-items:center; gap:11px; min-width:0; }
.brand>div { min-width:0; }
.mark { width:37px; height:37px; border-radius:12px; background:var(--accent); position:relative; flex:none; }
.mark::after { content:""; position:absolute; inset:10px; background:#fff; clip-path:polygon(0 58%,42% 0,42% 40%,100% 40%,58% 100%,58% 58%); }
.head h1 { font-size:18px; letter-spacing:-.5px; margin:0; font-weight:700; }
.status { color:var(--muted); margin:2px 0 0; font-size:12px; }
.header-actions { display:flex; gap:8px; align-items:center; }
.profile-button { border-radius:50%; padding:0; width:42px; min-height:42px; background:#e9ecf9; color:var(--accent); font-size:15px; }
#openAdmin { padding:0; width:42px; min-height:42px; border-radius:50%; }
.channelbar { display:flex; gap:8px; align-items:center; padding:6px; margin-bottom:28px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.channelbar select { border:0; font-size:15px; font-weight:600; background:transparent; }
.channelbar .square { background:var(--surface-2); border:0; width:42px; height:42px; min-height:42px; }
.select-wrap { position:relative; flex:1; min-width:0; }
.select-wrap::after { content:""; width:7px; height:7px; position:absolute; right:16px; top:50%; border:solid var(--muted); border-width:0 1.5px 1.5px 0; transform:translateY(-70%) rotate(45deg); pointer-events:none; }
.select-wrap select { padding-right:35px; }
.select-wrap.compact { flex:0 1 auto; max-width:56%; }
.select-wrap.compact select { min-height:44px; background:var(--surface-2); font-size:14px; }
.addrow { display:flex; gap:8px; margin:14px 0; }
h2 { font-size:28px; line-height:1.2; font-weight:680; letter-spacing:-.9px; margin:0 0 10px; }
h3 { font-size:16px; letter-spacing:-.25px; margin:0 0 8px; }
.workspace-intro { margin:25px 0 24px; }
.workspace-intro h2 { margin-top:8px; }
.workspace-intro p { margin:8px 0 0; font-size:14px; }
.eyebrow { font-size:10px; letter-spacing:1.8px; font-weight:700; color:var(--muted); }
.muted,.hint { color:var(--muted); }
.hint { font-size:13px; line-height:1.6; margin:0 0 12px; }
.small { font-size:13px; }
.section { font-size:12px; color:var(--muted); font-weight:600; margin:24px 0 12px; letter-spacing:.2px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--r); padding:20px; }
.card,.post,.ad,.stat,.hint,.preview,.adminrow,.row { overflow-wrap:anywhere; }
.notice { padding:14px 16px; background:#eef0fa; color:#5c6686; border-radius:12px; font-size:13px; line-height:1.6; }
.hero { max-width:500px; margin:36px auto; padding:32px; text-align:center; }
.hero>.ic { margin-bottom:18px; }
.hero h2 { font-size:26px; }
.hero input { margin:16px 0 12px; }
.hero .steps { text-align:left; padding-left:20px; margin:20px 0; color:var(--muted); font-size:14px; }
.steps li+li { margin-top:12px; }
.steps b { color:var(--text); }
.gate-divider { font-size:12px; color:var(--muted); margin:24px 0 0; }
.code { text-align:center; letter-spacing:4px; text-transform:uppercase; }
.next-step { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:25px; background:#e9edfc; border:1px solid #e0e6fb; border-radius:var(--r); margin-bottom:20px; }
.next-step>div { min-width:0; flex:1; }
.next-step .eyebrow { color:#6374b5; }
.next-step h3 { margin:8px 0; font-size:20px; font-weight:650; letter-spacing:-.5px; }
.next-step p { font-size:13px; line-height:1.6; color:#6c7692; margin:0; }
.next-step button { white-space:normal; background:var(--accent); color:#fff; border:0; flex:none; }
.next-step .ic { transform:rotate(180deg); width:16px; }
.grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.stat { min-width:0; padding:20px; border:1px solid var(--line); border-radius:17px; background:var(--surface); }
.stat b { display:block; font-size:30px; line-height:1.2; letter-spacing:-1px; font-weight:600; }
.stat i { display:block; font-size:12px; line-height:1.4; font-style:normal; color:var(--muted); margin-top:7px; }
.stat.accent-t b { color:var(--accent); }
.stat.warn b { color:var(--warn); }
.home-actions,.settings-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0; }
.action-tile { padding:18px; background:var(--surface); border:1px solid var(--line); border-radius:16px; text-align:left; gap:12px; white-space:normal; }
.action-tile>span:nth-child(2) { flex:1; min-width:0; }
.action-tile b { display:block; font-size:14px; font-weight:600; }
.action-tile small { display:block; font-size:12px; color:var(--muted); margin-top:3px; font-weight:400; }
.action-tile>.ic { width:15px; color:#959db0; }
.tile-icon { width:40px; height:40px; display:grid; place-items:center; background:var(--surface-2); color:var(--accent); border-radius:12px; flex:none; }
.tile-icon .ic { width:20px; }
.publish-card { display:flex; align-items:center; gap:24px; padding:22px; margin:20px 0; }
.publish-card>div { flex:1; }
.publish-card .hint { margin:0; font-size:12px; }
.publish-card button { flex:none; font-size:13px; }
.publish-card h3 { font-size:15px; }
.group { padding:0; margin-bottom:12px; }
.group>summary { display:flex; align-items:center; justify-content:space-between; list-style:none; gap:12px; padding:20px; font-size:15px; font-weight:550; cursor:pointer; min-height:65px; }
summary::-webkit-details-marker { display:none; }
.group>.body { padding:4px 20px 22px; display:flex; flex-direction:column; gap:18px; }
.group>.body>.hint { margin:0; }
.analytics { margin-top:26px; }
.analytics .section { margin:0; }
.chart { display:flex; align-items:flex-end; justify-content:space-between; gap:8px; height:138px; padding:15px 0 5px; }
.chart .empty-note { border:0; padding:0; }
.bar { display:flex; flex:1; min-width:0; flex-direction:column; align-items:center; justify-content:flex-end; gap:7px; height:100%; font-size:10px; color:var(--muted); }
.bar u { display:block; width:100%; min-height:2px; background:#8697e9; border-radius:5px; text-decoration:none; }
.bar.green u { background:#bec6e0; }
.bar em { font-size:11px; font-style:normal; }
.queue-details { margin:20px 0; padding:0 3px; }
.queue-details summary { font-size:12px; color:var(--muted); cursor:pointer; min-height:40px; }
.queue-details .hint { margin:8px 0; }
.row { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.row>span:first-child { display:flex; flex:1; min-width:0; flex-direction:column; }
.row b { font-size:14px; font-weight:550; }
.row i { font-size:12px; font-style:normal; color:var(--muted); margin-top:3px; }
.label { display:block; font-size:13px; color:var(--muted); margin:0; }
label.label { display:grid; gap:8px; }
.window,.pair { display:flex; align-items:center; gap:8px; }
.window em { font-style:normal; color:var(--muted); }
input.num { width:62px!important; text-align:center; padding:10px 5px!important; background:var(--surface-2)!important; }
input.wide-num { width:86px!important; }
input[type=checkbox] { appearance:none; width:46px; height:28px; padding:0; border:0; border-radius:20px; background:#dce0ec; position:relative; flex:none; cursor:pointer; }
input[type=checkbox]::after { content:""; position:absolute; width:22px; height:22px; left:3px; top:3px; border-radius:50%; background:#fff; box-shadow:0 1px 3px #1e29451c; transition:transform .15s; }
input[type=checkbox]:checked { background:var(--accent); }
input[type=checkbox]:checked::after { transform:translateX(18px); }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { padding:10px 13px; border:1px solid var(--line); font-size:13px; min-height:44px; background:var(--surface); }
.chip.on { color:var(--accent); background:#e9edfc; border-color:#b8c3f0; }
.quality { padding:18px; background:var(--surface-2); border-radius:14px; }
.quality-name { text-align:center; font-size:18px; color:var(--accent); font-weight:600; margin:0 0 14px; }
.slider { width:100%; accent-color:var(--accent); }
.slider-legend { display:flex; justify-content:space-between; color:var(--muted); font-size:11px; margin:6px 0 12px; }
.quality .hint { margin:0; font-size:12px; }
.preview { min-height:48px; background:var(--surface-2); padding:13px; border-radius:12px; color:var(--accent); }
.preview .none { color:var(--muted); }
.upload-control { display:flex; position:relative; align-items:center; flex-direction:column; gap:4px; padding:18px; border:1px dashed #b9c3df; border-radius:12px; cursor:pointer; color:var(--accent); text-align:center; }
.upload-control small { color:var(--muted); }
.upload-control input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.upload-control:focus-within { outline:3px solid #8c9bec; outline-offset:3px; }
.support-link { display:flex; justify-content:space-between; align-items:center; padding:16px 20px; border-radius:16px; text-decoration:none; font-size:14px; margin-bottom:12px; }
.tour-entry { width:100%; text-align:left; padding:16px 4px; margin:15px 0; background:transparent; gap:13px; }
.tour-entry-icon { color:var(--muted); }
.tour-entry-copy { flex:1; }
.tour-entry-copy b { display:block; font-size:13px; font-weight:500; }
.tour-entry-copy small { display:block; margin-top:3px; font-size:12px; color:var(--muted); }
.tour-entry-arrow { width:16px; color:var(--muted); transform:rotate(180deg); }
#deleteChannel { font-size:12px; }
.feed-tabs { display:flex; gap:5px; padding:4px; border-radius:14px; background:#e9ecf4; margin-bottom:18px; }
.feed-tabs button { flex:1; background:transparent; color:var(--muted); border-radius:11px; padding:10px; font-size:13px; }
.feed-tabs .on { background:var(--surface); color:var(--text); box-shadow:0 1px 4px #2534560d; }
.feed-tabs span,.inline-count { font-size:11px; padding:1px 6px; border-radius:5px; background:#e9edfc; color:var(--accent); font-style:normal; }
.feed-secondary { margin:0 0 20px; min-height:30px; color:var(--muted); font-size:12px; }
.feed-secondary .ic { width:14px; }
.post,.ad { padding:22px; border:1px solid var(--line); border-radius:var(--r); background:var(--surface); margin-bottom:16px; }
.post header,.ad header { display:flex; align-items:baseline; flex-wrap:wrap; gap:7px; font-size:12px; color:var(--muted); margin-bottom:16px; }
.post header>span:first-child,.ad header .who { flex:1; min-width:0; }
.post header a { display:inline-flex; align-items:center; text-decoration:none; gap:4px; }
.post header a .ic { width:15px; height:15px; }
.post .text { font-size:16px; white-space:pre-wrap; line-height:1.65; margin:0 0 18px; }
.post img { width:100%; max-height:560px; object-fit:contain; display:block; border-radius:12px; margin-bottom:16px; background:var(--surface-2); }
.note { display:flex; align-items:flex-start; gap:6px; color:var(--muted); font-size:12px; margin:10px 0; }
.note .ic { width:16px; height:16px; flex:none; margin-top:2px; }
.note.warn { color:var(--warn); }
.acts { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.acts button { flex:1 1 100px; font-size:13px; border:1px solid var(--line); padding:11px; }
.acts .ok { flex-basis:100%; background:var(--accent); color:#fff; border-color:transparent; }
.acts .no,.acts button[aria-label] { flex:0 0 46px; color:var(--danger); }
.ad .who { font-size:15px; color:var(--text); }
.ad .seen,.tag { display:inline-flex; border-radius:6px; background:var(--surface-2); color:var(--muted); font-size:10px; padding:3px 7px; }
.tag.live { color:var(--accent); background:#edf0fd; }
.ad .contacts { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; }
.ad .contacts a,.ad .contacts span { min-width:0; overflow-wrap:anywhere; background:var(--surface-2); padding:6px 9px; border-radius:7px; font-size:12px; }
.ad .excerpt { font-size:13px; color:var(--muted); white-space:pre-wrap; max-height:80px; overflow:hidden; }
.ad.done { opacity:.65; }
.ad-reasons { background:var(--surface-2); border-radius:10px; padding:10px 12px; font-size:12px; color:var(--muted); }
.ad-reasons summary { cursor:pointer; min-height:30px; }
.empty-note { text-align:center; color:var(--muted); font-size:14px; padding:38px 20px; border:1px dashed #ccd3e4; border-radius:16px; line-height:1.7; }
.src { display:flex; align-items:center; gap:12px; background:var(--surface); border:1px solid var(--line); border-radius:15px; padding:15px; margin-bottom:10px; }
.src .info { flex:1; min-width:0; overflow-wrap:anywhere; }
.src .info b { display:block; font-weight:550; font-size:14px; }
.src .info i { font-style:normal; font-size:12px; color:var(--muted); }
.src .kind { background:var(--surface-2); padding:3px 7px; border-radius:6px; color:var(--muted); font-size:10px; }
.src button { background:transparent; color:var(--muted); padding:8px; }
.src.err { border-color:#e5b5bb; }
.src.err .info i { color:var(--danger); }
.title-count { font-size:16px; color:var(--muted); font-weight:400; vertical-align:middle; }
.source-shortcuts { display:flex; flex-wrap:wrap; gap:8px; margin:20px 0; }
.source-shortcuts button { flex:1 1 120px; font-size:12px; padding:11px; }
.copy-content { padding:0 20px 20px; }
#sourceBatchPanel { padding:20px; }
#sourceBatchPanel button { margin-top:12px; }
#sourceBatchInput { margin:10px 0; }
#sourceBatchStatus { margin-top:10px; font-size:12px; }
#copySourcesPanel select { margin:10px 0; }
#copySourceList { max-height:320px; overflow:auto; margin-bottom:14px; }
.copy-source { display:flex; gap:12px; align-items:center; padding:12px 0; font-size:13px; cursor:pointer; }
.copy-source span { min-width:0; overflow-wrap:anywhere; }
.copy-source small { display:block; color:var(--muted); margin-top:4px; }
.copy-source input[type=checkbox] { width:21px; height:21px; border-radius:6px; border:1px solid #b0b9cf; }
.copy-source input[type=checkbox]::after { display:none; }
.copy-source input[type=checkbox]:checked::after { display:block; width:6px; height:10px; top:2px; left:6px; border:solid #fff; border-width:0 2px 2px 0; border-radius:0; background:none; transform:rotate(45deg); }
.nav { position:fixed; z-index:5; left:50%; bottom:calc(14px + env(safe-area-inset-bottom)); transform:translateX(-50%); display:flex; width:min(460px,calc(100% - 32px)); gap:4px; padding:6px; background:#fffffff5; backdrop-filter:blur(15px); border:1px solid var(--line); border-radius:22px; box-shadow:0 10px 32px #20283f0c; }
.nav button { flex:1; min-width:0; flex-direction:column; gap:4px; padding:9px 6px; min-height:59px; border-radius:16px; background:transparent; color:var(--muted); position:relative; font-size:10px; }
.nav button .ic { width:21px; height:21px; }
.nav button.active { color:var(--accent); background:#eef1fc; }
.badge { position:absolute; top:4px; left:55%; border:2px solid white; background:var(--accent); color:#fff; font-style:normal; font-size:9px; min-width:18px; border-radius:12px; padding:0 4px; }
.toast { position:fixed; left:50%; bottom:calc(104px + env(safe-area-inset-bottom)); transform:translateX(-50%); z-index:40; width:max-content; max-width:min(460px,calc(100% - 32px)); background:#27324b; color:#fff; padding:14px 18px; border-radius:14px; box-shadow:0 6px 24px #20283f26; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.toast.err { background:#853c4a; }
.boot { display:flex; justify-content:center; padding:28vh 20px 0; }
.spinner { width:25px; height:25px; border:2px solid var(--surface-3); border-top-color:var(--accent); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
/* Account and subscription */
.current-plan { background:#283b74; color:#fff; margin-bottom:32px; padding:25px; }
.current-plan .eyebrow,.current-plan .hint,.current-plan .muted { color:#c0cbea; }
.current-plan h3 { font-size:26px; margin:8px 0 3px; }
.plan-meta { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.plan-meta>.tag { color:#e2e9ff; background:#ffffff19; padding:5px 9px; }
.quota-meter { display:block; width:100%; height:5px; appearance:none; margin:20px 0 9px; overflow:hidden; border:0; border-radius:6px; background:#ffffff26; }
.quota-meter::-webkit-progress-bar { background:#ffffff26; }
.quota-meter::-webkit-progress-value { background:#c4cef8; border-radius:6px; }
.quota-meter::-moz-progress-bar { background:#c4cef8; }
.quota-copy { display:flex; justify-content:space-between; gap:10px; font-size:12px; color:#d3dcf3; }
.current-plan .scheduled { border-top:1px solid #ffffff24; margin:16px 0 0; padding-top:14px; font-size:12px; color:#d3dcf3; }
.billing-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:25px 0 8px; }
.billing-section-head h3 { margin:0; font-size:18px; }
.billing-section-head>span { font-size:10px; color:var(--muted); }
.plan-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:20px 0; }
.tariff { display:flex; flex-direction:column; padding:20px; border:1px solid var(--line); border-radius:18px; background:var(--surface); position:relative; min-width:0; }
.tariff.selected { border:2px solid var(--accent); padding:19px; }
.tariff.current { background:#f0f3ff; border-color:#c0ccf4; }
.tariff .plan-name { font-size:11px; letter-spacing:1px; font-weight:700; color:var(--muted); }
.tariff .plan-price { font-size:29px; letter-spacing:-1px; font-weight:600; margin:9px 0 1px; line-height:1.3; }
.tariff .plan-price small { font-size:13px; letter-spacing:0; font-weight:400; }
.tariff .plan-period { font-size:11px; color:var(--muted); }
.tariff .plan-limit { font-size:14px; line-height:1.45; margin:20px 0 5px; font-weight:600; }
.tariff .plan-feature { font-size:11px; color:var(--muted); margin:0 0 20px; line-height:1.5; flex:1; }
.tariff button { width:100%; font-size:12px; min-height:42px; padding:8px 6px; }
.tariff .current-label { font-size:11px; color:var(--accent); margin-top:8px; }
.billing-terms { padding:5px 3px; color:var(--muted); font-size:12px; line-height:1.7; }
.billing-terms p { margin:14px 0; }
.billing-terms b { color:#5b657d; font-weight:550; }
.checkout-card { display:grid; gap:16px; margin:22px 0; scroll-margin-top:24px; }
.checkout-card .hint { margin:0; }
.checkout-card h3 { margin:0; }
.quote-price { font-size:30px; font-weight:600; letter-spacing:-.8px; margin:8px 0; }
.account-shell { max-width:1000px; }
.account-header { padding-bottom:24px; border-bottom:1px solid var(--line); }
.account-header .text-link { color:var(--muted); }
.account-hero { max-width:520px; margin:70px auto; text-align:center; }
.account-hero h2 { font-size:36px; margin:24px 0 18px; }
.account-hero p { color:var(--muted); font-size:15px; line-height:1.7; }
.login-widget { min-height:54px; margin:30px 0 15px; }
.account-columns { display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:26px; }
.account-columns>.current-plan { margin:0; }
.account-notes { font-size:12px; color:var(--muted); padding:12px 0; }
.account-notes b { display:block; color:var(--text); font-size:14px; margin-bottom:8px; font-weight:600; }
.order-history { display:grid; gap:10px; margin-top:16px; }
.order-row { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:16px 18px; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.order-row b { display:block; font-size:14px; font-weight:600; }
.order-row small { display:block; font-size:11px; color:var(--muted); margin-top:3px; }
.order-row .order-status { text-align:right; font-size:12px; }
.account-footer { text-align:center; color:var(--muted); font-size:11px; margin:45px 0 0; }
/* Administration retains its existing controls. */
.pagehead { display:flex; align-items:center; gap:12px; margin-bottom:24px; }
.pagehead h2 { font-size:23px; margin:0; }
.system .meter { display:grid; grid-template-columns:40px minmax(30px,1fr) auto; gap:10px; align-items:center; font-size:12px; margin-bottom:12px; }
.system .track { height:5px; border-radius:5px; overflow:hidden; background:var(--surface-3); }
.system .fill { display:block; height:100%; background:var(--accent-2); }
.system p { display:flex; align-items:flex-start; gap:8px; font-size:12px; color:var(--muted); margin:10px 0 0; }
.system p .ic { width:16px; height:16px; }
.promo-form,.form-actions { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.form-actions>button { flex:1 1 140px; }
#promoNote { margin-bottom:12px; }
.adminrow { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:15px; margin-bottom:10px; border:1px solid var(--line); background:var(--surface); border-radius:14px; font-size:13px; }
.adminrow .sub { font-size:12px; color:var(--muted); }
.adminrow input[type=number] { width:86px; text-align:center; }
.codechip { font-family:ui-monospace,monospace; font-size:14px; letter-spacing:1px; }
.codechip.used { text-decoration:line-through; color:var(--muted); }
.client-access { flex-direction:column; align-items:stretch; }
.access-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%; }
.access-grid label { display:grid; gap:6px; font-size:12px; min-width:0; }
#channelAudit,#adminEvents { display:grid; gap:12px; }
#channelAudit .card,#adminEvents .card { background:var(--surface-2); }
#adminEvents p { font-size:12px; }
#adminEvents details summary { font-size:12px; color:var(--muted); }
#adminMonitoring { grid-template-columns:repeat(2,minmax(0,1fr)); }
.key-card { padding:16px 0; border-top:1px solid var(--line); }
.api-capacity { width:100%; height:10px; accent-color:var(--accent); }
.api-chart { display:flex; align-items:flex-end; gap:4px; height:72px; margin:16px 0; }
.api-bar { flex:1; min-width:0; position:relative; background:#9aa9e8; border-radius:3px 3px 0 0; overflow:hidden; }
.api-bar span { display:block; position:absolute; bottom:0; width:100%; background:#cb7783; }
.business-photo,.business-edit,.business-research { margin:15px 0; padding-top:15px; border-top:1px solid var(--line); }
.business-research iframe { width:100%; height:180px; border:0; }
.business-edit label { display:grid; gap:10px; }
/* Three short, optional introduction screens. */
body.tour-open { overflow:hidden; }
.tour { position:fixed; inset:0; z-index:30; display:grid; place-items:center; padding:24px; background:#18244277; backdrop-filter:blur(10px); }
.tour-shell { width:min(730px,100%); max-height:calc(100dvh - 48px); display:flex; flex-direction:column; overflow:hidden; background:var(--surface); border:1px solid var(--line); border-radius:26px; box-shadow:0 24px 90px #17213c30; }
.tour-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:20px 25px; }
.tour-brand { display:flex; gap:8px; align-items:center; font-size:12px; color:var(--muted); }
.tour-brand .mark { width:25px; height:25px; border-radius:8px; }
.tour-brand .mark::after { inset:7px; }
.tour-skip { color:var(--muted); background:transparent; font-size:12px; padding:8px; }
.tour-skip .ic { width:15px; }
.tour-track { overflow:auto; min-height:0; touch-action:pan-y; }
.slide { display:grid; grid-template-columns:1fr 1.2fr; align-items:center; gap:32px; padding:25px 30px 40px; min-height:320px; }
.tour-visual { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px; border-radius:20px; background:#eef1fd; padding:30px 15px; min-height:230px; color:var(--accent); font-size:11px; position:relative; }
.tour-visual>.ic { width:64px; height:64px; stroke-width:1; }
.tour-number { position:absolute; top:16px; left:18px; color:#9aa8d9; font-size:12px; }
.tour-copy h2 { font-size:28px; margin:12px 0 16px; }
.tour-copy p { color:var(--muted); font-size:14px; line-height:1.7; margin:0; }
.tour-foot { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 25px; border-top:1px solid var(--line); }
.tour-progress { display:flex; gap:14px; align-items:center; }
#tourCounter { font-size:10px; color:var(--muted); letter-spacing:1px; }
.dots { display:flex; gap:3px; }
.dots button { padding:6px 3px; background:transparent; min-height:30px; width:22px; }
.dots button span { width:100%; height:3px; background:var(--surface-3); border-radius:4px; }
.dots button.on span { background:var(--accent); }
.tour-controls { display:flex; gap:8px; }
.tour-prev { width:46px; padding:0; }
#tourNext { min-width:125px; font-size:13px; }
#tourNext .ic { width:16px; }
#tourNext use[href="#i-back"] { transform:rotate(180deg); transform-origin:center; }
@media(max-width:600px) {
  main { padding:22px 18px; }
  .head { margin-bottom:22px; }
  .head h1 { font-size:17px; }
  .channelbar { margin-bottom:24px; }
  h2 { font-size:28px; }
  .workspace-intro { margin:20px 0 22px; }
  .next-step { padding:22px; flex-direction:column; align-items:stretch; gap:18px; }
  .next-step h3 { font-size:20px; }
  .next-step button { width:100%; min-height:47px; font-size:13px; }
  .grid { gap:8px; }
  .stat { padding:16px 12px; border-radius:15px; }
  .stat b { font-size:26px; }
  .stat i { font-size:10px; }
  .home-actions { gap:8px; }
  .home-actions .action-tile { align-items:flex-start; flex-wrap:wrap; gap:9px; padding:15px; }
  .home-actions .action-tile>span:nth-child(2) { flex-basis:100%; }
  .home-actions .action-tile>.ic { display:none; }
  .home-actions .tile-icon { width:33px; height:33px; border-radius:10px; }
  .action-tile b { font-size:13px; }
  .action-tile small { font-size:11px; }
  .publish-card { flex-direction:column; align-items:stretch; padding:20px; gap:16px; }
  .publish-card button { width:100%; }
  .settings-shortcuts { grid-template-columns:1fr; gap:9px; margin-bottom:22px; }
  .settings-shortcuts .action-tile { padding:15px 17px; }
  .post,.ad { padding:18px; }
  .post .text { font-size:15px; }
  .group>summary { padding:18px; }
  .group>.body { padding:2px 18px 20px; }
  .row { gap:10px; }
  .pair { gap:6px; }
  .window { gap:5px; }
  .select-wrap.compact { max-width:53%; }
  .pair .select-wrap.compact { max-width:none; }
  .plan-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .tariff { padding:16px; }
  .tariff.selected { padding:15px; }
  .tariff .plan-price { font-size:28px; }
  .tariff .plan-limit { font-size:13px; margin-top:17px; }
  .tariff .plan-feature { font-size:10px; }
  .current-plan { padding:22px; }
  .billing-section-head h3 { font-size:17px; }
  .billing-section-head>span { font-size:9px; }
  .account-columns { display:block; }
  .account-notes { padding:20px 3px 0; }
  .account-hero { margin:55px auto; }
  .account-hero h2 { font-size:31px; }
  .account-header .head h1 { font-size:16px; }
  .account-header .text-link { font-size:11px; }
  .tour { padding:15px; }
  .tour-shell { max-height:calc(100dvh - 30px); border-radius:22px; }
  .tour-head { padding:15px 17px; }
  .tour-brand { font-size:10px; }
  .slide { display:flex; flex-direction:column; align-items:stretch; gap:25px; min-height:0; padding:12px 25px 30px; }
  .tour-visual { min-height:170px; gap:15px; }
  .tour-visual>.ic { width:50px; height:50px; }
  .tour-copy h2 { font-size:26px; }
  .tour-copy p { font-size:13px; }
  .tour-foot { padding:16px 20px; flex-wrap:wrap; }
  .tour-progress { width:100%; justify-content:space-between; }
  .tour-controls { width:100%; }
  #tourNext { flex:1; }
}
@media(max-width:360px) {
  main { padding-left:13px; padding-right:13px; }
  .head h1 { font-size:16px; }
  .brand { gap:8px; }
  .mark { width:33px; height:33px; }
  .stat { padding:14px 10px; }
  .stat i { font-size:9px; }
  .row:has(.pair) { flex-wrap:wrap; }
  .row:has(.pair)>span:first-child { flex-basis:100%; }
  .tariff { padding:13px; }
  .tariff.selected { padding:12px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
/* The browser account shares the app's typography, spacing and surfaces. */
.plan-account-limit { margin-top:10px; }
.account-page { padding-bottom:25px; }
.account-page .plan-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
.account-page .tariff { padding:18px 14px; }
.account-page .tariff.selected { padding:17px 13px; }
.account-page .tariff .plan-price { font-size:28px; }
.account-page .tariff .plan-limit { font-size:13px; }
.account-page .tariff .plan-feature { font-size:11px; }
.account-name { color:var(--muted); font-size:12px; max-width:140px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.checkout-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.checkout-heading h3 { font-size:19px; }
#accountQuote { max-width:610px; }
#receiptField .label { margin-top:0; }
#accountOrders { margin-top:30px; }
#accountCheckout { margin-top:4px; }
.account-hero .accent { min-width:230px; }
.account-hero .ic { width:20px; }
.text-link,.back-link,.feed-secondary,.tour-skip { min-height:44px; }
@media(max-width:800px) {
  .account-page .plan-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .account-columns { grid-template-columns:minmax(0,1fr) 220px; gap:20px; }
}
@media(max-width:600px) {
  .account-page .plan-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .account-name { max-width:85px; }
  .account-columns { display:block; }
  .account-page .tariff { padding:18px; }
  .account-page .tariff.selected { padding:17px; }
  .account-page .tariff:last-child { grid-column:1/-1; display:grid; grid-template-columns:1fr 1fr; column-gap:18px; }
  .account-page .tariff:last-child .plan-name,.account-page .tariff:last-child .plan-price,.account-page .tariff:last-child .plan-period { grid-column:1; }
  .account-page .tariff:last-child .plan-limit { grid-column:2; grid-row:1/3; margin:0; align-self:center; }
  .account-page .tariff:last-child .plan-feature { grid-column:2; grid-row:3; margin-bottom:0; }
  .account-page .tariff:last-child button { grid-column:1/-1; margin-top:18px; }
  .account-page .tariff:last-child .current-label { grid-column:1/-1; }
}

.tour-head,.tour-foot { flex:none; }
@media(max-width:600px) and (max-height:650px) {
  .tour-visual { min-height:110px; padding:18px 12px; gap:8px; }
  .tour-visual>.ic { width:37px; height:37px; }
  .slide { gap:18px; padding-top:8px; padding-bottom:20px; }
  .tour-copy h2 { font-size:23px; margin:9px 0 12px; }
}

.checkout-heading h3 { min-width:0; }
.checkout-heading button { flex:none; white-space:nowrap; }

.order-resume { display:block; padding-top:8px; min-height:38px; }

/* Manual preferences use the same controls in the app and browser account. */
.preferences { display:flex; flex-wrap:wrap; gap:12px; margin:16px 0 24px; align-items:end; }
.preferences label { display:grid; gap:5px; flex:1 1 140px; min-width:0; color:var(--muted); font-size:12px; }
.preferences select { min-height:44px; font-size:14px; padding:10px 12px; background:var(--surface); }
.account-preferences { max-width:430px; margin-left:auto; }
#adminReceipts { margin-top:24px; }
#adminReceipts summary { cursor:pointer; font-weight:600; }
#adminReceipts .hint { margin-top:12px; }
#adminReceiptList input { margin:8px 0 12px; }
.tutorial-topics { display:flex; gap:7px; flex-wrap:wrap; padding:0 25px 16px; }
.tutorial-topics button { font-size:11px; min-height:34px; padding:6px 10px; }
.tutorial-topics button[aria-current="step"],.tutorial-topics button.on { color:var(--accent); border:1px solid var(--accent); background:var(--surface-2); }
.tutorial-step-list { padding-left:20px; color:var(--muted); font-size:13px; line-height:1.7; }
.tutorial-step-list li+li { margin-top:8px; }
.tutorial-action { margin-top:18px; width:100%; }

/* Dark surfaces retain readable contrast; imagery and user posts are never filtered. */
:root[data-theme="dark"] {
  color-scheme:dark;
  --bg:#101522; --surface:#192132; --surface-2:#232e43; --surface-3:#303e56;
  --line:#394761; --text:#eef2fb; --muted:#adb9d0;
  --accent:#a1b4ff; --accent-2:#849aee; --grad:linear-gradient(115deg,#344dae,#526cd1);
  --ok:#a1b4ff; --warn:#f0c477; --danger:#ff9ba7;
}
:root[data-theme="dark"] .accent,:root[data-theme="dark"] .next-step button,:root[data-theme="dark"] .acts .ok { background:#526cdb; color:#fff; }
:root[data-theme="dark"] .mark { background:#526cdb; }
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder { color:#9facbf; }
:root[data-theme="dark"] button:disabled { color:#9cabc4!important; }
:root[data-theme="dark"] .profile-button,:root[data-theme="dark"] .chip.on,:root[data-theme="dark"] .tag.live,
:root[data-theme="dark"] .feed-tabs span,:root[data-theme="dark"] .inline-count,:root[data-theme="dark"] .nav button.active { background:#28375c; }
:root[data-theme="dark"] .notice { background:#253450; color:#c8d6f4; }
:root[data-theme="dark"] .next-step { background:#202f50; border-color:#3c4e76; }
:root[data-theme="dark"] .next-step .eyebrow { color:#b3c3f3; }
:root[data-theme="dark"] .next-step p { color:#bbc9e7; }
:root[data-theme="dark"] input[type=checkbox] { background:#4c5b77; }
:root[data-theme="dark"] input[type=checkbox]:checked { background:#627fe5; }
:root[data-theme="dark"] .feed-tabs { background:#121b2a; }
:root[data-theme="dark"] .nav { background:#192132f5; box-shadow:0 10px 32px #0005; }
:root[data-theme="dark"] .badge { border-color:var(--surface); background:#526cdb; }
:root[data-theme="dark"] .empty-note,:root[data-theme="dark"] .upload-control { border-color:#58698a; }
:root[data-theme="dark"] .src.err { border-color:#995467; }
:root[data-theme="dark"] .tariff.current { background:#243355; border-color:#5c74ad; }
:root[data-theme="dark"] .billing-terms b { color:#d2dcf2; }
:root[data-theme="dark"] .tour-visual { background:#243355; }
:root[data-theme="dark"] .tour-number { color:#b3c3f3; }
:root[data-theme="dark"] .toast { background:#344565; }
:root[data-theme="dark"] .toast.err { background:#873e50; }
:root[data-theme="dark"] .current-plan { background:#24386b; border-color:#445f9a; }
@media(max-width:600px) {
  .preferences { gap:9px; }
  .account-preferences { max-width:none; }
  .tutorial-topics { padding:0 17px 12px; }
}
.interface-preferences { margin:-8px 0 22px; color:var(--muted); font-size:12px; }
.interface-preferences>summary { display:inline-flex; align-items:center; gap:7px; min-height:36px; padding:4px 0; cursor:pointer; }
.interface-preferences>summary::after { content:"⌄"; font-size:14px; }
.interface-preferences[open]>summary::after { transform:rotate(180deg); }
.interface-preferences .preferences { margin:8px 0 0; padding:14px; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.tutorial-section { border:1px solid var(--line); background:var(--surface-2); border-radius:14px; padding:16px; margin:14px 0; }
.tutorial-section h3 { font-size:14px; margin-bottom:8px; }
.tutorial-section p { font-size:13px; }
.receipt-review { margin-top:14px; border-left:3px solid var(--warn); }
.receipt-review p { margin-bottom:8px; }
/* Long-form tutorial: keep navigation fixed while the article scrolls. */
.tutorial-topics { flex:none; display:grid; grid-template-columns:auto minmax(0,1fr); align-items:center; gap:12px; }
.tutorial-topics label { color:var(--muted); font-size:12px; }
.tutorial-topics select { min-height:44px; font-size:14px; padding-top:10px; padding-bottom:10px; }
.tutorial-section { grid-template-columns:100px minmax(0,1fr); align-items:start; gap:24px; margin:0; border:0; border-radius:0; background:var(--surface); padding:18px 25px 26px; min-height:0; }
.tutorial-section .tour-visual { min-height:130px; padding:33px 10px 16px; gap:12px; border-radius:14px; }
.tutorial-section .tour-visual>.ic { width:38px; height:38px; }
.tutorial-section .tour-visual>span:last-child { text-align:center; font-size:10px; }
.tutorial-section .tour-number { top:12px; left:12px; }
.tutorial-section .tour-copy h2 { font-size:25px; margin:8px 0 12px; }
.tutorial-section .tour-copy p { font-size:13px; }
.tutorial-step-list { margin:16px 0; }
.tutorial-step-list li { padding-left:3px; }
.tutorial-note { padding:12px; border-radius:10px; background:var(--surface-2); }
.tutorial-action { min-height:44px; font-size:13px; }
.tutorial-action .ic { width:16px; transform:rotate(180deg); }
.tour-foot { flex-wrap:wrap; gap:8px 18px; }
.tour-foot .tour-progress { flex:1; }
#tourSaved { flex-basis:100%; margin:0; font-size:10px; line-height:1.4; }
@media(max-width:600px) {
  .tour-head { padding:12px 17px 8px; }
  .tutorial-topics { grid-template-columns:1fr; gap:5px; padding-bottom:10px; }
  .tutorial-section { display:block; padding:12px 20px 20px; }
  .tutorial-section .tour-visual { display:none; }
  .tutorial-section .tour-copy h2 { font-size:24px; }
  .tour-foot { padding:10px 17px 13px; gap:7px; }
  .tour-foot .tour-progress { flex-basis:100%; }
  .tour-foot .text-link { min-height:44px; padding:4px 0; }
  .tour-foot .tour-controls { flex-basis:100%; }
  #tourSaved { font-size:10px; }
}

/* Compact workspace. The header, channel context and navigation own their space;
   only the content pane scrolls, so actions cannot sit underneath the navigation. */
:root {
  --bg:#ebedef; --surface:#fff; --surface-2:#f2f3f5; --surface-3:#e3e5e8;
  --line:#dce0e5; --text:#24262b; --muted:#626873;
  --accent:#4752c4; --accent-2:#3c45a5; --button:#5865f2;
  --rail:#f2f3f5; --canvas:#fff; --selected:#e7e9fd; --r:14px; --r-sm:10px;
  --safe-top:max(env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px));
  --safe-bottom:max(env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));
}
:root[data-theme="dark"] {
  --bg:#1e1f22; --surface:#313338; --surface-2:#2b2d31; --surface-3:#383a40;
  --line:#42444b; --text:#f2f3f5; --muted:#b5bac1;
  --accent:#b0b6ff; --accent-2:#c0c5ff; --button:#5865f2;
  --rail:#232428; --canvas:#2b2d31; --selected:#3a3e60;
}
body { letter-spacing:0; padding-bottom:0; }
body:has(#app) { overflow:hidden; }
button { font-weight:600; }
button:disabled { color:var(--muted)!important; }
.accent,:root[data-theme="dark"] .accent,.next-step button,:root[data-theme="dark"] .next-step button,.acts .ok,:root[data-theme="dark"] .acts .ok { background:var(--button); color:#fff; }
input::placeholder,textarea::placeholder,:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder { color:var(--muted); opacity:.8; }
h2 { letter-spacing:-.6px; font-weight:750; }
.eyebrow { letter-spacing:1px; font-size:10px; font-weight:700; }
#app { max-width:1280px; height:calc(var(--app-height,100dvh) - 40px); margin:20px auto; padding:0; display:grid; grid-template-columns:224px minmax(0,1fr); grid-template-rows:76px auto minmax(0,1fr) auto; background:var(--rail); border:1px solid var(--line); border-radius:18px; overflow:hidden; }
#app>.head { grid-column:1/-1; grid-row:1; padding:14px 22px; margin:0; background:var(--rail); border-bottom:1px solid var(--line); position:relative; z-index:15; gap:10px; flex-wrap:nowrap; }
.head .brand { flex:1; gap:10px; overflow:hidden; }
.head h1 { font-size:17px; line-height:1.2; letter-spacing:-.45px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.head .status { font-size:11px; margin-top:4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mark,:root[data-theme="dark"] .mark { width:38px; height:38px; background:var(--button); border-radius:13px; }
.mark::after { content:"N"; color:#fff; background:none; clip-path:none; inset:0; display:grid; place-items:center; font:800 23px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing:-1px; }
.header-actions { flex:none; gap:4px; }
#openTutorial,#openAdmin,.interface-preferences>summary { width:44px; height:44px; min-height:44px; padding:0; display:grid; place-items:center; border:0; border-radius:12px; background:transparent; color:var(--muted); font-size:19px; }
#openTutorial { font-size:16px; font-weight:750; }
.interface-preferences { margin:0; font-size:12px; }
.interface-preferences>summary { cursor:pointer; list-style:none; }
.interface-preferences>summary::after { content:none; }
.interface-preferences[open]>summary { color:var(--accent); background:var(--selected); }
.interface-preferences .preferences { position:absolute; top:calc(100% - 4px); right:12px; width:min(320px,calc(100vw - 24px)); display:grid; grid-template-columns:1fr; margin:0; padding:18px; background:var(--surface); border:1px solid var(--line); border-radius:16px; box-shadow:0 12px 36px #0003; gap:14px; }
.interface-preferences .preferences select { font-size:16px; min-height:48px; }
#channelBar { grid-column:1; grid-row:2; margin:0; padding:16px 12px; min-width:0; gap:6px; border:0; border-radius:0; background:var(--rail); }
.channel-avatar { display:grid; place-items:center; flex:none; width:36px; height:36px; background:var(--surface-3); color:var(--muted); border-radius:12px; font:500 25px/1 ui-monospace,monospace; }
.channelbar .select-wrap { min-width:0; }
.channelbar select { font-size:13px; font-weight:650; padding-left:4px; min-height:44px; text-overflow:ellipsis; }
.channelbar .select-wrap::after { right:8px; }
.channelbar .select-wrap select { padding-right:23px; }
.channelbar .square { width:44px; height:44px; min-height:44px; border-radius:12px; background:transparent; }
#addChannelRow { grid-column:1; grid-row:4; margin:0; padding:12px; }
#workspaceScroll { grid-column:2; grid-row:2/5; min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; padding:26px 32px 32px; background:var(--canvas); border-left:1px solid var(--line); scroll-padding:16px 0 24px; scrollbar-width:thin; scrollbar-color:var(--surface-3) transparent; }
#app .nav { grid-column:1; grid-row:3; position:static; width:auto; min-width:0; align-self:start; display:flex; flex-direction:column; transform:none; gap:5px; padding:6px 12px; border:0; border-radius:0; background:transparent; box-shadow:none; backdrop-filter:none; }
#app .nav button { flex-direction:row; justify-content:flex-start; padding:12px; gap:12px; min-height:48px; border-radius:9px; font-size:13px; font-weight:600; background:transparent; color:var(--muted); }
#app .nav button.active { color:var(--text); background:var(--selected); }
#app .nav button.active::after { content:none; }
.nav-avatar { display:grid; place-items:center; width:23px; height:23px; flex:none; border-radius:50%; background:var(--surface-3); color:var(--text); font-size:10px; font-weight:800; }
.active .nav-avatar { background:var(--button); color:#fff; }
#app .nav .badge { left:auto; right:9px; top:16px; border:0; min-width:17px; padding:1px 4px; font-size:9px; background:var(--button); color:#fff; }
.workspace-intro { margin:0 0 20px; }
.workspace-intro h2 { font-size:26px; margin-top:6px; }
.workspace-intro p { font-size:13px; line-height:1.6; }
.card,.post,.ad,.action-tile,.tariff { box-shadow:none; }
.next-step,:root[data-theme="dark"] .next-step { border:1px solid var(--line); background:var(--surface); border-radius:14px; padding:22px; gap:18px; }
.next-step .eyebrow,:root[data-theme="dark"] .next-step .eyebrow { color:var(--accent); }
.next-step p,:root[data-theme="dark"] .next-step p { color:var(--muted); font-size:13px; }
.next-step h3 { font-size:19px; margin:7px 0; }
.grid:has(>.stat) { gap:0; background:var(--surface); border:1px solid var(--line); border-radius:14px; }
.stat { border:0; border-right:1px solid var(--line); border-radius:0; background:transparent; padding:18px; }
.stat:last-child { border-right:0; }
.stat b { font-size:29px; font-variant-numeric:tabular-nums; }
.stat i { font-size:11px; }
.action-tile { border-radius:12px; padding:16px; }
.tile-icon { border-radius:12px; background:var(--selected); color:var(--accent); width:36px; height:36px; }
.group { border-radius:14px; }
.group>summary { font-size:14px; font-weight:650; min-height:60px; }
.group>.body { gap:18px; }
.row { gap:14px; align-items:center; }
.row>span:first-child { flex:1 1 50%; }
.row>.select-wrap { flex:0 1 50%; max-width:50%; }
.row .window,.row .pair { flex-shrink:0; }
.row b { font-weight:600; }
.support-link { border-radius:12px; }
.quality { border-radius:12px; }
.quality-name { font-size:16px; }
.preview { border-radius:8px; }
.chip.on,:root[data-theme="dark"] .chip.on { background:var(--selected); color:var(--accent); border-color:var(--accent); }
.feed-tabs,:root[data-theme="dark"] .feed-tabs { border-radius:12px; background:var(--surface-2); padding:4px; gap:4px; margin-bottom:14px; }
.feed-tabs button { min-width:0; font-size:13px; padding:10px 8px; border-radius:8px; }
.feed-tabs .on { background:var(--surface); color:var(--text); box-shadow:0 1px 4px #0001; }
/* Only numbers are badges. Translation spans must not become nested pills. */
.feed-tabs span,:root[data-theme="dark"] .feed-tabs span { background:transparent; color:inherit; padding:0; font-size:inherit; border-radius:0; }
.feed-tabs #pendingCount { display:inline-flex; justify-content:center; min-width:20px; padding:1px 5px; background:var(--selected); color:var(--accent); border-radius:6px; font-size:11px; }
.post,.ad { border-radius:14px; padding:20px; }
.post header { align-items:center; gap:10px; margin-bottom:18px; }
.post header>span.post-avatar { flex:0 0 36px; display:grid; place-items:center; width:36px; height:36px; background:var(--selected); color:var(--accent); border-radius:12px; font-size:14px; font-weight:700; }
.post-byline { flex:1; min-width:0; overflow-wrap:anywhere; }
.post-byline b { display:block; color:var(--text); font-size:13px; font-weight:650; }
.post-byline time { display:block; font-size:11px; color:var(--muted); margin-top:2px; }
.post header a { font-size:11px; min-height:44px; }
.post .text { font-size:15px; line-height:1.65; }
.note { border-radius:9px; padding:10px 12px; background:var(--surface-2); line-height:1.55; }
.post .acts { border-top:1px solid var(--line); padding-top:14px; }
.acts button { min-height:44px; }
.src { border-radius:12px; padding:14px; }
.src .kind { padding:6px 8px; border-radius:8px; background:var(--selected); color:var(--accent); }
.src button { min-width:44px; min-height:44px; }
.notice,:root[data-theme="dark"] .notice { background:var(--surface-2); color:var(--muted); border-radius:12px; }
.current-plan,:root[data-theme="dark"] .current-plan { background:var(--selected); border-color:var(--line); }
.tariff.current,:root[data-theme="dark"] .tariff.current { background:var(--selected); border-color:var(--accent); }
.current-plan .hint { color:var(--muted); }
.hero { text-align:left; border-radius:18px; padding:28px; margin:20px auto; }
.hero h2 { font-size:26px; }
.hero>.ic { margin-bottom:14px; }
#skipChannel { margin-top:10px; }
.onboarding-optional { font-size:12px; margin:14px 0 2px; }
.explore-intro { padding:24px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.explore-intro .eyebrow { color:var(--accent); }
.explore-intro h2 { font-size:34px; line-height:1.12; letter-spacing:-.85px; margin:14px 0 12px; }
.explore-intro p { font-size:14px; line-height:1.65; color:var(--muted); max-width:520px; margin:0; }
.explore-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:20px; align-items:center; }
.explore-actions .text-link .ic,.workflow-row>.ic:last-child,.explore-access>span:last-child .ic { transform:rotate(180deg); width:16px; }
.explore-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:24px 0 12px; }
.explore-section-head h3 { font-size:13px; font-weight:650; margin:0; }
.explore-section-head>span { color:var(--muted); font-size:10px; white-space:nowrap; }
.workflow-list { display:grid; gap:8px; }
.workflow-row { width:100%; display:flex; gap:12px; padding:17px; border-radius:12px; border:1px solid var(--line); background:var(--surface); text-align:left; }
.workflow-number { display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:10px; background:var(--selected); color:var(--accent); font-size:11px; }
.workflow-copy { flex:1; min-width:0; }
.workflow-copy b { display:block; font-size:14px; font-weight:650; }
.workflow-copy small { display:block; margin-top:4px; font-size:12px; font-weight:400; color:var(--muted); line-height:1.5; }
.workflow-row>.ic:not(:last-child) { display:none; }
.workflow-row>.ic { color:var(--muted); width:16px; }
.explore-access { display:flex; width:100%; justify-content:space-between; flex-wrap:wrap; gap:6px 14px; margin:15px 0 0; padding:8px 2px; font-size:12px; text-align:left; background:transparent; }
.explore-access>span { display:flex; align-items:center; gap:7px; }
.explore-access>span:first-child { color:var(--muted); font-weight:450; }
.explore-access>span:last-child { color:var(--accent); }
.explore-access .ic { width:16px; }
.explore-notice { display:flex; align-items:center; gap:16px; padding:14px 16px; margin:0 0 22px; border-radius:12px; background:var(--selected); }
.explore-notice p { margin:0; font-size:12px; line-height:1.6; color:var(--muted); flex:1; }
.explore-notice button { flex:none; font-size:12px; }
.workspace-empty { padding:38px 22px; border:1px solid var(--line); border-radius:14px; background:var(--surface); text-align:center; }
.workspace-empty>.ic { width:30px; height:30px; margin-bottom:15px; color:var(--accent); }
.workspace-empty h3 { font-size:18px; line-height:1.4; }
.workspace-empty p { font-size:13px; line-height:1.6; color:var(--muted); max-width:380px; margin:8px auto 0; }
.preview-chip { display:inline-flex; padding:9px 11px; border:1px solid var(--line); border-radius:8px; font-size:12px; color:var(--muted); }
.exploring #deleteChannel { display:none; }
.exploring #channelSelect { opacity:1; color:var(--muted); }
.tour-brand .mark::after { font-size:17px; }
.tour-shell { border-radius:18px; }
.tour { background:#111214aa; }
.tour-visual,:root[data-theme="dark"] .tour-visual { background:var(--selected); }
.toast,:root[data-theme="dark"] .toast { background:#111214; border:1px solid #42444b; }
@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .nav button,.workflow-row,.action-tile { transition:background-color .15s,border-color .15s; }
  #app .nav button:not(.active):hover { background:var(--surface-3); }
  .workflow-row:hover,.action-tile:hover { border-color:var(--accent); }
}
@media(max-width:1079px) {
  #app { position:fixed; top:0; left:0; width:100%; max-width:none; height:var(--app-height,100dvh); margin:0; border:0; border-radius:0; display:flex; flex-direction:column; }
  #app>.head { flex:none; min-height:calc(66px + var(--safe-top)); padding:calc(10px + var(--safe-top)) 16px 10px; }
  #channelBar { flex:none; padding:8px 16px 10px; border-bottom:1px solid var(--line); gap:8px; }
  #channelBar select { font-size:14px; }
  #addChannelRow { flex:none; padding:10px 16px; border-bottom:1px solid var(--line); }
  #workspaceScroll { flex:1; padding:20px 20px 24px; border:0; }
  #app .nav { flex:none; align-self:stretch; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:6px 10px calc(6px + var(--safe-bottom)); gap:4px; background:var(--rail); border-top:1px solid var(--line); }
  #app .nav button { flex-direction:column; justify-content:center; padding:7px 3px; min-height:54px; font-size:10px; line-height:1.1; gap:5px; border-radius:12px; }
  #app .nav button .ic { width:22px; height:22px; }
  #app .nav .badge { top:3px; right:calc(50% - 26px); }
  .toast { bottom:calc(80px + var(--safe-bottom)); }
}
@media(max-width:600px) {
  #workspaceScroll { padding:18px 16px 24px; }
  .workspace-intro { margin:0 0 18px; }
  .workspace-intro h2 { font-size:25px; }
  .workspace-intro p { font-size:13px; }
  .explore-intro { padding:20px; border-radius:16px; }
  .explore-intro h2 { font-size:28px; letter-spacing:-.65px; margin:12px 0; }
  .explore-intro p { font-size:13px; line-height:1.6; }
  .explore-actions { gap:2px; margin-top:18px; }
  .explore-actions button { width:100%; font-size:13px; }
  .explore-section-head { margin:21px 0 10px; }
  .explore-section-head h3 { font-size:12px; }
  .workflow-row { padding:14px 12px; gap:10px; }
  .workflow-copy b { font-size:13px; }
  .workflow-copy small { font-size:11px; }
  .explore-access { flex-direction:column; align-items:flex-start; }
  .explore-notice { flex-direction:column; align-items:flex-start; gap:2px; padding:13px 14px; margin-bottom:18px; }
  .explore-notice button { padding:8px 0; }
  .next-step { padding:18px; gap:14px; margin-bottom:14px; }
  .next-step h3 { font-size:18px; }
  .next-step button { min-height:44px; }
  .stat { padding:16px 10px; }
  .stat b { font-size:25px; }
  .stat i { font-size:10px; line-height:1.4; }
  .home-actions { margin:14px 0; }
  .home-actions .action-tile { padding:14px 12px; gap:8px; }
  .home-actions .tile-icon { width:30px; height:30px; }
  .home-actions .action-tile b { font-size:13px; }
  .publish-card { padding:18px; margin:14px 0; gap:14px; }
  .group>summary { padding:17px 16px; min-height:58px; font-size:13px; }
  .group>.body { padding:2px 16px 18px; }
  .group>.body .row { gap:10px; }
  .row b { font-size:13px; }
  .row i { font-size:11px; }
  .row:has(.window),.row:has(.pair) { flex-wrap:wrap; }
  .row:has(.window)>span:first-child,.row:has(.pair)>span:first-child { flex-basis:100%; }
  .row:has(.window) .window,.row:has(.pair) .pair { justify-content:flex-end; margin-left:auto; }
  .group input.num { width:56px!important; }
  .select-wrap.compact select { font-size:13px; padding-left:10px; }
  .post,.ad { padding:16px; }
  .post header { gap:9px; margin-bottom:14px; }
  .post header>span.post-avatar { flex-basis:32px; width:32px; height:32px; border-radius:10px; }
  .post-byline b { font-size:12px; }
  .post .text { font-size:14px; line-height:1.7; }
  .note { font-size:11px; padding:10px; }
  .source-shortcuts { gap:7px; margin:14px 0; }
  .source-shortcuts button { flex-basis:110px; }
  .hero { padding:22px; margin:4px auto 14px; border-radius:16px; }
  .hero h2 { font-size:24px; }
  .hero .steps { font-size:13px; line-height:1.6; margin:16px 0; }
  .hero p.muted { font-size:13px; }
  .hero>.ic { width:28px; height:28px; margin-bottom:12px; }
  .tour { padding:10px; }
  .tour-shell { max-height:calc(var(--app-height,100dvh) - 20px); border-radius:18px; }
  .account-page .tariff { padding:15px; }
  .account-page .tariff.selected { padding:14px; }
}
@media(max-width:360px) {
  #app>.head { padding-left:12px; padding-right:12px; }
  #app .head h1 { font-size:15px; }
  #app .head .brand { gap:8px; }
  #app .head .mark { width:32px; height:32px; border-radius:11px; }
  #app .header-actions { gap:0; }
  #channelBar { padding-left:12px; padding-right:12px; }
  #workspaceScroll { padding:16px 12px 22px; }
  .explore-intro { padding:18px; }
  .explore-intro h2 { font-size:25px; }
  .workflow-number { width:28px; height:28px; border-radius:9px; }
  .workflow-copy b { font-size:12px; }
  .workflow-copy small { font-size:11px; }
  .post header a { flex-basis:100%; justify-content:flex-end; }
}
@media(min-width:1080px) {
  #app:has(#nav[hidden]) #workspaceScroll { grid-column:1/-1; border-left:0; }
}

/* Short welcome: one finite animation, four readable steps, immediate exit. */
.billing-change-plan { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:48px; padding:12px 18px; border:1px solid var(--button); border-radius:var(--r-sm); background:var(--button); color:#fff; text-decoration:none; font-size:14px; font-weight:600; }
.billing-change-plan:hover { filter:brightness(1.08); }
.billing-change-plan .ic { width:18px; height:18px; }
.billing-change-hint { text-align:center; margin:12px 0 0; font-size:12px; }
.plan-picker { margin-top:22px; scroll-margin-top:16px; }
.plan-picker-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.plan-picker-head h3 { margin:0; font-size:19px; }
.plan-picker-head button { min-height:44px; padding:8px; }
.plan-options { display:grid; gap:10px; }
.plan-option { display:grid; grid-template-columns:minmax(0,1fr) auto 20px; align-items:center; gap:12px; width:100%; min-height:94px; padding:16px; text-align:left; border:1px solid var(--line); border-radius:14px; background:var(--surface); }
.plan-option.selected { border-color:var(--accent); background:var(--selected); }
.plan-option-name { min-width:0; }
.plan-option b { display:block; font-size:14px; letter-spacing:.4px; }
.plan-option small { display:block; font-size:11px; font-weight:400; line-height:1.4; color:var(--muted); margin-top:3px; }
.plan-option-price { font-size:17px; font-weight:650; text-align:right; white-space:nowrap; }
.plan-option-check { width:20px; height:20px; border:1px solid var(--line); border-radius:50%; display:grid; place-items:center; }
.plan-option.selected .plan-option-check { background:var(--button); border-color:var(--button); color:#fff; }
.plan-option-check .ic { width:14px; height:14px; }
.plan-selection { padding:18px; border:1px solid var(--line); border-radius:14px; background:var(--surface); margin-top:16px; }
.plan-selection>b { display:block; margin-bottom:8px; }
.plan-selection>.hint:last-child { margin:12px 0 0; font-size:11px; }
.plan-selection .billing-change-plan .ic { transform:rotate(180deg); width:16px; }
@media(max-width:360px) {
  .plan-option { gap:9px; padding:14px 12px; }
  .plan-option-price { font-size:16px; }
  .plan-option small { font-size:10px; }
  .plan-selection { padding:16px; }
}
/* Administration uses one card and field scale; nested lists use separators. */
#page-admin { --admin-radius:16px; }
#page-admin .card,#page-admin .adminrow,#page-admin .stat { border:1px solid var(--line); border-radius:var(--admin-radius); box-shadow:none; }
#page-admin>.card:not(.group),#page-admin .adminrow { padding:18px; }
#page-admin .grid { gap:10px; grid-auto-rows:1fr; border:0; border-radius:0; background:transparent; }
#page-admin .stat { display:flex; flex-direction:column; justify-content:space-between; gap:6px; padding:16px 12px; background:var(--surface); }
#page-admin .stat b { font-size:clamp(22px,3.5vw,28px); line-height:1.2; white-space:nowrap; }
#page-admin .stat i { margin:0; line-height:1.4; }
#page-admin .access-grid { align-items:stretch; gap:12px; }
#page-admin .access-grid label { grid-template-rows:minmax(34px,auto) 48px; align-items:end; gap:6px; line-height:1.4; }
#page-admin .access-grid input,#page-admin .access-grid select { width:100%; height:48px; min-height:48px; margin:0; text-align:left; }
#page-admin .client-access { gap:16px; }
#page-admin .client-access>.hint { margin:0; }
#page-admin .client-access>span:first-child { font-weight:600; }
#page-admin .sub { font-weight:400; line-height:1.5; margin-top:4px; }
#page-admin .adminrow>span:first-child { min-width:0; flex:1; }
#page-admin .adminrow>.tag,#page-admin .adminrow>.pair { flex:none; }
#page-admin .codechip .sub { font:400 12px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing:0; }
#page-admin #promoRecipient { margin:6px 0 12px; }
#page-admin .promo-form { display:grid; grid-template-columns:minmax(0,1fr) 76px; align-items:center; }
#page-admin .promo-form input { width:100%; }
#page-admin .form-actions { margin:12px 0; }
#page-admin #apiKeyList .key-card { border:0; border-top:1px solid var(--line); border-radius:0; padding:16px 0 0; margin-top:16px; background:transparent; }
#page-admin #apiKeyList .key-card .form-actions { margin-bottom:0; }
#page-admin #apiLoad .grid { grid-template-columns:repeat(2,minmax(0,1fr)); margin:16px 0; }
#page-admin #channelAudit .card,#page-admin #adminEvents .card { border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; padding:16px 0 0; }
#page-admin #channelAudit .card:first-child,#page-admin #adminEvents .card:first-child { border-top:0; }
#page-admin #channelAudit .card p:last-child,#page-admin #adminEvents .card p:last-child { margin-bottom:0; }
@media(max-width:600px) {
  #page-admin .pagehead { gap:10px; margin-bottom:18px; }
  #page-admin .pagehead h2 { font-size:21px; }
  #page-admin>.card:not(.group),#page-admin .adminrow { padding:16px; }
  #page-admin .stat { padding:14px 10px; }
  #page-admin #adminTotals { grid-template-columns:1fr; }
  #page-admin #adminTotals .stat { flex-direction:row; align-items:center; gap:16px; padding:16px; }
  #page-admin #adminTotals .stat b { flex-shrink:0; }
  #page-admin #adminTotals .stat i { order:-1; text-align:left; }
  #page-admin .system .meter { grid-template-columns:34px minmax(20px,1fr) auto; gap:7px; }
  #page-admin .system .meter span:last-child { font-size:11px; }
  #page-admin .adminrow:not(.client-access) { flex-wrap:wrap; }
  #page-admin #promoList .adminrow>span:first-child { flex-basis:100%; }
  #page-admin #promoList .adminrow>.pair { margin-left:auto; }
}
#plans { scroll-margin-top:20px; }
body.welcome-open { overflow:hidden; }
.welcome { position:fixed; inset:0; z-index:35; display:grid; place-items:center; padding:24px; background:#111214b8; backdrop-filter:blur(14px); }
.welcome-shell { width:min(800px,100%); max-height:calc(var(--app-height,100dvh) - 48px); display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); border-radius:24px; background:var(--surface); box-shadow:0 24px 90px #0004; }
.welcome-head { display:flex; flex:none; align-items:center; justify-content:space-between; padding:16px 22px 8px; gap:12px; }
.welcome-brand { display:flex; align-items:center; gap:9px; font-size:13px; font-weight:650; }
.welcome-brand .mark { width:29px; height:29px; border-radius:10px; }
.welcome-brand .mark::after { font-size:19px; }
#welcomeClose { width:44px; height:44px; min-height:44px; background:transparent; color:var(--muted); }
.welcome-body { display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1fr); gap:24px; align-items:center; min-height:0; overflow:auto; overscroll-behavior:contain; padding:12px 30px 26px; }
.welcome-art { min-width:0; text-align:center; }
.welcome-scene { position:relative; width:100%; aspect-ratio:340/190; border-radius:22px; background:radial-gradient(ellipse at 53% 49%,color-mix(in srgb,var(--button) 14%,transparent),transparent 70%); }
.welcome-path { position:absolute; width:100%; height:100%; inset:0; fill:var(--accent); opacity:.75; overflow:visible; }
.welcome-path path { fill:none; stroke-width:2; }
.path-base { stroke:var(--line); stroke-dasharray:3 6; }
.path-progress { stroke:var(--button); stroke-dasharray:248; stroke-dashoffset:248; transition:stroke-dashoffset 1.2s ease; }
.welcome[data-step="1"] .path-progress { stroke-dashoffset:165; }
.welcome[data-step="2"] .path-progress { stroke-dashoffset:80; }
.welcome[data-step="3"] .path-progress { stroke-dashoffset:0; }
.welcome-channel { position:absolute; left:3%; top:37%; width:40px; height:40px; display:grid; place-items:center; background:var(--selected); border:1px solid var(--line); color:var(--accent); border-radius:13px; font:500 24px/1 ui-monospace,monospace; }
.welcome-material { position:absolute; left:23%; top:38%; width:35px; height:44px; opacity:.3; transform:translateX(-6px); transition:opacity .65s,transform .65s; }
.welcome-material i { display:block; width:28px; height:34px; position:absolute; border:1px solid var(--line); border-radius:6px; background:var(--surface); }
.welcome-material i:nth-child(1) { transform:translate(-5px,-6px) rotate(-12deg); }
.welcome-material i:nth-child(2) { transform:translate(2px,-2px) rotate(7deg); }
.welcome-material i:nth-child(3)::after { content:""; position:absolute; inset:9px 6px; border-top:2px solid var(--accent); border-bottom:2px solid var(--line); }
.welcome:not([data-step="0"]) .welcome-material { opacity:1; transform:translateX(0); }
.welcome-engine { position:absolute; top:28%; left:42%; width:65px; height:65px; display:grid; place-items:center; color:#fff; background:var(--button); border:5px solid var(--surface); border-radius:23px; box-shadow:0 0 0 1px var(--line),0 10px 30px #5865f226; transform:rotate(-8deg); transition:transform .6s; }
.welcome-engine>.ic { width:27px; height:27px; }
.welcome-engine>small { position:absolute; bottom:-27px; font-size:10px; letter-spacing:2px; color:var(--muted); font-weight:700; }
.engine-ring { position:absolute; inset:-14px; border:1px dashed var(--accent); border-radius:50%; opacity:.2; }
.welcome[data-step="2"] .welcome-engine,.welcome[data-step="3"] .welcome-engine { transform:rotate(0); }
.welcome[data-step="2"] .engine-ring { opacity:.6; animation:welcome-orbit 4s linear infinite; }
.welcome[data-playing="false"] .engine-ring { animation-play-state:paused; }
.welcome-post { position:absolute; right:2%; top:19%; width:76px; height:108px; padding:9px; border:1px solid var(--line); border-radius:12px; background:var(--surface); opacity:.4; transform:translateY(8px) rotate(6deg); transition:opacity .65s,transform .65s; box-shadow:0 8px 24px #0001; }
.post-mini-head { display:flex; gap:4px; align-items:center; margin-bottom:7px; }
.post-mini-head i { width:11px; height:11px; border-radius:4px; background:var(--button); }
.post-mini-head b { width:28px; height:3px; border-radius:2px; background:var(--muted); opacity:.6; }
.post-mini-image { display:block; height:31px; border-radius:5px; background:linear-gradient(130deg,var(--selected) 25%,var(--button) 145%); margin-bottom:8px; }
.post-mini-line { display:block; height:3px; margin-bottom:4px; border-radius:2px; background:var(--surface-3); }
.post-mini-line.short { width:65%; }
.post-mini-check { position:absolute; bottom:-10px; right:-7px; display:grid; place-items:center; width:25px; height:25px; border:3px solid var(--surface); border-radius:50%; background:#24875b; color:white; transform:scale(0); transition:transform .45s .3s; }
.post-mini-check .ic { width:14px; height:14px; stroke-width:2.5; }
.welcome[data-step="3"] .welcome-post { opacity:1; transform:translateY(0) rotate(0); }
.welcome[data-step="3"] .post-mini-check { transform:scale(1); }
.welcome-motion { font-size:11px; color:var(--muted); background:transparent; padding:8px; min-height:44px; }
.welcome-copy>.eyebrow { color:var(--accent); font-size:9px; letter-spacing:1px; }
.welcome-copy h2 { font-size:28px; line-height:1.12; letter-spacing:-.65px; margin:10px 0 12px; max-width:340px; }
.welcome-copy>p { font-size:13px; line-height:1.6; color:var(--muted); margin:0 0 18px; }
.welcome-steps { list-style:none; padding:0; margin:0; display:grid; gap:6px; }
.welcome-steps li { display:flex; align-items:center; gap:12px; padding:9px 10px; border-radius:11px; transition:background-color .6s; }
.welcome-step-number { flex:none; color:var(--muted); font-size:11px; font-variant-numeric:tabular-nums; }
.welcome-steps b { display:block; font-size:13px; line-height:1.4; font-weight:650; }
.welcome-steps small { display:block; color:var(--muted); font-size:11px; line-height:1.45; margin-top:2px; }
.welcome[data-step="0"] .welcome-steps li:nth-child(1),.welcome[data-step="1"] .welcome-steps li:nth-child(2),.welcome[data-step="2"] .welcome-steps li:nth-child(3),.welcome[data-step="3"] .welcome-steps li:nth-child(4) { background:var(--selected); }
.welcome-foot { flex:none; display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:18px 24px 20px; border-top:1px solid var(--line); background:var(--surface); }
.welcome-foot button { min-height:46px; font-size:13px; }
.welcome-foot .ic { width:17px; }
.welcome-foot p { grid-column:1/-1; color:var(--muted); font-size:11px; line-height:1.5; margin:0; text-align:center; }
@keyframes welcome-orbit { to { transform:rotate(360deg); } }
@media(max-width:600px) {
  .welcome { padding:max(10px,var(--safe-top)) 10px max(10px,var(--safe-bottom)); }
  .welcome-shell { max-height:calc(var(--app-height,100dvh) - max(10px,var(--safe-top)) - max(10px,var(--safe-bottom))); border-radius:20px; }
  .welcome-head { padding:10px 16px 0; }
  .welcome-body { display:block; padding:0 20px 16px; }
  .welcome-art { max-width:310px; margin:0 auto 12px; }
  .welcome-scene { aspect-ratio:340/160; }
  .welcome-channel { top:34%; }
  .welcome-engine { top:25%; }
  .welcome-post { top:10%; }
  .welcome-motion { font-size:10px; min-height:44px; padding:8px; }
  .welcome-copy h2 { font-size:27px; max-width:300px; margin:9px 0 10px; }
  .welcome-copy>p { font-size:12px; margin-bottom:12px; }
  .welcome-steps { gap:3px; }
  .welcome-steps li { padding:8px; gap:10px; }
  .welcome-foot { padding:12px 16px 16px; gap:8px; }
  .welcome-foot button { min-height:46px; padding:10px 8px; font-size:12px; }
  .welcome-foot p { font-size:10px; }
}
@media(max-width:360px) {
  .welcome-body { padding-left:16px; padding-right:16px; }
  .welcome-copy h2 { font-size:24px; }
  .welcome-steps b { font-size:12px; }
  .welcome-steps small { font-size:10px; }
}
@media(max-width:600px) and (max-height:700px) {
  .welcome-head { padding-top:6px; }
  .welcome-art { margin-bottom:0; }
  .welcome-scene { height:100px; aspect-ratio:auto; }
  .welcome-post { width:62px; height:87px; padding:7px; }
  .post-mini-image { height:23px; margin-bottom:6px; }
  .welcome-engine { width:55px; height:55px; border-radius:20px; }
  .welcome-engine>small { bottom:-22px; }
  .welcome-motion { min-height:44px; }
  .welcome-copy>.eyebrow,.welcome-copy>p { display:none; }
  .welcome-copy h2 { font-size:21px; margin:2px 0 8px; }
  .welcome-steps { gap:1px; }
  .welcome-steps li { padding:6px 8px; }
  .welcome-steps b { font-size:12px; }
  .welcome-steps small { font-size:10px; }
  .welcome-body { padding-bottom:10px; }
  .welcome-foot { padding-top:10px; padding-bottom:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .welcome .path-progress { stroke-dashoffset:0; }
  .welcome .welcome-material,.welcome .welcome-post { opacity:1; transform:none; }
  .welcome .post-mini-check { transform:scale(1); }
}
