:root {
  color-scheme: light;
  --bg: #f2f6f2;
  --bg-deep: #e9f1e9;
  --surface: #ffffff;
  --surface-raised: #fcfefc;
  --surface-soft: #edf6ee;
  --line: #dce8de;
  --line-strong: #c6d9ca;
  --text: #17251b;
  --muted: #6b7a70;
  --faint: #91a097;
  --green: #158a43;
  --green-bright: #18a852;
  --green-text: #146e38;
  --green-soft: #e1f5e6;
  --danger: #bf454c;
  --shadow: 0 24px 60px rgba(24, 61, 35, .08);
  --grid: rgba(28, 105, 55, .055);
  font-family: "M PLUS Rounded 1c", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090e0b;
  --bg-deep: #0c1510;
  --surface: #111a14;
  --surface-raised: #162119;
  --surface-soft: #13241a;
  --line: #26372b;
  --line-strong: #36523c;
  --text: #edf6ef;
  --muted: #97ac9d;
  --faint: #647b6b;
  --green: #49d278;
  --green-bright: #5be58b;
  --green-text: #71e39a;
  --green-soft: #183623;
  --danger: #ff999e;
  --shadow: 0 30px 80px rgba(0, 0, 0, .3);
  --grid: rgba(91, 229, 139, .035);
}
* { box-sizing: border-box; }
html { min-height: 100%; overflow-y: scroll; scrollbar-gutter: stable; }
body { min-width: 320px; min-height: 100vh; margin: 0; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.app-shell { min-height: 100vh; background: radial-gradient(ellipse 70% 34% at 55% -15%, var(--bg-deep), transparent 84%), var(--bg); }
.topbar { height: 76px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(16px); position: relative; z-index: 3; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark, .auth-emblem { display: grid; place-items: center; flex: none; color: var(--green-text); background: linear-gradient(145deg, var(--green-soft), var(--surface)); border: 1px solid var(--line-strong); box-shadow: 0 0 28px color-mix(in srgb, var(--green) 19%, transparent); }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; font-size: 23px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 15px; font-weight: 800; letter-spacing: -.035em; }
.brand-copy small { font-size: 10px; color: var(--muted); letter-spacing: .02em; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.online-indicator { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.online-indicator i, .sidebar-pulse, .eyebrow-dot { width: 7px; height: 7px; display: inline-block; flex: none; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 12%, transparent), 0 0 16px color-mix(in srgb, var(--green) 52%, transparent); }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); color: var(--muted); font-size: 19px; }
.quiet-button { border: 0; padding: 8px 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.quiet-button:hover, .text-button:hover, .auth-bottom a:hover { color: var(--green-text); }
.inline { display: inline; }
.app-body { display: flex; min-height: calc(100vh - 76px); }
.sidebar { width: 232px; flex: 0 0 232px; padding: 36px 14px 22px; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 56%, transparent); }
.sidebar-label, .section-kicker, .auth-tag, .auth-caption, .eyebrow { color: var(--green-text); font: 800 10px/1.4 "Segoe UI", Arial, sans-serif; letter-spacing: .14em; }
.sidebar-label { margin: 0 14px 17px; color: var(--faint); font-size: 9px; }
.side-nav { display: grid; gap: 5px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 700; }
.side-link:hover { color: var(--text); background: var(--surface-soft); }
.side-link.active { color: var(--green-text); background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 22%, var(--line)); box-shadow: inset 2px 0 var(--green); }
.side-symbol { display: grid; place-items: center; width: 22px; font-size: 18px; font-weight: 400; }
.side-arrow { margin-left: auto; opacity: .6; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding: 20px 13px 0; display: flex; gap: 11px; align-items: start; font-size: 11px; font-weight: 800; line-height: 1.5; }
.sidebar-bottom small { color: var(--muted); font-size: 10px; font-weight: 500; }
.sidebar-pulse { margin-top: 5px; }
.main-content { width: min(100%, 1200px); min-width: 0; margin: 0 auto; padding: 48px clamp(24px, 4.5vw, 70px) 100px; }
.auth-content { width: 100%; max-width: none; padding: 0; }
.guest .app-shell { background: radial-gradient(ellipse 60% 45% at 50% 28%, color-mix(in srgb, var(--green) 14%, var(--bg)), transparent 78%), var(--bg); }
.guest .topbar { background: transparent; border-bottom-color: transparent; }
.auth-scene { min-height: calc(100vh - 76px); position: relative; display: grid; place-content: center; justify-items: center; overflow: hidden; padding: 55px 20px 30px; }
.auth-scene::before { position: absolute; inset: 0; content: ""; opacity: .65; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at 50% 43%, #000 4%, transparent 70%); }
.auth-orbit { position: absolute; border: 1px solid color-mix(in srgb, var(--green) 13%, transparent); border-radius: 50%; pointer-events: none; transform: translateY(-28%); }
.auth-orbit-one { width: 700px; height: 700px; }
.auth-orbit-two { width: 940px; height: 940px; border-color: color-mix(in srgb, var(--green) 8%, transparent); }
.auth-card { z-index: 1; width: min(100%, 480px); padding: clamp(27px, 4vw, 39px); border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(155deg, var(--surface-raised), var(--surface)); box-shadow: var(--shadow), inset 0 1px color-mix(in srgb, white 45%, transparent); }
.auth-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.auth-emblem { width: 52px; height: 52px; border-radius: 13px; font-size: 29px; }
.auth-tag { color: var(--faint); font-size: 9px; }
.auth-card h1 { margin: 0; color: var(--text); font-size: clamp(34px, 5vw, 46px); line-height: 1.15; letter-spacing: -.055em; }
.auth-card h1 em { color: var(--green-text); font-style: normal; }
.auth-subtitle { max-width: 340px; margin: 15px 0 30px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.auth-form { gap: 17px; }
.auth-form .primary { width: 100%; justify-content: space-between; margin-top: 5px; }
.auth-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 23px; padding-top: 21px; border-top: 1px solid var(--line); color: var(--faint); font-size: 10px; line-height: 1.5; }
.auth-bottom a { color: var(--green-text); font-weight: 700; }
.auth-caption { z-index: 1; margin-top: 28px; color: var(--faint); font-size: 9px; }
.page-title { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-title h1, .login-panel h1 { margin: 8px 0 9px; font-size: clamp(31px, 3.8vw, 46px); line-height: 1.12; letter-spacing: -.05em; }
.title-period { color: var(--green-text); }
.eyebrow { display: inline-flex; gap: 11px; align-items: center; }
.muted, .fine { color: var(--muted); }
.muted { margin: 0; font-size: 13px; line-height: 1.6; }
.fine { font-size: 12px; line-height: 1.65; }
.section-kicker { color: var(--faint); font-size: 9px; }
.back { display: inline-block; margin-bottom: 25px; color: var(--muted); font-size: 12px; font-weight: 700; }
.back:hover, .url-line a:hover { color: var(--green-text); }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 42px; padding: 10px 15px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-raised); color: var(--text); font-size: 12px; font-weight: 700; transition: background .16s, border-color .16s, transform .16s; }
button:hover, .button:hover { border-color: var(--green); }
button:active, .button:active { transform: translateY(1px); }
.primary { border-color: var(--green); background: var(--green); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--green) 22%, transparent); }
:root[data-theme="dark"] .primary { color: #092111; }
.primary:hover { background: var(--green-bright); border-color: var(--green-bright); }
.primary span { font-size: 17px; font-weight: 500; }
.text-button { min-height: 0; padding: 3px 0; border: 0; background: transparent; color: var(--muted); }
.danger { color: var(--danger) !important; }
.notice { margin-bottom: 23px; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--green) 33%, var(--line)); border-left: 3px solid var(--green); border-radius: 8px; background: var(--green-soft); color: var(--text); font-size: 12px; line-height: 1.5; }
.notice.error { border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); border-left-color: var(--danger); color: var(--danger); background: var(--surface); }
.quota-strip { display: flex; align-items: center; gap: 40px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(120deg, var(--surface-raised), var(--surface)); box-shadow: 0 10px 30px color-mix(in srgb, var(--green) 4%, transparent); }
.quota-copy { display: grid; gap: 4px; min-width: 230px; }
.quota-copy strong { font-size: 27px; letter-spacing: -.05em; }
.quota-copy strong small { color: var(--muted); font-size: 14px; letter-spacing: 0; }
.quota-copy > span:last-child { color: var(--muted); font-size: 11px; }
.quota-strip progress { display: block; width: 100%; height: 9px; border: 0; border-radius: 99px; overflow: hidden; background: var(--surface-soft); }
.quota-strip progress::-webkit-progress-bar { background: var(--surface-soft); }
.quota-strip progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--green-bright)); }
.quota-strip progress::-moz-progress-bar { border-radius: 99px; background: var(--green); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 44px 0 17px; }
.section-heading h2 { margin: 7px 0 0; font-size: 19px; letter-spacing: -.03em; }
.count-pill { padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.search-list { display: grid; gap: 10px; }
.search-item { display: flex; align-items: center; gap: 16px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); transition: border-color .16s, background .16s, transform .16s, box-shadow .16s; }
.search-item:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--surface-raised); box-shadow: 0 10px 28px color-mix(in srgb, var(--green) 9%, transparent); }
.search-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border: 1px solid color-mix(in srgb, var(--green) 25%, var(--line)); border-radius: 9px; color: var(--green-text); background: var(--green-soft); font-size: 17px; font-weight: 800; }
.search-name { display: grid; min-width: 0; gap: 5px; }
.search-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.search-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
.dot-separator { padding: 0 4px; color: var(--faint); }
.search-side { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: var(--surface-soft); white-space: nowrap; font-size: 10px; font-weight: 700; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.status-pill.on { border-color: color-mix(in srgb, var(--green) 24%, var(--line)); color: var(--green-text); background: var(--green-soft); }
.status-pill.on i { background: var(--green); }
.open-arrow { color: var(--green-text); font-size: 20px; }
.empty { display: grid; justify-items: start; padding: 55px 37px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface); }
.empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 11px; color: var(--green-text); background: var(--green-soft); font-size: 32px; }
.empty h2 { margin: 0 0 9px; font-size: 22px; }
.empty p { color: var(--muted); font-size: 13px; }
.empty .button { margin-top: 16px; }
.account-line { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 45px; padding: 24px 0; border-top: 1px solid var(--line); }
.account-line p { margin: 6px 0 0; color: var(--green-text); font-size: 12px; font-weight: 700; }
.account-line .quiet-button { font-size: 11px; }
.stack { display: grid; gap: 17px; }
label { display: grid; gap: 8px; color: var(--text); font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; background: var(--surface-raised); color: var(--text); font-size: 12px; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }
textarea { resize: vertical; }
.tabs { display: inline-flex; gap: 5px; margin-top: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.tabs button { min-height: 36px; padding: 8px 15px; border: 0; background: transparent; color: var(--muted); box-shadow: none; }
.tabs button.active { background: var(--surface); color: var(--green-text); box-shadow: 0 2px 8px color-mix(in srgb, var(--green) 10%, transparent); }
.form-panel { width: min(100%, 620px); margin-top: 22px; padding: 27px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.form-panel .primary { justify-self: start; margin-top: 3px; }
.hidden { display: none; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: 22px 0; }
.detail-grid div { display: grid; align-content: center; gap: 6px; min-height: 92px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.metric { color: var(--text); font-size: 23px; font-weight: 800; letter-spacing: -.045em; }
.detail-grid small { color: var(--muted); font-size: 10px; }
.actions-row { display: flex; gap: 9px; flex-wrap: wrap; margin: 20px 0 42px; }
.settings { margin: 16px 0; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.settings h2 { margin: 0 0 22px; font-size: 17px; letter-spacing: -.02em; }
.settings h3 { margin: 0 0 13px; font-size: 13px; }
.field-row { display: flex; align-items: end; gap: 11px; max-width: 720px; margin: 0 0 17px; }
.field-row label { flex: 1; min-width: 0; }
.field-row button { flex: none; }
.url-line { display: flex; justify-content: space-between; gap: 15px; max-width: 720px; margin-top: 10px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.url-line a { color: var(--green-text); font-weight: 700; }
.delete-line { padding: 20px 0 10px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 11px; }
th { color: var(--faint); font-size: 10px; font-weight: 700; text-align: left; }
td, th { padding: 13px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td code, .secret-key code { color: var(--green-text); font: 700 12px "Cascadia Code", Consolas, monospace; }
.table-actions, .table-actions form { display: flex; align-items: center; gap: 7px; }
.table-actions button { min-height: 32px; padding: 6px 9px; white-space: nowrap; }
.short-input { width: 78px; min-height: 32px; padding: 6px; }
.cost-list { max-width: 640px; }
.cost-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cost-row span { flex: 1; font-size: 12px; }
.cost-row input { width: 75px; }
.cost-row button { min-height: 37px; }
details { margin: 19px 0 0; }
summary { cursor: pointer; color: var(--green-text); font-size: 11px; font-weight: 700; }
.secret-key { margin: 20px 0; padding: 18px; overflow-wrap: anywhere; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--green-soft); }
.login-panel { width: min(100%, 550px); margin: 6vh auto; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
@media (max-width: 780px) {
  .topbar { height: 68px; padding: 0 19px; }
  .app-body { display: block; min-height: calc(100vh - 68px); }
  .sidebar { width: 100%; padding: 8px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-label, .sidebar-bottom { display: none; }
  .side-nav { display: flex; gap: 8px; }
  .side-link { padding: 7px 11px; }
  .side-arrow { display: none; }
  .main-content { padding: 34px 22px 75px; }
  .auth-content { padding: 0; }
  .online-indicator { display: none; }
  .auth-scene { min-height: calc(100vh - 68px); }
}
@media (max-width: 600px) {
  .page-title { align-items: start; flex-direction: column; }
  .create-button { width: 100%; justify-content: space-between; }
  .quota-strip { display: grid; gap: 18px; padding: 21px; }
  .quota-copy { min-width: 0; }
  .search-item { padding: 14px; gap: 11px; }
  .search-icon { width: 38px; height: 38px; flex-basis: 38px; }
  .status-pill { font-size: 0; gap: 0; padding: 8px; }
  .status-pill i { width: 7px; height: 7px; }
  .search-side { gap: 10px; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid div { min-height: 72px; }
  .field-row, .account-line { align-items: stretch; flex-direction: column; }
  .field-row button { align-self: flex-start; }
  .settings { padding: 20px; }
  .form-panel { padding: 21px; }
  .topbar-right { gap: 12px; }
  .brand-copy small { display: none; }
  .auth-card { padding: 27px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Rayobyte-inspired direction: black stage, floating navigation, signal lines, green accent. */
:root {
  color-scheme: dark;
  --bg: #080b09;
  --bg-deep: #101b12;
  --surface: #111713;
  --surface-raised: #172019;
  --surface-soft: #15231a;
  --line: #28352b;
  --line-strong: #3b5140;
  --text: #f5faf6;
  --muted: #a6b5aa;
  --faint: #738478;
  --green: #54e384;
  --green-bright: #83f4a5;
  --green-text: #75eba0;
  --green-soft: #193923;
  --danger: #ff999e;
  --shadow: 0 28px 90px rgba(0, 0, 0, .4);
  --grid: rgba(102, 240, 150, .04);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8f4;
  --bg-deep: #e1f1e4;
  --surface: #fff;
  --surface-raised: #fbfefb;
  --surface-soft: #eaf5ec;
  --line: #d6e4d8;
  --line-strong: #accbb3;
  --text: #111d14;
  --muted: #5e7062;
  --faint: #819286;
  --green: #13894a;
  --green-bright: #1baa58;
  --green-text: #08763b;
  --green-soft: #dcf5e3;
  --danger: #ba3946;
  --shadow: 0 24px 70px rgba(21, 79, 38, .1);
  --grid: rgba(19, 137, 74, .05);
}
body { background: var(--bg); }
.app-shell { background: radial-gradient(ellipse 64% 31% at 50% -12%, color-mix(in srgb, var(--green) 11%, var(--bg)), transparent 86%), var(--bg); }
.topbar { max-width: 1420px; height: 88px; margin: auto; padding: 0 clamp(22px, 5vw, 74px); border: 0; background: transparent; backdrop-filter: none; }
.brand { gap: 10px; }
.brand-mark { width: 33px; height: 33px; border: 0; border-radius: 10px; background: var(--green); box-shadow: 0 0 22px color-mix(in srgb, var(--green) 30%, transparent); }
.brand-mark i { display: block; width: 17px; height: 21px; background: var(--bg); clip-path: polygon(54% 0, 7% 52%, 44% 52%, 30% 100%, 96% 35%, 59% 35%, 76% 0); }
.brand-copy strong { font-size: 19px; font-weight: 800; letter-spacing: -.07em; }
.brand-copy strong span { color: var(--green-text); }
.top-nav { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 76%, transparent); box-shadow: 0 10px 28px rgba(0,0,0,.14); }
.top-nav a { padding: 9px 18px; border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.top-nav a:hover, .top-nav a.active { background: var(--surface-soft); color: var(--text); }
.top-nav a.active { box-shadow: inset 0 0 0 1px var(--line-strong); }
.topbar-right { gap: 16px; }
.online-indicator { color: var(--green-text); }
.icon-button { width: 38px; height: 38px; border-radius: 50%; background: var(--surface); }
.quiet-button { color: var(--text); }
.app-body { min-height: calc(100vh - 88px); }
.main-content { width: min(100%, 1220px); padding: 52px clamp(22px, 5vw, 76px) 110px; }
.auth-content { width: 100%; padding: 0; }
.guest .app-shell { background: radial-gradient(ellipse 54% 35% at 57% 24%, color-mix(in srgb, var(--green) 10%, var(--bg)), transparent 82%), var(--bg); }
.auth-scene { min-height: calc(100vh - 88px); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: clamp(56px, 8vh, 98px) 22px 22px; text-align: center; }
.auth-scene::before { background-size: 54px 54px; mask-image: radial-gradient(circle at 50% 40%, #000 2%, transparent 67%); }
.auth-orbit { top: 5%; transform: none; border-color: color-mix(in srgb, var(--green) 10%, transparent); }
.auth-orbit-one { width: 660px; height: 660px; }
.auth-orbit-two { width: 880px; height: 880px; opacity: .65; }
.hero-chip { z-index: 1; display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px; border: 1px solid var(--line-strong); border-radius: 999px; background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--green-text); font-size: 10px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.hero-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero-chip span { color: var(--faint); }
.auth-headline, .dashboard-hero h1 { z-index: 1; margin: 29px 0 0; font-size: clamp(47px, 6vw, 79px); font-weight: 780; line-height: 1.03; letter-spacing: -.07em; }
.auth-headline em, .dashboard-hero h1 em { color: var(--green-text); font-style: normal; }
.hero-lead, .dashboard-hero > p { z-index: 1; max-width: 650px; margin: 23px 0 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.auth-card { z-index: 2; width: min(100%, 440px); margin-top: 34px; padding: 25px 26px 23px; border: 1px solid var(--line-strong); border-radius: 17px; background: linear-gradient(145deg, color-mix(in srgb, var(--surface-raised) 90%, var(--green)), var(--surface)); box-shadow: var(--shadow), 0 0 50px color-mix(in srgb, var(--green) 9%, transparent); text-align: left; }
.auth-card-top { justify-content: space-between; margin-bottom: 23px; }
.auth-tag, .auth-card-index { color: var(--green-text); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.auth-card-index { color: var(--faint); }
.auth-form { gap: 14px; }
.auth-form label { color: var(--muted); }
.auth-form input { min-height: 51px; padding: 13px 16px; background: var(--bg); font-size: 14px; }
.auth-form .primary { min-height: 49px; justify-content: center; margin-top: 4px; }
.auth-bottom { margin-top: 21px; padding-top: 18px; }
.auth-caption { z-index: 1; margin: 8px 0 0; color: var(--faint); }
.auth-caption span { padding: 0 9px; color: var(--green-text); }
.signal-art { position: relative; width: min(100vw, 960px); height: 140px; flex: none; margin: -16px 0 -12px; pointer-events: none; overflow: hidden; opacity: .73; }
.signal-art-core { position: absolute; z-index: 1; top: 19px; left: 50%; display: grid; place-items: center; width: 98px; height: 98px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); box-shadow: 0 0 45px color-mix(in srgb, var(--green) 18%, transparent), inset 0 0 0 10px var(--bg); }
.signal-art-core i { width: 34px; height: 44px; background: var(--green); clip-path: polygon(56% 0, 2% 54%, 42% 54%, 26% 100%, 98% 32%, 58% 32%, 74% 0); filter: drop-shadow(0 0 15px var(--green)); }
.dashboard-hero { position: relative; display: flex; flex-direction: column; align-items: center; min-height: 325px; padding: 36px 18px 56px; text-align: center; isolation: isolate; overflow: hidden; }
.dashboard-hero::before { position: absolute; z-index: -1; inset: -70px -100px 0; content: ''; background: radial-gradient(ellipse 45% 62% at 50% 21%, color-mix(in srgb, var(--green) 12%, transparent), transparent 78%); }
.dashboard-hero h1 { margin-top: 23px; }
.dashboard-hero > p { margin-top: 16px; font-size: 14px; }
.dashboard-hero .button { margin-top: 24px; }
.page-title { margin-bottom: 30px; }
.page-title h1 { font-size: clamp(38px, 5vw, 59px); }
.eyebrow, .section-kicker { color: var(--green-text); }
button, .button { border-radius: 999px; padding-inline: 21px; background: var(--surface); }
.primary { color: #08180e; border-color: var(--green); background: var(--green); box-shadow: 0 8px 30px color-mix(in srgb, var(--green) 25%, transparent); }
:root[data-theme="light"] .primary { color: #fff; }
.primary:hover { color: #07140b; }
.notice { border-radius: 10px; background: var(--surface-soft); }
.quota-strip { border-radius: 16px; padding: 23px 28px; background: linear-gradient(115deg, var(--surface-raised), var(--surface)); }
.quota-copy strong { font-size: 31px; }
.section-heading { margin-top: 57px; }
.section-heading h2 { font-size: clamp(24px, 2.5vw, 32px); }
.count-pill, .status-pill { border-radius: 999px; }
.search-list { gap: 0; border-top: 1px solid var(--line); }
.search-item { min-height: 88px; padding: 17px 19px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.search-item:hover { transform: none; border-color: var(--line); background: var(--surface-soft); box-shadow: none; }
.search-icon { width: 46px; height: 46px; flex-basis: 46px; border-radius: 13px; }
.search-name strong { font-size: 15px; }
.search-name small { font-size: 11px; }
.empty { padding: 54px; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(ellipse 80% 90% at 70% 20%, color-mix(in srgb, var(--green) 7%, transparent), transparent), var(--surface); }
.empty-icon { border-radius: 14px; }
.form-panel, .settings, .detail-grid div, .login-panel { border-radius: 16px; background: var(--surface); }
.tabs { border-radius: 999px; }
.tabs button { border-radius: 999px; }
input, select, textarea { min-height: 48px; border-radius: 10px; background: var(--bg); }
.field-row button, .cost-row button, .table-actions button { white-space: nowrap; }
.actions-row { margin-bottom: 34px; }
@media (max-width: 780px) {
  .topbar { height: 71px; }
  .app-body { min-height: calc(100vh - 71px); }
  .top-nav { position: static; transform: none; margin-left: auto; }
  .top-nav a { padding: 8px 12px; }
  .main-content { padding: 30px 22px 80px; }
  .auth-content { padding: 0; }
  .auth-scene { min-height: calc(100vh - 71px); }
}
@media (max-width: 600px) {
  .topbar { gap: 8px; padding: 0 18px; }
  .brand-copy strong { font-size: 16px; }
  .topbar-right { gap: 8px; }
  .top-nav { padding: 2px; }
  .top-nav a { padding: 7px 10px; font-size: 11px; }
  .signed-in .topbar .quiet-button { font-size: 0; }
  .signed-in .topbar .quiet-button::after { content: '↪'; font-size: 18px; }
  .auth-scene { padding-top: 54px; }
  .auth-headline, .dashboard-hero h1 { font-size: clamp(43px, 9vw, 60px); }
  .hero-lead { font-size: 14px; }
  .dashboard-hero { min-height: 0; padding: 26px 0 45px; }
  .dashboard-hero > p { font-size: 13px; }
  .dashboard-hero .create-button { width: auto; }
  .auth-card { margin-top: 28px; }
  .signal-art { height: 114px; }
  .signal-art-core { width: 80px; height: 80px; }
  .empty { padding: 32px; }
  .search-item { padding-inline: 7px; }
}

/* Surface and controls refinement. */
:root {
  --grid-strong: rgba(99, 231, 139, .31);
  --glow: rgba(70, 224, 120, .16);
}
:root[data-theme="light"] {
  --grid-strong: rgba(15, 123, 61, .25);
  --glow: rgba(28, 173, 83, .12);
}
.app-shell { position: relative; isolation: isolate; overflow: clip; }
.interactive-grid { position: fixed; z-index: 0; inset: 0; pointer-events: none; background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px); background-size: 48px 48px; }
.interactive-grid::before, .interactive-grid::after { position: absolute; inset: 0; content: ''; opacity: 0; transition: opacity .22s ease; }
.interactive-grid::before { background-image: linear-gradient(to right, var(--grid-strong) 1px, transparent 1px), linear-gradient(to bottom, var(--grid-strong) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(circle 210px at var(--cursor-x, 50vw) var(--cursor-y, 40vh), #000 0, transparent 100%); }
.interactive-grid::after { background: radial-gradient(circle 210px at var(--cursor-x, 50vw) var(--cursor-y, 40vh), var(--glow), transparent 75%); }
.pointer-active .interactive-grid::before, .pointer-active .interactive-grid::after { opacity: 1; }
.topbar, .app-body { position: relative; z-index: 1; }
.topbar { height: 68px; }
.app-body { min-height: calc(100vh - 68px); }
.main-content { padding-top: 21px; }
.auth-content { padding-top: 0; }
.auth-scene { min-height: calc(100vh - 68px); padding-top: 25px; }
.auth-scene::before { opacity: .25; }
.auth-headline, .dashboard-hero h1 { margin-top: 17px; }
.hero-lead, .dashboard-hero > p { margin-top: 13px; }
.auth-card { margin-top: 24px; }
.dashboard-hero { min-height: 0; padding-top: 10px; padding-bottom: 38px; }
.dashboard-hero .button { margin-top: 19px; }
.icon-button { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 0; line-height: 1; }
#theme-toggle { flex: 0 0 38px; width: 38px; height: 38px; min-width: 38px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text); transition: color .18s ease, background .18s ease; }
#theme-toggle:hover { color: var(--green-text); background: color-mix(in srgb, var(--green) 10%, transparent); }
#theme-toggle .theme-glyph { position: static; display: block; width: 21px; height: 21px; transform: none; border: 0; border-radius: 0; background: currentColor; -webkit-mask: url('theme-sun.svg') center / contain no-repeat; mask: url('theme-sun.svg') center / contain no-repeat; }
:root[data-theme="light"] #theme-toggle .theme-glyph { -webkit-mask-image: url('theme-moon.svg'); mask-image: url('theme-moon.svg'); }
.section-kicker, .eyebrow, .auth-tag, .auth-card-index, .auth-caption, .hero-chip { font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: -.01em; text-transform: none; }
.section-kicker { color: var(--muted); }
.eyebrow { color: var(--muted); }
.hero-chip { padding: 7px 13px; color: var(--green-text); }
.auth-tag { color: var(--green-text); }
.auth-card-index { color: var(--faint); }
.auth-caption { color: var(--faint); }
.quota-copy { gap: 7px; }
.quota-copy > span:last-child { font-size: 12px; }
.section-heading { margin-top: 46px; }
.account-line p { color: var(--muted); font-weight: 400; }
.text-link { color: var(--green-text); font-size: 13px; font-weight: 600; }
.text-link:hover { color: var(--green-bright); }
.back { margin-bottom: 13px; font-size: 13px; font-weight: 500; }
.page-title h1 { margin-top: 4px; }
label { gap: 10px; font-size: 13px; font-weight: 600; }
th { font-size: 12px; font-weight: 600; }
summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; padding: 15px 1px; border-top: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.45; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; display: grid; place-items: center; width: 27px; height: 27px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--green-text); font-size: 19px; font-weight: 400; }
details[open] > summary::after { content: '−'; }
details > .table-wrap { margin: 7px 0 19px; }
input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { appearance: none; margin: 0; }
.number-stepper { display: grid; grid-template-columns: 37px minmax(52px, 1fr) 37px; align-items: center; width: 100%; min-height: 46px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--bg); }
.number-stepper:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }
.number-stepper input { width: 100%; min-width: 0; min-height: 36px; padding: 5px 2px; border: 0; border-radius: 0; background: transparent; font-size: 13px; text-align: center; box-shadow: none !important; }
.number-stepper input:focus { border: 0; outline: none; }
.number-stepper button { width: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 8px; background: var(--surface-soft); color: var(--green-text); font-size: 21px; font-weight: 400; line-height: 1; }
.number-stepper button:hover { background: var(--green-soft); }
.number-stepper.compact { width: 137px; grid-template-columns: 32px minmax(50px, 1fr) 32px; }
.number-stepper.compact button { width: 30px; min-height: 30px; }
.number-stepper.compact input { min-height: 30px; padding: 4px 0; }
.table-actions .number-stepper { flex: none; }
.cost-row .number-stepper { flex: none; }
.cost-row input, .cost-row .number-stepper input { width: 100%; }

/* Local typography and quieter form controls. */
.number-stepper button,
.number-stepper.compact button {
  display: grid;
  place-items: center;
  justify-self: center;
  align-self: center;
  width: 30px;
  min-height: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 21px;
  line-height: 1;
}
.number-stepper button:hover,
.number-stepper.compact button:hover { background: transparent; color: var(--green-text); }
.number-stepper button:active { transform: scale(.9); }
.renewal-settings { max-width: 680px; }
.renewal-form { max-width: 460px; margin-top: 22px; }
.renewal-form .primary { justify-self: start; }
.signal-art { height: 148px; margin-top: -4px; opacity: .86; background-image: radial-gradient(circle, color-mix(in srgb, var(--green) 34%, transparent) 1px, transparent 1.5px); background-size: 20px 20px; mask-image: radial-gradient(ellipse 45% 70% at 50% 55%, #000 0, transparent 100%); }
.signal-art-core { top: 25px; }
.search-page-title { margin-bottom: 23px; }
.search-form-panel { width: min(100%, 850px); max-width: none; margin-top: 25px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.search-setup-form { gap: 27px; }
.search-setup-form .feature-field { gap: 13px; font-size: 17px; font-weight: 650; }
.feature-field input { min-height: 59px; padding: 14px 18px; border-radius: 11px; font-size: 15px; }
.feature-field small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.search-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 21px; }
.search-fields input, .search-fields select { min-height: 51px; padding: 12px 16px; border-radius: 10px; font-size: 14px; }
.optional { color: var(--faint); font-size: 11px; font-weight: 400; }
.field-label { display: inline-flex; align-items: baseline; gap: 9px; }
.form-hint { max-width: 660px; margin: 0; padding-left: 15px; border-left: 2px solid var(--green); color: var(--muted); font-size: 12px; line-height: 1.6; }
.search-setup-form > .primary { justify-self: start; min-height: 47px; margin-top: 0; }
.account-settings { width: min(100%, 720px); }
.workers-row label { flex: 0 1 280px; }
.account-settings .fine { max-width: 550px; margin: -7px 0 21px; }
.danger-outline { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); color: var(--danger); }
.danger-outline:hover { border-color: var(--danger); }
@media (max-width: 780px) {
  .topbar { height: 65px; }
  .app-body, .auth-scene { min-height: calc(100vh - 65px); }
  .main-content { padding-top: 20px; }
  .auth-content { padding-top: 0; }
}
@media (max-width: 600px) {
  .topbar { height: 62px; }
  .app-body, .auth-scene { min-height: calc(100vh - 62px); }
  .signed-in .topbar { height: auto; min-height: 108px; flex-wrap: wrap; align-content: center; row-gap: 7px; padding-top: 7px; padding-bottom: 7px; }
  .signed-in .top-nav { order: 3; width: 100%; justify-content: center; margin-left: 0; }
  .signed-in .topbar-right { margin-left: auto; }
  .signed-in .app-body { min-height: calc(100vh - 108px); }
  .auth-scene { padding-top: 18px; }
  .dashboard-hero { padding-top: 0; padding-bottom: 29px; }
  .search-fields { grid-template-columns: 1fr; gap: 20px; }
  .search-setup-form { gap: 23px; }
  .search-form-panel { margin-top: 21px; }
  .field-row .number-stepper { width: 100%; }
  .workers-row label { flex: 1 1 auto; width: 100%; }
  .cost-row { flex-wrap: wrap; }
  .cost-row span { flex-basis: 100%; }
  .table-actions { flex-wrap: wrap; }
}
@media (hover: none), (pointer: coarse) {
  .interactive-grid::before, .interactive-grid::after { display: none; }
}

/* Navigation arrows and consistent viewport width between sections. */
.ui-arrow { display: inline-grid; place-items: center; flex: none; width: 19px; height: 19px; color: inherit; }
.ui-arrow::before { display: block; width: 100%; height: 100%; content: ''; background: currentColor; -webkit-mask: url('arrow-right.svg') center / contain no-repeat; mask: url('arrow-right.svg') center / contain no-repeat; }
.ui-arrow--back::before { transform: rotate(180deg); }
.ui-arrow--external::before { -webkit-mask-image: url('arrow-external.svg'); mask-image: url('arrow-external.svg'); }
.back, .auth-bottom a, .text-link, .url-line a { display: inline-flex; align-items: center; gap: 9px; }
.back .ui-arrow { width: 17px; height: 17px; transition: transform .18s ease; }
.back:hover .ui-arrow { transform: translateX(-3px); }
.search-detail-heading { min-width: 0; }
.search-detail-back { display: block; margin-bottom: 22px; }
.search-detail-back .back { display: inline-flex; width: fit-content; margin: 0; }
.search-detail-meta { display: block; margin-bottom: 11px; }
.search-detail-meta .eyebrow { display: inline-flex; }
.search-detail-heading h1 { margin: 0 0 10px; overflow-wrap: anywhere; }
.primary .ui-arrow { width: 28px; height: 28px; padding: 5px; border: 1px solid color-mix(in srgb, currentColor 36%, transparent); border-radius: 50%; transition: transform .18s ease, background .18s ease; }
.primary:hover .ui-arrow { transform: translateX(3px); background: color-mix(in srgb, currentColor 11%, transparent); }
.auth-bottom .ui-arrow, .text-link .ui-arrow, .url-line .ui-arrow { width: 16px; height: 16px; }
.search-side .ui-arrow { width: 18px; height: 18px; }

/* Proxy controls follow the plain settings layout instead of nesting cards. */
.proxy-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 30px; }
.proxy-heading h2 { margin-bottom: 7px; }
.proxy-heading .fine { margin: 0; }
.proxy-total { flex: none; padding-top: 3px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.proxy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.proxy-pool { min-width: 0; margin: 0; }
.proxy-pool + .proxy-pool { padding-left: 32px; border-left: 1px solid var(--line); }
.proxy-pool-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; min-height: 64px; margin-bottom: 22px; }
.proxy-pool-head h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.proxy-pool-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.proxy-count { flex: none; padding-top: 3px; color: var(--green-text); font-size: 12px; font-weight: 600; white-space: nowrap; }
.proxy-add-form { gap: 11px; }
.proxy-add-form label { gap: 10px; }
.proxy-add-form textarea { min-height: 102px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 12px; line-height: 1.55; }
.proxy-add-button { justify-self: start; }
.proxy-list { margin-top: 23px; border-top: 1px solid var(--line); }
.proxy-list summary { padding: 15px 0; font-size: 13px; font-weight: 500; }
.proxy-list[open] { max-height: 420px; overflow-y: auto; }
.proxy-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.proxy-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; }
.proxy-empty { margin: 22px 0 0; color: var(--faint); font-size: 12px; }
.proxy-clear { margin-top: 17px !important; }
.proxy-clear button { padding-inline: 0; }
.proxy-clear button:disabled { opacity: .4; cursor: default; }
@media (max-width: 850px) {
  .proxy-grid { grid-template-columns: 1fr; gap: 0; }
  .proxy-pool + .proxy-pool { margin-top: 28px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .proxy-heading { display: block; margin-bottom: 26px; }
  .proxy-total { display: block; margin-top: 12px; }
  .proxy-pool-head { display: block; min-height: 0; }
  .proxy-count { display: block; margin-top: 8px; }
}

/* Keep navigation calm: only the page content enters, while the header stays put. */
@keyframes page-content-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.main-content { animation: page-content-enter .2s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .main-content { animation: none; }
}

.search-activity { margin: 25px 0 29px; padding: 23px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.search-activity-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.search-activity-heading h2 { margin: 0; font-size: 17px; }
.search-activity-heading span { color: var(--muted); font-size: 11px; }
.search-activity-list { margin: 0; }
.search-activity-list > div { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 1.35fr); align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.search-activity-list > div:last-child { padding-bottom: 0; border-bottom: 0; }
.search-activity-list dt { color: var(--muted); font-size: 12px; }
.search-activity-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 12px; font-weight: 700; }
.search-activity-list .activity-success { color: var(--green-text); }
.search-activity-list .activity-error, .search-activity-error dd { color: var(--danger); }
.settings .field-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.settings .field-row button { height: 48px; min-height: 48px; align-self: end; }
.delete-line { display: flex; justify-content: flex-end; padding-top: 14px; }
.delete-search-button { gap: 9px; border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); color: var(--danger); box-shadow: none; }
.delete-search-button:hover { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.delete-search-button svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 600px) {
  .search-activity { padding: 18px 19px; }
  .search-activity-list > div { grid-template-columns: 1fr; gap: 5px; }
  .settings .field-row { grid-template-columns: 1fr; }
  .settings .field-row button { width: 100%; }
}
