:root {
  --accent: #197b6d; --accent-dark: #126557; --accent-soft: #eaf4f0;
  --page: #f7f8f8; --surface: #fff; --ink: #202725; --muted: #73807b;
  --line: #e5eae7; --radius: 16px; --sidebar: 226px;
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink); background: var(--page); font-size: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--page); line-height: 1.6; }
button, input, select, textarea { font: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #89bdb2; outline-offset: 3px; }
[hidden] { display: none !important; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar); padding: 28px 16px 16px; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; overflow-y: auto; }
.sidebar-brand { display: flex; gap: 11px; align-items: center; padding: 0 10px 28px; color: var(--ink); font-weight: 700; font-size: 17px; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: var(--accent); color: #fff; font-size: 19px; font-family: "SimSun", serif; }
.sidebar-brand strong { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.nav-group-label { padding: 0 12px 10px; color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav a, .sidebar-utility { display: flex; align-items: center; gap: 11px; padding: 11px 12px; min-height: 43px; border-radius: 9px; color: #55615c; font-size: 13px; }
.sidebar-nav a:hover, .sidebar-utility:hover { background: #f4f7f5; }
.sidebar-nav .is-active, .sidebar-utility.is-active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.sidebar-nav .is-active { position: relative; }
.sidebar-nav .is-active::before { content: ""; position: absolute; left: -16px; width: 3px; height: 20px; background: var(--accent); border-radius: 0 3px 3px 0; }
.sidebar-bottom { margin-top: auto; padding-top: 28px; }
.sidebar-person { display: flex; align-items: center; gap: 10px; margin-top: 15px; padding: 17px 8px 0; border-top: 1px solid var(--line); }
.person-avatar { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #d9e8e0; border-radius: 50%; background: #f0f6f3; color: var(--accent); }
.sidebar-person strong { display: block; max-width: 128px; overflow-wrap: anywhere; font-size: 12px; }
.sidebar-person div > span { display: block; font-size: 11px; color: var(--muted); }
.sidebar-person i { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: #4c9a77; }
.mobile-header, .nav-overlay { display: none; }
.desktop-menu-control { margin-bottom: 20px; }
.desktop-nav-toggle { gap: 8px; min-height: 36px; border-color: var(--line); background: var(--surface); color: var(--accent-dark); font-weight: 400; }
.desktop-nav-toggle:hover { background: var(--accent-soft); color: var(--accent-dark); }
@media (min-width: 901px) {
  .sidebar-collapsed .app-sidebar { visibility: hidden; transform: translateX(-100%); }
  .app.sidebar-collapsed main.wrap { width: 100%; margin-left: 0; }
  .sidebar-collapsed .skip-link { left: 20px; }
}
.skip-link { position: fixed; top: -70px; left: 250px; padding: 10px 16px; z-index: 100; color: #fff; background: var(--accent); border-radius: 8px; }
.skip-link:focus { top: 8px; }
.app main.wrap { width: calc(100% - var(--sidebar)); max-width: 1630px; margin: 0 0 0 var(--sidebar); padding: 46px 44px 64px; }
.app.form-page main.wrap { max-width: 1350px; }
.top, .section-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.top { margin-bottom: 30px; }
h1 { margin: 0; font-family: "Noto Serif SC", "Songti SC", "SimSun", serif; font-size: clamp(26px, 2.5vw, 34px); line-height: 1.35; color: var(--ink); font-weight: 700; letter-spacing: -.5px; }
h2 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--ink); }
h1.brand { color: var(--ink); }
.top h1::before { content: "工作空间 / 首访报备"; display: block; margin-bottom: 11px; color: var(--accent); font-family: "Microsoft YaHei", sans-serif; font-size: 10px; font-weight: 400; letter-spacing: 2px; }
.app-admin .top h1::before { content: "管理中心 / 首访报备"; }
.muted, .intro, .subtitle, .hint, .footnote { color: var(--muted); font-size: 13px; }
.top p { margin: 10px 0 0; }
main > section, main > .card, main > .panel, main > form > section, #manager-designer-stats section { margin-top: 22px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: none; min-width: 0; }
.section-head { margin-bottom: 22px; flex-wrap: wrap; }
.section-head p { margin: 5px 0 0; }
.back, .logout { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; color: #59655f; background: #fff; font-size: 12px; white-space: nowrap; }
.back:hover, .logout:hover { border-color: #bdd7cd; background: var(--accent-soft); }
button, .submit, .report-link, .review-link, .detail-link, .edit { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; line-height: 1.4; text-decoration: none; }
button:hover, .report-link:hover, .review-link:hover, .submit:hover { background: var(--accent-dark); color: #fff; }
.detail-link, .edit { border-color: #d7e6dd; background: var(--accent-soft); color: var(--accent-dark); }
.detail-link:hover, .edit:hover { background: #dceee5; color: var(--accent-dark); }
.delete { color: #b2413e; background: #fcf0ef; border-color: #f0d9d6; }
.delete:hover { background: #f5dfdc; color: #963b35; }
.reset, .freeze { color: #876c3f; background: #faf4e9; border-color: #eee2cc; }
.reset:hover, .freeze:hover { color: #705831; background: #f3e7cf; }
input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea { width: 100%; min-width: 0; min-height: 43px; padding: 10px 12px; border: 1px solid #dfe6e2; border-radius: 8px; background: #fff; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #929b96; }
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px #197b6d16; }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; flex-shrink: 0; }
input[type=file] { padding: 9px; background: #fafcfb; font-size: 12px; }
input::file-selector-button { margin-right: 12px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--accent-dark); font: inherit; cursor: pointer; }
.filter, .customer-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px; border: 1px solid #edf0ee; border-radius: 10px; background: #f6f8f7; font-size: 12px; }
.filter form { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.filter label, .customer-filter label { color: #68736e; white-space: nowrap; }
.filter select, .filter input:not([type=checkbox]), .customer-filter select { width: auto; min-height: 36px; padding: 7px 10px; max-width: 220px; font-size: 12px; }
.filter input:not([type=checkbox]) { width: 150px; }
.filter .check { display: flex; align-items: center; gap: 6px; }
.filter button, .customer-filter button { margin-top: 0; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; scrollbar-color: #c7d8cf transparent; }
table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: 13px; }
th, td { padding: 14px 13px; text-align: left; border-bottom: 1px solid #edf0ee; vertical-align: middle; white-space: nowrap; }
th { color: var(--muted); background: #f6f8f7; font-size: 11px; font-weight: 500; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f0f7f3; }
td:first-child { font-weight: 600; }
td button, td .edit { min-height: 30px; padding: 6px 9px; font-size: 11px; margin: 3px 2px 3px 0; white-space: nowrap; }
td form { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.address { min-width: 230px; max-width: 420px; overflow-wrap: anywhere; white-space: normal; font-weight: 400; }
.rate, .tag, .ad-code { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid #dae9e0; border-radius: 6px; color: var(--accent-dark); background: var(--accent-soft); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; margin-top: 20px; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; background: #fff; }
.pagination .active { border-color: var(--accent); background: var(--accent); color: #fff; }
.pagination .disabled { color: #a1aaa5; background: #fafbfa; }
.summary { margin: 25px 0; padding: 18px 22px; border: 1px solid #d8e7df; border-radius: 12px; background: #eff6f2; color: var(--accent-dark); font-weight: 600; }
.designer-media-entry { display: flex; align-items: center; gap: 20px; padding: 26px 28px; border: 1px solid var(--accent-dark); border-radius: var(--radius); background: var(--accent); color: #fff; transition: background .15s; }
.designer-media-entry:hover { background: var(--accent-dark); color: #fff; }
.designer-media-icon { display: grid; place-items: center; flex-shrink: 0; width: 58px; height: 58px; border: 1px solid #ffffff40; border-radius: 15px; background: #ffffff12; }
.designer-media-icon svg { width: 30px; height: 30px; }
.designer-media-copy { display: grid; gap: 5px; min-width: 0; }
.designer-media-label { color: #e1f1ec; font-size: 11px; letter-spacing: 1px; }
.designer-media-copy strong { font-size: 24px; line-height: 1.4; }
.designer-media-description { color: #e1f1ec; font-size: 13px; }
.designer-media-cta { display: inline-flex; align-items: center; justify-content: center; gap: 14px; flex-shrink: 0; margin-left: auto; padding: 11px 18px; border-radius: 9px; background: #fff; color: var(--accent-dark); font-size: 13px; font-weight: 600; }
.overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.metric { padding: 22px; border-right: 1px solid var(--line); }
.metric:last-child { border: 0; }
.metric > span { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin: 7px 0 2px; font-size: 30px; line-height: 1.3; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.metric small { color: var(--muted); font-size: 11px; }
.metric.emphasis strong { color: var(--accent); }
.empty { padding: 32px 12px; color: var(--muted); text-align: center; }
.notice, p.error, .success { padding: 12px 16px; border: 1px solid #d9e8dc; border-radius: 9px; color: var(--accent-dark); background: #f0f8f3; }
.notice.error, p.error { color: #a43d37; border-color: #f1ddd8; background: #fdf3f1; }
.required, .error-text { color: #b94740; }
.error-text { margin: 5px 0; font-size: 12px; }
.customer { margin: 24px 0; padding: 20px 23px; border: 1px solid #dce8e0; border-left: 3px solid var(--accent); border-radius: 10px; background: #edf5f0; line-height: 1.9; }
.form-page main > h1 { margin-top: 20px; }
.field { padding: 17px 0; border-bottom: 1px solid #edf0ee; }
.field:last-child { border-bottom: 0; }
.field label:not(.option), .field .label { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #e6ece8; border-radius: 7px; cursor: pointer; font-size: 13px; }
.option:has(input:checked) { background: var(--accent-soft); border-color: #a5cdbd; color: var(--accent-dark); }
.option:hover { background: #f7faf8; }
.note { margin-top: 11px; }
.hint { margin: 8px 0 0; font-size: 12px; }
.submit, .form-page .card form > button { margin-top: 22px; min-height: 43px; }
.submit { width: 100%; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.item { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; padding: 15px 0; border-bottom: 1px solid #edf0ee; }
.item:last-child { border: 0; }
.item .label { color: #65716b; font-size: 13px; }
.value { overflow-wrap: anywhere; white-space: pre-wrap; }
.info { padding-bottom: 18px; border-bottom: 1px solid var(--line); line-height: 1.9; }
.goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 1px; margin-top: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--line); overflow: hidden; }
.goal { min-height: 108px; padding: 18px; background: #fff; }
.goal span { display: block; font-size: 12px; color: var(--muted); }
.goal strong { display: block; margin-top: 8px; color: var(--accent-dark); font-size: 26px; font-variant-numeric: tabular-nums; }
.manager-media-stats .goal strong { font-size: 22px; }
.manager-media-note { margin: 24px 0 14px; }
.media-progress { display: inline-block; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--muted); }
.media-progress.is-complete { color: var(--accent-dark); font-weight: 600; }
.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.action { position: relative; min-height: 125px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; transition: border-color .15s, background .15s; }
.action::after { content: '↗'; position: absolute; right: 16px; top: 16px; color: var(--accent); }
.action:hover { border-color: #a9cdbd; background: #f6faf7; }
.action strong { display: block; font-size: 16px; padding-right: 12px; }
.action span { display: block; margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.upload-tip { margin: 0 0 8px; padding: 13px 16px; border-left: 3px solid var(--accent); background: #f0f7f3; color: var(--accent-dark); font-size: 13px; }
.upload-list, .booking-list, .collection-list, .feed-list { display: grid; gap: 16px; margin-top: 20px; }
.upload-item, .booking-item, .collection-item, .feed-item { padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.upload-meta, .booking-meta, .collection-meta, .feed-title { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-weight: 600; font-size: 13px; }
.upload-time, .booking-time { color: var(--muted); font-size: 11px; font-weight: 400; }
.upload-desc, .booking-desc, .collection-text { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; }
.collection-sub, .feed-info { margin-top: 10px; color: var(--muted); font-size: 13px; }
.tracking, .booking-liaison { display: grid; gap: 6px; margin: 14px 0; padding: 12px 15px; border-radius: 8px; background: #f2f7f4; font-size: 12px; color: #576e62; overflow-wrap: anywhere; }
.upload-gallery, .preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 14px; }
.upload-photo, .booking-photo, .preview-grid .preview { width: 100%; height: 140px; object-fit: cover; border: 1px solid var(--line); border-radius: 9px; }
.upload-preview-item { position: relative; min-width: 0; }
.upload-preview-item .preview { display: block; }
.upload-preview-remove { position: absolute; top: 7px; right: 7px; min-height: 36px; padding: 7px 11px; border-radius: 7px; background: #a43d37; color: #fff; }
.upload-preview-remove:hover { background: #82302b; }
.upload-preview-file { display: flex; align-items: center; min-height: 140px; padding: 48px 12px 12px; border: 1px solid var(--line); border-radius: 9px; overflow-wrap: anywhere; }
.album-year { margin: 22px 0 24px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 400; }
.album-date-group { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 18px; margin-bottom: 30px; }
.album-date { display: flex; align-items: baseline; gap: 3px; color: var(--ink); white-space: nowrap; }
.album-date strong { font-size: 29px; line-height: 1.2; font-weight: 600; }
.album-date span { font-size: 12px; }
.album-date .album-relative { font-size: 23px; }
.album-day-entries { display: grid; gap: 22px; min-width: 0; }
.album-entry { min-width: 0; }
.album-entry-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
.album-cover { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 2px; width: 110px; height: 110px; overflow: hidden; background: #edf1ee; }
.album-cover.is-single { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.album-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.album-photo-count { position: absolute; right: 0; bottom: 0; padding: 2px 5px; background: #202725b3; color: #fff; font-size: 10px; }
.album-no-image { grid-column: 1 / -1; grid-row: 1 / -1; align-self: center; text-align: center; color: var(--muted); font-size: 12px; }
.album-copy { min-width: 0; }
.album-description { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.album-property { margin: 0 0 5px; color: var(--accent-dark); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.album-details { margin-top: 8px; }
.album-details summary { width: fit-content; color: var(--muted); font-size: 12px; cursor: pointer; }
.album-details[open] summary { color: var(--accent-dark); }
.album-details-content { padding-top: 8px; }
.booking-photo { width: 200px; }
.field > .preview { display: none; margin-top: 15px; width: 360px; max-width: 100%; max-height: 300px; object-fit: contain; border-radius: 10px; }
.field > .preview.show { display: block; }
.script-list { display: grid; gap: 10px; margin: 15px 0 0; padding: 0; list-style: none; }
.script-list li { padding: 14px; border-left: 2px solid #a8cdbb; border-radius: 6px; background: #f5f8f6; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.ad-code { margin-right: 8px; }
.app-password main.wrap { max-width: 850px; }
.app-password label { display: block; margin-top: 18px; font-weight: 600; }
.app-password label input { margin-top: 8px; }
.app-password form > button { width: 100%; margin-top: 24px; }
.auth-page { display: grid; place-items: center; min-height: 100vh; padding: 50px 20px; background: #f6f8f6; }
.auth-page > .auth-brand { display: flex; align-items: center; gap: 10px; position: absolute; top: 25px; left: 32px; color: var(--ink); font-weight: 700; }
.auth-page > main.card, .auth-page main.page { width: 100%; max-width: 460px; margin: 24px 0; }
.auth-page > main.card, .auth-page .page > .card { padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 30px #1b3d2b05; }
.auth-page h1 { font-size: 29px; }
.auth-page p { font-size: 13px; color: var(--muted); }
.auth-page label { display: block; margin-top: 17px; font-size: 13px; font-weight: 600; }
.auth-page label input, .auth-page label select, .auth-page label + input, .auth-page label + select { margin-top: 7px; }
.auth-page form > button { width: 100%; min-height: 43px; margin-top: 25px; }
.auth-page .page > .brand { display: none; }
.auth-page .grid { gap: 13px; }
.auth-page .footnote { line-height: 1.8; }
.auth-page p.error { color: #a43d37; }
@media (min-width: 1450px) { .app main.wrap { padding-left: 58px; padding-right: 58px; } }
@media (max-width: 1100px) { .app main.wrap { padding: 34px 26px 50px; } .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } .top { align-items: flex-start; flex-wrap: wrap; } .metric { padding: 18px; } }
@media (max-width: 900px) {
  .desktop-menu-control { display: none; }
  .app-sidebar { transform: translateX(-100%); visibility: hidden; transition: transform .18s; top: 61px; width: 240px; }
  .nav-open .app-sidebar { transform: translateX(0); visibility: visible; }
  .mobile-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; height: 61px; padding: 0 20px; border-bottom: 1px solid var(--line); background: #fff; }
  .mobile-brand { display: flex; gap: 9px; align-items: center; color: var(--ink); font-weight: 700; }
  .mobile-brand .brand-mark { width: 29px; height: 29px; font-size: 16px; }
  .nav-toggle { padding: 8px; background: #f3f7f4; color: var(--accent); border-color: var(--line); }
  .nav-overlay:not([hidden]) { display: block; position: fixed; inset: 61px 0 0; z-index: 25; background: #182f264d; border: 0; border-radius: 0; width: 100%; }
  .nav-open { overflow: hidden; }
  .app main.wrap { width: 100%; margin: 0; padding: 28px 22px 45px; }
  .skip-link { left: 20px; }
}
@media (max-width: 600px) {
  .album-date-group { grid-template-columns: 56px minmax(0, 1fr); gap: 8px; margin-bottom: 26px; }
  .album-date strong { font-size: 25px; }
  .album-date span { font-size: 10px; }
  .album-date .album-relative { font-size: 21px; }
  .album-entry-row { grid-template-columns: 86px minmax(0, 1fr); gap: 10px; }
  .album-cover { width: 86px; height: 86px; }
  .album-description { font-size: 13px; line-height: 1.6; }
  .album-year { margin-top: 16px; }
  .designer-media-entry { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .designer-media-icon { width: 44px; height: 44px; border-radius: 12px; }
  .designer-media-icon svg { width: 25px; height: 25px; }
  .designer-media-copy strong { font-size: 22px; }
  .designer-media-description { font-size: 12px; }
  .designer-media-cta { grid-column: 1 / -1; width: 100%; margin: 2px 0 0; min-height: 44px; }
  .app main.wrap { padding: 24px 16px 40px; }
  .top, .section-head { align-items: flex-start; flex-direction: column; gap: 15px; }
  .top { margin-bottom: 22px; }
  .top > div, .section-head > div { max-width: 100%; }
  main > section, main > .card, main > .panel, main > form > section, #manager-designer-stats section { padding: 19px 16px; margin-top: 17px; }
  .filter, .customer-filter { width: 100%; gap: 8px; }
  .filter select, .filter input:not([type=checkbox]), .customer-filter select { max-width: 100%; }
  .overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 16px; border-bottom: 1px solid var(--line); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { border-bottom: 0; }
  .metric strong { font-size: 26px; }
  .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .actions { grid-template-columns: 1fr; }
  .action { min-height: 105px; }
  .grid, .item { grid-template-columns: 1fr; gap: 7px; }
  .option { font-size: 12px; }
  .upload-item, .booking-item, .collection-item, .feed-item { padding: 15px; }
  .upload-gallery, .preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pagination { justify-content: flex-start; }
  .auth-page { padding: 70px 16px 20px; }
  .auth-page > .auth-brand { left: 20px; top: 22px; }
  .auth-page > main.card, .auth-page .page > .card { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

[data-full-image] { cursor: zoom-in; }
[data-full-image]:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
body.image-viewer-open { overflow: hidden; }
.image-viewer { width: 96vw; max-width: 1600px; height: 94dvh; max-height: 94vh; padding: 12px; border: 0; border-radius: 12px; background: #141917; color: #fff; }
.image-viewer::backdrop { background: #000c; }
.image-viewer-bar { display: flex; justify-content: space-between; align-items: center; height: 44px; }
.image-viewer button { padding: 8px 12px; background: #ffffff20; color: #fff; border: 0; }
.image-viewer button:disabled { opacity: .3; cursor: default; }
.image-viewer-stage { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; align-items: center; height: calc(100% - 44px); }
.image-viewer-stage img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.image-viewer-stage button { font-size: 28px; padding: 6px; }

.upload-gallery.generated-gallery, .upload-gallery.original-gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); overflow-x: auto; padding-bottom: 8px; }
