/* Your account (the account home, docs/admin-plan.md): the front door for every owner on every brand.
   The "wa-" tokens are the new Admin's look; platform/assets/css/admin.css uses the same ones. Light and dark. */
:root {
  --wa-bg: #F5F6FA; --wa-card: #FFFFFF; --wa-card-2: #F9FAFC; --wa-line: #E3E6EE; --wa-line-2: #D3D8E4;
  --wa-ink: #0E1430; --wa-ink-2: #46506E; --wa-ink-3: #737B97;
  --wa-navy: #0E1430; --wa-navy-2: #18214A; --wa-go: #FF5A1F; --wa-go-2: #E2470E; --wa-go-soft: #FFF1EA; --wa-go-ink: #B93A0B;
  --wa-ok: #12805C; --wa-ok-bg: #E5F5EE; --wa-warn: #955A00; --wa-warn-bg: #FFF4DA; --wa-bad: #B42318; --wa-bad-bg: #FDECEA;
  --wa-shadow: 0 1px 2px rgba(14,20,48,.05), 0 12px 32px -18px rgba(14,20,48,.22);
  --wa-shadow-lg: 0 2px 6px rgba(14,20,48,.06), 0 28px 60px -26px rgba(14,20,48,.38);
  --wa-solid: #0E1430; --wa-solid-2: #222C5C;
  --wa-r: 16px; --display: 'Poppins', 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wa-bg: #0A0F1E; --wa-card: #111830; --wa-solid: #3A4A8C; --wa-solid-2: #4A5BA3; --wa-card-2: #151D38; --wa-line: #232D4A; --wa-line-2: #2E3A5C;
    --wa-ink: #EEF1FA; --wa-ink-2: #B4BCD6; --wa-ink-3: #8A93B2; --wa-go-soft: #2A1A16; --wa-go-ink: #FF8A5C;
    --wa-ok: #4CC79A; --wa-ok-bg: #12291F; --wa-warn: #F2B648; --wa-warn-bg: #2C2312; --wa-bad: #FF8A80; --wa-bad-bg: #2E1517;
    --wa-shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.6); --wa-shadow-lg: 0 28px 60px -26px rgba(0,0,0,.75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --wa-bg: #0A0F1E; --wa-card: #111830; --wa-solid: #3A4A8C; --wa-solid-2: #4A5BA3; --wa-card-2: #151D38; --wa-line: #232D4A; --wa-line-2: #2E3A5C;
  --wa-ink: #EEF1FA; --wa-ink-2: #B4BCD6; --wa-ink-3: #8A93B2; --wa-go-soft: #2A1A16; --wa-go-ink: #FF8A5C;
  --wa-ok: #4CC79A; --wa-ok-bg: #12291F; --wa-warn: #F2B648; --wa-warn-bg: #2C2312; --wa-bad: #FF8A80; --wa-bad-bg: #2E1517;
  --wa-shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.6); --wa-shadow-lg: 0 28px 60px -26px rgba(0,0,0,.75);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wa-bg); color: var(--wa-ink); font: 15.5px/1.55 var(--body); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 700; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #6B7CFF; outline-offset: 2px; border-radius: 8px; }
.wa-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--wa-ink-2); }
.small { font-size: 13.5px; }
.fine { font-size: 13.5px; color: var(--wa-ink-3); }
.err { color: var(--wa-bad); font-size: 14.5px; min-height: 1.3em; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.loading { color: var(--wa-ink-2); padding: 48px 0; }

/* ---------- top bar */
.wa-top { background: var(--wa-navy); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(255,255,255,.06); }
.wa-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.wa-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.wa-brand svg { width: 28px; height: 28px; flex: none; }
.wa-brand span { display: flex; align-items: baseline; gap: 8px; font: 600 17px var(--display); white-space: nowrap; }
.wa-brand b { font-weight: 700; }
.wa-brand i { font-style: normal; font: 500 14px var(--body); color: #AEB6D8; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.2); }
.wa-top-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #C9CEEA; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; }
.wa-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: transparent; color: #DDE2F6; cursor: pointer; }
.wa-icon:hover { background: rgba(255,255,255,.08); color: #fff; }
.wa-icon svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .wa-brand i, .who span { display: none; } }

/* ---------- buttons */
.wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px; border-radius: 10px; font: 600 14.5px var(--body);
  border: 1px solid var(--wa-line-2); background: var(--wa-card); color: var(--wa-ink); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.wa-btn:hover { border-color: var(--wa-ink-3); }
.wa-btn:active { transform: translateY(1px); }
.wa-btn-go { background: var(--wa-go); border-color: var(--wa-go); color: #fff; }
.wa-btn-go:hover { background: var(--wa-go-2); border-color: var(--wa-go-2); }
.wa-btn-navy { background: var(--wa-solid); border-color: var(--wa-solid); color: #fff; }
.wa-btn-navy:hover { background: var(--wa-solid-2); border-color: var(--wa-solid-2); }
.wa-btn-quiet { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.wa-btn-quiet:hover { border-color: #fff; }
.wa-btn-sm { min-height: 32px; padding: 5px 12px; font-size: 13.5px; border-radius: 9px; }
.wa-btn[disabled] { opacity: .6; cursor: default; }
.wa-link { background: none; border: 0; padding: 0; font: inherit; color: var(--wa-go-ink); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.wa-arrow { font-weight: 600; color: var(--wa-go-ink); text-decoration: none; font-size: 14px; }
.wa-arrow:hover { text-decoration: underline; }

/* ---------- cards */
.wa-card { background: var(--wa-card); border: 1px solid var(--wa-line); border-radius: var(--wa-r); box-shadow: var(--wa-shadow); padding: 22px; }
.wa-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wa-card-head h2 { display: flex; align-items: center; gap: 10px; }
.wa-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--wa-go-soft); color: var(--wa-go-ink); flex: none; }
.wa-ico svg { width: 17px; height: 17px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--wa-card-2); color: var(--wa-ink-2); border: 1px solid var(--wa-line); white-space: nowrap; }
.pill.ok { background: var(--wa-ok-bg); color: var(--wa-ok); border-color: transparent; }
.pill.warn { background: var(--wa-warn-bg); color: var(--wa-warn); border-color: transparent; }
.pill.bad { background: var(--wa-bad-bg); color: var(--wa-bad); border-color: transparent; }
.pill.off { opacity: .75; }

/* ---------- sign in */
.signin { max-width: 500px; margin: 40px auto; display: flex; flex-direction: column; gap: 10px; padding: 30px; }
.signin form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.signin label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14.5px; }
.signin .opt { font-weight: 400; color: var(--wa-ink-3); margin-left: 4px; }
input, textarea, select { font: 16px var(--body); padding: 11px 13px; border: 1px solid var(--wa-line-2); border-radius: 10px; background: var(--wa-card); color: var(--wa-ink); width: 100%; }
input:focus, textarea:focus { outline: none; border-color: #6B7CFF; box-shadow: 0 0 0 3px rgba(107,124,255,.22); }

/* ---------- the home */
.hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 34px 0 22px; }
.hello p { margin-top: 6px; font-size: 16px; }
.needs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.needs a, .needs span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--wa-warn-bg); color: var(--wa-warn); text-decoration: none; }
.needs .calm { background: var(--wa-ok-bg); color: var(--wa-ok); }
.needs i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; padding-bottom: 50px; }
.home-main, .home-side { display: grid; gap: 22px; min-width: 0; }
@media (max-width: 980px) { .home-grid { grid-template-columns: 1fr; } }
.section-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-h h2 { font-size: 19px; }

.offer, .deal { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; font-weight: 500; font-size: 14.5px; }
.deal { background: var(--wa-ok-bg); color: var(--wa-ok); }
.offer { background: var(--wa-card); border: 1px solid var(--wa-line); margin-bottom: 14px; }
.building { display: flex; align-items: center; gap: 12px; }
.spin { width: 20px; height: 20px; border: 3px solid var(--wa-line-2); border-top-color: var(--wa-go); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* site cards */
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.site { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--wa-card); border: 1px solid var(--wa-line); border-radius: var(--wa-r); box-shadow: var(--wa-shadow); padding: 18px; transition: box-shadow .2s, transform .2s, border-color .2s; }
.site:hover { box-shadow: var(--wa-shadow-lg); transform: translateY(-2px); border-color: var(--wa-line-2); }
.site-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.site-logo { position: relative; flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--acc, var(--wa-navy)); color: #fff; font: 700 16px var(--display); overflow: hidden; }
.site-logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.site-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.site-name b { font: 600 16.5px var(--display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-name a { font-size: 13.5px; color: var(--wa-ink-3); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-name a:hover { color: var(--wa-ink); text-decoration: underline; }
.site-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.site-wait { display: grid; gap: 6px; }
.site-wait a { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--wa-warn); text-decoration: none; }
.site-wait a:hover { text-decoration: underline; }
.site-wait a i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.site-wait .calm { color: var(--wa-ok); font-weight: 500; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.site-bill { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--wa-ink-2); padding-top: 12px; border-top: 1px solid var(--wa-line); }
.site-acts { display: flex; gap: 8px; margin-top: auto; }
.site-acts .wa-btn { flex: 1; }
.site.add { border-style: dashed; box-shadow: none; background: transparent; align-items: flex-start; justify-content: center; min-height: 150px; text-decoration: none; gap: 8px; }
.site.add:hover { border-color: var(--wa-go); }
.site.add b { font: 600 16.5px var(--display); }
.site.add .plus { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--wa-go-soft); color: var(--wa-go-ink); font: 600 26px var(--body); }
.site.place .site-logo { background: #F6C343; color: #1B1B1B; }
.empty { text-align: center; padding: 44px 20px; display: grid; gap: 10px; justify-items: center; }

/* from Wizbang */
.post { position: relative; border-color: color-mix(in srgb, var(--wa-go) 40%, var(--wa-line)); background: linear-gradient(180deg, var(--wa-go-soft), var(--wa-card) 70%); }
.post-from { font-size: 12.5px; font-weight: 700; color: var(--wa-go-ink); letter-spacing: .01em; }
.post h3 { font-size: 17px; margin: 4px 0 6px; font-family: var(--display); }
.post .x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 9px; border: 0; background: transparent; color: var(--wa-ink-3); font-size: 20px; cursor: pointer; }
.post .x:hover { background: var(--wa-card-2); color: var(--wa-ink); }
.post code { font: 700 15px ui-monospace, SFMono-Regular, Menlo, monospace; padding: 5px 10px; border-radius: 8px; background: var(--wa-card); border: 1px dashed var(--wa-go); }
.news { display: grid; gap: 0; }
.news article { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--wa-line); }
.news article:first-child { border-top: 0; padding-top: 0; }
.news .when { font-size: 12.5px; color: var(--wa-ink-3); font-weight: 600; }
.news h3 { font-size: 15.5px; }
.news p { color: var(--wa-ink-2); font-size: 14.5px; }

/* side cards */
.threads { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.threads a { display: grid; gap: 1px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; }
.threads a:hover { background: var(--wa-card-2); }
.threads b { font-weight: 600; font-size: 14.5px; line-height: 1.35; }
.threads span { font-size: 12.5px; color: var(--wa-ink-3); }
.side-stat { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; color: var(--wa-ink-2); font-size: 14px; }
.side-stat b { font: 700 22px var(--display); color: var(--wa-ink); }
.help-search { display: flex; gap: 8px; margin-bottom: 12px; }
.help-search input { min-height: 40px; padding: 8px 12px; font-size: 15px; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.links a, .links button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; font: 500 14.5px var(--body); color: var(--wa-ink); background: none; border: 0; cursor: pointer; text-align: left; }
.links a:hover, .links button:hover { background: var(--wa-card-2); }
.links svg { width: 18px; height: 18px; color: var(--wa-ink-3); flex: none; }
.money-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--wa-line); font-size: 14.5px; }
.money-line:first-of-type { border-top: 0; }
.money-line b { font-weight: 600; }

/* ---------- dialog, toast, footer */
dialog.wa-dlg { width: min(520px, calc(100% - 32px)); border: 1px solid var(--wa-line); border-radius: 18px; padding: 24px; background: var(--wa-card); color: var(--wa-ink); box-shadow: var(--wa-shadow-lg); }
dialog.wa-dlg::backdrop { background: rgba(8,12,28,.55); }
dialog.wa-dlg form { display: grid; gap: 12px; }
dialog.wa-dlg label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 40px); opacity: 0; background: var(--wa-navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; transition: transform .25s, opacity .25s; z-index: 50; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.wa-foot { border-top: 1px solid var(--wa-line); padding: 18px 0; font-size: 13.5px; color: var(--wa-ink-3); }
.wa-foot .wa-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
@media (prefers-reduced-motion: reduce) { .site, .wa-btn, .toast { transition: none; } .site:hover { transform: none; } .spin { animation: none; } }
@media (max-width: 560px) { .hello .row { width: 100%; } .hello .row .wa-btn { flex: 1; } .wa-card { padding: 18px; } }

/* Wizzer's tour of the account home (startTour() in my.js) */
.wt { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.wt-shade { position: fixed; inset: 0; pointer-events: auto; background: transparent; }
.wt-shade.full { background: rgba(8, 12, 28, .5); }
.wt-ring { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(8, 12, 28, .5), 0 0 0 3px var(--wa-go); transition: all .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.wt-card { position: fixed; width: min(380px, calc(100vw - 24px)); pointer-events: auto; background: var(--wa-card); color: var(--wa-ink); border: 1px solid var(--wa-line);
  border-radius: 18px; padding: 20px 20px 16px; box-shadow: var(--wa-shadow-lg); transition: left .35s cubic-bezier(.2, .8, .2, 1), top .35s cubic-bezier(.2, .8, .2, 1); }
.wt-card.mid { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 24px)); }
.wt-card.dock { left: 12px !important; right: 12px; top: auto !important; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; transform: none; }
.wt-card h2 { font: 700 21px/1.2 var(--display); margin: 0 0 6px; }
.wt-card p { margin: 0 0 14px; color: var(--wa-ink-2); line-height: 1.5; }
.wt-guide { display: flex; align-items: center; gap: 10px; margin: -2px 40px 10px 0; font-size: 13px; color: var(--wa-ink-3); }
.wt-guide img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.wt-guide b { color: var(--wa-ink); }
.wt-x { position: absolute; right: 12px; top: 10px; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--wa-line); background: none; color: var(--wa-ink-3); font-size: 20px; cursor: pointer; }
.wt-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wt-count { font-size: 13px; color: var(--wa-ink-3); }
.wt-btns { display: flex; gap: 8px; }
.wz-mini { width: 20px; height: 20px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { .wt-ring, .wt-card { transition: none; } }

/* The web studio a site came from (Wizbang Partner Studio), inside the site's card. */
.site-studio { display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--wa-card-2); border: 1px solid var(--wa-line); }
.site-studio-id { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; }
.site-studio-id img, .site-studio-mono { width: 34px; height: 34px; border-radius: 9px; object-fit: contain; flex: none; background: #fff; }
.site-studio-mono { display: grid; place-items: center; color: #fff; font: 700 13px var(--display); background: var(--wa-navy); }
.site-studio-id > span { display: grid; min-width: 0; }
.site-studio-id b { font-size: 14.5px; }
.site-studio-show { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--wa-ink-2); cursor: pointer; }
.site-studio-show input { width: 18px; height: 18px; accent-color: var(--wa-go); }
