@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+TC:wght@400;500;600;700&family=Noto+Serif+TC:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #070a08;
  --surface: #0f130f;
  --surface-raised: #151a14;
  --surface-hover: #192018;
  --line: #34392e;
  --line-soft: #252a22;
  --text: #eee6d4;
  --muted: #8f9687;
  --muted-strong: #b8b9a7;
  --accent: #9b7739;
  --accent-bright: #c6a45e;
  --accent-soft: #292419;
  --success: #90b078;
  --warning: #c79a50;
  --danger: #c87368;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .48);
  font-family: "DM Sans", "Noto Sans TC", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); line-height: 1.5; }
body, button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, select { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.mobile-only, .mobile-nav { display: none; }
.drawer-toggle, .drawer-scrim { display: none; }

.cms-body { background: radial-gradient(circle at 72% 0, rgba(62, 77, 60, .14), transparent 34%), var(--bg); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: 236px; flex-direction: column; padding: 23px 16px 18px; overflow: hidden; border-right: 1px solid #3c3a2d; background: #0a0d0a; }
.sidebar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,8,.68), #090c09 52%), url("../images/theme/labyrinth-hero.911425e71050.webp") 71% top / auto 520px no-repeat; opacity: .3; pointer-events: none; }
.sidebar > * { position: relative; }
.brand { display: inline-flex; align-items: center; gap: 11px; height: 38px; color: var(--text); font-size: 17px; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; width: 34px; height: 34px; place-items: center; overflow: hidden; border: 1px solid #655536; border-radius: 50%; background: #0a0c09; color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(155,119,57,.08), 0 7px 22px rgba(0,0,0,.46); }
.brand-mark img { width: 88%; height: 88%; object-fit: contain; }
.brand-mark.large { width: 46px; height: 46px; border-radius: 50%; font-size: 20px; }
.sidebar .brand { padding: 0 10px; margin-bottom: 28px; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 0 12px; border-radius: 9px; color: var(--muted-strong); font-size: 14px; font-weight: 500; transition: .18s ease; }
.side-nav a:hover { background: var(--surface-hover); color: var(--text); }
.side-nav a.active { border: 1px solid rgba(155,119,57,.24); background: linear-gradient(90deg, #292419, #1a1c16); color: #d0b77c; }
.side-nav a svg { width: 18px; height: 18px; }
.sidebar-spacer { flex: 1; }
.side-nav-secondary { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.account-chip { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 13px 10px 0; border-top: 1px solid var(--line-soft); }
.avatar { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #51482f; border-radius: 50%; background: #20251d; color: #d3bc82; font-size: 13px; font-weight: 700; }
.account-chip > span:nth-child(2) { min-width: 0; flex: 1; }
.account-chip strong, .account-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-chip strong { font-size: 13px; font-weight: 600; }
.account-chip small { color: var(--muted); font-size: 11px; }

.app-shell { min-height: 100vh; padding-left: 236px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; height: 68px; align-items: center; padding: 0 32px; border-bottom: 1px solid #36372e; background: rgba(7, 10, 8, .9); backdrop-filter: blur(16px); }
.topbar-mobile-button.mobile-only, .mobile-user-avatar.mobile-only { display: none; }
.dropdown-select { position: relative; min-width: 0; }
.dropdown-select summary { display: flex; width: 220px; min-height: 40px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #10140f; list-style: none; cursor: pointer; transition: .16s ease; }
.dropdown-select summary::-webkit-details-marker { display: none; }
.dropdown-select summary:hover, .dropdown-select[open] summary { border-color: #5b5542; background: var(--surface-raised); }
.dropdown-select summary strong { min-width: 0; overflow: hidden; color: var(--text); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-select summary > svg { width: 15px; color: var(--muted); transform: rotate(90deg); transition: transform .16s ease; }
.dropdown-select[open] summary > svg { transform: rotate(-90deg); }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 15; width: min(300px, calc(100vw - 32px)); padding: 8px; border: 1px solid #454536; border-radius: 10px; background: #111510; box-shadow: var(--shadow); }
.tenant-menu > p { margin: 3px 8px 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tenant-menu form { margin: 0; }
.dropdown-menu button, .tenant-menu > a { display: flex; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted-strong); text-align: left; }
.dropdown-menu button:hover, .tenant-menu > a:hover { background: var(--surface-hover); color: var(--text); }
.dropdown-menu button.selected { background: var(--accent-soft); color: var(--text); }
.tenant-menu button span, .tenant-menu button strong, .tenant-menu button small { display: block; min-width: 0; }
.tenant-menu button span { flex: 1; }
.tenant-menu button strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tenant-menu button small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tenant-menu button svg { width: 16px; color: var(--success); }
.tenant-menu > a { justify-content: flex-start; min-height: 42px; margin-top: 6px; border-top: 1px solid var(--line-soft); border-radius: 0 0 7px 7px; color: var(--accent-bright); font-size: 11px; font-weight: 600; }
.tenant-menu > a svg { width: 15px; }
.status-filter summary { width: 100%; min-height: 44px; }
.status-menu { right: 0; left: auto; width: 180px; }
.status-menu button { min-height: 42px; }
.status-menu button > span { flex: 1; font-size: 12px; }
.status-menu button > svg { width: 16px; color: var(--success); opacity: 0; }
.status-menu button.selected > svg { opacity: 1; }
.tenant-empty { color: var(--accent-bright); font-size: 12px; font-weight: 600; }
.main-content { width: 100%; max-width: 1440px; margin: 0 auto; padding: 38px 40px 72px; }

.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 600; transition: .18s ease; }
.button svg { width: 17px; height: 17px; }
.button-primary { border-color: #b38c48; background: linear-gradient(180deg, #a98747, #7b5c2e); color: #fff9e9; box-shadow: 0 7px 20px rgba(91,65,25,.25), inset 0 1px rgba(255,235,176,.18); }
.button-primary:hover { border-color: #d0ac68; background: linear-gradient(180deg, #b99550, #896735); transform: translateY(-1px); }
.button-secondary { border-color: #665536; background: var(--accent-soft); color: #d0b77c; }
.button-ghost { border-color: var(--line); background: #111510; color: var(--muted-strong); }
.button-ghost:hover { border-color: #555846; background: var(--surface-hover); color: var(--text); }
.button-danger { border-color: #54332f; background: #211311; color: var(--danger); }
.button-danger:hover { border-color: #7b463f; background: #2d1916; }
.button-compact { min-height: 36px; padding: 0 13px; }
.button-small { min-height: 34px; padding: 0 11px; font-size: 12px; }
.button-large { min-height: 50px; padding: 0 21px; font-size: 14px; }
.button-block { width: 100%; }
.icon-button { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--text); }

.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.page-heading h1 { margin: 3px 0 5px; font-family: "Cormorant Garamond", "Noto Serif TC", serif; font-size: clamp(31px, 3vw, 42px); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.page-heading p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow { margin: 0; color: var(--accent-bright); font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.split-heading { gap: 20px; }

.panel { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,23,17,.98), rgba(12,16,12,.98)); box-shadow: 0 1px 0 rgba(218,192,128,.035) inset; }
.panel::after { content: ""; position: absolute; inset: 4px; border: 1px solid rgba(178,151,92,.035); border-radius: 4px; pointer-events: none; }
.panel > * { position: relative; z-index: 1; }
.panel-flush { overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 23px; border-bottom: 1px solid var(--line-soft); }
.panel-heading.compact { padding: 18px 20px; }
.panel-heading h2 { margin: 0; font-size: 15px; letter-spacing: -.01em; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-bright); font-size: 12px; font-weight: 600; }
.text-link svg { width: 14px; height: 14px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat-card { padding: 19px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, #151a14, #0c100d); box-shadow: inset 0 1px rgba(213,187,126,.03); }
.stat-label { display: flex; align-items: center; justify-content: space-between; color: var(--muted-strong); font-size: 12px; font-weight: 500; }
.status-icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; font-size: 12px; }
.status-icon.accent { background: var(--accent-soft); color: var(--accent-bright); }
.status-icon.success { background: #152d26; color: var(--success); }
.status-icon.warning { background: #322916; color: var(--warning); }
.stat-card > strong { display: block; margin: 12px 0 1px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.stat-card > small { color: var(--muted); font-size: 11px; }
.content-grid { display: grid; gap: 16px; }
.dashboard-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: start; }
.dashboard-recent { grid-column: 1 / span 8; }
.dashboard-quick { grid-column: 9 / -1; }
.activity-row { display: flex; min-height: 72px; align-items: center; gap: 13px; padding: 10px 22px; border-bottom: 1px solid var(--line-soft); transition: .16s ease; }
.activity-row:last-child { border-bottom: 0; }
.activity-row:hover { background: var(--surface-hover); }
.activity-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--muted-strong); }
.activity-icon svg { width: 17px; }
.activity-copy { min-width: 0; flex: 1; }
.activity-copy strong, .activity-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy strong { font-size: 13px; }
.activity-copy small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.row-chevron { width: 16px; color: #5c5f6a; }
.quick-panel { overflow: hidden; }
.quick-actions > a { display: flex; min-height: 68px; align-items: center; gap: 13px; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); }
.quick-actions > a:last-child { border-bottom: 0; }
.quick-actions > a:hover { background: var(--surface-hover); }
.quick-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #1a2018; color: var(--muted-strong); }
.quick-icon.accent { background: var(--accent-soft); color: var(--accent-bright); }
.quick-actions a > span:nth-child(2) { min-width: 0; flex: 1; }
.quick-actions strong, .quick-actions small { display: block; }
.quick-actions strong { font-size: 13px; }
.quick-actions small { color: var(--muted); font-size: 11px; }
.taxonomy-overview { grid-column: 1 / -1; overflow: hidden; }
.taxonomy-overview-body { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 21px 23px 24px; }
.overview-group { min-width: 0; }
.overview-group + .overview-group { padding-left: 40px; border-left: 1px solid var(--line-soft); }
.overview-subheading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.overview-subheading strong { font-size: 12px; }
.overview-subheading a { color: var(--accent-bright); font-size: 10px; font-weight: 600; }
.summary-row { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-soft); color: var(--muted-strong); font-size: 11px; }
.summary-row:last-child { border-bottom: 0; }
.summary-row small { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.summary-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-tags > span { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted-strong); font-size: 10px; }
.summary-empty { margin: 0; color: var(--muted); font-size: 11px; }

.filter-bar { display: flex; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); }
.search-field { position: relative; flex: 1; }
.search-field svg { position: absolute; top: 50%; left: 13px; width: 17px; color: var(--muted); transform: translateY(-50%); }
.search-field input { padding-left: 40px; }
input, textarea, select { width: 100%; min-height: 44px; border: 1px solid #34392e; border-radius: 6px; outline: none; background: #090d0a; color: var(--text); transition: border .16s ease, box-shadow .16s ease; }
input, textarea { padding: 10px 12px; }
select { padding: 0 36px 0 12px; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: #9b7739; box-shadow: 0 0 0 3px rgba(155,119,57,.12); }
input::placeholder, textarea::placeholder { color: #5f665a; }
.select-field { width: 150px; }
.list-meta { display: flex; min-height: 43px; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.post-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center; gap: 18px; min-height: 112px; padding: 14px 52px 14px 20px; border-bottom: 1px solid var(--line-soft); }
.post-row:last-child { border-bottom: 0; }
.post-row:hover { background: #141a13; }
.post-main { display: flex; min-width: 0; width: 100%; align-items: center; gap: 14px; }
.post-thumb { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #192018; color: #747b6d; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-copy { display: grid; min-width: 0; gap: 3px; }
.post-copy strong { overflow: hidden; font-size: 14px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.post-title-line { display: flex; align-items: center; gap: 7px; }
.post-title-line > strong { min-width: 0; }
.post-excerpt { display: block; width: min(100%, 78ch); overflow: hidden; color: #a6aa9f; font-size: 11px; font-weight: 400; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.post-taxonomy { display: flex; min-width: 0; gap: 6px; margin-top: 2px; overflow: hidden; }
.post-taxonomy > span { flex: 0 0 auto; padding: 2px 6px; border-radius: 5px; background: #1a2018; color: var(--muted-strong); font-size: 9px; }
.badge, .count-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; font-size: 10px; font-weight: 600; }
.badge { padding: 2px 7px; }
.badge-accent { background: var(--accent-soft); color: #d0b77c; }
.count-badge { min-width: 27px; height: 27px; background: #20261e; color: var(--muted-strong); }
.status-pill, .mobile-status { display: inline-flex; align-items: center; gap: 6px; color: var(--warning); font-size: 11px; font-weight: 600; }
.status-pill i, .save-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.published, .mobile-status.published { color: var(--success); }
.mobile-status { display: none; margin-top: 4px; }
.post-status { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; color: var(--warning); }
.post-status.published { color: var(--success); }
.post-status > small { color: currentColor; font-size: 9px; line-height: 1.2; opacity: .58; white-space: nowrap; }
.row-action { position: absolute; top: 50%; right: 20px; color: var(--muted); line-height: 0; transform: translateY(-50%); }
.row-action svg { width: 16px; }
.pagination { display: flex; min-height: 56px; align-items: center; justify-content: center; gap: 18px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 12px; }
.pagination a { color: var(--accent-bright); cursor: pointer; }

.editor-page { width: 100%; max-width: none; margin: 0; }
.editor-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.editor-heading h1 { margin: 5px 0; font-size: 27px; letter-spacing: -.025em; }
.back-link { color: var(--muted); font-size: 12px; }
.save-state { color: var(--muted); font-size: 11px; }
.save-state.success { display: inline-flex; align-items: center; gap: 6px; color: var(--success); }
.editor-actions { display: flex; gap: 9px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr); gap: 18px; align-items: start; }
.editor-main { padding: 24px; }
.editor-sidebar { display: grid; gap: 14px; }
.editor-sidebar .panel > .field-group { padding: 18px 20px; }
.field-group + .field-group { margin-top: 19px; }
.editor-sidebar .field-group + .field-group { margin-top: 0; border-top: 1px solid var(--line-soft); }
.field-group > label { display: block; margin-bottom: 7px; color: var(--muted-strong); font-size: 12px; font-weight: 600; }
.field-group > small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.title-field input { min-height: 52px; font-size: 18px; font-weight: 600; }
.content-editor { min-height: 330px; line-height: 1.75; }
.markdown-editor-field .EasyMDEContainer { width: 100%; }
.markdown-editor-field .editor-toolbar { display: flex; gap: 2px; overflow-x: auto; padding: 6px; border: 1px solid #34392e; border-bottom: 0; border-radius: 6px 6px 0 0; background: #0e120e; opacity: 1; scrollbar-width: none; }
.markdown-editor-field .editor-toolbar::-webkit-scrollbar { display: none; }
.markdown-editor-field .editor-toolbar button { width: auto; min-width: 40px; height: 36px; flex: 0 0 auto; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: var(--muted-strong) !important; font-family: "DM Sans", "Noto Sans TC", system-ui, sans-serif; font-size: 11px; font-weight: 600; line-height: 36px; }
.markdown-editor-field .editor-toolbar button:hover,
.markdown-editor-field .editor-toolbar button.active { border: 0; background: var(--accent-soft); color: var(--accent-bright) !important; }
.markdown-editor-field .EasyMDEContainer .CodeMirror { min-height: 330px; padding: 4px 0; border: 1px solid #34392e; border-radius: 0 0 6px 6px; background: #090d0a; color: var(--text); font-family: "DM Sans", "Noto Sans TC", system-ui, sans-serif; font-size: 15px; line-height: 1.75; transition: border .16s ease, box-shadow .16s ease; }
.markdown-editor-field .EasyMDEContainer .CodeMirror-focused { border-color: #9b7739; box-shadow: 0 0 0 3px rgba(155,119,57,.12); }
.markdown-editor-field .EasyMDEContainer .CodeMirror-cursor { border-left-color: var(--text); }
.markdown-editor-field .EasyMDEContainer .CodeMirror-selected { background: #293024 !important; }
.markdown-editor-field .EasyMDEContainer .CodeMirror-placeholder { color: #5f665a; }
.markdown-editor-field.has-error .editor-toolbar,
.markdown-editor-field.has-error .EasyMDEContainer .CodeMirror { border-color: var(--danger); }
.has-error input, .has-error textarea, .has-error select { border-color: var(--danger); }
.field-error { display: block; margin-top: 6px; color: var(--danger); font-size: 11px; }
.form-error { margin-bottom: 18px; padding: 11px 13px; border: 1px solid #69333c; border-radius: 8px; background: #30171c; color: #ffadb6; font-size: 12px; }
.form-error ul, .field-error ul { margin: 0; padding-left: 18px; }
.switch-row { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.switch-row:last-child { border: 0; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 12px; }
.switch-row small { color: var(--muted); font-size: 10px; }
.switch-input { appearance: none; width: 39px; min-height: 22px; height: 22px; padding: 2px; border: 0; border-radius: 99px; background: #343a31; }
.switch-input::after { content: ""; display: block; width: 18px; height: 18px; border-radius: 50%; background: #a7aa9c; transition: .2s ease; }
.switch-input:checked { background: var(--accent); }
.switch-input:checked::after { background: #fff; transform: translateX(17px); }
#id_tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; }
#id_tags > div label { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted-strong); font-size: 11px; cursor: pointer; }
#id_tags input { width: 14px; min-height: 14px; accent-color: var(--accent); }
.mobile-editor-actions { display: none; }

.narrow-page { max-width: 680px; margin: 0 auto; }
.form-panel { padding: 24px; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.taxonomy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.taxonomy-panel { overflow: hidden; }
.inline-create { padding: 20px; border-bottom: 1px solid var(--line-soft); }
.inline-create .button { margin-top: 18px; }
.taxonomy-list { max-height: 460px; overflow-y: auto; }
.taxonomy-row { display: flex; min-height: 66px; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line-soft); }
.taxonomy-row:last-child { border: 0; }
.taxonomy-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: var(--accent-soft); color: var(--accent-bright); font-size: 12px; font-weight: 700; }
.taxonomy-mark.tag { background: #1c2227; color: #8bb9cd; }
.taxonomy-panel .taxonomy-row > span:nth-child(2) { min-width: 0; flex: 1; }
.taxonomy-row strong, .taxonomy-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taxonomy-row strong { font-size: 12px; }
.taxonomy-row small, .usage-count { color: var(--muted); font-size: 10px; }
.taxonomy-browser { overflow: visible; }
.taxonomy-list-head, .taxonomy-crud-list .taxonomy-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px 112px; align-items: center; gap: 16px; }
.taxonomy-list-head { min-height: 34px; padding: 0 22px; border-bottom: 1px solid var(--line-soft); color: #747b70; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.taxonomy-list-head span:last-child { text-align: right; }
.taxonomy-crud-list .taxonomy-row { min-height: 78px; padding: 12px 22px; }
.taxonomy-identity { display: flex; min-width: 0; align-items: center; gap: 14px; }
.taxonomy-crud-list .taxonomy-mark { flex: 0 0 auto; }
.taxonomy-crud-list .taxonomy-copy { display: block; min-width: 0; }
.taxonomy-title { display: flex; min-width: 0; align-items: baseline; gap: 9px; }
.taxonomy-title strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.taxonomy-title code { flex: 0 1 auto; overflow: hidden; color: #73796e; font-family: inherit; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.taxonomy-crud-list .taxonomy-copy > small { display: block; max-width: 760px; margin-top: 5px; overflow: hidden; color: #a0a699; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.taxonomy-mobile-meta { display: none; }
.taxonomy-usage-cell { color: var(--muted-strong); font-size: 11px; }
.taxonomy-actions { display: flex; justify-content: flex-end; gap: 7px; }
.taxonomy-actions form { margin: 0; }
.taxonomy-mobile-actions { display: none; }
.media-layout { display: grid; grid-template-columns: minmax(280px, .55fr) minmax(0, 1.45fr); gap: 18px; align-items: start; }
.media-form-panel { overflow: hidden; }
.media-form-panel form { padding: 20px; }
.media-form-panel .button { margin-top: 21px; }
.media-results { overflow: hidden; }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); }
.media-card { min-width: 0; padding: 12px; background: var(--surface); }
.media-placeholder { display: grid; aspect-ratio: 4 / 3; place-items: center; margin-bottom: 11px; border-radius: 6px; background: linear-gradient(145deg, #22281f, #151a15); color: #72796b; }
.media-placeholder svg { width: 28px; height: 28px; }
.media-card strong, .media-card span, .media-card small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-card strong { font-size: 12px; }
.media-card span, .media-card small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.empty-state { grid-column: 1 / -1; padding: 54px 24px; text-align: center; }
.empty-state.compact { padding: 35px 20px; }
.empty-state h3 { margin: 13px 0 4px; font-size: 15px; }
.empty-state p { max-width: 380px; margin: 0 auto 18px; color: var(--muted); font-size: 12px; }
.empty-icon { display: inline-grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #1a2018; color: var(--muted); }
.empty-icon.large { width: 54px; height: 54px; }
.empty-workspace { max-width: 640px; margin: 70px auto 0; padding: 50px 30px; text-align: center; }
.empty-workspace h2 { margin: 13px 0 6px; }
.empty-workspace p:not(.eyebrow) { max-width: 430px; margin: 0 auto 22px; color: var(--muted); font-size: 13px; }
.toast-stack { position: fixed !important; inset: auto 20px 20px auto !important; z-index: 60; display: grid; width: min(340px, calc(100vw - 40px)); gap: 8px; margin: 0 !important; padding: 0; pointer-events: none; }
.toast { display: flex; width: 100%; min-width: 0; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; background: #192018; box-shadow: var(--shadow); color: var(--muted-strong); font-size: 12px; pointer-events: auto; }
.toast.success { border-color: #265744; }
.toast button { border: 0; background: transparent; color: var(--muted); }
.delete-confirm-page { padding-top: 28px; }
.delete-confirm-page > .back-link { display: inline-block; margin-bottom: 18px; }
.delete-confirm-panel { padding: 34px; text-align: center; }
.delete-confirm-icon { display: inline-grid; width: 46px; height: 46px; place-items: center; margin-bottom: 17px; border: 1px solid #633d37; border-radius: 50%; background: #251614; color: var(--danger); font-size: 19px; font-weight: 700; }
.delete-confirm-panel h1 { margin: 8px 0 9px; font-size: 25px; }
.delete-confirm-panel > p:not(.eyebrow) { max-width: 430px; margin: 0 auto; color: var(--muted); font-size: 12px; line-height: 1.7; }
.delete-confirm-panel form { display: flex; justify-content: center; gap: 9px; margin-top: 27px; padding-top: 21px; border-top: 1px solid var(--line-soft); }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }

/* Public landing and login */
.public-body { min-height: 100vh; background: radial-gradient(circle at 72% 8%, rgba(60,78,71,.12), transparent 26%), #070a08; }
.public-header { position: relative; z-index: 10; display: flex; width: min(1180px, calc(100% - 40px)); height: 78px; align-items: center; justify-content: space-between; margin: 0 auto; border-bottom: 1px solid rgba(199,166,94,.16); }
.public-header::after { content: ""; position: absolute; right: 0; bottom: -2px; left: 0; height: 3px; background: radial-gradient(ellipse, rgba(155,119,57,.22), transparent 68%); }
.public-footer { display: flex; width: min(1180px, calc(100% - 40px)); min-height: 90px; align-items: center; justify-content: space-between; margin: 0 auto; border-top: 1px solid var(--line-soft); color: #747a6e; font-size: 11px; }
.footer-sigil { display: inline-flex; align-items: center; gap: 8px; color: #a99870; font-weight: 600; }
.footer-sigil img { width: 25px; height: 25px; object-fit: contain; }
.landing-hero { position: relative; width: min(1180px, calc(100% - 40px)); min-height: 760px; margin: 0 auto; padding: 110px 0 80px; overflow: hidden; background: linear-gradient(90deg, rgba(7,10,8,.99) 0%, rgba(7,10,8,.82) 40%, rgba(7,10,8,.12) 75%), linear-gradient(180deg, transparent 68%, #070a08 100%), url("../images/theme/labyrinth-hero.911425e71050.webp") 58% top / cover no-repeat; }
.landing-hero::after { content: ""; position: absolute; inset: 10px 0; border-top: 1px solid rgba(177,147,84,.06); border-bottom: 1px solid rgba(177,147,84,.1); pointer-events: none; }
.hero-glow { position: absolute; top: -180px; right: -180px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(151,116,55,.11), transparent 63%); pointer-events: none; }
.hero-moths { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-moths i { position: absolute; width: 7px; height: 5px; background: #c3a05a; clip-path: polygon(50% 45%, 0 0, 12% 100%, 50% 64%, 88% 100%, 100% 0); opacity: .52; filter: drop-shadow(0 0 6px rgba(222,177,83,.72)); }
.hero-moths i:nth-child(1) { top: 22%; right: 33%; transform: rotate(-14deg); }
.hero-moths i:nth-child(2) { top: 33%; right: 24%; width: 5px; height: 4px; transform: rotate(20deg); }
.hero-moths i:nth-child(3) { top: 17%; right: 18%; width: 4px; height: 3px; transform: rotate(-24deg); }
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.hero-copy .eyebrow, .login-copy .eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent-bright); }
.hero-copy .eyebrow span, .login-copy .eyebrow span { width: 18px; height: 1px; background: currentColor; }
.hero-copy h1 { margin: 22px 0 24px; font-family: "Cormorant Garamond", "Noto Serif TC", serif; font-size: clamp(55px, 7vw, 92px); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; text-shadow: 0 4px 30px #000; }
.hero-copy h1 em { color: #c2a15d; font-style: normal; font-weight: 500; }
.hero-lead { max-width: 570px; margin: 0; color: #a4aa9b; font-size: 17px; line-height: 1.8; text-shadow: 0 2px 14px #000; }
.hero-actions { display: flex; gap: 10px; margin-top: 37px; }
.product-preview { position: relative; z-index: 2; width: 78%; min-width: 720px; margin: 90px 0 -260px auto; border: 1px solid #554a32; border-radius: 8px 8px 0 0; background: rgba(11,15,11,.96); box-shadow: 0 35px 100px rgba(0,0,0,.65), 0 0 70px rgba(126,97,43,.08), inset 0 0 0 3px #121812; transform: perspective(1300px) rotateX(4deg) rotateY(-3deg); transform-origin: bottom right; }
.preview-top { display: flex; height: 47px; align-items: center; gap: 6px; padding: 0 15px; border-bottom: 1px solid #32372d; }
.preview-top .preview-logo { display: grid; width: 23px; height: 23px; place-items: center; margin-right: auto; border: 1px solid #8b713e; border-radius: 50%; background: #282419; color: #d1b877; font-size: 10px; font-weight: 700; }
.preview-top i { width: 6px; height: 6px; border-radius: 50%; background: #4a4e43; }
.preview-body { display: grid; min-height: 410px; grid-template-columns: 150px 1fr; }
.preview-body aside { display: grid; align-content: start; gap: 14px; padding: 28px 18px; border-right: 1px solid #2c3128; }
.preview-body aside b { width: 70px; height: 8px; margin-bottom: 15px; border-radius: 9px; background: #5c4b2d; }
.preview-body aside span { width: 82px; height: 7px; border-radius: 9px; background: #293027; }
.preview-content { padding: 48px; }
.preview-content small { color: #a48246; font-size: 8px; letter-spacing: .15em; text-transform: uppercase; }
.preview-content h2 { margin: 8px 0 28px; font-family: "Cormorant Garamond", "Noto Serif TC", serif; font-size: 27px; font-weight: 600; }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.preview-stats span { height: 74px; border: 1px solid #30362d; border-radius: 6px; background: #141a14; }
.preview-list { margin-top: 15px; padding: 8px 17px; border: 1px solid #30362d; border-radius: 6px; }
.preview-list p { height: 43px; margin: 0; border-bottom: 1px solid #282d25; }
.preview-list p:last-child { border: 0; }
.landing-features { position: relative; z-index: 3; padding: 150px max(20px, calc((100vw - 1180px) / 2)) 130px; overflow: hidden; background: radial-gradient(circle at 82% 13%, rgba(64,83,67,.14), transparent 30%), #0c100d; }
.landing-features::before { content: ""; position: absolute; right: -160px; bottom: -210px; width: 560px; height: 560px; background: url("../images/theme/labyrinth-sigil.87d6bacd2133.webp") center / contain no-repeat; opacity: .025; transform: rotate(10deg); }
.section-intro { position: relative; }
.section-sigil { position: absolute; top: -13px; right: 0; width: 100px; height: 100px; object-fit: contain; opacity: .28; filter: sepia(.2) saturate(.7); }
.section-intro h2 { margin: 11px 0 46px; font-family: "Cormorant Garamond", "Noto Serif TC", serif; font-size: clamp(35px, 4vw, 52px); font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature-grid article { position: relative; min-height: 270px; padding: 34px 34px 30px 0; border-right: 1px solid var(--line); }
.feature-grid article + article { padding-left: 34px; }
.feature-grid article:last-child { border-right: 0; }
.feature-number { color: #555862; font-size: 10px; letter-spacing: .12em; }
.feature-symbol { margin: 35px 0 24px; color: var(--accent-bright); font-family: "Cormorant Garamond", serif; font-size: 30px; }
.feature-grid h3 { margin: 0 0 9px; font-family: "Cormorant Garamond", "Noto Serif TC", serif; font-size: 20px; font-weight: 600; }
.feature-grid p { max-width: 280px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.login-page { position: relative; display: grid; width: min(1000px, calc(100% - 40px)); min-height: calc(100vh - 168px); grid-template-columns: 1fr 420px; align-items: center; gap: 90px; margin: 0 auto; padding: 70px 0 90px; }
.login-page::before { content: ""; position: absolute; inset: 0 -70px; z-index: 0; background: linear-gradient(90deg, rgba(7,10,8,.94), rgba(7,10,8,.62)), url("../images/theme/labyrinth-hero.911425e71050.webp") center / cover no-repeat; opacity: .48; pointer-events: none; }
.login-page > * { position: relative; z-index: 1; }
.login-copy h1 { margin: 16px 0 10px; font-family: "Cormorant Garamond", "Noto Serif TC", serif; font-size: clamp(48px, 6vw, 76px); font-weight: 600; letter-spacing: -.04em; }
.login-copy > p:last-child { color: var(--muted); }
.login-card { position: relative; padding: 30px; border: 1px solid #4b4533; border-radius: 8px; background: rgba(13,17,13,.94); box-shadow: var(--shadow), inset 0 0 0 3px rgba(185,153,87,.025); backdrop-filter: blur(14px); }
.login-card::before, .login-card::after { content: ""; position: absolute; width: 18px; height: 18px; border-color: #7c663c; opacity: .55; }
.login-card::before { top: 7px; left: 7px; border-top: 1px solid; border-left: 1px solid; }
.login-card::after { right: 7px; bottom: 7px; border-right: 1px solid; border-bottom: 1px solid; }
.login-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-card-heading h2 { margin: 0; font-size: 18px; }
.login-card-heading p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.login-card .field-group + .field-group { margin-top: 16px; }
.login-card .button { margin-top: 23px; }
.login-help { margin: 17px 0 0; color: #6f727e; font-size: 10px; text-align: center; }

@media (max-width: 980px) {
  .dashboard-grid, .editor-grid { grid-template-columns: 1fr; }
  .dashboard-recent, .dashboard-quick, .taxonomy-overview { grid-column: 1; }
  .editor-sidebar { grid-template-columns: repeat(2, 1fr); }
  .editor-sidebar .panel:last-child { grid-column: 1 / -1; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
  .login-page { gap: 45px; }
}

@media (max-width: 760px) {
  body:not(.public-body) { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .desktop-only { display: none !important; }
  .mobile-only { display: inline-grid; }
  .topbar-mobile-button.mobile-only, .mobile-user-avatar.mobile-only { display: grid; }
  .topbar-mobile-button { width: 36px; height: 36px; place-items: center; border: 0; background: transparent; color: var(--text); cursor: pointer; }
  .topbar-mobile-button svg { width: 21px; height: 21px; }
  .mobile-user-avatar { width: 34px; height: 34px; place-items: center; justify-self: end; border: 1px solid #51482f; border-radius: 50%; background: #20251d; color: #d3bc82; font-size: 12px; font-weight: 700; }
  .sidebar { width: min(84vw, 300px); padding-bottom: 24px; transform: translateX(-102%); transition: transform .22s ease; }
  .drawer-scrim { position: fixed; inset: 0; z-index: 25; background: #000a; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
  .drawer-toggle:checked ~ .drawer-scrim { display: block; opacity: 1; pointer-events: auto; }
  .drawer-toggle:checked ~ .sidebar { transform: translateX(0); }
  .app-shell { padding-left: 0; }
  .topbar { display: grid; height: 60px; grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 10px; padding: 0 14px; }
  .tenant-switcher { justify-self: center; }
  .tenant-switcher summary { width: min(220px, calc(100vw - 120px)); min-width: 0; gap: 10px; }
  .tenant-switcher summary strong { max-width: calc(100vw - 160px); }
  .tenant-menu { left: 50%; width: min(300px, calc(100vw - 24px)); transform: translateX(-50%); }
  .tenant-empty { justify-self: center; }
  .main-content { padding: 25px 16px 40px; }
  .page-heading { margin-bottom: 22px; }
  .split-heading { align-items: stretch; flex-direction: column; }
  .split-heading > .button { align-self: flex-start; }
  .page-heading h1 { font-size: 29px; }
  .page-heading p:not(.eyebrow) { font-size: 12px; }
  .stats-grid { grid-template-columns: 1fr; gap: 10px; }
  .stat-card { padding: 16px; }
  .stat-card > strong { font-size: 26px; }
  .panel-heading { padding: 18px; }
  .activity-row { padding: 10px 16px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 24; display: grid; height: calc(64px + env(safe-area-inset-bottom)); grid-template-columns: repeat(5, 1fr); padding: 5px 8px env(safe-area-inset-bottom); border-top: 1px solid #454230; background: rgba(9,13,9,.96); backdrop-filter: blur(16px); }
  .mobile-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 2px; color: #777a86; font-size: 9px; }
  .mobile-nav svg { width: 19px; height: 19px; }
  .mobile-nav .active { color: #d0b36f; }
  .mobile-nav .mobile-create { color: var(--text); transform: translateY(-13px); }
  .mobile-create > span { display: grid; width: 44px; height: 44px; place-items: center; border: 4px solid var(--bg); border-radius: 50%; background: var(--accent); box-sizing: content-box; }
  .mobile-create small { font-size: 9px; }
  .filter-bar { display: grid; grid-template-columns: 1fr 115px; padding: 12px; }
  .select-field { width: auto; }
  .status-menu { right: 0; left: 0; width: 100%; }
  .post-row { grid-template-columns: minmax(0, 1fr) auto; min-height: 104px; gap: 9px; padding: 10px 38px 10px 12px; }
  .row-action { right: 12px; }
  .post-thumb { width: 48px; height: 48px; }
  .post-excerpt { max-width: 46vw; }
  .post-taxonomy > span:nth-child(n+3) { display: none; }
  .editor-heading { align-items: start; }
  .editor-actions { display: none; }
  .editor-heading h1 { font-size: 25px; }
  .editor-grid, .editor-sidebar { display: grid; grid-template-columns: 1fr; }
  .editor-sidebar .panel:last-child { grid-column: auto; }
  .editor-main { padding: 17px; }
  .markdown-editor-field .editor-toolbar { padding: 5px; }
  .markdown-editor-field .editor-toolbar button { min-width: 38px; padding: 0 7px; }
  .markdown-editor-field .EasyMDEContainer .CodeMirror { min-height: 300px; font-size: 16px; }
  .mobile-editor-actions { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 10; display: block; margin: 18px -16px -40px; padding: 11px 16px; border-top: 1px solid var(--line); background: rgba(8,12,8,.94); backdrop-filter: blur(12px); }
  .mobile-editor-actions .button { width: 100%; }
  .taxonomy-grid, .media-layout { grid-template-columns: 1fr; }
  .media-layout { display: flex; flex-direction: column; }
  .media-form-panel, .media-results { width: 100%; }
  .media-results { order: -1; }
  .taxonomy-row { padding: 9px 16px; }
  .taxonomy-crud-list .taxonomy-row { grid-template-columns: minmax(0, 1fr) 36px; gap: 11px; min-height: 70px; padding: 11px 12px; }
  .taxonomy-crud-list .taxonomy-mark { width: 36px; height: 36px; }
  .taxonomy-crud-list .taxonomy-copy > small, .taxonomy-title code, .taxonomy-usage-cell, .taxonomy-desktop-actions { display: none; }
  .taxonomy-title strong { font-size: 13px; }
  .taxonomy-mobile-meta { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .taxonomy-mobile-actions { position: relative; display: block; }
  .taxonomy-mobile-actions summary { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 7px; color: var(--muted-strong); font-size: 14px; letter-spacing: 1px; list-style: none; cursor: pointer; }
  .taxonomy-mobile-actions summary::-webkit-details-marker { display: none; }
  .taxonomy-mobile-actions summary:hover, .taxonomy-mobile-actions[open] summary { background: var(--surface-hover); color: var(--text); }
  .taxonomy-action-menu { position: absolute; top: calc(100% + 5px); right: 0; z-index: 8; display: block; width: 152px; padding: 5px; border: 1px solid #454536; border-radius: 8px; background: #111510; box-shadow: var(--shadow); }
  .taxonomy-action-menu a { display: block; padding: 9px 10px; border-radius: 5px; color: var(--muted-strong); font-size: 11px; }
  .taxonomy-action-menu a:hover { background: var(--surface-hover); color: var(--text); }
  .taxonomy-action-menu a.danger { color: var(--danger); }
  .taxonomy-overview-body { grid-template-columns: 1fr; gap: 18px; }
  .overview-group + .overview-group { padding-top: 18px; padding-left: 0; border-top: 1px solid var(--line-soft); border-left: 0; }
  .form-panel { padding: 18px; }
  .form-actions .button { flex: 1; }
  .toast-stack { inset: auto 12px calc(76px + env(safe-area-inset-bottom)) !important; width: auto; }
  .toast { min-width: 0; width: 100%; }

  .public-header { width: calc(100% - 32px); height: 66px; }
  .landing-hero { width: calc(100% - 32px); min-height: auto; padding: 75px 0 70px; overflow: visible; background: linear-gradient(180deg, rgba(7,10,8,.76) 0%, rgba(7,10,8,.9) 55%, #070a08 100%), url("../images/theme/labyrinth-hero.911425e71050.webp") 68% top / auto 620px no-repeat; }
  .hero-copy h1 { margin: 18px 0 20px; font-size: clamp(45px, 14vw, 63px); }
  .hero-lead { font-size: 14px; line-height: 1.7; }
  .hero-actions { align-items: stretch; flex-direction: column; margin-top: 29px; }
  .product-preview { width: 116%; min-width: 0; margin: 70px -8% -130px; transform: perspective(900px) rotateX(3deg); }
  .preview-body { min-height: 260px; grid-template-columns: 75px 1fr; }
  .preview-body aside { padding: 20px 10px; }
  .preview-body aside b, .preview-body aside span { width: 45px; }
  .preview-content { padding: 27px 20px; }
  .preview-content h2 { margin-bottom: 18px; font-size: 17px; }
  .preview-stats span { height: 48px; }
  .preview-list p { height: 28px; }
  .landing-features { padding-top: 190px; padding-bottom: 80px; }
  .section-intro h2 { font-size: 34px; }
  .section-sigil { top: -48px; width: 72px; height: 72px; opacity: .24; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article, .feature-grid article + article { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-symbol { margin: 24px 0 16px; }
  .public-footer { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; justify-content: center; gap: 5px; }
  .login-page { display: block; width: calc(100% - 32px); min-height: calc(100vh - 156px); padding: 60px 0 70px; }
  .login-copy { margin-bottom: 35px; }
  .login-copy h1 { font-size: 45px; }
  .login-card { padding: 23px 19px; }
}

@media (max-width: 390px) {
  .filter-bar { grid-template-columns: 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .post-copy small { max-width: 190px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
