:root {
  color-scheme: light;
  --space: #f6f8ff;
  --space-soft: #edf1ff;
  --ink: #17223d;
  --ink-soft: #33415f;
  --ink-muted: #71809c;
  --line: rgb(83 103 155 / 16%);
  --line-strong: rgb(83 103 155 / 27%);
  --glass: rgb(255 255 255 / 64%);
  --glass-strong: rgb(255 255 255 / 84%);
  --cyan: #0ba8ce;
  --violet: #6958e9;
  --pink: #d94aa6;
  --lime: #4f9f3f;
  --amber: #b87418;
  --blue: #4c67dc;
  --red: #d64769;
  --shadow: 0 24px 70px rgb(63 83 150 / 13%);
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-width: 320px; background: var(--space); scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(145deg, #fcfdff 0%, #f4f7ff 54%, #fffafd 100%);
  font-size: 15px;
  line-height: 1.5;
}

body::before {
  position: fixed;
  z-index: -2;
  inset: -18%;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse at 24% 25%, rgb(54 214 239 / 8%), transparent 30%),
    radial-gradient(ellipse at 74% 18%, rgb(120 95 243 / 8%), transparent 32%),
    radial-gradient(ellipse at 58% 78%, rgb(235 82 185 / 7%), transparent 28%),
    radial-gradient(ellipse at 12% 78%, rgb(109 198 80 / 7%), transparent 25%);
  filter: blur(68px) saturate(115%);
  opacity: .62;
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .2;
  background-image: linear-gradient(rgb(83 103 155 / 7%) 1px, transparent 1px), linear-gradient(90deg, rgb(83 103 155 / 7%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .56; }
:focus-visible { outline: 3px solid rgb(11 168 206 / 42%); outline-offset: 3px; }

.app-shell { position: relative; display: grid; grid-template-columns: 184px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 14px 20px;
  overflow: hidden;
  border-right: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(245 248 255 / 84%));
  box-shadow: 10px 0 35px rgb(66 82 142 / 10%);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sidebar::after {
  position: absolute;
  right: -100px;
  bottom: 14%;
  width: 240px;
  height: 240px;
  content: "";
  border-radius: 50%;
  background: rgb(118 91 240 / 15%);
  filter: blur(56px);
  pointer-events: none;
}

.brand { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-family: "Segoe Script", "Segoe Print", "Brush Script MT", cursive; font-size: 25px; font-weight: 700; letter-spacing: -.07em; text-decoration: none; text-shadow: 0 1px 0 rgb(255 255 255 / 72%); }
.brand-mark { display: block; flex: 0 0 auto; width: 32px; height: 32px; object-fit: contain; border: 0; border-radius: 9px; background: transparent; box-shadow: 0 0 24px rgb(113 166 255 / 24%); }

.sidebar-quick { position: relative; z-index: 1; display: grid; gap: 8px; margin-top: 44px; }
.sidebar-section-label { margin: 0 0 5px 4px; color: #687797; font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sidebar-action { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 8px 9px; border: 1px solid transparent; border-radius: 12px; color: #344564; background: transparent; text-align: left; font-size: 14px; font-weight: 720; transition: .18s ease; }
.sidebar-action:hover, .sidebar-action:focus-visible { color: var(--ink); border-color: var(--line-strong); background: rgb(255 255 255 / 90%); box-shadow: 0 8px 18px rgb(83 103 155 / 12%); transform: translateX(2px); }
.sidebar-action-icon { display: grid; flex: 0 0 auto; width: 28px; height: 28px; place-items: center; border: 1px solid rgb(105 88 233 / 32%); border-radius: 8px; color: var(--violet); background: linear-gradient(140deg, rgb(11 168 206 / 17%), rgb(217 74 166 / 18%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 76%); font-size: 17px; line-height: 1; }
.sidebar-spacer { flex: 1; min-height: 32px; }
.side-health { position: relative; z-index: 1; display: grid; gap: 7px; padding: 15px; border: 1px solid var(--line-strong); border-radius: 17px; background: linear-gradient(145deg, rgb(255 255 255 / 86%), rgb(239 248 255 / 74%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 100%), 0 14px 30px rgb(83 103 155 / 10%); }
.health-heading { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 720; }
.health-dot { width: 8px; height: 8px; border-radius: 50%; background: #b8c2d3; box-shadow: 0 0 0 4px rgb(184 194 211 / 14%); }
.health-dot.is-online { background: #57a848; box-shadow: 0 0 0 4px rgb(87 168 72 / 14%), 0 0 14px rgb(87 168 72 / 42%); }
.health-dot.is-idle { background: #c99135; box-shadow: 0 0 0 4px rgb(201 145 53 / 14%); }
.health-dot.is-warning { background: #d28b32; box-shadow: 0 0 0 4px rgb(210 139 50 / 14%), 0 0 14px rgb(210 139 50 / 42%); }
.health-dot.is-error { background: #d64769; box-shadow: 0 0 0 4px rgb(214 71 105 / 14%); }
.side-health p { margin: 0; color: #657493; font-size: 12px; font-weight: 560; line-height: 1.45; }

.workspace { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-content: start; gap: 20px; width: 100%; min-width: 0; margin: 0; padding: 32px 36px 60px; }

.topbar { position: relative; grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 112px; margin: 0; padding: 22px 26px; overflow: hidden; border: 1px solid rgb(255 255 255 / 82%); border-radius: 24px; background: linear-gradient(115deg, rgb(255 255 255 / 77%), rgb(243 248 255 / 66%) 55%, rgb(253 243 255 / 70%)); box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 90%); backdrop-filter: blur(28px) saturate(140%); }
.topbar::before { position: absolute; top: -140px; right: 10%; width: 380px; height: 300px; content: ""; border-radius: 50%; background: radial-gradient(circle, rgb(52 211 237 / 20%), transparent 68%); filter: blur(8px); pointer-events: none; }
.topbar::after { position: absolute; right: -50px; bottom: -150px; width: 390px; height: 300px; content: ""; border-radius: 50%; background: radial-gradient(circle, rgb(229 83 187 / 17%), transparent 68%); filter: blur(12px); pointer-events: none; }
.topbar > * { position: relative; z-index: 1; }
.topbar-content { display: grid; gap: 8px; min-width: 0; }
.topbar-heading { display: flex; align-items: center; gap: 13px; }
.topbar-icon { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgb(255 255 255 / 45%); border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--cyan), var(--violet) 52%, var(--pink)); box-shadow: 0 10px 24px rgb(93 119 223 / 22%); font-size: 20px; font-weight: 850; }
.section-label { margin: 0 0 5px; color: var(--violet); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.topbar-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; row-gap: 4px; margin: 0; color: var(--ink-muted); font-size: 13px; }
.topbar-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #b8c2d3; box-shadow: 0 0 0 4px rgb(184 194 211 / 14%); }
.topbar-status-dot.is-online { background: #57a848; box-shadow: 0 0 0 4px rgb(87 168 72 / 14%), 0 0 14px rgb(87 168 72 / 42%); }
.topbar-status-dot.is-idle { background: #c99135; box-shadow: 0 0 0 4px rgb(201 145 53 / 14%); }
.topbar-status-dot.is-warning { background: #d28b32; box-shadow: 0 0 0 4px rgb(210 139 50 / 14%), 0 0 14px rgb(210 139 50 / 42%); }
.topbar-status-dot.is-error { background: #d64769; box-shadow: 0 0 0 4px rgb(214 71 105 / 14%); }
h1, h2 { margin: 0; color: var(--ink); font-weight: 780; letter-spacing: -.055em; }
h1 { max-width: 720px; font-size: clamp(26px, 2.4vw, 34px); line-height: 1; background: linear-gradient(110deg, #17223d 3%, #4266ad 34%, #6958e9 69%, #c83f99); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: 26px; line-height: 1.15; }

.topbar-actions, .dialog-actions, .action-group { display: flex; align-items: center; gap: 9px; }
.topbar-actions { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink-soft); background: rgb(255 255 255 / 64%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 88%); font-size: 14px; font-weight: 720; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); border-color: rgb(89 112 220 / 35%); background: rgb(255 255 255 / 88%); box-shadow: 0 9px 24px rgb(74 98 173 / 14%), inset 0 1px 0 rgb(255 255 255 / 100%); }
.button-primary { color: #fff; border-color: transparent; background: linear-gradient(110deg, #0aaace, #7162e9 50%, #d957ac); box-shadow: 0 10px 28px rgb(85 111 213 / 22%); }
.button-primary:hover:not(:disabled) { border-color: transparent; background: linear-gradient(110deg, #12badb, #8173f2 50%, #e46bbc); }

.notice { grid-column: 1 / -1; margin: 0; padding: 13px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink-soft); background: var(--glass); box-shadow: inset 0 1px 0 rgb(255 255 255 / 80%); font-size: 14px; backdrop-filter: blur(20px); }
.notice.success { border-color: rgb(79 159 63 / 30%); color: #34752c; background: rgb(126 205 105 / 14%); }
.notice.error { border-color: rgb(214 71 105 / 30%); color: #a53653; background: rgb(239 108 142 / 11%); }

.summary-strip { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; min-width: 0; margin: 0; }
.summary-item { position: relative; display: grid; gap: 8px; min-width: 0; min-height: 140px; padding: 23px 22px; overflow: hidden; border: 1px solid rgb(255 255 255 / 82%); border-radius: 23px; background: var(--glass); box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 90%); backdrop-filter: blur(24px) saturate(135%); }
.summary-item::before { position: absolute; top: -25px; right: -25px; width: 110px; height: 110px; content: ""; border-radius: 50%; background: var(--summary-glow); filter: blur(8px); opacity: .68; }
.summary-item:nth-child(1) { --summary-glow: rgb(60 209 237 / 31%); }
.summary-item:nth-child(2) { --summary-glow: rgb(110 193 84 / 27%); }
.summary-item:nth-child(3) { --summary-glow: rgb(236 178 74 / 29%); }
.summary-item:nth-child(4) { --summary-glow: rgb(221 83 179 / 28%); }
.summary-item > * { position: relative; z-index: 1; }
.summary-item span { color: var(--ink-muted); font-size: 14px; font-weight: 720; letter-spacing: .04em; }
.summary-item strong { color: var(--ink); font-size: 44px; font-weight: 780; letter-spacing: -.07em; line-height: 1; }
.summary-item small { color: #7c88a1; font-size: 13px; }

.content-panel { position: relative; min-width: 0; margin: 0; padding: 26px; overflow: hidden; border: 1px solid rgb(255 255 255 / 82%); border-radius: 26px; background: var(--glass); box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 90%); backdrop-filter: blur(25px) saturate(135%); }
.content-panel::after { position: absolute; right: -100px; bottom: -130px; width: 270px; height: 240px; content: ""; border-radius: 50%; background: rgb(110 128 255 / 9%); filter: blur(45px); pointer-events: none; }
.mailboxes-panel { grid-column: span 8; min-height: 390px; }
.activity-panel { grid-column: span 4; min-height: 390px; }
.panel-heading { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.updated-at, .muted-count { margin: 4px 0 0; color: var(--ink-muted); font-size: 12px; }

.table-wrap { position: relative; z-index: 1; overflow-x: auto; }
.mailbox-table { width: 100%; min-width: 720px; border-spacing: 0 8px; border-collapse: separate; text-align: left; }
.mailbox-table th { padding: 0 12px 8px; color: #73819c; font-size: 12px; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.mailbox-table th:first-child, .mailbox-table td:first-child { padding-left: 15px; }
.mailbox-table th:last-child, .mailbox-table td:last-child { padding-right: 15px; }
.mailbox-table td { padding: 16px 12px; border-top: 1px solid rgb(83 103 155 / 12%); border-bottom: 1px solid rgb(83 103 155 / 12%); background: rgb(255 255 255 / 54%); vertical-align: middle; }
.mailbox-table td:first-child { border-left: 1px solid rgb(83 103 155 / 12%); border-radius: 15px 0 0 15px; }
.mailbox-table td:last-child { border-right: 1px solid rgb(83 103 155 / 12%); border-radius: 0 15px 15px 0; }
.mailbox-table tbody tr { transition: transform .18s ease; }
.mailbox-table tbody tr:hover { transform: translateY(-2px); }
.mailbox-alias, .mailbox-host { display: block; }
.mailbox-alias { color: var(--ink); font-size: 16px; }
.mailbox-host { margin-top: 3px; color: var(--ink-muted); font-size: 13px; }
.folder-list { max-width: 230px; color: #536280; font-size: 14px; }
.time-cell { color: #73809a; font-size: 13px; white-space: nowrap; }
.state { display: inline-flex; align-items: center; gap: 7px; color: var(--lime); font-size: 13px; font-weight: 700; white-space: nowrap; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.state-paused { color: var(--amber); }
.action-group { justify-content: flex-end; white-space: nowrap; }
.table-action { border: 0; border-radius: 8px; padding: 8px 9px; color: #5369b9; background: transparent; font-size: 13px; font-weight: 700; }
.table-action:hover:not(:disabled) { color: #087e9f; background: rgb(11 168 206 / 11%); }
.table-action.danger { color: #b84868; }
.table-action.danger:hover:not(:disabled) { color: var(--red); background: rgb(214 71 105 / 10%); }
.auth-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 12px; white-space: nowrap; }
.mailbox-health-meta { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
#maintenance-toggle-button.is-active { border-color: #f0a35b; color: #b45309; }

.activity-panel .delivery-list { position: relative; z-index: 1; display: grid; }
.delivery-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-top: 1px solid rgb(83 103 155 / 12%); }
.delivery-item strong, .delivery-item span { display: block; }
.delivery-item strong { color: var(--ink-soft); font-size: 13px; font-weight: 680; }
.delivery-item div span { margin-top: 3px; color: var(--ink-muted); font-size: 11px; }
.delivery-status { min-width: 66px; padding: 5px 8px; border: 1px solid transparent; border-radius: 8px; text-align: center; font-size: 11px; font-weight: 750; white-space: nowrap; }
.status-sent { color: #3a7f30; border-color: rgb(79 159 63 / 24%); background: rgb(126 205 105 / 14%); }
.status-pending { color: #087e9f; border-color: rgb(11 168 206 / 24%); background: rgb(11 168 206 / 10%); }
.status-skipped { color: #9b6412; border-color: rgb(184 116 24 / 24%); background: rgb(184 116 24 / 10%); }
.status-failed { color: #b23858; border-color: rgb(214 71 105 / 24%); background: rgb(214 71 105 / 10%); }

.empty-state { position: relative; z-index: 1; display: grid; justify-items: start; gap: 8px; padding: 42px 10px; color: var(--ink-muted); }
.empty-state strong { color: var(--ink-soft); font-size: 16px; }
.empty-state span { max-width: 440px; font-size: 14px; }
.empty-state .button { margin-top: 8px; }
.empty-state.compact { padding: 25px 0 34px; }

dialog { width: min(650px, calc(100vw - 30px)); max-height: min(860px, calc(100vh - 30px)); padding: 0; border: 1px solid rgb(255 255 255 / 88%); border-radius: 24px; color: var(--ink); background: rgb(255 255 255 / 91%); box-shadow: 0 30px 100px rgb(70 85 151 / 25%), inset 0 1px 0 rgb(255 255 255 / 100%); backdrop-filter: blur(28px) saturate(140%); }
dialog::backdrop { background: rgb(62 72 125 / 32%); backdrop-filter: blur(8px); }
dialog form { padding: 30px; overflow: auto; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.dialog-copy { margin: 12px 0 24px; color: var(--ink-muted); font-size: 14px; }
.dialog-copy strong { color: var(--violet); }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft); background: rgb(246 248 255 / 86%); font-size: 22px; line-height: 1; }
.icon-button:hover { background: #fff; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field { display: grid; gap: 7px; color: var(--ink-soft); font-size: 13px; font-weight: 680; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; padding: 11px 12px; color: var(--ink); background: rgb(255 255 255 / 82%); font-size: 14px; font-weight: 480; outline: 0; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8a95aa; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgb(11 168 206 / 13%), 0 0 25px rgb(11 168 206 / 10%); }
.field small { color: var(--ink-muted); font-size: 11px; font-weight: 450; }
.toggle-row { display: flex; align-items: flex-start; gap: 10px; margin: 21px 0 15px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: rgb(249 250 255 / 80%); }
.toggle-row input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--violet); }
.toggle-row span { display: grid; gap: 2px; }
.toggle-row strong { font-size: 13px; }
.toggle-row small { color: var(--ink-muted); font-size: 12px; }
.form-error { margin: 16px 0 0; padding: 10px 12px; border: 1px solid rgb(214 71 105 / 32%); border-radius: 10px; color: #a53653; background: rgb(239 108 142 / 11%); font-size: 13px; }
.dialog-actions { justify-content: flex-end; margin-top: 28px; }
.filter-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.filter-presets .button { min-height: 36px; padding-inline: 12px; font-size: 12px; }

@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(3%, 2%, 0) scale(1.07); }
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 200px minmax(0, 1fr); }
  .mailboxes-panel { grid-column: span 7; }
  .activity-panel { grid-column: span 5; }
}

@media (max-width: 980px) {
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; min-height: 0; padding: 14px 22px; flex-direction: row; align-items: center; gap: 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-quick, .side-health, .sidebar-spacer { display: none; }
  .workspace { padding-top: 24px; }
  .mailboxes-panel, .activity-panel { grid-column: 1 / -1; }
  .summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .app-shell, .workspace { width: 100%; max-width: 100%; overflow-x: clip; }
  .sidebar { padding: 13px 16px; gap: 18px; }
  .brand { font-size: 18px; }
  .brand { gap: 7px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
  .workspace { display: grid; gap: 14px; padding: 18px 14px 42px; }
  .topbar { min-width: 0; min-height: 188px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 24px 21px; border-radius: 23px; }
  .topbar-actions { width: 100%; justify-content: flex-start; }
  .topbar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-width: 0; gap: 8px; }
  .topbar-actions #refresh-button { display: none; }
  .topbar-actions .button { width: 100%; min-width: 0; padding-inline: 8px; overflow: hidden; flex: none; text-overflow: ellipsis; white-space: nowrap; }
  h1 { font-size: clamp(38px, 14vw, 54px); }
  .summary-strip { width: 100%; gap: 14px; grid-template-columns: 1fr; }
  .summary-item { min-height: 125px; padding: 17px; border-radius: 19px; }
  .summary-item strong { font-size: 33px; }
  .content-panel { padding: 20px 16px; border-radius: 21px; }
  .panel-heading { gap: 12px; }
  .updated-at { max-width: 120px; text-align: right; }
  .delivery-item { align-items: flex-start; }
  .delivery-status { margin-top: 2px; }
  dialog form { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .dialog-actions .button { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --space: #060b19;
    --space-soft: #0d1530;
    --ink: #f5f7ff;
    --ink-soft: #d7def0;
    --ink-muted: #94a2bd;
    --line: rgb(190 211 255 / 15%);
    --line-strong: rgb(202 222 255 / 28%);
    --glass: rgb(20 31 64 / 68%);
    --glass-strong: rgb(26 40 78 / 82%);
    --cyan: #6ce7ff;
    --violet: #a992ff;
    --pink: #ff83d9;
    --lime: #b9ff9b;
    --amber: #ffd27a;
    --blue: #7d9dff;
    --red: #ff8da7;
    --shadow: 0 24px 70px rgb(0 0 0 / 28%);
  }

  html { background: var(--space); }
  body {
    background:
      radial-gradient(circle at 78% 12%, rgb(76 106 255 / 13%), transparent 34%),
      radial-gradient(circle at 20% 90%, rgb(255 100 210 / 10%), transparent 34%),
      var(--space);
  }
  body::before {
    background:
      radial-gradient(ellipse at 24% 25%, rgb(73 233 255 / 25%), transparent 30%),
      radial-gradient(ellipse at 74% 18%, rgb(160 109 255 / 24%), transparent 32%),
      radial-gradient(ellipse at 58% 78%, rgb(255 90 207 / 17%), transparent 28%),
      radial-gradient(ellipse at 12% 78%, rgb(155 255 150 / 11%), transparent 25%);
    opacity: .72;
  }
  body::after {
    opacity: .13;
    background-image: linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  }

  .sidebar {
    border-right-color: rgb(194 221 255 / 25%);
    background: linear-gradient(180deg, rgb(6 13 31 / 96%), rgb(10 17 38 / 92%));
    box-shadow: 10px 0 35px rgb(0 0 0 / 16%);
    backdrop-filter: blur(14px) saturate(120%);
  }
  .sidebar::after { background: rgb(119 91 255 / 18%); }
  .brand { text-shadow: 0 1px 0 rgb(0 0 0 / 32%); }
  .sidebar-section-label { color: #a9b8d5; }
  .sidebar-action { color: #d6e1f6; }
  .sidebar-action:hover, .sidebar-action:focus-visible { color: #fff; border-color: rgb(194 221 255 / 27%); background: rgb(255 255 255 / 10%); box-shadow: 0 8px 18px rgb(0 0 0 / 18%); }
  .sidebar-action-icon { border-color: rgb(169 146 255 / 46%); background: linear-gradient(140deg, rgb(108 231 255 / 18%), rgb(255 131 217 / 20%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%); }
  .side-health { border-color: rgb(194 221 255 / 24%); background: linear-gradient(145deg, rgb(20 31 64 / 90%), rgb(16 27 57 / 86%)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 14px 30px rgb(0 0 0 / 18%); }
  .health-heading { color: #ecf3ff; }
  .side-health p { color: #b3c1db; }

  .topbar { border-color: var(--line-strong); background: linear-gradient(115deg, rgb(20 38 76 / 75%), rgb(23 24 66 / 64%) 55%, rgb(48 24 72 / 63%)); box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 13%); }
  .topbar::before { background: radial-gradient(circle, rgb(100 224 255 / 27%), transparent 68%); }
  .topbar::after { background: radial-gradient(circle, rgb(255 110 215 / 23%), transparent 68%); }
  .section-label { color: var(--cyan); }
  h1 { background: linear-gradient(110deg, #fff 3%, #bcefff 34%, #c4b9ff 69%, #ffb1e8); -webkit-background-clip: text; background-clip: text; }
  .button { color: var(--ink-soft); background: rgb(255 255 255 / 7%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 9%); }
  .button:hover:not(:disabled) { border-color: rgb(180 221 255 / 48%); background: rgb(255 255 255 / 13%); box-shadow: 0 9px 24px rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 14%); }
  .button-primary { color: #071125; }

  .notice { color: var(--ink-soft); background: var(--glass); box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%); }
  .notice.success { border-color: rgb(145 255 188 / 35%); color: var(--lime); background: rgb(71 173 125 / 13%); }
  .notice.error { border-color: rgb(255 141 167 / 38%); color: #ffb7c7; background: rgb(255 77 121 / 12%); }
  .summary-item { border-color: var(--line); background: var(--glass); box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 9%); }
  .summary-item:nth-child(1) { --summary-glow: rgb(104 227 255 / 35%); }
  .summary-item:nth-child(2) { --summary-glow: rgb(183 255 155 / 34%); }
  .summary-item:nth-child(3) { --summary-glow: rgb(255 210 122 / 34%); }
  .summary-item:nth-child(4) { --summary-glow: rgb(255 131 217 / 34%); }
  .summary-item small { color: #9ba8c1; }
  .content-panel { border-color: var(--line); background: var(--glass); box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 9%); }
  .content-panel::after { background: rgb(110 128 255 / 11%); }

  .mailbox-table th { color: #91a2c4; }
  .mailbox-table td { border-color: rgb(195 218 255 / 10%); background: rgb(255 255 255 / 4%); }
  .mailbox-table td:first-child { border-left-color: rgb(195 218 255 / 10%); }
  .mailbox-table td:last-child { border-right-color: rgb(195 218 255 / 10%); }
  .folder-list { color: #b5c2db; }
  .time-cell { color: #a0aec8; }
  .table-action { color: #a8c3e8; }
  .table-action:hover:not(:disabled) { color: var(--cyan); background: rgb(108 231 255 / 12%); }
  .table-action.danger { color: #ff9caf; }
  .table-action.danger:hover:not(:disabled) { color: var(--red); background: rgb(255 119 151 / 12%); }
  .delivery-item { border-top-color: rgb(195 218 255 / 12%); }
  .delivery-status { color: var(--ink-soft); }
  .status-sent { color: var(--lime); border-color: rgb(185 255 155 / 23%); background: rgb(185 255 155 / 10%); }
  .status-pending { color: var(--cyan); border-color: rgb(108 231 255 / 24%); background: rgb(108 231 255 / 10%); }
  .status-skipped { color: var(--amber); border-color: rgb(255 210 122 / 24%); background: rgb(255 210 122 / 10%); }
  .status-failed { color: var(--red); border-color: rgb(255 141 167 / 24%); background: rgb(255 141 167 / 10%); }

  dialog { border-color: var(--line-strong); background: rgb(13 23 49 / 93%); box-shadow: 0 30px 100px rgb(0 0 0 / 52%), inset 0 1px 0 rgb(255 255 255 / 14%); }
  dialog::backdrop { background: rgb(3 7 18 / 70%); }
  .dialog-copy strong { color: var(--cyan); }
  .icon-button { color: var(--ink-soft); background: rgb(255 255 255 / 7%); }
  .icon-button:hover { background: rgb(255 255 255 / 13%); }
  .field input, .field textarea { color: var(--ink); background: rgb(255 255 255 / 7%); }
  .field input::placeholder, .field textarea::placeholder { color: #7786a3; }
  .toggle-row { background: rgb(255 255 255 / 4%); }
  .form-error { border-color: rgb(255 141 167 / 38%); color: #ffb8c7; background: rgb(255 82 125 / 12%); }
}
