/* =========================================================
   CoffeeNCoders — dashboard.css
   Dashboard + login screens. Not loaded on the public website.
   ========================================================= */

/* Theme: <html data-theme="dark|light">, set before paint by includes/dashboard/theme-head.php.
   --espresso / --cream are fixed brand colours (same in both themes); everything else is themed. */
:root {
  color-scheme: dark;
  --espresso: #1b1411;
  --cream: #f7f2eb;
  --bg: #1b1411;
  --side-bg: #150f0c;
  --surface: #241a15;
  --surface-2: #2f231c;
  --surface-pop: #1f1713;
  --surface-glass: rgba(36, 26, 21, .92);
  --text: #f7f2eb;
  --muted: #b3a497;
  --fg-rgb: 255, 255, 255;
  --line: rgba(255, 236, 220, .1);
  --line-strong: rgba(255, 236, 220, .18);
  --field: rgba(0, 0, 0, .25);
  --sunken: rgba(0, 0, 0, .25);
  --shade: rgba(0, 0, 0, .8);
  --shade-soft: rgba(0, 0, 0, .55);
  --scrim: rgba(8, 5, 4, .6);
  --scrim-strong: rgba(8, 5, 4, .7);
  --check-a: #2a201a;
  --check-b: #3a2d25;
  --pill: rgba(0, 0, 0, .55);
  --pill-ok: rgba(14, 30, 22, .78);
  --pill-warn: rgba(40, 24, 10, .8);
  --logo-filter: invert(1);
  --switch-off: rgba(255, 255, 255, .14);
  --copper: #e2753a;
  --amber: #f4a85a;
  --green: #5fd39a;
  --red: #ff7a6b;
  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Inter", "Inter Tight", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side: 248px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f2eb;
  --side-bg: #fcfaf7;
  --surface: #fff;
  --surface-2: #fff;
  --surface-pop: #fff;
  --surface-glass: rgba(255, 255, 255, .94);
  --text: #1d1712;
  --muted: #74665b;
  --fg-rgb: 29, 23, 18;
  --line: rgba(29, 23, 18, .1);
  --line-strong: rgba(29, 23, 18, .18);
  --field: #fff;
  --sunken: rgba(29, 23, 18, .045);
  --shade: rgba(70, 45, 25, .22);
  --shade-soft: rgba(70, 45, 25, .14);
  --scrim: rgba(29, 23, 18, .35);
  --scrim-strong: rgba(29, 23, 18, .45);
  --check-a: #fff;
  --check-b: #ece5dc;
  --pill: rgba(255, 255, 255, .88);
  --pill-ok: rgba(255, 255, 255, .88);
  --pill-warn: rgba(255, 255, 255, .88);
  --logo-filter: none;
  --switch-off: rgba(29, 23, 18, .22);
  --amber: #b4610f;
  --green: #18804e;
  --red: #c63d2c;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }

/* ---------- Buttons ---------- */
.dbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14px var(--font); color: var(--text); background: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.dbtn:hover { transform: translateY(-1px); }
.dbtn--primary { background: var(--copper); color: #fff; }
.dbtn--primary:hover { background: #ef8447; }
.dbtn--ghost { border-color: var(--line-strong); background: rgba(var(--fg-rgb), .03); }
.dbtn--ghost:hover { border-color: rgba(244, 168, 90, .5); }
.dbtn--sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.dbtn--block { width: 100%; }
.dbtn--link { height: auto; padding: 0; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.dbtn--link:hover { color: var(--text); transform: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field__label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.field__optional { font-size: 11px; font-weight: 500; color: var(--muted); padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); }
.field__hint { font-size: 12px; color: var(--muted); }
.field__error { font-size: 12.5px; color: var(--red); }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  font: 400 14.5px var(--font); color: var(--text);
  background: var(--field); border: 1px solid var(--line-strong);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; line-height: 1.5; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(244, 168, 90, .18); }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field__pass { position: relative; display: block; }
.field__pass input { padding-right: 64px; }
.pass-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); font: 600 12px var(--font); cursor: pointer; padding: 6px; }
.pass-toggle:hover { color: var(--text); }
.form__actions { display: flex; gap: 12px; }
.form__reset { margin-top: 14px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; }

/* character counter next to a label */
.counter { margin-left: auto; font: 600 11.5px var(--font); color: var(--muted); }
.counter.is-good { color: var(--green); }
.counter.is-warn { color: var(--amber); }

/* ---------- Alerts (login screen) ---------- */
.alert { margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; font-size: 14px; border: 1px solid; }
.alert--error { color: var(--red); background: rgba(255, 122, 107, .08); border-color: rgba(255, 122, 107, .3); }

/* ---------- Toasts (flash messages, bottom-right; built by dashboard.js) ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  position: relative; overflow: hidden; pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; padding: 14px 12px 16px 14px;
  border-radius: 14px; background: var(--surface-pop); border: 1px solid var(--line-strong);
  box-shadow: 0 20px 44px -16px var(--shade); font-size: 14px; line-height: 1.45;
  animation: toast-in .35s var(--ease);
}
.toast.is-out { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .25s, transform .25s; }
.toast__icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.toast__icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.toast--success .toast__icon { color: var(--green); background: rgba(95, 211, 154, .14); }
.toast--error .toast__icon { color: var(--red); background: rgba(255, 122, 107, .14); }
.toast__text { margin-top: 3px; }
.toast__close { padding: 2px 6px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.toast__close:hover { color: var(--text); background: rgba(var(--fg-rgb), .06); }
.toast__bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; transform-origin: left; animation: toast-time 5s linear forwards; }
.toast--success .toast__bar { background: var(--green); }
.toast--error .toast__bar { background: var(--red); animation-duration: 8s; }
.toast:hover .toast__bar { animation-play-state: paused; }   /* hovering keeps it open */
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-time { to { transform: scaleX(0); } }

/* a form being saved in the background */
form.is-busy { opacity: .65; pointer-events: none; transition: opacity .2s; }

/* ---------- Login ---------- */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(700px 400px at 50% 110%, rgba(226, 117, 58, .35), transparent 70%), var(--bg);
}
.auth-card {
  width: 100%; max-width: 400px; padding: 34px 30px;
  border-radius: 18px; background: var(--surface-glass); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px var(--shade);
}
.auth-mark { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px; border: 1px solid var(--line); }
.auth h1 { font: 700 26px/1.2 var(--display); letter-spacing: -.03em; }
.auth-sub { margin: 6px 0 22px; font-size: 14px; color: var(--muted); }
.auth .form { margin-top: 4px; }
.auth-back { display: inline-block; margin-top: 20px; font-size: 13px; color: var(--muted); }
.auth-back:hover { color: var(--text); }

/* ---------- Layout ---------- */
.dash { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.dash-side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 24px; padding: 22px 16px;
  background: var(--side-bg); border-right: 1px solid var(--line);
}
.dash-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; border-bottom: 1px solid var(--line); }
.dash-brand img { width: 104px; height: auto; filter: var(--logo-filter); }
.dash-brand span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dash-nav { display: grid; gap: 4px; }
.dash-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s;
}
.dash-nav a svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.dash-nav a:hover { color: var(--text); background: rgba(var(--fg-rgb), .04); }
.dash-nav a.is-active { color: var(--text); background: rgba(226, 117, 58, .14); box-shadow: inset 2px 0 0 var(--copper); }
.dash-nav__count { min-width: 20px; margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; text-align: center; color: #fff; background: var(--copper); }
.dash-nav__count[hidden] { display: none; }

.dash-main { padding: 26px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.dash-top { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.dash-top h1 { font: 700 26px/1.2 var(--display); letter-spacing: -.03em; }
.dash-top__title { min-width: 0; }
.dash-crumb { display: inline-block; margin-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.dash-crumb:hover { color: var(--text); }
.dash-top__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.dash-user__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--espresso); background: linear-gradient(140deg, #f4a85a, var(--copper)); }
.dash-lead { margin-bottom: 24px; font-size: 14.5px; color: var(--muted); max-width: 640px; }
.dash-menu { display: none; position: relative; width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line-strong); background: none; cursor: pointer; }
.dash-menu span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); }
.dash-menu span:first-child { top: 15px; }
.dash-menu span:last-child { top: 21px; }

/* ---------- Profile dropdown ---------- */
.user-menu { position: relative; }
.user-menu__btn {
  display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px;
  border: 1px solid transparent; border-radius: 999px; background: none; cursor: pointer;
  font: 500 13.5px var(--font); color: var(--muted); transition: border-color .2s, background .2s, color .2s;
}
.user-menu__btn:hover, .user-menu.is-open .user-menu__btn { color: var(--text); border-color: var(--line-strong); background: rgba(var(--fg-rgb), .03); }
.user-menu__btn svg { width: 10px; height: 10px; transition: transform .25s var(--ease); }
.user-menu.is-open .user-menu__btn svg { transform: rotate(180deg); }
.user-menu__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 240px; padding: 6px;
  border-radius: 12px; background: var(--surface-pop); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 50px -18px var(--shade);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.user-menu.is-open .user-menu__list { opacity: 1; visibility: visible; transform: none; }
.user-menu__who { display: grid; gap: 2px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.user-menu__who strong { font-size: 13.5px; }
.user-menu__who span { font-size: 12px; color: var(--muted); word-break: break-all; }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 2px 4px 6px; padding: 3px; border-radius: 10px; background: var(--sunken); border: 1px solid var(--line); }
.theme-pick button {
  display: grid; justify-items: center; gap: 3px; padding: 7px 4px 6px; border: 0; border-radius: 7px; background: none; cursor: pointer;
  font: 600 11.5px var(--font); color: var(--muted); transition: background .2s, color .2s;
}
.theme-pick button:hover { color: var(--text); }
.theme-pick button[aria-checked="true"] { color: var(--text); background: var(--surface-2); box-shadow: 0 2px 8px -3px var(--shade-soft), inset 0 0 0 1px var(--line); }
.theme-pick button:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.theme-pick svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.user-menu__item {
  display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left;
  font: 500 13.5px var(--font); color: var(--text); cursor: pointer;
}
.user-menu__item:hover, .user-menu__item.is-active { background: rgba(var(--fg-rgb), .06); }
.user-menu__item--danger { color: var(--red); }
.user-menu__item--danger:hover { background: rgba(255, 122, 107, .1); }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.cards--two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card { padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.card--narrow { max-width: 640px; }
.card--gap { margin-top: 18px; }

/* Services / Work / Blog lists: the "Add" button above the table, a small screenshot beside a project's name */
.dash-actions { margin-bottom: 16px; }
.dash-thumbrow { display: flex; align-items: center; gap: 12px; }
.dash-thumb { width: 72px; height: 36px; flex: none; border-radius: 6px; object-fit: cover; object-position: top; border: 1px solid var(--line); }
.shot-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }   /* Products → gallery pictures with a Remove tick */
.shot-list__item { display: grid; gap: 6px; width: 140px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.shot-list__item img { width: 140px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--line); }
.shot-list__item span { display: inline-flex; align-items: center; gap: 6px; }

/* Tools → pick the tool's icon (radio tiles) */
.tool-icons { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.tool-icons__item { position: relative; cursor: pointer; }
.tool-icons__item input { position: absolute; opacity: 0; pointer-events: none; }
.tool-icons__item span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); border: 1px solid var(--line); background: rgba(var(--fg-rgb), .03); transition: color .2s, border-color .2s, background .2s; }
.tool-icons__item span svg { width: 22px; height: 22px; }
.tool-icons__item:hover span { color: var(--text); }
.tool-icons__item input:checked + span { color: var(--copper); border-color: var(--copper); background: rgba(226, 117, 58, .12); }
.tool-icons__item input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }

/* Site settings → Home page: pick the live home page version (two option cards) */
.ver-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.ver-pick__opt { position: relative; display: block; cursor: pointer; }
.ver-pick__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ver-pick__body {
  display: grid; gap: 6px; height: 100%; padding: 14px 16px 14px 44px; border-radius: 12px;
  background: var(--sunken); border: 1px solid var(--line); transition: border-color .2s, background-color .2s;
}
.ver-pick__body::before {   /* the radio dot */
  content: ""; position: absolute; left: 16px; top: 17px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); transition: border-color .2s, box-shadow .2s;
}
.ver-pick__opt:hover .ver-pick__body { border-color: var(--line-strong); }
.ver-pick__opt input:checked + .ver-pick__body { border-color: var(--copper); background: rgba(226, 117, 58, .08); }
.ver-pick__opt input:checked + .ver-pick__body::before { border-color: var(--copper); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 8px var(--copper); }
.ver-pick__opt input:focus-visible + .ver-pick__body { box-shadow: 0 0 0 3px rgba(244, 168, 90, .35); }
.ver-pick__name { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.ver-pick__live { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--green); background: rgba(95, 211, 154, .12); }
.ver-pick__note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.ver-pick__preview { justify-self: start; font-size: 13px; }
.card--flush { padding: 0; overflow: hidden; }
.card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 700 17px var(--display); letter-spacing: -.02em; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__head h2 { margin: 0; }
.card__note { margin: -6px 0 16px; font-size: 13px; color: var(--muted); }
.card__note--tight { margin: 10px 0 0; }
.card__note--below { margin: 14px 0 0; }
.link { color: var(--amber); white-space: nowrap; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Pages table ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { padding: 12px 18px; text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(var(--fg-rgb), .02); }
.table__title { display: block; font-weight: 600; font-size: 14.5px; }
.table__title:hover { color: var(--amber); }
.table__sub { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.table__sub--inline { display: inline; margin: 0 0 0 6px; }
.table__muted { color: var(--muted); white-space: nowrap; }
.table__actions { text-align: right; }
.inline-form { display: inline; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--green { color: var(--green); background: rgba(95, 211, 154, .12); }
.badge--muted { color: var(--muted); background: rgba(var(--fg-rgb), .06); }

/* on/off switch: <button class="switch is-on"> in the table, <label class="toggle"><input type="checkbox"> in forms */
.switch, .toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; font: 500 13.5px var(--font); color: var(--text); cursor: pointer; }
.switch { padding: 0; border: 0; background: none; }
.switch__track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--switch-off); transition: background .2s; flex-shrink: 0; }
.switch__thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch.is-on .switch__track, .toggle input:checked + .switch__track { background: var(--copper); }
.switch.is-on .switch__thumb, .toggle input:checked + .switch__track .switch__thumb { transform: translateX(16px); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle input:focus-visible + .switch__track { box-shadow: 0 0 0 3px rgba(244, 168, 90, .35); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checklist li { display: grid; grid-template-columns: 22px 130px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.checklist li:last-child { border-bottom: 0; }
.checklist span:last-child { color: var(--muted); }
.checklist__icon { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.is-ok .checklist__icon { background: rgba(95, 211, 154, .15); color: var(--green); }
.is-warn .checklist__icon { background: rgba(244, 168, 90, .15); color: var(--amber); }

.facts { margin: 0; display: grid; gap: 10px; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 10px; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; word-break: break-word; }

.logo-preview { display: grid; place-items: center; height: 90px; border-radius: 12px; background: var(--espresso); border: 1px dashed var(--line-strong); margin-bottom: 14px; }
.logo-preview img { max-width: 70%; max-height: 40px; width: auto; }
.logo-preview img.is-default, .upload__preview img.is-default { filter: invert(1); }

/* ---------- Uploads ---------- */
.upload { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.upload__preview {
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
  border-radius: 12px; background: var(--bg); border: 1px dashed var(--line-strong);
}
.upload__preview--logo { width: 240px; height: 84px; background: var(--espresso); }
.upload__preview--logo img { max-width: 80%; max-height: 40px; width: auto; }
.upload__preview--wide { width: 240px; aspect-ratio: 1200 / 630; }
.upload__preview--wide img { width: 100%; height: 100%; object-fit: cover; }
.upload__empty { font-size: 12px; color: var(--muted); }
.upload__actions { display: grid; gap: 8px; justify-items: start; }
.upload__pick { position: relative; overflow: hidden; }
.upload__pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* ---------- SEO page ---------- */
.seo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.seo-fields { display: grid; gap: 18px; }
.seo-fields .card { display: grid; gap: 16px; }
.seo-fields .card h2 { margin-bottom: 0; }
.seo-fields .card__note { margin: -8px 0 0; }
.seo-side { position: sticky; top: 24px; display: grid; gap: 14px; }
.serp__box { padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: #202124; font-family: Arial, sans-serif; display: grid; gap: 4px; }
.serp__url { font-size: 12.5px; color: #4d5156; }
.serp__title { font-size: 19px; line-height: 1.3; color: #1a0dab; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.serp__desc { font-size: 13.5px; line-height: 1.5; color: #4d5156; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .seo-grid { grid-template-columns: 1fr; }
  .seo-side { position: static; }
}
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side {
    position: fixed; inset: 0 auto 0 0; width: min(280px, 85vw); z-index: 50;
    transform: translateX(-100%); transition: transform .35s var(--ease);
  }
  .dash.menu-open .dash-side { transform: none; box-shadow: 20px 0 60px var(--shade-soft); }
  .dash-menu { display: block; }
  .user-menu__name { display: none; }
  .dash-top__actions .dbtn span { display: none; }
  .dash-top h1 { font-size: 22px; }
}
@media (max-width: 560px) {
  .toasts { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .field-row { grid-template-columns: 1fr; }
  .checklist li { grid-template-columns: 22px 1fr; }
  .checklist li span:last-child { grid-column: 2; }
  .upload__preview--logo, .upload__preview--wide { width: 100%; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
}
