/* Website view and the shared Plan and billing card (website-hub.mjs).
   Every rule hangs off .wh or .wh-billing so nothing leaks into other views.
   Uses the dashboard tokens from index.html: --ink, --line, --white, --green, --amber, --red. */
.wh{display:grid;gap:18px;min-width:0}
.wh [hidden],.wh-billing[hidden]{display:none!important}
.wh .vhead{margin-bottom:0}
.wh-head{align-items:flex-end}
.wh-head h2{margin:0}
.wh-sub{margin:2px 0 0;color:#5a6876;font-size:.9rem;overflow-wrap:anywhere}
.wh-head-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.wh-studio{white-space:nowrap}
.wh-muted{color:#5a6876;font-size:.86rem;line-height:1.5;margin:0;max-width:68ch;overflow-wrap:anywhere}
.wh-error{color:#b03a3a;font-size:.86rem;line-height:1.45;margin:0;overflow-wrap:anywhere}
.wh-status{margin:0;font-size:.86rem;line-height:1.45;color:#36475a;min-height:0;overflow-wrap:anywhere}
.wh-status:empty{display:none}
.wh-notice{padding:10px 14px;border-radius:10px;background:#f6f4ee;border:1px solid var(--line)}
.wh-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86em;overflow-wrap:anywhere}
.wh-num{font-variant-numeric:tabular-nums}
.wh-offscreen{position:fixed;left:-9999px;top:0;opacity:0}

/* Status pills: semantic colours, never the tenant brand (see .b-appr in index.html). */
.wh-pill{display:inline-flex;align-items:center;gap:5px;font-size:.72rem;font-weight:800;letter-spacing:.02em;padding:4px 10px;border-radius:100px;white-space:nowrap;line-height:1.2;background:#eef1f4;color:#3f4f60}
.wh-pill.is-live{background:rgba(31,157,107,.13);color:#17734f}
.wh-pill.is-live::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.wh-pill.is-pending{background:rgba(217,138,31,.15);color:#8a5410}
.wh-pill.is-failed{background:rgba(214,85,85,.13);color:#a33636}
.wh-pill.is-pro{background:#0d1f2e;color:#f3efe6}
.wh-pill.is-custom{background:#e7eef7;color:#1f3d63}
.wh-head-meta .wh-pill.is-neutral{background:var(--white);border:1px solid rgba(8,20,31,.14)}

/* Live status strip */
.wh-live{padding:16px 20px;display:grid;gap:12px}
.wh-live-main{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.wh-url{font-family:'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:700;font-size:1.15rem;color:var(--ink);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--ink) 25%,transparent);text-underline-offset:.22em;overflow-wrap:anywhere;min-width:0}
@media (hover:hover){.wh-url:hover{text-decoration-color:currentColor}}
.wh-live-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}
.wh-live-facts{display:flex;flex-wrap:wrap;gap:6px 22px;margin:0;font-size:.84rem;padding-top:12px;border-top:1px solid var(--line)}
.wh-fact{display:inline-flex;align-items:baseline;gap:6px;min-width:0;max-width:100%}
.wh-live-facts dt,.wh-live-facts dd{margin:0}
.wh-live-facts dt{color:#6a7886;font-weight:600;white-space:nowrap}
.wh-live-facts dt::after{content:":"}
.wh-live-facts dd{font-weight:700;overflow-wrap:anywhere}

/* Two-column workspace */
.wh-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:start}
.wh-col{display:grid;gap:18px;min-width:0}
@media (max-width:1100px){.wh-grid{grid-template-columns:minmax(0,1fr)}}
.wh-panel .ph{gap:10px;flex-wrap:wrap}
.wh-body{padding:18px 20px;display:grid;gap:14px;min-width:0}
.wh-subhead{font-size:.95rem;margin:6px 0 0}
.wh-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.wh-inline{display:flex;gap:8px;flex-wrap:wrap}
.wh-inline .inp{flex:1 1 14rem;min-width:0}

/* Lists */
.wh-list{list-style:none;margin:0;padding:0;display:grid}
.wh-list>li+li{border-top:1px solid var(--line)}
.wh-row{display:flex;align-items:center;gap:12px;padding:11px 0;flex-wrap:wrap;min-width:0}
.wh-row-main{display:grid;gap:2px;flex:1 1 12rem;min-width:0;overflow-wrap:anywhere}
.wh-row-main b{font-size:.94rem}
.wh-row-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.wh-domain{padding-bottom:12px;display:grid;gap:10px}
.wh-domain .wh-row{padding-bottom:0}

/* Choice groups (templates, presets) */
.wh-fieldset{border:0;margin:0;padding:0;display:grid;gap:10px;min-width:0}
.wh-fieldset legend{font-weight:800;font-size:.95rem;padding:0;margin-bottom:6px;font-family:'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.wh-choices{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,13.5rem),1fr));gap:8px}
.wh-choice{display:flex;gap:10px;align-items:flex-start;padding:11px 12px;border:1px solid rgba(8,20,31,.14);border-radius:12px;cursor:pointer;background:var(--white);min-width:0;transition:border-color .15s,background-color .15s}
.wh-choice input{margin-top:3px;flex:none;width:18px;height:18px;accent-color:var(--ink)}
.wh-choice-text{display:grid;gap:2px;min-width:0}
.wh-choice-text b{display:flex;gap:6px;align-items:center;flex-wrap:wrap;font-size:.92rem}
.wh-choice:has(input:checked){border-color:var(--ink);background:#f6f4ee;box-shadow:inset 0 0 0 1px var(--ink)}
.wh-choice:has(input:focus-visible){outline:3px solid #2277aa;outline-offset:2px}
.wh-choice:has(input:disabled){cursor:not-allowed}
.wh-choice.is-locked{background:#f7f8f9}
.wh-choice.is-locked .wh-choice-text>.wh-muted{color:#6a7886}
@media (hover:hover){.wh-choice:not(:has(input:disabled)):hover{border-color:var(--ink)}}

/* Address claim */
.wh-slug{display:flex;gap:8px;flex-wrap:wrap;align-items:stretch}
.wh-slug-field{display:flex;flex:1 1 16rem;min-width:0;border:1px solid rgba(8,20,31,.16);border-radius:10px;background:var(--white);overflow:hidden}
.wh-slug-field:focus-within{outline:3px solid #2277aa;outline-offset:2px}
.wh .wh-slug-input{border:0;border-radius:0;flex:1;min-width:0;font-size:16px;outline:none}
.wh-slug-suffix{display:flex;align-items:center;padding:0 12px;background:#f6f4ee;color:#5a6876;font-weight:700;font-size:.9rem;border-left:1px solid var(--line);white-space:nowrap}
.wh-slug-status{margin:0;font-size:.88rem;font-weight:700;min-height:1.3em;overflow-wrap:anywhere}
.wh-slug-status[data-tone="good"]{color:#17734f}
.wh-slug-status[data-tone="bad"]{color:#a33636}
.wh-slug-status[data-tone="wait"]{color:#5a6876;font-weight:600}
.wh-launch-form{display:grid;gap:22px}

/* DNS records: one block per record (type, then Name and Value rows), so long
   hostnames and tokens get the full width instead of a narrow table column. */
.wh-dns{display:grid;border:1px solid var(--line);border-radius:12px;overflow:hidden;font-size:.84rem}
.wh-dns-head{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.wh-dns-row{display:grid;grid-template-columns:4rem minmax(0,1fr);gap:8px 12px;padding:10px 12px;align-items:center}
.wh-dns-row+.wh-dns-row{border-top:1px solid var(--line)}
.wh-dns-row>span:first-child{grid-row:span 2;align-self:start;padding-top:5px;font-weight:800}
.wh-dns-cell{display:flex;gap:8px;align-items:center;min-width:0}
.wh-dns-cell::before{content:attr(data-label);flex:0 0 3.1rem;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#6a7886}
.wh-dns-cell code,.wh-copyfield code{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;font-size:.82rem;background:#f6f4ee;padding:4px 7px;border-radius:6px}
@media (max-width:420px){
  .wh-dns-row{grid-template-columns:minmax(0,1fr)}
  .wh-dns-row>span:first-child{grid-row:auto;padding-top:0}
  .wh-dns-cell{flex-wrap:wrap}
  .wh-dns-cell::before{flex-basis:100%}
}
.wh-copyfield{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.wh-steps{margin:0;padding-left:1.25rem;display:grid;gap:6px;font-size:.88rem;line-height:1.5;color:#36475a}

/* Plan card (Website view and Settings) */
.wh-billing{display:grid;gap:10px}
.wh-plan-title{font-family:'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:1.1rem;margin:0}
.wh-plan-name{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-family:'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-weight:800;font-size:1.6rem;line-height:1.1}
.wh-limits{display:grid;grid-template-columns:minmax(7rem,auto) 1fr;gap:6px 14px;margin:0;font-size:.88rem}
.wh-limits dt{color:#5a6876;margin:0}
.wh-limits dd{margin:0;font-weight:700;font-variant-numeric:tabular-nums}
#billingPlanCard .wh-plan-name{font-size:1.25rem}
#billingPlanCard .wh-limits{max-width:28rem}
#billingPlanCard{line-height:1.4}

/* Agency-factory concierge card, subtle design help strip, and owner disclosures */
.wh-concierge{background:linear-gradient(180deg,#f6f4ee 0%,var(--white) 100%);border-color:rgba(8,20,31,.16)}
.wh-concierge .ph{background:transparent}
.wh-help-strip{padding-top:12px;border-top:1px solid var(--line)}
.wh-inline-link{color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:3px}
@media (hover:hover){.wh-inline-link:hover{opacity:.8}}
.wh-disclosure > .wh-summary{border-bottom:0;cursor:pointer;list-style:none;flex-wrap:nowrap;gap:12px;user-select:none}
.wh-disclosure > .wh-summary::-webkit-details-marker{display:none}
.wh-disclosure[open] > .wh-summary{border-bottom:1px solid var(--line)}
.wh-disclosure > .wh-summary:focus-visible{outline:3px solid #2277aa;outline-offset:-3px;border-radius:16px}
.wh-summary-main{display:flex;align-items:baseline;justify-content:space-between;gap:6px 14px;flex:1 1 auto;min-width:0;flex-wrap:wrap}
.wh-summary-meta{font-weight:600}
.wh-summary-toggle{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;color:#5a6876;flex:0 0 auto;transition:transform .16s,color .16s}
.wh-summary-toggle svg{width:18px;height:18px;fill:currentColor}
.wh-disclosure[open] > .wh-summary .wh-summary-toggle{transform:rotate(180deg);color:var(--ink)}

/* Loading skeleton */
.wh-skeleton{display:grid;gap:12px}
.wh-skeleton div{height:64px;border-radius:14px;background:linear-gradient(90deg,#e7ebe8,#f1f3f1,#e7ebe8);background-size:200% 100%;animation:wh-shimmer 1.2s linear infinite}
.wh-skeleton div:first-child{height:84px}
@keyframes wh-shimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.wh-skeleton div{animation:none}.wh-choice,.wh-summary-toggle{transition:none}}

@media (max-width:640px){
  .wh-live{padding:14px 16px}
  .wh-body{padding:16px}
  .wh-live-actions{margin-left:0}
  .wh-url{font-size:1.02rem;flex-basis:100%}
  .wh-head{align-items:flex-start}
}

/* Segmented tabs (Overview | Analytics) */
.wh-tabs{display:inline-flex;align-items:center;gap:4px;padding:4px;border-radius:12px;background:var(--white);border:1px solid var(--line);width:fit-content;max-width:100%}
.wh-tab{appearance:none;border:0;background:transparent;color:#5a6876;font:inherit;font-size:.9rem;font-weight:700;min-height:40px;padding:8px 16px;border-radius:9px;cursor:pointer}
.wh-tab[aria-selected="true"]{background:var(--ink);color:var(--white)}
.wh-tab:focus-visible{outline:2px solid var(--aqua-deep,#183bd1);outline-offset:2px}
.wh-tabpanel{min-width:0}
@media (hover:hover){.wh-tab:not([aria-selected="true"]):hover{color:var(--ink);background:#f4f6fa}}

/* Bespoke Tier 2 live page slots */
.wh-slots{display:grid;gap:14px;min-width:0}
.wh-slot-item{display:grid;gap:7px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#faf9f6;min-width:0}
.wh-slot-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.wh-slot-label{margin:0;flex:1 1 10rem;min-width:0;font-weight:700}
.wh-slot-input{width:100%;min-width:0;font-size:16px;box-sizing:border-box}
.wh-slot-hide{display:inline-flex;align-items:center;gap:8px;font-size:.86rem;font-weight:600;color:#36475a;cursor:pointer;min-height:36px}
.wh-slot-hide input{width:18px;height:18px;accent-color:var(--ink)}
