@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/source-sans-3:vf@5.2.8/latin-wght-normal.woff2") format("woff2");
}

:root {
  --ink: #080838;
  --ink-2: #12124a;
  --paper: #f5f6f8;
  --card: #ffffff;
  --line: #e8ebf1;
  --text: #12203a;
  --muted: #4f586c;
  --accent: #f86028;
  --accent-2: #d94c16;
  --info: #f86028;
  --good: #16a34a;
  --warn: #d97706;
  --bad: #ef4444;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.05);
  --sidebar: 248px;
  --radius: 12px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
}
a { color: var(--accent-2); text-decoration: none; }
.muted { color: var(--muted); }
code { background: #f1f5f9; padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input:not([type="color"]), .inline-form select { flex: 1 1 140px; min-width: 0; border: 1px solid #d7dee8; border-radius: 10px; padding: 9px 12px; background: #fff; }
.inline-form input[type="number"] { flex: 0 1 110px; }
.list-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--line); }
.list-row form, table.data td form { display: inline-flex; flex: 0 0 auto; margin: 0; }
table.data td form + form { margin-left: 6px; }
.list-row > span { min-width: 0; flex: 1 1 160px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
a:hover { color: var(--info); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { letter-spacing: -0.02em; }
h3 { margin: 0 0 12px; font-size: 16px; }

html, body { height: 100%; }
.app-shell { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.sidebar {
  width: var(--sidebar);
  flex: 0 0 var(--sidebar);
  background: #f3f5f9;
  color: #475569;
  padding: 14px 10px 10px;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e6ebf2;
}
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 12px; flex: 0 0 auto; min-width: 0; max-width: 100%; }
.brand-name { min-width: 0; }
.brand-name strong, .brand-name span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-name strong { color: var(--ink); font-size: 14px; letter-spacing: 0; }
.brand-name span { color: #8b95a8; font-size: 12px; }
.nav-find {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  margin: 0 4px 8px; padding: 0 10px; background: #fff;
  border: 1px solid #e4e9f1; border-radius: 10px; color: #94a3b8;
}
.nav-find input {
  width: 100%; border: 0; background: transparent; padding: 8px 0; outline: none; color: var(--text); min-width: 0;
}
.nav-find:focus-within { border-color: #f3c3b0; box-shadow: 0 0 0 3px rgba(248, 96, 40, 0.12); }
.side-nav { flex: 1 1 auto; min-height: 0; overflow: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #d5dbe6 transparent; }
.side-nav::-webkit-scrollbar { width: 8px; }
.side-nav::-webkit-scrollbar-thumb { background: #d5dbe6; border-radius: 99px; }
.nav-empty { margin: 12px 10px; color: var(--muted); font-size: 13px; }
.nav-group.is-off, .side-link.is-off, .nav-empty[hidden] { display: none; }
.brand-logo { height: 32px; width: auto; max-width: 100%; display: block; object-fit: contain; object-position: left center; image-rendering: auto; }
.auth-copy .brand-logo { height: 48px; width: auto; max-width: 168px; align-self: flex-start; object-fit: contain; background: #fff; border-radius: 12px; padding: 10px 14px; box-sizing: content-box; }
.auth-card .brand-logo { height: 42px; width: auto; max-width: 156px; margin: 0 0 22px; background: transparent; border-radius: 0; padding: 0; }
.nav-group { margin: 0 0 2px; }
.nav-label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%;
  color: #8b95a8; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; margin: 4px 0 2px; padding: 8px 10px; font-weight: 700;
  background: transparent; border: 0; border-radius: 9px; cursor: pointer; text-align: left;
  font-family: inherit; line-height: 1.2;
}
.nav-label:hover { background: rgba(255, 255, 255, 0.7); color: #64748b; }
.nav-label span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-chevron { font-size: 12px; color: #94a3b8; transition: transform 0.18s ease; flex: 0 0 auto; }
.nav-group.is-open > .nav-label .nav-chevron { transform: rotate(180deg); }
.nav-group.is-current > .nav-label { color: var(--accent-2); }
.nav-items { display: grid; gap: 1px; padding: 0 0 4px; }
.nav-items[hidden] { display: none; }
.nav-group:first-of-type .nav-label { margin-top: 0; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  color: #334155; border-radius: 9px; padding: 8px 10px; margin-bottom: 2px; font-weight: 600;
}
.side-link i { width: 18px; text-align: center; color: #64748b; font-size: 16px; }
.side-link:hover { background: rgba(255, 255, 255, 0.8); color: var(--ink); }
.side-link.active { background: #fff; color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
.side-link.active i { color: var(--accent-2); }
.sidebar-user {
  margin-top: auto; padding: 12px; border-top: 1px solid #eef2f7;
  display: flex; gap: 10px; align-items: center;
}
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #fff1eb; color: var(--accent-2);
  display: grid; place-items: center; font-weight: 700; flex: 0 0 34px;
}
.sidebar-user > div:last-child { min-width: 0; }
.sidebar-user strong, .sidebar-user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { color: #0f172a; font-size: 14px; }
.sidebar-user span { color: #94a3b8; font-size: 12px; }

.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.topbar {
  display: flex; justify-content: flex-end; gap: 8px; align-items: center;
  padding: 12px 22px; background: #fff;
  position: relative; z-index: 25; flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
}
.search-form { position: relative; display: flex; flex: 1 1 160px; max-width: 420px; min-width: 0; align-items: center; margin-right: auto; }
.search-form i { position: absolute; left: 12px; color: #94a3b8; pointer-events: none; }
.search-form input {
  width: 100%; min-width: 0; border: 1px solid #e7edf5; background: #f7f8fb; border-radius: 999px; padding: 8px 14px 8px 36px;
}
.search-form input:focus { outline: none; background: #fff; border-color: #f3c3b0; box-shadow: 0 0 0 3px rgba(248, 96, 40, 0.12); }
.top-actions { display: flex; gap: 8px; align-items: center; flex: 0 0 auto; }
.icon-btn { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 999px; position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; min-width: 0; }
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip:hover { color: var(--accent-2); }
.content { padding: 18px 22px 32px; flex: 1; min-height: 0; overflow: auto; }

.page-header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 16px; }
.page-header h1 { margin: 0; font-size: 24px; font-weight: 700; overflow-wrap: anywhere; }
.page-header p { margin: 4px 0 0; }
.page-header > div:last-child:not(:only-child),
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; max-width: 100%;
}
.card:has(table.data) { overflow-x: auto; }
.chart-box { position: relative; height: 260px; }
.chart-box canvas { display: block; width: 100% !important; height: 100% !important; }
.grid-4, .grid-3, .grid-2, .stat-grid { display: grid; gap: 14px; }
.grid-4, .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
.role-layout { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 14px; align-items: start; }
.backup-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 14px; align-items: start; }
.backup-side { display: grid; gap: 14px; align-content: start; }
.backup-actions { display: flex; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.backup-actions form { margin: 0; }
.cron-key { margin: 0 0 10px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.lang-note { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; }
.lang-code, .cur-rate { width: 88px; }
.cur-symbol { width: 110px; }
.addon-upload { display: flex; gap: 10px; align-items: center; justify-content: center; margin-bottom: 18px; }
.addon-upload input[type="file"] { width: min(640px, 100%); }
.addon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.addon-card { display: grid; grid-template-columns: 88px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.addon-card img, .addon-thumb { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; background: #f1f5f9; display: grid; place-items: center; color: var(--muted); font-size: 28px; }
.addon-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.addon-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.addon-ver { margin-top: 6px; font-size: 12px; color: var(--muted); }
.addon-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.addon-actions form { margin: 0; }
.cf-layout { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 14px; align-items: start; }
.cf-layout .form-actions { display: flex; justify-content: flex-end; }
.cf-col { display: flex; align-items: center; gap: 8px; }
.cf-col span { color: var(--muted); font-weight: 650; }
.field .cf-col input { width: 90px; }
.cf-group { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.cf-group summary { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-weight: 700; cursor: pointer; list-style: none; }
.cf-group summary::-webkit-details-marker { display: none; }
.cf-group summary .bi-dash { display: none; }
.cf-group[open] summary .bi-plus { display: none; }
.cf-group[open] summary .bi-dash { display: inline; }
.cf-item { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.cf-item i.bi-arrows-move { color: var(--muted); }
.cf-actions { margin-left: auto; display: flex; gap: 6px; }
.cf-actions form { margin: 0; }
#admission-settings[hidden], #admission-amount[hidden] { display: none; }
.admission-desk { display: block; }
.admission-shell { padding: 0; overflow: hidden; }
.admission-shell > h1 { margin: 0; padding: 16px 18px 12px; font-size: 22px; border-bottom: 1px solid var(--line); }
.admission-desk .desk-nav { position: static; max-height: none; display: flex; gap: 0; padding: 0 8px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; }
.admission-desk .desk-link { width: auto; border-radius: 0; background: transparent; color: #334155; border-bottom: 3px solid transparent; padding: 12px 16px; }
.admission-desk .desk-link:hover { background: transparent; color: #0f172a; }
.admission-desk .desk-link.active { background: transparent; color: #0f172a; border-bottom-color: #3c8dbc; }
.admission-shell .desk-body { padding: 16px 18px 18px; }
.admission-line { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 16px; }
.admission-line > span, .admission-line > label { font-weight: 650; }
.admission-line input[type="text"], .admission-line input:not([type="checkbox"]):not([type="file"]) { width: 100%; }
.admission-upload { display: flex; align-items: stretch; gap: 10px; }
.admission-drop { position: relative; flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d7dee8; border-radius: 6px; color: #64748b; cursor: pointer; background: #fff; }
.admission-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.admission-download { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border: 0; border-radius: 8px; background: #3c8dbc; color: #fff; font-size: 18px; }
.admission-download:disabled { opacity: 0.55; }
.admission-editor { margin-top: 8px; }
.admission-editor label { display: block; font-weight: 650; margin-bottom: 8px; }
.admission-form .form-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
#admission-fields h4 { margin: 0 0 12px; }
.filetype-form h4 { margin: 8px 0 8px; font-size: 18px; }
.filetype-form h4:first-of-type { margin-top: 0; }
.filetype-form hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 16px; }
.filetype-form .field { margin-bottom: 14px; }
.filetype-form .field textarea,
.filetype-form .field input { width: 100%; }
.filetype-form .form-actions { display: flex; justify-content: flex-end; margin-top: 8px; }
.profile-edit-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.profile-edit-row > span { font-weight: 700; min-width: 200px; }
#profile-fields[hidden] { display: none; }
#profile-fields h3 { margin: 16px 0 12px; }
.role-layout .form-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
.role-actions { display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.role-actions form { margin: 0; }
.text-right { text-align: right; }
.perm-table .perm-check { text-align: center; width: 72px; }
.perm-table .perm-module { font-weight: 700; text-align: left; white-space: nowrap; }
.grid-3, .grid-4 { align-items: start; }
.content > .card, .content > form.card, .content > .grid-2, .content > .grid-3 { margin-bottom: 14px; }
.stack { display: grid; gap: 14px; }

.kpi { display: flex; gap: 12px; align-items: flex-start; min-height: 92px; }
.kpi .icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 40px;
  background: #fff1eb; color: var(--accent-2); font-size: 18px;
}
.kpi .icon.blue { background: #fff1eb; color: var(--accent-2); }
.kpi .icon.amber { background: #fff7ed; color: var(--warn); }
.kpi .icon.slate { background: #f1f5f9; color: #334155; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi strong { display: block; font-size: 26px; margin-top: 2px; line-height: 1.1; }
.kpi em { font-style: normal; color: var(--muted); font-size: 12px; }

.meter { display: flex; height: 10px; background: #e8eef6; border-radius: 99px; overflow: hidden; }
.meter span { display: block; height: 100%; }
.meter .won { background: var(--good); }
.meter .pending { background: #f59e0b; }
.conv { margin-bottom: 14px; }
.conv header { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.track { height: 8px; background: #e8eef6; border-radius: 99px; overflow: hidden; }
.track span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }

.activity-pills { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.activity-pills div { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.activity-pills strong { display: block; font-size: 20px; }

.table-wrap { overflow: auto; max-width: 100%; }
.table-wrap::-webkit-scrollbar { height: 8px; width: 8px; }
.table-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
table.data { width: 100%; border-collapse: collapse; }
table.data th, table.data td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
table.data tbody tr:hover { background: #f8fafc; }
table.data a { font-weight: 700; }

.badge {
  display: inline-flex; align-items: center; border-radius: 999px; padding: 2px 8px;
  font-size: 12px; font-weight: 700; background: #f1f5f9; color: #334155; text-transform: capitalize;
}
.badge.good { background: #dcfce7; color: #166534; }
.badge.bad { background: #fee2e2; color: #991b1b; }
.badge.warn { background: #ffedd5; color: #9a3412; }
.badge.info { background: #fff1eb; color: #9f3400; }
.badge.neutral { background: #f1f5f9; color: #475569; }

.btn {
  border: 0; border-radius: 8px; padding: 8px 14px; background: var(--accent); color: white;
  cursor: pointer; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; line-height: 1.2;
}
.btn:hover { background: var(--accent-2); color: white; }
.btn.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover { background: #f8fafc; color: var(--ink); }
.btn.danger { background: var(--bad); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: var(--accent-2); }
.btn.small { padding: 6px 10px; font-size: 13px; }
button.menu-btn { display: none; }

.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; }
.alert.success { background: #ecfdf3; color: #166534; border: 1px solid #bbf7d0; }
.alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.demo-bar { background: #fff7ed; color: #9a3412; border-bottom: 1px solid #fdba74; padding: 8px 16px; font-size: 14px; font-weight: 600; text-align: center; flex: 0 0 auto; }
.banner > div { min-width: 0; }
.banner strong { display: block; }
.content a, .content code, .banner { overflow-wrap: anywhere; }
.nav-toggle { display: inline-flex; }
.sidebar.collapsed { width: 76px; flex-basis: 76px; padding-left: 8px; padding-right: 8px; }
.sidebar.collapsed .brand-name,
.sidebar.collapsed .nav-find,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-empty { display: none; }
@media (min-width: 861px) {
  .sidebar.collapsed .nav-items,
  .sidebar.collapsed .nav-items[hidden] { display: grid !important; }
}
.sidebar.collapsed .side-link.active { background: var(--ink); color: #fff; box-shadow: none; }
.sidebar.collapsed .side-link.active i { color: #fff; }
.sidebar.collapsed .brand { justify-content: center; padding: 8px 8px 12px; }
.sidebar.collapsed .brand { width: 100%; }
.brand-logo-small { display: none; }
.sidebar.collapsed .brand-logo-full { display: none; }
.sidebar.collapsed .brand-logo-small { display: block; }
.sidebar.collapsed .brand-logo { width: 56px; height: 21px; max-width: 56px; max-height: 21px; object-fit: contain; }
.app-shell.nav-horizontal { flex-direction: column; }
.app-shell.nav-horizontal .sidebar { width: 100%; max-height: none; flex-direction: row; overflow-x: auto; }
.app-shell.nav-horizontal .content { width: 100%; }
.sidebar.collapsed .side-link { justify-content: center; padding: 8px; }
.sidebar.collapsed .side-link span {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.desk { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.desk-nav {
  position: sticky; top: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  max-height: calc(100dvh - 84px); overflow: auto;
}
.desk-label { margin: 10px 8px 4px; color: #94a3b8; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.desk-link {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: transparent; border: 0;
  border-radius: 8px; padding: 8px 10px; color: #475569; font-weight: 600; cursor: pointer;
}
.desk-link i { width: 16px; text-align: center; }
.desk-link:hover { background: #f1f5f9; color: #0f172a; }
.desk-link.active { background: var(--ink); color: #fff; }
.desk-pane[hidden] { display: none !important; }
.desk-tabs { grid-template-columns: 1fr; }
.desk-tabs .desk-nav { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; }
.desk-tabs .desk-link { width: auto; }
.desk-body > .card { margin-bottom: 0; }
.section-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.section-nav a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink); font-weight: 700; font-size: 13px; }
.section-nav a:hover { border-color: var(--accent); color: var(--accent-2); }
.settings-section { margin: 8px 0 16px; }
.settings-section h4 { margin: 0 0 12px; font-size: 15px; }
.settings-preview { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
#sms-test,
#email-test { border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: min(420px, calc(100vw - 32px)); }
#sms-test::backdrop,
#email-test::backdrop { background: rgba(8, 8, 56, 0.35); }
#sms-test h3,
#email-test h3 { margin: 0 0 14px; }
#sms-test .form-actions,
#email-test .form-actions { display: flex; gap: 8px; margin-top: 14px; }
.email-pane[hidden] { display: none !important; }
.pay-fees { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.pay-fees label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text); font-weight: 600; }
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input[type="checkbox"],
.field .switch input[type="checkbox"] {
  position: absolute; z-index: 1; opacity: 1; appearance: none; width: 46px; height: 24px;
  margin: 0; padding: 0; cursor: pointer; background: transparent; border: 0; border-radius: 999px;
}
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; pointer-events: none; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s ease; }
.switch input:checked + span { background: #22c55e; }
.switch input:checked + span::before { transform: translateX(22px); }
.choice-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.choice-inline label { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text); font-weight: 600; }
.theme-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.theme-card { position: relative; display: block; margin: 0; cursor: pointer; text-align: center; }
.theme-card img { width: 100%; height: auto; border: 2px solid #d7dee8; border-radius: 8px; display: block; }
.field .theme-card input[type="radio"] {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0;
  opacity: 0.02; cursor: pointer; border: 0;
}
.theme-card input:checked + img,
.theme-card input:checked + .theme-swatch,
.theme-card input:checked + .layout-swatch { border-color: #f86028; box-shadow: 0 0 0 2px rgba(248, 96, 40, 0.25); }
.theme-card span { display: block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.theme-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; }
.theme-swatch, .layout-swatch {
  display: block; height: 72px; border: 2px solid #d7dee8; border-radius: 8px; overflow: hidden;
}
.theme-swatch { background: linear-gradient(var(--swatch-header) 0 28px, var(--swatch-paper) 28px); position: relative; }
.theme-swatch::after {
  content: ""; position: absolute; left: 10px; right: 10px; top: 40px; height: 8px; border-radius: 99px; background: var(--swatch-accent);
}
.layout-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.layout-swatch { background: #f8fafc; position: relative; }
.layout-swatch::before, .layout-swatch::after { content: ""; position: absolute; background: #94a3b8; border-radius: 3px; }
.layout-swatch-classic::before { left: 8px; top: 10px; bottom: 10px; width: 58%; }
.layout-swatch-classic::after { right: 8px; top: 10px; bottom: 10px; width: 22%; }
.layout-swatch-magazine::before { left: 8px; top: 10px; height: 24px; right: 8px; }
.layout-swatch-magazine::after { left: 8px; right: 8px; bottom: 10px; height: 22px; }
.layout-swatch-wide::before { left: 8px; right: 8px; top: 10px; bottom: 10px; }
.layout-swatch-wide::after { display: none; }
.layout-swatch-sidebar-left::before { left: 8px; top: 10px; bottom: 10px; width: 22%; }
.layout-swatch-sidebar-left::after { right: 8px; top: 10px; bottom: 10px; width: 58%; }
.appearance-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.appearance-nav a { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line, #e2e8f0); text-decoration: none; font-weight: 700; color: var(--text); }
.appearance-nav a[aria-current="page"] { background: #0b1f3a; color: #fff; border-color: #0b1f3a; }
.theme-active { display: grid; grid-template-columns: minmax(240px, 360px) minmax(0, 1fr); gap: 24px; background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 18px; margin-bottom: 22px; }
.theme-active h2 { margin: 0 0 8px; }
.theme-active-links { display: flex; gap: 14px; margin: 0 0 14px; }
.theme-preview { height: 180px; border-radius: 10px; border: 1px solid #d7dee8; background: linear-gradient(var(--swatch-header) 0 64px, var(--swatch-paper) 64px); position: relative; }
.theme-preview::after { content: ""; position: absolute; left: 16px; right: 16px; top: 86px; height: 12px; border-radius: 99px; background: var(--swatch-accent); }
.theme-available-heading { margin: 8px 0 12px; font-size: 20px; }
.theme-browser { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.theme-search { display: grid; gap: 6px; max-width: 320px; margin: 0 0 14px; font-weight: 700; }
.theme-search input { font: inherit; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; }
.editor { position: relative; }
.editor-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.editor-bar button { border: 1px solid var(--line, #e2e8f0); background: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 700; cursor: pointer; }
.editor-surface { min-height: 160px; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 12px; background: #fff; }
.editor-surface:focus { outline: 2px solid #0b1f3a; outline-offset: 2px; }
.editor textarea.editor-store { position: absolute; left: 0; top: 0; width: 1px; height: 1px; min-height: 0; max-height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; opacity: 0; pointer-events: none; }
.theme-browser-card { background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; overflow: hidden; }
.theme-browser-card .theme-preview { border: 0; border-radius: 0; height: 140px; }
.theme-browser-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; }
.menu-builder, .widget-board { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.menu-locations, .widget-areas { display: grid; gap: 14px; }
.menu-item { display: grid; grid-template-columns: 1.4fr 0.8fr 90px; gap: 10px 12px; margin: 0 0 12px; padding: 12px; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; }
.widget-list { display: grid; gap: 14px; margin: 14px 0; }
.widget-editor { margin: 0 0 12px; padding: 14px; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; }
.widget-editor legend { padding: 0 6px; font-weight: 700; }
[id] { scroll-margin-top: 12px; }

.field { margin-bottom: 0; min-width: 0; }
.field label, .filters label { display: block; font-size: 13px; margin-bottom: 5px; color: var(--muted); font-weight: 700; }
/* Single required marker (red) — do not also put * in label HTML */
.field > label.is-required::after,
.choice-card-label.is-required::after {
  content: " *";
  color: var(--bad);
  font-weight: 700;
}
.req { color: var(--bad); font-weight: 700; }
.field input, .field select, .field textarea,
.form-grid > input, .form-grid > select, .form-grid > textarea,
.filters input, .filters select, .inline-input, .search-form input {
  width: 100%; border: 1px solid #d7dee8; background: white; border-radius: 10px; padding: 9px 12px; color: var(--text);
}
.field input[type="checkbox"],
.field input[type="radio"],
.choice-card input[type="checkbox"],
.choice-item input {
  width: auto; min-width: 0; padding: 0; border: none; border-radius: 0; background: transparent;
  accent-color: var(--accent-2);
}
.search-form input { border: 1px solid #e7edf5; background: #f7f8fb; border-radius: 999px; padding: 8px 14px 8px 36px; }
.field textarea, textarea { min-height: 88px; resize: vertical; }
.field textarea.wysiwyg, textarea.wysiwyg { min-height: 0; }
.tox-tinymce { width: 100%; border-radius: 10px; }
.rich-text { font-weight: 400; line-height: 1.6; }
.rich-text p { margin: 0 0 8px; }
.rich-text table { border-collapse: collapse; width: 100%; }
.rich-text td, .rich-text th { border: 1px solid #e2e8f0; padding: 6px 8px; }
.field input:focus, .field select:focus, .field textarea:focus,
.form-grid > input:focus, .filters input:focus, .filters select:focus, .search-form input:focus {
  outline: 2px solid rgba(248, 96, 40, 0.28); border-color: var(--accent);
}
.field-error { color: var(--bad); font-size: 12px; margin-top: 4px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  align-items: start;
}
.criteria-card { margin-bottom: 10px; padding: 10px 14px 12px; }
.criteria-title { margin: 0 0 8px; font-size: 15px; }
.criteria-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
  overflow-x: auto;
}
.criteria-row .field { flex: 1 1 0; min-width: 0; }
.criteria-row .field label { margin-bottom: 3px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.criteria-row .field input,
.criteria-row .field select { padding: 7px 8px; border-radius: 8px; }
.criteria-row .field-action { flex: 0 0 auto; }
.criteria-row .field-action .btn { white-space: nowrap; }
.span-2 { grid-column: span 2; }
.section-title { margin: 8px 0 12px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Compact checkbox / radio — same label rhythm as text fields */
.field-choice .choice-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  min-height: 40px; padding: 8px 12px;
  border: 1px solid #e7edf5; border-radius: 10px; background: #fff;
  box-sizing: border-box;
}
.field-choice .choice-box:focus-within {
  outline: 2px solid rgba(248, 96, 40, 0.22); border-color: var(--accent);
}
.choice-item {
  display: inline-flex !important; align-items: center; gap: 8px;
  margin: 0 !important; color: var(--text) !important; font-weight: 600 !important;
  font-size: 13px; cursor: pointer; line-height: 1.2;
}
.choice-item input { margin: 0; width: 16px; height: 16px; flex: 0 0 auto; }
.field-choice-group { margin: 0; }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 10px;
}
.choice-card {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0; padding: 8px 10px; border: 1px solid #e7edf5; border-radius: 10px;
  background: #fff; cursor: pointer; color: var(--text); font-weight: 600; font-size: 13px;
  line-height: 1.3; min-height: 40px; box-sizing: border-box;
}
.choice-card:hover { border-color: #f3c3b0; background: #fffaf7; }
.choice-card:has(input:checked) { border-color: #f0b39a; background: #fff7f3; }
.choice-card input { margin-top: 2px; width: 16px; height: 16px; flex: 0 0 auto; }
.choice-card-label { color: var(--text); }
.choice-card.has-error { border-color: #f43f5e; }

.filters {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px;
  background: white; border: 1px solid var(--line); border-radius: 14px; padding: 12px;
}
.filters .field { flex: 1 1 180px; margin: 0; min-width: 0; }
.filters input:not([type="file"]), .filters select { flex: 1 1 200px; width: auto; min-width: 0; }
.filters input[type="file"] { flex: 1 1 220px; min-width: 0; max-width: 100%; }
.filters .btn { flex: 0 0 auto; min-height: 40px; }
label:has(> input[type="checkbox"]) { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 8px 0; }
label:has(> input[type="checkbox"]) input { width: auto; flex: 0 0 auto; }

.kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; scroll-snap-type: x proximity; max-width: 100%; }
.kanban-col { width: 272px; flex: 0 0 272px; background: #eef2f7; border-radius: 16px; padding: 10px; min-height: 180px; scroll-snap-align: start; max-width: 100%; }
.kanban-col header { display: flex; justify-content: space-between; align-items: flex-start; padding: 4px 6px 10px; gap: 8px; }
.kanban-col header strong { display: block; }
.kanban-col header span { color: var(--muted); font-size: 12px; }
.deal-card { background: white; border-radius: 12px; padding: 12px; margin-bottom: 8px; border-left: 4px solid var(--accent); cursor: grab; box-shadow: var(--shadow); }
.deal-card a { font-weight: 700; color: var(--text); }
.deal-card .value { font-weight: 700; margin: 8px 0 2px; font-size: 16px; }
.deal-card .meta { color: var(--muted); font-size: 13px; }

.timeline { position: relative; margin-left: 6px; }
.timeline-item { position: relative; padding: 0 0 16px 36px; }
.timeline-item .dot {
  position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: #fff1eb; color: var(--accent-2); display: grid; place-items: center; border: 1px solid #ffd7c4; font-size: 13px;
}
.timeline-item strong { font-size: 12px; color: var(--muted); font-weight: 700; }
.record-hero { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.score { font-size: 40px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 10px; font-size: 14px; }
.kv span { color: var(--muted); }

.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar .day, .calendar .head { min-height: 96px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 6px; min-width: 0; overflow: hidden; }
.calendar .head { min-height: 0; background: transparent; border: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.event { display: block; font-size: 12px; background: #fff1eb; border-radius: 6px; padding: 3px 5px; margin-top: 4px; color: var(--accent-2); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 28px 8px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.bell { position: relative; }
.bell-count { position: absolute; top: -2px; right: -2px; background: var(--bad); color: white; border-radius: 99px; font-size: 10px; padding: 1px 5px; margin: 0; }
.bell-menu { position: absolute; right: 0; top: 44px; width: min(320px, calc(100vw - 24px)); background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: none; padding: 8px; z-index: 30; }
.bell.open .bell-menu { display: block; }
.bell-menu a { display: block; padding: 8px; border-radius: 8px; color: var(--text); }
.bell-menu a:hover { background: #f8fafc; }
.backdrop { display: none; }
.check, .check-line { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-weight: 600; }
.check input, .check-line input { width: auto; flex: 0 0 auto; }
.line-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 90px 130px; gap: 8px; margin-bottom: 8px; }
.line-row select, .line-row input { width: 100%; min-width: 0; border: 1px solid #d7dee8; border-radius: 10px; padding: 9px 12px; background: white; }
.check input { width: auto; }
input[type="color"] {
  width: 42px; height: 38px; padding: 4px; flex: 0 0 42px;
  border: 1px solid #d7dee8; border-radius: 10px; background: #fff;
}
.catalog-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.catalog-item:last-of-type { border-bottom: 0; }
.catalog-edit { display: grid; grid-template-columns: minmax(0, 1fr) 42px auto; gap: 8px; align-items: center; }
.catalog-edit.no-swatch { grid-template-columns: minmax(0, 1fr) auto; }
.catalog-edit input:not([type="color"]) { width: 100%; min-width: 0; border: 1px solid #d7dee8; border-radius: 10px; padding: 9px 12px; }
.catalog-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rule-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.rule-row input, .rule-row select { width: 100%; min-width: 0; border: 1px solid #d7dee8; border-radius: 10px; padding: 9px 12px; background: white; }

body:has(.auth-body) {
  min-height: 100%; height: 100%; overflow: auto;
  display: flex; flex-direction: column; background: var(--ink);
}
.auth-body {
  flex: 1; min-height: 0; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  background: var(--ink); overflow: hidden;
}
.auth-copy { color: #f8fafc; padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.auth-copy h1 { font-size: 48px; line-height: 1.05; margin: 16px 0; }
.auth-points { margin: 12px 0 0; padding: 0; list-style: none; }
.auth-points li { margin: 8px 0; color: #cbd5e1; }
.auth-stage {
  color: #f8fafc; padding: 28px 48px 24px; min-height: 0; display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(248, 96, 40, 0.28), transparent 42%),
    radial-gradient(ellipse at 88% 100%, rgba(255, 255, 255, 0.08), transparent 40%),
    var(--ink);
}
.auth-slides { display: grid; flex: 1; min-height: 0; margin-top: 12px; }
.auth-slide { grid-area: 1 / 1; position: relative; min-height: 0; height: 100%; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; visibility: hidden; opacity: 0; }
.auth-slide.is-on { visibility: visible; opacity: 1; }
.auth-photo { position: absolute; inset: 0; }
.auth-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-slide-copy { position: relative; z-index: 1; padding: 56px 22px 18px; background: linear-gradient(180deg, rgba(8, 8, 56, 0) 0%, rgba(8, 8, 56, 0.88) 58%); }
.auth-slide h1 { font-size: 30px; line-height: 1.12; margin: 0 0 6px; color: #fff; letter-spacing: -0.03em; }
.auth-slide p { margin: 0; color: #e7e9f2; font-size: 15px; max-width: 42ch; }
.auth-slide-nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.auth-slide-nav button[data-slide-prev],
.auth-slide-nav button[data-slide-next] {
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06); color: #fff; cursor: pointer; font-size: 18px; line-height: 1;
}
.auth-slide-nav button[data-slide-prev]:hover,
.auth-slide-nav button[data-slide-next]:hover { background: rgba(255, 255, 255, 0.16); }
.auth-dots { display: flex; gap: 8px; align-items: center; }
.auth-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
  background: rgba(255, 255, 255, 0.35); cursor: pointer;
}
.auth-dots button.is-on { width: 22px; background: var(--accent); }
.auth-panel { background: #fff; margin: 0; border-radius: 0; min-height: 0; display: grid; place-items: center; padding: 32px 28px; overflow: auto; }
.auth-card {
  width: min(320px, 100%); background: transparent; border: 0; border-radius: 0;
  padding: 0; box-shadow: none; display: flex; flex-direction: column; gap: 0;
}
.auth-card h2 { margin: 0 0 6px; font-size: 32px; color: var(--ink); }
.auth-card > .muted { margin: 0 0 16px; }
.auth-card > .alert { margin-bottom: 14px; }
.auth-card > .field { margin-bottom: 14px; }
.auth-card > .btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; margin-top: 4px; position: static; flex: 0 0 auto;
}
.auth-card > p.muted { margin-top: 16px; margin-bottom: 0; }
.demo-accounts { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--line); }
.demo-accounts p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.demo-accounts div { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: 13px; }
.demo-accounts span { width: 96px; color: var(--muted); flex: 0 0 auto; }
.demo-accounts strong { font-weight: 650; color: var(--text); }
.demo-accounts em { margin-left: auto; font-style: normal; color: var(--accent-2); font-weight: 700; }
.print-sheet { max-width: 840px; margin: 24px auto; background: white; padding: 32px; border: 1px solid var(--line); }

.home-welcome { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 0 0 16px; }
.home-hello { min-width: 0; }
.home-date { margin: 0 0 2px; color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: 0.01em; }
.home-hello h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.home-notes { display: grid; gap: 8px; flex: 1 1 420px; max-width: 560px; }
.home-note {
  display: flex; gap: 12px; align-items: flex-start; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow);
}
.home-note > i {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 36px;
  background: #fff1eb; color: var(--accent-2); font-size: 16px;
}
.home-note strong { display: block; color: var(--ink); font-size: 15px; }
.home-note p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.home-stats, .home-row, .home-bottom { display: grid; gap: 14px; margin-bottom: 14px; align-items: stretch; }
.home-stats { grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); }
.home-row, .home-bottom { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-row > .rise-card,
.home-bottom > .rise-card,
.home-stats > .tile { height: 100%; }
.home-bottom > .stack { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.home-bottom > .stack > .rise-card { flex: 1 1 auto; }
.dash-kpis {
  display: grid; gap: 12px; margin-bottom: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.dash-kpis-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dash-grid {
  display: grid; gap: 14px; margin-bottom: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.dash-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dash-panel { min-width: 0; }
.dash-panel .page-header a { font-size: 13px; font-weight: 650; }
.tile.compact { min-height: 78px; padding: 12px 14px; }
.tile.compact .tile-ico { width: 42px; height: 42px; font-size: 18px; flex-basis: 42px; }
.tile.compact strong { font-size: 20px; }
.tile .tile-note { display: block; margin-top: 2px; }
.dash-bars { display: grid; gap: 8px; }
.dash-bar-row { display: grid; grid-template-columns: minmax(72px, 0.9fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.dash-bar-label { font-size: 13px; font-weight: 650; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-bar-track { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.dash-bar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--ink), #334155); border-radius: 99px; }
.dash-bar-val { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); min-width: 28px; text-align: right; }
.dash-trend { display: flex; align-items: flex-end; gap: 8px; min-height: 92px; padding-top: 8px; }
.dash-trend-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.dash-trend-bar { width: 100%; max-width: 28px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, #fb7185, #f43f5e); }
.dash-trend-col span { font-size: 11px; color: var(--muted); }
.dash-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dash-action {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc;
  color: var(--text); font-weight: 650; font-size: 13px; min-height: 78px;
}
.dash-action i { font-size: 18px; color: var(--accent-2); }
.dash-action:hover { background: #fff; border-color: #f3c3b0; color: var(--ink); }
.dash-kpis > .tile { height: 100%; }
.tile { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); min-height: 92px; color: var(--text); }
.module-split {
  display: grid; gap: 14px; align-items: start;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.35fr);
}
.module-split-roomy {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}
.module-split-roomy .module-form-pane .form-grid { grid-template-columns: 1fr; }
.module-split-roomy .module-list-head { align-items: flex-start; }
.module-split-roomy .export-toolbar { flex: 1 1 100%; justify-content: flex-start; }
.module-split-roomy .module-list-pane table.data th,
.module-split-roomy .module-list-pane table.data td {
  padding: 8px 10px; white-space: nowrap;
}
.module-split-roomy .module-list-pane table.data td:last-child { width: 1%; }
.module-split-roomy .module-list-pane table.data td:last-child .btn.small {
  padding: 4px 8px; font-size: 12px;
}
.setup-shell {
  display: grid; gap: 14px; align-items: start;
  grid-template-columns: 200px minmax(0, 1fr);
}
.setup-nav { padding: 8px; display: flex; flex-direction: column; }
.setup-nav a {
  display: block; padding: 10px 12px; color: var(--text); font-weight: 650;
  border-left: 3px solid transparent;
}
.setup-nav a.active { border-left-color: #3c8dbc; color: #3c8dbc; background: #f4f8fb; }
.module-split-single { grid-template-columns: 1fr; }
.module-box-title {
  margin: 0 0 14px; font-size: 16px; font-weight: 700; color: var(--ink);
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.module-list-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap;
}
.export-toolbar {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: flex-end;
}
.export-toolbar .btn.small { padding: 5px 10px; font-size: 12px; }
.export-search {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600;
}
.export-search input {
  width: 140px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; color: var(--text); font-weight: 500;
}
.export-length {
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fff; font-size: 13px;
}
@media print {
  .sidebar, .topbar, .page-header .btn, .export-toolbar, .module-form-pane, .filters, form.form-grid, form.criteria-row { display: none !important; }
  .module-split { display: block !important; }
  .app-shell, .content { overflow: visible !important; height: auto !important; }
}
.module-form .form-actions {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
  margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line);
}
.field-hint { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.35; }
.alumni-photo { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; display: block; }
.field-hint .alumni-photo { margin-bottom: 6px; }
.kv .alumni-photo { width: 120px; height: 120px; }
.field.has-error input:not([type="checkbox"]):not([type="radio"]),
.field.has-error select,
.field.has-error textarea,
.field.has-error .pick-btn { border-color: #f43f5e; box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.12); }
.pick { position: relative; }
.pick-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}
.pick-btn, .pick-filter {
  width: 100%;
  border: 1px solid #d7dee8;
  background: white;
  border-radius: 10px;
  padding: 9px 12px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.pick-btn { position: relative; padding-right: 32px; }
.pick-btn::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-70%) rotate(45deg);
}
.pick-pop {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: white;
  border: 1px solid #d7dee8;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  padding: 8px;
}
.pick-q { width: 100%; margin-bottom: 6px; }
.pick-list { max-height: 220px; overflow: auto; }
.pick-opt {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.pick-opt:hover, .pick-opt.is-current { background: #f1f5f9; }
.pick-empty { margin: 6px 8px; color: var(--muted); font-size: 13px; }
.pick-filter { margin-bottom: 6px; }
.field-error { margin-top: 4px; font-size: 12px; color: #e11d48; font-weight: 650; }
.check, .check-line { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-weight: 600; }
.check input, .check-line input { width: auto; flex: 0 0 auto; }
@media (max-width: 1080px) {
  .module-split, .setup-shell { grid-template-columns: 1fr; }
}
a.tile:hover { color: var(--text); }
.tile-ico { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; color: white; font-size: 24px; flex: 0 0 54px; }
.tile-ico.rose { background: #fb7185; }
.tile-ico.blue { background: var(--ink); }
.tile-ico.violet { background: #8b5cf6; }
.tile-ico.pink { background: #f43f5e; }
.tile strong { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -0.03em; }
.tile em, .tile .tile-note { font-style: normal; color: var(--muted); font-size: 13px; }
.rise-card h3 { font-size: 15px; margin-bottom: 14px; }
.stat-pips { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; }
.stat-pips strong { display: block; font-size: 22px; }
.stat-pips span { color: var(--muted); font-size: 12px; }
.pip { width: 8px; height: 8px; border-radius: 99px; display: inline-block; margin-right: 4px; }
.pip.green { background: #22c55e; }
.pip.red { background: #ef4444; }
.pip.amber { background: #f59e0b; }
.pip.blue { background: var(--ink); }
.pip.slate { background: #94a3b8; }
.rise-bar { height: 8px; background: #e8eef6; border-radius: 99px; overflow: hidden; }
.rise-bar span { display: block; height: 100%; background: #22c55e; border-radius: 99px; }
.rise-card { container-type: inline-size; display: flex; flex-direction: column; }
.inv-line { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto minmax(48px, 1.2fr) auto; gap: 8px; align-items: center; margin: 8px 0; font-size: 13px; }
.inv-line > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-track { height: 6px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.inv-track span { display: block; height: 100%; border-radius: 99px; }
.inv-amt { color: var(--muted); font-variant-numeric: tabular-nums; }
.chart-box.sm { height: 180px; }
.legend-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; font-size: 13px; margin-top: 8px; }
.legend-row > div { min-width: 0; }
.legend-row strong { display: block; }
.feed-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.todo-line { display: flex; gap: 8px; align-items: center; padding: 6px 0; }
.todo-line.done span { text-decoration: line-through; color: var(--muted); }
.clock-note { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
@container (max-width: 520px) {
  .inv-line { grid-template-columns: 10px minmax(0, 1fr) auto auto; }
  .inv-line > span:nth-child(2) { grid-column: 2; grid-row: 1; }
  .inv-line > span:nth-child(3) { grid-column: 3; grid-row: 1; }
  .inv-amt { grid-column: 4; grid-row: 1; }
  .inv-track { grid-column: 2 / -1; grid-row: 2; }
}

@media (max-width: 1400px) {
  .home-stats { grid-template-columns: 1fr 1fr; }
  .home-row, .home-bottom { grid-template-columns: 1fr 1fr; }
  .dash-kpis, .dash-kpis-sm { grid-template-columns: 1fr 1fr; }
  .dash-grid, .dash-grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .grid-4, .stat-grid, .home-stats { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3, .home-row, .home-bottom { grid-template-columns: 1fr; }
  .dash-grid, .dash-grid-2, .dash-grid-3 { grid-template-columns: 1fr; }
  .dash-actions { grid-template-columns: 1fr 1fr; }
  .line-row { grid-template-columns: 1fr 1fr; }
  .line-row select, .line-row [data-line-desc] { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  html, body { height: auto; min-height: 100%; }
  .app-shell { height: auto; min-height: 100dvh; overflow: visible; }
  .main { overflow: visible; height: auto; min-height: 100dvh; }
  .content { overflow: visible; }
  .home-welcome { flex-direction: column; align-items: stretch; }
  .home-notes { max-width: none; }
  body:has(.auth-body) {
    height: auto !important; min-height: 100%; overflow: auto !important;
  }
  .auth-body {
    display: flex; flex-direction: column;
    height: auto !important; min-height: 100%; overflow: visible !important;
  }
  .auth-stage {
    order: 1; flex: 0 0 auto; padding: 18px 16px 12px;
    max-height: none; min-height: 0;
  }
  .auth-copy, .auth-stage { padding: 18px 16px 12px; }
  .auth-copy h1, .auth-slide h1 { font-size: 24px; }
  .auth-slides { flex: none; min-height: 180px; max-height: 220px; }
  .auth-slide { height: 180px; }
  .auth-slide-nav { margin-top: 12px; }
  .auth-panel {
    order: 2; flex: 1 0 auto; place-items: start center;
    padding: 20px 16px 40px; overflow: visible; min-height: auto;
  }
  .auth-card { width: min(360px, 100%); }
  button.menu-btn { display: inline-flex; }
  .nav-toggle { display: none; }
  .sidebar.collapsed { width: min(84vw, 280px); flex-basis: auto; padding: 16px 12px; }
  .sidebar.collapsed .brand { justify-content: flex-start; padding: 6px 10px 14px; }
  .sidebar.collapsed .brand-logo { width: auto; height: 32px; max-height: none; }
  .sidebar.collapsed .brand-name, .sidebar.collapsed .nav-find { display: flex; }
  .sidebar.collapsed .nav-label { display: flex; }
  .sidebar.collapsed .side-link.active { background: #fff; color: var(--ink); box-shadow: inset 3px 0 0 var(--accent); }
  .sidebar.collapsed .side-link.active i { color: var(--accent-2); }
  .sidebar.collapsed .side-link { justify-content: flex-start; padding: 7px 12px; }
  .sidebar.collapsed .side-link span { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; }
  .desk { grid-template-columns: 1fr; }
  .desk-nav { position: static; max-height: none; display: flex; flex-wrap: wrap; gap: 4px; }
  .desk-link { width: auto; }
  .desk-label { width: 100%; }
  .tile > div { min-width: 0; }
  .tile strong, .tile em { overflow-wrap: anywhere; }
  .sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; height: auto; max-height: none; z-index: 40;
    transform: translateX(-105%); transition: transform .18s ease; width: min(84vw, 280px);
  }
  .sidebar.open { transform: none; }
  .backdrop.show { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); z-index: 35; }
  .form-grid, .rule-row, .role-layout, .backup-layout, .addon-grid, .cf-layout { grid-template-columns: 1fr; }
  .criteria-row { flex-wrap: nowrap; }
  .criteria-row .field { flex: 1 1 140px; }
  .span-2 { grid-column: auto; }
  .content { padding: 16px; }
  .topbar { padding: 12px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .page-header .actions { justify-content: flex-start; }
  .record-hero { flex-direction: column; }
  .line-row { grid-template-columns: 1fr; }
  .line-row select, .line-row [data-line-desc] { grid-column: auto; }
  .kanban-col { width: 100%; flex-basis: 100%; }
  .user-name { display: none; }
  .table-wrap, .card:has(table.data) { overflow: visible; }
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: auto; }
  table.data tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 12px; background: #fff; }
  table.data tbody tr:hover { background: #fff; }
  table.data td { display: block; border: 0; padding: 7px 0; text-align: left; overflow-wrap: anywhere; }
  table.data td::before { content: attr(data-label); display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 2px; }
  table.data td[data-label=""]::before, table.data td:not([data-label])::before { content: none; }
}
@media (max-width: 640px) {
  .grid-4, .stat-grid, .activity-pills, .home-stats, .dash-kpis, .dash-kpis-sm { grid-template-columns: 1fr; }
  .dash-actions { grid-template-columns: 1fr; }
  .filters .field, .filters input, .filters select { flex-basis: 100%; width: 100%; }
  .filters .btn { width: 100%; justify-content: center; }
  .topbar { flex-wrap: wrap; }
  .search-form { flex: 1 1 100%; max-width: none; order: 3; }
  .top-actions { margin-left: auto; }
  .calendar { gap: 3px; }
  .calendar .day { min-height: 64px; padding: 3px; }
  .calendar .head, .event { font-size: 10px; }
  .catalog-edit, .catalog-edit.no-swatch { grid-template-columns: minmax(0, 1fr) auto; }
  .catalog-edit .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 960px) {
  .sidemenu-desk { grid-template-columns: 1fr; }
}

.sidemenu-desk .card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}
.sidemenu-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  max-height: 520px;
  overflow: auto;
  padding: 4px 2px;
}
.sidemenu-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.sidemenu-check input { margin: 0; }
.sidemenu-check:has(input:checked) {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, white);
}
.stack-gap { display: grid; gap: 14px; }
.setup-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.setup-hero { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 14px; }
.setup-hero h2 { margin: 0 0 6px; font-size: 18px; }
.setup-percent { font-size: 28px; line-height: 1; }
.setup-meter { height: 10px; background: #e8eef6; border-radius: 99px; overflow: hidden; margin-top: 10px; }
.setup-meter span { display: block; height: 100%; background: var(--accent); }
.setup-next { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 14px; padding: 12px 14px; background: #fff7ed; border: 1px solid #fdba74; border-radius: 12px; }
.setup-next p { margin: 4px 0 0; color: #9a3412; }
.setup-group { margin-bottom: 14px; }
.setup-group header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 4px; }
.setup-group header .badge { white-space: nowrap; flex: none; }
.setup-group h2 { margin: 0; font-size: 18px; }
.setup-steps { list-style: none; margin: 0; padding: 0; }
.setup-step { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.setup-mark { width: 28px; height: 28px; border-radius: 99px; display: grid; place-items: center; background: #f1f5f9; color: #64748b; grid-row: 1; }
.setup-copy { min-width: 0; }
.setup-meta { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.setup-step.is-done .setup-mark { background: #dcfce7; color: #166534; }
.setup-step.is-next .setup-mark { background: #ffedd5; color: #9a3412; }
.setup-step strong { display: block; }
.setup-level { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: #f1f5f9; color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; }
.setup-step p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.setup-status { color: var(--muted); font-size: 13px; }
.setup-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid #fdba74; background: #fff7ed; color: inherit; text-decoration: none; }
.setup-banner p { margin: 2px 0 0; color: #9a3412; }
.setup-banner .btn { margin-left: auto; }

@media (min-width: 960px) {
  .setup-step { grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; }
  .setup-meta { grid-column: auto; grid-row: 1; justify-content: flex-end; }
  .setup-status { text-align: right; min-width: 11rem; }
}
@media (max-width: 720px) {
  .sidemenu-checks { grid-template-columns: 1fr; }
  .setup-next, .setup-banner { flex-wrap: wrap; }
}

.public-site {
  --site-header: #0b1f3a;
  --site-header-ink: #fff;
  --site-accent: #c45c26;
  --site-paper: #f7f6f3;
  --site-ink: #142033;
  background: var(--site-paper);
  color: var(--site-ink);
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
}
.public-site h1, .public-site h2, .slide-title, .site-lead, .site-brand-name {
  font-family: "Source Serif 4", Georgia, serif;
}
.public-site.theme-yellow { --site-header: #3d2b00; --site-accent: #e0a100; --site-paper: #fff8e6; }
.public-site.theme-darkgray { --site-header: #1f2933; --site-accent: #d4a373; --site-paper: #f3f1ee; }
.public-site.theme-bold_blue { --site-header: #0a3d91; --site-accent: #f5c518; --site-paper: #f3f6fb; }
.public-site.theme-shadow_white { --site-header: #ffffff; --site-header-ink: #142033; --site-accent: #111827; --site-paper: #f3f4f6; }
.public-site.theme-material_pink { --site-header: #ad1457; --site-accent: #f8bbd0; --site-paper: #fdf2f6; }
.public-site a { color: var(--site-header); }
.theme-shadow_white.public-site a { color: #9f1239; }
.site-topbar { background: #081424; color: rgba(255, 255, 255, 0.82); font-size: 13px; }
.site-topbar-inner, .site-header-inner, .site-hero-inner, .site-wrap, .site-footer-inner { max-width: 1180px; margin: 0 auto; }
.site-topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 24px; }
.site-header { background: rgba(255, 255, 255, 0.92); color: var(--site-ink); border-bottom: 1px solid rgba(20, 32, 51, 0.06); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.public-site .site-header.is-over { position: fixed; left: 0; right: 0; background: transparent; color: #fff; border-bottom-color: transparent; backdrop-filter: none; }
.public-site .site-header.is-over a, .public-site.theme-default .site-header.is-over a { color: #fff; }
.public-site .site-header.is-over .site-brand { color: #fff; }
.public-site .site-header.is-over:not(.is-solid) a.site-signin { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); }
.public-site .site-header.is-over.is-solid { background: rgba(255, 255, 255, 0.96); color: var(--site-ink); border-bottom-color: rgba(20, 32, 51, 0.06); backdrop-filter: blur(14px); }
.public-site.theme-default .site-header.is-over.is-solid a { color: #3d4a5c; }
.public-site.theme-default .site-header.is-over.is-solid a.site-signin { background: var(--site-header); color: #fff; box-shadow: none; }
.public-site:not(.theme-default) .site-header.is-over.is-solid { background: var(--site-header); color: var(--site-header-ink); }
.public-site:not(.theme-default) .site-header.is-over.is-solid a { color: #fff; }
.public-site:not(.theme-default) .site-header.is-over.is-solid a.site-signin { background: #fff; color: var(--site-header); box-shadow: none; }
.public-site:not(.theme-default) .site-header { background: var(--site-header); color: var(--site-header-ink); }
.public-site.theme-default .site-header a { color: #3d4a5c; }
.public-site.theme-default .site-header a.site-signin { background: var(--site-header); color: #fff; }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; }
.site-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; letter-spacing: -0.03em; color: var(--site-ink); }
.public-site:not(.theme-default) .site-brand { color: var(--site-header-ink); }
.site-brand img { height: 40px; width: auto; }
.site-mark { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--site-header); color: #fff; font-size: 16px; font-weight: 700; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; font-size: 15px; font-weight: 600; }
.site-nav a { padding: 8px 0; margin: 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: none; border-bottom-color: var(--site-accent); color: var(--site-ink); }
.public-site:not(.theme-default) .site-nav a { color: #fff; }
.public-site:not(.theme-default) .site-nav a:hover, .public-site:not(.theme-default) .site-nav a[aria-current="page"] { color: #fff; }
.site-header a.site-signin, .public-site.theme-default .site-header a.site-signin { margin-left: 8px; border: 0; border-radius: 999px; background: var(--site-header); color: #fff; padding: 8px 16px; }
.public-site:not(.theme-default) .site-header a.site-signin { background: #fff; color: var(--site-header); }
.public-site.theme-light .site-header,
.public-site.theme-light .site-brand,
.public-site.theme-light .site-nav a { color: #142033; }
.public-site.theme-light .site-header a.site-signin { background: #142033; color: #fff; }
.public-site.theme-light .site-mark { background: #142033; color: #fff; }
.public-site.theme-light .site-header.is-over:not(.is-solid) .site-brand,
.public-site.theme-light .site-header.is-over:not(.is-solid) .site-nav a { color: #fff; }
.public-site.theme-light .site-header.is-over:not(.is-solid) .site-mark { background: #fff; color: #142033; }
.public-site.theme-light .site-header.is-over:not(.is-solid) a.site-signin { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.7); }
.public-site.theme-light .site-header.is-over.is-solid,
.public-site.theme-light .site-header.is-over.is-solid a { color: #142033; }
.public-site.theme-light .site-header.is-over.is-solid a.site-signin { background: #142033; color: #fff; border: 0; }
.public-site.theme-light .site-footer { background: #142033; color: #fff; }
.public-site.theme-light .site-footer a { color: #fff; }
.theme-shadow_white .site-header a.site-signin { background: #111827; color: #fff; }
.site-notices { background: transparent; color: var(--site-ink); }
.site-notices-inner, .site-gates-inner { max-width: 1180px; margin: 0 auto; }
.site-notices-inner { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 24px 0; font-size: 14px; font-weight: 600; }
.site-notices strong { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; margin-right: 4px; }
.site-notices span { background: #fff; border-radius: 999px; padding: 6px 12px; box-shadow: 0 4px 14px rgba(20, 32, 51, 0.05); }
.site-gates { background: transparent; border: 0; }
.site-gates-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 1180px; margin: -56px auto 0; background: #fff; position: relative; z-index: 5; box-shadow: 0 22px 50px rgba(8, 16, 28, 0.16); }
.site-gates a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 96px; padding: 20px 22px; border: 0; border-right: 1px solid #e6ebf1; border-radius: 0; background: #fff; color: var(--site-ink); font-weight: 700; text-decoration: none; box-shadow: none; }
.site-gates a:last-child { border-right: 0; }
.site-gates a strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.site-gates a em { display: block; margin-top: 4px; font-style: normal; font-weight: 500; font-size: 13px; color: #64748b; }
.site-gates a::after { content: "→"; width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 999px; background: #f3f1ec; color: var(--site-header); font-weight: 500; }
.site-gates a:hover { background: #fbfaf8; }
.site-gates a:hover::after { background: var(--site-header); color: #fff; }
.site-hero, .site-pagehead {
  background: linear-gradient(135deg, var(--site-header), color-mix(in srgb, var(--site-accent) 62%, var(--site-header)));
  color: #fff;
  padding: 56px 20px;
}
.theme-shadow_white .site-hero, .theme-shadow_white .site-pagehead { background: linear-gradient(135deg, #111827, #374151); color: #fff; }
.site-hero.has-photo {
  background-image: linear-gradient(90deg, rgba(10, 16, 28, 0.72), rgba(10, 16, 28, 0.25)), var(--hero-image);
  background-size: cover;
  background-position: center;
}
.site-hero-inner { padding: 0 20px; }
.site-kicker { margin: 0 0 8px; color: var(--site-accent); font-family: "Segoe UI", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.theme-shadow_white .site-kicker, .site-hero .site-kicker, .site-pagehead .site-kicker { color: #f8e7c3; }
.site-hero h1, .site-pagehead h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; max-width: none; }
.site-pagehead { padding: 40px 24px; }
.site-btn, .public-site button.site-btn {
  display: inline-block; background: #fff; color: var(--site-header); border: 0; border-radius: 999px;
  padding: 10px 16px; font-family: "Segoe UI", sans-serif; font-weight: 700; cursor: pointer; text-decoration: none;
}
.site-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; padding: 36px 24px 64px; align-items: start; }
.site-wrap-single, .layout-wide .site-wrap { grid-template-columns: 1fr; }
.layout-wide .site-side { display: none; }
.layout-sidebar-left .site-wrap { grid-template-columns: 280px minmax(0, 1fr); }
.layout-sidebar-left .site-side { order: -1; }
.site-home, .site-main, .site-side, .site-footer-widgets { display: grid; gap: 8px; }
.site-home { grid-template-columns: 1fr; gap: 64px; align-items: start; padding-top: 28px; }
.site-home .site-statement, .site-home .widget-gallery { grid-column: 1 / -1; }
.site-home .site-card { background: transparent; box-shadow: none; border-radius: 0; padding: 0; border: 0; }
.site-home .site-statement { background: transparent; border: 0; padding: 12px 0 0; }
.site-home .site-card h2 { display: block; margin: 0 0 18px; font-size: clamp(32px, 4vw, 44px); font-weight: 560; letter-spacing: -0.03em; }
.site-home .site-card h2::after { content: none; }
.site-statement { padding: 8px 0 4px; border: 0; margin: 0; text-align: left; }
.site-lead { margin: 0; max-width: 34em; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.35; letter-spacing: -0.02em; }
.site-intro-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 18px 0 0; }
.site-intro-links a { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--site-accent); padding-bottom: 2px; }
.story-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.event-rail { display: grid; gap: 12px; }
.story, .story:first-child, .story:nth-child(n+2) { display: flex; flex-direction: column; background: #fff; border: 0; padding: 0; gap: 0; align-items: stretch; min-height: 0; overflow: hidden; box-shadow: 0 10px 28px rgba(20, 32, 51, 0.06); transition: transform 0.2s ease; }
.story:hover { transform: translateY(-3px); }
.story:first-child { grid-row: auto; }
.story-photo, .story:first-child .story-photo, .story:nth-child(n+2) .story-photo { width: 100%; height: 240px; min-height: 0; object-fit: cover; display: block; margin: 0; border-radius: 0; transition: transform 0.45s ease; }
.story:hover .story-photo, .event-block:hover .event-photo, .mosaic .site-tile:hover img { transform: scale(1.04); }
.story > div, .story:nth-child(n+2) > div { display: block; padding: 16px 16px 18px; }
.story time, .event-block time { font-family: "Source Sans 3", "Segoe UI", sans-serif; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.story strong, .event-block strong { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 22px; font-weight: 560; line-height: 1.2; margin: 6px 0 8px; }
.story p, .event-block p { margin: 0 0 6px; line-height: 1.5; color: #3d4a5c; }
.site-home .widget-events { width: auto; margin: 0; background: transparent; color: var(--site-ink); padding: 0; }
.event-rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.event-block { display: flex; flex-direction: column; background: #fff; border: 0; overflow: hidden; color: var(--site-ink); padding-bottom: 0; box-shadow: 0 10px 28px rgba(20, 32, 51, 0.06); }
.event-photo { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 0; transition: transform 0.45s ease; }
.site-home .widget-events .event-block time b { color: var(--site-header); }
.site-home .widget-events .event-block strong { color: var(--site-ink); }
.site-home .widget-events .event-block p, .site-home .widget-events .event-block time { color: #3d4a5c; }
.event-copy { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 14px; }
.event-block time { display: grid; align-content: start; }
.event-block time b { font-size: 28px; line-height: 1; color: var(--site-header); }
.mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: 280px; gap: 8px; }
.mosaic-lead { grid-row: span 2; }
.mosaic .site-tile { position: relative; display: block; min-height: 0; height: 100%; border-radius: 0; overflow: hidden; background: #d9dee6; }
.mosaic .site-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.mosaic .site-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; color: #fff; background: linear-gradient(transparent, rgba(8, 16, 28, 0.78)); padding: 36px 16px 14px; font-size: 16px; font-weight: 650; }
.mosaic .site-tile span { font-size: 22px; letter-spacing: -0.03em; padding: 18px; }
.slider { background: transparent; color: #fff; padding: 16px 24px 0; position: relative; }
.slider:not(.slider-split):not(.slider-editorial) { padding: 0; }
.slider-frame { position: relative; height: min(62vh, 560px); min-height: 420px; overflow: hidden; border-radius: 28px; }
.slider:not(.slider-split):not(.slider-editorial) .slider-frame { border-radius: 0; height: calc(100vh - 52px); min-height: 620px; }
.slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; }
.slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.slide-copy { position: absolute; z-index: 2; left: max(24px, calc((100% - 1180px) / 2)); right: auto; bottom: 108px; width: min(640px, calc(100% - 48px)); display: flex; flex-direction: column; justify-content: flex-end; padding: 0; border-radius: 0; background: transparent; color: #fff; }
.slide-photo { position: absolute; inset: 0; background-position: center; background-size: cover; }
.slider:not(.slider-split):not(.slider-editorial) .slide-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 14, 24, 0.38) 0%, rgba(8, 14, 24, 0) 30%, rgba(8, 14, 24, 0) 58%, rgba(8, 14, 24, 0.55) 100%); }
.slider:not(.slider-split):not(.slider-editorial) .slide-index { display: none; }
.slide:nth-child(1) .slide-photo { background-color: #0b1f3a; background-image: linear-gradient(115deg, #0b1f3a 0%, #16375f 48%, #9a4a28 100%); }
.slide:nth-child(2) .slide-photo { background-color: #1c2416; background-image: linear-gradient(115deg, #1c2416 0%, #3d4a32 50%, #c4a574 100%); }
.slide:nth-child(3) .slide-photo { background-color: #2a1218; background-image: linear-gradient(115deg, #2a1218 0%, #6b2433 55%, #e6c7a2 100%); }
.slide:nth-child(4) .slide-photo { background-color: #10243a; background-image: linear-gradient(115deg, #10243a, #3d6b8a); }
.slide:nth-child(5) .slide-photo { background-color: #24180f; background-image: linear-gradient(115deg, #24180f, #8a5a32); }
.slide:nth-child(6) .slide-photo { background-color: #101820; background-image: linear-gradient(115deg, #101820, #4b5563); }
.slide-index { margin: 0 0 10px; font-family: "Segoe UI", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; }
.slide-index span { opacity: 0.6; }
.slide-title { margin: 0 0 10px; max-width: 14ch; color: #fff; font-size: clamp(36px, 4vw, 52px); font-weight: 560; line-height: 0.98; letter-spacing: -0.035em; }
.slider:not(.slider-split):not(.slider-editorial) .slide-title { font-size: clamp(46px, 6vw, 78px); }
.slide-text { margin: 0 0 18px; max-width: 36ch; color: rgba(255, 255, 255, 0.9); font-size: 18px; line-height: 1.45; }
.slide-index { color: rgba(255, 255, 255, 0.75); }
.slider a.slide-btn { align-self: flex-start; background: #fff; color: var(--site-header); padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.slider-editorial a.slide-btn { background: var(--site-header); color: #fff; }
.slider-controls { position: absolute; z-index: 3; right: 20px; top: 20px; bottom: auto; display: flex; align-items: center; gap: 8px; }
.slider:not(.slider-split):not(.slider-editorial) .slider-controls { top: 50%; transform: translateY(-50%); }
.slider:not(.slider-split):not(.slider-editorial) .slider-controls span { display: none; }
.slider-controls span { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; background: transparent; padding: 8px 4px; }
.slider-controls button { width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 999px; background: rgba(8, 14, 24, 0.28); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.slider-rail { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: none; margin: 0; background: transparent; border: 0; position: absolute; z-index: 4; right: max(24px, calc((100% - 1180px) / 2)); bottom: 88px; }
.slider-rail button { display: block; width: 36px; height: 3px; padding: 0; overflow: hidden; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.45); color: transparent; cursor: pointer; box-shadow: none; }
.slider-rail button[aria-current="true"] { width: 56px; color: transparent; background: #fff; }
.slider-split .slider-rail, .slider-editorial .slider-rail { position: static; justify-content: center; margin: 14px auto 0; max-width: 1180px; }
.slider-split .slider-rail button, .slider-editorial .slider-rail button { display: inline-flex; width: auto; height: auto; gap: 8px; align-items: center; padding: 8px 14px; overflow: visible; border-radius: 999px; background: #fff; color: #3d4a5c; }
.slider-split .slider-rail button[aria-current="true"], .slider-editorial .slider-rail button[aria-current="true"] { width: auto; color: #fff; background: var(--site-header); }
.slider-rail span { font-size: 11px; letter-spacing: 0.14em; }
.slider-split .slide { display: grid; grid-template-columns: minmax(280px, 42%) 1fr; }
.slider-split .slide-copy { position: relative; left: auto; bottom: auto; width: auto; border-radius: 0; background: var(--site-header); color: #fff; }
.slider-split .slide-title, .slider-split .slide-index { color: #fff; }
.slider-split .slide-text { color: rgba(255, 255, 255, 0.88); }
.slider-split .slide-btn { background: #fff; color: var(--site-header); border-radius: 999px; }
.slider-split .slide-photo { position: relative; }
.slider-editorial { background: var(--site-paper); color: var(--site-ink); }
.slider-editorial .slider-frame { background: var(--site-paper); }
.slider-editorial .slide { align-items: center; }
.slider-editorial .slide { display: grid; grid-template-columns: minmax(280px, 46%) 1fr; }
.slider-editorial .slide-copy { position: relative; left: auto; bottom: auto; width: auto; background: transparent; }
.slider-editorial .slide-title, .slider-editorial .slide-index { color: var(--site-ink); }
.slider-editorial .slide-text { color: #3d4a5c; }
.slider-editorial .slide-photo { position: relative; height: 72%; margin: 28px 28px 28px 0; }
.slider-editorial .slide-btn { background: var(--site-header); color: var(--site-header-ink); }
.slider-editorial .slider-controls button { color: var(--site-ink); border-color: rgba(20, 32, 51, 0.35); background: transparent; }
.slider-editorial .slider-rail { background: transparent; border-top: 1px solid rgba(20, 32, 51, 0.12); }
.slider-editorial .slider-rail button { color: var(--site-ink); }
.theme-shadow_white .slider-editorial .slide-btn { background: #111827; color: #fff; }
.slider-swatch-stage::before { left: 8px; top: 10px; bottom: 10px; width: 34%; background: #0b1f3a; }
.slider-swatch-stage::after { right: 8px; top: 10px; bottom: 10px; width: 46%; }
.slider-swatch-split::before { left: 8px; top: 10px; bottom: 10px; width: 40%; background: #0b1f3a; }
.slider-swatch-split::after { right: 8px; top: 10px; bottom: 10px; width: 40%; }
.slider-swatch-film::before { left: 8px; right: 8px; top: 10px; height: 34px; }
.slider-swatch-film::after { left: 8px; right: 8px; bottom: 10px; height: 14px; }
.slider-swatch-editorial::before { left: 8px; top: 16px; bottom: 16px; width: 48%; background: #0b1f3a; }
.slider-swatch-editorial::after { right: 10px; top: 12px; bottom: 12px; width: 30%; }
.layout-magazine .site-home { grid-template-columns: 1fr 1fr; }
.layout-magazine .widget-text, .layout-magazine .widget-news { grid-column: 1 / -1; }
.site-card { background: #fff; border-radius: 20px; padding: 18px; border: 0; box-shadow: 0 10px 30px rgba(20, 32, 51, 0.05); }
.site-prose { max-width: 68ch; padding: 8px 0 12px; font-size: 18px; line-height: 1.7; }
.site-prose p { margin: 0 0 12px; }
.site-prose h2, .site-prose h3 { margin: 18px 0 8px; }
.plugin-notice, .plugin-ticker, .plugin-band { max-width: 1180px; margin: 16px auto; padding: 0 24px; }
.plugin-notice { display: flex; gap: 12px; align-items: center; background: #fff7ed; border-radius: 12px; padding: 12px 16px; margin: 12px auto; }
.plugin-notice button { margin-left: auto; border: 0; background: transparent; font-weight: 700; cursor: pointer; }
.plugin-ticker { display: flex; flex-wrap: wrap; gap: 8px; }
.plugin-ticker span, .plugin-socials a { background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; }
.plugin-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; font-weight: 700; }
.plugin-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.plugin-photos figure { margin: 0; }
.plugin-photos img { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; display: block; }
.plugin-callout, .plugin-card { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: #fff; border-radius: 16px; padding: 16px 18px; }
.plugin-card { display: block; margin: 0 0 16px; }
.plugin-card h2 { margin: 0 0 8px; font-size: 22px; }
.plugin-crumb { margin: 0 0 8px; color: #64748b; }
.plugin-float { position: fixed; right: 16px; z-index: 20; border-radius: 999px; padding: 10px 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(20,32,51,.16); }
.plugin-whatsapp { bottom: 72px; background: #128c7e; color: #fff; }
.plugin-top { bottom: 16px; background: var(--site-header); color: #fff; border: 0; cursor: pointer; }
.public-site.theme-light .plugin-top { background: #142033; color: #fff; }
.public-site .plugin-whatsapp { color: #fff; }
.site-card h1, .site-card h2 { margin: 0 0 12px; font-size: 28px; letter-spacing: -0.03em; }
.site-card h2 { font-size: 22px; }
.site-card p { margin: 0 0 12px; line-height: 1.55; }
.site-muted { color: #64748b; font-family: "Segoe UI", sans-serif; font-size: 14px; }
.site-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #efeae3; }
.site-item:first-of-type { border-top: 0; padding-top: 0; }
.site-photo { width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; margin-bottom: 12px; }
.site-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.site-tile { margin: 0; min-height: 120px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--site-accent) 22%, #fff); display: flex; align-items: flex-end; }
.site-tile span, .site-tile figcaption { padding: 12px; font-weight: 700; }
.site-tile img { width: 100%; height: 140px; object-fit: cover; display: block; }
.site-tile figcaption { display: block; }
.site-link-row { margin: 0 0 8px; }
.site-search label, .site-complain label { display: grid; gap: 6px; margin-bottom: 10px; font-family: "Segoe UI", sans-serif; font-size: 14px; font-weight: 700; }
.site-search input, .site-complain input, .site-complain textarea {
  width: 100%; box-sizing: border-box; border: 1px solid #e7e1d8; border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff;
}
.site-search-row { display: flex; gap: 8px; }
.site-search-row input { flex: 1; }
.site-footer { background: var(--site-header); color: var(--site-header-ink); padding: 48px 24px 0; font-size: 15px; }
.site-footer .site-card { background: transparent; color: inherit; box-shadow: none; border-radius: 0; padding: 0; }
.site-footer .site-card h2 { margin: 0 0 10px; color: inherit; font-family: "Segoe UI", sans-serif; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer .site-card a, .site-footer .site-card p, .site-footer .site-link-row a { color: inherit; }
.site-footer .site-muted { color: rgba(255, 255, 255, 0.72); }
.theme-shadow_white .site-footer { background: #142033; color: #fff; }
.theme-shadow_white .site-footer a { color: #fff; }
.site-footer-inner { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 28px; padding-bottom: 28px; }
.site-footer nav, .site-footer-widgets { display: grid; gap: 8px; align-content: start; }
.site-brand-name { display: block; font-family: "Source Serif 4", Georgia, serif; font-size: 22px; margin-bottom: 8px; }
.site-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.site-socials a { border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.site-footer .site-socials a:hover { background: #fff; color: var(--site-header); }
.theme-shadow_white .site-footer .site-socials a:hover { color: #111827; }
.site-footbar { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.site-footbar .site-footer-inner { display: flex; justify-content: space-between; padding: 14px 0; font-size: 13px; opacity: 0.8; }
.site-alert { max-width: 1080px; margin: 16px auto 0; padding: 12px 16px; border-radius: 12px; font-family: "Segoe UI", sans-serif; }
.site-alert-ok { background: #ecfdf3; color: #166534; }
.site-alert-bad { background: #fef2f2; color: #991b1b; }
@media (max-width: 800px) {
  .site-wrap, .layout-sidebar-left .site-wrap, .layout-magazine .site-home, .site-footer-inner { grid-template-columns: 1fr; }
  .theme-grid, .layout-grid, .theme-browser, .plugin-photos { grid-template-columns: 1fr; }
  .plugin-callout { display: block; }
  .theme-active, .menu-builder, .widget-board, .menu-item { grid-template-columns: 1fr; }
  .layout-magazine .widget-text, .layout-magazine .widget-news { grid-column: auto; }
  .site-topbar-inner, .site-header-inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; }
  .site-hero, .site-pagehead { padding: 36px 0; }
  .slider:not(.slider-split):not(.slider-editorial) .slider-frame { height: 88vh; min-height: 560px; }
  .slider { padding: 0; }
  .slide-copy { left: 20px; bottom: 72px; width: calc(100% - 40px); }
  .slide-title { font-size: 42px; }
  .site-home, .site-gates-inner, .story-list, .event-rail { grid-template-columns: 1fr; }
  .site-gates-inner { margin: 16px 16px 0; }
  .site-gates a { border-right: 0; border-bottom: 1px solid #e6ebf1; }
  .site-home .widget-news, .site-home .widget-events, .site-home .site-statement, .site-home .widget-gallery { grid-column: 1 / -1; }
  .slider-rail { right: 20px; bottom: 24px; }
  .slider-split .slide, .slider-editorial .slide { grid-template-columns: 1fr; }
  .slider-split .slide-copy, .slider-editorial .slide-copy { position: absolute; left: 16px; bottom: 16px; width: calc(100% - 32px); }
  .slide-photo { opacity: 1; }
  .slider-editorial .slide-photo { opacity: 1; position: absolute; height: auto; margin: 0; }
  .slider-editorial .slide-copy { background: linear-gradient(180deg, rgba(244, 240, 232, 0.2), var(--site-paper) 70%); color: var(--site-ink); }
  .story, .story:first-child { grid-template-columns: 1fr; gap: 8px; }
  .story-photo, .story:first-child .story-photo { height: 180px; }
  .event-rail { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .slider-controls { top: 16px; right: 16px; bottom: auto; }
  .site-footer-inner, .site-footbar .site-footer-inner { grid-template-columns: 1fr; display: grid; }
}

@media print {
  .no-print, .sidebar, .topbar { display: none !important; }
  html, body, .app-shell, .main, .content { height: auto; overflow: visible; background: white; }
  .content { padding: 0; }
}
