:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #657087;
  --line: #e5e9f0;
  --surface: #ffffff;
  --background: #f5f7fb;
  --accent: #315efb;
  --accent-dark: #2448c7;
  --success: #138a5b;
  --danger: #c23b52;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
button, input { font: inherit; }
button { border: 0; border-radius: 10px; background: var(--accent); color: white; cursor: pointer; font-weight: 700; padding: 11px 16px; }
button:hover { background: var(--accent-dark); }
button.secondary, .link-button { background: transparent; color: var(--accent); border: 1px solid #cfd8f8; }
button.secondary:hover, .link-button:hover { background: #eef2ff; }
.shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 72px; }
.hero { margin-bottom: 28px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; margin: 0 0 10px; }
h1, h2, p { margin-top: 0; }
h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.04em; margin-bottom: 10px; }
h2 { font-size: 18px; margin-bottom: 16px; }
.subtitle, .hint { color: var(--muted); line-height: 1.6; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(35, 49, 82, .05); padding: 24px; margin-bottom: 18px; }
.stack { display: grid; gap: 16px; max-width: 600px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
input { width: 100%; border: 1px solid #cfd6e4; border-radius: 10px; background: white; color: var(--ink); padding: 12px 13px; outline: none; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49, 94, 251, .12); }
input[readonly] { color: #6b7487; background: #f7f8fb; }
.hidden { display: none !important; }
.toolbar, .section-heading, .job-item { align-items: center; display: flex; justify-content: space-between; gap: 14px; }
.toolbar { margin-bottom: 18px; }
.toolbar-actions { display: flex; gap: 8px; }
.status-dot { background: #22ad72; border-radius: 50%; display: inline-block; height: 9px; margin-right: 7px; width: 9px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 18px; }
.stat-card span { color: var(--muted); display: block; font-size: 13px; margin-bottom: 8px; }
.stat-card strong { font-size: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1.5fr auto; align-items: end; gap: 12px; }
.account-grid { grid-template-columns: 1fr 160px auto; }
.account-grid label:nth-of-type(3) { grid-column: 1 / -1; }
textarea { border: 1px solid #cfd6e4; border-radius: 10px; color: var(--ink); font: inherit; min-height: 94px; outline: none; padding: 12px 13px; resize: vertical; width: 100%; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49, 94, 251, .12); }
.data-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.link-button, .small-button { padding: 7px 10px; font-size: 13px; }
.list { display: grid; gap: 10px; }
.list.empty { color: var(--muted); font-size: 14px; padding: 14px 0; }
.list-item { align-items: center; background: #f8f9fc; border: 1px solid #edf0f5; border-radius: 11px; display: flex; gap: 12px; justify-content: space-between; padding: 12px 14px; }
.list-item strong, .list-item span { display: block; }
.list-item span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.account-item { align-items: center; background: #f8f9fc; border: 1px solid #edf0f5; border-radius: 11px; display: flex; gap: 14px; justify-content: space-between; padding: 13px 14px; }
.account-item > div:first-child { min-width: 0; }
.account-item strong, .account-item span { display: block; }
.account-item span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.small-button { flex: 0 0 auto; }
.danger-button { background: #fff1f3; border: 1px solid #f2c2ca; color: var(--danger); }
.danger-button:hover { background: #ffe1e6; }
.message { color: var(--success); min-height: 20px; margin: 0; }
.message.error { color: var(--danger); }
@media (max-width: 720px) {
  .shell { padding-top: 28px; }
  .stats, .data-grid, .form-grid, .account-grid { grid-template-columns: 1fr; }
  .account-grid label:nth-of-type(3) { grid-column: auto; }
  .account-item { align-items: flex-start; flex-direction: column; }
  .item-actions { justify-content: flex-start; }
  .toolbar { align-items: flex-start; flex-direction: column; }
}
