:root {
  --blue: #1c81ba;
  --blue-dark: #0b4f75;
  --blue-soft: #eaf5fb;
  --ink: #111820;
  --ink-2: #27343d;
  --muted: #5f6b73;
  --line: #d7e0e6;
  --mist: #f3f7fa;
  --white: #fff;
  --danger: #b4233b;
  --success: #127a52;
  --sidebar: 248px;
  --font-body: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", Arial, sans-serif;
  --font-display: "STSong", "Songti SC", SimSun, serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--mist); }
body { margin: 0; color: var(--ink); font-family: var(--font-body); font-size: 14px; letter-spacing: 0; }
button, input, select, textarea { color: inherit; border: 0; border-radius: 0; font: inherit; letter-spacing: 0; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid rgb(28 129 186 / 34%); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; margin: -1px; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; }
.skip-link { position: fixed; z-index: 999; top: 8px; left: 8px; padding: 8px 12px; color: #fff; background: var(--blue-dark); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.admin-shell { min-height: 100vh; background: var(--mist); }
.admin-sidebar { position: fixed; z-index: 80; inset: 0 auto 0 0; display: flex; width: var(--sidebar); min-height: 0; color: #dbe7ed; background: var(--ink); flex-direction: column; }
.admin-sidebar__brand { display: flex; height: 82px; flex: 0 0 82px; align-items: center; gap: 11px; padding: 0 21px; border-bottom: 1px solid rgb(255 255 255 / 11%); }
.admin-sidebar__brand img { width: 48px; height: 48px; object-fit: contain; }
.admin-sidebar__brand > span { display: flex; min-width: 0; flex-direction: column; }
.admin-sidebar__brand strong { color: #fff; font-family: var(--font-display); font-size: 19px; line-height: 1.25; }
.admin-sidebar__brand small { color: #9fb2be; font-size: 10px; }
.admin-sidebar__close { display: none; margin-left: auto; color: #fff; background: transparent; font-size: 25px; }
.admin-sidebar nav { min-height: 0; padding: 14px 12px 24px; overflow-y: auto; }
.admin-nav-label { display: block; margin: 12px 10px 6px; color: #7f97a5; font-size: 10px; font-weight: 700; }
.admin-sidebar nav a { display: flex; min-height: 39px; align-items: center; gap: 10px; margin: 2px 0; padding: 8px 10px; color: #cbd9e1; border-radius: 3px; transition: background-color 170ms ease, color 170ms ease; }
.admin-sidebar nav a:hover { color: #fff; background: rgb(255 255 255 / 7%); }
.admin-sidebar nav a.is-active { color: #fff; background: var(--blue-dark); font-weight: 700; box-shadow: inset 3px 0 #8ed1f4; }
.nav-symbol { display: grid; width: 20px; height: 20px; flex: 0 0 20px; align-items: center; justify-content: center; color: #a9c4d2; font-size: 17px; }
.admin-sidebar nav a.is-active .nav-symbol { color: #fff; }
.admin-nav-group { margin: 5px 0; }
.admin-nav-group > summary { position: relative; display: flex; min-height: 39px; align-items: center; padding: 8px 30px 8px 10px; color: #cbd9e1; cursor: pointer; list-style: none; }
.admin-nav-group > summary::-webkit-details-marker { display: none; }
.admin-nav-group > summary::after { position: absolute; right: 11px; color: #7f97a5; content: "+"; font-size: 17px; }
.admin-nav-group[open] > summary::after { content: "−"; }
.admin-nav-group > a { min-height: 34px !important; padding-left: 31px !important; font-size: 12px; }
.admin-sidebar__site { margin-top: auto; padding: 17px 22px; color: #a9c8d8; border-top: 1px solid rgb(255 255 255 / 11%); font-size: 12px; }
.admin-sidebar-overlay, .admin-mobile-bar { display: none; }

.admin-workspace { min-width: 0; margin-left: var(--sidebar); }
.admin-topbar { position: sticky; z-index: 50; top: 0; display: flex; height: 64px; align-items: center; justify-content: space-between; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgb(255 255 255 / 96%); }
.admin-health { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.admin-health i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgb(28 129 186 / 10%); }
.admin-account { position: relative; }
.admin-account summary { display: flex; min-width: 180px; align-items: center; gap: 9px; cursor: pointer; list-style: none; }
.admin-account summary::-webkit-details-marker { display: none; }
.admin-account summary > b { display: grid; width: 34px; height: 34px; flex: 0 0 34px; color: #fff; border-radius: 50%; background: var(--blue-dark); place-items: center; }
.admin-account summary > span { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.admin-account summary strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-account summary small { color: var(--muted); font-size: 10px; }
.admin-account > div { position: absolute; top: 44px; right: 0; width: 190px; padding: 9px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 0 14px 32px rgb(17 24 32 / 14%); }
.admin-account > div a, .admin-account > div button { display: flex; width: 100%; min-height: 38px; align-items: center; padding: 8px 10px; background: transparent; }
.admin-account > div a:hover, .admin-account > div button:hover { background: var(--mist); }
.admin-account > div button { color: var(--danger); }
.admin-main { width: min(1500px, 100%); min-width: 0; margin: 0 auto; padding: 34px 34px 70px; }

.admin-page-heading { display: flex; min-height: 78px; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.admin-page-heading > div { min-width: 0; }
.admin-page-heading small, .admin-panel__header small { display: block; margin-bottom: 2px; color: var(--blue-dark); font-size: 10px; font-weight: 800; }
.admin-page-heading h1 { margin: 0; font-family: var(--font-display); font-size: 29px; font-weight: 600; line-height: 1.35; }
.admin-page-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.admin-page-heading--actions { align-items: flex-start; }
.admin-primary-button, .admin-secondary-button { display: inline-flex; min-height: 40px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; padding: 8px 15px; border-radius: 3px; font-size: 13px; font-weight: 700; }
.admin-primary-button { color: #fff; background: var(--blue-dark); }
.admin-primary-button:hover { background: #073b58; }
.admin-secondary-button { color: var(--ink-2); border: 1px solid #bdcbd4; background: #fff; }
.admin-primary-button:disabled, .admin-secondary-button:disabled { cursor: not-allowed; opacity: .55; }
.admin-icon-button { display: grid; width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; place-items: center; }

.admin-panel { min-width: 0; margin-bottom: 24px; padding: 24px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.admin-panel--flush { padding: 0; overflow: hidden; }
.admin-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.admin-panel__header h2 { margin: 1px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.admin-panel__header a { color: var(--blue-dark); font-size: 12px; font-weight: 700; }
.admin-metrics { display: grid; margin-bottom: 24px; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.admin-metrics a { position: relative; display: grid; min-width: 0; min-height: 138px; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: #fff; grid-template-columns: 1fr auto; grid-template-rows: 38px 1fr auto; }
.admin-metrics i { display: grid; width: 34px; height: 34px; color: var(--blue-dark); background: var(--blue-soft); font-size: 17px; font-style: normal; place-items: center; }
.admin-metrics strong { grid-column: 1 / 3; align-self: end; overflow: hidden; color: var(--ink); font-size: 27px; text-overflow: ellipsis; }
.admin-metrics span { align-self: end; color: var(--muted); font-size: 11px; }
.admin-metrics b { align-self: end; color: #91a5af; font-size: 18px; font-weight: 400; }
.admin-panel--audit { min-height: 460px; }
.admin-audit-compact { display: grid; }
.admin-audit-compact article { display: grid; min-height: 54px; align-items: center; padding: 8px 0; border-bottom: 1px solid #ebf0f3; grid-template-columns: 15px minmax(0,1fr); gap: 10px; }
.admin-audit-compact article > i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.admin-audit-compact article div { display: flex; min-width: 0; justify-content: space-between; gap: 20px; }
.admin-audit-compact article span { color: var(--muted); font-size: 11px; }

.frontend-map { position: relative; display: grid; margin: 0 0 28px 18px; border-left: 2px solid #bfd9e7; background: #fff; }
.frontend-map__item { position: relative; display: grid; min-height: 106px; align-items: center; padding: 18px 20px 18px 38px; border: 1px solid var(--line); border-left: 0; border-bottom: 0; grid-template-columns: minmax(240px, 1fr) minmax(330px, .8fr) auto; gap: 24px; }
.frontend-map__item:last-child { border-bottom: 1px solid var(--line); }
.frontend-map__step { position: absolute; left: -20px; display: grid; width: 38px; height: 38px; color: #fff; border: 4px solid var(--mist); border-radius: 50%; background: var(--blue-dark); font-size: 10px; font-weight: 800; place-items: center; }
.frontend-map__copy h2 { margin: 0; font-size: 17px; }
.frontend-map__copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.frontend-map__item dl { display: grid; margin: 0; grid-template-columns: repeat(3, minmax(82px, 1fr)); gap: 14px; }
.frontend-map__item dl > div { min-width: 0; }
.frontend-map__item dt { color: var(--muted); font-size: 10px; }
.frontend-map__item dd { margin: 4px 0 0; overflow: hidden; font-size: 13px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.frontend-map__item > a { min-width: 88px; }
.admin-panel--audit { min-height: 0; }

.admin-filter-bar { display: flex; min-width: 0; min-height: 58px; align-items: center; gap: 10px; margin-bottom: 16px; padding: 9px 12px; border: 1px solid var(--line); background: #fff; }
.admin-filter-bar label { flex: 1; }
.admin-filter-bar input { width: min(420px, 100%); }
.admin-filter-bar input, .admin-filter-bar select { min-height: 38px; padding: 7px 10px; border: 1px solid #bccbd4; background: #fff; }
.admin-filter-bar button { flex: 0 0 auto; min-height: 38px; padding: 7px 14px; white-space: nowrap; color: #fff; background: var(--blue-dark); }
.admin-filter-bar > a { padding: 8px 10px; color: var(--muted); }
.admin-table-wrap { position: relative; max-width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { height: 46px; padding: 9px 14px; color: #68767e; border-bottom: 1px solid var(--line); background: #f7fafc; font-size: 11px; text-align: left; white-space: nowrap; }
.admin-table td { min-height: 58px; padding: 13px 14px; border-bottom: 1px solid #e7edf1; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table-title { display: block; max-width: 460px; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.admin-table td small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.admin-table input, .admin-table select { min-width: 120px; height: 36px; padding: 6px 8px; border: 1px solid #c9d4db; background: #fff; }
.admin-row-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 5px; }
.admin-row-actions a, .admin-row-actions button, .admin-inline-save button { min-height: 30px; padding: 5px 8px; color: var(--blue-dark); border: 1px solid #ccd8df; background: #fff; font-size: 11px; white-space: nowrap; }
.admin-row-actions .is-danger, .admin-media-card .is-danger { color: var(--danger); }
.admin-row-more { position: relative; }
.admin-row-more > summary { min-height: 30px; padding: 6px 8px; color: var(--muted); border: 1px solid #ccd8df; cursor: pointer; list-style: none; font-size: 11px; }
.admin-row-more > summary::-webkit-details-marker { display: none; }
.admin-row-more > div { position: absolute; z-index: 20; top: 34px; right: 0; display: grid; min-width: 112px; padding: 6px; border: 1px solid var(--line); background: #fff; box-shadow: 0 8px 22px rgb(17 24 32 / 14%); }
.admin-row-more > div button { width: 100%; border: 0; text-align: left; }
.admin-status, .admin-privacy { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 8px; border: 1px solid; border-radius: 2px; font-size: 10px; white-space: nowrap; }
.admin-status--published, .admin-privacy--approved { color: #087044; border-color: #a9dbc5; background: #effbf6; }
.admin-status--in_review, .admin-privacy--pending { color: #8a5c00; border-color: #e7cf96; background: #fff9e9; }
.admin-status--draft { color: #3f6174; border-color: #c3d5df; background: #f2f8fb; }
.admin-status--archived, .admin-privacy--rejected { color: #8f3040; border-color: #e5bdc4; background: #fff4f5; }
.admin-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0; }
.admin-pagination a { display: grid; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; place-items: center; }
.admin-pagination a.is-active { color: #fff; border-color: var(--blue); background: var(--blue); }

.admin-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.admin-field label { font-size: 12px; font-weight: 700; }
.admin-field label em { margin-left: 4px; color: var(--danger); font-style: normal; }
.admin-field input:not([type=checkbox]):not([type=file]), .admin-field select, .admin-field textarea { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #bdcbd4; background: #fff; }
.admin-field textarea { resize: vertical; line-height: 1.65; }
.admin-form-grid, .admin-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.admin-field--full { grid-column: 1 / -1; }
.admin-content-form { padding: 28px; }
.admin-content-form > .admin-alert { margin-top: 20px; }
.admin-editor-toolbar { display: flex; min-height: 42px; align-items: center; gap: 4px; padding: 5px; border: 1px solid #bdcbd4; border-bottom: 0; background: #f7fafc; }
.admin-editor-toolbar button { min-width: 32px; height: 30px; padding: 4px 8px; border: 1px solid transparent; background: transparent; }
.admin-editor-toolbar button:hover { border-color: var(--line); background: #fff; }
.admin-tiptap-surface { min-height: 270px; padding: 15px; border: 1px solid #bdcbd4; overflow-wrap: anywhere; line-height: 1.75; }
.admin-tiptap-surface:empty::before { color: #8b99a1; content: "输入正文内容"; }
.admin-form-footer, .admin-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #e5ebef; }
.admin-two-fields { display: grid; grid-template-columns: minmax(0,1fr) 110px; gap: 12px; }
.admin-check-row { display: flex; min-height: 36px; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; }
.admin-check-row input { width: 17px; height: 17px; accent-color: var(--blue); }
.admin-side-form { position: sticky; top: 88px; align-self: start; }
.admin-split-layout { display: grid; align-items: start; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; }
.admin-split-layout--users { grid-template-columns: minmax(0,1fr) 330px; }
.admin-help { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.admin-field-error { color: var(--danger); font-size: 11px; line-height: 1.5; }
.admin-field.has-error input, .admin-field.has-error select, .admin-field.has-error textarea, .admin-field.has-error .admin-tiptap-surface { border-color: var(--danger); }
.admin-asset-picker { display: grid; min-width: 0; padding: 14px; border: 1px solid #d7e0e6; background: #f8fafc; grid-template-columns: 180px minmax(220px, 1fr); gap: 12px 16px; }
.admin-asset-current { display: grid; width: 180px; height: 112px; grid-row: 1 / 3; align-items: center; justify-items: center; padding: 10px; color: var(--muted); border: 1px solid var(--line); background: #fff; overflow: hidden; font-size: 10px; text-align: center; }
.admin-asset-current img { width: 100%; height: 100%; object-fit: cover; }
.admin-asset-picker > select { align-self: end; }
.admin-inline-upload { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-inline-upload > input[type=file] { flex: 1 1 180px; max-width: 100%; }
.admin-inline-upload .admin-secondary-button { flex: 0 0 auto; white-space: nowrap; }
.admin-inline-upload > input[type=file] { min-width: 0; padding: 8px; border: 1px dashed #aebfc9; background: #fff; font-size: 11px; }
.admin-inline-upload .admin-check-row { font-size: 10px; font-weight: 500; }
.admin-narrow-form { width: min(590px, 100%); }
.admin-narrow-form form { display: grid; gap: 18px; }

.admin-media-layout { display: grid; align-items: start; grid-template-columns: 320px minmax(0,1fr); gap: 22px; }
.admin-media-library { min-width: 0; }
.admin-media-library:only-child { grid-column: 1 / -1; }
.admin-upload-form { position: sticky; top: 88px; }
.admin-upload-form { display: grid; gap: 15px; }
.admin-media-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.admin-media-card { min-width: 0; border: 1px solid var(--line); border-radius: 3px; background: #fff; overflow: hidden; }
.admin-media-card__preview { display: grid; aspect-ratio: 16/10; color: var(--blue-dark); background: #eaf1f5; place-items: center; overflow: hidden; }
.admin-media-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.admin-media-card__body { display: flex; min-width: 0; padding: 13px; flex-direction: column; gap: 6px; }
.admin-media-card__body strong, .admin-media-card__body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-media-card__body small { color: var(--muted); font-size: 10px; }
.admin-media-card dl { display: grid; margin: 5px 0 0; gap: 3px; }
.admin-media-card dl > div { display: grid; grid-template-columns: 38px minmax(0,1fr); }
.admin-media-card dt { color: var(--muted); font-size: 10px; }
.admin-media-card dd { margin: 0; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-media-card footer { display: flex; min-height: 42px; flex-wrap: wrap; align-items: center; gap: 5px; padding: 7px 10px; border-top: 1px solid var(--line); }
.admin-media-card footer a, .admin-media-card footer button { flex: 0 0 auto; padding: 5px 7px; white-space: nowrap; color: var(--blue-dark); background: #fff; font-size: 12px; line-height: 1.5; }

.admin-import-panel { margin-bottom: 20px; }
.admin-import-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.admin-import-controls input { min-width: 240px; padding: 8px; border: 1px dashed #aebfc9; }
.admin-import-panel .admin-table-wrap { margin-top: 16px; border: 1px solid var(--line); }
.admin-settings-grid { gap: 24px 20px; }
.admin-setting-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.admin-setting-heading label small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; font-weight: 400; }
.admin-switch { position: relative; display: inline-flex; min-height: 40px; align-items: center; gap: 8px; cursor: pointer; }
.admin-switch input { position: absolute; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; inset: 0; }
.admin-switch > span { position: relative; width: 40px; height: 22px; border-radius: 11px; background: #aab8c0; transition: background 160ms ease; }
.admin-switch input:focus-visible + span { outline: 3px solid rgb(28 129 186 / 34%); outline-offset: 2px; }
.admin-switch > span::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; content: ""; transition: transform 160ms ease; }
.admin-switch input:checked + span { background: var(--blue); }
.admin-switch input:checked + span::after { transform: translateX(18px); }
.admin-switch em { font-size: 11px; font-style: normal; font-weight: 500; }
.admin-switch--compact { min-height: 30px; }
.admin-switch--compact > span { width: 34px; height: 19px; }
.admin-switch--compact > span::after { width: 13px; height: 13px; }
.admin-switch--compact input:checked + span::after { transform: translateX(15px); }
.admin-inline-save { display: flex; align-items: center; gap: 6px; }
.admin-inline-save span { color: var(--success); font-size: 10px; white-space: nowrap; }
.admin-password-field { position: relative; display: flex; }
.admin-password-field input { width: 100%; padding-right: 44px !important; }
.admin-password-field button { position: absolute; top: 1px; right: 1px; width: 40px; height: calc(100% - 2px); color: var(--muted); background: #fff; }

.admin-alert { padding: 10px 12px; color: #32454f; border: 1px solid #bcd3df; border-radius: 3px; background: #f0f8fc; font-size: 12px; line-height: 1.5; }
.admin-alert--error { color: #8f263a; border-color: #e1b5bd; background: #fff3f5; }
.admin-alert--success { color: #086444; border-color: #a9d8c5; background: #effaf5; }
.admin-empty { display: grid; min-height: 100px; color: var(--muted); place-items: center; text-align: center; }
.admin-toast { position: fixed; z-index: 110; right: 20px; bottom: 20px; max-width: 340px; padding: 11px 14px; color: #fff; border-radius: 3px; background: var(--ink); box-shadow: 0 8px 25px rgb(17 24 32 / 18%); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 160ms ease, transform 160ms ease; }
.admin-toast.admin-toast--error { background: #8f263a; }
.admin-toast.is-visible { opacity: 1; transform: none; }

.admin-login-page { position: relative; display: grid; min-height: 100vh; padding: 30px; background: #34424b url('/media/original-clarity.webp') center / cover no-repeat; place-items: center; overflow: hidden; }
.admin-login-page::before { position: fixed; background: rgb(17 24 32 / 69%); content: ""; inset: 0; }
.admin-login-back { position: fixed; z-index: 3; top: 28px; left: 32px; color: #fff; font-size: 12px; font-weight: 700; }
.admin-login-pattern { position: fixed; z-index: 1; width: min(40vw, 520px); height: min(52vw, 520px); right: 3vw; border: 2px solid rgb(93 180 226 / 25%); transform: rotate(15deg); }
.admin-login-pattern i { position: absolute; height: 3px; background: rgb(93 180 226 / 28%); right: 10%; left: 10%; }
.admin-login-pattern i:nth-child(1) { top: 22%; }
.admin-login-pattern i:nth-child(2) { top: 40%; left: 25%; }
.admin-login-pattern i:nth-child(3) { top: 58%; left: 40%; }
.admin-login-panel { position: relative; z-index: 2; width: min(430px, calc(100vw - 32px)); padding: 44px 34px 32px; border-top: 4px solid var(--blue); border-radius: 5px; background: #fff; box-shadow: 0 24px 65px rgb(0 0 0 / 28%); }
.admin-login-panel header { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.admin-login-panel header img { width: 58px; height: 58px; object-fit: contain; }
.admin-login-panel header small { color: var(--blue-dark); font-size: 9px; font-weight: 800; }
.admin-login-panel h1 { margin: 2px 0 0; font-family: var(--font-display); font-size: 25px; font-weight: 600; }
.admin-login-panel header p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.admin-login-panel form { display: grid; gap: 8px; }
.admin-login-panel form > label { margin-top: 7px; font-size: 11px; font-weight: 700; }
.admin-login-panel input { width: 100%; height: 43px; padding: 8px 11px; border: 1px solid #bdcbd4; }
.admin-login-panel .admin-primary-button { width: 100%; margin-top: 14px; }
.admin-login-panel footer { margin-top: 24px; padding-top: 18px; color: var(--muted); border-top: 1px solid #e3e9ed; font-size: 10px; text-align: center; }

@media (max-width: 1250px) {
  .admin-metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .admin-media-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-split-layout, .admin-split-layout--users { grid-template-columns: minmax(0,1fr); }
  .admin-side-form { position: static; }
  .admin-user-table { min-width: 1050px; }
  .frontend-map__item { grid-template-columns: minmax(220px, 1fr) minmax(280px, .8fr); }
  .frontend-map__item > a { grid-column: 2; justify-self: end; }
  .admin-inline-upload { grid-template-columns: minmax(180px, 1fr) auto; }
  .admin-inline-upload .admin-check-row { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --sidebar: 0px; }
  .admin-workspace { margin-left: 0; }
  .admin-sidebar { width: min(310px, 88vw); transform: translateX(-105%); transition: transform 180ms ease; }
  .admin-sidebar.is-open { transform: none; }
  .admin-sidebar__close { display: block; }
  .admin-sidebar-overlay { position: fixed; z-index: 70; display: block; background: rgb(17 24 32 / 55%); opacity: 0; pointer-events: none; inset: 0; transition: opacity 180ms ease; }
  .admin-sidebar.is-open + .admin-sidebar-overlay { opacity: 1; pointer-events: auto; }
  .admin-mobile-bar { display: flex; height: 58px; align-items: center; justify-content: space-between; padding: 0 14px; color: #fff; background: var(--ink); }
  .admin-mobile-bar span { display: flex; align-items: center; gap: 8px; }
  .admin-mobile-bar img { width: 35px; height: 35px; object-fit: contain; }
  .admin-mobile-bar strong { font-family: var(--font-display); font-size: 15px; }
  .admin-mobile-bar button { width: 40px; height: 40px; color: #fff; background: transparent; font-size: 22px; }
  .admin-topbar { position: static; height: 52px; justify-content: flex-end; padding: 0 15px; }
  .admin-health { display: none; }
  .admin-account summary { min-width: 0; }
  .admin-account summary > span { display: none; }
  .admin-main { padding: 26px 14px 50px; }
  .admin-page-heading { min-height: 0; align-items: stretch; flex-direction: column; margin-bottom: 22px; }
  .admin-page-heading h1 { font-size: 26px; }
  .admin-page-heading--actions > a { width: 100%; }
  .admin-metrics { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .admin-metrics a { min-height: 125px; padding: 14px; }
  .admin-panel--audit { min-height: 480px; }
  .admin-audit-compact article div { flex-direction: column; gap: 2px; }
  .admin-form-grid, .admin-settings-grid { grid-template-columns: minmax(0,1fr); }
  .admin-field--full { grid-column: auto; }
  .admin-content-form { padding: 18px; }
  .admin-filter-bar { align-items: stretch; flex-direction: column; }
  .admin-filter-bar input, .admin-filter-bar select { width: 100%; }
  .admin-media-layout { grid-template-columns: minmax(0,1fr); }
  .admin-upload-form { position: static; }
  .admin-media-grid { grid-template-columns: minmax(0,1fr); }
  .admin-import-controls { align-items: stretch; flex-direction: column; }
  .admin-import-controls input, .admin-import-controls button { width: 100%; }
  .admin-login-page { padding: 16px; }
  .admin-login-back { top: 18px; left: 18px; }
  .admin-login-panel { padding: 32px 24px 25px; }
  .admin-login-pattern { display: none; }
  .frontend-map { margin-left: 13px; }
  .frontend-map__item { min-height: 0; padding: 18px 14px 18px 29px; grid-template-columns: minmax(0,1fr); gap: 14px; }
  .frontend-map__step { left: -17px; width: 32px; height: 32px; border-width: 3px; }
  .frontend-map__item dl { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .frontend-map__item > a { width: 100%; grid-column: auto; }
  .admin-panel--audit { min-height: 0; }
  .admin-asset-picker { grid-template-columns: minmax(0,1fr); }
  .admin-asset-current { width: 100%; height: 170px; grid-row: auto; }
  .admin-inline-upload { grid-template-columns: minmax(0,1fr); }
  .admin-inline-upload .admin-check-row { grid-column: auto; }
  .admin-inline-upload .admin-secondary-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.admin-preview-dialog{width:min(1120px,94vw);max-width:94vw;border:0;border-radius:10px;padding:16px;background:#eef2f6}.admin-preview-dialog::backdrop{background:#15263da8}.admin-preview-dialog iframe{display:block;border:0;height:75vh;max-width:100%;margin:12px auto;background:white}.admin-tiptap-surface img{max-width:100%;height:auto}.admin-tiptap-surface table{border-collapse:collapse;width:100%}.admin-tiptap-surface td,.admin-tiptap-surface th{border:1px solid #cbd5e1;padding:8px}.admin-editor-toolbar{flex-wrap:wrap}.admin-alert{white-space:pre-line}.admin-filter-bar [aria-current=page]{font-weight:700;color:#17549a;border-bottom:2px solid}.admin-form-footer{flex-wrap:wrap}.admin-settings-form select{max-width:100%}
