/* Dealer portal (Phase 9): mobile first, brand kit colours and Geist */
@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url("../fonts/Geist-Regular.ttf"); }
@font-face { font-family: Geist; font-weight: 600; font-display: swap; src: url("../fonts/Geist-SemiBold.ttf"); }
@font-face { font-family: Geist; font-weight: 700; font-display: swap; src: url("../fonts/Geist-Bold.ttf"); }

:root {
  --orange: #F97316; --orange-dark: #C2410C; --ink: #07090D; --grey: #6B7280;
  --line: #E5E7EB; --soft: #F3F4F6; --ok: #15803D; --ok-soft: #DCFCE7; --warn-soft: #FEF3C7;
  --bg: #FFFFFF;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--soft); color: var(--ink);
  font: 16px/1.5 Geist, -apple-system, "Segoe UI", Arial, sans-serif;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
a { color: var(--orange-dark); }
.top {
  background: var(--ink); color: #fff; padding: 14px 16px; padding-top: calc(14px + env(safe-area-inset-top));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.top img { height: 26px; display: block; }
.top .who { font-size: 14px; color: #D1D5DB; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 6px; letter-spacing: -0.01em; }
h2 { font-size: 19px; margin: 0 0 8px; }
.lead { color: #374151; margin: 0 0 16px; }
.muted { color: var(--grey); font-size: 14px; }
.card { background: var(--bg); border-radius: 16px; padding: 18px 16px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.flash { background: var(--ok-soft); color: #14532D; border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
.notice { background: var(--warn-soft); border-radius: 12px; padding: 10px 14px; margin: 0 0 14px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
input[type=text], input[type=url], input[type=tel], input[type=time], input[type=email], input[type=file], select, textarea {
  width: 100%; font: inherit; padding: 12px; border: 1px solid #D1D5DB; border-radius: 10px; background: #fff;
}
input[type=color] { width: 56px; height: 44px; border: 1px solid #D1D5DB; border-radius: 10px; padding: 2px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--orange); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.button, button {
  display: inline-block; width: 100%; text-align: center; background: var(--orange); color: var(--ink);
  font: 600 16px Geist, Arial, sans-serif; text-decoration: none; border: 0; border-radius: 12px;
  padding: 14px 18px; margin-top: 16px; cursor: pointer;
}
.button.secondary, button.secondary { background: var(--soft); color: var(--ink); }
.button:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.steps { list-style: none; margin: 0 0 14px; padding: 0; }
.steps li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.tick {
  width: 26px; height: 26px; border-radius: 13px; flex: none; display: grid; place-items: center;
  font-size: 14px; font-weight: 700; background: var(--soft); color: var(--grey);
}
.done .tick { background: var(--ok); color: #fff; }
.step-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge { font-size: 13px; border-radius: 999px; padding: 2px 10px; background: var(--soft); color: #374151; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: #14532D; }
.badge.wait { background: var(--warn-soft); color: #78350F; }
.templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.templates label { margin: 0; font-weight: 400; font-size: 13px; text-align: center; cursor: pointer; }
.templates img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 10px; border: 3px solid transparent; display: block; }
.templates input { position: absolute; opacity: 0; }
.templates input:checked + img { border-color: var(--orange); }
.templates input:focus-visible + img { outline: 3px solid var(--ink); }
.logo-preview { max-height: 64px; max-width: 200px; display: block; margin: 6px 0; }
.channels { list-style: none; padding: 0; margin: 8px 0 0; }
.channels li { display: flex; justify-content: space-between; padding: 6px 0; }
.video { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.video:last-child { border-bottom: 0; }
.video img { width: 72px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; background: var(--ink); flex: none; }
.video .title { font-weight: 600; }
.video .links a { margin-right: 10px; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--soft); border-radius: 12px; padding: 10px; text-align: center; }
.stat strong { display: block; font-size: 22px; }
.stat span { font-size: 13px; color: var(--grey); }
nav.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}
nav.tabs a { color: var(--grey); text-decoration: none; font-size: 13px; text-align: center; padding: 6px 10px; flex: 1; }
nav.tabs a.on { color: var(--ink); font-weight: 600; }
nav.tabs svg { width: 24px; height: 24px; display: block; margin: 0 auto 2px; }
footer { text-align: center; font-size: 13px; color: var(--grey); padding: 8px 16px 24px; }
footer a { color: var(--grey); }
