@import url('data:text/css,');

:root {
  --ink: #edf5ef;
  --muted: #83968d;
  --dim: #5f7068;
  --line: rgba(181, 218, 197, .12);
  --line-strong: rgba(181, 218, 197, .22);
  --surface: rgba(13, 25, 23, .88);
  --surface-2: #10201d;
  --surface-3: #162a26;
  --black: #07100f;
  --accent: #b8f56b;
  --accent-2: #6ce7be;
  --accent-dark: #315f35;
  --danger: #ff897c;
  --warning: #efc969;
  --radius: 18px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--black); color: var(--ink); }
body { min-height: 100vh; overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

#aurora { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; background: radial-gradient(circle at 40% -20%, #19372e 0, transparent 45%), #07100f; }
#aurora i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .16; animation: drift 18s ease-in-out infinite alternate; }
#aurora i:nth-child(1) { width: 42vw; height: 42vw; background: #7efa89; left: -20vw; top: 30vh; }
#aurora i:nth-child(2) { width: 35vw; height: 35vw; background: #5ddfc6; right: -15vw; top: -8vh; animation-delay: -5s; }
#aurora i:nth-child(3) { width: 28vw; height: 28vw; background: #d9f26c; right: 20vw; bottom: -20vw; animation-delay: -11s; }
@keyframes drift { to { transform: translate3d(7vw, -5vh, 0) scale(1.15); } }

.icon { width: 19px; height: 19px; display: inline-grid; place-items: center; flex: 0 0 auto; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { color: var(--accent-2); letter-spacing: .18em; font-size: 10px; font-weight: 750; }
.brand-lockup { display: flex; align-items: center; gap: 13px; }
.brand-lockup > div { display: grid; gap: 2px; }
.brand-lockup strong { font-size: 18px; letter-spacing: -.03em; }
.brand-lockup small { color: var(--muted); font-size: 11px; }
.brand-mark { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(184, 245, 107, .45); border-radius: 12px 12px 12px 3px; color: var(--accent); background: linear-gradient(145deg, rgba(184, 245, 107, .16), rgba(108, 231, 190, .02)); box-shadow: inset 0 0 20px rgba(184, 245, 107, .08); }
.brand-mark::after { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; right: -2px; top: -2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.brand-mark b { font: 700 18px/1 Georgia, serif; font-style: italic; }

.button { border: 0; border-radius: 12px; min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; font-weight: 720; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button--primary { color: #122112; background: linear-gradient(110deg, var(--accent), #d7ff8d); box-shadow: 0 12px 28px rgba(184, 245, 107, .14); }
.button--primary:hover { box-shadow: 0 15px 38px rgba(184, 245, 107, .22); }
.button--wide { width: 100%; justify-content: space-between; }
.icon-button { width: 38px; height: 38px; border: 1px solid transparent; border-radius: 11px; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--muted); }
.icon-button:hover { color: var(--ink); border-color: var(--line); background: rgba(255, 255, 255, .035); }
.text-button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 7px; }
.text-button:hover { color: var(--accent); }

/* Login */
.login-view { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; padding: 32px; display: flex; align-items: center; justify-content: center; }
.login-panel { width: min(420px, 100%); }
.login-card { width: 100%; padding: 42px; border: 1px solid var(--line); background: linear-gradient(160deg, rgba(20, 38, 33, .82), rgba(8, 18, 16, .9)); border-radius: 26px; box-shadow: var(--shadow); }
.login-card h2 { margin: 12px 0 6px; font: 500 35px/1.1 Georgia, serif; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 28px; line-height: 1.5; }
.login-card label { display: grid; gap: 8px; margin: 18px 0; color: #aab9b0; font-size: 12px; font-weight: 650; }
.login-card input, .settings-card input, .settings-card textarea, .admin-form input, .admin-form select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; color: var(--ink); background: rgba(0, 0, 0, .2); outline: none; }
input:focus, textarea:focus, select:focus { border-color: rgba(184, 245, 107, .5) !important; box-shadow: 0 0 0 3px rgba(184, 245, 107, .07); }
.form-error { min-height: 19px; margin: 12px 0 0 !important; color: var(--danger); font-size: 12px; }
.mobile-brand { display: flex; margin-bottom: 32px; }

/* App shell */
.app-view { position: relative; z-index: 1; height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); background: rgba(5, 12, 11, .65); backdrop-filter: blur(22px); }
.sidebar { min-height: 0; padding: 23px 17px 17px; border-right: 1px solid var(--line); display: flex; flex-direction: column; background: rgba(7, 16, 15, .82); }
.sidebar-brand { padding: 0 8px 25px; }
.compose-button { width: 100%; margin-bottom: 18px; }
.folder-list { min-height: 0; overflow-y: auto; display: grid; gap: 3px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.folder-list button, .admin-links button { width: 100%; min-height: 40px; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; display: flex; align-items: center; gap: 10px; color: var(--muted); cursor: pointer; text-align: left; }
.folder-list button:hover, .admin-links button:hover { background: rgba(255,255,255,.035); color: var(--ink); }
.folder-list button.active, .admin-links button.active { background: linear-gradient(90deg, rgba(184,245,107,.15), rgba(184,245,107,.03)); color: var(--accent); }
.folder-list button b { margin-left: auto; min-width: 23px; padding: 3px 6px; border-radius: 8px; color: var(--dim); background: rgba(255,255,255,.035); text-align: center; font-size: 10px; }
.folder-list button.active b { color: #172515; background: var(--accent); }
#new-folder-button { align-self: flex-start; margin: 6px 0 10px; font-size: 11px; }
.admin-links { border-top: 1px solid var(--line); padding-top: 13px; margin-top: auto; display: grid; gap: 2px; }
.nav-label { padding: 0 11px 8px; color: var(--dim); font: 700 9px/1 monospace; letter-spacing: .17em; }
.account-chip { width: 100%; margin-top: 12px; padding: 10px 8px; border: 1px solid var(--line); border-radius: 13px; display: flex; gap: 9px; align-items: center; color: var(--ink); background: rgba(255,255,255,.025); cursor: pointer; text-align: left; }
.account-chip > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.account-chip strong, .account-chip small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-chip strong { font-size: 11px; }.account-chip small { color: var(--dim); font-size: 9px; }.account-chip b { margin-left: auto; color: var(--dim); font-size: 9px; letter-spacing: 1px; }
.avatar { width: 32px; height: 32px; border-radius: 10px 10px 10px 3px; display: grid; place-items: center; flex: 0 0 auto; color: #152214; background: linear-gradient(145deg, var(--accent), var(--accent-2)); font: 800 12px/1 monospace; }

.workspace { min-width: 0; min-height: 0; display: grid; grid-template-rows: 65px minmax(0, 1fr); }
.topbar { height: 65px; display: flex; align-items: center; gap: 18px; padding: 0 22px; border-bottom: 1px solid var(--line); }
.search-box { width: min(580px, 62vw); height: 39px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); display: flex; align-items: center; gap: 9px; color: var(--dim); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: var(--dim); }
.search-box kbd { border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; color: var(--dim); font: 9px/1.4 monospace; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 7px; }
.status-pill { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 8px rgba(108,231,190,.7); }
.mobile-menu { display: none; }

.mail-workspace { min-height: 0; display: grid; grid-template-columns: minmax(360px, 42%) minmax(420px, 58%); }
.message-column { min-width: 0; min-height: 0; border-right: 1px solid var(--line); display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.column-header { min-height: 82px; padding: 18px 20px 14px; display: flex; align-items: center; justify-content: space-between; }
.column-header h2 { margin: 3px 0 0; font: 500 25px/1 Georgia, serif; letter-spacing: -.04em; }.column-actions { display: flex; }
.bulk-bar { margin: 0 12px 9px; min-height: 37px; padding: 6px 9px; border: 1px solid rgba(184,245,107,.2); border-radius: 10px; background: rgba(184,245,107,.07); display: flex; align-items: center; gap: 7px; }
.bulk-bar b { margin-right: auto; color: var(--accent); font-size: 10px; }.bulk-bar button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 10px; }.bulk-bar button:hover { color: var(--ink); }.danger-text { color: var(--danger) !important; }
.message-list { min-height: 0; overflow-y: auto; padding: 0 9px 12px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.message-item { position: relative; width: 100%; min-height: 101px; padding: 14px 13px 13px 39px; border: 1px solid transparent; border-radius: 13px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 3px 12px; color: var(--muted); background: transparent; cursor: pointer; text-align: left; transition: background .15s, border .15s; }
.message-item:hover { background: rgba(255,255,255,.025); border-color: var(--line); }.message-item.active { background: linear-gradient(120deg, rgba(28,52,45,.88), rgba(14,30,26,.8)); border-color: rgba(108,231,190,.2); }.message-item.unread .message-from, .message-item.unread .message-subject { color: var(--ink); font-weight: 750; }
.message-select { position: absolute; left: 13px; top: 17px; width: 15px; height: 15px; accent-color: var(--accent); }
.message-from { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #b8c7be; font-size: 12px; }.message-time { color: var(--dim); font: 9px/1.3 monospace; }.message-subject { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #9bac9f; font-size: 11px; }.message-marks { display: flex; align-items: center; gap: 5px; color: var(--dim); }.message-snippet { grid-column: 1 / -1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--dim); font-size: 10px; }.message-item .unread-dot { position: absolute; right: 11px; bottom: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.pagination { min-height: 42px; padding: 7px 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--dim); font-size: 10px; }.pagination button { border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; background: transparent; color: var(--muted); cursor: pointer; }.pagination button:disabled { opacity: .35; }

.reader { min-width: 0; min-height: 0; overflow: hidden; background: rgba(8,17,15,.4); }
.reader-empty { height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); }.reader-empty h3 { margin: 25px 0 7px; color: #b8c6bd; font: 500 24px/1.2 Georgia, serif; }.reader-empty p { margin: 0; font-size: 11px; }.empty-orbit { position: relative; width: 76px; height: 76px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--accent); }.empty-orbit::before, .empty-orbit::after { content:''; position:absolute; inset:-12px; border: 1px solid rgba(108,231,190,.08); border-radius: 50%; }.empty-orbit::after { inset: 12px; }.empty-orbit i { position: absolute; width: 6px; height: 6px; left: -3px; top: 33px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.reader-content { height: 100%; overflow-y: auto; padding: 27px clamp(22px,4vw,56px) 60px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.reader-head { padding-bottom: 21px; border-bottom: 1px solid var(--line); }.reader-head-top { display: flex; align-items: flex-start; gap: 12px; }.reader-head h1 { flex: 1; margin: 6px 0 4px; color: var(--ink); font: 500 clamp(25px,3vw,38px)/1.13 Georgia, serif; letter-spacing: -.045em; }.reader-actions { display: flex; gap: 3px; }.sender-line { margin-top: 20px; display: flex; align-items: center; gap: 12px; }.sender-line .avatar { width: 38px; height: 38px; }.sender-details { min-width: 0; flex: 1; display: grid; gap: 3px; }.sender-details strong { font-size: 12px; }.sender-details small { color: var(--dim); font-size: 10px; }.address-row { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 6px; }.address-row b { color: #91a59a; font-weight: 700; }.address-value { color: #b3c3ba; overflow-wrap: anywhere; }.reader-date { color: var(--dim); font: 9px/1.4 monospace; }
.message-body { padding: 28px 0; color: #c1cec6; font: 14px/1.75 Georgia, serif; white-space: pre-wrap; overflow-wrap: anywhere; }.message-frame { width: 100%; min-height: 340px; border: 0; background: #fff; border-radius: 11px; color-scheme: light; }.remote-warning { margin: 16px 0; padding: 10px 12px; border: 1px solid rgba(239,201,105,.24); border-radius: 9px; color: var(--warning); background: rgba(239,201,105,.07); font-size: 10px; }.attachments { display: grid; gap: 8px; margin: 5px 0 25px; }.attachment-card { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; gap: 10px; color: var(--muted); text-decoration: none; background: rgba(255,255,255,.018); }.attachment-card:hover { color: var(--accent); border-color: rgba(184,245,107,.26); }.attachment-card b { color: #bac8bf; font-size: 11px; }.attachment-card small { margin-left: auto; font: 9px/1 monospace; }.reply-strip { display: flex; flex-wrap: wrap; gap: 8px; }.reply-strip button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }.reply-strip button:hover { color: var(--accent); border-color: rgba(184,245,107,.25); }
.loading-state, .empty-state { padding: 50px 20px; text-align: center; color: var(--dim); }.skeleton { margin: 8px 3px; height: 94px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.02), rgba(255,255,255,.06), rgba(255,255,255,.02)); background-size: 220% 100%; animation: shimmer 1.5s infinite; } @keyframes shimmer { to { background-position: -220% 0; } }

/* Composer and settings */
.modal-backdrop { position: fixed; inset: 0; z-index: 20; padding: 22px; display: grid; place-items: center; background: rgba(1,7,6,.72); backdrop-filter: blur(12px); }
.composer-card, .settings-card { width: min(840px, 100%); max-height: calc(100vh - 44px); border: 1px solid var(--line-strong); border-radius: 22px; background: linear-gradient(150deg, rgba(19,37,32,.98), rgba(8,18,16,.99)); box-shadow: var(--shadow); overflow: hidden; }
.composer-card > header, .settings-card > header { min-height: 73px; padding: 16px 21px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }.composer-card header h2, .settings-card header h2 { margin: 4px 0 0; font: 500 24px/1 Georgia, serif; }.composer-card header > div:last-child { display: flex; align-items: center; gap: 10px; }
.address-grid, .carbon-fields { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; padding: 12px 21px 0; gap: 10px; }.carbon-fields { grid-template-columns: 1fr 1fr; padding-top: 7px; }.composer-card label { color: var(--dim); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }.composer-card input { width: 100%; margin-top: 5px; border: 0; border-bottom: 1px solid var(--line); padding: 9px 0; outline: 0; color: var(--ink); background: transparent; }.subject-field { margin: 4px 21px 0; display: grid; grid-template-columns: 68px 1fr; align-items: center; }.subject-field input { font-size: 16px; }.editor-tabs { padding: 14px 21px 0; display: flex; gap: 5px; }.editor-tabs button { padding: 5px 9px; border: 0; border-radius: 7px; color: var(--dim); background: transparent; cursor: pointer; font-size: 9px; }.editor-tabs button.active { color: var(--accent); background: rgba(184,245,107,.08); }.compose-editor { display: block; width: calc(100% - 42px); height: min(35vh,320px); margin: 9px 21px; padding: 17px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--ink); background: rgba(0,0,0,.15); line-height: 1.6; }.composer-card > footer { min-height: 64px; padding: 10px 21px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 13px; }.composer-card footer .muted { margin-left: auto; font-size: 10px; }.attachment-button { padding: 8px 10px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted) !important; }.attachment-button:hover { color: var(--accent) !important; }.attachment-button input { display: none; }.attachment-list { padding: 0 21px; display: flex; flex-wrap: wrap; gap: 6px; }.attachment-list span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 9px; }
.settings-card { width: min(900px,100%); }.settings-layout { min-height: 470px; display: grid; grid-template-columns: 190px 1fr; }.settings-layout > nav { padding: 17px 12px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 4px; }.settings-layout > nav button { padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }.settings-layout > nav button.active { color: var(--accent); background: rgba(184,245,107,.08); }.settings-layout > div { padding: 28px; overflow-y: auto; }.settings-section h3 { margin: 0 0 5px; font: 500 23px/1.2 Georgia, serif; }.settings-section > p { margin: 0 0 23px; color: var(--muted); font-size: 11px; }.settings-section label { display: grid; gap: 7px; margin: 15px 0; color: #acbbb2; font-size: 11px; }.settings-section textarea { min-height: 110px; resize: vertical; }.settings-actions { margin-top: 22px; display: flex; gap: 9px; }.session-row, .protocol-card { margin: 9px 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 10px; }.session-row > span, .protocol-card > span { display: grid; gap: 3px; }.session-row small, .protocol-card small { color: var(--dim); }.session-row button { margin-left: auto; }

.language-toggle { min-width: 38px; height: 32px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--accent); background: rgba(184,245,107,.055); cursor: pointer; font: 750 10px/1 monospace; letter-spacing: .08em; }
.language-toggle:hover { border-color: rgba(184,245,107,.38); background: rgba(184,245,107,.1); }
.login-card-head { margin-bottom: 32px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login-card-head .mobile-brand { margin-bottom: 0; }
.settings-card { height: min(760px, calc(100dvh - 44px)); display: grid; grid-template-rows: auto minmax(0,1fr); }
.settings-layout { min-height: 0; height: 100%; overflow: hidden; }
.settings-layout > nav { min-height: 0; overflow-y: auto; }
.settings-layout > div { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.settings-header-actions { display: flex; align-items: center; gap: 8px; }
/* Administration */
.admin-workspace { min-height: 0; overflow-y: auto; padding: clamp(20px,3vw,42px); }.admin-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }.admin-header h1 { margin: 5px 0 0; font: 500 38px/1 Georgia, serif; letter-spacing: -.05em; }.admin-header p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }.metric-card { min-height: 132px; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(21,41,35,.62), rgba(9,20,17,.6)); }.metric-card span { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }.metric-card strong { display: block; margin: 18px 0 3px; font: 500 31px/1 Georgia, serif; }.metric-card small { color: var(--muted); font-size: 9px; }.admin-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-top: 12px; }.admin-panel { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: rgba(12,25,21,.55); }.admin-panel h3 { margin: 0 0 14px; font: 500 18px/1.2 Georgia, serif; }.health-row { display: grid; grid-template-columns: 1fr auto; padding: 9px 0; border-bottom: 1px solid rgba(181,218,197,.07); color: var(--muted); font-size: 11px; }.health-row:last-child { border:0; }.health-row b { color: var(--accent-2); font: 9px/1 monospace; }.health-row b.down { color: var(--danger); }.data-table { width: 100%; border-collapse: collapse; font-size: 10px; }.data-table th { padding: 9px 8px; border-bottom: 1px solid var(--line-strong); color: var(--dim); text-align: left; text-transform: uppercase; letter-spacing: .09em; }.data-table td { padding: 11px 8px; border-bottom: 1px solid rgba(181,218,197,.07); color: #aebdb4; vertical-align: top; }.data-table tr:hover td { background: rgba(255,255,255,.015); }.data-table code { color: var(--accent-2); word-break: break-all; }.table-actions { display:flex; gap:5px; }.table-actions button, .mini-button { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; }.table-actions button:hover, .mini-button:hover { color: var(--accent); }.admin-form { display: grid; grid-template-columns: repeat(5,minmax(100px,1fr)) auto; gap: 8px; margin: 0 0 15px; }.admin-form--domain { grid-template-columns: 1fr auto; max-width: 520px; }.admin-form input, .admin-form select { padding: 10px; font-size: 10px; }.badge { display:inline-flex; padding:4px 7px; border-radius:999px; background:rgba(108,231,190,.08); color:var(--accent-2); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }.badge.off { color:var(--danger); background:rgba(255,137,124,.08); }.dns-table td:nth-child(3) { max-width: 520px; word-break: break-all; }.dns-status { font-size:8px; text-transform:uppercase; }.dns-status.correct { color:var(--accent); }.dns-status.incorrect,.dns-status.check_failed { color:var(--danger); }.dns-status.not_configured,.dns-status.requires_production_value,.dns-status.requires_provider_action { color:var(--warning); }.audit-details { max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--dim); }.section-tabs { display:flex; gap:5px; margin-bottom:15px; }.section-tabs button { padding:7px 10px; border:1px solid var(--line); border-radius:8px; background:transparent; color:var(--muted); cursor:pointer; }.section-tabs button.active { color:var(--accent); border-color:rgba(184,245,107,.25); background:rgba(184,245,107,.06); }

.toast-region { position: fixed; z-index: 50; right: 18px; bottom: 18px; display: grid; gap: 8px; }.toast { width: min(360px,calc(100vw - 36px)); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 11px; color: #c4d1c9; background: rgba(15,31,27,.96); box-shadow: 0 13px 45px rgba(0,0,0,.35); font-size: 11px; animation: toast-in .25s ease; }.toast.error { border-color: rgba(255,137,124,.35); color: #ffaaa0; } @keyframes toast-in { from { transform: translateY(10px); opacity:0; } }

@media (max-width: 1100px) {
  .app-view { grid-template-columns: 210px minmax(0,1fr); }.mail-workspace { grid-template-columns: minmax(330px,44%) minmax(380px,56%); }.metric-grid { grid-template-columns: repeat(2,1fr); }.admin-form { grid-template-columns: repeat(2,1fr); }.admin-form button { grid-column:1/-1; }
}
@media (max-width: 820px) {
  body { overflow: auto; }.login-panel { min-height:100vh; }.mobile-brand { display:flex; }.app-view { grid-template-columns: 1fr; }.sidebar { position:fixed; z-index:12; inset:0 auto 0 0; width:250px; transform:translateX(-102%); transition:transform .22s; box-shadow:30px 0 70px rgba(0,0,0,.45); }.sidebar.open { transform:translateX(0); }.mobile-menu { display:grid; }.search-box { width:auto; flex:1; }.search-box kbd,.status-pill { display:none; }.mail-workspace { grid-template-columns:1fr; position:relative; }.message-column { border:0; }.reader { position:absolute; z-index:5; inset:0; transform:translateX(102%); transition:transform .22s; background:#0a1513; }.reader.open { transform:translateX(0); }.reader-back { display:grid; flex:0 0 auto; }.admin-grid { grid-template-columns:1fr; }.settings-layout { grid-template-columns:1fr; }.settings-layout > nav { border-right:0; border-bottom:1px solid var(--line); display:flex; overflow-x:auto; }.composer-card { max-height:100vh; border-radius:0; }.modal-backdrop { padding:0; }.compose-editor { height:35vh; }.metric-grid { grid-template-columns:1fr 1fr; }
}
@media (max-width: 520px) {
  .login-panel { padding:16px; }.login-card { padding:28px 22px; }.workspace { grid-template-rows:58px minmax(0,1fr); height:100vh; }.topbar { height:58px; padding:0 10px; gap:7px; }.search-box { height:37px; }.column-header { min-height:72px; }.message-item { min-height:94px; }.reader-content { padding:20px 17px 50px; }.metric-grid { grid-template-columns:1fr; }.admin-workspace { padding:18px 12px 35px; }.admin-header { align-items:flex-start; gap:12px; }.admin-header h1 { font-size:29px; }.data-table { min-width:680px; }.admin-panel { overflow-x:auto; }.carbon-fields { grid-template-columns:1fr; }.composer-card > footer { flex-wrap:wrap; }.composer-card footer .muted { order:3; width:100%; }.settings-layout > div { padding:20px 16px; }
}


.reader-back { display: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 820px) { .reader-back { display: grid; } }
@media (max-width: 820px) { .login-panel { min-height: 0; } .settings-card { width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; } .settings-layout { grid-template-rows: auto minmax(0,1fr); } .settings-layout > nav { overflow-y: hidden; } }
@media (max-width: 520px) { .login-view { padding: 16px; } .login-panel { padding: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}