/* =====================================================================
   MARINELY APP PAGES — business profiles, accounts, admin.
   New classes only; built on the site's design tokens (--ink, --line,
   --stone, --display, --body, --ease ...) defined on every page.
   ===================================================================== */

/* anything marked hidden stays hidden, even when it's styled as a button, form or grid */
[hidden]{ display:none !important; }

/* ---------- page frame for pages without a photo hero ---------- */
.app-main{ padding:calc(var(--nav-h) + clamp(48px,7vw,104px)) var(--gutter) var(--section); min-height:80vh; }
.app-narrow{ max-width:560px; margin:0 auto; }
.app-wide{ max-width:1240px; margin:0 auto; }
.app-head{ margin-bottom:clamp(32px,4vw,56px); }
.app-head .label{ margin-bottom:16px; }
.app-head h1{ font-size:clamp(44px,6.4vw,96px); }
.app-head p{ margin-top:20px; max-width:34em; font-size:var(--t-body); line-height:1.6; color:var(--ink-2); }
.app-loading{ padding:48px 0; color:var(--muted); font-size:15px; }

/* ---------- forms ---------- */
.form{ display:grid; gap:28px; }
.form-row{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:28px; }
.form-row.three{ grid-template-columns:repeat(3, minmax(0,1fr)); }
.field{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.field > label, .field > .field-label{ font-size:12px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel],
.field input[type=url], .field input[type=number], .field input[type=search], .field select, .field textarea{
  font-family:var(--body); font-size:clamp(17px,1.3vw,19px); color:var(--ink);
  border:0; border-bottom:1px solid #888b8a; background:transparent;
  padding:10px 0 14px; outline:none; border-radius:0; width:100%;
  transition:border-color .3s var(--ease);
}
.field select{
  appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:28px;
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230b0d0e" stroke-width="1.6"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat:no-repeat; background-position:right 0 center; background-size:16px;
}
.field textarea{ resize:vertical; min-height:140px; line-height:1.55; }
.field input:focus, .field select:focus, .field textarea:focus{ border-bottom-color:var(--ink); }
.field input::placeholder, .field textarea::placeholder{ color:#9aa19f; }
.field-hint{ font-size:13.5px; color:var(--muted); }
.check{ display:flex; gap:12px; align-items:flex-start; font-size:15px; color:var(--ink-2); line-height:1.5; cursor:pointer; }
.check input{ width:18px; height:18px; margin:2px 0 0; accent-color:var(--ink); flex:none; }
.check a{ text-decoration:underline; text-underline-offset:3px; }
.form-actions{ display:flex; align-items:center; justify-content:space-between; gap:16px 24px; flex-wrap:wrap; }
.form-links{ display:flex; gap:20px; flex-wrap:wrap; font-size:14.5px; color:var(--ink-2); }
.form-links a{ text-decoration:underline; text-underline-offset:3px; }
.btn-sm{ min-width:0; padding:11px 16px; gap:12px; font-size:13px; }
.btn-line{ color:var(--ink); border-color:#c9cecd; background:transparent; }
.btn-line:hover{ border-color:var(--ink); }
.btn-danger{ color:#8f2121; border-color:#e3c4c4; background:transparent; }
.btn-danger:hover{ background:#8f2121; color:#fff; border-color:#8f2121; }
.link-btn{ font:inherit; font-size:14px; font-weight:500; color:var(--ink); background:none; border:0; padding:0 0 3px; cursor:pointer;
  background-image:linear-gradient(currentColor,currentColor); background-size:100% 1px; background-position:0 100%; background-repeat:no-repeat; }
.link-btn.muted{ color:var(--muted); }
.link-btn[disabled]{ opacity:.5; cursor:default; }

/* ---------- notices ---------- */
.notice{ padding:16px 18px; font-size:15px; line-height:1.55; border-left:2px solid var(--ink); background:var(--stone); color:var(--ink); }
.notice[hidden]{ display:none; }
.notice-ok{ border-left-color:#1f7a4d; background:#edf6f1; }
.notice-error{ border-left-color:#a12b2b; background:#f9eeee; color:#5f1717; }
.notice-info{ border-left-color:var(--ink); background:var(--stone); }
.notice a{ text-decoration:underline; text-underline-offset:3px; }

/* ---------- badges + stars ---------- */
.badge{ display:inline-flex; align-items:center; gap:6px; padding:4px 9px; font-size:11px; font-weight:600; letter-spacing:.14em; text-transform:uppercase; background:var(--stone); color:var(--ink-2); white-space:nowrap; }
.badge-pending{ background:#fbf1dc; color:#6b4a00; }
.badge-approved, .badge-published{ background:#e3f1e9; color:#155a37; }
.badge-rejected, .badge-hidden, .badge-archived{ background:#f4e4e4; color:#6e1d1d; }
.badge-draft{ background:var(--stone); color:var(--ink-2); }
.badge-open{ background:#fbf1dc; color:#6b4a00; }
.badge-resolved, .badge-dismissed{ background:var(--stone); color:var(--ink-2); }
.badge-verified{ background:var(--ink); color:#fff; }
.stars{ display:inline-flex; gap:2px; line-height:1; }
.star{ color:#c9cecd; font-size:1em; }
.star.on{ color:#d18f00; }
.dark .star{ color:rgba(255,255,255,.3); } .dark .star.on{ color:#f2b437; }

/* star picker (radio buttons) */
.star-pick{ display:inline-flex; flex-direction:row-reverse; gap:4px; border:0; padding:0; margin:0; }
.star-pick input{ position:absolute; opacity:0; width:1px; height:1px; }
.star-pick label{ font-size:34px; line-height:1; color:#c9cecd; cursor:pointer; transition:color .2s; }
.star-pick input:checked ~ label, .star-pick label:hover, .star-pick label:hover ~ label{ color:#d18f00; }
.star-pick input:focus-visible + label{ outline:2px solid var(--ink); outline-offset:3px; }

/* ---------- business profile ---------- */
.biz-hero{ position:relative; min-height:clamp(480px, 70vh, 720px); color:#fff; background:var(--abyss); display:flex; align-items:flex-end; overflow:hidden; }
.biz-hero-art{ position:absolute; inset:0; background-size:cover; background-position:center; }
.biz-hero .shade{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(4,9,12,.6) 0%, rgba(4,9,12,.15) 30%, rgba(4,9,12,.55) 62%, rgba(4,9,12,.9) 100%); }
.biz-hero-inner{ position:relative; width:100%; padding:calc(var(--nav-h) + 48px) var(--gutter) clamp(40px,5vw,72px); }
.biz-id{ display:flex; align-items:flex-end; gap:clamp(18px,2.4vw,32px); }
.biz-logo{ width:clamp(72px,8vw,112px); aspect-ratio:1; flex:none; border-radius:50%; background:#fff center / cover no-repeat; border:3px solid #fff; }
.biz-hero .label{ margin-bottom:14px; }
.biz-hero h1{ font-size:clamp(44px, min(7vw, 12vh), 120px); max-width:16ch; }
.biz-tagline{ margin-top:16px; font-size:var(--t-lead); line-height:1.35; color:rgba(255,255,255,.88); max-width:30em; }
.biz-meta{ margin-top:24px; display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; font-size:15px; color:rgba(255,255,255,.86); }
.biz-meta .stars{ font-size:18px; }
.biz-hero .hero-foot{ animation:none; }
.biz-body{ display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,380px); gap:clamp(40px,6vw,96px); align-items:start; }
.biz-section + .biz-section{ margin-top:clamp(56px,6vw,88px); }
.biz-section > .label{ margin-bottom:20px; }
.biz-section h2{ font-size:clamp(34px,3.6vw,56px); margin-bottom:24px; }
.biz-about{ font-size:var(--t-body); line-height:1.7; color:var(--ink-2); white-space:pre-line; max-width:40em; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chip{ display:inline-block; padding:8px 14px; border:1px solid var(--line); font-size:14px; color:var(--ink-2); transition:border-color .3s; }
a.chip:hover{ border-color:var(--ink); color:var(--ink); }
.gallery{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; }
.gallery figure{ margin:0; aspect-ratio:4 / 3; overflow:hidden; background:var(--stone); }
.gallery img{ width:100%; height:100%; object-fit:cover; }
.gallery figcaption{ font-size:13px; color:var(--muted); padding-top:6px; }
.biz-aside{ position:sticky; top:calc(var(--nav-h) + 24px); border-top:1px solid var(--ink); }
.biz-aside dl{ margin:0; }
.biz-aside .row{ padding:18px 0; border-bottom:1px solid var(--line); }
.biz-aside dt{ font-size:12px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.biz-aside dd{ margin:0; font-size:16px; line-height:1.55; overflow-wrap:anywhere; }
.biz-own p{ margin:0; font-size:15px; line-height:1.55; color:var(--ink-2); }
.biz-own .link-btn{ font-weight:600; }
/* selectable option chips (Suggest an edit, admin editor); same look as the directory's Filter Mechanics */
.attr-group{ border:0; margin:0; padding:0; min-width:0; }
.attr-group + .attr-group{ margin-top:18px; }
.attr-group legend{ padding:0; margin-bottom:10px; font-size:12px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); }
.attr-opts{ display:flex; flex-wrap:wrap; gap:8px; }
.attr-opt{ position:relative; cursor:pointer; }
.attr-opt input{ position:absolute; opacity:0; width:1px; height:1px; }
.attr-opt span{ display:inline-block; padding:7px 12px; border:1px solid #c9cecd; font-size:14px; line-height:1.2; color:var(--ink-2); background:var(--paper); transition:background .2s, color .2s, border-color .2s; }
.attr-opt:hover span{ border-color:var(--ink); }
.attr-opt input:checked + span{ background:var(--ink); border-color:var(--ink); color:#fff; }
.attr-opt input:focus-visible + span{ outline:2px solid var(--ink); outline-offset:2px; }
.sg-attrs .field-label{ display:block; margin-bottom:12px; }
.biz-attr-group + .biz-attr-group{ margin-top:28px; }
.biz-attr-group h3{ font-size:clamp(20px,1.8vw,24px); letter-spacing:-.03em; margin-bottom:12px; }
.biz-attr-group ul{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.biz-attr-group li{ padding:7px 12px; border:1px solid var(--line); font-size:14.5px; color:var(--ink-2); }
.biz-attr-note{ margin-top:20px; font-size:13px; color:var(--muted); }
.del-panel{ margin-top:clamp(56px,6vw,88px); border-top-color:var(--line); padding-top:4px; }
.del-panel .del-head{ margin:0; font-size:inherit; }
.del-toggle{ display:flex; align-items:center; justify-content:space-between; gap:16px; width:100%; min-height:48px; padding:8px 0; background:none; border:0; cursor:pointer;
  font-family:var(--body); font-size:16px; font-weight:600; letter-spacing:0; line-height:1.3; color:var(--ink); text-align:left; }
.del-toggle:hover span{ text-decoration:underline; text-underline-offset:3px; }
.del-toggle:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.del-chev{ width:20px; height:20px; flex:none; color:var(--muted); transition:transform .3s cubic-bezier(.2,.7,.1,1); }
.del-toggle[aria-expanded="true"] .del-chev{ transform:rotate(180deg); }
.del-summary{ margin:0; font-size:14px; line-height:1.5; color:var(--muted); }
.del-body{ margin-top:24px; padding-top:24px; border-top:1px solid #8f2121; max-width:640px; }
@media (prefers-reduced-motion:reduce){ .del-chev{ transition:none; } }
.del-list{ margin:0 0 20px; padding-left:18px; font-size:15px; line-height:1.6; color:var(--ink-2); }
.del-list li + li{ margin-top:6px; }
.mfa-panel{ max-width:560px; }
.mfa-lead{ margin:10px 0 20px; font-size:16px; line-height:1.6; color:var(--ink-2); }
.mfa-steps{ margin:0 0 20px; padding-left:20px; font-size:15px; line-height:1.7; color:var(--ink-2); }
.mfa-qr{ display:block; width:180px; height:180px; margin:0 0 12px; background:#fff; border:1px solid var(--line); }
.mfa-secret{ font-family:ui-monospace, Menlo, Consolas, monospace; font-size:14px; letter-spacing:.06em; word-break:break-all; user-select:all; }
.mfa-form{ margin-top:16px; max-width:320px; }
#mfaCode{ font-size:22px; letter-spacing:.3em; }
.mfa-devices li{ padding:10px 0; border-bottom:1px solid var(--line); }
#mfaBanner{ margin-bottom:24px; }
.captcha{ margin:4px 0 8px; min-height:65px; }
.biz-disclaimer{ margin:18px 0 0; font-size:13px; line-height:1.55; color:var(--muted); }
.biz-disclaimer a{ color:var(--ink-2); text-decoration:underline; text-underline-offset:3px; }
.legal-ack a{ text-decoration:underline; text-underline-offset:3px; }
.biz-claim h3{ font-family:var(--display); font-weight:600; font-stretch:92%; letter-spacing:-.03em; font-size:22px; line-height:1.1; margin-bottom:8px; }
.biz-claim .btn{ margin-top:16px; }
.biz-claim .btn-line{ border-color:var(--ink); }
.biz-claim .btn-line:hover{ background:var(--ink); color:#fff; }
.biz-aside dd a{ text-decoration:underline; text-underline-offset:3px; }
/* social media icons in the contact column: monochrome, compact, 40px tap targets that wrap on narrow screens */
.biz-social{ list-style:none; margin:2px 0 0 -9px; padding:0; display:flex; flex-wrap:wrap; gap:2px; }
.biz-aside .biz-social a{ display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; color:var(--ink-2); text-decoration:none; transition:color .25s; }
.biz-aside .biz-social a:hover{ color:var(--ink); }
.biz-aside .biz-social a:focus-visible{ outline:2px solid var(--ink); outline-offset:0; }
.biz-social svg{ width:22px; height:22px; }
.hours{ width:100%; border-collapse:collapse; font-size:15px; }
.hours td{ padding:3px 0; } .hours td:last-child{ text-align:right; color:var(--ink-2); }

/* reviews */
.rv-summary{ display:flex; align-items:center; gap:20px; flex-wrap:wrap; padding-bottom:28px; border-bottom:1px solid var(--line); }
.rv-avg{ font-family:var(--display); font-weight:600; font-stretch:92%; font-size:64px; line-height:1; letter-spacing:-.04em; }
.rv-summary .stars{ font-size:22px; }
.rv-count{ font-size:14.5px; color:var(--muted); }
.rv-list{ list-style:none; margin:0; padding:0; }
.rv-item{ padding:28px 0; border-bottom:1px solid var(--line); }
.rv-top{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
.rv-author{ font-weight:600; }
.rv-date{ font-size:13.5px; color:var(--muted); }
.rv-item .stars{ margin-top:8px; font-size:17px; }
.rv-title{ margin-top:12px; font-weight:600; font-size:17px; }
.rv-body{ margin-top:8px; line-height:1.65; color:var(--ink-2); white-space:pre-line; overflow-wrap:anywhere; }
.rv-actions{ margin-top:14px; display:flex; flex-wrap:wrap; gap:8px 18px; }
.rv-report{ margin-top:16px; padding:20px; background:var(--stone); }
.rv-write{ margin-top:36px; padding:clamp(24px,3vw,40px); background:var(--stone); }
.rv-write h3{ font-size:clamp(26px,2.4vw,36px); margin-bottom:20px; }
.rv-empty{ padding:28px 0; color:var(--muted); }

/* ---------- account ---------- */
.acct-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(40px,6vw,96px); }
.panel{ border-top:1px solid var(--ink); padding-top:24px; }
.panel h2{ font-size:clamp(28px,2.6vw,40px); margin-bottom:20px; }
.list-plain{ list-style:none; margin:0; padding:0; }
.list-plain > li{ padding:20px 0; border-bottom:1px solid var(--line); }

/* ---------- admin ---------- */
.admin-tabs{ display:flex; gap:4px; flex-wrap:wrap; border-bottom:1px solid var(--line); margin-bottom:clamp(28px,3vw,44px); }
.admin-tabs button{ font:inherit; font-size:14.5px; font-weight:500; padding:14px 18px; background:none; border:0; border-bottom:2px solid transparent; margin-bottom:-1px; color:var(--ink-2); cursor:pointer; display:inline-flex; gap:8px; align-items:center; }
.admin-tabs button[aria-selected=true]{ color:var(--ink); border-bottom-color:var(--ink); }
.admin-tabs .count{ font-size:11.5px; min-width:20px; padding:2px 6px; border-radius:10px; background:var(--ink); color:#fff; text-align:center; }
.admin-tabs .count:empty{ display:none; }
.tiles{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; }
.tile{ padding:24px; background:var(--stone); }
.tile b{ display:block; font-family:var(--display); font-weight:600; font-stretch:92%; font-size:48px; line-height:1; letter-spacing:-.03em; }
.tile span{ display:block; margin-top:10px; font-size:14px; color:var(--ink-2); }
.toolbar{ display:flex; gap:16px 24px; align-items:flex-end; flex-wrap:wrap; margin-bottom:24px; }
.toolbar .field{ min-width:200px; flex:1; max-width:340px; }
.toolbar .spacer{ flex:1; }
.table-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; }
.table{ width:100%; border-collapse:collapse; font-size:15px; min-width:640px; }
.table th{ text-align:left; font-size:12px; font-weight:500; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); padding:12px 12px 12px 0; border-bottom:1px solid var(--ink); }
.table td{ padding:16px 12px 16px 0; border-bottom:1px solid var(--line); vertical-align:top; }
.table a{ font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.mod-card{ padding:24px 0; border-bottom:1px solid var(--line); display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px 32px; }
.mod-card .mod-actions{ display:flex; flex-direction:column; gap:10px; align-items:stretch; min-width:180px; }
.mod-card .mod-actions input{ font:inherit; font-size:14px; padding:9px 0; border:0; border-bottom:1px solid #888b8a; background:transparent; outline:none; }
.mod-meta{ font-size:13.5px; color:var(--muted); display:flex; gap:8px 14px; flex-wrap:wrap; align-items:center; }
.mod-quote{ margin-top:12px; padding:14px 16px; background:var(--stone); font-size:15px; line-height:1.6; white-space:pre-line; overflow-wrap:anywhere; }
.edit-grid{ display:grid; gap:clamp(36px,4vw,56px); }
.edit-block{ border-top:1px solid var(--ink); padding-top:22px; }
.edit-block > h3{ font-size:clamp(24px,2.2vw,32px); margin-bottom:22px; }
.cat-checks{ display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px 20px; }
.hours-grid{ display:grid; grid-template-columns:80px minmax(0,1fr); gap:6px 16px; align-items:center; max-width:460px; }
.hours-grid label{ font-size:14px; color:var(--ink-2); }
.hours-grid input{ font:inherit; font-size:16px; padding:8px 0; border:0; border-bottom:1px solid #888b8a; background:transparent; outline:none; }
.media-row{ display:flex; gap:20px; align-items:center; flex-wrap:wrap; }
.media-thumb{ width:120px; aspect-ratio:4 / 3; background:var(--stone) center / cover no-repeat; flex:none; }
.media-thumb.round{ width:84px; aspect-ratio:1; border-radius:50%; }
.photo-admin{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:16px; margin-top:16px; }
.photo-admin figure{ margin:0; }
.photo-admin .media-thumb{ width:100%; }
.photo-admin figcaption{ display:flex; justify-content:space-between; gap:8px; font-size:13px; color:var(--muted); padding-top:6px; }
.sticky-actions{ position:sticky; bottom:0; z-index:5; background:rgba(255,255,255,.96); border-top:1px solid var(--line); padding:16px 0; display:flex; gap:12px; flex-wrap:wrap; align-items:center; }

/* ================= TABLET ================= */
@media (max-width:1020px){
  .biz-body{ grid-template-columns:minmax(0,1fr); }
  .biz-aside{ position:static; }
  .tiles{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .photo-admin{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .cat-checks{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

/* ================= MOBILE ================= */
@media (max-width:760px){
  .form-row, .form-row.three, .acct-grid{ grid-template-columns:minmax(0,1fr); }
  .biz-id{ flex-direction:column; align-items:flex-start; }
  .biz-hero h1{ font-size:clamp(40px, 11vw, 56px); }
  .gallery{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .mod-card{ grid-template-columns:minmax(0,1fr); }
  .mod-card .mod-actions{ min-width:0; }
  .photo-admin{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .cat-checks{ grid-template-columns:minmax(0,1fr); }
  .admin-tabs{ overflow-x:auto; flex-wrap:nowrap; }
  .admin-tabs button{ white-space:nowrap; padding:12px 12px; }
  .form-actions .btn{ width:100%; }
}

/* ---------- favorites (Phase 2) ---------- */
.fav-hero{ background:transparent; -webkit-appearance:none; appearance:none; }   /* match the link buttons beside it */
.fav-hero:hover{ background:#fff; }
.fav-hero svg{ width:16px; height:16px; }
.fav-hero:hover svg{ transform:none; }
.fav-hero[aria-pressed=true] svg path{ fill:currentColor; }
.fav-confirm{ padding:20px var(--gutter) 0; }
.fav-confirm .notice{ display:flex; justify-content:space-between; align-items:center; gap:12px 24px; flex-wrap:wrap; }
.fav-confirm-actions{ display:flex; align-items:center; gap:18px; }
.fav-panel{ margin-top:clamp(56px,6vw,88px); }
/* Your businesses: Business Insights first, View Listing second, Edit Listing & Services third */
.biz-actions{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; margin-top:14px; }
.biz-action{ display:flex; align-items:center; gap:16px; min-height:84px; padding:18px 20px; border:1px solid var(--ink); background:var(--paper); color:var(--ink); text-decoration:none; transition:background .3s, color .3s, border-color .3s; }
.biz-action:hover{ background:var(--stone); }
.biz-action-primary{ background:var(--ink); color:#fff; }
.biz-action-primary:hover{ background:#24292b; border-color:#24292b; }
.biz-action:focus-visible, .biz-action-edit:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }
.biz-action-icon{ width:24px; height:24px; flex:none; }
.biz-action-text{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.biz-action-text strong{ font-size:16.5px; font-weight:600; line-height:1.25; }
.biz-action-text small{ font-size:13.5px; line-height:1.4; color:var(--muted); }
.biz-action-primary .biz-action-text small{ color:rgba(255,255,255,.72); }
.biz-action-primary .biz-action-text strong{ font-size:17.5px; }
.biz-action-arrow{ width:18px; height:18px; flex:none; margin-left:auto; transition:transform .35s cubic-bezier(.2,.7,.1,1); }
.biz-action:hover .biz-action-arrow{ transform:translateX(3px); }
.biz-action-edit{ grid-column:1 / -1; justify-self:start; display:inline-flex; align-items:center; gap:10px; min-height:46px; padding:0 18px; border:1px solid var(--line);
  font-size:14.5px; font-weight:500; color:var(--ink); text-decoration:none; transition:border-color .3s; }
.biz-action-edit:hover{ border-color:var(--ink); }
.biz-action-edit .biz-action-icon{ width:18px; height:18px; }
#myBusinesses > li + li{ margin-top:8px; }
@media (max-width:760px){
  .biz-actions{ grid-template-columns:minmax(0,1fr); }
  .biz-action{ min-height:76px; padding:16px; }
  .biz-action-edit{ justify-self:stretch; justify-content:center; }
}
@media (prefers-reduced-motion:reduce){ .biz-action-arrow{ transition:none; } }
.fav-panel .dir-cards{ grid-template-columns:repeat(3, minmax(0,1fr)); }
@media (max-width:1020px){ .fav-panel .dir-cards{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:760px){ .fav-panel .dir-cards{ grid-template-columns:minmax(0,1fr); } }

/* ---------- Business Insights (Phase 2) ---------- */
.ins-periods{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:20px; }
.ins-periods .btn{ min-width:0; background:transparent; -webkit-appearance:none; appearance:none; }
.ins-periods .btn[aria-pressed=true]{ background:var(--ink); color:#fff; border-color:var(--ink); }
.ins-periods .btn svg{ display:none; }
.ins-range{ font-size:14px; color:var(--muted); margin:16px 0 0; }
.ins-sim{ margin-top:8px; }
.ins-section{ margin-top:clamp(48px,5vw,72px); }
.ins-section > .label{ margin-bottom:14px; }
.ins-section > h3{ font-size:clamp(28px,2.6vw,40px); margin-bottom:24px; }
.ins-tiles{ grid-template-columns:repeat(3, minmax(0,1fr)); }
.ins-tiles .tile b{ font-size:clamp(34px,3.4vw,48px); }
.tile .delta{ display:block; margin-top:10px; font-size:13px; color:var(--ink-2); }
.tile .delta .stars{ font-size:14px; vertical-align:-1px; }
/* keep stars on one line inside totals boxes (".tile span" above is meant for the box labels) */
.tile .stars{ display:inline-flex; margin:0; }
.tile .stars .star{ display:inline; margin:0; font-size:inherit; color:#c9cecd; }
.tile .stars .star.on{ color:#d18f00; }
.tile small{ display:block; margin-top:6px; font-size:12.5px; line-height:1.45; color:var(--muted); }
.tile sup, .ins-note sup{ font-size:.7em; }
.ins-note{ margin-top:14px; font-size:13.5px; line-height:1.55; color:var(--muted); max-width:52em; }
.chart{ margin:32px 0 0; }
.chart figcaption{ font-weight:600; font-size:15px; margin-bottom:12px; }
.ch-box{ position:relative; }
.ch-box svg{ display:block; width:100%; height:auto; overflow:visible; }
.ch-grid{ stroke:var(--line); stroke-width:1; vector-effect:non-scaling-stroke; }
.ch-axis{ font-family:var(--body); font-size:12px; fill:var(--muted); }
.ch-line{ fill:none; stroke:var(--ink); stroke-width:2; stroke-linejoin:round; stroke-linecap:round; vector-effect:non-scaling-stroke; }
.ch-line.gold{ stroke:#d18f00; }
.ch-dot{ fill:var(--ink); stroke:#fff; stroke-width:2; vector-effect:non-scaling-stroke; }
.ch-dot.gold{ fill:#d18f00; }
.ch-cross{ stroke:var(--ink-2); stroke-width:1; stroke-dasharray:3 3; vector-effect:non-scaling-stroke; }
.ch-hit{ cursor:crosshair; }
.ch-tip{ position:absolute; transform:translate(-50%, calc(-100% - 10px)); background:var(--ink); color:#fff; font-size:13px; padding:6px 10px; white-space:nowrap; pointer-events:none; z-index:2; }
.ch-table{ margin-top:10px; font-size:14px; }
.ch-table summary{ cursor:pointer; color:var(--ink-2); }
.ch-table .table{ min-width:0; margin-top:8px; }
.ins-grid-2{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,4vw,56px); margin-top:clamp(40px,4vw,56px); }
.ins-table{ min-width:0; }
.bar-cell{ display:flex; align-items:center; gap:10px; min-width:120px; }
.bar{ display:block; height:8px; background:var(--ink); border-radius:0 4px 4px 0; }
@media (max-width:1020px){ .ins-tiles{ grid-template-columns:repeat(2, minmax(0,1fr)); } .ins-grid-2{ grid-template-columns:minmax(0,1fr); } }
@media (max-width:760px){ .ins-periods{ flex-wrap:nowrap; gap:6px; } .ins-periods .btn{ width:auto; flex:1; justify-content:center; padding:11px 6px; } .ins-tiles .tile{ padding:18px; } .ins-tiles .tile b{ font-size:32px; } }

/* ---------- listing requests & suggestions (Phase 2, Stage 2) ---------- */
.req{ color:var(--ink); }
.req-matches{ padding:18px 20px; background:var(--stone); }
.req-matches > p{ font-size:14.5px; color:var(--ink-2); margin-bottom:10px; }
.req-matches ul{ list-style:none; margin:0; padding:0; }
.req-matches li{ display:flex; justify-content:space-between; align-items:baseline; gap:6px 16px; flex-wrap:wrap; padding:10px 0; border-top:1px solid var(--line); font-size:15px; }
.req-matches li span{ color:var(--muted); font-size:14px; }
.req-more summary{ cursor:pointer; font-size:14.5px; font-weight:500; color:var(--ink-2); padding:4px 0; }
.req-more[open] summary{ margin-bottom:20px; }
.suggest-box{ margin-top:12px; padding:18px; background:var(--stone); }
.dup-list{ margin-top:12px; padding:12px 14px; background:#fbf1dc; font-size:14px; line-height:1.5; }
.dup-list ul{ margin:6px 0 0; padding-left:18px; }
.dup-list a{ font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.req-details{ margin-top:12px; display:grid; grid-template-columns:max-content minmax(0,1fr); gap:4px 16px; font-size:14.5px; }
.req-details dt{ color:var(--muted); }
.req-details dd{ margin:0; overflow-wrap:anywhere; }
@media (max-width:760px){ .req-details{ grid-template-columns:minmax(0,1fr); gap:0; } .req-details dd{ margin-bottom:8px; } }
.badge-applied{ background:#e3f1e9; color:#155a37; }
.q-sub{ margin-top:16px; font-family:var(--body); font-size:12px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); }
/* Find My Business */
.find-search{ display:flex; align-items:flex-end; gap:16px; margin-bottom:28px; }
.find-search label{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.find-search input{ flex:1; min-width:0; font:inherit; font-size:18px; color:var(--ink); background:transparent; border:0; border-bottom:1px solid #888b8a; border-radius:0; padding:12px 0; outline:none; -webkit-appearance:none; appearance:none; }
.find-search input:focus{ border-bottom-color:var(--ink); }
.find-search input::placeholder{ color:#80878a; }
.find-search .btn{ flex:none; min-width:0; }
.find-status{ font-size:14.5px; color:var(--ink-2); min-height:1.5em; }
.find-results{ list-style:none; margin:12px 0 0; padding:0; }
.find-item{ display:flex; justify-content:space-between; align-items:center; gap:14px 28px; flex-wrap:wrap; padding:22px 0; border-top:1px solid var(--line); }
.find-item:last-child{ border-bottom:1px solid var(--line); }
.find-info{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.find-name{ font-family:var(--display); font-weight:600; font-stretch:92%; letter-spacing:-.03em; font-size:clamp(22px,2vw,28px); line-height:1.05; }
.find-name:hover{ text-decoration:underline; text-underline-offset:4px; }
.find-meta{ font-size:14.5px; color:var(--muted); }
.find-actions{ display:flex; align-items:center; gap:10px 22px; flex-wrap:wrap; }
.find-note{ margin:0; font-size:14.5px; color:var(--ink-2); }
.find-missing{ margin-top:36px; padding:20px 24px; background:var(--stone); font-size:15.5px; color:var(--ink-2); }
@media (max-width:760px){
  .find-search{ flex-direction:column; align-items:stretch; }
  .find-item{ flex-direction:column; align-items:stretch; }
  .find-actions .btn{ width:100%; }
}
.invite-link{ display:flex; align-items:center; gap:12px 18px; flex-wrap:wrap; margin-top:10px; }
.invite-link input{ flex:1 1 280px; min-width:0; font:inherit; font-size:15px; padding:10px 0; border:0; border-bottom:1px solid #888b8a; background:transparent; color:var(--ink); }
.invite-checks{ list-style:none; margin:10px 0 0; padding:0; font-size:15px; line-height:1.9; }
.invite-checks .ok{ color:#155a37; } .invite-checks .no{ color:#8f2121; } .invite-checks .opt{ color:var(--muted); }
.invite-verdict{ margin:14px 0 4px; font-size:15px; color:var(--ink-2); }
.claim-biz{ padding:clamp(20px,2.4vw,28px); background:var(--stone); margin-bottom:32px; }
.claim-biz:empty{ display:none; }
.claim-biz .label{ margin-bottom:10px; }
.claim-biz h2{ font-size:clamp(26px,2.6vw,36px); }
.claim-biz p{ margin:8px 0 12px; font-size:15px; line-height:1.5; color:var(--ink-2); }
.badge-duplicate{ background:var(--stone); color:var(--ink-2); }
.q-head{ font-size:clamp(24px,2.4vw,32px); margin:40px 0 4px; }
.toolbar + .q-head{ margin-top:8px; }
.dup-list .list-plain li{ padding:6px 0; border:0; }
.dup-list label.check{ display:inline-flex; gap:8px; align-items:center; font-weight:600; }

/* ---------- business editor (/manage-business) ---------- */
.mb-form .panel + .panel{ margin-top:48px; }
/* social media link fields (owner + admin editors): message under a link that isn't a valid profile */
.field-error{ display:block; margin-top:6px; font-size:13.5px; line-height:1.45; color:#8f2121; }
.field input[aria-invalid="true"]{ border-color:#8f2121; }
.mb-cat{ border-top:1px solid var(--ink); }
.mb-cat + .mb-cat{ margin-top:12px; }
.mb-cat > summary{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:18px 0; cursor:pointer; list-style:none; }
.mb-cat > summary::-webkit-details-marker, .mb-group > summary::-webkit-details-marker{ display:none; }
.mb-cat > summary::after, .mb-group > summary::after{ content:"+"; margin-left:auto; font-size:18px; color:var(--muted); }
.mb-cat[open] > summary::after, .mb-group[open] > summary::after{ content:"–"; }
.mb-cat-name{ font-family:var(--display); font-size:clamp(22px,2.2vw,30px); font-weight:600; letter-spacing:-.03em; }
.mb-cat-body{ padding:0 0 24px; }
.mb-group{ border-top:1px solid var(--line); }
.mb-group > summary{ display:flex; align-items:center; gap:10px; padding:14px 0; cursor:pointer; list-style:none; font-size:15.5px; font-weight:500; }
.mb-group-body{ padding:0 0 18px; }
.mb-more-label{ margin:18px 0 6px; font-size:12px; font-weight:500; letter-spacing:.2em; text-transform:uppercase; color:var(--muted); }
.mb-showall{ margin-top:12px; }
.mb-sizes{ border-top:1px solid var(--line); padding-top:6px; }
.mb-size-row{ display:flex; flex-wrap:wrap; gap:16px 28px; }
.mb-size{ width:200px; max-width:100%; }
.attr-search{ width:100%; max-width:360px; margin:0 0 12px; padding:9px 0 10px; font:inherit; font-size:15px; border:0; border-bottom:1px solid #888b8a; background:transparent; outline:none; }
.attr-sec{ display:inline-grid; place-items:center; width:24px; height:24px; background:var(--ink); color:#fff; font-size:12px; font-weight:600; flex:none; }
.attr-n{ font-size:12.5px; color:var(--muted); font-weight:400; }
.attr-opt[hidden]{ display:none; }
/* business profile: confirmed services */
.biz-svc-cat + .biz-svc-cat{ margin-top:22px; }
.biz-svc-cat h3{ font-family:var(--body); font-size:15px; font-weight:600; letter-spacing:0; margin-bottom:10px; }
.biz-svc-row{ display:grid; grid-template-columns:minmax(140px, 220px) 1fr; gap:4px 18px; padding:8px 0; border-top:1px solid var(--line); font-size:15px; }
.biz-svc-row dt{ color:var(--muted); }
.biz-svc-row dd{ margin:0; color:var(--ink-2); }
@media (max-width:640px){ .biz-svc-row{ grid-template-columns:minmax(0,1fr); } }
.mod-change{ padding:22px 0; border-bottom:1px solid var(--line); }
.mod-change .table-wrap{ margin-top:12px; }
.mod-change .rv-actions{ margin-top:12px; }

/* =====================================================================
   Admin → Content (assets/js/pages/admin-content.js)
   ===================================================================== */
.cm-tabs{ display:flex; flex-wrap:wrap; gap:8px 22px; padding-bottom:18px; margin-bottom:24px; border-bottom:1px solid var(--line); }
.cm-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; margin-bottom:24px; }
.cm-head h2{ font-size:clamp(28px,2.6vw,40px); margin-bottom:8px; }
.cm-list{ list-style:none; margin:0 0 32px; padding:0; border-top:1px solid var(--line); }
.cm-list > li{ display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--line); background:var(--paper); }
.cm-list > li.is-dragging{ opacity:.5; }
.cm-order{ display:flex; align-items:center; gap:2px; flex:none; }
.cm-grip{ width:22px; height:36px; display:grid; place-items:center; color:var(--muted); cursor:grab; }
.cm-grip svg{ width:16px; height:16px; }
.cm-icon{ width:36px; height:36px; display:grid; place-items:center; padding:0; background:none; border:1px solid var(--line); color:var(--ink); cursor:pointer; }
.cm-icon:hover{ border-color:var(--ink); }
.cm-icon svg{ width:16px; height:16px; }
.cm-pos{ width:22px; flex:none; font-size:13px; color:var(--muted); font-variant-numeric:tabular-nums; text-align:right; }
.cm-thumb{ width:88px; height:66px; flex:none; object-fit:cover; background:var(--stone); border:1px solid var(--line); display:block; }
.cm-thumb.cm-thumb-v{ width:54px; height:96px; border-radius:4px; }
.cm-thumb-empty{ display:block; }
.cm-main{ flex:1; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; }
.cm-main strong{ font-weight:600; }
.cm-actions{ display:flex; flex-wrap:wrap; gap:8px 16px; flex:none; }
.link-btn.danger{ color:#8f2121; }
.cm-form{ max-width:820px; }
.cm-media-row{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:24px; }
.cm-pick{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; margin:10px 0 6px; }
.cm-file{ position:relative; overflow:hidden; cursor:pointer; }
.cm-file input[type=file]{ position:absolute; inset:0; opacity:0; cursor:pointer; font-size:0; }
.cm-file:focus-within{ outline:2px solid var(--ink); outline-offset:2px; }
.cm-chosen{ display:flex; align-items:center; gap:12px; font-size:14px; color:var(--ink-2); }
.cm-caption{ flex:1 1 220px; min-width:0; padding:6px 0; border:0; border-bottom:1px solid #c9cecd; background:transparent; font:inherit; font-size:14px; }
.cm-caption:focus{ outline:none; border-bottom-color:var(--ink); }
.cm-links{ border:0; padding:0; margin:0; }
.cm-link{ align-items:end; }
.cm-panel{ margin-top:40px; }
.cm-panel h3{ font-size:22px; margin-bottom:14px; }
.cm-search{ list-style:none; margin:12px 0 0; padding:0; }
.cm-search li{ display:flex; justify-content:space-between; align-items:center; gap:16px; padding:10px 0; border-bottom:1px solid var(--line); }
.cm-preview.dir-cards{ display:flex; gap:20px; overflow-x:auto; padding-bottom:8px; }
.cm-preview .dir-card-wrap{ flex:0 0 300px; }
.cm-lib{ list-style:none; margin:16px 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(150px, 1fr)); gap:14px; }
.cm-lib-item{ display:flex; flex-direction:column; gap:6px; width:100%; padding:0; border:1px solid var(--line); background:var(--paper); cursor:pointer; text-align:left; font:inherit; font-size:12.5px; color:var(--ink-2); }
.cm-lib-item:hover, .cm-lib-item:focus-visible{ border-color:var(--ink); }
.cm-lib-item .cm-thumb{ width:100%; height:110px; border:0; }
.cm-lib-item span{ padding:0 8px 8px; overflow-wrap:anywhere; }
.cm-lib-page{ grid-template-columns:minmax(0,1fr); gap:0; border-top:1px solid var(--line); }
.cm-lib-page > li{ display:flex; align-items:center; gap:14px; padding:12px 0; border-bottom:1px solid var(--line); }
.cm-lib-page .cm-main{ flex-direction:column; align-items:flex-start; }
.cm-dialog{ width:min(900px, calc(100vw - 32px)); max-height:calc(100dvh - 48px); padding:28px; border:1px solid var(--line); }
.cm-dialog::backdrop{ background:rgba(4,9,12,.6); }
.cm-dialog h2{ font-size:24px; }
@media (max-width:760px){
  .cm-list > li{ flex-wrap:wrap; }
  .cm-actions{ width:100%; padding-left:0; }
  .cm-media-row{ grid-template-columns:minmax(0,1fr); }
}
.cm-form .sr-only, .cm-list .sr-only{ position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.cm-link.form-row{ grid-template-columns:minmax(0,1fr) minmax(0,2fr) auto; }
.cm-list .cm-caption{ max-width:420px; }
@media (max-width:760px){ .cm-link.form-row{ grid-template-columns:minmax(0,1fr); } }
.cm-form .field input[type=date]{ font-family:var(--body); font-size:clamp(17px,1.3vw,19px); color:var(--ink); border:0; border-bottom:1px solid #888b8a; background:transparent; padding:10px 0 14px; outline:none; border-radius:0; width:100%; }
.cm-form .field input[type=date]:focus{ border-bottom-color:var(--ink); }

/* ownership check mark (migration 16): "Business ownership verified by Marinely" */
.vb-slot:empty{ display:none; }
.vbadge{ position:relative; display:inline-flex; width:.78em; height:.78em; min-width:14px; min-height:14px; margin-left:.3em; vertical-align:-.06em; color:#1f6fd6; flex:none; }
.vbadge svg{ width:100%; height:100%; display:block; }
.vbadge[tabindex]:focus-visible{ outline:2px solid currentColor; outline-offset:2px; border-radius:50%; }
.vb-hero .vbadge{ width:.5em; height:.5em; margin-left:.22em; vertical-align:.12em; color:#4b95f2; }
.vb-hero .vbadge::after{ content:attr(data-tip); position:absolute; left:50%; bottom:calc(100% + 10px); transform:translateX(-50%); padding:7px 11px; background:#fff; color:#0b0d0e;
  font-family:var(--body, inherit); font-size:13px; font-weight:500; letter-spacing:0; line-height:1.3; white-space:nowrap; pointer-events:none; opacity:0; transition:opacity .2s; z-index:5; box-shadow:0 4px 16px rgba(0,0,0,.18); }
.vb-hero .vbadge:hover::after, .vb-hero .vbadge:focus-visible::after{ opacity:1; }
@media (max-width:760px){ .vb-hero .vbadge::after{ left:auto; right:-8px; transform:none; white-space:normal; width:220px; } }

/* ---------- business photo & video gallery manager (assets/js/gallery-manager.js) ---------- */
.gm-top{ display:flex; align-items:center; justify-content:space-between; gap:12px 20px; flex-wrap:wrap; margin-bottom:10px; }
.gm-count{ font-size:14px; color:var(--ink-2); }
.gm-add{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.gm-file{ position:relative; overflow:hidden; cursor:pointer; }
.gm-file input[type=file]{ position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; font-size:0; }
.gm-file:focus-within{ outline:2px solid var(--ink); outline-offset:3px; }
.gm-panel .notice, [data-gm-msg]{ margin:14px 0; }
.gm-staged{ margin:20px 0; padding:18px; background:var(--stone); }
.gm-staged h3{ font-size:16px; letter-spacing:-.01em; margin-bottom:12px; }
.gm-list{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.gm-list > li{ display:grid; grid-template-columns:auto 96px minmax(0,1fr) auto; align-items:center; gap:14px; padding:12px; border:1px solid var(--line); background:#fff; }
.gm-staged .gm-list > li{ grid-template-columns:96px auto minmax(0,1fr) auto; }
.gm-items{ margin-top:22px; }
.gm-items > li.is-dragging{ opacity:.45; }
.gm-thumb{ width:96px; height:72px; object-fit:cover; background:var(--stone); }
.gm-preview{ position:relative; padding:0; border:0; background:none; cursor:zoom-in; display:block; }
.gm-play{ position:absolute; inset:0; display:grid; place-items:center; color:#fff; pointer-events:none; }
.gm-play svg{ width:28px; height:28px; filter:drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.gm-kind{ font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); }
.gm-main{ display:flex; flex-direction:column; gap:6px; align-items:flex-start; min-width:0; }
.gm-main .badge + .badge{ margin-left:0; }
.gm-caption{ width:100%; font:inherit; font-size:14px; padding:8px 10px; border:1px solid var(--line); background:#fff; color:var(--ink); }
.gm-caption:focus{ outline:none; border-color:var(--ink); }
.gm-actions{ display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.gm-order{ display:flex; flex-direction:column; gap:4px; }
.gm-icon{ width:32px; height:32px; display:grid; place-items:center; padding:0; border:1px solid var(--line); background:#fff; color:var(--ink); cursor:pointer; }
.gm-icon:hover{ border-color:var(--ink); }
.gm-icon svg{ width:14px; height:14px; }
@media (max-width:640px){
  .gm-list > li, .gm-staged .gm-list > li{ grid-template-columns:auto 80px minmax(0,1fr); }
  .gm-staged .gm-list > li{ grid-template-columns:80px minmax(0,1fr); }
  .gm-thumb{ width:80px; height:60px; }
  .gm-actions{ grid-column:1 / -1; flex-direction:row; flex-wrap:wrap; justify-content:flex-start; gap:10px 18px; }
}
/* admin → Gallery review */
.gq-card{ grid-template-columns:160px minmax(0,1fr); align-items:start; }
.gq-thumb img{ width:160px; height:120px; object-fit:cover; background:var(--stone); display:block; }
.gq-card .mod-actions{ flex-direction:row; flex-wrap:wrap; min-width:0; margin-top:14px; align-items:center; }
@media (max-width:640px){ .gq-card{ grid-template-columns:minmax(0,1fr); } }
/* public profile gallery: each photo / video opens the full-screen viewer */
.gallery-open{ position:relative; display:block; width:100%; height:100%; padding:0; border:0; background:none; cursor:zoom-in; }
.gallery-open:focus-visible{ outline:2px solid var(--ink); outline-offset:2px; }
.gallery-play{ position:absolute; inset:0; display:grid; place-items:center; color:#fff; background:linear-gradient(transparent 55%, rgba(0,0,0,.25)); pointer-events:none; }
.gallery-play svg{ width:52px; height:52px; padding:12px 10px 12px 14px; border-radius:50%; background:rgba(11,13,14,.55); }
.gallery figure:has(figcaption){ aspect-ratio:auto; overflow:visible; background:none; }
.gallery figure:has(figcaption) .gallery-open{ aspect-ratio:4 / 3; overflow:hidden; background:var(--stone); }
.gm-list .sr-only, .gm-staged .sr-only{ position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.gm-add .btn-line{ border:1px solid #c9cecd; }
.gm-add .btn-line:hover, .gm-add .btn-line:focus-within{ border-color:var(--ink); }
.field .gm-list input.gm-caption{ font-size:14px; padding:8px 10px; border:1px solid var(--line); }
/* upload progress (assets/js/uploader.js) */
.up-line{ display:block; font-variant-numeric:tabular-nums; }
.up-bar{ display:block; width:100%; max-width:420px; height:6px; margin-top:8px; appearance:none; -webkit-appearance:none; border:0; background:var(--line); }
.up-bar::-webkit-progress-bar{ background:var(--line); }
.up-bar::-webkit-progress-value{ background:var(--ink); }
.up-bar::-moz-progress-bar{ background:var(--ink); }
.gm-legacy .gm-thumb{ opacity:.6; }
.up-box .up-cancel{ display:inline-block; margin-top:10px; }
