/* Twenty reference adaptation. Keep controller and photo-layout ownership intact. */
@font-face {
  font-family:Inter;
  src:url('/fonts/InterVariable.woff2') format('woff2');
  font-weight:100 900;
  font-style:normal;
  font-display:swap;
}
:root {
  --display:Inter,-apple-system,BlinkMacSystemFont,sans-serif;
  --bg:#f6f6f6;
  --surface:#ffffff;
  --surface-alt:#fdfdfd;
  --text:#333333;
  --muted:#666666;
  --border:#ececec;
  --accent:#666666;
  --accent-hover:#4d4d4d;
  --accent-soft:#ececec;
  --on-accent:#ffffff;
  --line:var(--border);
  --ink:var(--text);
  --secondary:color-mix(in srgb,var(--text) 50%,var(--surface));
  --action-blue:#4164dd;
  --action-blue-hover:#3658cd;
  --radius:7px;
  --radius-control:6px;
  --radius-action:6px;
  --shadow:0 4px 18px #0000000d,0 1px 4px #00000008;
  --focus:#4164dd;
  --success:#387750;
  --success-soft:#eaf4ec;
}
[data-theme=dark] { --shadow:0 5px 20px #0003; --success:#a4c9ad; --success-soft:#283a2e; }
body { font-family:var(--display); font-size:13px; line-height:1.55; }
h1,.page-title,.page-header h1,.admin-heading-copy .page-title {
  font-family:var(--display); font-size:20px; font-weight:600; line-height:1.35; letter-spacing:-.5px; text-transform:none;
}
h2,.admin-root h2 { font-family:var(--display); font-size:16px; font-weight:600; line-height:1.4; letter-spacing:-.25px; text-transform:none; }
h3,.admin-root h3 { font-size:13px; font-weight:600; }
:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
.btn,.icon-button,.admin-root .btn,.admin-root .toolbar .btn {
  border-radius:6px; min-height:32px; font-size:12px; font-weight:500; padding:6px 11px; gap:6px;
  transition:background .14s,border-color .14s; box-shadow:0 1px 2px #00000004;
}
.btn svg,.icon-button svg { width:16px; height:16px; }
.icon-button { width:32px; height:32px; padding:6px; }
.btn.primary { color:#fff; background:var(--action-blue); border-color:var(--action-blue); }
.btn:hover:not(:disabled),.icon-button:hover:not(:disabled) { border-color:var(--border); background:var(--surface-alt); }
.btn.primary:hover:not(:disabled) { background:var(--action-blue-hover); border-color:var(--action-blue-hover); }
/* Opening a creation/upload flow stays neutral; the dialog commits in blue. */
.btn.primary:is([data-action="new-gallery"],[data-action="new-album"],[data-action="upload"],[data-upload="files"]) {
  background:var(--surface); border-color:var(--border); color:var(--text);
}
.btn.primary:is([data-action="new-gallery"],[data-action="new-album"],[data-action="upload"],[data-upload="files"]):hover:not(:disabled) {
  background:var(--accent-soft); border-color:var(--border);
}
.btn:active:not(:disabled),.icon-button:active:not(:disabled) { transform:none; }
.text-button { font-weight:500; color:var(--text); }
input:where(:not([type=checkbox]):not([type=radio]):not([type=file])),textarea,select {
  border-radius:6px; min-height:36px; padding:8px 11px; font-size:12px;
}
input[type=checkbox],input[type=radio] { width:15px; height:15px; }
input:focus-visible,textarea:focus-visible { border-color:var(--focus); }
.field { font-size:12px; gap:7px; }
.field>span { font-weight:500; }
.field small { font-size:11px; }
.ui-select-trigger { min-height:34px; border-radius:6px; padding:7px 10px; font-size:12px; }
.ui-select-trigger[aria-expanded=true] { border-color:var(--focus); box-shadow:0 0 0 2px color-mix(in srgb,var(--focus) 15%,transparent); }
.select-popup { border-radius:7px; border-color:var(--border); padding:4px; box-shadow:var(--shadow); }
.select-option { min-height:34px; font-size:12px; border-radius:4px; }
.select-option[aria-selected=true] { color:var(--text); background:var(--surface-alt); }
.surface { border-radius:7px; padding:22px; box-shadow:none; }
.notice { border-radius:6px; font-size:12px; line-height:1.65; padding:12px 14px; }
.badge { border-radius:4px; padding:2px 7px; font-size:10px; font-weight:500; }
.badge.accent { color:var(--text); }
.tabs { background:transparent; padding:0; gap:16px; border:0; border-bottom:1px solid var(--border); border-radius:0; }
.tabs>a,.tabs>button,.admin-tabs>a { min-height:40px; padding:10px 2px; font-size:12px; font-weight:500; border-bottom:2px solid transparent; border-radius:0; }
.tabs .active,.tabs [aria-current=page] { color:var(--text); background:transparent; border-bottom-color:var(--text); }
.tabs>a:hover,.tabs>button:hover { background:transparent; color:var(--text); }
.segmented { padding:2px; gap:2px; border-radius:6px; }
.segmented button { border-radius:3px; min-height:28px; height:28px; width:30px; padding:5px; }
.segmented [aria-pressed=true] { background:var(--surface-alt); box-shadow:0 1px 3px #0001; }
.empty-state { padding:64px 24px; border:1px solid var(--border); border-radius:7px; }
.empty-state h1,.empty-state h2 { font-size:19px; font-weight:600; }
.empty-state p { font-size:12px; }
.empty-icon { border-radius:7px; color:var(--muted); }
.save-bar,.admin-settings-footer { border-radius:7px; border-color:var(--border); box-shadow:var(--shadow); padding:12px 16px; }
.save-bar>span { font-size:11px; }
.avatar { color:var(--text); border-radius:5px; }
/* Persistent, quiet navigation surrounding a white working surface. */
.app-shell { display:grid; grid-template-columns:clamp(150px,12.1vw,224px) minmax(0,1fr); min-height:100dvh; padding:0; gap:0; }
.sidebar {
  position:sticky; top:0; height:100dvh; min-height:0; width:100%; max-width:none; margin:0;
  padding:16px 12px 12px; display:flex; flex-direction:column; align-items:stretch; gap:0;
  background:var(--bg); color:var(--text); border:0; border-radius:0;
}
.brand,.sidebar>.brand { font-family:var(--display); font-size:17px; font-weight:700; letter-spacing:-.6px; text-transform:none; }
.sidebar>.brand { display:flex; align-items:center; flex-shrink:0; margin:0 0 30px; padding:0 8px; min-height:28px; }
.brand>span:last-child { color:var(--text); }
.brand-mark { display:grid; grid-template-columns:repeat(2,5px); gap:2px; margin-right:9px; padding:6px; border-radius:5px; background:var(--text); transform:none; }
.brand-mark i { height:5px; border-radius:1px; background:var(--surface); opacity:1; }
.sidebar-caption { display:block; color:var(--muted); font-size:10px; font-weight:400; letter-spacing:0; text-transform:none; padding:0 9px; margin:0 0 8px; }
.sidebar nav { display:flex; flex-direction:column; gap:3px; padding:0; background:transparent; border:0; box-shadow:none; }
.nav-link { display:flex; align-items:center; justify-content:flex-start; min-height:33px; padding:7px 9px; gap:9px; border-radius:5px; font-size:12px; color:var(--muted); font-weight:400; }
.nav-link>span { display:block; }
.nav-link>svg { width:16px; height:16px; color:var(--muted); }
.nav-link.active,.nav-link.active:hover { background:var(--accent-soft); color:var(--text); font-weight:500; }
.nav-link.active>svg { color:var(--muted); }
.nav-link:hover { background:var(--surface-alt); color:var(--text); }
.sidebar :focus-visible { outline-color:var(--focus); }
.sidebar-bottom { position:static; margin: auto 0 0; min-width:0; padding-top:16px; border-top:1px solid var(--border); }
.account-link { display:flex; gap:9px; align-items:center; max-width:none; border:0; padding:7px; border-radius:5px; background:transparent; }
.account-link:hover,.account-link.active { background:var(--surface-alt); }
.account-link>span:not(.avatar) { display:block; min-width:0; flex:1; }
.account-link strong { display:block; font-size:11px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-link small { color:var(--muted); font-size:10px; }
.account-link .avatar { width:28px; height:28px; border-radius:5px; font-size:10px; color:var(--text); background:var(--accent-soft); }
.account-link>svg { display:block; width:15px; height:15px; color:var(--muted); margin:0; }
.workspace { width:100%; min-width:0; max-width:none; padding:0 8px 8px 0; margin:0; }
.workspace-topbar { height:48px; display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 18px; font-size:11px; }
.workspace-breadcrumb { display:flex; align-items:center; gap:10px; min-width:0; }
.workspace-breadcrumb>a { display:flex; gap:7px; align-items:center; color:var(--muted); }
.workspace-breadcrumb>a:hover { color:var(--text); }
.workspace-breadcrumb svg { width:14px; height:14px; color:var(--muted); }
.workspace-breadcrumb>span:first-of-type { color:var(--secondary); }
.workspace-owner { color:var(--muted); font-size:10px; white-space:nowrap; }
#route-content { min-height:calc(100dvh - 56px); background:var(--surface); border:1px solid var(--border); border-radius:8px; padding:22px 24px 40px; }
.page-header,.admin-page-header { align-items:center; gap:16px; margin-bottom:20px; }
.page-header p,.admin-page-header p { font-size:12px; margin-top:5px; }
.admin-heading-actions { max-width:none; gap:6px; }
.admin-root .admin-heading-actions .btn { padding:6px 10px; white-space:nowrap; }
.admin-back { min-height:30px; font-size:11px; margin:0 0 12px; }
.admin-eyebrow { gap:9px; font-size:11px; margin-bottom:8px; letter-spacing:0; }
.admin-summary { gap:24px; padding:0 0 18px; margin-bottom:16px; border-top:0; border-bottom:1px solid var(--border); font-size:11px; }
.admin-summary>span { display:flex; gap:5px; align-items:baseline; }
.admin-summary strong { font-family:var(--display); font-size:12px; line-height:1.5; font-weight:600; letter-spacing:0; margin:0; }
.admin-list-tools { padding:0; gap:8px; margin-bottom:16px; background:transparent; border:0; }
.admin-search { min-width:160px; max-width:280px; }
.admin-search>svg { left:10px; width:15px; height:15px; }
.admin-search input:not([type=checkbox]) { min-height:34px; font-size:12px; padding:7px 10px 7px 32px; background:var(--surface); }
.admin-list-tools>.ui-select { min-width:150px; max-width:200px; }
.admin-list-tools .segmented { margin-left:auto; }
.admin-gallery-grid { gap:18px; }
.admin-gallery-card { background:var(--surface); border:1px solid var(--border); border-radius:7px; box-shadow:none; }
.admin-gallery-cover { width:100%; height:auto; aspect-ratio:1.65; margin:0; border:0; border-bottom:1px solid var(--border); border-radius:6px 6px 0 0; }
.admin-gallery-cover>img { transition:filter .18s; }
.admin-gallery-cover:hover>img { transform:none; filter:brightness(.97); }
.admin-gallery-cover>.badge { top:10px; left:10px; box-shadow:0 1px 4px #0001; border-radius:4px; font-size:10px; }
.badge.admin-status-published,.admin-gallery-cover>.admin-status-published { background:var(--success-soft); color:var(--success); }
.admin-gallery-cover>.admin-status-published:before { background:var(--success); }
.admin-gallery-copy { padding:12px 13px 13px; border:0; }
.admin-root .admin-gallery-title { font-family:var(--display); font-size:13px; font-weight:600; text-transform:none; letter-spacing:-.15px; min-height:28px; }
.admin-gallery-copy>p { font-size:11px; }
.admin-gallery-foot { font-size:10px; margin-top:12px; gap:8px; }
.admin-pending { font-size:10px; font-weight:500; }
/* The existing list view uses real columns and the same gallery actions. */
.gallery-table-wrap { position:relative; width:100%; overflow-x:auto; padding-bottom:8px; }
.gallery-table { width:100%; border-collapse:separate; border-spacing:0; table-layout:fixed; font-size:12px; }
.gallery-table th { text-align:left; color:var(--muted); font-size:10px; font-weight:400; white-space:nowrap; background:var(--surface); height:34px; padding:0 12px; border-block:1px solid var(--border); border-right:1px solid var(--border); }
.gallery-table th:first-child { width:32%; }
.gallery-table th:nth-child(2) { width:16%; }
.gallery-table th:nth-child(3) { width:17%; }
.gallery-table th:nth-child(4) { width:12%; }
.gallery-table th:last-child { width:42px; border-right:0; }
.gallery-table th svg { width:12px; height:12px; margin-right:4px; color:var(--secondary); }
.gallery-table td { height:57px; padding:8px 12px; border-bottom:1px solid var(--border); border-right:1px solid color-mix(in srgb,var(--border) 45%,transparent); vertical-align:middle; }
.gallery-table td:last-child { border-right:0; }
.gallery-table tbody tr:hover { background:color-mix(in srgb,var(--bg) 65%,var(--surface)); }
.gallery-row-open { display:flex; align-items:center; gap:10px; padding:0; border:0; background:none; width:100%; min-width:0; text-align:left; font-size:12px; font-weight:500; min-height:36px; }
.gallery-row-open>span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gallery-row-open:hover>span:last-child { text-decoration:underline; text-underline-offset:3px; }
.gallery-row-thumbnail { display:grid; place-items:center; height:28px; width:32px; flex:0 0 32px; background:var(--surface-alt); border:1px solid var(--border); border-radius:4px; overflow:hidden; }
.gallery-row-thumbnail img { width:100%; height:100%; object-fit:cover; }
.gallery-row-thumbnail svg { width:15px; height:15px; color:var(--muted); }
.gallery-count-cell { font-variant-numeric:tabular-nums; }
.gallery-count-cell .admin-pending { display:block; margin-top:2px; }
.gallery-access { display:inline-flex; align-items:center; gap:5px; font-size:11px; }
.gallery-access svg { width:12px; height:12px; color:var(--muted); }
.gallery-expiry { display:block; color:var(--muted); font-size:10px; margin-top:2px; }
.gallery-table .gallery-actions-cell { padding:4px; }
.gallery-table tfoot td { color:var(--muted); height:38px; font-size:10px; border-bottom:0; }
.admin-section-heading { margin-bottom:16px; gap:12px; }
.admin-section-heading p { font-size:11px; }
.admin-tabs { margin-top:20px; margin-bottom:22px; gap:18px; }
.admin-tabs>a { flex:0 0 auto; }
.admin-tabs>a>svg { display:block; width:14px; height:14px; }
.admin-photo-bulk,.admin-review-bulk { border-radius:6px; padding:8px 12px; min-height:48px; }
.admin-check { font-size:12px; }
.admin-order-hint { margin:12px 0; font-size:11px; }
.admin-photo-card,.admin-review-photo,.admin-album-card { border-radius:6px; box-shadow:none; }
.admin-photo-card.selected,.admin-review-photo.selected { border-color:var(--focus); box-shadow:0 0 0 1px var(--focus); }
.admin-photo-caption { padding:9px 10px; gap:7px; }
.admin-photo-caption strong { font-size:11px; }
.admin-photo-caption small { font-size:10px; }
.admin-order-buttons>.icon-button { width:28px; height:28px; min-height:28px; font-size:14px; }
.admin-photo-check { border-radius:4px; width:28px; height:28px; }
.admin-menu>div { border-color:var(--border); border-radius:7px; padding:4px; box-shadow:var(--shadow); }
.admin-menu>div>button { font-size:12px; border-radius:4px; min-height:34px; padding:7px 10px; }
.admin-album-copy .toolbar { flex-wrap:wrap; gap:4px; }
.admin-root .admin-album-copy .btn { padding:5px 7px; font-size:11px; }
.admin-settings-section { border-radius:7px; padding:22px; }
.admin-settings-section h2 { font-size:15px; }
.admin-settings-section .muted,.admin-settings-section small { font-size:11px; }
.admin-cover-preview,.admin-focus-pad { border-radius:5px; }
.admin-root .admin-cover-preview .btn { padding:5px 8px; font-size:11px; }
.admin-drop { border-radius:6px; font-size:12px; background:var(--surface-alt); border-color:var(--border); }
.admin-upload-row strong { font-size:12px; }
.admin-upload-row small { font-size:11px; }
.admin-metrics { gap:14px; }
.admin-metrics>.surface { padding:20px; border-radius:7px; }
.admin-metrics strong { font-family:var(--display); font-size:30px; line-height:1.2; font-weight:600; letter-spacing:-1px; }
.admin-statistics-table table { font-size:12px; }
.admin-chart-bars>div>span { background:var(--text); }
.admin-review-heading p,.admin-review-photo small,.admin-events p,.admin-events small { font-size:11px; }
/* Account previews reflect the actual left navigation. */
.theme-card { border-radius:6px; padding:10px 10px 14px; }
.theme-card.selected { outline-color:var(--focus); }
.theme-card small { font-size:11px; }
.theme-sample { border-radius:4px; padding:8px 8px 8px 30%; position:relative; }
.theme-sample>i { position:absolute; inset:0 auto 0 0; width:24%; height:100%; border:0; border-right:1px solid var(--sample-border,var(--border)); background:var(--sample-bg,var(--bg)); }
.theme-sample>span { padding:10px 4px 0; }
/* Dialogs and the upload feature share a subdued surface. */
dialog.app-dialog { border-radius:9px; border-color:var(--border); box-shadow:0 16px 60px #0002; }
.dialog-header { padding-top:20px; padding-bottom:16px; }
.dialog-header h2 { font-size:18px; font-weight:600; }
.dialog-actions { gap:7px; }
#toast { border-radius:6px; font-size:12px; }
.upload-panel-header h2 { font-family:var(--display); text-transform:none; }
/* Public photographs retain their space; the shared chrome becomes quieter. */
.client-topbar { min-height:64px; padding:14px 28px; gap:14px; }
.client-brand { font-family:var(--display); font-size:17px; font-weight:600; text-transform:none; letter-spacing:-.4px; }
.client-brand span { font-size:9px; letter-spacing:0; }
.client-topbar-actions .btn { font-size:11px; }
.client-cover { border-radius:7px; min-height:440px; }
.client-cover-content { min-height:440px; padding:40px 32px; }
.client-cover-content h1 { font-family:var(--display); font-size:clamp(30px,3.4vw,52px); font-weight:600; line-height:1.15; letter-spacing:-1.6px; text-transform:none; }
.client-cover-content .client-eyebrow { font-size:10px; letter-spacing:.04em; margin-bottom:20px; }
.client-cover-content p { font-size:12px; }
.client-cover-scroll.btn { border-radius:6px; min-height:36px; padding:8px 12px; }
.client-main { padding-top:36px; }
.client-section-heading h2 { font-family:var(--display); font-size:23px; font-weight:600; text-transform:none; letter-spacing:-.5px; }
.client-filterbar { border-top-color:var(--border); padding-block:14px 18px; }
.client-filter { font-size:12px; border-radius:5px; padding:7px 11px; }
.client-filter.active { background:var(--accent-soft); color:var(--text); }
.client-search { border-radius:6px; }
.client-search input { min-height:34px; font-size:12px; padding:0; }
.client-photo,.client-photo-heart { border-radius:5px; }
.client-selection-panel { border-color:var(--border); border-radius:7px; box-shadow:var(--shadow); }
.client-footer { border-top-color:var(--border); }
.client-access-card h1 { font-family:var(--display); font-size:27px; font-weight:600; text-transform:none; }
.client-access-brand { font-family:var(--display); font-size:22px; text-transform:none; }
/* Compact centered sign-in, matching the product's restrained workspace. */
.auth-page { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:0; padding:40px 24px; min-height:100dvh; background:var(--bg); }
.auth-intro { width:100%; min-width:0; max-width:350px; min-height:0; padding:0; border:0; border-radius:0; background:transparent; color:var(--text); display:block; overflow:visible; }
.auth-intro .brand { display:flex; justify-content:center; font-size:25px; letter-spacing:-1px; margin-bottom:32px; }
.auth-intro .brand>span:last-child { color:var(--text); }
.auth-intro>.auth-hero-copy,.auth-intro>.auth-art,.auth-intro>small { display:none; }
.auth-panel { width:100%; min-height:0; max-width:350px; padding:0; background:transparent; }
.auth-card { max-width:none; width:100%; }
.auth-card h2 { font-family:var(--display); font-size:21px; font-weight:600; line-height:1.4; letter-spacing:-.5px; text-transform:none; margin:0 0 7px; text-align:center; }
.auth-card>.muted { font-size:12px; text-align:center; }
.auth-card form { margin-top:28px; gap:18px; }
.auth-card input { min-height:40px; font-size:13px; }
.auth-submit { min-height:38px; justify-content:center; margin-top:2px; }
.auth-submit svg { display:none; }
.auth-switch,.local-note { text-align:center; font-size:11px; margin-top:20px; }
/* New client tools share the same quiet property panels and compact hierarchy. */
.client-brand span,.client-section-heading h2 span { font-family:var(--display); }
.features-columns { gap:20px; }
.features-columns>.surface,.watermark-preview-section,.people-settings { padding:22px; background:var(--surface-alt); }
.features-columns .check-line small { font-size:11px; }
.gallery-features-form .save-bar,.notification-settings .save-bar { padding:12px 16px; }.photographer-contact-card h3 { font-family:var(--display); font-size:16px; font-weight:600; letter-spacing:-.25px; text-transform:none; }
.review-filters .btn.primary { color:var(--text); background:var(--accent-soft); border-color:var(--border); }
.review-filters .btn.primary:hover:not(:disabled) { background:var(--accent-soft); border-color:var(--muted); }.notification-symbol { border-radius:5px; }
.testimonial { padding:20px; }
.testimonial>p { font-size:13px; }
.notification-item { padding:18px 16px; gap:14px; }
.notification-item.unread { border-left-color:var(--muted); }
.notification-item>div { font-size:12px; }
.people-heading strong { font-size:13px; font-weight:600; }
.people-card { border-radius:5px; }
.people-card:hover,.people-card.active { background:var(--accent-soft); }
.people-card.active { border-color:var(--border); box-shadow:inset 0 0 0 1px var(--muted); }
.people-card strong { font-weight:500; }
.people-settings .people-cards { margin-top:18px; }
.client-list-select { font-size:12px; font-weight:500; }
.retouch-export-layout h3 { font-family:var(--display); font-size:15px; font-weight:600; letter-spacing:-.25px; text-transform:none; }
.retouch-count { font-family:var(--display); font-size:36px; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:-1px; }
.retouch-export-result { background:var(--surface-alt); padding:20px; border:1px solid var(--border); border-radius:6px; }
.retouch-export-lists input { accent-color:var(--accent); }
.selection-export-stats span { border-radius:4px; color:var(--muted); }
@media(min-width:1700px) { .workspace { padding-left:0; padding-right:8px; } }
@media(max-width:1100px) {
  .app-shell { grid-template-columns:clamp(150px,12.1vw,224px) minmax(0,1fr); }
  .sidebar { padding:16px 10px 12px; }
  .sidebar>.brand { font-size:17px; padding:0 8px; }
  .workspace { padding:0 8px 8px 0; }
  #route-content { padding:20px 18px 32px; }
  .admin-list-tools>.admin-search { flex-basis:auto; }
  .gallery-table th:nth-child(3),.gallery-table td:nth-child(3) { display:none; }
  .gallery-table th:first-child { width:38%; }
  .gallery-table th:nth-child(2) { width:22%; }
  .gallery-table th:nth-child(4) { width:15%; }
}
@media(max-width:820px) and (min-width:601px) {
  .app-shell { grid-template-columns:64px minmax(0,1fr); }
  .sidebar { padding:16px 8px 12px; }
  .sidebar>.brand { font-size:0; margin-bottom:26px; padding:0; justify-content:center; }
  .sidebar>.brand>span:last-child,.sidebar-caption,.nav-link>span,.account-link>span:not(.avatar),.account-link>svg { display:none; }
  .sidebar .brand-mark { margin:0; }
  .nav-link { justify-content:center; min-height:40px; padding:9px; }
  .account-link { justify-content:center; padding:7px 0; }
  .workspace-owner { display:none; }
  .admin-list-tools>.admin-search { flex-basis:100%; max-width:none; }
}
@media(max-width:600px) {
  .app-shell { display:block; padding:0; }
  .sidebar { position:relative; height:auto; padding:12px 12px 0; display:block; border-bottom:1px solid var(--border); }
  .sidebar>.brand { width:max-content; padding:0 4px; margin:0 0 10px; min-height:30px; font-size:17px; }
  .sidebar>.brand>span:last-child { display:inline; }
  .sidebar .brand-mark { margin-right:8px; grid-template-columns:repeat(2,5px); }
  .brand-mark i { height:5px; }
  .sidebar-caption { display:none; }
  .sidebar nav { width:100%; flex-direction:row; gap:3px; padding-bottom:8px; justify-content:space-between; }
  .sidebar nav .nav-link { min-height:44px; flex-direction:column; gap:3px; padding:5px 3px; flex:1; justify-content:center; font-size:9px; }
  .nav-link>span { display:block; font-size:9px; }
  .nav-link>svg { width:15px; height:15px; }
  .sidebar-bottom { position:absolute; top:10px; right:12px; padding:0; border:0; margin:0; }
  .account-link { padding:0; }
  .account-link>span:not(.avatar),.account-link>svg { display:none; }
  .account-link .avatar { width:30px; height:30px; }
  .workspace { padding:0; }
  .workspace-topbar { height:38px; padding:0 14px; }
  .workspace-owner { display:none; }
  #route-content { border-radius:0; border-inline:0; border-bottom:0; padding:20px 14px 36px; min-height:calc(100dvh - 142px); }
  h1,.page-title,.page-header h1,.admin-heading-copy .page-title { font-size:21px; }
  .page-header,.admin-page-header { align-items:flex-start; gap:12px; flex-wrap:wrap; margin-bottom:18px; }
  .page-header p,.admin-page-header p { font-size:11px; margin-top:5px; }
  .admin-page-header>.btn { width:auto; }
  .btn,.icon-button,.admin-root .btn,.admin-root .toolbar .btn { min-height:40px; padding:9px 11px; font-size:12px; }
  .icon-button { width:40px; height:40px; }
  .admin-heading-actions { width:100%; max-width:none; justify-content:flex-start; flex-shrink:1; }
  .admin-summary { flex-wrap:wrap; gap:10px 20px; padding-bottom:14px; margin-bottom:14px; }
  .admin-list-tools { gap:8px; margin-bottom:14px; }
  .admin-list-tools>.admin-search { flex-basis:100%; max-width:none; min-width:0; }
  .admin-search input:not([type=checkbox]) { min-height:40px; }
  .admin-list-tools>.ui-select { flex:1; min-width:0; max-width:none; }
  .admin-list-tools>.ui-select .ui-select-trigger { font-size:11px; min-height:40px; padding:9px 8px; gap:5px; }
  .admin-list-tools .segmented { margin-left:0; }
  .admin-list-tools .segmented button { height:36px; width:34px; min-height:36px; padding:7px; }
  .admin-gallery-grid { grid-template-columns:1fr; gap:16px; }
  .admin-root .admin-gallery-title { font-size:14px; }
  .admin-gallery-copy { padding:12px 14px 14px; }
  .admin-gallery-copy>p { font-size:11px; }
  .admin-gallery-foot { font-size:11px; }
  .admin-gallery-cover>.badge { font-size:10px; }
  .gallery-table-wrap { overflow:visible; }
  .gallery-table { display:block; }
  .gallery-table thead { display:none; }
  .gallery-table tbody { display:block; }
  .gallery-table tbody tr { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 36px; border-bottom:1px solid var(--border); padding:10px 0; gap:7px 10px; }
  .gallery-table td { display:block; height:auto; border:0; padding:0; min-width:0; }
  .gallery-table .gallery-name-cell { grid-column:1/3; grid-row:1; }
  .gallery-row-open { min-height:40px; font-size:12px; }
  .gallery-row-thumbnail { width:32px; height:32px; }
  .gallery-table td:nth-child(2) { grid-column:1; grid-row:2; padding-left:42px; }
  .gallery-table td:nth-child(3) { display:none; }
  .gallery-table td:nth-child(4) { grid-column:2; grid-row:2; font-size:11px; color:var(--muted); }
  .gallery-count-cell:before { content:attr(data-label) ' · '; }
  .gallery-table td:nth-child(5) { grid-column:2; grid-row:3; }
  .gallery-table .gallery-actions-cell { grid-column:3; grid-row:1; padding:0; align-self:center; }
  .gallery-table .admin-menu>summary,.admin-menu>summary { width:36px; height:36px; min-height:36px; padding:8px; }
  .gallery-table tfoot { display:block; padding-top:12px; }
  .gallery-table tfoot tr,.gallery-table tfoot td { display:block; height:auto; padding:0; }
  .gallery-expiry { font-size:10px; }
  .admin-tabs { margin-block:16px 20px; gap:16px; }
  .tabs>a,.tabs>button,.admin-tabs>a { font-size:12px; min-height:44px; padding:12px 2px; }
  .admin-section-heading { margin-bottom:14px; }
  .admin-section-heading>.toolbar { flex-wrap:wrap; }
  .admin-photo-bulk,.admin-review-bulk { padding:9px; gap:6px; border-radius:6px; }
  .admin-photo-caption { padding:9px; flex-wrap:wrap; }
  .admin-photo-caption>div:first-child { width:100%; }
  .admin-photo-caption strong { font-size:11px; }
  .admin-photo-caption small { font-size:10px; }
  .admin-order-buttons { margin-left:auto; }
  .admin-order-buttons>.icon-button { width:36px; height:40px; min-height:40px; }
  .admin-photo-check { height:32px; width:32px; }
  .admin-check,.admin-order-hint,.admin-section-heading p { font-size:11px; }
  .admin-settings-section,.surface { padding:18px; border-radius:6px; }
  .features-columns>.surface,.watermark-preview-section,.people-settings,.testimonial,.retouch-export-result { padding:18px; }
  .notification-item { padding:16px 12px; }
  .admin-metrics>.surface { padding:16px; }
  .admin-metrics strong { font-size:26px; }
  .admin-menu>div>button { min-height:44px; }
  .theme-card { padding:9px 9px 13px; }
  .theme-card small { font-size:10px; }
  .save-bar { padding:12px; }
  dialog.app-dialog { border-radius:8px; }
  .dialog-header h2 { font-size:19px; }
  .client-topbar { min-height:60px; padding:12px 16px; }
  .client-cover { min-height:0; width:calc(100% - 28px); }
  .client-cover-content { min-height:0; padding:26px 22px; }
  .client-cover-content h1 { font-size:34px; letter-spacing:-1px; }
  .client-main { padding:28px 14px 36px; }
  .client-section-heading h2 { font-size:22px; }
  .client-filter { min-height:40px; }
  .client-footer { width:calc(100% - 28px); }
  .auth-page { display:flex; padding:36px 24px; }
  .auth-intro { display:block; padding:0; }
  .auth-intro .brand { font-size:25px; }
  .auth-intro>.auth-hero-copy { display:none; }
  .auth-panel { padding:0; min-height:0; }
  .auth-card h2 { font-size:21px; }
}
@media(prefers-reduced-motion:reduce) { .btn,.icon-button,.admin-gallery-cover>img { transition:none; } }
/* Upload headings follow the same compact type scale. */
.admin-upload-dialog .dialog-header h2 { font-size:19px; text-transform:none; }
.admin-upload-overview-heading strong { font-size:22px; font-weight:600; letter-spacing:-.5px; text-transform:none; }
.admin-upload-dialog .dialog-header { padding:20px 24px 16px; }
.admin-upload-dialog .dialog-body { padding:0 24px 22px; }
.admin-upload-dialog .btn { min-height:34px; }
.admin-menu>summary svg { width:18px; height:18px; stroke-width:2; }
@media(max-width:600px) {
  .admin-upload-dialog .dialog-header { padding:18px 18px 14px; }
  .admin-upload-dialog .dialog-body { padding:0 18px 18px; }
  .admin-upload-dialog .btn { min-height:40px; }
}
/* Long profile names stay within the compact breadcrumb bar. */
.workspace-owner { min-width:0; max-width:30%; overflow:hidden; text-overflow:ellipsis; }
@media(min-width:601px) and (max-width:1100px) {
  .gallery-table { min-width:620px; }
  .gallery-table th:first-child { width:220px; }
  .gallery-table th:nth-child(2) { width:130px; }
  .gallery-table th:nth-child(4) { width:88px; }
  .gallery-table th:nth-child(5) { width:140px; }
}
