:root {
    color-scheme: light;
    --bg: #f3f5f2;
    --surface: #ffffff;
    --surface-soft: #f8faf8;
    --surface-raised: #ffffff;
    --ink: #17221d;
    --ink-soft: #58655f;
    --muted: #7c8983;
    --line: #dfe6e1;
    --line-strong: #cdd8d1;
    --primary: #176b52;
    --primary-strong: #0e533e;
    --primary-soft: #dff3ea;
    --accent: #e5a93e;
    --danger: #c84b4b;
    --danger-soft: #fde9e7;
    --success: #1b7a55;
    --warning: #9a6700;
    --sidebar: #12251e;
    --sidebar-soft: #1d372e;
    --sidebar-text: #d7e5de;
    --shadow: 0 14px 38px rgba(26, 48, 39, .07);
    --shadow-strong: 0 22px 60px rgba(11, 31, 23, .16);
    --radius: 18px;
    --radius-small: 11px;
    --sidebar-width: 276px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #101713;
    --surface: #18211d;
    --surface-soft: #1d2823;
    --surface-raised: #202c26;
    --ink: #edf4f0;
    --ink-soft: #b1beb7;
    --muted: #84948b;
    --line: #2b3a33;
    --line-strong: #3b4d44;
    --primary: #45ba8c;
    --primary-strong: #68d3a8;
    --primary-soft: #173b2d;
    --accent: #f0bd5a;
    --danger: #ef7770;
    --danger-soft: #442421;
    --success: #53c794;
    --warning: #efbd55;
    --sidebar: #0c1511;
    --sidebar-soft: #192b23;
    --sidebar-text: #d9e8e0;
    --shadow: 0 16px 42px rgba(0, 0, 0, .22);
    --shadow-strong: 0 26px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.16; letter-spacing: -.025em; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.button { align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; display: inline-flex; font-weight: 700; gap: 8px; justify-content: center; min-height: 44px; padding: 10px 17px; transition: border-color .2s, background .2s, color .2s, transform .2s, box-shadow .2s; }
.button:hover { border-color: var(--primary); transform: translateY(-1px); }
.button:focus-visible, .icon-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 28%, transparent); outline-offset: 2px; }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 24%, transparent); }
html[data-theme="dark"] .button-primary { color: #071b13; }
.button-primary:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.button-secondary { background: var(--surface-soft); }
.button-ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.button-danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.button-compact { min-height: 38px; padding: 7px 12px; font-size: 13px; }
.button-large { min-height: 52px; width: 100%; }
.icon-button, .theme-toggle { align-items: center; background: transparent; border: 1px solid var(--line); border-radius: 10px; color: var(--ink-soft); display: inline-flex; flex: 0 0 auto; height: 40px; justify-content: center; padding: 0; width: 40px; }
.icon-button:hover, .theme-toggle:hover { background: var(--surface-soft); color: var(--primary); }
.icon-danger { color: var(--danger); }
.icon-success { color: var(--success); }
.text-link, .back-link { color: var(--primary); display: inline-flex; font-size: 14px; font-weight: 700; gap: 7px; align-items: center; }
.text-link:hover, .back-link:hover { color: var(--primary-strong); }

.sidebar { background: var(--sidebar); bottom: 0; color: var(--sidebar-text); display: flex; flex-direction: column; left: 0; overflow-y: auto; padding: 25px 18px 18px; position: fixed; top: 0; width: var(--sidebar-width); z-index: 40; }
.brand { align-items: center; display: flex; gap: 12px; min-width: 0; }
.brand-mark { align-items: center; background: var(--primary); border-radius: 12px 4px 12px 12px; color: #fff; display: inline-flex; flex: 0 0 auto; font-size: 23px; height: 43px; justify-content: center; width: 43px; }
.brand-mark i { transform: translateX(1px); }
.brand > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.brand strong { font-size: 17px; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand small { color: #8fa69b; font-size: 11px; letter-spacing: .04em; }
.sidebar .brand { margin: 0 8px 35px; }
.sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 5px; }
.nav-label { color: #718b7e; font-size: 10px; font-weight: 800; letter-spacing: .14em; margin: 20px 12px 8px; }
.nav-label:first-child { margin-top: 0; }
.nav-item { align-items: center; border-radius: 11px; color: #a9bdb3; display: flex; font-size: 14px; font-weight: 600; gap: 12px; min-height: 44px; padding: 10px 12px; transition: .2s; }
.nav-item i { font-size: 18px; width: 21px; }
.nav-item:hover { background: var(--sidebar-soft); color: #fff; }
.nav-item.is-active { background: #245640; color: #fff; box-shadow: inset 3px 0 #65d3a6; }
.sidebar-profile { align-items: center; border-top: 1px solid rgba(255,255,255,.09); display: flex; gap: 10px; margin-top: 25px; padding: 18px 5px 0; }
.avatar { align-items: center; background: var(--primary-soft); border-radius: 50%; color: var(--primary); display: inline-flex; flex: 0 0 auto; font-size: 13px; font-weight: 800; height: 39px; justify-content: center; width: 39px; }
.avatar-small { height: 34px; width: 34px; }
.profile-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.profile-copy strong, .profile-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy strong { color: #f1f7f4; font-size: 13px; }
.profile-copy small { color: #8fa69b; font-size: 11px; }
.sidebar-profile .icon-button { border-color: transparent; color: #94aa9f; height: 34px; width: 34px; }
.sidebar-profile form { display: flex; }
.sidebar-backdrop { display: none; }

.app-main { margin-left: var(--sidebar-width); min-height: 100vh; }
.topbar { align-items: center; background: color-mix(in srgb, var(--bg) 90%, transparent); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; min-height: 84px; padding: 13px clamp(22px, 3.2vw, 48px); position: sticky; top: 0; backdrop-filter: blur(16px); z-index: 25; }
.topbar-title { align-items: center; display: flex; gap: 12px; }
.topbar h1 { font-size: 22px; margin: 2px 0 0; }
.eyebrow, .section-kicker { color: var(--primary); display: block; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.topbar-actions { align-items: center; display: flex; gap: 10px; }
.mobile-menu { display: none; }
.page-content { margin: 0 auto; max-width: 1660px; padding: 30px clamp(22px, 3.2vw, 48px) 55px; }

.alerts { display: grid; gap: 10px; margin-bottom: 20px; }
.alert { align-items: center; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: 11px; box-shadow: var(--shadow); display: flex; gap: 10px; padding: 13px 15px; }
.alert-warning { border-left-color: var(--accent); }
.alert-error, .alert-danger { border-left-color: var(--danger); }
.alert > span { flex: 1; }
.alert > button { background: none; border: 0; color: var(--muted); }
.secret-notice { background: linear-gradient(125deg, var(--surface), var(--primary-soft)); border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--line)); border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 18px; padding: 20px; }
.secret-notice > div:first-child { align-items: center; display: flex; gap: 13px; }
.secret-notice p { color: var(--ink-soft); margin: 2px 0 0; }
.notice-icon, .large-icon { align-items: center; background: var(--primary-soft); border-radius: 12px; color: var(--primary); display: inline-flex; flex: 0 0 auto; font-size: 21px; height: 45px; justify-content: center; width: 45px; }
.credential-grid { align-items: end; display: grid; gap: 12px; grid-template-columns: minmax(150px, 1fr) minmax(180px, 1fr) auto; }
.credential-grid label { color: var(--muted); display: flex; flex-direction: column; font-size: 11px; gap: 3px; text-transform: uppercase; }
.credential-grid label span, .credential-grid code { color: var(--ink); font-size: 14px; text-transform: none; }
.copy-row { display: flex; gap: 10px; }
.copy-row input { flex: 1; }
.copy-helper { left: -9999px; position: fixed; top: 0; }

.client-video-library { margin-top: 42px; }
.public-video-list { padding: 0; }
.public-video-item { align-items: flex-start; display: flex; gap: 13px; padding: 18px 22px; }
.public-video-item + .public-video-item { border-top: 1px solid var(--line); }
.public-video-main { flex: 1; min-width: 0; }
.public-video-heading { align-items: flex-start; display: flex; gap: 15px; justify-content: space-between; }
.public-video-heading > div { display: flex; flex-direction: column; min-width: 0; }
.public-video-heading strong, .public-video-heading small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-video-heading small { color: var(--muted); margin-top: 3px; }
.public-video-actions { display: flex; gap: 8px; margin-top: 12px; }
.public-video-actions input { flex: 1; min-width: 160px; }
.slug-input { align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; display: flex; min-height: 44px; overflow: hidden; }
.slug-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent); }
.slug-input small { background: var(--surface-soft); border-right: 1px solid var(--line); color: var(--muted); flex: 0 0 auto; font-size: 11px; height: 42px; line-height: 42px; max-width: 48%; overflow: hidden; padding: 0 10px; text-overflow: ellipsis; white-space: nowrap; }
.slug-input input { border: 0; border-radius: 0; flex: 1; min-width: 0; outline: 0; }
.gallery-manager { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-manager-item { align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 11px; min-width: 0; padding: 10px; }
.gallery-manager-item img { background: var(--line); border-radius: 8px; flex: 0 0 auto; height: 68px; object-fit: cover; width: 92px; }
.gallery-manager-item > div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.gallery-manager-item strong, .gallery-manager-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery-manager-item small { color: var(--muted); }
.gallery-manager-item form { display: flex; }
.gallery-add-form { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; }
.gallery-add-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 23px; }
.panel-heading { align-items: flex-start; display: flex; gap: 15px; justify-content: space-between; margin-bottom: 20px; }
.panel-heading h2 { font-size: 19px; margin: 4px 0 0; }
.panel-heading p { color: var(--ink-soft); font-size: 13px; margin: 5px 0 0; }
.welcome-strip { align-items: center; background: linear-gradient(125deg, #143b2e, #1c6d50); border-radius: var(--radius); color: #fff; display: flex; justify-content: space-between; margin-bottom: 20px; overflow: hidden; padding: 25px 28px; position: relative; }
.welcome-strip::after { border: 28px solid rgba(255,255,255,.06); border-radius: 50%; content: ""; height: 140px; position: absolute; right: 13%; top: -86px; width: 140px; }
.welcome-strip h2 { font-size: 24px; margin: 3px 0; }
.welcome-strip p { color: #bcd4c9; margin: 0; }
.welcome-strip .section-kicker { color: #78d4ad; }
.welcome-date { align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; display: flex; gap: 9px; padding: 10px 13px; z-index: 1; }
.metric-grid { display: grid; gap: 15px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 20px; }
.metric-grid-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.metric-card { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); display: flex; gap: 14px; min-width: 0; padding: 19px; }
.metric-icon { align-items: center; background: var(--surface-soft); border-radius: 12px; color: var(--ink-soft); display: flex; flex: 0 0 auto; font-size: 21px; height: 46px; justify-content: center; width: 46px; }
.metric-card > div:last-child { display: flex; flex-direction: column; min-width: 0; }
.metric-card span { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.metric-card strong { font-size: 25px; line-height: 1.1; }
.metric-card small { color: var(--muted); font-size: 11px; }
.metric-mint .metric-icon { background: #dff3ea; color: #176b52; }
.metric-blue .metric-icon { background: #e2edf9; color: #28669d; }
.metric-amber .metric-icon { background: #fbefd8; color: #9a6700; }
.metric-violet .metric-icon { background: #eee8fb; color: #6c4fa3; }
html[data-theme="dark"] .metric-mint .metric-icon { background: #173b2d; color: #53c794; }
html[data-theme="dark"] .metric-blue .metric-icon { background: #1d3041; color: #71aee2; }
html[data-theme="dark"] .metric-amber .metric-icon { background: #3d311b; color: #efbd55; }
html[data-theme="dark"] .metric-violet .metric-icon { background: #302746; color: #b59ae7; }
.dashboard-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(290px, .8fr); margin-bottom: 20px; }
.dashboard-grid-lower { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); }
.trend-list { display: grid; gap: 12px; }
.trend-row { align-items: center; display: grid; font-size: 12px; gap: 12px; grid-template-columns: 38px 1fr 35px; }
progress { appearance: none; background: var(--surface-soft); border: 0; border-radius: 10px; height: 9px; overflow: hidden; width: 100%; }
progress::-webkit-progress-bar { background: var(--surface-soft); }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--primary), #59c89c); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--primary); border-radius: 10px; }
.quick-actions { display: grid; gap: 9px; }
.quick-actions a { align-items: center; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 11px; padding: 11px; transition: .2s; }
.quick-actions a:hover { border-color: var(--primary); transform: translateX(2px); }
.quick-actions a > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.quick-actions small { color: var(--muted); }
.quick-icon { align-items: center; background: var(--primary-soft); border-radius: 9px; color: var(--primary); display: flex; height: 38px; justify-content: center; width: 38px; }
.table-panel { padding-left: 0; padding-right: 0; }
.table-panel > .panel-heading { padding-left: 23px; padding-right: 23px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; min-width: 650px; width: 100%; }
th { background: var(--surface-soft); color: var(--muted); font-size: 10px; letter-spacing: .08em; padding: 11px 17px; text-align: left; text-transform: uppercase; }
td { border-top: 1px solid var(--line); font-size: 13px; padding: 14px 17px; vertical-align: middle; }
tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 32%, transparent); }
.table-title { font-weight: 750; }
.table-title:hover { color: var(--primary); }
.table-subtitle { color: var(--muted); display: block; font-size: 11px; margin-top: 2px; }
.type-pill, .count-badge { align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; display: inline-flex; font-size: 11px; gap: 5px; padding: 4px 8px; white-space: nowrap; }
.activity-list { display: grid; }
.activity-item { display: flex; gap: 12px; padding: 10px 0; }
.activity-item + .activity-item { border-top: 1px solid var(--line); }
.activity-item > div { display: flex; flex-direction: column; }
.activity-item strong { font-size: 12px; font-weight: 650; }
.activity-item small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.activity-dot { background: var(--primary); border: 4px solid var(--primary-soft); border-radius: 50%; flex: 0 0 auto; height: 13px; margin-top: 4px; width: 13px; }

.page-toolbar { align-items: end; display: flex; gap: 15px; justify-content: space-between; margin-bottom: 22px; }
.filter-bar { align-items: end; display: flex; flex-wrap: wrap; gap: 9px; }
.filter-bar-wide { flex: 1; }
.filter-bar input, .filter-bar select { min-height: 40px; }
.filter-bar select { max-width: 190px; }
.search-input { align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; display: flex; gap: 8px; min-width: min(330px, 100%); padding: 0 12px; }
.search-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent); }
.search-input i { color: var(--muted); }
.search-input input { background: transparent; border: 0; flex: 1; min-width: 0; outline: 0; padding: 9px 0; }
input, select, textarea { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; min-height: 44px; padding: 10px 12px; width: 100%; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
textarea { min-height: 100px; resize: vertical; }
.result-heading, .library-heading { align-items: end; display: flex; justify-content: space-between; margin: 25px 0 17px; }
.result-heading h2, .library-heading h2 { font-size: 22px; margin: 4px 0 0; }
.result-heading p, .library-heading p { color: var(--muted); margin: 4px 0 0; }
.identity-cell { align-items: center; display: flex; gap: 10px; min-width: 190px; }
.identity-cell > div { display: flex; flex-direction: column; }
.identity-cell small { color: var(--muted); font-size: 11px; }
.status { align-items: center; border-radius: 999px; display: inline-flex; font-size: 11px; font-weight: 700; gap: 6px; padding: 4px 8px; white-space: nowrap; }
.status > span { border-radius: 50%; height: 6px; width: 6px; }
.status-active { background: var(--primary-soft); color: var(--success); }
.status-active > span { background: var(--success); }
.status-inactive { background: var(--danger-soft); color: var(--danger); }
.status-inactive > span { background: var(--danger); }
.actions-column { text-align: right; }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.row-actions form { display: flex; }
.row-actions .icon-button { height: 35px; width: 35px; }
.pagination { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 24px; }
.pagination a { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; display: flex; font-size: 13px; font-weight: 700; height: 36px; justify-content: center; min-width: 36px; }
.pagination a:hover, .pagination a.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-state { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 280px; padding: 45px 20px; text-align: center; }
.empty-state > span { align-items: center; background: var(--primary-soft); border-radius: 50%; color: var(--primary); display: flex; font-size: 30px; height: 70px; justify-content: center; margin-bottom: 14px; width: 70px; }
.empty-state h3 { margin-bottom: 5px; }
.empty-state p { color: var(--muted); max-width: 420px; }
.empty-compact { align-items: center; color: var(--muted); display: flex; flex-direction: column; justify-content: center; min-height: 130px; padding: 20px; text-align: center; }
.empty-compact i { color: var(--primary); font-size: 25px; }

.form-page { margin: 0 auto; max-width: 940px; }
.content-form-page { max-width: 1080px; }
.form-page-intro { margin: 0 0 20px; }
.form-page-intro h2 { font-size: 26px; margin: 16px 0 5px; }
.form-page-intro p { color: var(--ink-soft); margin-bottom: 0; }
.form-panel { padding: 0; }
.form-section { padding: 27px; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.form-section-title { display: flex; gap: 13px; margin-bottom: 22px; }
.form-section-title > span { align-items: center; background: var(--primary-soft); border-radius: 9px; color: var(--primary); display: flex; flex: 0 0 auto; font-size: 12px; font-weight: 800; height: 34px; justify-content: center; width: 34px; }
.form-section-title h3 { font-size: 17px; margin: 1px 0 3px; }
.form-section-title p { color: var(--muted); font-size: 12px; margin: 0; }
.form-grid { display: grid; gap: 17px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span:first-child { font-size: 12px; font-weight: 750; }
.field > span em { color: var(--muted); font-size: 10px; font-style: normal; font-weight: 500; }
.field > small { color: var(--muted); font-size: 11px; }
.field-wide { grid-column: 1 / -1; }
.field-error { color: var(--danger) !important; display: block; font-size: 11px; }
.standalone-error { align-items: center; display: flex; gap: 6px; margin-top: 9px; }
.input-icon { align-items: center; display: flex; position: relative; }
.input-icon > i { color: var(--muted); left: 12px; position: absolute; }
.input-icon input { padding-left: 37px; padding-right: 42px; }
.password-toggle { background: transparent; border: 0; color: var(--muted); height: 100%; position: absolute; right: 5px; width: 35px; }
.form-actions { align-items: center; background: var(--surface-soft); border-radius: 0 0 var(--radius) var(--radius); border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; padding: 18px 27px; }
.narrow-page { margin: 20px auto; max-width: 650px; }
.narrow-page .panel { padding: 28px; }
.narrow-page .form-actions { background: transparent; border-radius: 0; margin: 12px -28px -28px; }
.private-confirm { padding: 34px; text-align: center; }
.private-confirm .large-icon { margin-bottom: 16px; }
.private-confirm h2 { margin: 7px 0; }
.private-confirm p { color: var(--ink-soft); }
.private-confirm form { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.callout { align-items: flex-start; background: #fff4d9; border: 1px solid #f0d38d; border-radius: 13px; color: #6e4b00; display: flex; gap: 12px; margin-bottom: 18px; padding: 15px; }
.callout > i { font-size: 22px; }
.callout strong { display: block; }
.callout p { margin: 2px 0 0; }
.callout-success { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, transparent); color: var(--primary); margin-top: 12px; }
.compact-callout { font-size: 12px; margin: 0; }
html[data-theme="dark"] .callout { background: #3b301a; border-color: #695526; color: #f1ca72; }

.split-layout { align-items: start; display: grid; gap: 20px; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.5fr); }
.sticky-panel { position: sticky; top: 105px; }
.category-list { display: grid; }
.category-row { border-top: 1px solid var(--line); }
.category-row summary { align-items: center; cursor: pointer; display: flex; gap: 12px; list-style: none; padding: 16px 22px; }
.category-row summary::-webkit-details-marker { display: none; }
.category-row summary > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.category-row summary small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-symbol { align-items: center; background: var(--primary-soft); border-radius: 9px; color: var(--primary); display: flex; height: 38px; justify-content: center; width: 38px; }
.category-row[open] summary > i { transform: rotate(180deg); }
.category-editor { align-items: end; background: var(--surface-soft); border-top: 1px solid var(--line); display: flex; gap: 10px; padding: 16px 22px; }
.inline-edit-form { align-items: end; display: grid; flex: 1; gap: 10px; grid-template-columns: 1fr 1.5fr auto; }

.content-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.admin-content-grid { grid-template-columns: repeat(3, minmax(250px, 1fr)); }
.content-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: border-color .22s, transform .22s, box-shadow .22s; }
.content-card:hover { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); box-shadow: var(--shadow-strong); transform: translateY(-3px); }
.content-cover { aspect-ratio: 16 / 9; background: var(--surface-soft); overflow: hidden; position: relative; }
.content-cover img { height: 100%; object-fit: cover; width: 100%; }
.cover-placeholder { align-items: center; display: flex; font-size: 52px; height: 100%; justify-content: center; position: relative; width: 100%; }
.cover-placeholder::before { background: repeating-linear-gradient(135deg, transparent, transparent 14px, rgba(255,255,255,.05) 14px, rgba(255,255,255,.05) 28px); content: ""; inset: 0; position: absolute; }
.cover-video { background: linear-gradient(140deg, #123c30, #2d8061); color: #c8f2df; }
.cover-document { background: linear-gradient(140deg, #27394e, #54789a); color: #d9ebfb; }
.cover-type, .publish-dot { align-items: center; backdrop-filter: blur(8px); border-radius: 999px; display: flex; font-size: 10px; font-weight: 800; gap: 5px; padding: 5px 8px; position: absolute; top: 10px; }
.cover-type { background: rgba(12,25,20,.72); color: #fff; left: 10px; }
.publish-dot { right: 10px; }
.is-published { background: rgba(220,249,235,.9); color: #0f6344; }
.is-draft { background: rgba(255,239,210,.92); color: #765000; }
.content-card-body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.content-category { color: var(--primary); font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.content-card h3 { display: -webkit-box; font-size: 17px; margin: 7px 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.content-card-body > p { color: var(--ink-soft); display: -webkit-box; font-size: 12px; margin-bottom: 14px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.content-meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 10px; gap: 12px; margin-top: auto; }
.content-meta span { align-items: center; display: flex; gap: 5px; }
.access-line { align-items: center; border-top: 1px solid var(--line); color: var(--ink-soft); display: flex; font-size: 11px; gap: 7px; margin-top: 13px; padding-top: 12px; }
.content-card-actions { align-items: center; background: var(--surface-soft); border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 10px 14px; }
.content-card-actions form { display: flex; }
.current-file { align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 11px; margin-bottom: 14px; padding: 12px; }
.current-file > div { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.current-file strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.current-file small { color: var(--muted); }
.file-symbol { align-items: center; background: var(--primary-soft); border-radius: 9px; color: var(--primary); display: flex; font-size: 20px; height: 40px; justify-content: center; width: 40px; }
.upload-drop { align-items: center; background: var(--surface-soft); border: 1.5px dashed var(--line-strong); border-radius: 14px; cursor: pointer; display: flex; gap: 14px; padding: 20px; transition: .2s; }
.upload-drop:hover { background: var(--primary-soft); border-color: var(--primary); }
.upload-drop:focus-within, .option-card:focus-within, .client-check:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.upload-drop input { height: 1px; min-height: 0; opacity: 0; overflow: hidden; padding: 0; position: absolute; width: 1px; }
.upload-drop > span:nth-of-type(2) { display: flex; flex: 1; flex-direction: column; }
.upload-drop small { color: var(--muted); }
.upload-icon { align-items: center; background: var(--primary-soft); border-radius: 12px; color: var(--primary); display: flex; font-size: 24px; height: 50px; justify-content: center; width: 50px; }
.upload-progress { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; padding: 13px; }
.upload-progress > div { display: flex; font-size: 12px; justify-content: space-between; margin-bottom: 8px; }
.upload-progress small { color: var(--muted); }
.upload-progress.has-error { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.upload-cancel { align-self: flex-start; margin-top: 8px; }
.thumbnail-current { align-items: center; display: flex; gap: 13px; grid-column: 1 / -1; }
.thumbnail-current img { border-radius: 10px; height: 85px; object-fit: cover; width: 150px; }
.check-row { align-items: center; display: flex; gap: 10px; }
.check-row input { height: 18px; width: 18px; }
.check-row span { display: flex; flex-direction: column; }
.check-row small { color: var(--muted); }
.option-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.option-card { align-items: center; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; display: flex; gap: 10px; min-width: 0; padding: 13px; position: relative; }
.option-card:hover { border-color: var(--primary); }
.option-card input { height: 1px; min-height: 0; opacity: 0; position: absolute; width: 1px; }
.option-card:has(input:checked) { background: var(--primary-soft); border-color: var(--primary); }
.option-icon { align-items: center; background: var(--surface-soft); border-radius: 9px; color: var(--primary); display: flex; flex: 0 0 auto; font-size: 18px; height: 37px; justify-content: center; width: 37px; }
.option-card > span:nth-of-type(2) { display: flex; flex: 1; flex-direction: column; }
.option-card small { color: var(--muted); font-size: 10px; }
.option-check { color: var(--primary); opacity: 0; }
.option-card input:checked ~ .option-check { opacity: 1; }
.assignment-panel { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 14px; margin-top: 15px; padding: 16px; }
.assignment-heading { align-items: start; display: flex; justify-content: space-between; margin-bottom: 12px; }
.assignment-heading h4 { margin: 0 0 3px; }
.assignment-heading p { color: var(--muted); font-size: 11px; margin: 0; }
.client-filter { background: var(--surface); margin-bottom: 10px; width: 100%; }
.client-check-list { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 330px; overflow-y: auto; }
.client-check { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; display: flex; gap: 9px; min-width: 0; padding: 9px; }
.client-check:hover, .client-check:has(input:checked) { border-color: var(--primary); }
.client-check:has(input:checked) { background: var(--primary-soft); }
.client-check input { height: 1px; min-height: 0; opacity: 0; position: absolute; width: 1px; }
.client-check > span:nth-of-type(2) { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.client-check strong, .client-check small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-check small { color: var(--muted); }
.client-check > i { color: var(--primary); opacity: 0; }
.client-check input:checked ~ i { opacity: 1; }

.links-layout { grid-template-columns: minmax(330px, .8fr) minmax(0, 1.7fr); }
.link-list { display: grid; }
.link-item { align-items: center; border-top: 1px solid var(--line); display: flex; gap: 12px; padding: 17px 22px; }
.link-type { align-items: center; background: var(--primary-soft); border-radius: 10px; color: var(--primary); display: flex; flex: 0 0 auto; font-size: 20px; height: 43px; justify-content: center; width: 43px; }
.link-main { flex: 1; min-width: 0; }
.link-main > div:first-child { align-items: center; display: flex; gap: 9px; }
.link-main > p { align-items: center; color: var(--ink-soft); display: flex; gap: 6px; margin: 5px 0; }
.link-main > p small { color: var(--muted); }
.link-meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 10px; gap: 12px; }
.link-meta span { align-items: center; display: flex; gap: 4px; }
.date-filter { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 17px 20px; }
.date-filter p { color: var(--muted); margin: 3px 0 0; }
.compact-field { gap: 3px; }
.compact-field input { min-height: 40px; }
.date-arrow { color: var(--muted); padding-bottom: 10px; }
.daily-bars { align-items: end; display: flex; gap: 8px; min-height: 150px; overflow-x: auto; }
.daily-bars > div { align-items: center; display: flex; flex: 1 0 38px; flex-direction: column; gap: 6px; }
.daily-bars progress { height: 70px; transform: rotate(180deg); width: 10px; writing-mode: vertical-lr; }
.daily-bars span { color: var(--muted); font-size: 9px; }
.daily-bars strong { font-size: 10px; }
.statistics-tables { grid-template-columns: 1fr 1fr; }
.action-code { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 6px; color: var(--primary); font-size: 10px; padding: 4px 6px; white-space: nowrap; }
.ip-address { align-items: center; color: var(--ink-soft); display: flex; gap: 5px; white-space: nowrap; }

.library-hero { align-items: end; background: linear-gradient(125deg, #112e25, #1a6249); border-radius: 22px; color: #fff; display: grid; gap: 35px; grid-template-columns: minmax(250px, .8fr) minmax(420px, 1.2fr); overflow: hidden; padding: 34px; position: relative; }
.library-hero::before { border: 45px solid rgba(255,255,255,.05); border-radius: 50%; content: ""; height: 260px; position: absolute; right: -95px; top: -125px; width: 260px; }
.library-hero > * { position: relative; z-index: 1; }
.library-hero .story-kicker { color: #78d4ad; }
.library-hero h2 { font-size: clamp(30px, 4vw, 47px); margin: 7px 0 12px; }
.library-hero h2 em { color: #78d4ad; font-family: Georgia, serif; font-weight: 400; }
.library-hero p { color: #c0d5cb; margin: 0; max-width: 470px; }
.library-search { align-items: center; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.14); border-radius: 15px; display: grid; gap: 8px; grid-template-columns: minmax(180px, 1fr) 190px auto; padding: 9px; backdrop-filter: blur(10px); }
.library-search label { align-items: center; display: flex; position: relative; }
.library-search label i { color: #809b8f; left: 12px; position: absolute; }
.library-search input { background: #fff; border: 0; color: #17221d; padding-left: 37px; }
.library-search select { background: #fff; border: 0; color: #17221d; }
.client-card { color: inherit; }
.client-card .open-content { align-items: center; background: rgba(255,255,255,.9); border-radius: 50%; color: #173f30; display: flex; height: 35px; justify-content: center; opacity: 0; position: absolute; right: 12px; top: 12px; transform: translateY(5px); transition: .2s; width: 35px; }
.client-card:hover .open-content { opacity: 1; transform: translateY(0); }
.library-empty { min-height: 350px; }
.breadcrumb { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 11px; gap: 7px; margin-bottom: 17px; }
.breadcrumb a { color: var(--primary); font-weight: 700; }
.breadcrumb strong { color: var(--ink-soft); font-weight: 600; }
.content-detail { display: grid; gap: 22px; }
.viewer-panel { background: #08100d; border-radius: 18px; box-shadow: var(--shadow-strong); overflow: hidden; }
.video-frame { aspect-ratio: 16 / 9; margin: auto; max-height: 78vh; }
.video-frame video { height: 100%; margin: auto; width: 100%; }
.pdf-frame { height: min(76vh, 850px); }
.pdf-frame iframe { border: 0; height: 100%; width: 100%; }
.document-viewer { align-items: center; background: linear-gradient(145deg, #132b23, #204f3c); color: #fff; display: flex; flex-direction: column; justify-content: center; min-height: 420px; padding: 45px; text-align: center; }
.document-viewer > span { align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; display: flex; font-size: 52px; height: 95px; justify-content: center; margin-bottom: 18px; width: 95px; }
.document-viewer p { color: #b9d0c5; }
.detail-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.6fr) minmax(270px, .55fr); }
.detail-main, .file-facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 25px; }
.detail-heading { align-items: flex-start; display: flex; gap: 20px; justify-content: space-between; }
.detail-heading h1 { font-size: clamp(24px, 3vw, 34px); margin: 6px 0 20px; }
.description-copy { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; padding-top: 20px; }
.description-copy p { margin: 0; }
.file-facts dl { margin: 14px 0 0; }
.file-facts dl > div { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 13px 0; }
.file-facts dt { align-items: center; color: var(--muted); display: flex; gap: 7px; }
.file-facts dd { font-weight: 750; margin: 0; }
.related-section { margin-top: 34px; }
.related-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.related-card { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; display: flex; gap: 11px; padding: 13px; }
.related-card:hover { border-color: var(--primary); }
.related-icon { align-items: center; background: var(--primary-soft); border-radius: 10px; color: var(--primary); display: flex; font-size: 20px; height: 43px; justify-content: center; width: 43px; }
.related-card > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.related-card small { color: var(--primary); }

.public-shell { background: var(--bg); min-height: 100vh; }
.public-header { align-items: center; display: flex; justify-content: space-between; margin: 0 auto; max-width: 1240px; padding: 22px clamp(18px, 4vw, 44px); }
.public-header .brand strong { color: var(--ink); }
.public-header .brand small { color: var(--muted); }
.public-video-page { margin: 0 auto; max-width: 1240px; padding: 18px clamp(18px, 4vw, 44px) 55px; }
.public-video-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-strong); overflow: hidden; }
.public-player { align-items: center; aspect-ratio: 16 / 9; background: #050a08; display: flex; justify-content: center; }
.public-player video { height: 100%; object-fit: contain; width: 100%; }
.public-video-copy { padding: clamp(22px, 4vw, 38px); }
.public-video-copy h1 { font-size: clamp(26px, 4vw, 43px); margin: 8px 0 18px; overflow-wrap: anywhere; }
.public-video-meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 12px; gap: 18px; }
.public-video-meta span { align-items: center; display: flex; gap: 6px; }
.public-share { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 22px; }
.public-share > span { display: block; font-size: 12px; font-weight: 750; margin-bottom: 8px; }
.public-gallery { margin-top: 34px; }
.public-gallery-heading { margin-bottom: 16px; }
.public-gallery-heading h2 { font-size: clamp(22px, 3vw, 30px); margin: 5px 0 3px; }
.public-gallery-heading p { color: var(--muted); margin: 0; }
.public-gallery-grid { align-items: start; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.public-gallery-grid a { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); display: block; overflow: hidden; }
.public-gallery-grid img { display: block; height: auto; image-orientation: from-image; width: 100%; }
.public-footer { color: var(--muted); font-size: 11px; padding: 0 20px 28px; text-align: center; }

.auth-shell { background: #eef2ee; }
html[data-theme="dark"] .auth-shell { background: #0d1411; }
.auth-theme { position: fixed; right: 20px; top: 20px; z-index: 10; }
.auth-alerts { left: 50%; max-width: 520px; position: fixed; top: 18px; transform: translateX(-50%); width: calc(100% - 40px); z-index: 12; }
.login-stage { display: grid; grid-template-columns: minmax(440px, 1.15fr) minmax(430px, .85fr); min-height: 100vh; }
.login-story { background: linear-gradient(140deg, #0e291f, #18533e 60%, #1b6a4d); color: #fff; display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; padding: clamp(35px, 5vw, 72px); position: relative; }
.story-grid { background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; inset: 0; mask-image: linear-gradient(to bottom right, #000, transparent 80%); position: absolute; }
.login-story::after { border: 60px solid rgba(255,255,255,.045); border-radius: 50%; bottom: -170px; content: ""; height: 420px; position: absolute; right: -130px; width: 420px; }
.brand-light { position: relative; z-index: 1; }
.brand-light small { color: #9fb8ad; }
.story-copy { margin: auto 0; max-width: 680px; position: relative; z-index: 1; }
.story-kicker { color: var(--primary); font-size: 10px; font-weight: 850; letter-spacing: .16em; }
.story-copy .story-kicker { color: #75d0a9; }
.story-copy h1 { font-size: clamp(43px, 5.8vw, 78px); letter-spacing: -.055em; margin: 15px 0 22px; }
.story-copy h1 em { color: #79d6ae; font-family: Georgia, serif; font-weight: 400; }
.story-copy > p { color: #b9cec4; font-size: 17px; max-width: 540px; }
.story-proof { align-items: center; display: flex; gap: 12px; position: relative; z-index: 1; }
.story-proof > span { align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: #79d6ae; display: flex; font-size: 20px; height: 45px; justify-content: center; width: 45px; }
.story-proof p { color: #90aa9e; font-size: 12px; margin: 0; }
.story-proof strong { color: #e8f2ed; }
.login-panel { align-items: center; background: var(--surface); display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 70px clamp(35px, 6vw, 90px) 30px; }
.login-card { max-width: 430px; width: 100%; }
.login-card h2 { font-size: 31px; margin: 7px 0; }
.login-card > .muted { margin-bottom: 27px; }
.form-stack { display: grid; gap: 17px; }
.login-help { border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; margin-top: 25px; padding-top: 18px; }
.login-help i { color: var(--primary); margin-right: 5px; }
.login-panel footer { color: var(--muted); font-size: 10px; margin-top: auto; padding-top: 35px; }
.mobile-brand { align-items: center; display: none; gap: 10px; margin-bottom: 35px; }
.error-page { align-items: center; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 30px; text-align: center; }
.error-code { color: var(--primary); font-size: clamp(70px, 14vw, 150px); font-weight: 900; letter-spacing: -.08em; line-height: .9; opacity: .17; }
.error-page .large-icon { margin-top: -20px; }
.error-page h1 { margin: 18px 0 7px; }
.error-page p { color: var(--muted); max-width: 520px; }

@media (max-width: 1280px) {
    .metric-grid-six { grid-template-columns: repeat(3, 1fr); }
    .content-grid, .admin-content-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
    .library-hero { grid-template-columns: 1fr; }
}

@media (max-width: 1050px) {
    .sidebar { box-shadow: var(--shadow-strong); transform: translateX(-105%); transition: transform .25s ease, visibility 0s linear .25s; visibility: hidden; }
    .sidebar-open .sidebar { transform: translateX(0); transition-delay: 0s; visibility: visible; }
    .sidebar-backdrop { background: rgba(3, 12, 8, .55); border: 0; inset: 0; opacity: 0; position: fixed; transition: .2s; visibility: hidden; z-index: 35; }
    .sidebar-open .sidebar-backdrop { display: block; opacity: 1; visibility: visible; }
    .app-main { margin-left: 0; }
    .mobile-menu { display: inline-flex; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid, .dashboard-grid-lower, .statistics-tables { grid-template-columns: 1fr; }
    .login-stage { grid-template-columns: minmax(380px, .9fr) minmax(420px, 1.1fr); }
    .story-copy h1 { font-size: 47px; }
}

@media (max-width: 800px) {
    .page-content { padding: 22px 16px 45px; }
    .topbar { min-height: 72px; padding: 10px 16px; }
    .topbar h1 { font-size: 18px; }
    .hide-mobile { display: none; }
    .page-toolbar, .toolbar-stacked-mobile { align-items: stretch; flex-direction: column; }
    .filter-bar { align-items: stretch; display: grid; grid-template-columns: 1fr 1fr; }
    .filter-bar .search-input { grid-column: 1 / -1; }
    .filter-bar select { max-width: none; }
    .split-layout, .links-layout { grid-template-columns: 1fr; }
    .sticky-panel { position: static; }
    .credential-grid { grid-template-columns: 1fr; }
    .public-video-actions { align-items: stretch; flex-wrap: wrap; }
    .public-video-actions input { flex-basis: 100%; }
    .gallery-manager { grid-template-columns: 1fr; }
    .option-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .login-stage { display: block; }
    .login-story { display: none; }
    .login-panel { padding: 55px 25px 25px; }
    .mobile-brand { display: flex; }
    .auth-theme { right: 13px; top: 13px; }
    .library-search { grid-template-columns: 1fr; }
    .library-hero { padding: 25px; }
    .related-grid { grid-template-columns: 1fr; }
    .link-item { align-items: flex-start; flex-wrap: wrap; }
    .link-item form { margin-left: 55px; }
}

@media (max-width: 580px) {
    .metric-grid, .metric-grid-six { grid-template-columns: 1fr 1fr; }
    .metric-card { align-items: flex-start; flex-direction: column; padding: 15px; }
    .metric-card strong { font-size: 22px; }
    .welcome-strip { align-items: flex-start; flex-direction: column; gap: 15px; padding: 22px; }
    .content-grid, .admin-content-grid { grid-template-columns: 1fr; }
    .filter-bar { grid-template-columns: 1fr; }
    .filter-bar .search-input { grid-column: auto; min-width: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .form-section { padding: 20px 16px; }
    .form-actions { padding: 15px 16px; }
    .upload-drop { align-items: flex-start; flex-wrap: wrap; }
    .upload-drop .button { width: 100%; }
    .client-check-list { grid-template-columns: 1fr; }
    .assignment-heading { flex-direction: column; gap: 9px; }
    .category-row summary { align-items: flex-start; flex-wrap: wrap; padding: 14px 16px; }
    .category-row summary .count-badge { margin-left: 50px; }
    .category-editor { align-items: stretch; flex-direction: column; padding: 14px 16px; }
    .inline-edit-form { grid-template-columns: 1fr; }
    .thumbnail-current { align-items: flex-start; flex-direction: column; }
    .date-filter { align-items: stretch; }
    .date-filter .filter-bar { width: 100%; }
    .date-arrow { display: none; }
    .detail-heading { flex-direction: column; }
    .detail-heading .button { width: 100%; }
    .pdf-frame { height: 68vh; }
    .document-viewer { min-height: 340px; padding: 30px 18px; }
    .copy-row { align-items: stretch; flex-direction: column; }
    .public-video-item { padding: 16px; }
    .public-video-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
    .public-video-actions .button { flex: 1; }
    .slug-input { align-items: stretch; flex-direction: column; }
    .slug-input small { border-bottom: 1px solid var(--line); border-right: 0; height: auto; line-height: 1.4; max-width: none; padding: 8px 11px; }
    .public-gallery-grid { grid-template-columns: 1fr; }
    .sidebar { width: min(88vw, 310px); }
    .topbar .eyebrow { display: none; }
}
