:root {
  --canvas: #f5f5ef;
  --paper: #fffefa;
  --white: #ffffff;
  --ink: #25352e;
  --muted: #7a857d;
  --subtle: #a0a89f;
  --line: #e5e8de;
  --jade: #246b50;
  --jade-dark: #19523c;
  --jade-soft: #e9f2e9;
  --sidebar: #172c24;
  --sidebar-muted: #8fa598;
  --red: #a4493c;
  --red-soft: #fff0eb;
  --amber: #927234;
  --amber-soft: #faf3e2;
  --blue: #44718a;
  --blue-soft: #edf3f7;
  --radius: 14px;
  --shadow: 0 3px 14px rgb(26 49 35 / 2%);
  --sidebar-width: 236px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.65; color: var(--ink); background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--jade); text-decoration: none; }
a:hover { color: var(--jade-dark); }
button:disabled, input:disabled { cursor: not-allowed; }
button:disabled { opacity: .43; }
input[type="checkbox"] { accent-color: var(--jade); }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button { opacity: .4; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 29px; line-height: 1.45; letter-spacing: -.9px; font-weight: 650; }
h2 { font-size: 16px; line-height: 1.55; font-weight: 650; letter-spacing: -.2px; }
h3 { font-size: 15px; line-height: 1.6; font-weight: 620; }
strong { font-weight: 620; }
svg { flex-shrink: 0; vertical-align: middle; }
code { font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; padding: 2px 5px; background: #edf0e8; border-radius: 4px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #88b996; outline-offset: 3px; }
::selection { background: #cee4cb; }
.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; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 10px 18px; color: white; background: var(--jade); transform: translateY(-180%); z-index: 100; border-radius: 8px; }
.skip-link:focus { transform: translateY(0); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.align-right { text-align: right; }
.tabular, .mono-text { font-variant-numeric: tabular-nums; }
.danger-text { color: var(--red) !important; }
.eyebrow { margin-bottom: 9px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 1.8px; line-height: 1.5; }
.icon { width: 19px; height: 19px; }

/* Workspace */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); z-index: 40; background: var(--sidebar); color: #eaf0e7; display: flex; flex-direction: column; padding: 34px 21px 0; }
.sidebar-head { margin: 0 9px 49px; }
.brand { display: flex; align-items: center; gap: 12px; color: #f5f5eb; line-height: 1; width: fit-content; }
.brand:hover { color: #f5f5eb; }
.brand > span:last-child { font-size: 25px; font-weight: 700; letter-spacing: -.9px; }
.brand-light { font-weight: 350; color: #c2d0c2; }
.brand small { display: block; padding-top: 9px; font-size: 7px; font-weight: 550; letter-spacing: 2.8px; color: #8fa598; }
.brand-symbol { width: 29px; height: 31px; display: flex; align-items: center; gap: 4px; transform: skew(-15deg); }
.brand-symbol span { display: block; background: #c4d9ab; width: 7px; height: 27px; border-radius: 2px; }
.brand-symbol span:nth-child(2) { height: 19px; background: #92b18c; }
.brand-symbol span:last-child { height: 12px; background: #6e967c; }
.sidebar-label { color: #7c9586; font-size: 10px; letter-spacing: 2.2px; padding: 0 15px 15px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 13px; min-height: 48px; padding: 12px 15px; border-radius: 8px; color: #aebfb2; font-size: 13px; transition: background .18s, color .18s; }
.nav-link:hover { color: #eaf1e5; background: #223a2e; }
.nav-link.is-active { color: #e9f4d8; background: #2e4938; }
.nav-link.is-active .icon { color: #b8d2a0; }
.nav-active-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #bad39f; }
.nav-divider { height: 1px; background: #2c4034; margin: 20px 14px 16px; }
.sidebar-bottom { margin-top: auto; padding-top: 40px; }
.sender-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 10px 28px; }
.sender-note-icon { color: #8caa86; margin-top: 1px; }
.sender-note strong { font-size: 11px; font-weight: 500; color: #c0cebd; }
.sender-note p { font-size: 10px; margin-top: 6px; color: #829c89; line-height: 1.9; }
.account-block { display: flex; align-items: center; gap: 10px; margin: 0 -21px; padding: 22px 19px; border-top: 1px solid #2b4033; }
.account-avatar { width: 34px; height: 34px; border-radius: 50%; background: #405a45; color: #e1e9cc; display: grid; place-items: center; font-size: 13px; font-weight: 500; }
.account-info { min-width: 0; flex: 1; }
.account-info strong { display: block; font-size: 11px; color: #dfe8db; font-weight: 500; }
.account-info span { display: block; max-width: 133px; overflow: hidden; text-overflow: ellipsis; color: #829b87; font-size: 10px; }
.account-block form { display: flex; }
.logout-button { color: #9cb19d !important; }
.workspace { margin-left: var(--sidebar-width); }
.topbar { height: 76px; border-bottom: 1px solid var(--line); background: #f9f9f4; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; font-size: 11px; color: var(--muted); }
.topbar-location { display: flex; align-items: center; gap: 17px; }
.topbar-brand { color: #5c6c5e; font-size: 9px; letter-spacing: 1.5px; font-weight: 600; }
.topbar-separator { color: #c2c9be; }
.workspace-mark { display: flex; align-items: center; gap: 9px; font-size: 10px; }
.status-dot { display: inline-block; height: 5px; width: 5px; border-radius: 50%; background: #6b9275; flex-shrink: 0; }
.main-content { max-width: 1550px; margin: 0 auto; padding: 35px 42px 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 29px; }
.page-heading p { margin-top: 9px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.heading-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.page-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 23px 0 26px; margin-top: 40px; color: #939d91; font-size: 10px; }
.page-footer span:first-child { text-transform: uppercase; letter-spacing: 1.6px; font-size: 9px; }
.mobile-menu, .sidebar-close, .sidebar-scrim { display: none !important; }

/* Controls and surfaces */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 10px 17px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; font-weight: 550; line-height: 1.5; white-space: nowrap; transition: background .18s, border-color .18s, transform .18s; }
.button .icon { width: 16px; height: 16px; }
.button-primary { color: #fffef5; background: var(--jade); border-color: var(--jade); box-shadow: 0 2px 3px #17332609; }
.button-primary:hover:not(:disabled) { color: white; background: var(--jade-dark); border-color: var(--jade-dark); }
.button-secondary { color: #4c6050; background: var(--paper); border-color: #dce2d5; }
.button-secondary:hover:not(:disabled) { color: var(--jade-dark); border-color: #b8cbb6; background: #f4f7ee; }
.button-small { min-height: 35px; padding: 7px 12px; font-size: 11px; }
.button-block { width: 100%; }
.button:active:not(:disabled) { transform: translateY(1px); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 6px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; }
.icon-button:hover { color: var(--jade); background: #e9efdf77; }
.icon-button .icon { width: 17px; height: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 550; white-space: nowrap; }
.text-link .icon { width: 14px; height: 14px; }
.text-button { display: inline-flex; gap: 5px; align-items: center; padding: 5px 0; color: var(--jade); background: none; border: 0; font-size: 11px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button .icon { width: 13px; height: 13px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); overflow: hidden; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 24px; border-bottom: 1px solid var(--line); }
.panel-heading p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.panel-heading .eyebrow { font-size: 9px; margin-bottom: 7px; }
.panel-heading-icon { color: #a4b49b; }
.panel-body { padding: 25px; }
.count-tag { display: inline-block; vertical-align: 1px; background: #eff2e9; border: 1px solid #e5e9df; border-radius: 5px; padding: 1px 7px; margin-left: 7px; color: #78876f; font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border: 1px solid; border-radius: 9px; font-size: 12px; margin-bottom: 20px; overflow-wrap: anywhere; }
.notice > .icon { width: 17px; height: 17px; margin-top: 2px; }
.notice > div { flex: 1; min-width: 0; }
.notice p { margin-top: 4px; font-size: 11px; line-height: 1.8; }
.notice > .icon-button { margin: -6px -9px -6px 4px; flex-shrink: 0; }
.notice a { text-decoration: underline; text-underline-offset: 3px; }
.notice-error { background: #fdf2ee; color: #a05446; border-color: #efdbd3; }
.notice-success { background: #edf5e9; color: #456d42; border-color: #d7e7ce; }
.notice-warning { background: #fcf6e8; color: #8b713b; border-color: #eee3c6; }
.notice-neutral { background: #f3f5ee; color: #718167; border-color: #e2e7d9; }
.flash { margin-bottom: 25px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; font-size: 10px; font-weight: 500; line-height: 1.4; border-radius: 5px; white-space: nowrap; }
.badge > span { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-neutral { background: #eef0e9; color: #7c8775; }
.badge-jade { background: #eaf2e6; color: #5f8050; }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.empty-state { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 57px 25px 61px; }
.empty-state-icon { width: 55px; height: 55px; background: #f2f5eb; color: #7e9a74; border: 1px solid #e7eddd; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; }
.empty-state-icon .icon { width: 25px; height: 25px; }
.empty-state h3 { font-size: 14px; font-weight: 550; }
.empty-state p { color: var(--muted); font-size: 11px; max-width: 330px; line-height: 1.9; margin: 9px 0 22px; }
.empty-state p:last-child { margin-bottom: 0; }

/* Overview */
.dashboard-intro { display: flex; justify-content: space-between; min-height: 194px; padding: 31px 35px; background: #e8eddf; border: 1px solid #dfe6d3; border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; position: relative; }
.intro-kicker { display: inline-flex; align-items: center; gap: 7px; color: #7b906f; font-size: 8px; font-weight: 650; letter-spacing: 1.6px; margin-bottom: 12px; }
.dashboard-intro h2 { font-size: 24px; color: #34513a; letter-spacing: -.6px; font-weight: 550; }
.dashboard-intro p { margin-top: 11px; font-size: 10px; color: #829078; line-height: 2; }
.dashboard-intro .mono-text { margin-left: 6px; color: #667e5e; }
.intro-art { position: relative; display: grid; place-items: center; width: 170px; min-height: 120px; flex-shrink: 0; margin-right: 22px; }
.intro-art > .icon { width: 82px; height: 82px; stroke-width: .65; color: #92a580; transform: rotate(-9deg); position: relative; z-index: 2; }
.intro-orbit { position: absolute; height: 136px; width: 136px; border: 1px solid #d1dbc4; border-radius: 50%; }
.intro-orbit-two { height: 195px; width: 195px; border: 1px dashed #d5dec9; }
.stats-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; margin-bottom: 28px; }
.stat-card { padding: 21px 23px 19px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); box-shadow: var(--shadow); }
.stat-heading { display: flex; align-items: center; justify-content: space-between; color: #75816f; font-size: 11px; }
.stat-heading .icon { color: #9aaf8e; width: 17px; height: 17px; }
.stat-number { font-size: 34px; font-weight: 450; line-height: 1.5; letter-spacing: -1px; margin: 9px 0 3px; font-variant-numeric: tabular-nums; color: #314b35; }
.stat-card p { font-size: 9px; color: #939c8d; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(280px,1fr); gap: 24px; align-items: start; }
.dashboard-columns .panel-heading { padding: 21px 22px; }
.dashboard-columns .campaign-table { min-width: 420px; }
.dashboard-columns .campaign-table th, .dashboard-columns .campaign-table td { padding-left: 15px; padding-right: 15px; }
.dashboard-note { display: flex; align-items: flex-start; gap: 9px; color: #8d9787; font-size: 10px; margin: 23px 3px 0; line-height: 1.9; }
.dashboard-note .icon { width: 14px; height: 14px; margin-top: 2px; }
.readiness-panel > .button { width: calc(100% - 44px); margin: 0 22px 23px; }
.readiness-content { padding: 23px 22px; }
.readiness-state { display: flex; gap: 10px; align-items: flex-start; }
.readiness-state-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; }
.readiness-state-icon .icon { width: 16px; height: 16px; }
.is-pending .readiness-state-icon { color: #9d854f; background: #f7f0dd; }
.is-ready .readiness-state-icon { color: #6c8a5a; background: #ebf1e2; }
.readiness-state strong { font-size: 12px; font-weight: 550; display: block; padding-top: 2px; }
.readiness-state p { margin-top: 5px; font-size: 10px; color: #89927f; line-height: 1.8; overflow-wrap: anywhere; }
.readiness-checks { list-style: none; padding: 18px 0 0; margin: 17px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 15px; }
.readiness-checks li { display: flex; align-items: flex-start; gap: 10px; }
.check-mark { display: flex; margin-top: 2px; }
.check-mark .icon { width: 14px; height: 14px; }
.is-ok .check-mark { color: #6f945c; }
.is-incomplete .check-mark { color: #b1b9a6; }
.readiness-checks strong { font-size: 11px; font-weight: 500; }
.readiness-checks p { font-size: 10px; line-height: 1.8; color: #99a18f; margin-top: 3px; }
.readiness-compact { padding: 0; margin: 18px 0; }
.readiness-compact .readiness-checks { gap: 10px; padding-top: 13px; margin-top: 13px; }
.readiness-compact > .text-link { margin-top: 15px; }

/* Forms and contacts */
.stack-form { display: flex; flex-direction: column; gap: 21px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .field-label { font-size: 12px; font-weight: 550; color: #52654f; }
.label-optional { font-size: 10px; font-weight: 400; color: #98a18f; margin-left: 7px; }
input:not([type="checkbox"]):not([type="hidden"]), textarea, select { width: 100%; min-height: 43px; padding: 10px 12px; color: #374c38; background: #fffefa; border: 1px solid #dfe5d6; border-radius: 7px; font-size: 12px; line-height: 1.65; transition: border-color .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: #a6af9f; opacity: 1; }
input:focus, textarea:focus { outline: none; border-color: #88aa80 !important; box-shadow: 0 0 0 3px #d9e9d566; }
input[readonly], textarea[readonly] { background: #f8f9f4 !important; color: #6e7d65 !important; }
textarea { resize: vertical; min-height: 100px; }
input[type="checkbox"] { width: 15px; height: 15px; flex-shrink: 0; margin: 4px 0 0; border-radius: 4px; }
input[type="file"] { background: #f8faf3 !important; padding: 10px !important; font-size: 11px !important; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 6px 11px; border: 1px solid #dfe6d5; border-radius: 5px; color: #627b54; background: white; cursor: pointer; font-family: inherit; font-size: 11px; }
.field-hint { color: #98a18e; font-size: 10px; line-height: 1.8; }
.checkbox-card { display: flex; align-items: flex-start; gap: 10px; padding: 15px; background: #f7f9f0; border: 1px solid #e5ebdb; border-radius: 8px; cursor: pointer; }
.checkbox-card > span { display: block; min-width: 0; }
.checkbox-card strong { display: block; font-size: 11px; font-weight: 500; color: #687e5a; line-height: 1.9; }
.checkbox-card small { display: block; font-size: 10px; color: #97a18b; line-height: 1.9; margin-top: 5px; }
.checkbox-card:has(input:checked) { border-color: #a9c59b; background: #f0f6e9; }
.is-disabled { opacity: .62; cursor: not-allowed; }
.form-actions { display: flex; align-items: center; gap: 12px; }
.form-grid-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.password-field { position: relative; }
.password-field > input { padding-right: 45px !important; }
.password-field > .icon-button { position: absolute; right: 6px; top: 6px; }
.field-divider { height: 1px; background: var(--line); margin: 2px 0; }
.disclosure-panel { margin-bottom: 24px; }
.disclosure-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.disclosure-title { display: flex; align-items: center; gap: 10px; color: #5a7150; font-size: 13px; font-weight: 550; }
.disclosure-title .icon { width: 18px; height: 18px; color: #8caa7c; }
.disclosure-hint { display: flex; align-items: center; gap: 14px; color: #98a18e; font-size: 10px; }
.disclosure-hint .icon { width: 14px; height: 14px; transition: transform .2s; }
details[open] > summary .disclosure-hint .icon, .text-version[open] > summary .icon { transform: rotate(90deg); }
.disclosure-body { padding: 27px 25px; border-top: 1px solid var(--line); }
.import-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.import-instructions .eyebrow { font-size: 9px; color: #89a078; margin-top: 3px; }
.import-instructions h2 { font-size: 20px; margin-bottom: 15px; }
.import-instructions p { color: #8c9782; font-size: 11px; line-height: 2; margin-bottom: 14px; }
.import-instructions .button { margin-top: 8px; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.search-form { display: flex; align-items: center; gap: 10px; }
.search-field { position: relative; }
.search-field .icon { position: absolute; top: 12px; left: 10px; width: 15px; height: 15px; color: #9eac92; }
.search-field input { min-height: 37px !important; padding: 8px 12px 8px 32px !important; font-size: 10px !important; width: 215px !important; }
.contacts-panel { margin-bottom: 24px; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; }
th { background: #fafbf6; color: #8d9982; font-size: 10px; font-weight: 450; padding: 12px 24px; white-space: nowrap; }
td { padding: 19px 24px; border-top: 1px solid #ecefe5; vertical-align: middle; }
tbody tr:hover { background: #fafbf6; }
.table-secondary { display: block; color: #97a18b; font-size: 10px; line-height: 1.8; margin-top: 5px; }
.cell-truncate { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact-identity { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.contact-identity > div { min-width: 0; }
.contact-identity strong { font-size: 11px; font-weight: 500; }
.contact-avatar { width: 31px; height: 31px; flex-shrink: 0; border-radius: 50%; color: #8ba079; background: #eef3e6; display: grid; place-items: center; font-size: 10px; }
.contact-phone-inline { display: none; }
.contact-phone-value { display: block; min-width: 100px; max-width: 180px; color: #718167; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.inline-form { display: inline; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 18px; margin-top: 20px; }
.disclosure-body > p { font-size: 11px; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: 17px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.pagination > div { display: flex; gap: 8px; }

/* Campaigns and composer */
.workflow-strip { display: flex; align-items: center; justify-content: space-between; padding: 24px 30px; border: 1px solid var(--line); background: #f9faf3; border-radius: 12px; margin-bottom: 28px; gap: 20px; }
.workflow-strip > div { display: grid; grid-template-columns: 37px auto; gap: 2px 12px; }
.workflow-strip > div > span { grid-row: 1 / 3; color: #a6b396; font-size: 19px; font-weight: 350; align-self: center; }
.workflow-strip strong { font-size: 11px; color: #6e815f; font-weight: 550; }
.workflow-strip small { font-size: 9px; color: #a0ab93; }
.workflow-strip > .icon { width: 13px; height: 13px; color: #bdc7b1; }
.campaign-name { font-size: 12px; font-weight: 550; color: #4c6844; }
.campaign-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.campaign-table th:last-child, .campaign-table td:last-child { width: 40px; padding-left: 0; padding-right: 16px; }
.campaign-table .table-arrow { color: #acb89e; }
.back-link { display: inline-flex; align-items: center; gap: 7px; color: #89977c; font-size: 10px; margin-bottom: 22px; }
.back-link .icon { width: 13px; height: 13px; transform: rotate(180deg); }
.title-with-badge { display: flex; align-items: center; gap: 14px; }
.title-with-badge h1 { overflow-wrap: anywhere; }
.save-indicator { color: #96a18c; font-size: 10px; white-space: nowrap; }
.save-indicator.is-dirty { color: var(--amber); }
.campaign-heading { align-items: flex-start; }
.campaign-heading .heading-actions { margin-top: 28px; }
.campaign-workbench { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,1fr); gap: 23px; align-items: start; margin-bottom: 25px; }
.editor-form { padding: 23px 25px; gap: 23px; }
.editor-form input { font-size: 12px; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.field-label-row > label { font-size: 12px; color: #52654f; font-weight: 550; }
.code-editor { min-height: 345px; background: #f8faf5 !important; font: 11px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; tab-size: 2; color: #667f56 !important; }
.text-version summary { cursor: pointer; font-size: 11px; color: #718566; display: flex; align-items: center; gap: 8px; list-style: none; padding-bottom: 2px; }
.text-version summary span { font-size: 9px; color: #a2ad96; }
.text-version summary .icon { width: 12px; height: 12px; margin-left: auto; }
.text-version .field { margin-top: 14px; }
.editor-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 21px; border-top: 1px solid var(--line); margin-top: 1px; gap: 15px; }
.editor-bottom > span { font-size: 10px; display: flex; align-items: center; gap: 6px; }
.editor-bottom > span .icon { width: 12px; height: 12px; }
.campaign-side { display: flex; flex-direction: column; gap: 21px; min-width: 0; }
.preview-panel .panel-heading { padding: 23px 20px; }
.preview-live { display: flex; align-items: center; gap: 6px; color: #8ba079; font-size: 9px; white-space: nowrap; }
.preview-live .status-dot { width: 4px; height: 4px; background: #8aa376; }
.preview-envelope { padding: 16px 20px; border-bottom: 1px solid var(--line); background: #fcfdf8; }
.preview-envelope > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 8px; font-size: 10px; margin-bottom: 5px; }
.preview-envelope > div:last-child { margin-bottom: 0; }
.preview-envelope span { color: #a4ad9b; min-width: 36px; }
.preview-envelope strong { font-size: 10px; color: #718466; font-weight: 500; overflow-wrap: anywhere; }
.preview-envelope small { font-size: 9px; color: #a4ad9a; }
.preview-subject { flex: 1; min-width: 0; }
.preview-viewport { position: relative; background: #f3f5ed; min-height: 450px; padding: 14px; }
.preview-viewport iframe { display: block; width: 100%; height: 450px; border: 1px solid #e5e9dd; border-radius: 4px; background: white; }
.preview-empty { min-height: 450px; display: flex; justify-content: center; align-items: center; flex-direction: column; text-align: center; padding: 24px; border: 1px dashed #d9e3cc; border-radius: 6px; background: #fafbf6; }
.preview-empty > span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #edf3e4; color: #9db38a; margin-bottom: 18px; }
.preview-empty .icon { height: 23px; width: 23px; stroke-width: 1; }
.preview-empty strong { font-size: 12px; font-weight: 500; color: #849a74; }
.preview-empty p { font-size: 10px; color: #a4b097; margin-top: 9px; line-height: 1.9; }
.preview-footnote { display: flex; justify-content: center; align-items: center; gap: 6px; color: #a2ae94; font-size: 9px; padding: 12px; border-top: 1px solid var(--line); }
.preview-footnote .icon { width: 12px; height: 12px; }
.sender-panel { padding: 21px; }
.mini-heading { display: flex; align-items: center; gap: 8px; }
.mini-heading .icon { width: 15px; height: 15px; color: #9db38b; }
.mini-heading h3 { font-size: 11px; color: #7e936c; font-weight: 550; }
.detail-list { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.detail-list > div { display: flex; justify-content: space-between; gap: 20px; font-size: 10px; }
.detail-list dt { color: #a2af94; }
.detail-list dd { color: #7a9169; margin: 0; overflow-wrap: anywhere; }
.dispatch-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); }
.dispatch-test, .dispatch-queue { padding: 27px 29px; }
.dispatch-queue { border-left: 1px solid var(--line); }
.step-label { display: block; font-size: 9px; letter-spacing: 1px; color: #a6b198; margin-bottom: 15px; }
.dispatch-grid h3 { font-size: 13px; font-weight: 550; }
.dispatch-grid p { font-size: 11px; color: #8d9c7f; line-height: 1.9; margin-top: 8px; }
.test-address { display: flex; align-items: center; gap: 8px; padding: 12px 13px; background: #f4f7ed; border: 1px solid #e6ecd9; border-radius: 7px; color: #839b70; margin: 17px 0 21px; font-size: 11px; }
.test-address .icon { width: 14px; height: 14px; }
.dispatch-test .field-hint { margin-top: 12px; font-size: 9px; }
.recipient-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 19px; }
.recipient-summary > strong { font-size: 31px; color: #5a7d46; letter-spacing: -1px; font-weight: 450; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recipient-summary small { margin-left: 6px; font-size: 10px; font-weight: 400; color: #a4b091; letter-spacing: 0; }
.recipient-summary p { font-size: 10px; }
.dispatch-queue .notice { margin-top: 18px; font-size: 11px; }
.dispatch-queue .readiness-state p { font-size: 10px; margin-top: 5px; }
.dispatch-queue .readiness-checks p { font-size: 9px; margin-top: 3px; }
.queue-attestation { margin-bottom: 18px; }
.queue-form > .button { width: 100%; }
.campaign-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 25px; padding: 22px 0; }
.campaign-stats > div { padding: 0 24px; border-right: 1px solid var(--line); }
.campaign-stats > div:last-child { border: 0; }
.campaign-stats span { display: block; color: #97a28b; font-size: 10px; margin-bottom: 6px; }
.campaign-stats strong { font-size: 27px; font-weight: 450; color: #5f7a4d; font-variant-numeric: tabular-nums; }
.recipients-panel { margin-top: 25px; }
.recipient-error { max-width: 340px; display: block; font-size: 10px; color: #9aa68f; overflow-wrap: anywhere; }

/* Settings and audit */
.settings-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(275px,.47fr); gap: 24px; align-items: start; }
.settings-primary, .settings-form, .settings-aside { display: flex; flex-direction: column; gap: 23px; min-width: 0; }
.settings-aside { position: sticky; top: 23px; }
.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.identity-grid .field-label { display: block; color: #97a58a; font-size: 10px; font-weight: 400; margin-bottom: 7px; }
.identity-grid strong { font-size: 12px; color: #718b5d; font-weight: 500; overflow-wrap: anywhere; }
.identity-grid > div:first-child { grid-column: 1/-1; }
.connection-status { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #789067; }
.rate-fields { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.unit-input { position: relative; }
.unit-input input { padding-right: 31px !important; }
.unit-input > span { position: absolute; right: 12px; top: 11px; color: #a2b091; font-size: 10px; pointer-events: none; }
.bulk-switch { margin-top: 2px; }
.sync-panel .panel-body > .muted { font-size: 11px; line-height: 1.9; margin-bottom: 20px; }
.sync-time { margin-bottom: 21px; }
.sync-time span { display: block; color: #a0ad90; font-size: 10px; margin-bottom: 6px; }
.sync-time strong { color: #789266; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.sync-panel .field-hint { margin-top: 12px; text-align: center; font-size: 9px; }
.activity-list { padding: 3px 25px; }
.activity-item { display: flex; align-items: flex-start; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.activity-item:last-child { border: 0; }
.activity-icon { width: 34px; height: 34px; border-radius: 9px; background: #f0f5e7; color: #8caa77; display: grid; place-items: center; flex-shrink: 0; }
.activity-icon .icon { width: 17px; height: 17px; }
.activity-content { flex: 1; min-width: 0; }
.activity-content strong { font-size: 12px; font-weight: 500; color: #688258; }
.activity-content p { color: #9aaa8b; font-size: 10px; margin-top: 5px; line-height: 1.9; overflow-wrap: anywhere; }
.activity-time { flex-shrink: 0; color: #a9b29f; font-size: 10px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.toast { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar-width)/2); transform: translateX(-50%); max-width: calc(100vw - 36px); padding: 13px 20px; color: #f2f6ec; background: #294631; border-radius: 9px; box-shadow: 0 6px 25px #1a35282e; font-size: 12px; z-index: 90; }

/* Login and public pages */
.standalone-main { min-height: 100vh; }
.standalone-main > .flash { position: fixed; z-index: 80; top: 18px; left: 50%; transform: translateX(-50%); max-width: 640px; width: calc(100% - 32px); }
.login-layout { display: grid; grid-template-columns: .95fr 1.05fr; min-height: 100vh; }
.login-story { position: relative; padding: 52px 64px 32px; background: #1c3428; color: #f2f3e6; overflow: hidden; display: flex; flex-direction: column; }
.login-story > .brand { position: relative; z-index: 2; }
.login-story-content { margin: auto 0; padding: 63px 0 25px; position: relative; z-index: 1; }
.login-story-content .eyebrow { color: #8caa86; font-size: 9px; letter-spacing: 2px; margin-bottom: 22px; }
.login-story h1 { font-size: 40px; line-height: 1.65; font-weight: 450; letter-spacing: 1px; color: #e9edda; }
.login-story p { color: #8eaa89; font-size: 12px; line-height: 2.2; margin-top: 22px; }
.login-story-footer { position: relative; z-index: 2; font-size: 8px; color: #739171; letter-spacing: 2px; margin-top: 24px; }
.login-story-footer span { margin: 0 6px; }
.letter-art { position: relative; width: 250px; height: 210px; margin: 40px 0 10px 15px; transform: rotate(-7deg); }
.letter-art-card { position: absolute; top: 0; left: 17px; width: 205px; height: 160px; background: #c8d5b9; border-radius: 6px; padding: 20px 22px; transform: rotate(4deg); box-shadow: 0 10px 30px #081f2226; }
.letter-art-card > span { font-size: 8px; letter-spacing: 2px; font-weight: 600; color: #6b825b; }
.art-line { width: 135px; height: 4px; background: #a8bc94; margin-top: 9px; opacity: .55; border-radius: 2px; }
.art-line-short { width: 80px; margin-top: 20px; }
.art-stamp { position: absolute; right: 17px; bottom: 20px; color: #a8b996; font-size: 38px; font-weight: 300; }
.letter-art-envelope { position: absolute; left: 0; bottom: 0; width: 250px; height: 120px; background: #4c6b45; border-radius: 5px 5px 8px 8px; clip-path: polygon(0 0,50% 52%,100% 0,100% 100%,0 100%); box-shadow: 0 5px 20px #102517; }
.letter-art-envelope::after { content: ""; position: absolute; inset: 0; background: #56764b; clip-path: polygon(0 100%,50% 30%,100% 100%); }
.letter-art-dot { width: 33px; height: 33px; background: #a8c68b; border: 5px solid #789b66; border-radius: 50%; position: absolute; right: -30px; top: 5px; opacity: .8; }
.login-story::after { content: ""; position: absolute; width: 600px; height: 600px; border: 1px solid #2b4933; border-radius: 50%; bottom: -280px; left: -260px; box-shadow: 0 0 0 100px #213d2d, 0 0 0 101px #2b493355; }
.login-form-panel { display: flex; flex-direction: column; justify-content: center; align-items: center; background: #f7f7f0; padding: 70px 60px 30px; }
.login-form-inner { width: 100%; max-width: 350px; margin: auto 0; }
.login-lock { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #dfe8d3; color: #789e62; background: #edf3e5; border-radius: 11px; margin-bottom: 29px; }
.login-lock .icon { width: 20px; height: 20px; }
.login-form-inner .eyebrow { font-size: 10px; letter-spacing: 2px; color: #a1b092; margin-bottom: 10px; }
.login-form-inner h2 { font-size: 26px; font-weight: 600; color: #3b5635; }
.login-form-inner > .muted { font-size: 11px; margin-top: 12px; line-height: 1.9; color: #9aa78d; }
.login-form-inner .stack-form { margin-top: 34px; gap: 23px; }
.login-form-inner .field > label { color: #718463; font-size: 11px; }
.login-form-inner input { background: #fffef8 !important; min-height: 46px !important; }
.login-form-inner .password-field .icon-button { top: 7px; }
.login-form-inner .stack-form > .button { margin-top: 8px; min-height: 46px; }
.login-form-inner > .notice { margin-top: 24px; }
.login-assurance { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 23px; font-size: 9px; color: #a0ae92; }
.login-assurance .icon { width: 13px; height: 13px; }
.login-copyright { margin-top: 60px; color: #b1baa5; font-size: 8px; letter-spacing: .2px; }
.login-mobile-brand { display: none; }
.public-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 46px 24px 30px; }
.public-header .brand { color: #375b3d; }
.public-header .brand-light { color: #7b9371; }
.public-card { margin: auto 0; max-width: 460px; width: 100%; padding: 42px 40px 32px; text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 12px 70px #2e4e2821; }
.public-icon { display: grid; place-items: center; margin: 0 auto 23px; width: 59px; height: 59px; background: #edf4e4; color: #82a46a; border: 1px solid #e0ebd3; border-radius: 19px; }
.public-icon .icon { width: 26px; height: 26px; stroke-width: 1.4; }
.public-card .eyebrow { color: #a2b293; font-size: 8px; letter-spacing: 1.5px; }
.public-card h1 { font-size: 23px; color: #527849; line-height: 1.7; letter-spacing: -.4px; margin-top: 13px; }
.public-card > p { font-size: 12px; line-height: 2; color: #90a37f; margin: 16px 0 25px; }
.public-contact { border-top: 1px solid #e8eede; margin-top: 30px; padding-top: 21px; font-size: 10px; color: #a6b59b; }
.public-contact a { display: block; margin-top: 4px; color: #809f6a; }
.public-done { display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 10px; color: #83a26e; padding: 12px; border-radius: 7px; background: #f1f6e9; }
.public-done .icon { width: 14px; height: 14px; }
.public-footer { font-size: 9px; letter-spacing: .6px; color: #adba9f; margin-top: 35px; }
.error-panel { padding: 55px 30px; text-align: center; margin: 70px auto; max-width: 580px; }
.error-panel h1 { font-size: 26px; margin-top: 15px; }
.error-panel p { font-size: 13px; color: #8ea07f; line-height: 1.9; margin: 18px auto 25px; max-width: 430px; overflow-wrap: anywhere; }
.standalone-main > .error-panel { margin: 10vh auto; }

/* Small screens */
@media (min-width: 1600px) {
  .stats-grid { grid-template-columns: repeat(6,minmax(0,1fr)); }
  .stat-card { padding: 20px; }
  .stat-heading { font-size: 10px; }
  .main-content { padding-top: 43px; }
}
@media (max-width: 1200px) {
  :root { --sidebar-width: 214px; }
  .sidebar { padding-left: 16px; padding-right: 16px; }
  .sidebar-head { margin-left: 7px; margin-right: 0; }
  .brand > span:last-child { font-size: 23px; }
  .brand { gap: 10px; }
  .account-block { margin: 0 -16px; padding: 20px 14px; }
  .account-info span { max-width: 110px; }
  .topbar { padding: 0 28px; }
  .main-content { padding-left: 28px; padding-right: 28px; }
  h1 { font-size: 25px; }
  .dashboard-columns { grid-template-columns: minmax(0,1fr); }
  .dashboard-columns .readiness-panel { display: grid; grid-template-columns: 1fr auto; }
  .dashboard-columns .readiness-panel .panel-heading { grid-column: 1/-1; }
  .dashboard-columns .readiness-panel > .button { align-self: end; width: auto; margin-top: 23px; }
  .dashboard-columns .readiness-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .campaign-workbench { gap: 18px; grid-template-columns: minmax(0,1.1fr) minmax(270px,1fr); }
  .editor-form { padding: 21px; }
  .panel-heading { padding: 21px; }
  .settings-layout { grid-template-columns: minmax(0,1fr); }
  .settings-aside { position: static; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
  .identity-grid { grid-template-columns: 1fr 1.3fr 1.2fr; }
  .identity-grid > div:first-child { grid-column: auto; }
  .import-layout { gap: 30px; }
  .workflow-strip { padding: 22px; gap: 12px; }
  .workflow-strip > div { grid-template-columns: 25px auto; gap: 2px 7px; }
  .dispatch-test, .dispatch-queue { padding: 25px; }
  .login-story { padding-left: 45px; padding-right: 38px; }
}
@media (max-width: 1000px) {
  .page-heading { align-items: flex-start; }
  .page-heading > .heading-actions { padding-top: 5px; }
  .page-heading .heading-actions .save-indicator { display: none; }
  .page-heading p { max-width: 430px; }
  .page-heading h1 { font-size: 23px; }
  .campaign-workbench { grid-template-columns: minmax(0,1fr); }
  .campaign-side { display: grid; grid-template-columns: minmax(0,1fr) minmax(220px,.6fr); align-items: start; }
  .preview-viewport, .preview-empty { min-height: 390px; }
  .preview-viewport iframe { height: 390px; }
  .dispatch-grid { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); }
  .table-toolbar { flex-wrap: wrap; }
  .stats-grid { gap: 12px; }
  .stat-card { padding: 18px; }
  .stat-heading { font-size: 10px; }
  .stat-card p { font-size: 8px; }
  .campaign-stats > div { padding: 0 16px; }
  .import-layout { grid-template-columns: minmax(0,1fr); }
  .import-instructions { max-width: 520px; }
  .login-story h1 { font-size: 32px; }
  .login-form-panel { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 860px) {
  :root { --sidebar-width: 0px; }
  .sidebar { width: 247px; transform: translateX(-100%); transition: transform .2s ease; padding: 30px 21px 0; }
  .sidebar-head { display: flex; justify-content: space-between; align-items: center; margin-right: -8px; }
  .sidebar-close { display: inline-flex !important; color: #a5baa2; }
  .sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-open .sidebar-scrim { display: block !important; position: fixed; inset: 0; border: 0; background: #0e1d1777; z-index: 35; }
  .sidebar-open { overflow: hidden; }
  .account-block { margin: 0 -21px; padding-left: 21px; padding-right: 19px; }
  .account-info span { max-width: 135px; }
  .mobile-menu { display: inline-flex !important; margin-left: -7px; margin-right: -4px; }
  .topbar { height: 65px; }
  .topbar-location { gap: 14px; }
  .main-content { padding-top: 28px; }
  .page-heading h1 { font-size: 26px; }
  .campaign-side { grid-template-columns: minmax(0,1fr) minmax(240px,.7fr); }
  .stat-card p { font-size: 9px; }
  .login-story { padding-left: 33px; padding-right: 25px; }
  .login-story h1 { font-size: 29px; }
  .login-form-panel { padding-left: 32px; padding-right: 32px; }
  .letter-art { transform: scale(.8) rotate(-7deg); transform-origin: left center; margin-left: 0; }
}
@media (max-width: 640px) {
  .topbar { padding: 0 20px; height: 60px; }
  .topbar-brand { font-size: 8px; }
  .topbar-location { font-size: 10px; gap: 11px; }
  .workspace-mark { font-size: 0; gap: 0; }
  .workspace-mark .status-dot { height: 6px; width: 6px; }
  .main-content { padding: 26px 18px 0; }
  .page-heading { flex-direction: column; align-items: stretch; gap: 19px; margin-bottom: 24px; }
  .page-heading h1 { font-size: 25px; letter-spacing: -.7px; }
  .page-heading p { font-size: 11px; max-width: none; }
  .page-heading > .heading-actions { padding-top: 0; align-self: flex-start; }
  .eyebrow { font-size: 9px; letter-spacing: 1.7px; }
  .dashboard-intro { padding: 25px; min-height: 182px; }
  .dashboard-intro h2 { font-size: 21px; }
  .dashboard-intro p { font-size: 9px; position: relative; z-index: 1; }
  .intro-art { position: absolute; right: -40px; top: 18px; opacity: .25; margin-right: 0; }
  .dashboard-intro > div:first-child { z-index: 1; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin-bottom: 22px; }
  .stat-card { padding: 17px 15px; border-radius: 10px; }
  .stat-heading { font-size: 10px; }
  .stat-heading .icon { width: 14px; height: 14px; }
  .stat-number { font-size: 29px; margin-top: 8px; }
  .stat-card p { font-size: 8px; line-height: 1.8; }
  .dashboard-columns { gap: 21px; }
  .dashboard-columns .readiness-panel { display: block; }
  .dashboard-columns .readiness-panel > .button { width: calc(100% - 40px); margin: 0 20px 22px; }
  .dashboard-columns .readiness-checks { grid-template-columns: 1fr; }
  .panel-heading, .dashboard-columns .panel-heading { padding: 20px; }
  .panel-heading h2 { font-size: 15px; }
  .panel-heading p { font-size: 10px; }
  .panel-body { padding: 21px 20px; }
  .panel { border-radius: 12px; }
  .empty-state { padding: 39px 22px 43px; }
  .empty-state h3 { font-size: 13px; }
  .empty-state p { font-size: 10px; }
  .disclosure-panel summary { padding: 19px 20px; gap: 12px; }
  .disclosure-title { font-size: 12px; }
  .disclosure-hint { font-size: 0; gap: 0; }
  .disclosure-hint .icon { width: 14px; height: 14px; }
  .disclosure-body { padding: 24px 20px; }
  .import-layout { gap: 26px; }
  .import-instructions h2 { font-size: 19px; }
  .table-toolbar { padding: 20px; gap: 16px; }
  .table-toolbar h2 { font-size: 15px; }
  .search-form { width: 100%; gap: 8px; flex-wrap: wrap; }
  .search-field { flex: 1; min-width: 140px; }
  .search-field input { width: 100% !important; min-height: 39px !important; }
  .search-form .button { min-height: 39px; }
  .contact-phone-column { display: none; }
  .contact-phone-inline { display: block; margin-top: 4px; color: #718167; font-size: 10px; line-height: 1.8; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .contact-phone-inline > span { color: #97a18b; }
  .contacts-panel table { min-width: 750px; }
  .campaign-table { min-width: 690px; }
  .dashboard-columns .campaign-table { min-width: 435px; }
  th, td { padding-left: 20px; padding-right: 20px; }
  .inline-fields { grid-template-columns: 1fr; }
  .inline-fields > .button { justify-self: start; }
  .workflow-strip { flex-direction: column; align-items: flex-start; gap: 17px; padding: 23px 25px; }
  .workflow-strip > .icon { display: none; }
  .workflow-strip > div { grid-template-columns: 35px auto; gap: 3px 12px; }
  .workflow-strip strong { font-size: 11px; }
  .workflow-strip small { font-size: 10px; }
  .campaign-heading { gap: 15px; }
  .campaign-heading .heading-actions { margin-top: 0; }
  .campaign-workbench { gap: 21px; }
  .campaign-side { display: flex; }
  .editor-form { padding: 21px 20px; }
  .code-editor { min-height: 330px; }
  .field-label-row { gap: 10px; }
  .field-label-row > .text-button { font-size: 10px; }
  .text-version summary span { display: none; }
  .preview-viewport, .preview-empty { min-height: 400px; }
  .preview-viewport iframe { height: 400px; }
  .preview-envelope { padding: 16px 20px; }
  .dispatch-grid { grid-template-columns: minmax(0,1fr); }
  .dispatch-test, .dispatch-queue { padding: 25px 20px; }
  .dispatch-queue { border-left: 0; border-top: 1px solid var(--line); }
  .campaign-stats { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 20px 0 7px; row-gap: 18px; }
  .campaign-stats > div { border-right: 0; padding: 0 16px 9px; }
  .campaign-stats strong { font-size: 25px; }
  .campaign-stats span { font-size: 9px; }
  .recipients-panel table { min-width: 690px; }
  .identity-grid { grid-template-columns: 1fr; gap: 18px; }
  .settings-aside { display: flex; }
  .rate-fields { grid-template-columns: 1fr; gap: 18px; }
  .form-grid-two { grid-template-columns: 1fr; gap: 21px; }
  .settings-form .form-actions > .button { width: 100%; }
  .activity-list { padding: 0 20px; }
  .activity-item { gap: 12px; flex-wrap: wrap; padding: 21px 0; }
  .activity-content { flex-basis: calc(100% - 46px); }
  .activity-time { margin-left: 46px; margin-top: -7px; font-size: 9px; }
  .page-footer { margin-top: 30px; font-size: 8px; gap: 10px; }
  .page-footer span:first-child { font-size: 8px; letter-spacing: 1px; }
  .login-layout { display: block; }
  .login-story { display: none; }
  .login-form-panel { min-height: 100vh; padding: 40px 30px 25px; }
  .login-form-inner { max-width: 370px; }
  .login-mobile-brand { display: block; margin: 0 0 46px; }
  .login-mobile-brand .brand { color: #426638; }
  .login-mobile-brand .brand-light { color: #8ea47e; }
  .login-lock { display: none; }
  .login-form-inner h2 { font-size: 25px; }
  .login-form-inner .stack-form { margin-top: 29px; }
  .login-copyright { margin-top: 45px; font-size: 8px; }
  .public-page { padding: 32px 20px 22px; }
  .public-header { margin-bottom: 40px; }
  .public-card { padding: 35px 23px 26px; }
  .public-card h1 { font-size: 21px; }
  .public-card > p { font-size: 11px; }
  .public-footer { font-size: 8px; text-align: center; }
  .standalone-main > .error-panel { margin: 13vh 20px; }
  .notice { padding: 12px; font-size: 11px; }
  .toast { bottom: 18px; font-size: 11px; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
