@font-face {
  font-family: "DM Sans";
  src: url("/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --paper: #f8f7f3;
  --white: #fffefa;
  --ink: #252b24;
  --muted: #626a5f;
  --line: #e5e5dc;
  --green: #354b35;
  --green-hover: #283d2a;
  --pale: #e8eddf;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --sidebar: 228px;
  color: var(--ink);
  background: var(--paper);
  font: 400 16px / 1.5 var(--sans);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #758b57; outline-offset: 3px; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { overflow-wrap: anywhere; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1; }
svg { flex: none; vertical-align: middle; }
[hidden] { display: none !important; }
::selection { background: #c9d5af; color: #202a1c; }

.layout { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); align-items: start; }
.sidebar {
  position: sticky; top: 0; height: 100dvh; min-height: 360px; display: flex; flex-direction: column;
  background: #20291f; color: #e9eddf; padding: 28px 18px 16px; z-index: 4;
}
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; line-height: .9; }
.sidebar .brand { margin: 2px 8px 47px; align-self: flex-start; }
.brand > span { font: 400 2.05rem / .88 var(--serif); letter-spacing: -.02em; }
.mark { flex: none; border-radius: 9px; }
.brand small { display: block; margin-top: 8px; color: #b5bfab; font: 600 .59rem / 1 var(--sans); letter-spacing: .15em; }
.nav-group { margin-bottom: 28px; }
.nav-caption { margin: 0 0 11px 12px; color: #aeb9a5; font-size: .67rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link {
  height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #cbd3c4; border-radius: 8px;
  font-size: .91rem; font-weight: 500; position: relative;
}
.nav-link:hover { background: #2d382a; color: white; }
.nav-link.active { background: #374733; color: #f4f7ed; font-weight: 650; }
.nav-link.active::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: #bbcda0; border-radius: 3px; }
.nav-link.active svg { color: #c7d5a9; }
.sidebar-bottom { display: flex; align-items: center; gap: 5px; margin-top: auto; border-top: 1px solid #3a4536; padding: 15px 0 2px; }
.profile { display: flex; gap: 10px; align-items: center; padding: 4px 5px; min-width: 0; flex: 1; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #d4dac5; color: #34432d; display: grid; place-items: center; font-size: .73rem; font-weight: 700; }
.profile-text { min-width: 0; display: grid; }
.profile-text strong, .profile-text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.profile-text strong { font-size: .85rem; }
.profile-text small { color: #bac4b4; font-size: .74rem; }
.sidebar-bottom .icon-btn { color: #d0d8c4; }
.sidebar-bottom .icon-btn:hover { background: #374733; }
.sidebar-overlay { display: none; }

.work { min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 3; min-height: 64px; display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 0 clamp(22px, 3.15vw, 48px); background: #fbfaf6; border-bottom: 1px solid var(--line);
}
.breadcrumbs { display: flex; align-items: center; gap: 9px; white-space: nowrap; font-size: .85rem; font-weight: 650; min-width: 0; }
.breadcrumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.breadcrumbs > svg, .breadcrumb-root, .breadcrumbs a { color: var(--muted); font-weight: 500; }
.breadcrumbs .icon-btn { display: none; }
.search-top {
  border: 1px solid var(--line); border-radius: 8px; min-height: 35px; min-width: 174px; display: flex; align-items: center;
  gap: 8px; padding: 0 8px 0 11px; background: var(--white); color: var(--muted); font-size: .8rem; white-space: nowrap;
}
.search-top:hover { border-color: #c4cab9; }
.search-top kbd {
  margin-left: auto; display: grid; place-items: center; width: 19px; height: 19px; background: #f1f0ea;
  border: 1px solid #e4e3db; border-radius: 4px; font: 500 .72rem var(--sans);
}
.main { padding: 26px clamp(22px, 3.15vw, 48px) 65px; max-width: 1470px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font-size: clamp(3.05rem, 4.3vw, 4.55rem); letter-spacing: -.031em; }
.page-head .eyebrow { margin-bottom: 7px; }
.page-copy { margin-top: 9px; color: var(--muted); }
.eyebrow { color: #53614a; font-size: .71rem; letter-spacing: .15em; font-weight: 700; text-transform: uppercase; }
.today { color: var(--muted); font-size: .83rem; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; margin-right: 4px; }
.head-actions { padding-bottom: 2px; }

.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 39px; padding: 8px 14px; border: 1px solid transparent;
  border-radius: 8px; font-size: .88rem; font-weight: 650; line-height: 1.2; color: var(--ink); background: transparent; white-space: nowrap;
}
.btn.primary { background: var(--green); color: #fbfdf7; border-color: var(--green); }
.btn.primary:hover:not(:disabled) { background: var(--green-hover); }
.btn.secondary { background: var(--white); border-color: #dddfd4; }
.btn.secondary:hover:not(:disabled), .btn.quiet:hover { background: #ecefe4; border-color: #d5dccb; }
.btn.quiet { color: var(--green); }
.btn.danger { background: #f5e7e1; color: #872c29; border-color: #efcfc8; }
.btn.danger:hover { background: #efd7cf; }
.icon-btn { display: inline-grid; flex: none; place-items: center; padding: 0; border: 1px solid transparent; height: 35px; width: 35px; border-radius: 7px; background: transparent; color: var(--muted); }
.icon-btn:hover { background: #edf0e6; color: var(--ink); }

.feature {
  position: relative; min-height: 223px; overflow: hidden; isolation: isolate;
  display: grid; align-items: center; border-radius: 13px; color: #f6f5e9; background: #202d22;
}
.feature-art { position: absolute; z-index: -2; inset: 0 0 0 29%; mask-image: linear-gradient(90deg, transparent, #000 34%); }
.feature-art img { height: 100%; width: 100%; object-fit: cover; object-position: center 51%; }
.feature::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #202b21 12%, #253126 30%, #253126d9 41%, #20291d2a 65%, #1a260b12 100%); }
.feature-empty::before { background: linear-gradient(99deg, #253326, #52634a); }
.feature-content { padding: 28px 34px; max-width: 59%; }
.feature h2 { font-size: clamp(2.8rem, 4.4vw, 4.35rem); letter-spacing: -.022em; margin: 11px 0 7px; }
.feature .eyebrow { color: #d3dfbd; display: flex; align-items: center; gap: 7px; }
.feature .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #bfcd9f; }
.feature-content > p:not(.eyebrow) { color: #edf1e6; margin-bottom: 19px; }
.btn.feature-btn { background: #e9eddb; color: #293824; border-color: #e9eddb; }
.btn.feature-btn:hover { background: #f7f8ec; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 17px; }
.stat-card {
  text-align: left; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 15px 11px; min-width: 0;
}
.stat-card:hover { background: #f5f6ed; border-color: #becab1; }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 5px; font-size: .85rem; font-weight: 650; line-height: 1.2; }
.stat-icon { width: 31px; height: 31px; display: grid; place-items: center; color: #4f6849; background: #edf1e5; border-radius: 8px; flex: none; }
.stat-card strong { display: block; font: 400 2.5rem / 1.02 var(--serif); margin: 4px 0 2px; }
.stat-caption { color: var(--muted); font-size: .74rem; display: block; }

.recent { margin-top: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 13px; margin-bottom: 15px; }
.section-head h2 { font-size: 2.35rem; letter-spacing: -.015em; }
.section-head p { color: var(--muted); margin-top: 3px; font-size: .89rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-card { min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 11px; }
.gallery-card:hover { border-color: #b8c1b1; }
.card-cover { position: relative; }
.card-image { display: block; position: relative; overflow: hidden; aspect-ratio: 1.93; background: #e2e6d8; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s ease; }
.card-image:hover img { transform: scale(1.035); }
.card-image:focus-visible { outline-offset: -3px; }
.cover-placeholder { display: grid; place-items: center; height: 100%; color: #607055; }
.card-tag { pointer-events: none; position: absolute; top: 11px; left: 11px; }
.tag {
  display: inline-flex; align-items: center; min-height: 24px; gap: 6px; padding: 2px 9px; border-radius: 6px;
  font-size: .7rem; font-weight: 700; background: #f4eedf; color: #685531; white-space: nowrap;
}
.tag.published { background: #eff4e5; color: #3b5537; }
.tag i { border-radius: 50%; background: #98783f; width: 6px; height: 6px; }
.tag.published i { background: #648458; }
.card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 12px 13px 12px 15px; }
.card-top .eyebrow { font-size: .66rem; }
.card-top h3 { margin-top: 1px; font: 400 clamp(1.55rem, 2.3vw, 1.97rem) / 1.05 var(--serif); }
.card-top h3 a:hover, .event-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card-body .icon-btn { height: 32px; width: 32px; }
.card-meta { display: flex; flex-wrap: wrap; grid-column: 1 / -1; gap: 5px 15px; color: var(--muted); font-size: .77rem; }
.card-meta span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }

.filter-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; }
.pill-group { display: inline-flex; flex-wrap: wrap; gap: 3px; align-items: center; padding: 4px; background: #efefe7; border: 1px solid #e7e8df; border-radius: 9px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid transparent; min-height: 33px; padding: 4px 12px; background: transparent; color: var(--muted); font-size: .83rem; line-height: 1.2; border-radius: 6px; font-weight: 650; }
.pill.active { border-color: #dfe4d7; background: var(--white); color: var(--green); box-shadow: 0 1px 2px #2731240d; }
.pill:hover { color: var(--green); background: #f8f9f3; }
.pill span, .sub-tab span { border-radius: 5px; min-width: 19px; padding: 2px 4px; background: #e9eee2; text-align: center; font-size: .72rem; color: #485e42; }
.search-field, .select-label { display: flex; align-items: center; gap: 7px; padding: 0 10px; min-height: 39px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--muted); }
.search-field input, .select-label select { flex: 1; min-width: 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-size: .88rem; padding: 6px 2px; }
.select-label select { cursor: pointer; appearance: none; padding-right: 22px; }
.select-label > svg:last-child { margin-left: -27px; pointer-events: none; }
.search-field:focus-within, .select-label:focus-within { border-color: #8e9d80; }
.search-field input:focus, .select-label select:focus { outline: none; }
.modal-search { margin-bottom: 14px; }
.search-results { display: grid; gap: 4px; }
.search-results a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px; border-radius: 8px; }
.search-results a:hover, .search-results a:focus-visible { background: #ecefe4; }
.search-results strong, .search-results small { display: block; }
.search-results small { color: var(--muted); }

.detail-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: -8px 0 14px; flex-wrap: wrap; }
.detail-summary > div:first-child, .muted { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; }
.detail-summary > div:first-child { gap: 14px; flex-wrap: wrap; }
.detail-summary a:hover { text-decoration: underline; }
.sub-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.sub-tab { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); padding: 10px 5px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: .91rem; font-weight: 650; }
.sub-tab.active { border-color: var(--green); color: var(--green); }
.sub-tab:hover { color: var(--ink); }
.upload-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px dashed #bfc9b7; border-radius: 10px; background: #f3f5ec; padding: 16px; margin-bottom: 17px;
}
.upload-bar.dragover { background: #e4ecd8; border-color: #536e44; }
.upload-bar > div { display: flex; align-items: center; gap: 12px; min-width: 0; }
.upload-bar strong { font-size: .96rem; }
.upload-bar p { color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.upload-icon, .event-icon, .empty-icon { display: grid; place-items: center; flex: none; color: #4f6548; background: #e8eee0; border-radius: 8px; width: 40px; height: 40px; }
.upload-bar .upload-progress { width: 100%; color: #34492f; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.photo-card { border: 1px solid var(--line); border-radius: 9px; background: var(--white); overflow: hidden; }
.photo-preview { display: block; position: relative; width: 100%; aspect-ratio: 1.4; padding: 0; border: 0; background: #e8e8dc; }
.photo-preview:focus-visible { outline-offset: -3px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-cover { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 5px; background: #edf2e4; font-size: .72rem; color: #354b35; }
.photo-meta { display: flex; gap: 4px; padding: 4px 8px; align-items: center; justify-content: space-between; }
.photo-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.empty { display: grid; justify-items: center; padding: 45px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: center; }
.empty h3 { margin: 10px 0 4px; font: 400 2rem / 1 var(--serif); }
.empty p { color: var(--muted); margin-bottom: 4px; }
.empty .btn { margin-top: 13px; }
.events-list, .clients-list, .form-card, .proof-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 10px; }
.event-row, .client-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 14px; }
.event-row + .event-row, .client-row + .client-row { border-top: 1px solid var(--line); }
.event-row strong, .client-row strong { display: block; font-size: .91rem; }
.event-row p, .event-row time, .client-row p, .client-count { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.event-row time { white-space: nowrap; }
.client-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.form-card { max-width: 600px; padding: 22px; }
.form-card h2 { font-size: 2rem; margin-bottom: 17px; }
.proof-list { display: grid; gap: 12px; }
.proof-card { padding: 16px; }
.proof-note { margin-bottom: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.proof-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.proof-photos button, .proof-photos > span { width: 74px; height: 55px; border: 0; background: var(--pale); padding: 0; border-radius: 6px; overflow: hidden; }
.proof-photos > span { display: grid; place-items: center; color: var(--muted); }
.proof-photos img { width: 100%; height: 100%; object-fit: cover; }

dialog { border: 1px solid #d8ded2; border-radius: 13px; background: var(--white); color: var(--ink); padding: 0; width: min(520px, calc(100% - 26px)); max-height: 92dvh; box-shadow: 0 18px 55px #222e2255; }
dialog::backdrop { background: #1d271e77; }
.modal-inner { padding: 22px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.modal-head h2 { font-size: 2.35rem; }
.modal-head p, .modal-copy { margin-top: 3px; color: var(--muted); font-size: .9rem; }
.field-stack { display: grid; gap: 12px; }
.field-stack label { display: block; min-width: 0; font-size: .9rem; font-weight: 650; color: var(--ink); }
.field-stack label > input:not([type="checkbox"]), .field-stack textarea, .field-stack select {
  display: block; width: 100%; min-width: 0; margin-top: 5px; padding: 8px 10px; min-height: 39px; border: 1px solid #d7dbd0;
  border-radius: 7px; background: #fdfdfa; color: var(--ink); font-size: .94rem; font-weight: 400;
}
.field-stack input::placeholder, .field-stack textarea::placeholder { color: #72796d; }
.field-stack select { padding-right: 13px; }
.field-stack textarea { resize: vertical; }
.field-stack .checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox input { width: 17px; height: 17px; margin: 0; accent-color: var(--green); }
.optional { color: var(--muted); font-weight: 400; font-size: .76rem; margin-left: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.field-stack footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 3px; }
.form-error { border-radius: 6px; padding: 8px 10px; color: #862e26; background: #f7e8df; font-size: .87rem; }
.action-list { display: grid; gap: 8px; }
.action-list .btn { justify-content: flex-start; }
#toasts { position: fixed; bottom: 16px; right: 16px; z-index: 6; display: grid; gap: 7px; width: min(350px, calc(100% - 32px)); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 12px 14px; color: #f3f7ee; background: #293c2a; border-radius: 8px; box-shadow: 0 5px 18px #20292035; font-size: .91rem; overflow-wrap: anywhere; }
.toast.error { background: #6f3129; }

.loading, .login-screen { min-height: 100dvh; display: grid; place-content: center; padding: 18px; }
.loading { justify-items: center; gap: 12px; color: var(--muted); }
.loading img { width: 44px; }
.login-card { width: min(420px, calc(100vw - 36px)); background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 29px; }
.login-card .brand { margin-bottom: 24px; }
.login-card h1 { font-size: clamp(2.7rem, 6vw, 3.7rem); }
.login-card p { color: var(--muted); margin: 8px 0 17px; }
.login-card .empty-icon { margin-bottom: 12px; }
.login-card .form-error { margin: 0; color: #862e26; }
.locked { background: #efefe5; }

.client-site { background: #f7f5ee; min-height: 100vh; }
.client-header, .client-footer { max-width: 1520px; margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px max(22px, 4vw); }
.client-brand { display: inline-flex; align-items: center; gap: 9px; font: 400 1.8rem / 1 var(--serif); overflow-wrap: anywhere; }
.client-brand .mark { width: 31px; height: 31px; }
.preview-banner { display: flex; justify-content: center; align-items: center; gap: 7px; background: #334532; color: #f5f7ee; padding: 6px; font-size: .83rem; }
.client-hero { position: relative; isolation: isolate; min-height: clamp(390px, 66vh, 680px); background: #2c3b2a; display: grid; align-items: end; margin: 0 max(14px, 2.3vw); border-radius: 13px; overflow: hidden; color: #fffdf3; }
.client-hero img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.client-hero::before { position: absolute; content: ""; z-index: -1; inset: 0; background: linear-gradient(0deg, #171c13e8 0%, #24271b62 65%, #22281d02 100%); }
.client-hero-content { padding: clamp(24px, 5vw, 75px); }
.client-hero-content h1 { font-size: clamp(4rem, 9vw, 9rem); max-width: 18ch; letter-spacing: -.025em; }
.client-hero .eyebrow { color: #f2f5e7; margin-bottom: 10px; }
.client-hero-desc { font-size: clamp(1rem, 1.7vw, 1.25rem); margin-top: 10px; max-width: 58ch; }
.client-hero .btn { margin-top: 20px; }
.client-photos { max-width: 1440px; padding: 36px max(22px, 4vw) 48px; margin: auto; scroll-margin-top: 15px; }
.client-section-head, .client-view-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 9px; }
.client-section-head { margin-bottom: 14px; }
.client-section-head h2 { font-size: clamp(2.55rem, 4.9vw, 3.5rem); }
.photo-tally { color: var(--muted); }
.selection-status { display: flex; align-items: center; gap: 5px; background: #e8eddf; border-radius: 6px; padding: 8px 10px; margin: 0 0 13px; color: #3f5639; font-size: .86rem; }
.client-photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.client-photo { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.client-photo-open { padding: 0; display: block; border: 0; width: 100%; background: var(--pale); aspect-ratio: 1.55; }
.client-photo-open:focus-visible { outline-offset: -3px; }
.client-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { display: flex; justify-content: flex-end; padding: 3px 5px; }
.favorite.hearted { color: #992f47; }
.favorite.hearted svg { fill: currentColor; }
.client-footer { border-top: 1px solid var(--line); }
.lightbox { width: min(1100px, calc(100% - 22px)); max-height: 96dvh; background: #1b251c; color: #fffdf6; border-color: #465143; }
.lightbox::backdrop { background: #10170fed; }
.lightbox-inner { display: grid; gap: 10px; padding: 12px; }
.lightbox header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lightbox header p { font-size: .84rem; word-break: break-word; }
.lightbox header span { color: #c4cebd; padding-left: 5px; }
.lightbox .icon-btn { color: #f5f7ee; background: #334431; }
.lightbox .icon-btn:hover { background: #4e6249; }
.lightbox .favorite.hearted { color: #ff9aa9; }
.lightbox-stage { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 160px; }
.lightbox-stage img { max-width: calc(100% - 86px); max-height: 78dvh; object-fit: contain; }
.lightbox-stage img:only-child { max-width: 100%; }

@media (max-width: 1120px) {
  :root { --sidebar: 195px; }
  .today { display: none; }
  .stat-card { padding: 12px; }
  .card-meta { gap: 4px 9px; }
}
@media (max-width: 900px) {
  :root { --sidebar: 164px; }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand { margin-inline: 5px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid, .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-content { max-width: 66%; }
}
@media (max-width: 700px) {
  :root { --sidebar: 228px; }
  .layout { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); visibility: hidden; transform: translateX(-100%); transition: transform .22s, visibility .22s; }
  .sidebar.is-open { visibility: visible; transform: translateX(0); }
  .sidebar-overlay { display: block; background: #1c241c65; position: fixed; inset: 0; z-index: 3; border: 0; }
  .topbar { padding: 0 14px; min-height: 53px; }
  .breadcrumbs .icon-btn { display: inline-grid; }
  .breadcrumb-root, .breadcrumb-root + svg { display: none; }
  .main { padding: 21px 16px 42px; }
  .page-head { margin-bottom: 18px; align-items: flex-start; flex-wrap: wrap; }
  .page-head h1 { font-size: clamp(2.7rem, 8.7vw, 3.7rem); }
  .page-copy { margin-top: 5px; }
  .search-top { min-width: 0; }
  .search-top kbd { display: none; }
  .feature { min-height: 224px; }
  .feature-content { padding: 21px; max-width: 80%; }
  .feature-art { left: 16%; }
  .feature::before { background: linear-gradient(90deg, #202b21 0%, #253126e8 30%, #20291d49 82%, #1a260b32 100%); }
  .stats { margin-top: 13px; gap: 9px; }
  .gallery-grid, .photo-grid, .client-photo-grid { gap: 10px; }
  .detail-summary { margin-top: -4px; }
  .client-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-hero { min-height: 380px; }
}
@media (max-width: 390px) {
  .card-body { padding: 10px; }
  .stat-card { padding: 9px; }
  .stat-top { font-size: .8rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .feature-content { max-width: 89%; }
  .event-row, .client-row { padding: 9px; gap: 7px; }
  .client-row .btn { padding: 6px; }
  .client-count { display: none; }
  .client-row { grid-template-columns: auto minmax(0, 1fr) auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Studio suite */
.sidebar { overflow-y: auto; }
.sidebar .brand { margin-bottom: 30px; }
.sidebar .nav-group { margin-bottom: 16px; }
.sidebar .nav-link { height: 39px; }
.sidebar .nav-caption { margin-bottom: 6px; }
.sidebar .settings-nav { margin-top: 0; margin-bottom: 10px; }
.sidebar-bottom { flex: none; }
.suite-section { margin: 22px 0 26px; }
.suite-section .section-head { align-items: flex-end; }
.suite-rows { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.suite-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 15px; }
.suite-row + .suite-row { border-top: 1px solid var(--line); }
.suite-row h3 { font-size: .98rem; font-weight: 700; }
.suite-row p { color: var(--muted); font-size: .84rem; margin-top: 2px; overflow-wrap: anywhere; }
.suite-row .toolbar { flex: none; }
.suite-badge { display: inline-flex; align-items: center; padding: 3px 8px; border: 1px solid #dce4d5; border-radius: 5px; background: #edf1e7; color: #42593d; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.project-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px,1fr); overflow-x: auto; gap: 9px; padding-bottom: 9px; }
.project-column { padding: 8px; background: #eeefe6; border-radius: 9px; min-height: 145px; }
.project-column > header { display: flex; align-items: center; justify-content: space-between; padding: 4px 5px 9px; }
.project-column > header h3 { font-size: .9rem; }
.project-column > header span { color: var(--muted); font-size: .79rem; }
.project-card { background: var(--white); border: 1px solid var(--line); padding: 9px; border-radius: 7px; margin-bottom: 7px; }
.project-card h4 { margin: 0; font-size: .91rem; overflow-wrap: anywhere; }
.project-card p { color: var(--muted); margin: 4px 0 8px; font-size: .82rem; }
.project-card .btn { min-height: 31px; padding: 4px 8px; font-size: .75rem; }
.project-link { display: flex; gap: 5px; align-items: center; color: var(--green); font-size: .78rem; margin-bottom: 7px; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.line-item { display: grid; grid-template-columns: minmax(0,1fr) 61px 82px 35px; gap: 5px; align-items: end; margin-bottom: 8px; }
.line-item .icon-btn { margin-bottom: 2px; }
.line-summary { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.line-summary p { padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; overflow-wrap: anywhere; font-size: .92rem; }
.line-summary p + p { border-top: 1px solid var(--line); }
.line-summary strong { white-space: nowrap; }
.line-summary .line-total { background: var(--pale); }
.document-response { display: grid; gap: 7px; border: 1px solid #dbe6d2; border-radius: 8px; padding: 12px; background: #eff2e8; }
.document-response p { overflow-wrap: anywhere; }
.thread-list { display: grid; gap: 10px; margin-bottom: 12px; }
.thread-message { border-radius: 8px; padding: 10px; background: #efefe7; }
.thread-message.studio { background: #e7eddf; margin-left: 16px; }
.thread-message.client { margin-right: 16px; }
.thread-message time { margin-left: 7px; color: var(--muted); font-size: .76rem; }
.thread-message p { margin-top: 4px; }
.site-builder { max-width: 780px; }
.site-builder .form-card { max-width: none; display: grid; gap: 11px; }
.site-builder h2 { margin-bottom: 2px; }
.site-builder .section-head { margin: 0; }
.post-fields { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 11px; }
.post-fields .btn { justify-self: start; }
.website-actions.form-card { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.website-actions .form-error { width: 100%; }
.check-list { display: grid; gap: 6px; }
.album-checklist { border: 1px solid var(--line); border-radius: 8px; margin: 0; padding: 8px; min-width: 0; }
.album-checklist legend { font-size: .89rem; font-weight: 650; }
.album-checklist .check-list { max-height: 170px; overflow: auto; padding: 8px 0 3px; }
.editor-selectors { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 14px; }
.editor-selectors label { display: grid; gap: 3px; font-size: .87rem; font-weight: 650; }
.editor-selectors select { border: 1px solid var(--line); background: var(--white); border-radius: 8px; min-height: 38px; max-width: min(380px,82vw); padding: 4px 9px; }
.editor-dialog { width: min(680px, calc(100% - 26px)); }
.edit-canvas { width: 100%; border-radius: 7px; background: #242b23; }
.edit-sliders { display: grid; gap: 10px; grid-template-columns: repeat(3,minmax(0,1fr)); }
.field-stack .edit-range { position: relative; }
.edit-range output { float: right; margin-left: 2px; color: var(--muted); }
.field-stack .edit-range input[type="range"] { min-height: 24px; border: 0; accent-color: var(--green); padding: 0; margin-top: 1px; }
.gallery-tool-bar { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 16px; }
.set-row, .arrange-row { display: flex; justify-content: space-between; gap: 7px; padding: 6px 0; align-items: center; border-bottom: 1px solid var(--line); }
.arrange-row small { color: var(--muted); }
.arrange-list { max-height: 48dvh; overflow-y: auto; padding: 0 5px; }
.arrange-row .toolbar { flex: none; gap: 1px; }
.arrange-row .btn { font-size: .75rem; min-height: 28px; padding: 4px 6px; }
.client-hero.compact-cover { min-height: clamp(290px,47vh,480px); }
.client-photo-grid.mosaic .client-photo:nth-child(4n+1) { grid-column: span 2; }
.client-photo-grid.mosaic .client-photo:nth-child(4n+1) .client-photo-open { aspect-ratio: 2.55; }
.client-view-bar .btn { min-height: 36px; }
.client-site .photo-actions { flex-wrap: wrap; }
.client-paper { margin: 20px auto 60px; max-width: 740px; width: calc(100% - 28px); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px,4vw,44px); display: grid; gap: 15px; }
.paper-head { margin-bottom: 8px; }
.paper-head h1 { font-size: clamp(2.9rem,7vw,5rem); margin: 8px 0 8px; }
.paper-head p { color: var(--muted); }
.notice { background: var(--pale); border-radius: 8px; padding: 12px; color: #354a35; }
.notice a { text-decoration: underline; }
.document-copy { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.booking-services { display: grid; gap: 6px; margin-bottom: 5px; }
.field-stack .service-option { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.field-stack .service-option > input { width: 16px; flex: none; margin: 3px 0 0; min-height: 0; accent-color: var(--green); }
.service-option strong, .service-option span span { display: block; }
.service-option span span, .service-option p { color: var(--muted); font-weight: 400; }
.portfolio { --portfolio-bg: #f4f0e6; --portfolio-ink: #272e24; --portfolio-line: #dbd7c9; --portfolio-contrast: #fcfaf3; background: var(--portfolio-bg); color: var(--portfolio-ink); min-height: 100vh; }
.portfolio.theme-ink { --portfolio-bg: #273028; --portfolio-ink: #f8f4e6; --portfolio-line: #505a50; --portfolio-contrast: #39443a; }
.portfolio.theme-clay { --portfolio-bg: #f4e6dc; --portfolio-ink: #482f29; --portfolio-line: #e2cbbf; --portfolio-contrast: #fff3e8; }
.portfolio-head, .portfolio-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 17px max(20px,6vw); }
.portfolio-head .client-brand, .portfolio-footer .client-brand { font-size: 2rem; }
.portfolio-head nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(8px,2vw,26px); font-size: .88rem; font-weight: 650; }
.portfolio-head nav > a:not(.btn):hover { text-decoration: underline; }
.portfolio-hero { min-height: 450px; color: #f9f7ec; position: relative; display: grid; align-items: end; isolation: isolate; overflow: hidden; background: #263328; }
.portfolio-hero img { position: absolute; z-index: -2; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.portfolio-hero.photo-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg,#11170ddc,#141e1873 52%,#131c1517 100%); }
.portfolio-title { padding: clamp(30px,7vw,110px) max(20px,6vw); }
.portfolio-title h1 { font-size: clamp(4.4rem,11vw,10rem); letter-spacing: -.035em; max-width: 16ch; }
.portfolio-title p { max-width: 52ch; margin: 8px 0 19px; font-size: clamp(1.05rem,2vw,1.35rem); }
.portfolio-title .btn { margin-top: 7px; }
.portfolio-section { padding: 31px max(20px,6vw); border-bottom: 1px solid var(--portfolio-line); }
.portfolio-section h2 { font-size: clamp(2.8rem,5vw,4.5rem); margin-bottom: 14px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.portfolio-grid a { display: block; border: 1px solid var(--portfolio-line); overflow: hidden; border-radius: 9px; background: var(--portfolio-contrast); }
.portfolio-grid img { width: 100%; aspect-ratio: 1.75; object-fit: cover; }
.portfolio-grid article div { padding: 12px; }
.portfolio-grid h3 { font: 400 2rem/1 var(--serif); margin: 3px 0 5px; }
.portfolio-grid .eyebrow, .portfolio .muted { color: inherit; }
.portfolio-content > p, .portfolio-content form, .journal-list { max-width: 68ch; }
.portfolio-content > p { margin-bottom: 13px; }
.portfolio.theme-ink .field-stack label, .portfolio.theme-ink .btn.quiet { color: var(--portfolio-ink); }
.journal-list details { border: 1px solid var(--portfolio-line); padding: 10px 13px; border-radius: 7px; margin-bottom: 7px; background: var(--portfolio-contrast); }
.journal-list summary { font-weight: 650; cursor: pointer; }
.journal-list p { margin-top: 7px; }
.portfolio-footer { min-height: 75px; }
@media (max-width: 700px) {
  .suite-row { flex-wrap: wrap; gap: 7px; }
  .suite-row .toolbar { flex: 1 1 100%; }
  .portfolio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .portfolio-head { gap: 7px; }
}
@media (max-width: 460px) {
  .edit-sliders { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .client-photo-grid.mosaic .client-photo:nth-child(4n+1) { grid-column: auto; }
  .client-photo-grid.mosaic .client-photo:nth-child(4n+1) .client-photo-open { aspect-ratio: 1.55; }
}
@media print {
  .client-header .toolbar, .client-paper .btn, #toasts { display: none; }
  .client-paper { border: 0; width: 100%; margin: 0; padding: 0; }
  .client-site, .client-paper { background: white; }
}
.photo-suggestion { color: var(--muted); font-size: .78rem; padding: 0 8px 7px; }

/* Studio accounts and integrations */
.accounts { min-height: 100dvh; }
.account-nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px max(18px,5vw); color: #f7f8ed; background: #242e23; }
.account-nav .btn.quiet { color: #e8eddf; }
.account-nav .btn.quiet:hover { background: #344633; border-color: #546650; }
.account-nav .btn.primary { background: #e4ebd8; border-color: #e4ebd8; color: #293724; }
.account-nav .btn.primary:hover { background: #f4f7ec; }
.account-main { max-width: 1050px; margin: auto; padding: clamp(20px,5vw,62px) 18px 70px; }
.account-head { margin-bottom: 19px; }
.account-head h1 { font-size: clamp(3.25rem,8vw,5.4rem); }
.account-head p { margin-top: 9px; color: var(--muted); overflow-wrap: anywhere; }
.account-card { max-width: 520px; background: var(--white); padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.account-card .section-head { margin: 0; }
.account-auth-actions { border-top: 1px solid var(--line); padding-top: 10px; }
.account-notice { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.account-grid, .integration-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(290px,100%),1fr)); gap: 13px; }
.account-studio, .integration-card { display: grid; align-content: start; gap: 9px; background: var(--white); border: 1px solid var(--line); border-radius: 11px; padding: 15px; }
.account-studio h2, .integration-card h2 { font-size: 2.1rem; }
.account-studio p, .integration-card p { color: var(--muted); font-size: .91rem; overflow-wrap: anywhere; }
.integration-card header, .ai-history header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 7px; }
.integration-card .toolbar { align-self: end; }
.ai-source, .ai-result { width: 100%; background-color: #dfe3d9; border-radius: 8px; overflow: hidden; }
.ai-source img, .ai-result img { display: block; height: min(33dvh,270px); width: 100%; object-fit: contain; }
.ai-result { background-image: repeating-conic-gradient(#c2c9bb 0% 25%,#edf0e8 0% 50%); background-size: 20px 20px; }
.ai-history { display: grid; gap: 9px; margin-top: 7px; }
.ai-history article { padding: 10px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 7px; }
.field-stack input[type="color"] { padding: 2px 6px; }
.sidebar .nav-link { height: 36px; }
.sidebar .nav-group { margin-bottom: 12px; }
