.auth { display: grid; place-items: center; min-height: 100vh; padding: 40px 16px; }
.auth-card { display: grid; gap: 14px; width: min(440px, 100%); padding: 32px; border-radius: 24px; background: rgba(22, 18, 24, 0.82); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 100px -30px rgba(0, 0, 0, 0.8); backdrop-filter: blur(20px); animation: lift 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.auth-card[hidden] { display: none; }
.auth-card h1 { margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.auth-card > .dim { margin-top: -8px; font-size: 14px; }
.auth-logo img { width: 44px; height: 44px; border-radius: 12px; }
@keyframes lift { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

.lbl { display: grid; gap: 7px; font-size: 14px; font-weight: 600; }
.lbl-row { display: flex; align-items: center; justify-content: space-between; }
.link { border: 0; background: none; color: var(--dim); font-size: 13px; font-weight: 500; cursor: pointer; transition: color 0.15s; }
.link:hover { color: var(--accent); }
.input { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 13px; background: rgba(0, 0, 0, 0.35); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 400; transition: box-shadow 0.15s, background 0.15s; }
.input:focus-within { background: rgba(0, 0, 0, 0.5); box-shadow: inset 0 0 0 1px rgba(242, 154, 198, 0.55), 0 0 0 4px rgba(242, 154, 198, 0.08); }
.input > svg, .eye svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--dim); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.input input, .input textarea { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; }
.input input::placeholder, .input textarea::placeholder { color: rgba(243, 238, 244, 0.32); }
.input.joined { gap: 0; }
.input.joined > span { color: var(--dim); white-space: nowrap; }
.input.area { height: auto; padding: 12px 14px; }
.input textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.eye { display: grid; place-items: center; width: 30px; height: 30px; margin-right: -6px; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.eye:hover svg { stroke: var(--ink); }
.eye svg + svg, .eye.open svg:first-child { display: none; }
.eye.open svg + svg { display: block; }
.err:empty, .note:empty { display: none; }
.note { color: var(--dim); font-size: 13px; }
.note.bad { color: var(--red); }
.auth-card .btn { height: 46px; border-radius: 13px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.social { gap: 10px; font-weight: 500; }
.brand-icon { width: 18px; height: 18px; }
.auth-foot { color: var(--dim); font-size: 14px; text-align: center; }
.auth-foot a { color: var(--accent); font-weight: 500; }
.auth-foot a:hover { text-decoration: underline; }
.turnstile:empty { display: none; }

.dash-page { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.dash-page[data-loading] main, .dash-page[data-loading] .me { visibility: hidden; }
.dash-side { position: sticky; top: 0; display: flex; flex-direction: column; gap: 22px; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line); background: rgba(12, 10, 13, 0.6); backdrop-filter: blur(16px); }
.dash-side .brand { padding: 0 8px; }
.me { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); }
.me div { display: grid; min-width: 0; }
.me b, .me small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.me small { color: var(--dim); font-size: 13px; }
.av { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; overflow: hidden; border-radius: 999px; background: var(--raise-2); font-weight: 700; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.big { width: 72px; height: 72px; font-size: 26px; }
.tabs { display: grid; gap: 2px; }
.tabs button { display: flex; align-items: center; gap: 11px; height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--dim); font-weight: 500; text-align: left; cursor: pointer; transition: color 0.15s, background 0.15s; }
.tabs button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.tabs button.on { color: var(--ink); background: rgba(255, 255, 255, 0.1); }
.tabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.on svg { stroke: var(--accent); }
.side-foot { display: grid; gap: 8px; margin-top: auto; }
.btn.ghost { background: none; box-shadow: none; color: var(--dim); }
.btn.ghost:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }

.dash { width: min(820px, 100% - 48px); margin: 0 auto; padding: 48px 0 96px; }
.dash section { display: grid; gap: 14px; animation: lift 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.dash section[hidden] { display: none; }
.dash-head { margin-bottom: 10px; }
.dash-head h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.04em; }
.dash .panel { display: grid; gap: 16px; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.dash .panel.avatar-row { display: flex; align-items: center; }
.avatar-row .grow { flex: 1; min-width: 0; }
.avatar-row .dim { font-size: 13px; }
.panel-title { font-size: 15px; font-weight: 600; }
.panel-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.panel-foot .note { margin-right: auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 760px) {
  .dash-page { grid-template-columns: 1fr; }
  .dash-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .tabs { grid-auto-flow: column; overflow-x: auto; }
  .two { grid-template-columns: 1fr; }
}
.enter-preview { display: grid; place-content: center; gap: 6px; height: 180px; border-radius: 16px; background: #000; box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.enter-preview b { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; white-space: pre-wrap; }
.enter-preview span { color: var(--dim); font-size: 13px; }
.enter-preview span:empty { display: none; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.pick.listed { cursor: default; }
.tools { display: flex; gap: 2px; }
.tool { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--dim); font-size: 16px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.tool:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.tool:disabled { opacity: 0.3; pointer-events: none; }
[data-current] { display: grid; gap: 2px; }

.dash { width: min(1040px, 100% - 48px); }
.crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 22px; color: var(--dim); font-size: 14px; }
.crumbs svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.crumbs b { color: var(--ink); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { display: grid; gap: 4px; padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--line); }
.stat span { display: flex; align-items: center; justify-content: space-between; color: var(--dim); font-size: 13px; font-weight: 600; }
.stat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stat b { overflow: hidden; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; text-overflow: ellipsis; }
.stat small { color: var(--dim); font-size: 12px; }
.charts { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.lbl-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ranges { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); }
.ranges button { height: 28px; padding: 0 11px; border: 0; border-radius: 999px; background: none; color: var(--dim); font-size: 12px; font-weight: 600; cursor: pointer; }
.ranges button.on { background: rgba(255, 255, 255, 0.12); color: var(--ink); }
.chart { position: relative; height: 220px; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart text { fill: var(--dim); font-size: 11px; }
.chart .grid { stroke: rgba(255, 255, 255, 0.06); }
.chart .stroke { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tip { position: absolute; top: 0; padding: 5px 9px; border-radius: 8px; background: #1b171c; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.devices { display: grid; gap: 14px; }
.device { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; }
.device b { color: var(--dim); font-weight: 600; }
.device i { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--accent) var(--w), rgba(255, 255, 255, 0.07) var(--w)); }
.panel-title.spaced { margin-top: 8px; }
.input select { width: 100%; border: 0; outline: 0; background: none; color: inherit; font: inherit; }
.input select option { background: #151216; }
.share-row { display: flex; gap: 6px; }
.share-row .share { flex: 1; gap: 8px; }
.share-row .share.copied { color: var(--accent); }
.share-row svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { width: 42px; padding: 0; }
.who-card { position: relative; }
.who-card .me { width: 100%; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.who-card .me div { flex: 1; }
.who-card .me > svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--dim); stroke-width: 2; }
.av { display: grid; place-items: center; width: 36px; height: 36px; flex: none; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-weight: 700; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); display: grid; gap: 2px; padding: 6px; border-radius: 14px; background: #171318; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, 0.4); animation: lift 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.menu[hidden] { display: none; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.menu a:hover, .menu button:hover { background: rgba(255, 255, 255, 0.06); }
.menu .danger { color: #f87171; }
.menu svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.onboard { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(6, 5, 7, 0.75); backdrop-filter: blur(10px); }
.onboard[hidden], .onboard-card[hidden] { display: none; }
.onboard-card { display: grid; gap: 12px; width: min(440px, 100%); padding: 28px; border-radius: 24px; background: #131014; box-shadow: inset 0 0 0 1px var(--line); animation: lift 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.onboard-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.step { color: var(--dim); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.step.center { text-align: center; }
.choices { display: grid; gap: 8px; margin: 6px 0; }
.choices button { height: 46px; padding: 0 16px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer; transition: background 0.15s, box-shadow 0.15s; }
.choices button:hover { background: rgba(255, 255, 255, 0.07); }
.choices button.on { background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px var(--accent); }
.onboard-foot { display: flex; justify-content: space-between; }
.wide { width: 100%; }
.done-top { display: grid; justify-items: center; gap: 8px; text-align: center; }
.done-check { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.done-check svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.url { display: block; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; text-align: center; }
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .charts { grid-template-columns: 1fr; }
  .menu { left: auto; width: 220px; }
}

.dash-page { --accent: #fff; --accent-ink: #000; --bg: #000; --line: rgba(255, 255, 255, 0.08); --dim: rgba(255, 255, 255, 0.5); --ink: #fff; background: #000; }
.dash-page .glow { display: none; }
.dash-page .dash-side { background: #050505; }
.dash-page .btn.solid { background: #fff; color: #000; }
.dash-page .btn.solid:hover { background: #e5e5e5; }
.dash-page .input:focus-within { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.06); }
.dash-page .tabs button.on svg { stroke: #fff; }
.dash-page .stat, .dash .panel { background: #0a0a0a; }
.dash-page .note.bad { color: var(--red); }
.toggle { display: flex; align-items: center; gap: 10px; width: fit-content; font-size: 14px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: #fff; }
.plus-card { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: linear-gradient(160deg, #1a1a1a, #0a0a0a); box-shadow: inset 0 0 0 1px var(--line); }
.plus-card[hidden] { display: none; }
.plus-top { display: flex; align-items: center; justify-content: space-between; }
.plus-card p { color: var(--dim); font-size: 13px; line-height: 1.4; }
.pill { padding: 2px 8px; border-radius: 999px; background: #fff; color: #000; font-size: 11px; font-weight: 700; }
.onboard-wrap { position: relative; width: min(440px, 100%); }
.onboard-card { width: 100%; }
.onboard-x { position: absolute; top: 14px; right: 14px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--dim); cursor: pointer; }
.onboard-x:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.onboard-x svg, .url svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.url { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; text-align: left; }
.url a { flex: 1; min-width: 0; overflow: hidden; color: #fff; white-space: nowrap; text-overflow: ellipsis; }
.url button { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; }
.url button.copied { background: #fff; color: #000; }

.dash-page { display: block; }
.dash-page[data-loading] .dash-main { visibility: hidden; }
.dash-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side-nav { display: grid; }
.side-nav .tabs[hidden] { display: none; }
.tabs button > svg:last-child:not(:first-child) { width: 14px; height: 14px; margin-left: auto; }
.tabs span { flex: 1; }
.tabs .back { justify-content: center; margin-bottom: 8px; background: rgba(255, 255, 255, 0.05); color: #fff; font-weight: 600; }
.tabs .back svg { position: absolute; }
.tabs .back { position: relative; }
.tabs .back span { text-align: center; }
.menu hr { margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.dash-main { display: flex; flex-direction: column; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 28px; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(12px); }
.crumbs { margin: 0; }
.crumbs i { color: var(--dim); font-style: normal; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-btn { height: 38px; gap: 8px; padding: 0 14px; font-size: 14px; }
.top-btn svg, .top-actions .icon-btn svg, .btn.small svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.top-actions .icon-btn { width: 38px; height: 38px; display: grid; place-items: center; }
.bell-wrap { position: relative; }
.pop { position: absolute; right: 0; top: calc(100% + 8px); display: grid; gap: 10px; width: 300px; padding: 14px; border-radius: 16px; background: #0d0d0d; box-shadow: inset 0 0 0 1px var(--line), 0 20px 40px rgba(0, 0, 0, 0.5); animation: lift 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pop[hidden] { display: none; }
.dash { padding-top: 12px; }
.btn.small { height: 34px; gap: 6px; padding: 0 12px; font-size: 13px; }
.seg { display: inline-flex; width: fit-content; gap: 2px; padding: 4px; border-radius: 14px; background: #0a0a0a; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--dim); font: inherit; font-size: 14px; cursor: pointer; }
.seg button.on { background: rgba(255, 255, 255, 0.1); color: #fff; }
.seg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-seg-pane][hidden] { display: none; }
.empty-box { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; border: 1px dashed var(--line-2); border-radius: 16px; text-align: center; }
.empty-box svg { width: 34px; height: 34px; fill: none; stroke: var(--dim); stroke-width: 1.6; }
.empty-box p { color: var(--dim); font-size: 13px; }
.small { font-size: 13px; }
.pill.soft { background: rgba(255, 255, 255, 0.1); color: #fff; }
.badge-list, .link-list, .key-list { display: grid; gap: 8px; }
.brow { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.brow.off { opacity: 0.5; }
.brow .grow, .grow { display: grid; flex: 1; min-width: 0; }
.brow small { color: var(--dim); font-size: 12px; }
.badge { display: grid; place-items: center; flex: none; }
.dash-page .bsvg { width: 20px; height: 20px; fill: color-mix(in srgb, var(--c) 20%, transparent); stroke: var(--c); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dash-page .badge.shine .bsvg { filter: drop-shadow(0 0 6px var(--c)); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.btile { display: grid; gap: 6px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); opacity: 0.55; }
.btile.have { opacity: 1; }
.btile p { font-size: 13px; }
.btile small { color: var(--dim); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.crow { display: flex; align-items: center; gap: 8px; }
.crow .input { flex: 1; height: 40px; }
.crow input[type=color] { width: 40px; height: 40px; flex: none; padding: 0; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.key-form { display: flex; gap: 8px; }
.key-form[hidden], .key-shown[hidden] { display: none; }
.key-form .input { flex: 1; }
.key-shown { display: grid; gap: 8px; }
.key-shown code { flex: 1; overflow: hidden; font-family: var(--mono); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.docs pre { overflow-x: auto; padding: 14px; border-radius: 12px; background: #000; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: 13px; }
.ep { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ep code { font-family: var(--mono); }
.ep p { flex-basis: 100%; }
.center { text-align: center; }

.editing .dash { width: 100%; max-width: none; padding: 0; }
.editing .topbar { display: none; }
.editor-pane { position: relative; min-height: 100vh; padding: 20px 400px 40px 28px; }
.editor-pane:has(.drawer[hidden]) { padding-right: 28px; }
.ed-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 900px; margin: 0 auto; padding: 10px; border-radius: 18px; background: #0a0a0a; box-shadow: inset 0 0 0 1px var(--line); }
.ed-left, .ed-right { display: flex; gap: 6px; }
.ed-title { display: grid; text-align: center; }
.ed-title small { color: var(--dim); font-size: 12px; }
.drawer { position: fixed; top: 16px; right: 16px; bottom: 16px; z-index: 30; display: flex; flex-direction: column; width: 360px; border-radius: 20px; background: #0a0a0a; box-shadow: inset 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, 0.6); animation: lift 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); }
.drawer-head div { display: grid; }
.drawer-head small { color: var(--dim); font-size: 12px; }
.drawer-head svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.drawer-body { display: grid; align-content: start; gap: 10px; padding: 16px; overflow-y: auto; }
.drawer-body .input { height: 42px; }
.drawer-body .input.area { height: auto; }
.drawer-body .crow { flex-wrap: wrap; }
@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; }
  .top-btn span { display: none; }
  .editor-pane, .editor-pane:has(.drawer[hidden]) { padding: 16px; }
  .ed-bar { flex-wrap: wrap; justify-content: center; }
  .drawer { top: auto; left: 8px; right: 8px; bottom: 8px; width: auto; max-height: 60vh; }
}

.tabs .back { justify-content: center; padding: 0 36px; }
.tabs .back svg { left: 12px; width: 16px; height: 16px; }
.ed-stage { display: block; padding: 14px 0 0; }
.ed-frame { display: block; width: 100%; height: calc(100vh - 110px); border: 0; border-radius: 20px; background: #000; box-shadow: inset 0 0 0 1px var(--line); }
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px); }
.modal[hidden] { display: none; }
.modal-card { display: grid; gap: 14px; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 24px; border-radius: 22px; background: #0b0b0b; box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px rgba(0, 0, 0, 0.6); animation: lift 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.modal-head p { font-size: 13px; }
.modal-head svg, .color-row svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; }
.modal-foot.two-btn > * { flex: 1; }
.picker { position: relative; }
.pick-btn { width: 100%; border: 0; color: #fff; font: inherit; font-weight: 500; text-align: left; cursor: pointer; }
.pick-btn::after { content: "⌄"; margin-left: auto; color: var(--dim); }
.picker-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 5; display: grid; gap: 8px; padding: 8px; border-radius: 16px; background: #0d0d0d; box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 50px rgba(0, 0, 0, 0.6); }
.picker-pop[hidden] { display: none; }
.picker-list { display: grid; max-height: 260px; overflow-y: auto; }
.picker-list button { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: #fff; font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.picker-list button:hover, .picker-list button.on { background: rgba(255, 255, 255, 0.07); }
.picker-list button.on::after { content: "✓"; margin-left: auto; color: var(--dim); }
.pglyph { width: 18px; height: 18px; flex: none; }
.pglyph.line { fill: none; stroke: var(--dim); stroke-width: 2; }
.picon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.input.joined > span[hidden] { display: none; }
.input.joined > span:not(:empty) { padding-right: 2px; }
.color-row { display: flex; gap: 8px; }
.color-row .input { flex: 1; }
.swatch { width: 46px; height: 46px; flex: none; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.swatch::-webkit-color-swatch-wrapper { padding: 0; }
.swatch::-webkit-color-swatch { border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-2); }
.crow .swatch { width: 40px; height: 40px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.switch-row > span { display: grid; gap: 2px; }
.switch-row small { color: var(--dim); font-size: 12px; font-weight: 400; }
.switch { position: relative; width: 40px; height: 22px; flex: none; margin: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.15); appearance: none; cursor: pointer; transition: background 0.2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 999px; background: #fff; transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.switch:checked { background: #fff; }
.switch:checked::after { background: #000; transform: translateX(18px); }
.opts { display: grid; gap: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.range-row { display: grid; gap: 10px; }
.range-top { display: flex; justify-content: space-between; }
.range-top small { color: var(--dim); font-variant-numeric: tabular-nums; }
.slider { width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(to right, #fff var(--fill, 0%), rgba(255, 255, 255, 0.12) var(--fill, 0%)); appearance: none; cursor: pointer; }
.slider::-webkit-slider-thumb { width: 18px; height: 18px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15); appearance: none; }
.slider::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 999px; background: #fff; }
.drop-wrap { display: grid; gap: 8px; }
.drop { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 170px; padding: 20px; border: 1px dashed var(--line-2); border-radius: 16px; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.drop:hover, .drop.over { border-color: #fff; background: rgba(255, 255, 255, 0.03); }
.drop > svg { width: 26px; height: 26px; }
.drop small { color: var(--dim); font-size: 12px; }
.drop-media { max-width: 100%; max-height: 160px; border-radius: 12px; object-fit: cover; }
.drop-media.small { width: 48px; height: 48px; object-fit: contain; }
.line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btile-top { display: flex; align-items: center; justify-content: space-between; }
.state { padding: 3px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--dim); font-size: 11px; font-weight: 600; }
.state.on { background: #fff; color: #000; box-shadow: none; }
.btile small { display: none; }
.share-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background 0.15s; }
.share-opt:hover { background: rgba(255, 255, 255, 0.08); }
.share-opt[hidden] { display: none; }
.share-opt > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-opt span { display: grid; }
.share-opt small { color: var(--dim); font-size: 12px; }
.url.big { padding: 6px 6px 6px 12px; }
.url-icon svg { width: 16px; height: 16px; fill: none; stroke: var(--dim); stroke-width: 2; }
.url.big button { width: auto; gap: 6px; padding: 0 12px; display: flex; align-items: center; font: inherit; font-size: 13px; transition: background 0.15s, color 0.15s; }
.url.big button.copied { background: #fff; color: #000; }
.url.big button.copied b { font-size: 0; }
.url.big button.copied b::after { content: "Copied!"; font-size: 13px; }
.qr-box { display: grid; place-items: center; padding: 22px; border-radius: 18px; background: #000; box-shadow: inset 0 0 0 1px var(--line); }
.qr-box svg { width: min(260px, 100%); height: auto; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 90; padding: 12px 18px; border-radius: 14px; background: #fff; color: #000; font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); transform: translateX(-50%); animation: toast-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.toast[hidden] { display: none; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); transition: opacity 0.25s, transform 0.25s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 14px) scale(0.96); } }
.share.copied { background: #fff; color: #000; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.tier { display: grid; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.tier-top { display: flex; align-items: center; gap: 12px; }
.tier-top small { color: var(--dim); font-size: 12px; }
.tier-count { flex: none; font-variant-numeric: tabular-nums; }
.tier-bar { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--c) var(--w), rgba(255, 255, 255, 0.08) var(--w)); }
.badge-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.brow-card { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.brow-top { display: flex; align-items: center; gap: 14px; }
.brow-top .grow b { font-size: 15px; }
.brow-top .grow small { overflow: hidden; color: var(--dim); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.brow-top .bsvg { width: 26px; height: 26px; }
.brow-tools { display: flex; flex: none; align-items: center; gap: 6px; }
.badge-act { height: 32px; gap: 6px; padding: 0 12px; font-size: 13px; }
.badge-act svg, .icon-toggle svg { width: 14px; height: 14px; }
.icon-toggle { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; cursor: pointer; transition: transform 0.2s; }
.brow-card.open .icon-toggle { transform: rotate(180deg); }
.steps { display: none; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.brow-card.open .steps { display: grid; }
.step-row { display: flex; align-items: center; gap: 12px; opacity: 0.55; }
.step-row.done { opacity: 1; }
.step-row .bsvg { width: 22px; height: 22px; }
.step-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 13px; }
.step-head small { color: var(--dim); }
.step-foot { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.step-foot small { color: var(--dim); }
.dash-page [data-chart] .dot { fill: #000; stroke: #fff; stroke-width: 2; opacity: 0; transition: opacity 0.15s; }
.dash-page [data-chart] .dot.on { opacity: 1; }
.dash-page [data-chart] .fade-in { animation: fade-up 0.5s ease both; }
.dash-page [data-chart] .stroke { stroke: #fff; }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } }
.ranges button { transition: background 0.2s, color 0.2s; }
.side-toggle { display: none; }
@media (max-width: 900px) {
  .dash-page .dash-side { position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(300px, 86vw); height: 100dvh; overflow-y: auto; border-right: 1px solid var(--line); border-bottom: 0; transform: translateX(-102%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .dash-page.side-open .dash-side { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6); }
  .dash-page .tabs { grid-auto-flow: row; overflow: visible; }
  .side-toggle { display: grid; flex: none; }
  .topbar { gap: 8px; padding: 10px 14px; }
  .crumbs { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
  .crumbs span, .crumbs i { display: none; }
  .dash { width: calc(100% - 28px); padding: 8px 0 72px; }
  .dash-head h1 { font-size: 24px; }
  .panel { padding: 16px; border-radius: 18px; }
  .lbl-row { flex-wrap: wrap; }
  .ed-frame { height: calc(100dvh - 150px); border-radius: 14px; }
  .modal { padding: 10px; align-items: end; }
  .modal-card { width: 100%; max-height: calc(100dvh - 20px); border-radius: 20px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .top-actions .top-btn { display: none; }
  .seg { overflow-x: auto; flex-wrap: nowrap; }
  .seg button { flex: none; }
}
.form { display: grid; gap: 14px; }
.fpanel { gap: 18px; }
.fhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.fbody { display: grid; gap: 14px; transition: opacity 0.2s; }
.fpanel.off .fbody { opacity: 0.4; pointer-events: none; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fbody .lbl > span:first-child { font-size: 14px; }
.switch-row.boxed { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.switch-row > span { display: grid; gap: 2px; }
.state-pill { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 0; border-radius: 999px; background: rgba(248, 113, 113, 0.08); box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.4); color: #f87171; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; }
.state-pill i { position: relative; width: 22px; height: 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; }
.state-pill i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; border-radius: 999px; background: currentColor; transition: transform 0.2s; }
.state-pill.on { background: rgba(74, 222, 128, 0.08); box-shadow: inset 0 0 0 1px rgba(74, 222, 128, 0.4); color: #4ade80; }
.state-pill.on i::after { transform: translateX(10px); }
.pick-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.pick-card { display: grid; gap: 10px; padding: 10px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); color: #fff; font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: box-shadow 0.15s, background 0.15s; }
.pick-card:hover { background: rgba(255, 255, 255, 0.06); }
.pick-card.on { box-shadow: inset 0 0 0 2px #fff; }
.pick-art { display: grid; align-content: center; justify-items: start; gap: 6px; height: 90px; padding: 14px; border-radius: 10px; background: #000; }
.pick-art i { display: block; width: 70%; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.22); }
.pick-art i:first-child { width: 24px; height: 24px; border-radius: 50%; }
.pick-art i:last-child { width: 45%; }
.pick-art.lay-center { justify-items: center; }
.pick-art.lay-compact { padding: 14px 28%; }
.pick-art.hot-tl, .pick-art.hot-center { place-items: center; }
.hot-tl i, .hot-center i { display: none; }
.hot-tl i:first-child, .hot-center i:first-child { position: relative; display: block; width: 36px; height: 36px; border: 1px dashed rgba(255, 255, 255, 0.4); border-radius: 6px; background: none; }
.hot-tl i:first-child::after, .hot-center i:first-child::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.hot-tl i:first-child::after { top: -4px; left: -4px; }
.hot-center i:first-child::after { top: 13px; left: 13px; }
.fx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chip { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); color: rgba(255, 255, 255, 0.75); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s; }
.fx-chip:hover { color: #fff; }
.fx-chip.on { background: #fff; color: #000; }
.stepper b { flex: 1; }
.stepper button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.06); color: #fff; font-size: 16px; cursor: pointer; }
.stepper button:hover { background: rgba(255, 255, 255, 0.12); }
.embed-card { display: grid; gap: 10px; max-width: 440px; padding: 12px 16px 16px; border-left: 4px solid var(--ec, #fff); border-radius: 6px; background: #2b2d31; }
.embed-body { display: grid; gap: 4px; }
.embed-body small { color: #b5bac1; font-size: 12px; }
.embed-body b { color: #fff; font-size: 15px; }
.embed-body p { color: #dbdee1; font-size: 14px; white-space: pre-wrap; }
.embed-body p:empty { display: none; }
.embed-card img { width: 100%; max-height: 220px; border-radius: 6px; object-fit: cover; }
.cols-2 > .lbl:has(.embed-card) { grid-row: span 2; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar .grow { flex: 1 1 220px; }
.toolbar .input, .toolbar .btn { height: 42px; }
.toolbar .input.select { width: auto; min-width: 140px; }
.fav-toggle { gap: 12px; font-size: 14px; cursor: pointer; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.file-grid > .empty-box, .folder-grid > .empty-box { grid-column: 1 / -1; }
.row-list { display: grid; gap: 8px; }
.fcard { display: grid; gap: 10px; padding: 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); animation: lift 0.3s ease both; }
.fthumb { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #0a0a0a; }
.fthumb img, .fthumb video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.fcard:hover .fthumb img, .fcard:hover .fthumb video { transform: scale(1.04); }
.fthumb svg { width: 32px; height: 32px; color: var(--dim); }
.finfo, .folder-card, .hrow { display: flex; align-items: center; gap: 10px; min-width: 0; }
.finfo .grow, .folder-card .grow, .hrow .grow { display: grid; flex: 1; min-width: 0; }
.finfo b, .folder-card b, .hrow b, .finfo small, .folder-card small, .hrow small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.finfo b { font-size: 14px; }
.finfo small, .folder-card small, .hrow small { color: var(--dim); font-size: 12px; }
.fmove { height: 34px; padding: 0 10px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); color: #fff; font: inherit; font-size: 13px; }
.fmove option { background: #111; }
.folder-card, .hrow { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.folder-card { cursor: pointer; transition: background 0.15s; }
.folder-card:hover { background: rgba(255, 255, 255, 0.06); }
.ftools { display: flex; flex: none; gap: 4px; }
.icon-act { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.8); cursor: pointer; transition: background 0.15s, color 0.15s; }
.icon-act:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.icon-act svg { width: 15px; height: 15px; }
.icon-act.on { color: #facc15; }
.icon-act.on svg { fill: currentColor; }
.icon-act.danger:hover { color: #f87171; }
svg.big { width: 22px; height: 22px; flex: none; color: var(--dim); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 14px; }
.two-col.tight { gap: 10px; }
.hint { color: var(--dim); font-size: 12px; font-weight: 400; }
.short-preview { display: grid; gap: 4px; padding: 12px 14px; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--line-2); }
.short-preview small { color: var(--dim); font-size: 12px; }
.short-preview code { font-family: "Geist Mono", monospace; font-size: 13px; }
.meter { display: block; height: 6px; border-radius: 999px; background: linear-gradient(to right, #fff var(--w, 0%), rgba(255, 255, 255, 0.08) var(--w, 0%)); }
.modal-card.wide { width: min(760px, 100%); }
.modal-card textarea { font-family: "Geist Mono", monospace; font-size: 13px; }
@media (max-width: 760px) {
  .cols-2, .cols-3, .two-col { grid-template-columns: 1fr; }
  .toolbar > * { flex: 1 1 140px; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hrow .ftools { flex-wrap: wrap; justify-content: flex-end; }
}
.toolbar .input.grow { display: flex; }
