/* felyx-photos: one stylesheet for the platform site, studio sites and dashboards.
   Studio sites set --brand / --accent from the studio's colors. */
:root {
  --brand: #1f3a5f;
  --accent: #c8a96a;
  --ink: #17191c;
  --ink-2: #4a4f57;
  --ink-3: #7b818b;
  --line: #e4e2dd;
  --paper: #faf9f6;
  --card: #ffffff;
  --ok: #2f7d4f;
  --warn: #b26a00;
  --info: #2a6496;
  --bad: #b3261e;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
  /* page tokens: plain defaults here (public pages); mapped to the dashboard/HQ theme in the body.ui block below */
  --white: #ffffff; --surface: #ffffff; --surface-2: #f3f1ec; --surface-3: #eeeeee; --field-line: #d6d3cc;
  --on-solid: #ffffff; --on-scrim: #ffffff; --scrim: rgba(0,0,0,.55);
  --ok-bg: #e3f3e9; --warn-bg: #fdf0dc; --info-bg: #e3eef8; --bad-bg: #fbe4e2;
  --ok-ink: var(--ok); --warn-ink: #7a4a00; --info-ink: var(--info); --bad-ink: var(--bad);
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", system-ui, sans-serif;
}
body.ui {
  --paper: var(--soft);
  --surface: var(--card); --surface-2: var(--soft); --surface-3: var(--hover); --field-line: var(--line-strong);
  --on-solid: #ffffff;
  --ok-bg: color-mix(in srgb, var(--ok) 14%, var(--card)); --warn-bg: color-mix(in srgb, var(--warn) 14%, var(--card));
  --info-bg: color-mix(in srgb, var(--info) 14%, var(--card)); --bad-bg: color-mix(in srgb, var(--bad) 14%, var(--card));
  --ok-ink: color-mix(in srgb, var(--ok) 75%, var(--ink)); --warn-ink: color-mix(in srgb, var(--warn) 75%, var(--ink));
  --info-ink: color-mix(in srgb, var(--info) 75%, var(--ink)); --bad-ink: color-mix(in srgb, var(--bad) 75%, var(--ink));
}
body.ui.mode-night { --on-solid: #0b1220; }
body.ui.mode-night .btn.danger, body.ui.mode-night .btn.ghost.danger:hover { color: var(--on-solid); }
.font-classic { --display: "Cormorant Garamond", Georgia, serif; --body: "Lora", Georgia, serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: .65em 1.15em; border-radius: 8px;
  border: 1px solid transparent; background: var(--brand); color: var(--on-brand, var(--on-solid)); font: 600 .95rem var(--body); text-decoration: none; cursor: pointer;
  transition: filter .15s, transform .05s; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.btn.accent { background: var(--accent); color: var(--ink); }
.btn.danger { background: var(--bad); }
.btn.ghost.danger { background: transparent; color: var(--bad); border-color: var(--line); }
.btn.ghost.danger:hover { background: rgba(180, 35, 24, .06); border-color: var(--bad); }
.linkish.danger { color: var(--bad); }
.btn.small { padding: .4em .8em; font-size: .85rem; }
.btn.big { padding: .9em 1.6em; font-size: 1.05rem; }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; cursor: pointer; text-decoration: underline; }

/* Cards and badges */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h2, .card h3 { margin-top: 0; }
.card + .card { margin-top: 20px; }
.badge { display: inline-block; padding: .15em .6em; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface-3); color: var(--ink-2); }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.info { background: var(--info-bg); color: var(--info-ink); }
.badge.muted { background: var(--surface-3); color: var(--ink-3); }
.badge.bad { background: var(--bad-bg); color: var(--bad-ink); }
.alert { padding: 12px 16px; border-radius: 8px; background: var(--surface-2); color: var(--ink); margin-bottom: 1rem; }
.alert.error { background: var(--bad-bg); color: var(--bad-ink); }
.alert.ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert.warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert.info { background: var(--info-bg); color: var(--info-ink); }
.review-ask { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.review-ask span { flex: 1 1 320px; }
.alert p:last-child { margin: 0; }
/* One-off success banner at the top of the dashboard (colours come from .alert.ok, which has a night-mode version) */
.success-banner { display: flex; align-items: flex-start; gap: 12px; font-size: 1.02rem; font-weight: 500; border: 1px solid transparent; }
.success-banner p { flex: 1; margin: 0; }
.success-banner-icon { flex: none; width: 24px; height: 24px; border-radius: 50%; background: currentColor; display: inline-grid; place-items: center; }
.success-banner-icon::before { content: "✓"; color: var(--on-solid); font-size: .85rem; line-height: 1; }
.banner-x { flex: none; background: none; border: 0; color: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .7; }
.banner-x:hover, .banner-x:focus-visible { opacity: 1; }
/* Dismissable notices: any [data-notice] gets an x in its top-right corner (static/js/notice.js) */
[data-notice] { position: relative; }
[data-notice].has-x { padding-right: 44px; }
.notice-x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 50%; color: inherit; font-size: 1.45rem; line-height: 1; cursor: pointer; opacity: 1; padding: 0; }
.notice-x:hover, .notice-x:focus-visible { opacity: 1; background: color-mix(in srgb, var(--ink) 6%, transparent); outline: none; }
.notice-x:focus-visible { box-shadow: 0 0 0 2px currentColor; }
.flash-item.has-x { padding-right: 44px; }
.flash-item .notice-x { color: var(--on-ink, var(--on-solid)); }
.flash-item .notice-x:hover { background: color-mix(in srgb, var(--on-ink, var(--on-solid)) 15%, transparent); }
.stripe-banner { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.stripe-banner p { margin: 0; }

/* Flash messages */
.flash { position: fixed; top: 16px; right: 16px; z-index: 50; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.flash-item { background: var(--ink); color: var(--on-ink, var(--on-solid)); padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow); animation: fade 6s forwards; }
/* the generic .error rule below colours text red: keep the notice text white on its coloured background */
.flash-item.error { background: var(--bad); color: var(--on-solid); }
.flash-item.success { background: var(--ok); color: var(--on-solid); }
.flash-item.warning { color: var(--on-ink, var(--on-solid)); }
@keyframes fade { 0%, 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field.check label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.opt { font-weight: 400; color: var(--ink-3); font-size: .8rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time],
input[type=datetime-local], input[type=tel], input[type=url], input:not([type]), select, textarea {
  width: 100%; padding: .6em .75em; border: 1px solid var(--field-line); border-radius: 8px; font: inherit; background: var(--surface); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--brand) 40%, transparent); border-color: var(--brand); }
input[type=color] { width: 56px; height: 38px; padding: 2px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--surface); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--brand); }
.help { display: block; color: var(--ink-3); font-size: .8rem; margin-top: 3px; }
.error { color: var(--bad); }
small.error { display: block; font-size: .82rem; margin-top: 3px; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
ul.checks label { font-weight: 500; display: flex; gap: 8px; align-items: center; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; margin-bottom: 8px; font-family: var(--display); font-size: 1.1rem; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.push-right { margin-left: auto; }
.save-bar { position: sticky; bottom: 0; z-index: 3; background: var(--paper); padding: 12px 0; margin: 10px 0 18px; border-top: 1px solid var(--line); }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table a { text-decoration: none; font-weight: 600; }
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 700px) { .table-wrap .table:not(.sc-table) { min-width: 640px; } .table td.small, .table td.num, .table th { white-space: nowrap; } }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- Platform marketing ---------------- */
.platform { --brand: #1d1f24; --accent: #e3b260; --display: "Instrument Serif", Georgia, serif; }
.platform h1, .platform h2 { font-weight: 400; }
.p-nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.p-logo { font-family: "Instrument Serif", Georgia, serif; font-size: 1.6rem; text-decoration: none; color: var(--ink); }
.p-logo span { color: #b8862e; }
.hero { padding: 72px 0 56px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); max-width: 14ch; }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 28px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: .35em .9em; font-size: .9rem; }
.features { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 40px 0; border-top: 1px solid var(--line); }
.features h3 { font-family: var(--body); font-size: 1rem; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0 64px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan.featured { border-color: var(--ink); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.plan .price { font-family: "Instrument Serif", Georgia, serif; font-size: 2.2rem; line-height: 1; }
.plan ul { padding-left: 1.1em; margin: 8px 0 16px; color: var(--ink-2); font-size: .93rem; }
.plan .btn { margin-top: auto; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--ink-3); font-size: .9rem; }
.plan-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.plan-pick label { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); cursor: pointer; display: block; font-weight: 500; }
.plan-pick input { margin-right: 6px; }
.plan-pick label:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan-pick label:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.type-fieldset { min-width: 0; margin: 0; }
.type-legend { font-family: inherit; font-size: .9rem; font-weight: 600; margin: 0 0 2px; padding: 0; }
body.ui .type-legend { font-family: inherit; font-size: .9rem; font-weight: 700; }
.slug-input { display: flex; align-items: stretch; }
.slug-input input { border-radius: 8px 0 0 8px; }
.slug-input span { border: 1px solid var(--field-line); border-left: 0; background: var(--surface-2); padding: .6em .75em; border-radius: 0 8px 8px 0; color: var(--ink-2); white-space: nowrap; }

/* ---------------- Studio public site ---------------- */
.s-header { background: var(--brand); color: #fff; }
.s-header a { color: #fff; text-decoration: none; }
.s-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; gap: 16px; }
.s-brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.s-brand img { height: 44px; width: auto; max-width: 180px; object-fit: contain; }
.s-links { display: flex; gap: 18px; align-items: center; font-size: .95rem; }
.s-links .btn { background: var(--accent); color: var(--ink); }
.s-hero { background: var(--brand); color: #fff; padding: 56px 0 72px; }
.s-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 18ch; }
.s-hero p { font-size: 1.15rem; opacity: .85; max-width: 52ch; }
.s-hero .btn { background: var(--accent); color: var(--ink); }
.s-section { padding: 48px 0 8px; }
.s-section h2 { font-size: 1.9rem; }
.service { display: flex; flex-direction: column; }
.service .price { font-size: 1.4rem; font-weight: 700; font-family: var(--display); }
.service ul { padding-left: 1.1em; color: var(--ink-2); margin: 8px 0 16px; }
.service .btn { margin-top: auto; align-self: flex-start; }
.portfolio { columns: 3 260px; column-gap: 12px; }
.portfolio img { width: 100%; margin-bottom: 12px; border-radius: 6px; break-inside: avoid; }
.s-footer { margin-top: 64px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .9rem; }
.s-footer a { color: var(--ink-2); }

/* Booking form */
.book-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; padding: 32px 0; }
@media (max-width: 860px) { .book-layout { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 16px; }
.summary .line { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: .93rem; }
.summary .total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-weight: 700; }
.days { display: grid; gap: 10px; }
.day { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--surface); }
.day h4 { margin: 0 0 8px; font-size: .95rem; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-btn { border: 1px solid #d6d3cc; background: #fff; border-radius: 8px; padding: .4em .7em; font: 500 .88rem var(--body); cursor: pointer; position: relative; }
.opt-btn:hover { border-color: var(--brand); }
.opt-btn.picked { background: var(--brand); color: #fff; border-color: var(--brand); }
.opt-btn .rank { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--ink); font-size: .72rem; font-weight: 700; margin-right: 4px; }
.picks { display: grid; gap: 6px; margin: 10px 0; }
.picks .pick { display: flex; gap: 8px; align-items: center; font-size: .93rem; }
.picks .pick b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); font-size: .8rem; }
.cal { width: 100%; max-width: 380px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid .dow { font-size: .75rem; color: var(--ink-3); font-weight: 600; }
.cal-grid button { aspect-ratio: 1; border: 1px solid transparent; border-radius: 8px; background: #fff; font: 500 .9rem var(--body); cursor: pointer; }
.cal-grid button:disabled { color: #c8c5bf; background: transparent; cursor: default; text-decoration: line-through; }
.cal-grid button.avail { border-color: #d6d3cc; }
.cal-grid button.avail:hover { border-color: var(--brand); }
.cal-grid button.sel { background: var(--brand); color: #fff; }
.loading { color: var(--ink-3); font-size: .9rem; padding: 8px 0; }

/* Client gallery */
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.gallery a { display: block; position: relative; border-radius: 6px; overflow: hidden; background: var(--surface-3); aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 18px; }
.steps span { font-size: .8rem; padding: .2em .7em; border-radius: 99px; background: var(--surface-3); color: var(--ink-3); }
.steps span.on { background: var(--brand); color: var(--on-brand, var(--on-solid)); }

/* ---------------- Dashboards (studio + HQ) ---------------- */
.dash { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--top-bg, var(--ink)); color: var(--top-ink, var(--on-ink, var(--on-solid))); padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .who { color: var(--on-brand, var(--on-solid)); font-weight: 700; padding: 6px 10px 14px; display: flex; gap: 10px; align-items: center; }
.side .who img { height: 30px; width: auto; max-width: 90px; background: var(--surface); border-radius: 4px; padding: 2px; }
.side a { color: var(--top-ink, var(--on-solid)); text-decoration: none; padding: 8px 10px; border-radius: 7px; font-size: .93rem; display: flex; justify-content: space-between; align-items: center; }
.side a:hover { background: color-mix(in srgb, var(--top-ink, var(--on-solid)) 12%, transparent); color: var(--on-brand, var(--on-solid)); }
.side a.on { background: color-mix(in srgb, var(--top-ink, var(--on-solid)) 20%, transparent); color: var(--on-brand, var(--on-solid)); }
.side a.locked { opacity: .5; }
.side .sep { height: 1px; background: color-mix(in srgb, var(--top-ink, var(--on-solid)) 20%, transparent); margin: 10px 4px; }
.side .count { background: var(--accent); color: var(--on-accent, var(--ink)); border-radius: 99px; font-size: .72rem; font-weight: 700; padding: 0 7px; }
.side .bottom { margin-top: auto; padding-top: 12px; font-size: .85rem; }
.storage-meter { padding: 10px; font-size: .8rem; }
.meter { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin: 6px 0; }
.meter i { display: block; height: 100%; background: var(--accent); }
.meter.light { background: var(--surface-3); }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.main h1 { font-size: 1.75rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 22px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat b { display: block; font-size: 1.6rem; font-family: var(--display); }
.stat span { color: var(--ink-3); font-size: .85rem; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { padding: 8px 12px; text-decoration: none; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: .93rem; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--brand); font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.list li:last-child { border-bottom: 0; }
.team-list .team-who { flex: 1 1 auto; min-width: 0; }
.team-list .team-ctl { flex: 0 0 auto; justify-content: flex-end; flex-wrap: nowrap; }
@media (max-width: 560px) { .team-list li { flex-wrap: wrap; } .team-list .team-ctl { flex-basis: 100%; justify-content: flex-start; flex-wrap: wrap; }
  .table td input[type=time], .table td input[type=number] { width: 7.5em; min-width: 0; } .table td { padding-left: 6px; padding-right: 6px; } }
.checklist li { justify-content: flex-start; }
.checklist .done { color: var(--ok); }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0; font-size: .93rem; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; }
.thumbs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.thumb { position: relative; background: var(--surface-3); border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .bar { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; background: rgba(0,0,0,.55); color: var(--on-scrim); font-size: .72rem; padding: 3px 6px; gap: 4px; opacity: 0; transition: opacity .15s; }
.thumb:hover .bar, .thumb:focus-within .bar { opacity: 1; }
.thumb .bar button, .thumb .bar a { color: var(--on-scrim); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.thumb.hidden-from-client { outline: 2px dashed var(--warn); }
.drop { border: 2px dashed var(--field-line); border-radius: 10px; padding: 22px; text-align: center; color: var(--ink-3); background: var(--surface-2); cursor: pointer; }
.drop.over { border-color: var(--brand); background: var(--surface-2); }
.upload-list { margin-top: 10px; display: grid; gap: 6px; font-size: .85rem; }
.upload-row { display: grid; grid-template-columns: 1fr 120px 60px; gap: 8px; align-items: center; }
.upload-row .meter { background: var(--surface-3); }
.upload-row .meter i { background: var(--brand); }
.locked-panel { position: relative; }
.locked-panel .veil { position: absolute; inset: 0; background: color-mix(in srgb, var(--card) 78%, transparent); display: grid; place-items: center; border-radius: var(--radius); z-index: 2; }
.locked-panel .veil .card { max-width: 380px; text-align: center; }
.disabled-look { opacity: .5; pointer-events: none; filter: grayscale(1); }
details.more summary { cursor: pointer; color: var(--brand); font-weight: 600; margin: 8px 0; }
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 30% 0 0; z-index: 40; transform: translateX(-105%); transition: transform .2s; height: 100vh; }
  .side.open { transform: none; }
  .mobile-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--top-bg, var(--ink)); color: var(--on-brand, var(--on-solid)); }
  .mobile-bar button { background: none; border: 1px solid var(--line-strong, var(--field-line)); color: var(--on-brand, var(--on-solid)); border-radius: 6px; padding: 4px 10px; }
  .dl { grid-template-columns: 1fr; }
  .dl dt { margin-top: 6px; }
}

/* Studio site photos */
.s-hero { position: relative; overflow: hidden; }
.s-hero.with-photo { padding: 120px 0 120px; }
.s-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-hero.with-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62), rgba(0,0,0,.15)); }
.s-hero .wrap { position: relative; z-index: 1; }
.service-photo { width: calc(100% + 40px); max-width: none; margin: -20px -20px 16px; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.hero-preview { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/6; background: var(--surface-3); }
.hero-preview img { width: 100%; height: 100%; object-fit: cover; }
.thumb .tag { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.6); color: var(--on-scrim); font-size: .7rem; padding: 1px 6px; border-radius: 99px; }

/* Contracts */
.contract-body { font-size: .96rem; line-height: 1.65; margin: 18px 0; white-space: normal; }
.contract-body p { margin: 0 0 .9em; }
.signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
@media (max-width: 600px) { .signatures { grid-template-columns: 1fr; } }
.sig { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.7rem; border-bottom: 1px solid var(--ink-3); padding-bottom: 2px; min-height: 2.2rem; }
.sig-input { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.5rem !important; }
.sign-box { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
@media print { .no-print, .s-header, .s-footer, .flash, .mobile-bar, .side { display: none !important; } .card { box-shadow: none; border: 0; } body { background: var(--surface); } }

/* Messages */
.chat-log { max-height: 420px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px 10px; }
.msg { max-width: 80%; background: var(--surface-3); border-radius: 12px 12px 12px 4px; padding: 8px 12px; align-self: flex-start; }
.msg.mine { background: var(--brand); color: var(--on-brand, var(--on-solid)); border-radius: 12px 12px 4px 12px; align-self: flex-end; }
.msg-meta { font-size: .72rem; opacity: .7; margin-bottom: 2px; }
.msg-body { white-space: normal; overflow-wrap: anywhere; }
.chat-form { display: flex; gap: 8px; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 10px; }
.chat-form textarea { flex: 1; resize: vertical; }
.inbox a { text-decoration: none; color: inherit; display: flex; justify-content: space-between; gap: 10px; width: 100%; }
.inbox .unread b::before { content: "● "; color: var(--accent); }

/* Proofing */
.proof-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 14px 0; }
.proof { position: relative; margin: 0; border-radius: 6px; overflow: hidden; background: #eee; aspect-ratio: 4/3; user-select: none; }
.proof img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; pointer-events: none; }
.proof .noimg { display: grid; place-items: center; height: 100%; font-size: .75rem; color: var(--ink-3); padding: 8px; text-align: center; }
.proof .heart { position: absolute; right: 6px; bottom: 6px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 1.2rem; cursor: pointer; }
.proof.picked { outline: 3px solid var(--accent); outline-offset: -3px; }
.proof.picked .heart { background: #e0245e; }
.proof.unlocked { outline: 3px solid var(--ok); outline-offset: -3px; }
.proof .proof-tag { position: absolute; left: 6px; bottom: 6px; background: var(--ok); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 99px; }
.proof-bar { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border-top: 1px solid var(--line); padding: 10px 0 2px; flex-wrap: wrap; }
.thumb.fav { outline: 3px solid var(--accent); outline-offset: -3px; }
.thumb.unl { outline: 3px solid var(--ok); outline-offset: -3px; }

/* Domains */
.dns { width: 100%; border-collapse: collapse; font-size: .85rem; margin: 10px 0; }
.dns td, .dns th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.dns code { word-break: break-all; }

/* Share & links */
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-family: ui-monospace, Menlo, monospace; }
textarea.code { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; margin: 10px 0; background: var(--surface-2); }
.share-preview { border: 1px dashed var(--line); border-radius: 8px; padding: 18px; background: var(--white); }
/* a preview of what other people's email and web pages will show: always on white, whatever the theme */
body.ui #btn-preview, body.ui #sig-preview { background: var(--white); border-color: var(--line-strong); }
.qr { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 6px; }

/* Legal */
.esign-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.esign-box ol { margin: 0; padding-left: 1.2em; }
.esign-box li { margin-bottom: 4px; }
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; line-height: 1.6; }
.legal h2 { margin-top: 1.6em; font-size: 1.25rem; }
.legal h3 { margin-top: 1.2em; font-size: 1.02rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 10px 0; }
.legal td, .legal th { border: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.draft-banner { background: var(--warn-bg); color: var(--warn-ink); padding: 10px 14px; border-radius: 8px; margin-bottom: 18px; font-size: .9rem; }

/* ---------------- Studio home page templates ---------------- */
.studio-site .s-header, .studio-site .s-header a { color: var(--on-brand, #fff); }
.studio-site .s-hero { color: var(--on-brand, #fff); }
.studio-site .s-hero.with-photo { color: #fff; }
.studio-site .btn { background: var(--brand); color: var(--on-brand, #fff); }
.studio-site .btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.studio-site .btn-accent, .studio-site .s-links .btn { background: var(--accent); color: var(--on-accent, #111); }
.studio-site a { color: var(--brand); }
.studio-site .s-header a, .studio-site .s-hero a.btn, .studio-site .gal-hero a.btn { color: inherit; }
.studio-site .s-hero a.btn-accent, .studio-site .gal-hero a.btn-accent, .studio-site .s-links a.btn { color: var(--on-accent, #111); }
.section-title { font-size: 1.9rem; margin-bottom: 14px; }
.category-title { font-size: 1.15rem; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center; }
.about-grid.no-photo { grid-template-columns: 1fr; max-width: 760px; }
.about-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; }
.about-text { font-size: 1.05rem; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-photo { aspect-ratio: 3/2; } }
.contact-card { background: color-mix(in srgb, var(--brand) 6%, var(--card)); }

/* Editorial */
.ed-hero { padding: 48px 0 24px; }
.ed-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.ed-text h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; color: var(--brand); }
.ed-text .lead { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--brand); }
.ed-photo img, .ed-placeholder { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.ed-placeholder { background: color-mix(in srgb, var(--brand) 18%, var(--paper)); }
@media (max-width: 860px) { .ed-grid { grid-template-columns: 1fr; gap: 24px; } .ed-photo { order: -1; } .ed-photo img, .ed-placeholder { aspect-ratio: 3/2; } }

/* Gallery */
.gal-hero { position: relative; min-height: 78vh; display: grid; place-items: center; text-align: center; background: var(--brand); color: var(--on-brand, #fff); overflow: hidden; }
.gal-hero.with-photo { color: #fff; }
.gal-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gal-hero.with-photo::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.gal-center { position: relative; z-index: 1; padding: 0 20px; max-width: 760px; }
.gal-center h1 { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.02em; }
.gal-center p { font-size: 1.15rem; opacity: .9; }
.portfolio-big { columns: 2 380px; column-gap: 14px; }
.portfolio-big img { margin-bottom: 14px; border-radius: 2px; }
.pkg-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pkg-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.pkg-row img { width: 120px; height: 90px; object-fit: cover; border-radius: 6px; }
.pkg-row:not(:has(img)) { grid-template-columns: 1fr auto; }
.pkg-info h3 { margin: 0 0 4px; }
.pkg-info p { margin: 0 0 4px; }
.pkg-buy { text-align: right; display: grid; gap: 6px; justify-items: end; }
.pkg-buy .price { font-weight: 700; font-size: 1.2rem; font-family: var(--display); }
@media (max-width: 640px) { .pkg-row, .pkg-row:not(:has(img)) { grid-template-columns: 1fr; } .pkg-buy { text-align: left; justify-items: start; } .pkg-row img { width: 100%; height: 160px; } }

/* Home page editor */
.hp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.hp-preview { position: sticky; top: 16px; }
.hp-frame-wrap { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); height: 78vh; }
.hp-frame-wrap iframe { width: 166%; height: 166%; border: 0; transform: scale(.6); transform-origin: 0 0; }
.hp-frame-wrap.phone { width: 390px; max-width: 100%; margin: 0 auto; }
.hp-frame-wrap.phone iframe { width: 100%; height: 100%; transform: none; }
.hp-save { position: sticky; bottom: 0; background: var(--paper); padding: 10px 0; z-index: 3; }
@media (max-width: 1100px) { .hp-layout { grid-template-columns: 1fr; } .hp-preview { position: static; } }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-card, .pal-card { display: grid; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; background: #fff; }
.tpl-card input, .pal-card input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-card:has(input:checked), .pal-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.tpl-card:has(input:focus-visible), .pal-card:has(input:focus-visible) { outline: 2px solid var(--brand); }
.tpl-thumb { display: grid; gap: 4px; height: 110px; padding: 6px; background: #f1efea; border-radius: 6px; }
.tpl-thumb i { display: block; background: #c9c5bc; border-radius: 3px; }
.tpl-classic { grid-template-rows: 2fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr; }
.tpl-classic i:nth-child(1) { grid-column: 1 / -1; background: #6b7a8f; }
.tpl-classic i:nth-child(4) { grid-column: 1 / -1; }
.tpl-editorial { grid-template-columns: 1.1fr 1fr; grid-template-rows: 1.4fr 1fr; }
.tpl-editorial i:nth-child(1) { background: #e3e0d8; border: 2px solid #c9c5bc; }
.tpl-editorial i:nth-child(2) { grid-row: span 2; background: #6b7a8f; }
.tpl-gallery { grid-template-rows: 2fr 1fr; grid-template-columns: 1fr 1fr 1fr; }
.tpl-gallery i:nth-child(1) { grid-column: 1 / -1; background: #3d4552; }
.pal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.pal-swatch { display: flex; gap: 6px; padding: 10px; border-radius: 6px; border: 1px solid var(--line); height: 54px; align-items: center; }
.pal-swatch span { flex: 1; height: 100%; border-radius: 4px; display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.pal-custom { justify-content: center; font-size: .82rem; color: var(--ink-3); background: repeating-linear-gradient(45deg, #fff, #fff 6px, #f3f1ec 6px, #f3f1ec 12px); }
.grid > .card + .card, .grid-2 > .card + .card, .stats > * + *, .plans > .card + .card { margin-top: 0; }
.about-section { padding-bottom: 32px; } #book { padding-top: 24px; } .work-section { padding-bottom: 16px; }
[hidden] { display: none !important; }
.s-nav { padding: 14px 20px; }
@media (max-width: 600px) {
  .s-brand { font-size: 1.1rem; }
  .s-brand img { height: 36px; }
  .s-links { gap: 12px; font-size: .9rem; }
}
.s-links > * { white-space: nowrap; }
/* discount codes */
.discount-box { margin: 10px 0 6px; padding: 10px 0; border-top: 1px dashed var(--line); }
.discount-box label { display: block; margin-bottom: 4px; }
small.ok, .small.ok { color: var(--ok); }
.line.discount span:last-child { color: var(--ok); }
/* proofs uploaded before watermarking was on: an overlay instead */
.proof.wm::after { content: attr(data-wm); position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.55); font: 700 1.1rem/1 var(--body, sans-serif); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-24deg); text-shadow: 0 1px 2px rgba(0,0,0,.35); pointer-events: none; }
.tpl-luxe { grid-template-rows: 2fr 1fr; grid-template-columns: 1fr 1fr 1fr; background: #1b1c20; }
.tpl-luxe i { background: #3a3d45; }
.tpl-luxe i:nth-child(1) { grid-column: 1 / -1; background: #6b6250; }
.tpl-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important; }
.font-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.font-card { position: relative; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: var(--surface); }
.font-card input { position: absolute; opacity: 0; pointer-events: none; }
.font-card:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.font-card:has(input:focus-visible) { outline: 2px solid var(--brand); }
.font-sample { font-size: 1.45rem; line-height: 1.1; color: var(--ink); }
.font-body { font-size: .8rem; color: var(--ink-3); }
input[type=range] { width: 100%; accent-color: var(--brand); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Photo processing */
.pp-steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; margin: 14px 0 18px; padding: 0; }
.pp-steps a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink-2); background: var(--surface); font-weight: 600; font-size: .92rem; }
.pp-steps .pp-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); font-size: .78rem; }
.pp-steps li.on a { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
.pp-steps li.done .pp-n { background: var(--brand); color: var(--on-brand, var(--on-solid)); }
.pp-team { background: var(--warn-bg); color: var(--warn-ink); }
.pp-client { background: var(--info-bg); color: var(--info-ink); }
.pp-done { background: var(--ok-bg); color: var(--ok-ink); }
.linklike { background: none; border: 0; padding: 0; color: var(--brand); cursor: pointer; font: inherit; text-decoration: underline; }
.pp-assets { margin-top: 18px; }
.pp-assets-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pp-assets-bar h3 { margin: 0; }
.pp-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; background: var(--surface); }
.pp-toggle button { border: 0; background: none; padding: 6px 14px; font: inherit; font-size: .88rem; cursor: pointer; color: var(--ink-2); }
.pp-toggle button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand, var(--on-solid)); }
.pp-items[data-view="tiles"] { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pp-items[data-view="tiles"] .pp-item { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--surface); }
.pp-items[data-view="tiles"] .pp-thumb { aspect-ratio: 1; }
.pp-items[data-view="list"] .pp-item { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pp-items[data-view="list"] .pp-thumb { width: 44px; height: 44px; flex: none; }
.pp-items[data-view="list"] .pp-meta { flex: 1; min-width: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pp-thumb { display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--surface-3); cursor: zoom-in; }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-none { display: grid; place-items: center; font-size: .72rem; color: var(--ink-3); cursor: default; text-align: center; }
.pp-name { overflow-wrap: anywhere; font-size: .86rem; }
.pp-meta { display: flex; flex-direction: column; }
.pp-actions { display: flex; gap: 10px; align-items: center; font-size: .86rem; }
.pp-actions form { display: inline; margin: 0; }
.pp-item.unl { outline: 2px solid var(--ok); }
.pp-lightbox { border: 0; border-radius: 12px; padding: 12px; max-width: min(92vw, 1000px); background: var(--surface); }
.pp-lightbox img { max-width: 100%; max-height: 80vh; display: block; margin: 0 auto; }
.pp-lightbox p { text-align: center; margin: 8px 0 0; }
.pp-x { position: absolute; top: 6px; right: 10px; border: 0; background: none; font-size: 1.6rem; cursor: pointer; }

/* My shoots: the table under the calendar */
.sc-list { margin-top: 16px; padding: 6px 10px; }
.sc-table td, .sc-table th { vertical-align: top; }
.sc-table .sc-actions { white-space: nowrap; }
.sc-table .sc-actions form { display: inline; }
.sc-table tr.sc-cancelled td { color: var(--ink-3); }
.sc-table tr.sc-cancelled td:nth-child(2) b { text-decoration: line-through; }
.sc-badge-cancelled { background: var(--bad-bg); color: var(--bad-ink); }
.pp-tabs a[href$="show=all"] { font-weight: 700; }
@media (max-width: 760px) {
  .sc-list .table-wrap { overflow: visible; }
  .sc-table thead { display: none; }
  .sc-table, .sc-table tbody, .sc-table tr, .sc-table td { display: block; width: 100%; }
  .sc-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .sc-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; text-align: right; }
  .sc-table td::before { content: attr(data-label); color: var(--ink-3); font-size: .82rem; text-align: left; }
}

/* RAW-first proofing (Photo Processing) */
.pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pp-head h2 { margin-top: 0; }
.pp-fwd { white-space: nowrap; font-size: .92rem; padding: 8px 16px; background: transparent; color: var(--ink); border-color: var(--line); }
.pp-fwd:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pp-big { font-size: 1.05rem; padding: 12px 26px; }
.pp-big.disabled { opacity: .45; cursor: not-allowed; }
.pp-cta { align-items: center; gap: 12px; margin: 6px 0 14px; }
.pp-cta form { margin: 0; }
.pp-warn { color: var(--warn); font-size: .76rem; }
.pp-item { position: relative; }
.pp-check { position: absolute; top: 12px; left: 12px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; background: rgba(255,255,255,.92); border-radius: 7px; box-shadow: 0 0 0 1px rgba(0,0,0,.15); cursor: pointer; }
.pp-check input { width: 18px; height: 18px; margin: 0; cursor: pointer; }
.pp-check input:disabled { cursor: not-allowed; }
.pp-items[data-view="list"] .pp-check { position: static; flex: none; background: none; box-shadow: none; }
.pp-item.sel { outline: 2px solid var(--brand); }
.pp-item.fav { outline: 2px solid var(--bad); }
.pp-item.sb { outline: 2px solid var(--warn); background: var(--warn-bg); }
.pp-item.nomatch { outline: 2px dashed var(--bad); }
.pp-note { margin: 4px 0 0; padding: 6px 8px; border-radius: 6px; background: var(--surface-2); font-size: .84rem; overflow-wrap: anywhere; white-space: normal; }
.pp-note-sb { background: var(--warn-bg); color: var(--warn-ink); }
.pp-items[data-view="list"] .pp-note { flex-basis: 100%; }
.pp-flag { background: var(--warn); color: var(--on-solid); }
.pp-flagbox { border-left: 4px solid var(--warn); }
.pp-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.pp-bar [data-hint] { margin-right: auto; }
.rf-rejected .pp-bar { position: static; box-shadow: none; }
@media (max-width: 700px) { .pp-bar { position: static; box-shadow: none; } }
.pp-lightbox .pp-stage { position: relative; display: flex; align-items: center; justify-content: center; }
.pp-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; border-radius: 10px; background: rgba(0,0,0,.45); color: var(--on-scrim); font-size: 2.2rem; line-height: 1; cursor: pointer; z-index: 3; }
.pp-nav:hover, .pp-nav:focus-visible { background: rgba(0,0,0,.7); }
.pp-prev { left: 6px; }
.pp-next { right: 6px; }
.pp-lightbox.single .pp-nav { display: none; }
.pp-cap { display: flex; justify-content: center; gap: 10px; align-items: baseline; }
.pp-send-row { text-align: center; margin: 8px 0 0; }
.pp-send.on { background: var(--ok); border-color: var(--ok); color: var(--on-solid); }
.pp-send:disabled { opacity: .6; cursor: default; }
@media (max-width: 600px) { .pp-bar { justify-content: stretch; } .pp-bar .btn { flex: 1; } }

/* Video processing card (Photo Processing page) */
.vf-lanes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 12px; }
.vf-lane { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); }
.vf-lane h3 { margin: 0 0 4px; }
.vf-list { list-style: none; margin: 10px 0 0; padding: 0; }
.vf-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
.vf-list .pp-name { flex: 1; min-width: 0; }
.vf-list form { display: inline; margin: 0; }

/* "Continue with Google" (Google's button guidelines: light button, 4-colour G, 14px medium label) */
.social-login { margin: 4px 0 18px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 14px;
  background: var(--white); color: #1f1f1f; border: 1px solid #747775; border-radius: 6px; text-decoration: none;
  font: 500 14px/20px Roboto, Arial, sans-serif; letter-spacing: .25px; }
.google-btn:hover { background: #f6f8fc; }
.google-btn:focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }
.social-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; color: var(--ink-3); font-size: .85rem; }
.social-or::before, .social-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.studio-powered { margin: 14px 0 0; }
.studio-powered a { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; text-decoration: none; color: var(--text-secondary, inherit); font-size: .7rem; letter-spacing: .02em; }
.studio-powered b { font-weight: 700; }
.studio-powered img { height: 23px; width: auto; max-width: 140px; object-fit: contain; background: var(--white); padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); display: block; }
.stripe-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.powered-stripe { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary, var(--ink-3)); font-size: .85rem; }
.powered-stripe img { height: 24px; width: auto; display: block; }
.tpl-minimal { grid-template-rows: .5fr .5fr 1.4fr 1fr; grid-template-columns: 1fr 1fr 1fr; }
.tpl-minimal i:nth-child(1) { grid-column: 1 / -1; background: #e3e0d8; }
.tpl-minimal i:nth-child(2) { grid-column: 2; background: #e3e0d8; }
.tpl-minimal i:nth-child(3) { grid-column: 1 / -1; background: #6b7a8f; }
.tpl-minimal i:nth-child(4) { grid-column: 1 / -1; }
.tpl-spotlight { grid-template-columns: 1fr 1.3fr; grid-template-rows: 1.6fr 1fr; background: #2f3b52; }
.tpl-spotlight i:nth-child(1) { background: #4a5a78; }
.tpl-spotlight i:nth-child(2) { grid-row: span 2; background: #9aa6b8; }
.tpl-spotlight i:nth-child(3) { background: #4a5a78; }
.tpl-spotlight i:nth-child(4) { display: none; }
.tpl-noir { grid-template-columns: 1.1fr 1fr; grid-template-rows: 1.4fr 1fr; background: #1b1c20; }
.tpl-noir i { background: #3a3d45; }
.tpl-noir i:nth-child(1) { background: #2a2c33; border: 2px solid #3a3d45; }
.tpl-noir i:nth-child(2) { grid-row: span 2; background: #6b6250; }
.tpl-story { grid-template-rows: 1fr 1.2fr 1fr; grid-template-columns: 1fr 1fr; }
.tpl-story i:nth-child(1) { grid-column: 1 / -1; background: #6b7a8f; }
.tpl-story i:nth-child(2) { background: #e3e0d8; border: 2px solid #c9c5bc; }
.tpl-story i:nth-child(4) { grid-column: 1 / -1; }
.tpl-boutique { grid-template-rows: 2fr 1fr; grid-template-columns: 1fr 1fr 1fr; padding: 10px; }
.tpl-boutique i { border-radius: 8px; }
.tpl-boutique i:nth-child(1) { grid-column: 1 / -1; background: #b5827a; border-radius: 14px; }
.tpl-showcase { grid-template-rows: 1fr 1.4fr 1fr; grid-template-columns: 1.4fr 1fr 1.4fr; }
.tpl-showcase i:nth-child(1) { grid-column: 1 / -1; background: #6b7a8f; }
.tpl-showcase i:nth-child(2), .tpl-showcase i:nth-child(3), .tpl-showcase i:nth-child(4) { background: #a9a498; grid-row: 2; }
.tpl-showcase i:nth-child(4) { grid-column: 3; }
.tpl-elegance { grid-template-rows: 1fr 1fr 1fr; grid-template-columns: 1fr 1fr 1fr; background: #6b7a8f; padding: 12px; }
.tpl-elegance i { background: rgba(255,255,255,.28); }
.tpl-elegance i:nth-child(1) { grid-column: 1 / -1; grid-row: 1 / 3; background: transparent; border: 1px solid rgba(255,255,255,.8); outline: 1px solid rgba(255,255,255,.4); outline-offset: 2px; border-radius: 0; }
.tpl-elegance i:nth-child(2), .tpl-elegance i:nth-child(3), .tpl-elegance i:nth-child(4) { background: #e3e0d8; grid-row: 3; }
/* Home page editor: collapsible sections */
.acc-bar { margin: 0 0 10px; text-align: right; }
details.acc { padding: 0; }
details.acc > summary { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .15s; flex: none; }
details.acc[open] > summary::after { transform: rotate(-135deg); }
details.acc > summary:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); border-radius: var(--radius); }
details.acc > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: var(--radius); }
.acc-t { font-weight: 700; font-size: 1.15rem; }
.acc-s { margin-left: 4px; }
details.acc[open] > summary .acc-s { display: none; }
.acc-body { padding: 0 20px 20px; }
.acc-tip { margin: 0 0 8px; }
@media (max-width: 600px) { .acc-s { display: none; } }
/* Share & links: a compact stack of sections */
.share-acc details.card.acc { padding: 0; margin: 0 0 12px; }
.share-acc details.card.acc > summary { padding: 18px 22px; }
.share-acc .acc-body { padding: 0 22px 22px; }

/* ---- password field with a show/hide eye ---- */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 42px; box-sizing: border-box; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ink-3); line-height: 0; border-radius: 6px; }
.pw-toggle:hover, .pw-toggle.on { color: var(--ink); }
.pw-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
/* counts and hints inside the selected (inverted) tab keep the tab's own text colour */
body.ui .tabs a.on .muted, body.ui .tabs a.on small, body.ui .tabs a.on .badge { color: var(--on-ink); opacity: .85; background: transparent; }
/* phones: nothing may push the page wider than the screen */
.stack, .card, .grid > *, .grid-2 > * { min-width: 0; }
.dl dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { :not(.table-wrap) > .table:not(.sc-table) { display: block; overflow-x: auto; max-width: 100%; } }
/* Add booking form */
.bn-set { border: 1px solid var(--line, var(--border)); border-radius: 10px; padding: 12px 14px 4px; margin: 0 0 16px; min-width: 0; }
.bn-set legend { font-weight: 700; padding: 0 6px; }
.bn-modes { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.bn-modes label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.bn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.bn-two > * { min-width: 0; }
@media (max-width: 520px) { .bn-two { grid-template-columns: 1fr; } }
.bn-form [hidden] { display: none !important; }
.bn-form input, .bn-form select, .bn-form textarea { max-width: 100%; }
.bn-warn ul { margin: 6px 0 8px 18px; padding: 0; }
