/* White's Home Services & Lawn Care: admin panel (demo). Copied from the
   Costa Cuts admin (~/Costa Cuts/site/public/css/admin.css) with White's orange. */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/barlow-800.woff2") format("woff2"); }

:root {
  --blue: #c4520e; --blue-dark: #a8440a; --blue-deep: #8f3a08; --blue-tint: #fff1e6;
  --ink: #141414; --ink-2: #1c1c1c; --ink-3: #262626;
  --bg: #f1f4f7; --card: #fff; --text: #1a2028; --muted: #5d6a78; --line: #dfe5eb;
  --ok: #1f8a4c; --ok-tint: #e6f6ec; --warn: #b26a00; --warn-tint: #fff4e0; --err: #b3261e; --err-tint: #fdecea;
  --radius: 12px; --radius-sm: 9px; --shadow-sm: 0 2px 8px rgba(12, 22, 34, .06);
  --font: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --aside-w: 248px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg); }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; } /* a 120-character name with no spaces must not widen the page */
h1 { font-size: 1.9rem; }
h2 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--bg); padding: 2px 6px; border-radius: 5px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { display: inline-flex; width: 20px; height: 20px; vertical-align: middle; flex: none; }
.icon svg { width: 100%; height: 100%; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 34px; height: 34px; }

/* Shell */
.admin-shell { display: grid; grid-template-columns: var(--aside-w) 1fr; min-height: 100vh; }
.asidebar { background: var(--ink); color: #fff; display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
.abrand { display: flex; align-items: center; gap: 12px; color: #fff; padding: 6px 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, .1); margin-bottom: 12px; }
.abrand:hover { text-decoration: none; }
.abrand img { border-radius: 50%; }
.abrand strong { display: block; font-size: 1.05rem; }
.abrand small { color: var(--blue); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .65rem; }
.anav { display: grid; gap: 4px; }
.anav-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); color: rgba(255, 255, 255, .78); font-weight: 600; font-size: 1rem; }
.anav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.anav-link.is-active { background: var(--blue); color: #fff; }
.anav-link .badge { margin-left: auto; background: #fff; color: var(--blue-deep); font-size: .75rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.anav-link.is-active .badge { background: #fff; }
.aside-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; display: grid; gap: 4px; }
.as-button { width: 100%; background: transparent; border: 0; font: inherit; cursor: pointer; text-align: left; }
.amain { min-width: 0; }
.atopbar { display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: #fff; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.notice-pill { background: var(--warn-tint); color: var(--warn); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.atop-logout { margin: 0 0 0 auto; }
.atop-logout .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.aside-toggle { display: none; background: transparent; border: 0; color: var(--text); padding: 4px; cursor: pointer; }
.aside-toggle .icon { width: 26px; height: 26px; }
.acontent { padding: 28px; max-width: 1080px; }
.admin-wide .acontent { max-width: 1320px; }
.apage-title { margin-bottom: 20px; }
.flash { margin: 16px 28px 0; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.flash-ok { background: var(--ok-tint); color: var(--ok); }
.flash-err { background: var(--err-tint); color: var(--err); }
.flash.small { margin: 0 0 12px; font-weight: 500; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .asidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  body.aside-open .asidebar { transform: none; }
  .aside-toggle { display: inline-flex; }
  .atopbar { padding: 10px 16px; flex-wrap: wrap; }
  .notice-text { flex-basis: 100%; order: 2; }
  .atop-logout { order: 1; }
  .acontent { padding: 18px 16px; }
  .flash { margin: 12px 16px 0; }
}

/* Cards + layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.card-flush { padding: 0; overflow: hidden; }
.card-note { background: #fbfcfe; }
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; }
.card-head .muted { margin-left: auto; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.two-col-inbox { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 1000px) { .two-col, .two-col-inbox { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1240px) { .two-col-photos { grid-template-columns: minmax(0, 1fr); } }
/* Stacked (phones, narrow windows): photos first — adding pictures from the
   phone is the most common job; the details form follows. */
@media (max-width: 1240px) { .two-col-photos > section:last-child { order: -1; } }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.card { min-width: 0; overflow-wrap: break-word; }
/* Small phones: a wide table scrolls inside its card instead of the page. */
@media (max-width: 480px) { .card table { display: block; overflow-x: auto; } }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; color: inherit; box-shadow: var(--shadow-sm); }
.stat:hover { text-decoration: none; border-color: var(--blue); }
.stat strong { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--blue-deep); }
.stat span { color: var(--muted); font-weight: 600; font-size: .92rem; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.plain-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list a { color: inherit; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.check-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 0; }
.bullets { list-style: disc; padding-left: 20px; display: grid; gap: 8px; }
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; font-weight: 700; text-align: center; font-size: .92rem; }
.action:hover { text-decoration: none; border-color: var(--blue); color: var(--blue-deep); }
.action .icon { width: 26px; height: 26px; color: var(--blue); }
.crumbs { color: var(--muted); font-weight: 600; margin: -8px 0 16px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.sticky-actions { position: sticky; bottom: 0; background: linear-gradient(180deg, rgba(241, 244, 247, 0), var(--bg) 30%); padding: 16px 0 6px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons + fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius-sm); border: 1.5px solid transparent; font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.1; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn-quiet { background: transparent; color: var(--muted); }
.btn-quiet:hover { color: var(--text); }
.btn-danger-quiet { background: transparent; color: var(--err); border-color: transparent; }
.btn-danger-quiet:hover { background: var(--err-tint); }
.btn-sm { padding: 8px 12px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue-deep); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn-danger:hover { border-color: var(--err); color: var(--err); background: var(--err-tint); }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: .92rem; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); }
.field textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(219, 0, 7, .2); }
.field-inline { grid-template-columns: auto 1fr; align-items: center; gap: 10px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
.check-row { display: flex; gap: 22px; flex-wrap: wrap; }
.toggle { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: #c9d2db; position: relative; transition: background .15s; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.toggle input:checked + .switch { background: var(--blue); }
.toggle input:checked + .switch::after { transform: translateX(20px); }
.toggle input:focus-visible + .switch { box-shadow: 0 0 0 3px rgba(219, 0, 7, .35); }

/* Pills, tags, chips */
.pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--bg); color: var(--muted); white-space: nowrap; }
.pill-new, .pill-blue { background: var(--blue-tint); color: var(--blue-deep); }
.pill-drafted { background: var(--warn-tint); color: var(--warn); }
.pill-replied { background: var(--ok-tint); color: var(--ok); }
.pill-archived, .pill-muted { background: var(--bg); color: var(--muted); }
.pill-warn { background: var(--warn-tint); color: var(--warn); }
.pill-builtin { background: #f3e8ff; color: #6b21a8; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 1px 7px; border-radius: 5px; margin-left: 8px; }
.chip { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); font-size: .78rem; font-weight: 700; }
.chip-sm { font-size: .74rem; }
.chip-also { background: var(--bg); color: var(--muted); }
.chip-timeline, .chip-timing { background: var(--warn-tint); color: var(--warn); }
.chip-pricing { background: var(--ok-tint); color: var(--ok); }
.chip-size, .chip-context { background: #ece9fe; color: #4c3fb0; }
.chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }

/* Tabs + inbox */
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { text-decoration: none; color: var(--text); }
.tab.is-active { color: var(--blue-deep); border-bottom-color: var(--blue); }
.tab .count { font-size: .78rem; background: var(--bg); padding: 1px 7px; border-radius: 999px; margin-left: 2px; }
.inbox-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row:hover { background: #fafbfc; }
.inbox-new .inbox-who strong { color: var(--blue-deep); }
.inbox-main { flex: 1; min-width: 0; display: grid; gap: 3px; color: inherit; overflow-wrap: anywhere; }
.inbox-main:hover { text-decoration: none; }
.inbox-who { display: flex; align-items: center; }
.inbox-snippet { color: var(--muted); font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; white-space: nowrap; }
@media (max-width: 640px) { .inbox-row { flex-wrap: wrap; } .inbox-snippet { white-space: normal; } .inbox-meta { width: 100%; justify-content: space-between; } }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; margin: 0 0 16px; font-size: .95rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.message { margin: 0 0 18px; padding: 14px 16px; background: var(--bg); border-left: 3px solid var(--blue); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.02rem; }
.history { margin-top: 18px; }
.history summary { cursor: pointer; font-weight: 700; color: var(--muted); }
.reply-card textarea { font-size: 1rem; line-height: 1.55; }
.email-preview { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: #fbfcfd; margin-bottom: 14px; }
.email-subject { font-weight: 800; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.email-body { white-space: normal; line-height: 1.6; }
.email-preview.small { font-size: .92rem; }

/* Projects */
.project-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.project-admin-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.project-admin-card:hover { text-decoration: none; border-color: var(--blue); }
.thumb { aspect-ratio: 4 / 3; background: var(--bg); display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pac-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.photo-list { display: grid; gap: 10px; margin-top: 18px; }
.photo-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.photo-thumb { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.photo-thumb-wrap { position: relative; }
.photo-thumb-wrap.is-video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 28px; height: 28px; border-radius: 50%; background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat; }
.photo-thumb-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .75rem; color: var(--muted); border: 1px dashed var(--line); }
.photo-thumb-state.is-failed { color: #b42318; border-color: #f3b8b2; background: #fff5f4; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: currentColor; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.video-note { margin: 0; }
.upload-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.upload-bar span { display: block; height: 100%; background: currentColor; width: 0; transition: width .2s; }
.photo-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-width: 0; }
.photo-edit .field-inline { flex: 1 1 180px; min-width: 0; }
.photo-edit .segmented { flex: none; }
.photo-actions { display: flex; gap: 6px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg { padding: 7px 11px; border: 0; background: #fff; font: inherit; font-weight: 700; font-size: .85rem; color: var(--muted); cursor: pointer; }
.seg + .seg { border-left: 1px solid var(--line); }
.seg.is-active { background: var(--ink); color: #fff; }
.seg:hover:not(.is-active) { background: var(--bg); }
@media (max-width: 640px) { .photo-row { grid-template-columns: 1fr; } .photo-thumb { width: 100%; height: 160px; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.uploader { display: grid; gap: 12px; }
.drop { border: 2px dashed #c3cdd7; border-radius: var(--radius); padding: 26px 18px; text-align: center; color: var(--muted); transition: border-color .15s, background .15s; }
.drop .icon { color: var(--blue); margin-bottom: 6px; }
.drop p { margin: 0 0 4px; }
.drop.is-over { border-color: var(--blue); background: var(--blue-tint); }
.file-label { color: var(--blue-dark); font-weight: 700; cursor: pointer; text-decoration: underline; }
.file-label input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-opts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.upload-opts .field-inline { grid-template-columns: auto auto; }
.upload-opts select { width: auto; }
.upload-progress { font-size: .92rem; color: var(--muted); }
.upload-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.upload-error { margin: 0 0 8px; color: var(--err); font-weight: 600; }
.upload-preview img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.delete-project { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Services */
.service-admin-list { display: grid; gap: 8px; }
.service-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.service-row.is-off { opacity: .6; }
.service-form { display: grid; grid-template-columns: 1.1fr 1.6fr auto auto; gap: 8px; align-items: center; }
.service-form input { font: inherit; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; }
.service-form input[type="checkbox"] { width: auto; }
.service-form input:focus { outline: none; border-color: var(--blue); }
.service-add { margin-top: 12px; grid-template-columns: 1.1fr 1.6fr auto; }
@media (max-width: 760px) { .service-form, .service-add { grid-template-columns: 1fr; } .service-row { grid-template-columns: 1fr; } }

/* Settings + outbox */
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.compare th { font-weight: 800; border-top: 0; }
.compare td:first-child { font-weight: 700; white-space: nowrap; }
@media (max-width: 700px) { .compare { display: block; overflow-x: auto; } }
.mail-list li { border-bottom: 1px solid var(--line); }
.mail-list li:last-child { border-bottom: 0; }
.mail-list summary { display: grid; grid-template-columns: 200px 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; cursor: pointer; list-style: none; }
.mail-list summary::-webkit-details-marker { display: none; }
.mail-list summary:hover { background: #fafbfc; }
.mail-to { font-size: .92rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-subject { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-meta { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.mail-list .email-preview { margin: 0 18px 16px; }
@media (max-width: 760px) { .mail-list summary { grid-template-columns: 1fr; gap: 4px; } }

/* Login */
.login-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: var(--ink); }
.login-card { background: #fff; border-radius: 16px; padding: 34px 32px; width: min(420px, 100%); text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.login-logo { margin: 0 auto 14px; border-radius: 50%; }
.login-card .stack { text-align: left; margin-top: 18px; }
.login-card .flash { margin: 12px 0 0; }

/* Help page */
.help-card h2 { margin-bottom: 4px; }
.help-topic { border-top: 1px solid var(--line); }
.help-topic:first-of-type { border-top: 0; }
.help-topic summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style-position: outside; }
.help-topic[open] summary { color: var(--ok); }
.help-body { padding: 0 0 14px; line-height: 1.6; }
.help-body p, .help-body ol { margin: 0 0 10px; }
.help-body ol { padding-left: 22px; }
.help-body ul { margin: 0 0 10px; padding-left: 22px; }
.help-body li { margin-bottom: 4px; }
.help-body code { background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.help-tools { display: grid; gap: 12px; margin-bottom: 18px; }
.help-search input { width: 100%; }
.help-index { display: flex; flex-wrap: wrap; gap: 8px; }
.help-index a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .88rem; text-decoration: none; color: var(--text); }
.help-index a:hover { border-color: var(--ok); }
.help-card { scroll-margin-top: 16px; }

/* Account, passkeys, first-login password ------------------------------- */
[hidden] { display: none !important; }
.aside-user { margin: 0 0 6px; padding: 0 12px; color: rgba(255, 255, 255, .6); font-size: .85rem; }
.aside-user strong { color: #fff; }
.passkey-login { margin-top: 18px; display: grid; gap: 8px; }
.passkey-login .btn .icon { width: 20px; height: 20px; }
.login-card .passkey-login p { margin: 0; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin-top: 8px !important; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.passkey-list { list-style: none; margin: 0 0 16px; padding: 0; }
.passkey-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.passkey-row > .icon { width: 22px; height: 22px; color: var(--blue); flex: none; }
.passkey-row.is-old > .icon { color: var(--muted); }
.passkey-main { display: grid; flex: 1; min-width: 0; }
.passkey-add { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.passkey-add .field-inline { flex: 1 1 220px; }
.card-highlight { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint), var(--shadow-sm); }
.narrow-form { max-width: 420px; }
@media (max-width: 560px) {
  .passkey-row { flex-wrap: wrap; }
  .passkey-add .btn { width: 100%; }
}

/* Website Text & Photos: photo choosers */
.pick { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.hv-state { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg); }
.hv-state.hv-on { background: var(--ok-tint); color: var(--ok); }
.hv-steps { margin: 0 0 16px; padding-left: 1.3em; display: grid; gap: 4px; color: var(--muted); }
.hv-busy { display: flex; align-items: center; gap: 10px; }
#hero-video .uploader { margin-bottom: 16px; }
.pick legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; }
.pick-item { position: relative; display: grid; gap: 4px; cursor: pointer; font-size: .78rem; color: var(--muted); }
.pick-item input { position: absolute; opacity: 0; pointer-events: none; }
.pick-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; border: 3px solid transparent; background: var(--bg); }
.pick-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-item input:checked + img { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.pick-item input:focus-visible + img { outline: 2px solid var(--blue); outline-offset: 2px; }
.pick-item input:checked ~ span { color: var(--text); font-weight: 600; }
.pick-video::after { content: ""; position: absolute; top: 8px; left: 8px; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); pointer-events: none; }
.site-photo-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.site-photo-form [data-site-photo-status] { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) { .site-photo-form { grid-template-columns: minmax(0, 1fr); } }
.abrand img { width: 80px; height: auto; border-radius: 0; }
.review-form { display: grid; gap: 12px; }
.review-form .field-row { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 12px; }
@media (max-width: 640px) { .review-form .field-row { grid-template-columns: 1fr; } }
.review-form blockquote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--line); }
.review-form p { margin: 0; }
.google-pick { display: grid; gap: 8px; }
.card.is-off { opacity: .6; }

/* Ask for Reviews */
.rr-list { list-style: none; margin: 0; padding: 0; }
.rr-row { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rr-row:last-child { border-bottom: 0; }
.rr-row.is-off { opacity: .75; }
.rr-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 6px; }
.rr-name { display: flex; align-items: center; gap: 8px; }
.rr-name input { width: 11rem; max-width: 100%; font: inherit; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--text); }
.rr-name input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(219, 0, 7, .2); }
.rr-preview summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
.sms-preview { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: .92rem; background: var(--bg, #f6f6f4); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 8px 0; }

/* Service cover photos (Website Text & Photos): one row per service, previews shaped like the
   card on a computer and on a phone; fx-/fy- as in site.css, the sliders move it live (admin.js). */
.cover-row { border-top: 1px solid var(--line); padding: 10px 0; }
.cover-row summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.cover-row summary::-webkit-details-marker { display: none; }
.cover-row summary img, .cover-row summary .pick-none { width: 72px; height: 45px; flex: none; object-fit: cover; border-radius: 6px; border: 0; aspect-ratio: auto; }
.cover-row summary strong { display: block; }
.cover-row[open] summary { margin-bottom: 14px; }
.cover-row .site-photo-form { margin-bottom: 14px; }
.cover-previews { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.cover-previews[hidden] { display: none; }
.cover-previews figure { margin: 0; display: grid; gap: 4px; font-size: .78rem; color: var(--muted); }
.cover-frame { overflow: hidden; border-radius: 8px; background: var(--ink); }
.cover-wide { width: 240px; aspect-ratio: 16 / 10; }
.cover-tall { width: 112px; aspect-ratio: 3 / 4; }
.cover-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--fx, 50%) var(--fy, 50%); }
.cover-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cover-sliders input[type=range] { width: 100%; accent-color: var(--blue); }
@media (max-width: 560px) { .cover-sliders { grid-template-columns: 1fr; } }
.pick-none { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 8px; border: 3px solid transparent; background: var(--bg); color: var(--muted); }
.pick-item input:checked + .pick-none { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.pick-item input:focus-visible + .pick-none { outline: 2px solid var(--blue); outline-offset: 2px; }
.fx-0 { --fx: 0%; } .fx-5 { --fx: 5%; } .fx-10 { --fx: 10%; } .fx-15 { --fx: 15%; } .fx-20 { --fx: 20%; } .fx-25 { --fx: 25%; } .fx-30 { --fx: 30%; } .fx-35 { --fx: 35%; } .fx-40 { --fx: 40%; } .fx-45 { --fx: 45%; } .fx-50 { --fx: 50%; } .fx-55 { --fx: 55%; } .fx-60 { --fx: 60%; } .fx-65 { --fx: 65%; } .fx-70 { --fx: 70%; } .fx-75 { --fx: 75%; } .fx-80 { --fx: 80%; } .fx-85 { --fx: 85%; } .fx-90 { --fx: 90%; } .fx-95 { --fx: 95%; } .fx-100 { --fx: 100%; }
.fy-0 { --fy: 0%; } .fy-5 { --fy: 5%; } .fy-10 { --fy: 10%; } .fy-15 { --fy: 15%; } .fy-20 { --fy: 20%; } .fy-25 { --fy: 25%; } .fy-30 { --fy: 30%; } .fy-35 { --fy: 35%; } .fy-40 { --fy: 40%; } .fy-45 { --fy: 45%; } .fy-50 { --fy: 50%; } .fy-55 { --fy: 55%; } .fy-60 { --fy: 60%; } .fy-65 { --fy: 65%; } .fy-70 { --fy: 70%; } .fy-75 { --fy: 75%; } .fy-80 { --fy: 80%; } .fy-85 { --fy: 85%; } .fy-90 { --fy: 90%; } .fy-95 { --fy: 95%; } .fy-100 { --fy: 100%; }

/* Text Log (/admin/texts): one entry per text, what it was and who it went to, then the words. */
.text-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.text-log li { border-top: 1px solid var(--line); padding-top: 12px; }
.text-log li:first-child { border-top: 0; padding-top: 0; }
.text-log-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.text-log li.is-failed .sms-preview { opacity: .65; }
