:root {
  color-scheme: dark;
  --bg: #0a0f15;
  --surface: #101820;
  --surface-2: #151f29;
  --surface-3: #1a2631;
  --line: #273440;
  --line-soft: rgba(148, 166, 181, .13);
  --text: #eef1f3;
  --muted: #8f9ca8;
  --accent: #d5a84d;
  --accent-strong: #f0c96e;
  --accent-ink: #17120a;
  --green: #59c88a;
  --red: #e26c68;
  --blue: #65a5d8;
  --sidebar: 248px;
  --shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { color: inherit; }
button, input[type="checkbox"] { cursor: pointer; }
.icon-library { display: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); display: flex; flex-direction: column; padding: 28px 20px 20px; border-right: 1px solid var(--line); background: #0c131a; }
.brand { display: flex; align-items: center; gap: 13px; padding: 0 10px 31px; border-bottom: 1px solid var(--line-soft); }
.brand-mark { width: 39px; height: 43px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent); font-family: Georgia, serif; font-size: 25px; font-weight: 800; clip-path: polygon(10% 0, 90% 0, 100% 20%, 88% 86%, 50% 100%, 12% 86%, 0 20%); }
.brand strong { display: block; font-family: Georgia, serif; font-size: 20px; letter-spacing: .13em; }
.brand span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .27em; }
.main-nav { display: grid; gap: 7px; margin-top: 26px; }
.nav-item { width: 100%; height: 47px; display: flex; align-items: center; gap: 13px; padding: 0 12px; border: 1px solid transparent; background: transparent; color: #8d9ba7; text-align: left; transition: .18s ease; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav-item.active { color: var(--accent-strong); border-color: rgba(213,168,77,.22); background: rgba(213,168,77,.08); }
.nav-item svg { width: 18px; }
.nav-item span { flex: 1; font-size: 14px; font-weight: 600; }
.nav-item b { min-width: 21px; padding: 3px 6px; border-radius: 10px; background: rgba(255,255,255,.07); color: var(--muted); font-size: 10px; text-align: center; }
.nav-item.active b { color: var(--accent); background: rgba(213,168,77,.12); }
.sidebar-foot { margin-top: auto; }
.server-state { display: flex; align-items: center; gap: 11px; padding: 16px 12px; border-top: 1px solid var(--line-soft); }
.pulse-dot { position: relative; width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(89,200,138,.1); }
.server-state strong, .server-state span { display: block; }
.server-state strong { font-size: 12px; }
.server-state span { margin-top: 3px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.logout-button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: transparent; color: #6f7c87; font-size: 12px; }
.logout-button:hover { color: var(--red); }
.logout-button svg { width: 16px; }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 36px; border-bottom: 1px solid var(--line); background: rgba(10,15,21,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.eyebrow, .section-kicker { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .24em; }
.topbar h1 { margin: 5px 0 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 22px; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.last-sync { margin-right: 6px; color: var(--muted); font-size: 11px; }
.icon-button, .mobile-menu { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); }
.icon-button:hover { border-color: var(--accent); color: var(--accent); }
.icon-button.loading svg { animation: spin .8s linear infinite; }
.primary-button, .secondary-button, .run-button, .auth-submit { height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .02em; transition: .17s ease; }
.primary-button:hover, .run-button:hover, .auth-submit:hover { background: var(--accent-strong); border-color: var(--accent-strong); transform: translateY(-1px); }
.primary-button:disabled, .secondary-button:disabled, .run-button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.primary-button svg, .secondary-button svg, .run-button svg { width: 16px; }
.secondary-button { border-color: var(--line); background: var(--surface-2); color: var(--text); }
.secondary-button:not(:disabled):hover { border-color: #506172; background: var(--surface-3); }
.content-area { max-width: 1500px; margin: 0 auto; padding: 30px 36px 54px; }
.view { display: none; animation: fadeUp .28s ease; }
.view.active { display: block; }

.hero-panel { min-height: 240px; display: flex; align-items: stretch; justify-content: space-between; overflow: hidden; border: 1px solid #35414a; background-color: #151d24; background-image: linear-gradient(90deg, rgba(21,29,36,.98) 0%, rgba(21,29,36,.88) 55%, rgba(21,29,36,.45) 100%), repeating-linear-gradient(135deg, transparent 0 14px, rgba(213,168,77,.024) 14px 15px); box-shadow: var(--shadow); }
.hero-copy { max-width: 630px; padding: 38px 42px; }
.hero-copy h2 { margin: 12px 0 12px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(30px, 3vw, 44px); font-weight: 400; line-height: 1.18; letter-spacing: -.02em; }
.hero-copy h2 em { color: var(--accent-strong); font-style: normal; }
.hero-copy p { max-width: 520px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.hero-schedule { min-width: 280px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; padding: 34px 38px; border-left: 1px solid rgba(213,168,77,.15); background: rgba(7,11,15,.34); }
.hero-schedule > span { color: var(--muted); font-size: 11px; }
.hero-schedule > strong { margin: 6px 0 0; font-family: Georgia, serif; font-size: 45px; font-weight: 400; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hero-schedule > small { color: var(--accent); font-size: 10px; }
.run-button { margin-top: 25px; min-width: 160px; }
.command-field { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.command-select { min-width: 132px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 12px; cursor: pointer; }
.command-select option { background: var(--surface-2); color: var(--text); }
.command-select:disabled { cursor: not-allowed; opacity: .55; }
.command-field-hero { width: 100%; margin-top: 20px; justify-content: space-between; background: rgba(18,26,35,.9); }
.command-field-hero + .run-button { margin-top: 10px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric-card { min-width: 0; padding: 21px 22px 19px; border: 1px solid var(--line); background: var(--surface); }
.metric-card:hover { border-color: #394956; }
.metric-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-label svg { width: 17px; color: #63717d; }
.metric-card > strong { display: block; margin: 12px 0 9px; font-family: Georgia, serif; font-size: 32px; font-weight: 500; font-variant-numeric: tabular-nums; }
.metric-card > small { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.metric-card small i { width: 6px; height: 6px; border-radius: 50%; }
.metric-card i.good { background: var(--green); }.metric-card i.warn { background: var(--accent); }.metric-card i.danger { background: var(--red); }
.danger-card { border-top-color: rgba(226,108,104,.55); }

.overview-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.panel, .table-panel { border: 1px solid var(--line); background: var(--surface); }
.panel { min-height: 310px; padding: 25px 28px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-heading h3 { margin: 7px 0 0; font-family: Georgia, "Noto Serif SC", serif; font-size: 19px; font-weight: 500; }
.text-button { padding: 4px 0; border: 0; background: none; color: var(--muted); font-size: 11px; }
.text-button:hover { color: var(--accent); }
.health-layout { min-height: 215px; display: flex; align-items: center; justify-content: space-around; gap: 34px; }
.donut { --active-angle: 0deg; width: 150px; height: 150px; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--green) 0 var(--active-angle), var(--red) var(--active-angle) calc(var(--active-angle) + var(--banned-angle, 0deg)), #536273 0); position: relative; }
.donut::after { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.donut > div { z-index: 1; text-align: center; }
.donut strong, .donut span { display: block; }.donut strong { font-family: Georgia, serif; font-size: 27px; }.donut span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.legend { min-width: 180px; display: grid; gap: 16px; }
.legend > div { display: flex; justify-content: space-between; gap: 25px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.legend span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }.active-dot { background: var(--green); }.banned-dot { background: var(--red); }.sold-dot { background: #536273; }
.compact-client-list { display: grid; gap: 3px; margin-top: 20px; }
.compact-client { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 13px 9px; border-bottom: 1px solid var(--line-soft); }
.client-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); background: var(--surface-2); }.client-icon svg { width: 15px; }
.compact-client strong, .compact-client span { display: block; }.compact-client strong { font-size: 11px; }.compact-client span { margin-top: 4px; color: var(--muted); font-size: 9px; }

.table-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.search-box { min-width: 260px; flex: 1; height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--line); background: var(--surface); }
.search-box:focus-within { border-color: var(--accent); }
.search-box svg { width: 16px; color: var(--muted); }.search-box input { width: 100%; border: 0; outline: 0; background: none; color: var(--text); font-size: 12px; }.search-box input::placeholder { color: #5f6d78; }
.segmented { height: 42px; display: flex; padding: 3px; border: 1px solid var(--line); background: var(--surface); }
.segmented button { padding: 0 13px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.segmented button.active { background: var(--surface-3); color: var(--accent); }
.filter-bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; margin: -5px 0 16px; padding: 12px; border: 1px solid var(--line); background: rgba(16,24,32,.72); }
.filter-bar > label { display: grid; gap: 6px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.filter-bar select, .filter-bar input { height: 36px; min-width: 128px; padding: 0 10px; border: 1px solid var(--line); outline: 0; background: #0c131a; color: var(--text); font-size: 11px; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--accent); }
.filter-bar select option { background: var(--surface-2); }
.filter-bar .search-box { min-width: 230px; height: 36px; margin-right: auto; background: #0c131a; }
.filter-bar .search-box input { min-width: 0; height: auto; padding: 0; border: 0; }
.filter-reset { height: 36px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 10px; }
.filter-reset:hover { border-color: #566574; color: var(--text); }
.batch-action-bar { min-height: 58px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 0 16px; padding: 8px 10px 8px 16px; border: 1px solid rgba(213,168,77,.28); background: rgba(213,168,77,.055); }
.batch-action-bar > div { display: flex; align-items: baseline; gap: 6px; margin-right: auto; color: var(--muted); font-size: 10px; }.batch-action-bar > div strong { color: var(--accent); font-family: Georgia, serif; font-size: 22px; font-weight: 500; }
.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { height: 45px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #0e161e; color: #75838e; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { height: 69px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); color: #b8c1c8; font-size: 11px; }
tbody tr:hover { background: rgba(255,255,255,.018); }
tbody tr:last-child td { border-bottom: 0; }
.check-cell { width: 40px; padding-right: 0; }.check-cell input, td input[type="checkbox"] { width: 14px; height: 14px; accent-color: var(--accent); }
.player-cell { display: flex; align-items: center; gap: 11px; }.avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #364553; background: #19242e; color: var(--accent); font-family: Georgia, serif; font-size: 14px; }.player-meta strong, .player-meta span { display: block; }.player-meta strong { color: var(--text); font-size: 12px; }.player-meta span { margin-top: 4px; color: var(--muted); font-size: 9px; font-family: Consolas, monospace; }
.player-meta .steam-linked { color: var(--accent); }
.faction-levels { display: flex; gap: 4px; }.faction-levels span { min-width: 27px; padding: 5px 4px; border: 1px solid var(--line); background: var(--surface-2); color: #93a0aa; font-size: 8px; text-align: center; }.faction-levels b { display: block; margin-top: 2px; color: var(--text); font-size: 10px; }
.resource-row { display: flex; gap: 11px; }.resource-row span { color: var(--muted); }.resource-row b { color: var(--text); font-weight: 600; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid; font-size: 9px; font-weight: 800; }.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status-active, .status-available, .status-completed, .status-online { color: var(--green); border-color: rgba(89,200,138,.22); background: rgba(89,200,138,.07); }.status-banned, .status-disabled, .status-offline { color: var(--red); border-color: rgba(226,108,104,.22); background: rgba(226,108,104,.07); }.status-sold { color: #9ba6af; border-color: rgba(155,166,175,.2); background: rgba(155,166,175,.06); }.status-claimed { color: var(--accent); border-color: rgba(213,168,77,.22); background: rgba(213,168,77,.07); }
.align-right { text-align: right; }.row-actions { display: flex; justify-content: flex-end; gap: 6px; }.row-action { height: 30px; padding: 0 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 9px; }.row-action:hover { color: var(--text); border-color: #566574; }.row-action.danger:hover { color: var(--red); border-color: var(--red); }
.account-more { min-width: 62px; color: var(--text); background: var(--surface-2); }
.account-action-popover { position: fixed; z-index: 90; width: 178px; padding: 6px; border: 1px solid #435363; background: #131d26; box-shadow: 0 18px 50px rgba(0,0,0,.48); animation: fadeUp .14s ease; }
.account-action-popover button { width: 100%; height: 34px; display: block; padding: 0 10px; border: 0; background: transparent; color: #b9c3cb; font-size: 10px; text-align: left; }
.account-action-popover button:hover { background: var(--surface-3); color: var(--text); }.account-action-popover button.danger:hover { color: var(--red); }.account-action-popover .menu-divider { height: 1px; margin: 5px 4px; background: var(--line); }
.empty-state { padding: 45px 20px; color: var(--muted); font-size: 12px; text-align: center; }.empty-state.small { padding: 50px 10px; }.empty-state.large { padding: 90px 20px; border: 1px dashed var(--line); }
.pagination { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); background: #0e161e; }
.pagination-info { color: var(--muted); font-size: 10px; }
.pagination-info strong { color: var(--text); font-weight: 600; }
.pagination-pages { display: flex; align-items: center; gap: 5px; }
.pagination button { min-width: 31px; height: 31px; padding: 0 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 10px; }
.pagination button:hover:not(:disabled), .pagination button.active { border-color: var(--accent); color: var(--accent); }
.pagination button.active { background: rgba(213,168,77,.08); }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }

.section-intro { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 25px; }
.section-actions { display: flex; align-items: center; gap: 10px; }
.expired-proxy-panel { margin-top: 24px; }
.section-intro h2 { margin: 8px 0 6px; font-family: Georgia, "Noto Serif SC", serif; font-size: 28px; font-weight: 500; }.section-intro p { margin: 0; color: var(--muted); font-size: 12px; }
.queue-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.queue-stat { padding: 16px 18px; border: 1px solid var(--line); background: var(--surface); }.queue-stat span { color: var(--muted); font-size: 10px; }.queue-stat strong { float: right; font-family: Georgia, serif; font-size: 21px; font-weight: 500; }
.error-text { display: inline-block; max-width: 230px; overflow: hidden; color: var(--red); text-overflow: ellipsis; }
.muted { color: #677580; }

.client-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.client-card { padding: 22px; border: 1px solid var(--line); background: var(--surface); }.client-card.online { border-top-color: rgba(89,200,138,.55); }.client-card.offline { opacity: .72; }.client-card-head { display: flex; justify-content: space-between; gap: 12px; }.client-card .client-icon { width: 42px; height: 42px; }.client-card .client-icon svg { width: 19px; }.client-card h3 { margin: 17px 0 4px; font-size: 14px; }.client-card > p { margin: 0; color: var(--muted); font-family: Consolas, monospace; font-size: 10px; }.client-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft); }.client-times span, .client-times strong { display: block; }.client-times span { color: var(--muted); font-size: 9px; }.client-times strong { margin-top: 5px; font-size: 10px; font-weight: 500; }.client-card-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); }.client-card-actions .error-text { flex: 1; min-width: 0; }

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 1.15fr) minmax(420px, .85fr); background: #0b1117; }
.auth-art { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; position: relative; border-right: 1px solid var(--line); background: #101820; }
.auth-grid { position: absolute; inset: -40%; opacity: .3; transform: perspective(600px) rotateX(58deg) rotateZ(-15deg); background-image: linear-gradient(rgba(213,168,77,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(213,168,77,.15) 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(circle, #000 0, transparent 63%); }
.auth-monogram { width: 180px; height: 205px; display: grid; place-items: center; z-index: 1; color: var(--accent); border: 2px solid var(--accent); font-family: Georgia, serif; font-size: 115px; font-weight: 700; clip-path: polygon(10% 0, 90% 0, 100% 17%, 86% 84%, 50% 100%, 14% 84%, 0 17%); text-shadow: 0 0 45px rgba(213,168,77,.25); }
.auth-art p { z-index: 1; margin-top: 30px; color: #64717c; font-size: 10px; font-weight: 700; line-height: 1.8; letter-spacing: .4em; text-align: center; }
.auth-card { width: min(420px, calc(100% - 60px)); align-self: center; justify-self: center; }
.auth-card h1 { margin: 12px 0 12px; font-family: Georgia, "Noto Serif SC", serif; font-size: 36px; font-weight: 500; }.auth-card > p { margin: 0 0 30px; color: var(--muted); font-size: 12px; line-height: 1.75; }.auth-card label, .modal label { display: block; margin: 0 0 8px; color: #afb8c0; font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.key-input { height: 50px; display: flex; align-items: center; gap: 11px; padding: 0 13px; border: 1px solid var(--line); background: var(--surface); }.key-input:focus-within { border-color: var(--accent); }.key-input svg { width: 17px; color: var(--muted); }.key-input input { min-width: 0; flex: 1; border: 0; outline: 0; background: none; color: var(--text); font-size: 12px; }.key-input button { border: 0; background: none; color: var(--accent); font-size: 10px; }
.auth-submit { width: 100%; height: 48px; justify-content: space-between; margin-top: 16px; padding: 0 18px; }.auth-submit span { font-size: 19px; font-weight: 400; }.auth-card > small { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 24px; color: var(--muted); font-size: 10px; }.auth-card > small .pulse-dot { width: 6px; height: 6px; }
.auth-error { margin-top: 10px; padding: 10px 12px; border-left: 2px solid var(--red); background: rgba(226,108,104,.08); color: #ef918d; font-size: 11px; }
.mobile-brand { display: none; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(3,7,10,.78); backdrop-filter: blur(6px); }
.modal { width: min(480px, 100%); position: relative; padding: 32px; border: 1px solid #3a4955; background: #121b23; box-shadow: 0 30px 100px #000; animation: fadeUp .22s ease; }.modal h2 { margin: 9px 0 8px; font-family: Georgia, "Noto Serif SC", serif; font-size: 25px; font-weight: 500; }.modal > p { margin: 0 0 24px; color: var(--muted); font-size: 11px; line-height: 1.6; }.modal-close { position: absolute; top: 15px; right: 15px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; color: var(--muted); }.modal-close:hover { color: var(--text); }.modal-close svg { width: 16px; }.modal form input { width: 100%; height: 44px; margin-bottom: 16px; padding: 0 13px; border: 1px solid var(--line); outline: none; background: #0c131a; color: var(--text); font-size: 12px; }.modal form input:focus { border-color: var(--accent); }.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 130px; gap: 12px; }
.schedule-modal { width: min(620px, 100%); padding: 0; overflow: hidden; }
.schedule-modal .modal-close { top: 20px; right: 20px; }
.schedule-modal-heading { min-height: 112px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 64px 24px 30px; border-bottom: 1px solid var(--line); background: #16212a; }
.schedule-modal-heading h2 { margin-bottom: 5px; }.schedule-modal-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.schedule-mode-badge { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(213,168,77,.42); color: var(--accent); background: rgba(213,168,77,.07); font-size: 10px; font-weight: 800; }
.schedule-modal form { padding: 26px 30px 28px; }
.schedule-modal form input, .schedule-modal form select { width: 100%; height: 46px; margin: 0; padding: 0 13px; border: 1px solid var(--line); outline: none; background: #0c131a; color: var(--text); font-size: 12px; }
.schedule-modal form select { padding-right: 34px; cursor: pointer; }
.schedule-modal form input:focus, .schedule-modal form select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(213,168,77,.08); }
.schedule-name-field { margin-bottom: 18px; }
.schedule-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.schedule-rule-block { margin: 22px 0 18px; padding: 18px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.schedule-rule-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }.schedule-rule-heading > span { color: #afb8c0; font-size: 10px; font-weight: 800; }.schedule-rule-heading small { color: var(--accent); font-size: 11px; font-variant-numeric: tabular-nums; }
.schedule-interval-field { max-width: 270px; }
.number-unit-input { display: flex; align-items: center; border: 1px solid var(--line); background: #0c131a; }.number-unit-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(213,168,77,.08); }.schedule-modal .number-unit-input input { border: 0; box-shadow: none; }.number-unit-input span { padding: 0 13px; color: var(--muted); font-size: 11px; }
.schedule-toggle { min-height: 42px; display: inline-flex !important; align-items: center; gap: 10px; margin: 0 !important; cursor: pointer; }.schedule-modal form .schedule-toggle input { width: 17px; height: 17px; margin: 0; padding: 0; accent-color: var(--accent); }.schedule-toggle span { color: var(--text); font-size: 11px; }
.schedule-modal .modal-actions { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.usage-meter { width: 112px; height: 5px; margin-top: 7px; overflow: hidden; background: #26323c; }.usage-meter > i { display: block; height: 100%; background: var(--green); }.usage-meter > i.near-limit { background: var(--accent); }.usage-meter > i.full { background: var(--red); }
.toast-region { position: fixed; right: 22px; bottom: 22px; z-index: 120; display: grid; gap: 8px; }.toast { min-width: 280px; max-width: 390px; padding: 13px 16px; border: 1px solid var(--line); border-left: 3px solid var(--green); background: #18232c; box-shadow: var(--shadow); color: var(--text); font-size: 11px; animation: toastIn .25s ease; }.toast.error { border-left-color: var(--red); }
.mobile-menu { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastIn { from { opacity: 0; transform: translateX(12px); } }

@media (max-width: 1120px) {
  :root { --sidebar: 210px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .client-grid { grid-template-columns: repeat(2, 1fr); }
  .table-toolbar { flex-wrap: wrap; }.search-box { flex-basis: 45%; }
  .filter-bar .search-box { flex-basis: 100%; }
}

@media (max-width: 820px) {
  :root { --sidebar: 244px; }
  .sidebar { transform: translateX(-100%); transition: transform .24s ease; box-shadow: var(--shadow); }.sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }.mobile-menu { display: flex; flex-direction: column; gap: 4px; }.mobile-menu span { width: 17px; height: 1px; background: currentColor; }
  .topbar { height: 76px; padding: 0 20px; }.topbar > div:nth-child(2) { margin-right: auto; }.topbar .eyebrow, .last-sync { display: none; }.topbar h1 { margin: 0; font-size: 19px; }.content-area { padding: 22px 20px 40px; }
  .hero-panel { min-height: 0; }.hero-copy { padding: 30px; }.hero-schedule { min-width: 220px; padding: 25px; }.overview-grid { grid-template-columns: 1fr; }
  .auth-screen { grid-template-columns: 1fr; }.auth-art { display: none; }.auth-card { width: min(420px, calc(100% - 40px)); }.mobile-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 48px; }.mobile-brand .brand-mark { width: 34px; height: 38px; font-size: 20px; }.mobile-brand strong { font-family: Georgia, serif; letter-spacing: .08em; }
}

@media (max-width: 620px) {
  .primary-button { padding: 0 12px; }.topbar-actions > .primary-button { width: 42px; padding: 0; font-size: 0; }.topbar-actions > .primary-button svg { margin: 0; }
  .hero-panel { display: block; }.hero-copy { padding: 28px 24px 22px; }.hero-copy h2 { font-size: 31px; }.hero-schedule { align-items: flex-start; padding: 22px 24px 27px; border-top: 1px solid rgba(213,168,77,.15); border-left: 0; }.hero-schedule > strong { font-size: 36px; }.run-button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.metric-card { padding: 17px 15px; }.metric-card > strong { font-size: 26px; }
  .overview-grid { gap: 10px; }.panel { padding: 21px 18px; }.health-layout { flex-direction: column; padding-top: 25px; }.legend { width: 100%; }
  .table-toolbar { display: grid; grid-template-columns: 1fr; }.search-box { width: 100%; min-width: 0; }.segmented { overflow-x: auto; }.segmented button { flex: 1; }.table-toolbar .secondary-button, .table-toolbar .command-field { width: 100%; }.table-toolbar .command-field { justify-content: space-between; }
  .batch-action-bar { display: grid; grid-template-columns: 1fr 1fr; }.batch-action-bar > div { grid-column: 1 / -1; }.batch-action-bar .command-field { grid-column: 1 / -1; justify-content: space-between; }.batch-action-bar button { width: 100%; }
  .filter-bar { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }.filter-bar .search-box, .filter-bar > label:first-of-type { grid-column: 1 / -1; }.filter-bar select, .filter-bar input { width: 100%; min-width: 0; }.filter-reset { width: 100%; }.pagination { align-items: flex-start; flex-direction: column; }.pagination-pages { width: 100%; justify-content: space-between; }
  .section-intro { align-items: flex-start; gap: 15px; }.section-intro p { line-height: 1.6; }.section-actions { flex-wrap: wrap; justify-content: flex-end; }.section-intro > .primary-button, .section-actions .primary-button { width: 42px; padding: 0; font-size: 0; }
  .queue-summary { grid-template-columns: 1fr 1fr; }.client-grid { grid-template-columns: 1fr; }
  .modal { padding: 27px 22px; }.modal-actions { display: grid; grid-template-columns: 1fr 1fr; }.modal-actions button { width: 100%; }.form-grid { grid-template-columns: 1fr; gap: 0; }
  .schedule-modal { padding: 0; }.schedule-modal-heading { min-height: 104px; padding: 24px 58px 20px 22px; }.schedule-mode-badge { display: none; }.schedule-modal form { padding: 22px; }.schedule-form-grid { grid-template-columns: 1fr; gap: 16px; }.schedule-rule-heading { align-items: flex-start; flex-direction: column; gap: 5px; }.schedule-interval-field { max-width: none; }
  .toast-region { right: 12px; bottom: 12px; left: 12px; }.toast { min-width: 0; width: 100%; }
}
