:root {
  --bg: #07110f;
  --bg-soft: #0a1714;
  --panel: #0d1b18;
  --panel-2: #10211d;
  --line: rgba(191, 226, 214, 0.13);
  --line-strong: rgba(191, 226, 214, 0.22);
  --text: #f2f7f5;
  --muted: #8da59e;
  --accent: #c8ff4d;
  --accent-2: #59e1c3;
  --danger: #ff6b6b;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, select { cursor: pointer; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.is-hidden { display: none !important; }

.noise { position: fixed; inset: 0; pointer-events: none; opacity: .045; z-index: 99; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 48%) 1fr; overflow: hidden; }
.login-card { min-height: 100vh; padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; position: relative; z-index: 2; background: linear-gradient(140deg, #091512 0%, #07110f 70%); }
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.08rem; font-weight: 750; letter-spacing: .04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #0a120f; background: var(--accent); box-shadow: 0 0 30px rgba(200, 255, 77, .12); }
.brand-mark svg { width: 19px; height: 19px; stroke-width: 2; }
.login-copy { margin: auto 0 35px; max-width: 510px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent-2); font-size: .72rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow i { display: inline-block; width: 24px; height: 1px; background: currentColor; box-shadow: 7px 0 12px currentColor; }
.login-copy h1 { margin: 22px 0 20px; max-width: 520px; font-size: clamp(2.8rem, 5.4vw, 5.7rem); line-height: .98; letter-spacing: -.055em; font-weight: 680; }
.login-copy p { max-width: 430px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.8; }
.login-form { max-width: 510px; width: 100%; }
.login-form > label { display: block; margin-bottom: 10px; color: #bdccc7; font-size: .86rem; font-weight: 600; }
.key-input-wrap, .search-wrap, .password-input { position: relative; display: flex; align-items: center; }
.key-input-wrap > svg { position: absolute; left: 18px; color: #6d8880; }
.key-input-wrap input { width: 100%; height: 58px; padding: 0 18px 0 52px; color: var(--text); background: #0b1a16; border: 1px solid var(--line-strong); border-radius: 13px; outline: none; font-size: 1rem; letter-spacing: .05em; transition: .2s ease; }
.key-input-wrap input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(89, 225, 195, .1); }
.field-error { display: block; min-height: 20px; margin: 7px 0 0; color: #ff9393; font-size: .78rem; }
.primary-btn, .secondary-btn, .danger-btn { min-height: 44px; border: 0; border-radius: 11px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 720; font-size: .88rem; transition: transform .18s ease, filter .18s ease, border-color .18s ease; }
.primary-btn { color: #09100d; background: var(--accent); box-shadow: 0 10px 26px rgba(200,255,77,.08); }
.primary-btn:hover, .secondary-btn:hover, .danger-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.primary-btn:active, .secondary-btn:active, .danger-btn:active { transform: translateY(0); }
.primary-btn svg { width: 17px; height: 17px; stroke-width: 2.2; }
.login-btn { width: 100%; height: 54px; margin-top: 4px; }
.text-btn { width: 100%; margin-top: 13px; border: 0; background: transparent; color: var(--muted); padding: 8px; font-size: .84rem; }
.text-btn:hover { color: var(--accent-2); }
.security-note { max-width: 510px; margin-top: 24px; padding-top: 21px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; color: #698078; font-size: .75rem; line-height: 1.5; }
.security-note svg { width: 17px; min-width: 17px; }

.login-visual { position: relative; min-height: 100vh; overflow: hidden; background: radial-gradient(circle at 45% 45%, rgba(44, 109, 94, .65), transparent 32%), linear-gradient(145deg, #102b24, #07110f 72%); border-left: 1px solid var(--line); }
.visual-grid, .summary-pattern { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(168, 219, 204, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(168, 219, 204, .16) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, transparent 0, #000 30%, #000 70%, transparent); }
.orbit { position: absolute; left: 50%; top: 48%; border: 1px solid rgba(141, 255, 218, .22); border-radius: 50%; transform: translate(-50%, -50%) rotate(-18deg); }
.orbit::after { content: ""; position: absolute; top: 7%; left: 21%; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 22px var(--accent); }
.orbit-one { width: min(46vw, 680px); aspect-ratio: 1; }
.orbit-two { width: min(34vw, 490px); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(48deg); border-color: rgba(200, 255, 77, .16); }
.visual-core { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); display: grid; place-items: center; }
.core-ring { width: 185px; height: 185px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(200,255,77,.45); border-radius: 50%; background: rgba(6, 17, 14, .78); box-shadow: inset 0 0 48px rgba(89,225,195,.08), 0 0 90px rgba(89,225,195,.09); }
.core-ring::before, .core-ring::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(200,255,77,.18); width: 228px; height: 228px; }
.core-ring::after { width: 138px; height: 138px; border-style: solid; border-color: rgba(89,225,195,.12); }
.core-ring span { font-size: 4.5rem; font-weight: 200; line-height: 1; letter-spacing: -.08em; }
.core-ring small { margin-top: 8px; color: var(--accent); letter-spacing: .26em; font-weight: 700; }
.core-label { margin-top: 42px; color: #80a096; letter-spacing: .2em; font-size: .65rem; }
.signal-card { position: absolute; min-width: 175px; padding: 14px 15px; border: 1px solid var(--line-strong); background: rgba(9, 24, 20, .76); backdrop-filter: blur(12px); border-radius: 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; color: #a7bdb5; font-size: .72rem; }
.signal-card i { width: 7px; height: 7px; background: var(--accent-2); border-radius: 50%; box-shadow: 0 0 12px var(--accent-2); }
.signal-card b { color: var(--accent); font-size: .75rem; }
.signal-a { top: 23%; left: 10%; }
.signal-b { right: 9%; bottom: 21%; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); background: var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 10; width: 236px; padding: 27px 18px 20px; background: #081411; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.sidebar .brand { padding: 0 10px 31px; }
.sidebar nav { display: flex; flex-direction: column; gap: 7px; }
.nav-item { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; display: flex; align-items: center; gap: 11px; background: transparent; color: #80958e; font-size: .84rem; text-align: left; }
.nav-item:hover { color: #d7e3df; background: rgba(255,255,255,.025); }
.nav-item.active { color: var(--text); background: #10231e; border-color: rgba(89,225,195,.12); box-shadow: inset 3px 0 0 var(--accent); }
.nav-item svg { width: 18px; height: 18px; }
.nav-item > span { margin-left: auto; min-width: 25px; padding: 2px 7px; border-radius: 20px; color: var(--accent); background: rgba(200,255,77,.08); font-size: .7rem; text-align: center; }
.sidebar-spacer { flex: 1; }
.license-box { margin: 0 4px 11px; padding: 14px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018); display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px rgba(89,225,195,.7); }
.license-box div { display: flex; flex-direction: column; gap: 2px; }
.license-box small { color: #678078; font-size: .64rem; }
.license-box strong { color: #c8d5d0; font-size: .72rem; font-weight: 650; }
.license-days { color: var(--accent); font-size: 1rem; }
.logout { margin-top: 4px; }
.workspace { grid-column: 2; min-width: 0; }
.topbar { height: 92px; padding: 0 clamp(22px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(7,17,15,.84); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 5; }
.page-heading h1 { margin: 5px 0 0; font-size: 1.48rem; letter-spacing: -.02em; }
.page-heading .eyebrow { font-size: .58rem; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.prototype-badge { display: flex; align-items: center; gap: 7px; min-height: 33px; padding: 0 10px; border: 1px solid var(--line); border-radius: 20px; color: #7f978f; font-size: .7rem; }
.prototype-badge span { width: 6px; height: 6px; border-radius: 50%; background: #ffbc57; box-shadow: 0 0 8px rgba(255,188,87,.5); }
.production-badge span { background: var(--accent-2); box-shadow: 0 0 9px rgba(89,225,195,.7); }
button:disabled { cursor: wait; opacity: .62; transform: none !important; }
.icon-btn { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: #9badA7; background: transparent; }
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); }
.menu-btn { display: none; }
.content { padding: 30px clamp(22px, 4vw, 56px) 60px; max-width: 1540px; margin: 0 auto; }
.content.quick-mode { height: calc(100dvh - 92px); padding-top: 24px; padding-bottom: 24px; overflow: hidden; }
.content.quick-mode #quickView, .content.quick-mode .quick-page-panel { height: 100%; min-height: 0; }
.view-pane { min-width: 0; }
.quick-page-panel { width: min(1080px, 100%); min-height: calc(100vh - 180px); margin: 0 auto; padding: clamp(22px, 2.5vw, 30px); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; background: linear-gradient(150deg, rgba(14,31,27,.96), rgba(9,22,19,.98)); box-shadow: var(--shadow); }
.quick-page-header { position: relative; padding-bottom: 2px; }
.quick-page-header::before { content: ""; position: absolute; left: 0; top: -36px; width: 86px; height: 2px; background: linear-gradient(90deg, var(--accent-2), transparent); }
.quick-chip { width: fit-content; min-height: 30px; padding: 0 11px; border: 1px solid rgba(89,225,195,.24); border-radius: 99px; display: inline-flex; align-items: center; gap: 7px; color: var(--accent-2); background: rgba(89,225,195,.06); font-size: .76rem; font-weight: 700; }
.quick-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.quick-page-header h2 { margin: 12px 0 6px; font-size: clamp(1.8rem, 3vw, 2.2rem); line-height: 1; letter-spacing: -.045em; }
.quick-page-header p { margin: 0; color: #81978f; font-size: .94rem; }
.quick-page-header strong { color: var(--accent); font-size: 1.05rem; }
.quick-query-card { margin-top: 18px; padding: 16px; border: 1px solid rgba(191,226,214,.12); border-radius: 15px; background: rgba(255,255,255,.025); }
.quick-query-meta { margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quick-query-meta h3 { margin: 0; font-size: .92rem; }
.quick-query-meta span { min-height: 28px; padding: 0 10px; border-radius: 99px; display: inline-flex; align-items: center; color: #81988f; background: rgba(255,255,255,.04); font-size: .72rem; font-weight: 650; }
.quick-query-card > p { margin: 10px 2px 0; color: #70877f; font-size: .8rem; }
.quick-results-panel { min-height: 0; flex: 1; margin-top: 16px; padding: 12px; overflow: hidden; border: 1px dashed rgba(191,226,214,.18); border-radius: 15px; background: rgba(3,12,10,.22); }
.quick-empty-state { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.quick-empty-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #688078; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.quick-empty-icon svg { width: 20px; height: 20px; }
.quick-empty-state h3 { margin: 15px 0 7px; font-size: 1rem; }
.quick-empty-state p { margin: 0; color: #687e77; font-size: .84rem; }
.quick-results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.summary-strip { min-height: 102px; padding: 24px 28px; position: relative; overflow: hidden; display: flex; align-items: center; gap: clamp(20px, 3vw, 42px); border: 1px solid rgba(89,225,195,.14); border-radius: 16px; background: linear-gradient(110deg, #10261f, #0d1d19 65%, #0c1916); box-shadow: var(--shadow); }
.summary-main { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; position: relative; z-index: 1; }
.summary-main span { color: #99ada7; font-size: .82rem; }
.summary-main strong { color: var(--accent); font-size: 2.45rem; line-height: 1; font-weight: 620; letter-spacing: -.05em; }
.summary-divider { width: 1px; height: 42px; background: var(--line-strong); position: relative; z-index: 1; }
.summary-meta { min-width: 135px; display: grid; grid-template-columns: auto 1fr; gap: 3px 9px; position: relative; z-index: 1; }
.summary-meta i { grid-row: 1 / span 2; align-self: center; width: 8px; height: 8px; border: 1px solid #6a857d; border-radius: 50%; }
.summary-meta i.online { border: 0; background: var(--accent-2); box-shadow: 0 0 10px rgba(89,225,195,.5); }
.summary-meta span { color: #6f8980; font-size: .68rem; }
.summary-meta b { color: #bdcbc6; font-size: .77rem; font-weight: 650; }
.summary-pattern { width: 38%; left: auto; opacity: .11; transform: skewX(-10deg); }
.quick-input-wrap { position: relative; display: flex; align-items: center; }
.quick-input-wrap > svg { position: absolute; left: 17px; width: 20px; height: 20px; color: var(--accent-2); }
.quick-input-wrap > input { width: 100%; height: 56px; padding: 0 48px 0 49px; color: var(--text); background: #091713; border: 1px solid var(--line-strong); border-radius: 11px; outline: none; font-size: 1rem; }
.quick-input-wrap > input::-webkit-search-cancel-button { display: none; appearance: none; }
.quick-input-wrap > input:focus { border-color: rgba(200,255,77,.42); box-shadow: 0 0 0 3px rgba(200,255,77,.06); }
.quick-clear { position: absolute; right: 9px; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 8px; display: grid; place-items: center; color: #698179; background: transparent; }
.quick-clear:hover { color: var(--text); background: rgba(255,255,255,.035); }
.quick-clear svg { width: 15px; height: 15px; }
.quick-result { width: 100%; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; color: var(--text); background: rgba(14,32,27,.8); text-align: left; }
.quick-result:hover, .quick-result:focus-visible { border-color: rgba(200,255,77,.25); background: rgba(18,39,33,.96); outline: none; }
.quick-result .provider-icon { width: 38px; height: 38px; min-width: 38px; border-radius: 10px; font-size: .82rem; }
.quick-result-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.quick-result-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.quick-result-info span { color: #6f8980; font-size: .72rem; }
.quick-result-code { display: flex; align-items: center; gap: 9px; }
.quick-result-code > span { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.quick-result-code b { min-width: 92px; color: var(--accent); font: 650 1.06rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; white-space: nowrap; }
.quick-result-code small { color: #698078; font-size: .68rem; }
.quick-result-code svg { width: 15px; height: 15px; color: var(--accent); }
.quick-result.no-code .quick-result-code b { color: #72867f; font-family: inherit; font-size: .78rem; letter-spacing: 0; }
.quick-result-hero { width: 100%; height: 100%; min-height: 280px; padding: 24px 28px 22px; position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) 110px; grid-template-rows: auto 1fr auto auto; grid-template-areas: "account timer" "main timer" "progress progress" "copy copy"; column-gap: 26px; row-gap: 15px; color: var(--text); border: 1px solid rgba(89,225,195,.2); border-radius: 18px; background: radial-gradient(circle at 82% 42%, rgba(200,255,77,.09), transparent 26%), linear-gradient(145deg, rgba(17,42,35,.98), rgba(8,25,21,.98)); text-align: left; box-shadow: inset 0 1px rgba(255,255,255,.025), 0 22px 60px rgba(0,0,0,.18); }
.quick-result-hero::before, .quick-result-hero::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(200,255,77,.08); border-radius: 50%; }
.quick-result-hero::before { width: 300px; height: 300px; right: -70px; top: -85px; }
.quick-result-hero::after { width: 220px; height: 220px; right: -30px; top: -45px; }
.quick-result-hero:hover, .quick-result-hero:focus-visible { border-color: rgba(200,255,77,.38); background: radial-gradient(circle at 82% 42%, rgba(200,255,77,.12), transparent 28%), linear-gradient(145deg, rgba(19,46,38,.99), rgba(9,28,23,.99)); outline: none; }
.quick-hero-account { grid-area: account; min-width: 0; display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.quick-hero-account .provider-icon { width: 56px; height: 56px; min-width: 56px; border-radius: 15px; font-size: 1.15rem; }
.quick-hero-account .quick-result-info { gap: 6px; }
.quick-hero-account .quick-result-info strong { font-size: 1.08rem; }
.quick-hero-account .quick-result-info span { font-size: .84rem; }
.quick-hero-live { min-height: 30px; margin-left: 8px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; color: #8eaaa1; border: 1px solid var(--line); border-radius: 99px; background: rgba(255,255,255,.025); font-size: .76rem; white-space: nowrap; }
.quick-hero-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px rgba(89,225,195,.75); }
.quick-hero-main { grid-area: main; align-self: center; display: flex; flex-direction: column; align-items: flex-start; position: relative; z-index: 1; }
.quick-hero-main > small { color: #789087; font-size: .82rem; letter-spacing: .08em; }
.quick-hero-main > b { margin: 11px 0 9px; color: var(--accent); font: 620 clamp(2.8rem, 4.4vw, 4rem)/.92 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .11em; white-space: nowrap; text-shadow: 0 0 28px rgba(200,255,77,.12); }
.quick-hero-main > span { color: #789087; font-size: .86rem; }
.quick-hero-timer { grid-area: timer; width: 100px; height: 100px; align-self: center; justify-self: end; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(200,255,77,.22); border-radius: 50%; background: rgba(7,22,18,.72); box-shadow: 0 0 0 10px rgba(200,255,77,.025), inset 0 0 28px rgba(200,255,77,.035); }
.quick-hero-timer > span { color: #eef5f2; font: 500 2rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.quick-hero-timer > small { margin-top: 8px; color: #789087; font-size: .72rem; }
.quick-hero-progress { grid-area: progress; width: 100%; height: 4px; overflow: hidden; position: relative; z-index: 1; border-radius: 99px; background: rgba(255,255,255,.055); }
.quick-hero-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 12px rgba(200,255,77,.5); transition: width .25s linear; }
.quick-hero-copy { grid-area: copy; width: fit-content; min-height: 38px; padding: 0 14px; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; color: #c7ff4d; border: 1px solid rgba(200,255,77,.18); border-radius: 9px; background: rgba(200,255,77,.055); font-size: .84rem; font-weight: 650; }
.quick-hero-copy svg { width: 16px; height: 16px; }
.quick-result-hero.no-code .quick-hero-main > b { color: #71867f; font-family: inherit; font-size: 2rem; letter-spacing: 0; }
.quick-result-hero.no-code .quick-hero-live i { background: #70847d; box-shadow: none; }
.toolbar { margin: 20px 0 18px; display: flex; justify-content: space-between; gap: 14px; }
.search-wrap { width: min(460px, 100%); }
.search-wrap > svg { position: absolute; left: 15px; color: #60766f; width: 17px; height: 17px; }
.search-wrap input { width: 100%; height: 44px; padding: 0 61px 0 43px; color: var(--text); background: #0b1815; border: 1px solid var(--line); border-radius: 11px; outline: none; }
.search-wrap input:focus { border-color: rgba(89,225,195,.5); box-shadow: 0 0 0 3px rgba(89,225,195,.07); }
.search-wrap kbd { position: absolute; right: 10px; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; color: #5f756e; background: #0c1b17; font: 10px/1.3 inherit; }
.secondary-btn { color: #a9bbb5; background: #0d1b18; border: 1px solid var(--line); box-shadow: none; }
.secondary-btn svg { width: 16px; height: 16px; }

.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-card { min-width: 0; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16,34,29,.96), rgba(10,23,20,.97)); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.account-card:hover { transform: translateY(-2px); border-color: rgba(89,225,195,.25); box-shadow: 0 20px 55px rgba(0,0,0,.2); }
.account-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -55px; top: -55px; border: 1px solid rgba(200,255,77,.08); border-radius: 50%; pointer-events: none; }
.card-head { padding: 20px 20px 17px; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--line); }
.provider-icon { width: 41px; height: 41px; min-width: 41px; border-radius: 12px; display: grid; place-items: center; color: #0b1512; background: var(--provider, var(--accent-2)); font-size: 1rem; font-weight: 850; box-shadow: 0 8px 25px color-mix(in srgb, var(--provider) 16%, transparent); }
.account-id { min-width: 0; flex: 1; }
.provider-name { display: flex; align-items: center; gap: 7px; color: #91a69f; font-size: .7rem; }
.provider-name i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); }
.account-email { margin: 5px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #edf4f1; font-size: .92rem; font-weight: 650; }
.card-menu { position: relative; }
.card-menu > button { width: 32px; height: 32px; border: 0; border-radius: 8px; display: grid; place-items: center; color: #70877f; background: transparent; }
.card-menu > button:hover { color: var(--text); background: rgba(255,255,255,.04); }
.menu-popover { position: absolute; top: 35px; right: 0; z-index: 4; width: 115px; padding: 5px; border: 1px solid var(--line-strong); border-radius: 9px; background: #10211d; box-shadow: 0 15px 35px rgba(0,0,0,.35); }
.menu-popover button { width: 100%; padding: 8px 9px; border: 0; border-radius: 6px; color: #aec0ba; background: transparent; text-align: left; font-size: .74rem; }
.menu-popover button:hover { background: rgba(255,255,255,.04); color: var(--text); }
.menu-popover button.delete-action { color: #ff8c8c; }
.otp-panel { padding: 22px 20px 17px; }
.otp-label { display: flex; align-items: center; justify-content: space-between; color: #738b83; font-size: .68rem; letter-spacing: .04em; }
.otp-time { display: flex; align-items: center; gap: 6px; color: #93a8a1; letter-spacing: 0; }
.otp-time i { width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.otp-code-row { margin-top: 7px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.otp-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: clamp(1.8rem, 3vw, 2.35rem); font-weight: 520; letter-spacing: .13em; white-space: nowrap; }
.otp-empty .otp-code { color: #6f837c; font-family: inherit; font-size: .9rem; letter-spacing: 0; }
.otp-empty .otp-time { color: #60766f; }
.copy-otp { width: 39px; height: 39px; min-width: 39px; border: 1px solid var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: rgba(200,255,77,.04); }
.copy-otp:hover { border-color: rgba(200,255,77,.3); background: rgba(200,255,77,.08); }
.copy-otp svg { width: 16px; height: 16px; }
.progress-track { height: 2px; margin-top: 14px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.05); }
.progress-bar { width: 100%; height: 100%; transform-origin: left; background: linear-gradient(90deg, var(--accent-2), var(--accent)); box-shadow: 0 0 8px var(--accent); }
.card-detail { padding: 15px 20px 18px; border-top: 1px solid var(--line); display: grid; gap: 13px; }
.detail-row { display: grid; grid-template-columns: 63px minmax(0,1fr) auto; align-items: center; gap: 8px; min-height: 23px; }
.detail-row > span:first-child { color: #637b73; font-size: .68rem; }
.detail-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #9bafa8; font-size: .75rem; }
.password-dots { letter-spacing: .18em; }
.reveal-btn { padding: 4px; border: 0; color: #607970; background: transparent; display: grid; place-items: center; }
.reveal-btn:hover { color: var(--accent-2); }
.reveal-btn svg { width: 15px; height: 15px; }
.note-value { color: #7f958d; }
.empty-state { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: var(--accent); background: rgba(200,255,77,.07); }
.empty-state h2 { margin: 16px 0 7px; font-size: 1rem; }
.empty-state p { margin: 0; color: var(--muted); font-size: .8rem; }

.management-panel { width: min(1120px, 100%); margin: 0 auto; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(150deg, rgba(14,31,27,.96), rgba(9,22,19,.98)); box-shadow: var(--shadow); }
.management-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.management-head h2 { margin: 8px 0 5px; font-size: 1.65rem; letter-spacing: -.035em; }
.management-head p { margin: 0; color: #738a82; font-size: .84rem; }
.audit-list, .key-list { margin-top: 18px; display: grid; gap: 8px; }
.audit-row { min-height: 66px; padding: 12px 15px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.audit-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px rgba(89,225,195,.55); }
.audit-row div { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.audit-row strong, .key-row strong { font-size: .88rem; }
.audit-row small, .key-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #70877f; font-size: .74rem; }
.audit-row time, .key-row time { color: #667d75; font-size: .72rem; white-space: nowrap; }
.panel-loading, .panel-empty { min-height: 220px; display: grid; place-items: center; color: #72877f; border: 1px dashed var(--line); border-radius: 12px; font-size: .84rem; }
.key-create-form { margin-top: 22px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 12px; }
.key-create-form label { display: flex; flex-direction: column; gap: 7px; color: #aebfba; font-size: .86rem; font-weight: 650; }
.key-create-form input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; outline: none; color: var(--text); background: #0e201b; font-size: .9rem; }
.key-create-form input:focus { border-color: rgba(89,225,195,.5); box-shadow: 0 0 0 3px rgba(89,225,195,.07); }
.new-key-box { margin-top: 16px; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid rgba(200,255,77,.24); border-radius: 12px; background: rgba(200,255,77,.055); }
.new-key-box div { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.new-key-box small { color: #91a79f; font-size: .75rem; }
.new-key-box strong { overflow-wrap: anywhere; color: var(--accent); font: 650 1rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; }
.key-row { min-height: 70px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0,1fr) auto 90px 76px; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.018); }
.key-row > div { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.key-row .secondary-btn { min-height: 36px; padding: 0 12px; font-size: .76rem; }
.danger-outline-btn { min-height: 36px; padding: 0 14px; border: 1px solid rgba(255,112,112,.24); border-radius: 9px; color: #ff9a9a; background: rgba(255,92,92,.055); font-size: .76rem; font-weight: 700; }
.danger-outline-btn:hover { border-color: rgba(255,112,112,.48); background: rgba(255,92,92,.1); }
.key-action-placeholder { width: 68px; }
.key-state { min-width: 55px; padding: 5px 9px; border-radius: 99px; color: var(--accent-2); background: rgba(89,225,195,.07); font-size: .72rem; text-align: center; }
.key-state.revoked { color: #a17d7d; background: rgba(255,115,115,.07); }

dialog { color: var(--text); }
dialog::backdrop { background: rgba(1, 7, 5, .76); backdrop-filter: blur(6px); }
.account-dialog { width: min(600px, calc(100vw - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 16px; background: #0b1815; box-shadow: 0 35px 90px rgba(0,0,0,.55); }
.account-dialog form { padding: 22px; }
.dialog-head { margin-bottom: 17px; display: flex; justify-content: space-between; align-items: center; }
.dialog-head h2 { margin: 0; font-size: 1.28rem; letter-spacing: -.02em; }
.dialog-head .icon-btn { width: 36px; height: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1.35fr; column-gap: 12px; row-gap: 11px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 6px; color: #aebfba; font-size: .875rem; font-weight: 650; }
.field > label { color: #9db0aa; }
.field em { color: #71877f; font-size: .82rem; font-style: normal; font-weight: 500; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; color: var(--text); background: #0e201b; padding: 10px 12px; font-size: .9rem; line-height: 1.45; resize: vertical; }
.field input, .field select { height: 44px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(89,225,195,.5); box-shadow: 0 0 0 3px rgba(89,225,195,.07); }
.field small { color: #587068; font-size: .68rem; line-height: 1.5; font-weight: 450; }
.account-dialog .field-error { min-height: 0; margin: 0; font-size: .8rem; }
.account-dialog .field-error:empty { display: none; }
.provider-combobox { position: relative; }
.provider-combobox input { padding-right: 42px; }
.combobox-icon { position: absolute; pointer-events: none; top: 13px; right: 13px; width: 16px; height: 16px; color: #647b73; transition: transform .18s ease; }
.provider-combobox.open .combobox-icon { transform: rotate(180deg); }
.provider-suggestions { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; right: 0; max-height: 215px; padding: 5px; overflow: auto; border: 1px solid var(--line-strong); border-radius: 10px; background: #10231e; box-shadow: 0 20px 45px rgba(0,0,0,.42); }
.provider-option { width: 100%; min-height: 42px; padding: 7px 9px; border: 0; border-radius: 7px; display: flex; align-items: center; gap: 9px; color: #a8bbb4; background: transparent; text-align: left; font-size: .875rem; }
.provider-option:hover, .provider-option.active { color: var(--text); background: rgba(255,255,255,.05); }
.provider-option-mark { width: 27px; height: 27px; border-radius: 7px; display: grid; place-items: center; color: #09130f; background: var(--provider); font-size: .7rem; font-weight: 800; }
.provider-option small { margin-left: auto; color: #61776f; font-size: .75rem; }
.full-field { grid-column: 1 / -1; }
.password-input input { padding-right: 45px; }
.password-input button { position: absolute; right: 4px; width: 36px; height: 36px; border: 0; display: grid; place-items: center; color: #637a72; background: transparent; }
.password-input svg { width: 16px; height: 16px; }
.dialog-actions { margin-top: 18px; display: flex; justify-content: flex-end; gap: 10px; }
.account-dialog .dialog-actions button { min-width: 92px; min-height: 44px; font-size: .9rem; }
.danger-btn { color: #fff; background: #c94e4e; }
.confirm-dialog { width: min(430px, calc(100vw - 28px)); padding: 28px; border: 1px solid var(--line-strong); border-radius: 18px; background: #0b1815; text-align: center; }
.confirm-dialog form { display: flex; flex-direction: column; align-items: center; }
.danger-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: #ff7b7b; background: rgba(255,107,107,.08); }
.confirm-dialog h2 { margin: 16px 0 8px; font-size: 1.15rem; }
.confirm-dialog p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.65; }
.confirm-dialog .dialog-actions { width: 100%; }
.confirm-dialog .dialog-actions button { flex: 1; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 20px); min-width: 180px; max-width: calc(100vw - 32px); padding: 12px 16px; border: 1px solid rgba(200,255,77,.25); border-radius: 10px; color: #dfeae6; background: #12251f; box-shadow: 0 18px 45px rgba(0,0,0,.35); opacity: 0; pointer-events: none; text-align: center; font-size: .78rem; transition: .24s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-meta:last-of-type { display: none; }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-card { min-height: 100vh; }
  .login-visual { display: none; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; box-shadow: 20px 0 50px rgba(0,0,0,.35); }
  .sidebar.open { transform: translateX(0); }
  .workspace { width: 100%; }
  .menu-btn { display: grid; }
  .topbar { height: 82px; padding: 0 18px; }
  .content { padding: 22px 18px 45px; }
  .content.quick-mode { height: calc(100dvh - 82px); padding: 16px 14px; overflow: hidden; }
  .page-heading { margin-right: auto; }
  .summary-strip { padding: 20px; }
  .prototype-badge { display: none; }
  .quick-page-panel { min-height: calc(100vh - 148px); }
}

@media (max-width: 620px) {
  .login-card { padding: 25px 22px; }
  .brand-login { margin-bottom: 72px; }
  .login-copy { margin: 0 0 30px; }
  .login-copy h1 { font-size: clamp(2.7rem, 14vw, 4rem); }
  .login-copy p { font-size: .9rem; }
  .security-note { margin-top: auto; padding-top: 22px; }
  .account-grid { grid-template-columns: 1fr; }
  .topbar .primary-btn { width: 42px; padding: 0; }
  .topbar .primary-btn:not(:focus) { font-size: 0; gap: 0; }
  .topbar .primary-btn svg { width: 18px; height: 18px; }
  .page-heading h1 { font-size: 1.16rem; }
  .summary-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
  .summary-main { grid-column: 1 / -1; }
  .summary-divider { display: none; }
  .quick-page-panel { padding: 20px 16px; border-radius: 16px; }
  .quick-page-header::before { top: -20px; }
  .quick-results-panel { min-height: 0; margin-top: 14px; padding: 10px; }
  .quick-empty-state { min-height: 100%; }
  .quick-results-list { grid-template-columns: 1fr; }
  .quick-result-code small { display: none; }
  .quick-result-code b { min-width: 70px; font-size: .88rem; }
  .quick-result-hero { min-height: 0; padding: 18px 16px 16px; grid-template-columns: minmax(0, 1fr) 74px; grid-template-rows: auto 1fr auto auto; grid-template-areas: "account account" "main timer" "progress progress" "copy copy"; column-gap: 10px; row-gap: 13px; }
  .quick-hero-account { justify-content: flex-start; }
  .quick-hero-account .provider-icon { width: 48px; height: 48px; min-width: 48px; }
  .quick-hero-account .quick-result-info strong { max-width: 180px; font-size: .92rem; }
  .quick-hero-live { display: none; }
  .quick-hero-main { align-items: flex-start; text-align: left; }
  .quick-hero-main > b { margin: 9px 0; font-size: clamp(2rem, 10.5vw, 2.6rem); letter-spacing: .065em; }
  .quick-hero-main > span { font-size: .76rem; }
  .quick-hero-timer { width: 70px; height: 70px; justify-self: end; }
  .quick-hero-timer > span { font-size: 1.3rem; }
  .quick-hero-timer > small { margin-top: 5px; }
  .quick-hero-copy { width: 100%; justify-content: center; }
  .toolbar { flex-direction: column; }
  .search-wrap { width: 100%; }
  .toolbar .secondary-btn { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: 1; }
  .account-dialog form { padding: 21px; }
  .management-panel { padding: 20px 16px; border-radius: 16px; }
  .management-head { align-items: flex-start; flex-direction: column; }
  .key-create-form { grid-template-columns: 1fr; }
  .key-create-form .primary-btn { width: 100%; }
  .new-key-box { align-items: stretch; flex-direction: column; }
  .key-row { grid-template-columns: minmax(0,1fr) auto; }
  .key-row time { display: none; }
  .audit-row { grid-template-columns: auto minmax(0,1fr); }
  .audit-row time { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
