@font-face {
    font-family: SUIT;
    src: url('fonts/SUIT-subset.woff2?v=20260912-pages-2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: SUITFull;
    src: url('fonts/SUIT-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
:root {
    --white: #fff;
    --mist: #f6f7f2;
    --olive: #707660;
    --olive-dark: #626750;
    --ink: #3c4034;
    --body: #6a6d63;
    --line: #e5e7df;
    --error: #a43838;
    --success: #466148;
    --s1: 4px;
    --s2: 8px;
    --s3: 12px;
    --s4: 16px;
    --s5: 20px;
    --s6: 24px;
    --s8: 32px;
    --s10: 40px;
    --s12: 48px;
    --sidebar: 224px;
    --content: 1360px;
    --radius: 4px;
    font-family: SUIT, SUITFull, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--white);
    font-synthesis: none;
    letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.6; word-break: keep-all; }
button, input, select, textarea { font: inherit; letter-spacing: 0; color: inherit; }
button, .button { white-space: nowrap; cursor: pointer; }
button { background: none; }
button:disabled { opacity: .45; cursor: default; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font-size: 28px; font-weight: 650; line-height: 1.4; }
h2 { font-size: 18px; font-weight: 650; line-height: 1.5; }
img { max-width: 100%; display: block; }
svg, [data-lucide] { width: 18px; height: 18px; flex: none; stroke-width: 1.7; }
form { margin: 0; }
small { display: block; font-size: 12px; color: var(--body); margin-top: var(--s1); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--olive-dark); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: var(--s4); padding: var(--s3); background: var(--white); z-index: 100; }
.skip-link:focus { top: var(--s4); }
.brand { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); font-size: 18px; font-weight: 700; }
.brand span { font-size: 12px; font-weight: 500; color: var(--body); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); border-right: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; padding: var(--s8) var(--s4) var(--s4); overflow-y: auto; z-index: 20; }
.desktop-brand { margin: 0 var(--s2) var(--s8); }
.desktop-brand span { width: 100%; }
.nav-group + .nav-group { margin-top: var(--s5); }
.nav-label { color: var(--body); font-size: 12px; padding: 0 var(--s3); margin-bottom: var(--s1); }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 44px; padding: var(--s2) var(--s3); border-radius: var(--radius); font-size: 14px; white-space: nowrap; }
.nav-link:hover { background: var(--mist); }
.nav-link.is-active { background: var(--mist); font-weight: 650; color: var(--ink); }
.sidebar-bottom { margin-top: auto; padding-top: var(--s8); }
.logout-button { width: 100%; border: 0; text-align: left; }
.mobile-header { display: none; }
.admin-main { margin-left: var(--sidebar); padding: 0 var(--s10) var(--s12); min-height: 100svh; max-width: calc(var(--content) + var(--sidebar)); }
.workspace-bar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); border-bottom: 1px solid var(--line); color: var(--body); font-size: 12px; margin-bottom: var(--s8); }
.account-name { max-width: 220px; overflow-wrap: anywhere; text-align: right; }
.page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s4); margin-bottom: var(--s8); }
.overline { font-size: 12px; color: var(--body); margin-bottom: var(--s1); }
.heading-count { font-size: 18px; font-weight: 450; color: var(--body); display: inline-block; }
.heading-actions, .form-actions, .row-actions, .filter-actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; font-weight: 550; background: var(--white); }
.button:hover { background: var(--mist); border-color: var(--olive); }
.button-primary { color: var(--white); background: var(--olive-dark); border-color: var(--olive-dark); }
.button-primary:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-small { font-size: 13px; padding-inline: var(--s3); }
.button-danger { background: var(--error); color: var(--white); border-color: var(--error); }
.button-danger:hover { background: var(--error); color: var(--white); border-color: var(--ink); }
.button-danger-outline { color: var(--error); border-color: var(--error); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; padding: var(--s3); border: 1px solid transparent; border-radius: var(--radius); }
.icon-button:hover { background: var(--mist); }
.text-link, .back-link { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; border: 0; padding: 0; font-size: 13px; font-weight: 550; white-space: nowrap; }
.text-link:hover, .record-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.back-link { color: var(--body); }
.text-danger { color: var(--error); }
.full-width { width: 100%; }
.notice { padding: var(--s4); margin-bottom: var(--s6); border: 1px solid var(--line); border-left: 3px solid var(--olive); border-radius: var(--radius); background: var(--mist); overflow-wrap: anywhere; }
.notice-error { border-left-color: var(--error); color: var(--error); }
.notice-success { border-left-color: var(--success); color: var(--success); }
.notice-info { color: var(--ink); }
.guest-header { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s6) var(--s10); border-bottom: 1px solid var(--line); }
.guest-main { margin: 0; padding: var(--s8) var(--s6); max-width: none; min-height: calc(100svh - 92px); }
.guest-main > .notice { max-width: 480px; margin: 0 auto var(--s6); }
.auth-panel { max-width: 400px; margin: 64px auto; }
.auth-heading { margin-bottom: var(--s8); }
.form-stack { display: flex; flex-direction: column; gap: var(--s5); }
.field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; }
.field > label { font-size: 13px; font-weight: 650; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; padding: var(--s3); border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); min-height: 44px; }
select { padding-right: var(--s8); text-overflow: ellipsis; }
input[readonly] { background: var(--mist); color: var(--body); }
textarea { resize: vertical; line-height: 1.8; }
input[type=file] { font-size: 12px; padding: var(--s2); }
input[type=file]::file-selector-button { font: inherit; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mist); color: var(--ink); padding: var(--s2); margin-right: var(--s2); cursor: pointer; }
.field-hint { font-size: 12px; line-height: 1.7; color: var(--body); }
.field-error { font-size: 12px; color: var(--error); }
.form-section { border-top: 1px solid var(--line); padding-top: var(--s6); }
.narrow-section { max-width: 560px; }
.filter-bar { display: flex; align-items: flex-end; gap: var(--s3); margin-bottom: var(--s6); flex-wrap: wrap; }
.filter-search { flex: 1 1 240px; max-width: 520px; }
.filter-status { flex: 0 1 160px; }
.filter-actions { flex: none; }
.table-scroll { position: relative; width: 100%; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { font-size: 12px; font-weight: 650; color: var(--body); background: var(--mist); white-space: nowrap; }
th, td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: middle; }
td { font-size: 13px; }
tbody tr:hover { background: var(--mist); }
.nowrap { white-space: nowrap; }
.numeric { font-variant-numeric: tabular-nums; }
.contact-cell { min-width: 200px; max-width: 300px; overflow-wrap: anywhere; }
.record-link { font-weight: 650; overflow-wrap: anywhere; }
.row-actions { flex-wrap: nowrap; min-height: 44px; }
.row-actions form { flex: none; }
.row-actions .reactivate-form { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); min-width: 208px; }
.reactivate-form .checkbox-row { gap: var(--s2); font-size: 12px; }
.status { display: inline-flex; align-items: center; min-height: 28px; padding: var(--s1) var(--s2); background: var(--mist); color: var(--body); border: 1px solid var(--line); border-radius: var(--radius); font-size: 12px; white-space: nowrap; }
.status-new { color: var(--error); border-color: var(--error); }
.status-contacted { color: var(--olive-dark); border-color: var(--olive); }
.status-confirmed, .status-active { color: var(--success); border-color: var(--success); }
.status-spam { color: var(--error); }
.empty-state { padding-block: var(--s12); color: var(--body); text-align: center; }
.pagination { display: flex; justify-content: space-between; gap: var(--s4); align-items: center; padding-block: var(--s4); font-size: 12px; color: var(--body); }
.pagination-controls { display: flex; align-items: center; gap: var(--s1); }
.page-number { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-block: 1px solid var(--line); margin-bottom: var(--s10); }
.metric { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s3); padding: var(--s6); border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric > span:first-child { font-size: 13px; color: var(--body); }
.metric strong { font-size: 32px; line-height: 1.25; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric-footer { display: flex; align-items: center; gap: var(--s2); font-size: 12px; }
.metric:hover .metric-footer { text-decoration: underline; text-underline-offset: 4px; }
.content-section { margin-top: var(--s8); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.quick-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--line); }
.quick-links a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s5) var(--s4); border-right: 1px solid var(--line); }
.quick-links a:last-child { border-right: 0; }
.quick-links a:hover { background: var(--mist); }
.public-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); margin-top: var(--s8); color: var(--body); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,1fr); gap: var(--s10); }
.detail-content, .detail-management { min-width: 0; border-top: 1px solid var(--line); padding-top: var(--s6); }
.detail-list { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: var(--s4); margin-block: var(--s6); }
.detail-list dt { color: var(--body); font-size: 13px; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.message-section { padding-top: var(--s6); border-top: 1px solid var(--line); }
.plain-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: var(--s4); line-height: 1.9; }
.detail-management > h2 { margin-bottom: var(--s6); }
.content-tabs { display: flex; gap: var(--s6); margin-bottom: var(--s6); border-bottom: 1px solid var(--line); }
.content-tabs a { display: flex; align-items: center; min-height: 48px; border-bottom: 2px solid transparent; padding-inline: var(--s1); white-space: nowrap; color: var(--body); }
.content-tabs a[aria-current=page] { border-color: var(--olive-dark); font-weight: 650; color: var(--ink); }
.content-cell { display: flex; align-items: center; gap: var(--s3); min-width: 240px; max-width: 420px; }
.content-cell > div { min-width: 0; }
.content-cell small { overflow-wrap: anywhere; }
.table-image { width: 80px; height: 60px; object-fit: cover; flex: none; border-radius: var(--radius); }
.content-editor { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(280px,1fr); gap: var(--s8); }
.editor-primary, .editor-secondary { min-width: 0; }
.body-editor { min-height: 340px; }
.image-preview { width: 100%; aspect-ratio: 3 / 2; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.image-preview img { width: 100%; height: 100%; object-fit: contain; }
.image-placeholder { display: flex; flex-direction: column; align-items: center; gap: var(--s3); color: var(--body); font-size: 12px; }
.image-placeholder svg { width: 28px; height: 28px; }
.image-library summary { cursor: pointer; min-height: 44px; padding-block: var(--s3); font-size: 13px; }
.image-library summary span { font-size: 12px; color: var(--body); }
.image-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--s2); max-height: 340px; overflow-y: auto; padding: var(--s1); }
.image-choice { aspect-ratio: 4 / 3; padding: 2px; border: 2px solid transparent; border-radius: var(--radius); width: 100%; min-width: 0; }
.image-choice img { width: 100%; height: 100%; object-fit: cover; }
.image-choice[aria-pressed=true] { border-color: var(--olive-dark); }
.image-choice:hover { border-color: var(--olive); }
.editor-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: var(--s3); padding-block: var(--s5); border-top: 1px solid var(--line); background: var(--white); }
.checkbox-row { display: flex; align-items: center; gap: var(--s3); min-height: 44px; }
input[type=checkbox] { accent-color: var(--olive-dark); width: 24px; height: 24px; flex: none; margin: 0; }
.confirmation-section { max-width: 680px; padding-block: var(--s6); border-top: 1px solid var(--line); }
.confirmation-section h2 { overflow-wrap: anywhere; }
.confirmation-section > p { color: var(--body); margin-block: var(--s4) var(--s6); }
.error-section { max-width: 680px; margin-block: var(--s10); }
.error-section > p { margin-block: var(--s4); color: var(--body); }
.error-section .button { margin-top: var(--s4); }
.admin-page-header { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s6); }
.admin-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); padding: var(--s2) var(--s4); min-height: 44px; white-space: nowrap; border: 1px solid var(--olive-dark); border-radius: var(--radius); background: var(--olive-dark); color: var(--white); }
.admin-button.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.admin-button:hover { border-color: var(--ink); }
.admin-filters { display: flex; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s6); }
.analytics-filters .field, .admin-filters label { flex: 1 1 150px; min-width: 0; max-width: 240px; font-size: 13px; font-weight: 550; }
.admin-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--line); }
.admin-stat { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s6); border-right: 1px solid var(--line); }
.admin-stat:last-child { border-right: 0; }
.admin-stat strong { font-size: 32px; font-variant-numeric: tabular-nums; }
.admin-section { margin-top: var(--s8); }
.admin-table-wrap { position: relative; overflow-x: auto; border-top: 1px solid var(--line); width: 100%; }
.admin-table caption { text-align: left; color: var(--body); font-size: 12px; padding-block: var(--s3); }
.admin-table th[scope=row] { background: none; font-weight: 500; color: var(--ink); white-space: normal; overflow-wrap: anywhere; }
.admin-muted, .muted { color: var(--body); font-size: 13px; }
.admin-empty { text-align: center; color: var(--body); padding-block: var(--s12); }
.admin-chart { position: relative; width: 100%; height: 320px; min-width: 0; margin-block: var(--s5); }
.admin-chart canvas { max-width: 100%; }
.analytics-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: var(--s6); }
.analytics-collection { display: flex; flex-wrap: wrap; gap: var(--s2); }
.analytics-page .content-section > h2 { margin-bottom: var(--s4); }
.analytics-page details > summary { min-height: 44px; padding-block: var(--s3); cursor: pointer; }
.analytics-definitions p { margin-block: var(--s3); color: var(--body); font-size: 13px; }
.analytics-log-table code { overflow-wrap: anywhere; }
.analytics-log-table time { white-space: nowrap; }
.analytics-pagination { margin-top: var(--s5); flex-wrap: wrap; gap: var(--s2); }
.analytics-pagination [aria-current=page] { background: var(--olive-dark); color: var(--white); }
@media (max-width: 1100px) {
    :root { --sidebar: 208px; }
    .admin-main { padding-inline: var(--s6); }
    .content-editor, .detail-layout { grid-template-columns: minmax(0,1fr); }
    .editor-secondary { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
    .metric { padding-inline: var(--s4); }
}
@media (max-width: 800px) {
    .sidebar { position: static; width: auto; display: block; padding: var(--s4); border-right: 0; border-bottom: 1px solid var(--line); }
    .desktop-brand { display: none; }
    .sidebar nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--s4); }
    .nav-group + .nav-group { margin-top: 0; }
    .sidebar-bottom { display: flex; justify-content: space-between; padding-top: var(--s4); }
    .js .sidebar { display: none; }
    .js .sidebar.is-open { display: block; }
    .mobile-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s3) var(--s5); min-height: 68px; border-bottom: 1px solid var(--line); }
    .admin-main { margin: 0; min-height: auto; padding-inline: var(--s5); }
    .workspace-bar { min-height: 56px; margin-bottom: var(--s6); }
    .account-name { max-width: 130px; }
    h1 { font-size: 24px; }
    .page-heading { margin-bottom: var(--s6); }
    .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .metric { padding: var(--s5); }
    .metric:first-child { padding-left: var(--s5); }
    .metric:nth-child(2) { border-right: 0; }
    .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .table-scroll table { min-width: 700px; }
    .content-table { min-width: 1000px !important; }
    .guest-main { padding: var(--s6); }
    .guest-header { padding: var(--s4) var(--s5); }
    .analytics-metrics .metric { border-bottom: 0; border-right: 1px solid var(--line); }
    .analytics-metrics .metric:last-child { border-right: 0; }
    .analytics-page .table-scroll table, .admin-table-wrap table { min-width: 520px; }
    .analytics-page .analytics-log-table { min-width: 800px; }
}
@media (max-width: 500px) {
    .editor-secondary { display: flex; }
    .filter-search { flex-basis: 100%; max-width: none; }
    .filter-status { flex: 1; }
    .filter-actions { flex: none; }
    .pagination { gap: var(--s1); }
    .pagination p { font-size: 12px; }
    .quick-links { grid-template-columns: 1fr; }
    .quick-links a { border-right: 0; border-bottom: 1px solid var(--line); }
    .quick-links a:last-child { border-bottom: 0; }
    .detail-list { grid-template-columns: 96px minmax(0,1fr); gap: var(--s3); }
    .auth-panel { margin-block: var(--s10); }
    .guest-header .brand { font-size: 16px; }
    input:not([type=checkbox]), textarea, select { font-size: 16px; }
    input[type=file] { font-size: 13px; }
    .public-links { gap: var(--s2) var(--s4); }
    .analytics-metrics, .admin-stats { grid-template-columns: minmax(0,1fr); }
    .analytics-metrics .metric, .admin-stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .analytics-metrics .metric:last-child, .admin-stat:last-child { border-bottom: 0; }
    .analytics-filters .field, .admin-filters label { max-width: none; }
    .admin-chart { height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
