@font-face {font-family:Inter;src:url('fonts/inter.woff2') format('woff2');font-weight:100 900;font-display:swap;}
@font-face {font-family:Poppins;src:url('fonts/poppins.woff2') format('woff2');font-weight:600;font-display:swap;}
:root {font-family:Inter,system-ui,sans-serif;font-size:14px;line-height:1.55;color:var(--ink);background:var(--paper);--ink:#101828;--paper:#faf9f7;--surface:#fff;--subtle:#f1f5f9;--muted:#53647f;--border:#dce5f1;--primary:#103459;--primary-hover:#0a2949;--primary-text:#fff;--selected:#003f79;--selected-text:#fff;color-scheme:light;}
:root.dark {--ink:#e5eaf2;--paper:#090f1c;--surface:#101827;--subtle:#1f2b3d;--muted:#a6b4c9;--border:#29394f;--primary:#a8c4e8;--primary-hover:#c2d8f2;--primary-text:#0b203a;--selected:#173f6b;--selected-text:#fff;color-scheme:dark;}

* {
  box-sizing:border-box;
}
body {
  margin:0;
  display:flex;
  min-height:100vh;
}
a {
  color:inherit;
  text-decoration:none;
}
button,input,textarea,select {
  font:inherit;
}
button,a,input,textarea,select {
  outline-offset:4px;
}
button {
  cursor:pointer;
}
button:disabled {
  opacity:.5;
  cursor:not-allowed;
}
.sidebar {
  width:248px;
  flex-shrink:0;
  position:sticky;
  top:0;
  height:100vh;
  background:var(--paper);
  display:flex;
  flex-direction:column;
  padding:24px 18px;
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font-size:20px;
  font-weight:650;
  padding:4px 10px 28px;
}
.brand-mark {
  width:37px;
  height:37px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  border-radius:0;
}
.brand-mark.large {
  height:56px;
  width:56px;
}
.brand-sub {
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:450;
  margin-top:-3px;
}
nav {
  padding-top:24px;
  border-top:1px solid var(--border);
}
.nav-label {
  display:block;
  font-size:10px;
  font-weight:600;
  letter-spacing:1.6px;
  color:var(--muted);
  padding:0 14px 12px;
}
.nav-link {
  display:flex;
  align-items:center;
  gap:13px;
  padding:11px 14px;
  border-radius:8px;
  margin-bottom:5px;
  color:var(--muted);
  font-weight:500;
}
.nav-link span {
  font-size:21px;
  line-height:1;
}
.nav-link:hover {
  background:var(--subtle);
}
.nav-link.active {
  background:var(--subtle);
  color:var(--ink);
}
.account-menu {
  margin-top:auto;
  position:relative;
}
.account-trigger {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:14px 10px;
  border:none;
  background:none;
  border-top:1px solid var(--border);
  cursor:pointer;
  border-radius:0;
  text-align:left;
  transition:background .15s;
}
.account-trigger:hover {
  background:var(--subtle);
}
.account-info {
  flex:1;
  min-width:0;
}
.account-info strong {
  display:block;
  font-size:12px;
  overflow-wrap:anywhere;
}
.account-info small {
  display:block;
  color:var(--muted);
  font-size:10px;
}
.chevron-icon {
  color:var(--muted);
  flex-shrink:0;
  transition:transform .2s;
}
.account-menu.open .chevron-icon {
  transform:rotate(180deg);
}
.avatar {
  background:var(--subtle);
  width:32px;
  height:32px;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex-shrink:0;
  font-size:12px;
  font-weight:600;
}
.dropup-panel {
  display:none;
  position:absolute;
  bottom:100%;
  left:8px;
  right:8px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  box-shadow:0 -4px 20px rgba(0,0,0,0.08);
  padding:6px;
  margin-bottom:6px;
  z-index:100;
}
.account-menu.open .dropup-panel {
  display:block;
}
.dropup-user {
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 8px;
}
.dropup-user strong {
  display:block;
  font-size:12px;
}
.dropup-user small {
  display:block;
  color:var(--muted);
  font-size:10px;
}
.dropup-divider {
  height:1px;
  background:var(--border);
  margin:4px 0;
}
.dropup-form {
  margin:0;
}
.dropup-item {
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:10px 10px;
  border:none;
  background:none;
  border-radius:6px;
  font-size:13px;
  font-weight:500;
  color:var(--muted);
  cursor:pointer;
  text-align:left;
}
.dropup-item:hover {
  background:var(--paper);
  color:#dc2626;
}
.main {
  min-width:0;
  flex:1;
  background:var(--surface);
  margin:10px 10px 0 0;
  border:1px solid var(--border);
  border-radius:12px 12px 0 0;
  min-height:calc(100vh - 10px);
}
.main.public {
  margin:0;
  border:0;
  background:var(--paper);
  display:grid;
  place-items:center;
  min-height:100vh;
}
.topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 34px;
  border-bottom:1px solid var(--border);
  font-weight:600;
  font-size:15px;
}
.identity-tag {
  color:var(--muted);
  font-size:11px;
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:400;
}
.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#74947b;
}
.content {
  padding:40px 36px;
  max-width:1230px;
  margin:0 auto;
  width:100%;
}
.eyebrow {
  font-size:10px;
  letter-spacing:1.7px;
  color:var(--muted);
  font-weight:650;
  margin:0 0 10px;
}
h1 {
  font-size:27px;
  line-height:1.25;
  letter-spacing:-.6px;
  font-weight:620;
  margin:0 0 10px;
}
h2 {
  font-size:15px;
  font-weight:600;
  margin:0 0 8px;
}
h3 {
  font-size:14px;
  font-weight:550;
  margin:0;
}
p {
  margin:0 0 14px;
}
.muted {
  color:var(--muted);
}
.small {
  font-size:12px;
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:25px;
  margin-bottom:30px;
  min-height:76px;
}
.page-heading p:last-child {
  margin:0;
}
.actions {
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}
.actions form {
  margin:0;
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  background:var(--primary);
  color:var(--primary-text);
  font-size:12px;
  font-weight:550;
  padding:10px 15px;
  border:1px solid var(--primary);
  border-radius:7px;
  white-space:nowrap;
  line-height:1.5;
}
.button:hover {
  background:var(--primary-hover);
}
.button.secondary {
  background:var(--surface);
  color:var(--ink);
  border-color:var(--border);
}
.button.secondary:hover {
  background:var(--paper);
}
.button.wide {
  width:100%;
}
.link {
  font-size:12px;
  color:var(--primary);
  border:0;
  background:none;
  padding:0;
  cursor:pointer;
  font-weight:500;
}
.link:hover {
  text-decoration:underline;
}
.link.danger {
  color:#ac4141;
}
.summary-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:35px;
}
.setting-card {
  border:1px solid var(--border);
  border-radius:10px;
  padding:22px;
  display:flex;
  flex-direction:column;
}
.card-title {
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:flex-start;
  margin-bottom:14px;
}
.setting-card .card-title {
  justify-content:space-between;
}
.badge {
  font-size:10px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid transparent;
  border-radius:5px;
  padding:3px 7px;
  line-height:1.4;
}
.badge.purple {
  color:#795491;
  background:#f5eef9;
  border-color:#ece2f2;
}
.badge.green {
  color:#397652;
  background:#edf7f0;
  border-color:#dfede4;
}
.badge.neutral {
  color:var(--muted);
  background:var(--paper);
  border-color:var(--border);
}
.badge strong {
  font-size:12px;
}
.excerpt {
  font-size:12px;
  color:var(--muted);
  white-space:pre-line;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  margin:0 0 20px;
  min-height:38px;
}
.card-footer {
  margin-top:auto;
  display:flex;
  justify-content:space-between;
}
.section-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:14px;
}
.section-title h2 {
  margin:0;
}
.count {
  font-size:11px;
  font-weight:400;
  background:var(--paper);
  padding:2px 7px;
  border-radius:4px;
  margin-left:7px;
  color:var(--muted);
}
.option-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:9px;
  padding:19px 22px;
  margin-bottom:12px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:center;
}
.option-card .card-title {
  margin-bottom:10px;
}
.option-label {
  display:flex;
  gap:12px;
  align-items:center;
  overflow-wrap:anywhere;
}
.option-info {
  min-width:0;
}
.empty {
  text-align:center;
  padding:45px 20px;
  border:1px dashed var(--border);
  border-radius:9px;
  background:var(--surface);
}
.empty-icon {
  display:block;
  font-size:30px;
  color:#aaa;
  margin-bottom:10px;
}
.empty .button {
  margin-top:8px;
}
.notice {
  padding:13px 16px;
  background:#f8f5ed;
  border:1px solid #e9e1cd;
  color:#706249;
  border-radius:7px;
  font-size:12px;
  margin-bottom:20px;
}
.notice.success {
  background:#eff8f1;
  border-color:#dbeade;
  color:#426349;
}
.notice.error {
  background:#fff2f2;
  border-color:#f2d8d8;
  color:#9c3434;
}
.form-section {
  display:grid;
  grid-template-columns:minmax(190px,1fr) minmax(240px,1.25fr);
  gap:50px;
  padding:28px 0;
  border-top:1px solid var(--border);
}
.form-section>.fields {
  min-width:0;
}
.form-section p.muted {
  font-size:12px;
  max-width:270px;
}
.fields label,.preview-input label {
  display:block;
  font-size:12px;
  font-weight:600;
  margin:0 0 7px;
}
input:not([type=checkbox]):not([type=hidden]),textarea,select {
  border:1px solid var(--border);
  border-radius:6px;
  padding:10px 11px;
  width:100%;
  background:var(--surface);
  color:var(--ink);
}
input:not([type=checkbox]):not([type=hidden]) {
  height:40px;
}
input+label {
  margin-top:17px!important;
}
textarea {
  resize:vertical;
  min-height:90px;
  line-height:1.6;
}
select {
  margin-bottom:23px;
}
.check {
  display:flex!important;
  align-items:center;
  gap:9px;
  font-weight:500!important;
}
.check input {
  accent-color:var(--ink);
  width:15px;
  height:15px;
}
.hint {
  font-size:11px;
  color:var(--muted);
  margin:7px 0 18px;
}
.code,pre,.mono {
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:12px;
}
pre {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  background:var(--subtle);
  border-radius:6px;
  padding:15px;
  max-width:100%;
  overflow:auto;
  line-height:1.7;
}
details {
  margin-top:10px;
}
summary {
  font-size:12px;
  cursor:pointer;
  color:var(--primary);
}
.form-actions {
  display:flex;
  justify-content:flex-end;
  gap:12px;
  padding-top:24px;
  border-top:1px solid var(--border);
}
.remove-section {
  margin-top:30px;
}
.login-card {
  max-width:440px;
  margin:6vh auto;
  text-align:center;
  padding:40px 30px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:none;
}
.login-card .brand-mark {
  margin-bottom:25px;
}
.login-card h1 {
  font-size:30px;
}
.login-card .muted {
  line-height:1.7;
  margin-bottom:25px;
}
.login-card .small {
  margin:20px 0 0;
}
.login-card .notice {
  margin-top:20px;
}
.preview-input {
  max-width:680px;
}
.preview-input .actions {
  flex-wrap:nowrap;
}
.preview-result {
  border:1px solid var(--border);
  padding:22px;
  border-radius:9px;
  margin-top:25px;
}
.preview-result pre {
  margin-bottom:0;
}
.preview-card {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:10px;
  padding:24px;
  max-width:860px;
  margin-bottom:24px;
}
.preview-form {
  margin:0;
}
.preview-inputs-row {
  display:flex;
  gap:14px;
  align-items:flex-end;
}
.preview-field {
  display:flex;
  flex-direction:column;
}
.preview-field.phone-field {
  flex:1;
  min-width:190px;
}
.preview-field.message-field {
  flex:1.6;
  min-width:220px;
}
.preview-field label {
  display:block;
  font-size:12px;
  font-weight:600;
  margin:0 0 7px;
  color:var(--ink);
}
.preview-button-wrap {
  flex-shrink:0;
}
.preview-btn {
  height:40px;
  padding:0 22px;
  font-size:13px;
}
.preview-switch-row {
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--border);
}
.toggle-switch {
  position:relative;
  display:inline-block;
  width:38px;
  height:22px;
  flex-shrink:0;
  cursor:pointer;
}
.toggle-switch input {
  opacity:0;
  width:0;
  height:0;
  position:absolute;
  margin:0;
}
.toggle-slider {
  position:absolute;
  cursor:pointer;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background-color:var(--border);
  transition:.2s ease;
  border-radius:22px;
}
.toggle-slider:before {
  position:absolute;
  content:"";
  height:16px;
  width:16px;
  left:3px;
  bottom:3px;
  background-color:var(--primary-text);
  transition:.2s ease;
  border-radius:50%;
  box-shadow:0 1px 3px rgba(0,0,0,0.18);
}
.toggle-switch input:checked + .toggle-slider {
  background-color:var(--ink);
}
.toggle-switch input:focus-visible + .toggle-slider {
  outline:2px solid var(--ink);
  outline-offset:2px;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform:translateX(16px);
}
.toggle-label-wrap {
  display:flex;
  flex-direction:column;
}
.toggle-title {
  font-size:13px;
  font-weight:600;
  color:var(--ink);
  cursor:pointer;
  margin:0!important;
}
.toggle-desc {
  font-size:11px;
  color:var(--muted);
  margin-top:2px;
}
.table-wrap {
  overflow:auto;
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:12px;
}
th {
  font-weight:500;
  color:var(--muted);
  background:var(--surface);
}
th,td {
  padding:15px;
  border-bottom:1px solid var(--border);
}
.pagination {
  display:flex;
  align-items:center;
  gap:20px;
  justify-content:flex-end;
  margin-top:20px;
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
  gap:16px;
  margin-bottom:30px;
}
.stat-card {
  border:1px solid var(--border);
  border-radius:10px;
  padding:20px;
  background:var(--surface);
  display:flex;
  flex-direction:column;
}
.stat-card .stat-label {
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.8px;
  color:var(--muted);
  margin-bottom:8px;
}
.stat-card .stat-value {
  font-size:28px;
  font-weight:700;
  color:var(--ink);
  line-height:1.1;
}
.stat-card .stat-subtext {
  font-size:12px;
  color:var(--muted);
  margin-top:6px;
}
.analytics-grid {
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:20px;
  margin-bottom:30px;
}
.chart-card {
  border:1px solid var(--border);
  border-radius:10px;
  padding:22px;
  background:var(--surface);
}
.chart-card h2 {
  font-size:16px;
}
.breakdown-list {
  list-style:none;
  padding:0;
  margin:0;
}
.breakdown-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--border);
}
.breakdown-row:last-child {
  border-bottom:none;
}
@media(max-width:960px) {
  .analytics-grid {
    grid-template-columns:1fr;
  }
}
/* Analytics page classes (CSP-safe, no inline styles) */
.page-title {
  font-size:24px;
  font-weight:600;
  color:var(--ink);
  margin:0 0 4px 0;
}
.stat-header {
  display:flex;
  align-items:center;
  margin-bottom:12px;
}
.stat-icon {
  border-radius:8px;
  padding:8px;
  margin-right:12px;
  display:inline-flex;
}
.stat-icon--indigo { background:#e0e7ff; color:#4f46e5; }
.stat-icon--green  { background:#dcfce7; color:#16a34a; }
.stat-icon--amber  { background:#fef3c7; color:#d97706; }
.stat-icon--purple { background:#f3e8ff; color:#9333ea; }
.stat-card .stat-label {
  font-size:13px;
  font-weight:500;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:0.05em;
}
.analytics-layout {
  display:grid;
  gap:24px;
}
.chart-section {
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:24px;
  box-shadow:0 1px 2px rgba(0,0,0,0.05);
}
.chart-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:24px;
}
.chart-title {
  font-size:16px;
  font-weight:600;
  color:var(--ink);
  margin:0 0 4px 0;
}
.chart-subtitle {
  font-size:13px;
  color:var(--muted);
  margin:0;
}
.chart-subtitle--spaced {
  margin-bottom:24px;
}
.chart-container {
  height:280px;
  width:100%;
}
.chart-container--tall {
  height:300px;
}
.chart-row {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(400px, 1fr));
  gap:24px;
}
/* Date range selector */
.analytics-toolbar {
  display:flex;
  align-items:center;
  margin-bottom:24px;
}
.range-selector {
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  background:var(--subtle);
  border-radius:8px;
  padding:3px;
}
.range-btn {
  padding:6px 12px;
  font-size:13px;
  font-weight:500;
  color:var(--muted);
  text-decoration:none;
  border-radius:6px;
  transition:all 0.15s ease;
  white-space:nowrap;
}
.range-btn:hover {
  color:var(--ink);
  background:var(--border);
}
.range-btn--active {
  background:var(--surface);
  color:var(--ink);
  box-shadow:0 1px 2px rgba(0,0,0,0.06);
}
/* Preview page notice and result styles (CSP-safe) */
.notice--warning {
  margin-top:20px;
  border-left:4px solid #f59e0b;
  background:#fffbeb;
  color:#92400e;
}
.notice-link {
  text-decoration:underline;
  font-weight:600;
  color:inherit;
}
.preview-result-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
}
[hidden] {
  display:none!important;
}
@media(max-width:1100px) {
  .page-heading {
    align-items:flex-start;
    flex-direction:column;
    gap:18px;
  }
  .content {
    padding:28px;
  }
  .sidebar {
    width:218px;
  }
  .form-section {
    gap:28px;
  }
}
@media(max-width:760px) {
  body {
    display:block;
  }
  .sidebar {
    width:auto;
    height:auto;
    position:relative;
    padding:15px;
  }
  .brand {
    padding-bottom:15px;
  }
  nav {
    display:flex;
    flex-wrap:wrap;
    padding-top:10px;
    gap:4px;
  }
  .nav-label,.account-menu {
    display:none;
  }
  .nav-link {
    font-size:12px;
    padding:8px;
  }
  .main {
    margin:0;
    border-radius:0;
  }
  .topbar {
    padding:16px 20px;
  }
  .content {
    padding:24px 20px;
  }
  .summary-grid {
    grid-template-columns:1fr;
    gap:12px;
  }
  .form-section {
    grid-template-columns:1fr;
    gap:12px;
  }
  .option-card {
    padding:17px 14px;
  }
  .option-label {
    align-items:flex-start;
    flex-direction:column;
    gap:6px;
  }
  .option-card .actions {
    gap:10px;
  }
  .login-card {
    margin:5vh auto;
  }
  .identity-tag {
    font-size:10px;
  }
  h1 {
    font-size:25px;
  }
  .preview-inputs-row {
    flex-direction:column;
    align-items:stretch;
  }
  .preview-button-wrap .button {
    width:100%;
  }
}
/* ZDES shell and interaction patterns. */
* {scrollbar-width:thin;}
.sidebar {width:264px;background:var(--surface);border-right:1px solid var(--border);padding:24px 16px;height:100dvh;}
.brand {font-size:18px;padding:4px 8px 28px;color:var(--primary);}
.brand-sub {font-size:11px;margin-top:4px;color:var(--muted);}
.nav-link {min-height:44px;border-radius:8px;color:var(--muted);}
.nav-link.active {background:var(--selected);color:var(--selected-text);}
.main {margin:0;border:0;border-radius:0;background:var(--paper);min-height:100dvh;}
.topbar {min-height:72px;background:var(--surface);padding:14px 32px;border-bottom:1px solid var(--border);font-size:14px;font-weight:400;}
.header-actions {display:flex;gap:8px;align-items:center;}
.content {max-width:1400px;padding:32px;}
.button {background:var(--primary);color:var(--primary-text);border-radius:6px;min-height:44px;font-size:14px;white-space:normal;text-align:center;}
.button.secondary {background:var(--surface);color:var(--ink);border-color:var(--border);}
.button.secondary:hover {background:var(--subtle);}
.link {font-size:14px;min-height:44px;display:inline-flex;align-items:center;}
.setting-card,.option-card,.form-section,.preview-result,.empty {background:var(--surface);border-radius:8px;}
.setting-card {padding:24px;}
h1 {font-size:30px;font-weight:650;letter-spacing:-.7px;}
h2 {font-size:18px;} h3 {font-size:15px;}
.excerpt,.form-section p.muted,.fields label,.hint,.preview-input label {font-size:14px;}
.badge {font-size:12px;border-radius:5px;}
.badge.purple {color:var(--primary);background:var(--subtle);border-color:var(--border);}
.form-section {padding:24px;margin-bottom:16px;border:1px solid var(--border);gap:32px;}
.form-actions {padding:20px 0;}
input:not([type=checkbox]):not([type=hidden]),select {min-height:44px;height:auto;}
.check {min-height:44px;}.check input {accent-color:var(--primary);width:18px;height:18px;}
input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible {outline:2px solid var(--primary);outline-offset:3px;}
.icon-button {width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--muted);font-size:24px;}
.icon-button:hover {background:var(--subtle);}
.table-wrap {background:var(--surface);border:1px solid var(--border);border-radius:8px;}
th,td {font-size:14px;padding:16px;}
th {background:var(--subtle);color:var(--muted);}
.stat-card .stat-label {text-transform:none;letter-spacing:0;}
.stat-icon--indigo,.stat-icon--purple {background:var(--subtle);color:var(--primary);}
.chart-row {grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));}
.range-btn {min-height:44px;display:flex;align-items:center;}
.range-btn--active {background:var(--surface);color:var(--primary);}
.login-layout {display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:70px;max-width:1120px;margin:40px auto;}
.wordmark {font-family:Poppins,Inter,sans-serif;font-size:22px;font-weight:600;color:var(--primary);margin-bottom:48px;}
.login-intro h1 {font-size:42px;line-height:1.15;letter-spacing:-1px;margin-bottom:20px;}
.login-intro>.muted {font-size:16px;max-width:440px;}
.login-features {border-top:1px solid var(--border);margin-top:28px;padding-top:24px;}
.login-features p {margin-bottom:18px;}.login-features span {display:block;color:var(--muted);font-size:14px;margin-top:4px;}
.login-card {width:100%;max-width:none;border-radius:8px;box-shadow:none;text-align:left;padding:32px;}
.login-card .muted {margin-bottom:24px;}.login-card .small {margin-top:24px;margin-bottom:0;}
.confirmation-dialog {width:min(480px,calc(100% - 32px));border:1px solid var(--border);border-radius:8px;padding:24px;color:var(--ink);background:var(--surface);}
.confirmation-dialog .actions {justify-content:flex-end;margin-top:24px;}
dialog::backdrop {background:rgb(15 23 42 / 45%);}
.mobile-only {display:none;}
.skip-link {position:fixed;left:16px;top:-100px;z-index:200;background:var(--surface);padding:12px;}.skip-link:focus {top:12px;}
.navigation-dialog {padding:0;border:0;background:var(--surface);color:var(--ink);height:100dvh;max-height:100dvh;width:min(320px,90vw);max-width:90vw;margin:0;border-right:1px solid var(--border);}
.navigation-dialog .sidebar {display:flex;width:100%;height:100dvh;border:0;padding-top:64px;position:static;}
.close-navigation {position:absolute;right:8px;top:8px;}
.navigation-dialog nav {display:block;}.navigation-dialog .nav-label {display:block;}.navigation-dialog .account-menu {display:block;}
@media(max-width:1023px){body{display:block;}body>.sidebar{display:none;}.mobile-only{display:inline-flex;}.topbar{padding:12px 16px;gap:8px;}.topbar>span{flex:1;}.content{padding:24px 16px;}.login-layout{grid-template-columns:1fr;gap:12px;max-width:600px;margin:8px auto;}.login-intro h1{font-size:34px;}.wordmark{margin-bottom:28px;}.login-card{margin:16px auto;}.page-heading{align-items:flex-start;flex-direction:column;}.form-section{grid-template-columns:1fr;gap:16px;}.account-menu{display:block;}.nav-link{font-size:14px;padding:12px;}}
@media(max-width:600px){.summary-grid{grid-template-columns:1fr;}.option-card{align-items:flex-start;flex-direction:column;gap:8px;}.option-card .actions{width:100%;justify-content:flex-end;}.form-section{padding:20px;}.card-title{flex-wrap:wrap;}.login-card{padding:24px;}.stat-card{min-width:0;}.preview-field.phone-field,.preview-field.message-field{min-width:0;}.chart-section{padding:16px;}.header-actions{gap:0;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
.dark .link.danger {color:#fda4af;}
.dark .notice.success,.dark .badge.green {background:#123329;color:#a5e4c0;border-color:#29563e;}
.dark .notice.error {background:#391e29;color:#fecdd3;border-color:#633246;}
.dark .notice,.dark .notice--warning {background:#382e19;color:#f5d68a;border-color:#5b4927;}
