/* ScheduleNow
   Palette sampled from the logo: navy #051735, blue #015EF7 (5.3:1 with white), sky #0488FA, cyan #00B1FB.
   White text only sits on the solid blue; the cyan end of the gradient is decorative. */
@font-face { font-family: Poppins; font-weight: 400; font-style: normal; font-display: swap; src: url(/fonts/poppins-400.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-style: normal; font-display: swap; src: url(/fonts/poppins-500.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-style: normal; font-display: swap; src: url(/fonts/poppins-600.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 700; font-style: normal; font-display: swap; src: url(/fonts/poppins-700.woff2) format("woff2"); }

:root {
  --navy: #051735; --brand: #015ef7; --brand-600: #0150d0; --on-brand: #fff;
  --sky: #0488fa; --cyan: #00b1fb; --brand-soft: #eaf2ff;
  --bg: #f5f8fd; --surface: #fff; --ink: #051735; --muted: #586986;
  --line: #e1e8f3; --line-strong: #c6d2e5; --off: #f2f5fa; --off-text: #b8c3d6;
  --green: #0f7a3d; --green-bg: #dcf6e6; --red: #b42318; --red-bg: #fde8e6; --amber: #9a5b00; --amber-bg: #fff3d6;
  --radius: 12px;
  --font: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.6 var(--font); }
a { color: var(--brand); text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); }
h1, h2, h3 { font-family: var(--font); color: var(--navy); }
h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: 17px; line-height: 1.35; margin: 0 0 8px; font-weight: 600; }
h3 { font-size: 16px; margin: 0 0 6px; font-weight: 600; }
p { margin: 0 0 12px; }
code { background: var(--off); padding: 2px 6px; border-radius: 6px; font-size: 13px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .center { text-align: center; } .pre { white-space: pre-wrap; }
.r { text-align: right; } .nowrap { white-space: nowrap; } .pad-top { padding-top: 24px; }
.eyebrow { color: var(--muted); font-weight: 500; font-size: 14px; margin: 0 0 6px; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--brand); }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- brand lockup ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 36px; height: 36px; display: block; }
.wordmark { font-weight: 700; font-size: 19px; letter-spacing: -.02em; color: var(--navy); line-height: 1; }
.wordmark b { font-weight: 700; color: var(--brand); background: linear-gradient(90deg, #0061f7, #00b1fb); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.logo-full { display: block; width: min(420px, 82%); height: auto; margin: 8px auto 24px; }

/* ---------- layout ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top nav { display: flex; gap: 18px; align-items: center; font-weight: 500; }
.top nav a:not(.btn) { color: var(--navy); text-decoration: none; }
.top nav a:not(.btn):hover { color: var(--brand); }
.container { max-width: 960px; margin: 0 auto; padding: 32px 20px 64px; }
.narrow { max-width: 420px; margin: 16px auto; }
.narrow-lg { max-width: 640px; margin: 0 auto; }
.wide { max-width: 860px; margin: 0 auto; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 20px 32px; line-height: 1.6; }
.foot p { margin: 0; }
.foot .foot-company { color: var(--navy); }
.foot .foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 8px; }
.foot .foot-links a { color: var(--muted); }
.foot .foot-links a:hover { color: var(--brand); }
.foot.in-app { text-align: left; margin-top: 56px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.foot.in-app .foot-links { justify-content: flex-start; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { padding: 0 6px; }
.side-biz { color: var(--muted); font-size: 13px; margin: 8px 6px 16px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; }
.side-nav a:hover { background: var(--off); color: var(--navy); }
.side-nav a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 14px; padding: 0 6px; }
.main { padding: 32px 32px 64px; max-width: 1000px; width: 100%; }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .main { padding: 20px 16px 48px; }
}

/* ---------- mobile menu: burger top-right, panel slides in from the right (mobile only) ---------- */
.burger, .mbar, .scrim, .panel-close, .mobile-only { display: none; }
@media (max-width: 800px) {
  .mbar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .top { position: sticky; top: 0; z-index: 30; padding: 10px 16px; }
  .burger { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; margin-right: -8px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; }
  .burger span { display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .22s ease, opacity .18s ease; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .burger:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

  .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(5, 23, 53, .5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  body.nav-open { overflow: hidden; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }

  /* the panel: the portal sidebar, or the header nav on public/admin pages */
  .side, .top nav.panel {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto; z-index: 50; width: min(84vw, 320px); height: auto;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 64px 14px 20px; overflow-y: auto;
    background: var(--surface); border: 0; border-left: 1px solid var(--line); box-shadow: -12px 0 32px -12px rgba(5, 23, 53, .35);
    transform: translateX(100%); visibility: hidden; transition: transform .26s ease, visibility 0s linear .26s;
  }
  body.nav-open .side, body.nav-open .top nav.panel { transform: none; visibility: visible; transition-delay: 0s; }
  .panel-close { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--navy); font-size: 30px; line-height: 1; cursor: pointer; }
  .panel-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
  .side .brand { display: none; }
  .side-biz { margin: 0 6px 12px; }
  .side-nav a { padding: 12px; }
  .top nav.panel a:not(.btn), .top nav.panel .link { display: block; padding: 12px; border-radius: 8px; text-align: left; }
  .top nav.panel a.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
  .top nav.panel .who { padding: 12px; font-size: 13px; }
  .mobile-only { display: block; }
}
@media (prefers-reduced-motion: reduce) { .burger span, .scrim, .side, .top nav.panel { transition: none; } }

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.page-head { margin-bottom: 20px; } .page-head h1 { margin: 0; }
.inline { display: inline; margin: 0; }
.inline-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; }
label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
label.toggle { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; padding: 10px 0; border-top: 1px solid var(--line); }
label.toggle input { margin-top: 5px; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input, select, textarea { font: inherit; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
input[type=file] { padding: 7px; }
input[type=color] { padding: 3px; height: 40px; width: 64px; cursor: pointer; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.inline-row input { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-left: 24px; }
.chip { flex-direction: row; } .chip input { position: absolute; opacity: 0; width: 0; }
.chip span { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-weight: 500; font-size: 13px; }
.chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }

.btn { display: inline-block; background: var(--brand); color: var(--on-brand); border: 1px solid var(--brand); padding: 10px 20px; border-radius: 10px; font: 600 15px/1.4 var(--font); text-decoration: none; cursor: pointer; text-align: center; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.btn.danger { color: var(--red); border-color: #f0b4ae; } .btn.danger:not(.ghost) { background: var(--red); color: #fff; border-color: var(--red); }
.btn.danger.ghost:hover { background: var(--red-bg); border-color: var(--red); color: var(--red); }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.large { padding: 13px 26px; font-size: 16px; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
button.link.danger { color: var(--red); }

.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; border: 1px solid var(--line); background: var(--surface); }
.flash.success { background: var(--green-bg); border-color: #9bdcb5; color: #0b4f27; }
.flash.error { background: var(--red-bg); border-color: #f0b4ae; color: #7a1b13; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--off); color: var(--muted); vertical-align: middle; }
.pill.green { background: var(--green-bg); color: var(--green); } .pill.red { background: var(--red-bg); color: var(--red); } .pill.gray { background: var(--off); color: var(--muted); }
.pill.amber { background: #fff4d6; color: #8a5a00; } .pill.blue { background: var(--brand-soft); color: var(--brand); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { margin: 0; } .stat .num { font-size: 30px; font-weight: 700; letter-spacing: -.02em; color: var(--navy); line-height: 1.2; }
input.copy { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.tabs a:not(.tab) { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.tabs a.on:not(.tab) { color: var(--brand); border-color: var(--brand); font-weight: 600; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; }
th, td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
table.hours td { vertical-align: middle; padding: 6px 12px 6px 0; border: 0; } table.hours input[type=time] { width: 130px; }
tr.dim, .dim { opacity: .55; }

dl.details { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; margin: 0 0 12px; }
dl.details dt { color: var(--muted); } dl.details dd { margin: 0; }

.service { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
a.service:hover { border-color: var(--brand); }
.service img { width: 100%; height: 150px; object-fit: cover; display: block; }
.service-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.meta { display: flex; gap: 12px; color: var(--muted); font-size: 14px; } .meta span + span::before { content: "\00b7"; margin-right: 12px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.hero-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: 8px; margin-bottom: 14px; }
img.thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; }

.slots-title { font-weight: 600; margin: 4px 0 -4px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.slots p { grid-column: 1 / -1; margin: 0; }
.slot { border: 1px solid var(--line-strong); background: #fff; border-radius: 10px; padding: 10px 6px; font: inherit; color: var(--navy); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.slot strong { font-size: 15px; font-weight: 600; } .slot span { font-size: 12px; color: var(--muted); }
.slot:hover { border-color: var(--brand); background: var(--brand-soft); }
.slot[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } .slot[aria-pressed=true] span { color: color-mix(in srgb, var(--on-brand) 80%, transparent); }
.summary { background: var(--brand-soft); border-radius: 10px; padding: 14px 16px; }
.summary div { display: flex; justify-content: space-between; } .summary .total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line-strong); margin-top: 6px; padding-top: 6px; }
.ok { color: var(--green); } .bad { color: var(--red); }
.card.cal { display: flex; flex-direction: column; gap: 8px; }
.series-list { background: var(--off); border-radius: 10px; padding: 10px 14px; margin-top: 4px; }
ul.series { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
ul.series li { display: grid; grid-template-columns: 20px 1fr auto; gap: 8px; font-size: 14px; }
ul.series .mark { font-weight: 700; } ul.series li.yes .mark { color: var(--green); } ul.series li.no { color: var(--muted); } ul.series li.no .mark { color: var(--red); }
ul.series .note { color: var(--muted); font-size: 13px; }

/* ---------- calendar picker (month grid) ---------- */
.picker { border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: #fff; user-select: none; -webkit-user-select: none; }
.picker-head { background: var(--navy); color: #fff; padding: 12px 8px 0; }
.picker-bar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; }
.picker-title { text-align: center; font-weight: 500; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; }
.picker-nav { background: none; border: 0; color: #fff; width: 48px; height: 40px; display: grid; place-items: center; border-radius: 8px; cursor: pointer; }
.picker-nav:hover { background: rgba(255, 255, 255, .12); }
.picker-nav:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.picker-nav[disabled] { visibility: hidden; }
.picker-nav svg { width: 22px; height: 22px; }
.picker-dow { display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-align: center; text-transform: uppercase; }
.picker-grid { display: grid; grid-template-columns: repeat(7, 1fr); transition: opacity .15s; }
.picker-grid[aria-busy=true] { opacity: .55; }
.day { height: 58px; display: grid; place-items: center; border: 0; background: #fff; box-shadow: inset -1px -1px 0 var(--line); color: var(--navy); font: 400 16px/1 var(--font); cursor: pointer; padding: 0; border-radius: 0; }
.day .n { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.day:hover:not(:disabled) { background: var(--brand-soft); }
.day:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; }
.day:disabled, .day.off { background: var(--off); color: var(--off-text); cursor: default; }
.day.out:disabled, .day.out.off { background: #f8fafd; color: #d3dbe8; }
.day.today .n { box-shadow: inset 0 0 0 2px var(--sky); }
.day[aria-pressed=true] .n, .day.sel .n { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.day[aria-pressed=true].today .n, .day.sel.today .n { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sky); }
.picker-note { margin: 0; padding: 10px 14px; background: var(--amber-bg); color: var(--amber); font-size: 13px; }
@media (max-width: 520px) { .day { height: 46px; font-size: 15px; } .day .n { width: 34px; height: 34px; } .picker-title { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .picker-grid, .btn { transition: none; } }

/* ---------- landing ---------- */
.landing { max-width: 1080px; margin: 0 auto; padding: 0 20px 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 56px 0 48px; }
.hero h1 { font-size: 44px; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 16px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 30em; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.demo { position: relative; pointer-events: none; }
.demo .picker { box-shadow: 0 18px 40px -18px rgba(5, 23, 53, .35); }
.demo .day { cursor: default; height: 50px; font-size: 15px; }
.demo-slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.demo-slots span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; font-weight: 500; font-size: 14px; }
.demo-slots span.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.demo-cap { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; padding: 24px 0 8px; }
.features div { border-top: 1px solid var(--line-strong); padding: 20px 0 24px; }
.features p { color: var(--muted); margin: 0; max-width: 30em; }
.embed-band { background: var(--navy); color: #fff; border-radius: 20px; padding: 40px; margin: 32px 0 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 36px; align-items: center; }
.embed-band h2 { color: #fff; font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.embed-band p { color: #c3d0e6; margin: 0; }
pre.code { margin: 0; background: #0a2350; border: 1px solid #1a3a78; color: #d9e6ff; border-radius: 12px; padding: 16px 18px; font: 13px/1.7 ui-monospace, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
pre.code .k { color: #7fd4ff; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; } .hero h1 { font-size: 34px; }
  .features { grid-template-columns: 1fr; } .embed-band { grid-template-columns: 1fr; padding: 28px 22px; }
}

/* ---------- embedded widget pages (inside an iframe on a vendor's site) ---------- */
body.embed { background: transparent; }
.embed-main { padding: 16px 16px 12px; max-width: 680px; margin: 0 auto; }
.embed .card { margin-bottom: 12px; }
.embed h1 { font-size: 22px; }
.powered { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.powered a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.powered a:hover { color: var(--brand); }
.powered img { width: 16px; height: 16px; }

/* ---------- widget settings page ---------- */
.widget-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.widget-grid .preview { position: sticky; top: 16px; }
.preview iframe { width: 100%; height: 520px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; display: block; }
textarea.snippet { font: 12.5px/1.6 ui-monospace, Menlo, Consolas, monospace; min-height: 130px; white-space: pre; overflow-x: auto; background: var(--off); }
.radio-card { flex-direction: row; align-items: flex-start; gap: 10px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; font-weight: 400; cursor: pointer; }
.radio-card input { margin-top: 5px; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 900px) { .widget-grid { grid-template-columns: 1fr; } .widget-grid .preview { position: static; } }

.booked .muted { margin-top: 20px; }
.copy-row { margin-top: 10px; }
.hexfield { display: flex; align-items: center; gap: 8px; }
.hexfield input { flex: 1; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: lowercase; }
.hexfield .swatch { flex: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); background: #015ef7; }

/* ---- team, permissions, payments ---- */
.side-who { display: block; font-size: 12px; font-weight: 400; opacity: .75; margin-top: 2px; }
fieldset.perms, fieldset.modes { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; }
fieldset legend { padding: 0 6px; font-weight: 600; font-size: 14px; }
.modes-row { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; padding: 4px 0; }
label.check input[type=radio], label.check input[type=checkbox] { width: auto; flex: none; }
label.check.perm { align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
label.check.perm:first-of-type { border-top: 0; }
label.check.perm input { margin-top: 4px; width: auto; }
label.check.perm .hint { display: block; }
.presets { margin: 0 0 6px; }
.section-title { margin: 32px 0 4px; }
section#payments h3 { margin: 0; }
section#payments h4 { margin: 0; font-size: 14px; }

/* ---- copy field (icon button inside the input) ---- */
.copyfield { position: relative; }
.copyfield input { padding-right: 52px; }
.copybtn { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.copybtn:hover { background: var(--brand-soft); color: var(--brand); }
.copybtn:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.copybtn svg { width: 20px; height: 20px; display: block; }
.copybtn .done { display: none; }
.copybtn.copied { color: var(--green); }
.copybtn.copied .idle { display: none; } .copybtn.copied .done { display: block; }
.copybtn[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); right: 0; padding: 3px 8px; border-radius: 6px; background: var(--navy); color: #fff; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.copybtn.copied[data-tip]::after { opacity: 1; }
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { margin-bottom: 4px; }
.legal h2 { margin: 32px 0 8px; font-size: 20px; }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); margin-top: 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }

/* ---- admin console ---- */
.pills { display: flex; flex-wrap: wrap; gap: 6px; max-width: 360px; }
.pills .pill, .admin-table .pill { white-space: nowrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--navy); font-size: 14px; font-weight: 500; text-decoration: none; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.on, .tab.on:hover { background: var(--brand); border-color: var(--brand); color: var(--on-brand, #fff); }
.tab .count { font-size: 12px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--off); color: var(--muted); }
.tab.on .count { background: rgba(255, 255, 255, .22); color: inherit; }
.admin-table td { vertical-align: top; }
body:has(.admin-table) .container { max-width: 1180px; }
table.hours-list td { padding: 4px 24px 4px 0; border: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; } ul.plain li { padding: 3px 0; }
