/* 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);
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", system-ui, sans-serif;
}
.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: #fff; 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: rgba(0,0,0,.03); }
.btn.accent { background: var(--accent); color: var(--ink); }
.btn.danger { background: 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: #eee; color: var(--ink-2); }
.badge.ok { background: #e3f3e9; color: var(--ok); }
.badge.warn { background: #fdf0dc; color: var(--warn); }
.badge.info { background: #e3eef8; color: var(--info); }
.badge.muted { background: #efefef; color: var(--ink-3); }
.badge.bad { background: #fbe4e2; color: var(--bad); }
.alert { padding: 12px 16px; border-radius: 8px; background: #f3f1ec; margin-bottom: 1rem; }
.alert.error { background: #fbe4e2; color: var(--bad); }
.alert.ok { background: #e3f3e9; color: var(--ok); }
.alert.warn { background: #fdf0dc; color: #7a4a00; }
.alert p:last-child { 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: #fff; padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow); animation: fade 6s forwards; }
.flash-item.error { background: var(--bad); }
.flash-item.success { background: var(--ok); }
@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 #d6d3cc; border-radius: 8px; font: inherit; background: #fff; 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 #d6d3cc; border-radius: 8px; background: #fff; }
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; }

/* 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 { overflow-x: auto; }
.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: #fff; 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: #fff; 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: #fff; 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); }
.slug-input { display: flex; align-items: stretch; }
.slug-input input { border-radius: 8px 0 0 8px; }
.slug-input span { border: 1px solid #d6d3cc; border-left: 0; background: #f3f1ec; 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: #fff; }
.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: #eee; 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: #eee; color: var(--ink-3); }
.steps span.on { background: var(--brand); color: #fff; }

/* ---------------- Dashboards (studio + HQ) ---------------- */
.dash { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: #16181c; color: #c9ccd1; padding: 18px 14px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .who { color: #fff; 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: #fff; border-radius: 4px; padding: 2px; }
.side a { color: #c9ccd1; 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: #24272d; color: #fff; }
.side a.on { background: #2c3038; color: #fff; }
.side a.locked { opacity: .5; }
.side .sep { height: 1px; background: #2c3038; margin: 10px 4px; }
.side .count { background: var(--accent); color: #16181c; 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: #2c3038; border-radius: 99px; overflow: hidden; margin: 6px 0; }
.meter i { display: block; height: 100%; background: var(--accent); }
.meter.light { background: #eceae4; }
.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: #fff; 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; }
.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: #eee; 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: #fff; 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: #fff; 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 #d6d3cc; border-radius: 10px; padding: 22px; text-align: center; color: var(--ink-3); background: #fdfcfa; cursor: pointer; }
.drop.over { border-color: var(--brand); background: #f3f6fa; }
.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: #eceae4; }
.upload-row .meter i { background: var(--brand); }
.locked-panel { position: relative; }
.locked-panel .veil { position: absolute; inset: 0; background: rgba(250,249,246,.75); 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: #16181c; color: #fff; }
  .mobile-bar button { background: none; border: 1px solid #444; color: #fff; 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: #eee; }
.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: #fff; 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: #fff; } }

/* 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: #f1efea; border-radius: 12px 12px 12px 4px; padding: 8px 12px; align-self: flex-start; }
.msg.mine { background: var(--brand); color: #fff; 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: #f8f7f4; }
.share-preview { border: 1px dashed var(--line); border-radius: 8px; padding: 18px; background: #fff; }
.qr { width: 180px; height: 180px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 6px; }

/* Legal */
.esign-box { background: #f6f5f1; 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: #fdf0dc; color: #7a4a00; 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: #fff; 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; }
