:root {
  color-scheme: light;
  --sky-top: #d9f1ff;
  --sky-mid: #e7f8ef;
  --sky-bottom: #f7fbff;
  --glass: rgba(255,255,255,.58);
  --glass-strong: rgba(255,255,255,.72);
  --text: #163247;
  --muted: #5f7b8d;
  --accent: #2f8fd8;
  --accent-soft: #67b6ef;
  --border: rgba(255,255,255,.72);
  --border-soft: rgba(148,180,200,.28);
  --green: #19a463;
  --red: #e25555;
  --yellow: #d29922;
  --shadow: 0 18px 50px rgba(70,120,150,.12);
  --shadow-sm: 0 8px 24px rgba(70,120,150,.10);
  --radius: 22px;
  --radius-sm: 14px;
  --focus: 0 0 0 3px rgba(47,143,216,.18);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  color: var(--text); font: 14px/1.55 var(--sans); letter-spacing: 0; position: relative;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(255,255,255,.95), transparent 60%),
    radial-gradient(900px 500px at 88% 8%, rgba(167,224,255,.55), transparent 55%),
    radial-gradient(700px 420px at 50% 100%, rgba(186,230,201,.45), transparent 60%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 48%, var(--sky-bottom) 100%);
}
body::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 28vh; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, transparent, rgba(184,224,196,.35) 40%, rgba(176,218,190,.55));
  mask-image: linear-gradient(180deg, transparent, #000 35%);
}
button, input, textarea { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; box-shadow: none; }
button:focus-visible, a:focus-visible, .table-scroll:focus-visible { outline: none; box-shadow: var(--focus); }
svg { display: block; width: 17px; height: 17px; flex: 0 0 auto; }
[hidden] { display: none !important; }
.main { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 22px 48px; }
.hero-card, .panel {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25);
}
.hero-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; margin-bottom: 18px; background: linear-gradient(135deg, rgba(255,255,255,.72), rgba(236,250,255,.52)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.hero-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo.logo-img { width: 46px; height: 46px; border-radius: 16px; padding: 0; overflow: hidden; background: linear-gradient(145deg,#7dd3fc,#a7f3d0); box-shadow: 0 10px 24px rgba(56,189,248,.25); display: grid; place-items: center; flex: 0 0 auto; }
.logo.logo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-title { font-size: 18px; font-weight: 800; color: #123247; }
.hero-right { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nav-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(148,180,200,.34); background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(236,248,255,.62)); color: #184867; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.nav-chip:hover { transform: translateY(-1px); border-color: rgba(47,143,216,.42); background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(220,242,255,.78)); box-shadow: 0 10px 24px rgba(47,143,216,.14); color: #0f3d5c; }
.nav-chip:active { transform: translateY(0); }
.nav-chip svg { width: 14px; height: 14px; }
.panel { padding: 18px; min-width: 0; }
.configuration { margin-bottom: 18px; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
h2 { font-size: 15px; font-weight: 800; color: #123247; }
.section-meta { color: var(--muted); font-size: 12px; }
.field { min-width: 0; }
.field + .field { margin-top: 16px; }
label { display: block; font-size: 13px; color: #23435a; font-weight: 800; }
.optional { font-weight: 400; margin-left: 5px; color: var(--muted); font-size: 12px; }
input, textarea { width: 100%; display: block; margin-top: 8px; padding: 13px 14px; background: rgba(255,255,255,.72); border: 1px solid var(--border-soft); border-radius: 12px; color: var(--text); font: 13px/1.55 var(--mono); outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; box-shadow: inset 0 1px 0 rgba(255,255,255,.65); }
input { line-height: normal; }
textarea { min-height: 220px; resize: vertical; overflow-wrap: anywhere; }
input::placeholder, textarea::placeholder { color: #899ca8; opacity: 1; }
input:focus, textarea:focus { border-color: rgba(47,143,216,.45); box-shadow: var(--focus); background: rgba(255,255,255,.92); }
input:disabled, textarea:disabled { background: rgba(255,255,255,.42); color: var(--muted); }
.input-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.input-counts { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.input-counts b { font-weight: 800; color: var(--text); margin-left: 3px; }
.input-counts .has-invalid, .input-counts .has-invalid b { color: var(--red); }
.command-row { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.run-actions, .result-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border: none; border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer; white-space: nowrap; min-height: 42px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease; }
.button:active, .icon-button:active { transform: scale(.97); }
.button-primary { background: linear-gradient(180deg,#3aa0ea,#2b84d0); color: #fff; box-shadow: 0 10px 22px rgba(43,132,208,.28); }
.button-primary:hover:not(:disabled) { background: linear-gradient(180deg,#49abf0,#2f8fd8); }
.button-stop { background: rgba(254,226,226,.72); border: 1px solid rgba(239,68,68,.24); color: #b42318; }
.button-stop:hover:not(:disabled) { background: rgba(254,202,202,.82); color: #991b1b; }
.button-secondary { background: rgba(255,255,255,.55); border: 1px solid rgba(148,180,200,.35); color: #3c6078; }
.button-secondary:hover:not(:disabled), .icon-button:hover:not(:disabled) { background: rgba(255,255,255,.82); color: #163247; }
.icon-button { width: 42px; height: 42px; padding: 0; background: rgba(255,255,255,.55); border: 1px solid rgba(148,180,200,.35); color: #3c6078; }
.run-status { min-width: 150px; text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
progress { appearance: none; display: block; margin-top: 7px; width: 100%; height: 4px; border: 0; background: #dfe9ef; border-radius: 2px; }
progress::-webkit-progress-bar { border-radius: 2px; background: #dfe9ef; }
progress::-webkit-progress-value { border-radius: 2px; background: var(--accent); }
progress::-moz-progress-bar { border-radius: 2px; background: var(--accent); }
.notice { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(226,85,85,.2); background: rgba(226,85,85,.08); color: #a33b3b; font-size: 12px; overflow-wrap: anywhere; }
.notice a { color: inherit; font-weight: 800; margin-left: 8px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.results-title { margin-bottom: 0; }
.result-filters { display: flex; flex-wrap: wrap; margin: 12px 0 16px; gap: 8px; }
.filter-button { min-height: 36px; padding: 7px 12px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(148,180,200,.34); background: rgba(255,255,255,.55); color: #3c6078; font-size: 13px; font-weight: 800; transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.filter-button:hover { background: rgba(255,255,255,.85); color: #163247; }
.filter-button span { margin-left: 5px; font-variant-numeric: tabular-nums; }
.filter-button[aria-pressed="true"] { background: linear-gradient(180deg,#3aa0ea,#2b84d0); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(43,132,208,.22); }
.table-scroll { position: relative; min-width: 0; width: 100%; overflow: auto; border-radius: var(--radius-sm); border: 1px solid rgba(148,180,200,.28); background: rgba(255,255,255,.55); }
table { width: 100%; min-width: 1100px; border-collapse: collapse; table-layout: fixed; text-align: left; font-size: 12px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgba(148,180,200,.18); }
th { color: var(--muted); font-weight: 800; background: rgba(255,255,255,.45); white-space: nowrap; position: sticky; top: 0; }
td { color: #123247; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th:nth-child(2) { width: 24%; }
th:nth-child(3) { width: 10%; }
th:nth-child(4) { width: 37%; }
th:nth-child(5) { width: 13%; }
th:nth-child(6) { width: 16%; }
.number-column { width: 42px; }
.action-column { width: 48px; }
.row-number { color: #8698a4; font-size: 11px; font-variant-numeric: tabular-nums; }
.account-name { font-weight: 800; overflow-wrap: anywhere; }
.account-id { color: var(--muted); font: 10px/1.6 var(--mono); margin-top: 4px; overflow-wrap: anywhere; }
.plan { font-size: 12px; font-weight: 800; text-transform: none; }
.quota-windows { display: flex; gap: 16px; }
.quota { flex: 1; min-width: 0; }
.quota-number { display: flex; justify-content: space-between; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.quota-number strong { font-size: 15px; font-weight: 800; color: var(--green); }
.quota-number span { color: var(--muted); font-size: 10px; }
.quota-low .quota-number strong { color: #9a6700; }
.quota-empty .quota-number strong { color: var(--red); }
.quota-track { margin-top: 5px; height: 3px; width: 100%; overflow: hidden; background: #e5efea; border-radius: 2px; }
.quota-fill { display: block; height: 100%; background: var(--green); }
.quota-low .quota-fill { background: #c79337; }
.quota-empty .quota-fill { background: #bf5353; }
.reset-time { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.reset-countdown { margin-top: 3px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.reset-credits { font-weight: 800; font-variant-numeric: tabular-nums; }
.unavailable { color: #92a2ad; }
.status { display: inline-flex; align-items: center; gap: 5px; font-weight: 800; line-height: 1.5; }
.status svg { width: 13px; height: 13px; }
.status-success { color: var(--green); }
.status-failed { color: var(--red); }
.status-partial { color: #9a6700; }
.status-running { color: var(--accent); }
.status-cancelled, .status-queued { color: #7d8e9a; }
.status-detail { color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 5px; }
.row-retry { width: 30px; height: 30px; min-height: 30px; border-radius: 8px; border-color: rgba(148,180,200,.28); }
.empty-row td { height: 120px; text-align: center; color: var(--muted); padding: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 980px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .hero-right { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .input-heading { gap: 9px; }
  .input-counts { width: 100%; gap: 16px; }
  .command-row { align-items: flex-start; flex-direction: column; gap: 14px; }
  .run-status { width: 100%; text-align: left; }
  .table-scroll { scrollbar-width: thin; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
