:root {
  --ink: #172033;
  --muted: #697386;
  --line: #dfe5ef;
  --soft: #f5f7fb;
  --white: #fff;
  --primary: #3563e9;
  --primary-dark: #274bc0;
  --success: #138a58;
  --warning: #c27803;
  --danger: #c43c45;
  --shadow: 0 12px 36px rgba(34, 55, 96, .10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 20% -10%, #eaf0ff 0, transparent 36%), var(--soft); }
button, input, select { font: inherit; }
a { color: var(--primary); }
[hidden] { display: none !important; }
.statusbar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 16px 24px; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: 270px; }
.brand__mark { display: grid; place-items: center; width: 54px; height: 38px; border-radius: 11px; background: var(--ink); color: white; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 2px; }
.statusbar__items { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.status { display: flex; align-items: center; gap: 8px; min-width: 145px; padding: 8px 11px; border-radius: 10px; background: var(--soft); }
.status small, .status strong { display: block; line-height: 1.2; }
.status small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.status strong { margin-top: 3px; font-size: 13px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: #9aa4b4; box-shadow: 0 0 0 4px rgba(154,164,180,.15); }
.dot--ok { background: var(--success); box-shadow: 0 0 0 4px rgba(19,138,88,.13); }
.dot--warn, .dot--wait { background: var(--warning); box-shadow: 0 0 0 4px rgba(194,120,3,.14); }
.dot--wait { animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.shell { max-width: 1240px; margin: 0 auto; padding: 28px 24px 70px; }
.boot-card { min-height: 260px; display: flex; justify-content: center; align-items: center; gap: 18px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.boot-card h1 { margin: 0 0 8px; font-size: 24px; }.boot-card p { color: var(--muted); margin: 0; }.boot-card--error { border-color: #f3b7bc; }
.loader { width: 36px; height: 36px; border: 3px solid #dbe3fb; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: white; overflow-x: auto; }
.tab { border: 0; background: transparent; color: var(--muted); padding: 10px 15px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.tab:hover { background: var(--soft); }.tab.is-active { background: var(--ink); color: white; }
.panel { display: none; margin-top: 22px; }.panel.is-active { display: block; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding: 34px; border-radius: 20px; color: white; background: linear-gradient(125deg, #18233a, #2f4e9e); box-shadow: var(--shadow); }
.hero h1 { max-width: 700px; margin: 8px 0 10px; font-size: clamp(28px, 4vw, 48px); line-height: 1.04; }.hero p { max-width: 760px; margin: 0; color: #dce5ff; font-size: 16px; line-height: 1.6; }
.eyebrow { display: inline-block; color: #86a7ff; font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 34px 0 16px; }.section-heading--spaced { margin-top: 44px; }.section-heading h2 { margin: 0; font-size: 23px; }.section-heading p { margin: 5px 0 0; color: var(--muted); }
.button { border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 700; cursor: pointer; transition: .18s ease; }.button:disabled { opacity: .55; cursor: wait; }.button--primary { background: var(--primary); color: white; }.button--primary:hover { background: var(--primary-dark); }.button--secondary { background: var(--ink); color: white; }.button--ghost { background: white; border-color: var(--line); color: var(--ink); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.mailbox-card, .form-card, .empty-state { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 20px; box-shadow: 0 5px 20px rgba(34,55,96,.04); }.mailbox-card__heading { display: flex; justify-content: space-between; gap: 14px; }.mailbox-card__heading strong, .mailbox-card__heading small { display: block; }.mailbox-card__heading small { margin-top: 4px; color: var(--muted); }.mailbox-card dl { display: grid; grid-template-columns: 110px 1fr; gap: 9px 14px; margin: 20px 0 0; font-size: 14px; }.mailbox-card dt { color: var(--muted); }.mailbox-card dd { margin: 0; overflow-wrap: anywhere; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 42px; }.empty-state p { color: var(--muted); margin-bottom: 0; }
.badge { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; background: #eef1f6; color: var(--muted); white-space: nowrap; }.badge--connected, .badge--success { background: #e4f6ee; color: var(--success); }.badge--error, .badge--unavailable { background: #fdebed; color: var(--danger); }.badge--queued, .badge--processing, .badge--new, .badge--attention { background: #fff1d7; color: var(--warning); }
.form-card h3 { margin: 0 0 16px; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }.form-card label > span, .form-card label > small { display: block; }.form-card label > span { margin-bottom: 6px; font-weight: 700; font-size: 14px; }.form-card label > small { margin-top: 5px; color: var(--muted); }.form-card input, .form-card select { width: 100%; min-height: 42px; border: 1px solid #cbd4e2; border-radius: 9px; padding: 9px 11px; background: white; color: var(--ink); }.form-card input:focus, .form-card select:focus { outline: 3px solid rgba(53,99,233,.14); border-color: var(--primary); }.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 18px; }.hint, .muted { color: var(--muted); font-size: 13px; }.divider { height: 1px; background: var(--line); margin: 26px 0; } fieldset { margin: 22px 0 0; border: 1px solid var(--line); border-radius: 12px; padding: 16px; } legend { padding: 0 7px; font-weight: 800; }.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }.choice { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }.choice input { width: auto; min-height: auto; }
.table-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 15px; } table { width: 100%; border-collapse: collapse; min-width: 880px; } th, td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 13px; white-space: pre-line; } th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: #fafbfe; } tbody tr:last-child td { border-bottom: 0; }.empty-cell { text-align: center; color: var(--muted); padding: 36px; }.history-error { color: var(--danger); }.link-button { border: 0; padding: 5px 0; color: var(--primary); background: transparent; cursor: pointer; text-decoration: underline; }.inline-error { color: var(--danger); font-size: 13px; }
.prose { background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 4vw, 42px); line-height: 1.7; }.prose h1, .prose h2 { line-height: 1.2; }.prose h1 { font-size: 36px; }.prose h2 { margin-top: 30px; }.prose p, .prose li { color: #465166; }.link-cards { display: flex; gap: 10px; flex-wrap: wrap; }.link-cards a { padding: 10px 14px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; }
.flash { position: fixed; z-index: 10; top: 88px; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); padding: 12px 16px; border-radius: 10px; color: white; box-shadow: var(--shadow); background: var(--ink); }.flash--success { background: var(--success); }.flash--warn { background: var(--warning); }.flash--error { background: var(--danger); }
.legal-body { padding: 32px 18px 70px; }.legal-page { max-width: 860px; margin: 0 auto; }.back-link { display: inline-block; margin-bottom: 28px; text-decoration: none; }
code { padding: 2px 5px; border-radius: 5px; background: #eef1f7; }
@media (max-width: 900px) { .statusbar { align-items: flex-start; }.statusbar__items { display: grid; grid-template-columns: 1fr; }.status { min-width: 180px; }.hero { grid-template-columns: 1fr; }.form-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .statusbar { position: static; padding: 14px; flex-direction: column; }.statusbar__items { width: 100%; grid-template-columns: 1fr; }.status { width: 100%; }.shell { padding: 16px 12px 48px; }.hero { padding: 24px; }.tabs { border-radius: 0; margin: 0 -12px; }.section-heading { align-items: flex-start; }.form-actions { align-items: stretch; flex-direction: column; } }

