/* The Websites app (Docs/Systems/WebBuilder.md, The Websites app): the list of sites, and a site as layout A
   (the column beside the page). The draft is the client's own page in a frame: it keeps its
   own look in dark. */

/* the top bar in a website: its state, then its name under the Websites crumb */
.slot .pill + h1 { flex: 0 1 auto; min-width: 0; }

/* --- Websites: one row per client, grouped by what it needs ---------------------------------------------------- */
.sites .ph { align-items: flex-start; } .sites .ph p { max-width: 560px; }
.sites .search { margin: 0; width: 260px; }
/* the route for new forms (websites.js, routeHtml): one line, unfolded by an owner into the two routes and the confirm */
.broute { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); overflow: hidden; }
.broute .rhd { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.broute .rhd p { margin: 0; flex: 1; min-width: 0; font-size: 13px; } .broute .rhd p b { color: var(--head); font-size: 14px; }
.broute .rhd small { display: block; color: var(--text3); font-size: 12px; margin-top: 2px; }
.broute .turn { width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--t-fast); } .broute [aria-expanded="true"] .turn { transform: rotate(-90deg); }
.broute .ropts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px 14px; }
.broute .ropt { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 4px; text-align: left; background: var(--bg); color: var(--text); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.broute .ropt:hover:not(.on) { border-color: var(--line2); }
.broute .ropt b { color: var(--head); font-size: 13.5px; display: flex; align-items: center; gap: 8px; } .broute .ropt small { color: var(--text3); font-size: 12px; line-height: 1.45; }
.broute .ropt.on { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); cursor: default; }
.broute .ropt.to { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 18%, transparent); }
.broute .rask { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 10px; align-items: center; background: var(--chip); }
.broute .rask p { margin: 0; flex: 1; font-size: 13px; color: var(--text2); } .broute .rask p b { color: var(--head); }
.broute .btn.go { background: var(--blue); border-color: var(--blue); color: var(--bg); } .broute .btn.go:hover:not(:disabled) { background: color-mix(in srgb, var(--blue) 85%, #000); }
@media (max-width: 700px) { .broute .ropts { grid-template-columns: 1fr; } .broute .rask { flex-wrap: wrap; justify-content: flex-end; } .broute .rask p { flex-basis: 100%; } }
.filt { margin-top: 22px; } .filt + .empty { margin-top: 22px; } .filt button { height: 28px; padding: 0 12px; font-size: 13px; } .filt b { font-weight: 600; color: var(--text3); margin-left: 3px; }
.sites .label { padding: 24px 2px 10px; text-transform: uppercase; }
.sites .ph-act { display: flex; align-items: center; gap: 10px; } .sites .ph-act .btn svg.i { width: 15px; height: 15px; }
/* the sites as cards, the Studio mock's grid: a drawing of the site, then its name and state, domain, kind, place and package */
.sites .sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; border: 0; background: none; border-radius: 0; overflow: visible; }
.sites .filt + .sgrid, .sites .filt + .empty { margin-top: 24px; }
.scard, .sites .sgrid > .tr.scard { display: flex; flex-direction: column; align-items: stretch; padding: 0; gap: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); overflow: hidden; color: var(--text); text-decoration: none;
  transition: border-color var(--t-fast), transform var(--t-fast); }
.sites a.scard:hover { border-color: var(--line2); background: var(--raise); transform: translateY(-2px); }
.sprev { display: flex; flex-direction: column; gap: 6px; height: 170px; padding: 14px; background: color-mix(in srgb, var(--b) 7%, var(--bg)); border-bottom: 1px solid var(--line); }
.sp-bar { display: flex; justify-content: space-between; align-items: center; height: 14px; padding: 0 8px; border-radius: 3px; background: #fff; }
.sp-bar i { display: block; width: 34px; height: 5px; border-radius: 2px; background: #1b1e24; } .sp-bar i + i { width: 30px; height: 6px; background: var(--b); }
.sp-hero { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px; border-top: 4px solid var(--b); border-radius: 3px; background: color-mix(in srgb, var(--b) 24%, #1d2027); min-height: 0; }
.sp-copy { flex: 1; display: grid; gap: 6px; min-width: 0; }
.sp-copy b { color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sp-copy i { display: block; height: 5px; width: 80%; border-radius: 2px; background: rgba(255,255,255,.55); } .sp-copy i + i { width: 46px; height: 9px; border-radius: 4px; background: var(--b); }
.sp-card { flex: none; width: 34%; align-self: stretch; border-radius: 3px; background: #fff; }
.sprev.none { align-items: center; justify-content: center; gap: 8px; color: var(--text3); background: var(--bg); } .sprev.none svg.i { width: 26px; height: 26px; }
.sbody, .sites .scard .sname { display: grid; gap: 6px; padding: 16px 18px 16px; min-width: 0; align-items: start; }
.shd { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.shd b { font-size: 15px; font-weight: 600; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scard .sdom { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.scard .sdom.warn { color: var(--warn); } .scard .sdom.off { color: var(--text3); }
.smeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--text2); }
.swhy { font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill.tpl { --tc: #3d4fc9; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); }
:root[data-theme="dark"] .pill.tpl { --tc: #8b8cf8; background: rgba(99,102,241,.16); }
.tcard.gone .sbody { opacity: .8; }
/* a site's package: Base in the line's own ink, another package in the Roster's hue for it */
.spkg { font-weight: 600; } .spkg.up { color: #9a2fa3; } :root[data-theme="dark"] .spkg.up { color: #d46ad8; }
/* the card that starts a new site */
.newcard { display: grid; place-content: center; justify-items: center; gap: 6px; min-height: 280px; padding: 20px; border: 1px dashed var(--line2); border-radius: 14px; color: var(--text2); text-decoration: none; text-align: center; transition: border-color var(--t-fast), background var(--t-fast); }
.newcard:hover { border-color: var(--text3); background: var(--hover); }
.nc-plus { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 50%; border: 1px solid var(--line2); color: var(--head); } .nc-plus svg.i { width: 18px; height: 18px; }
.newcard b { color: var(--head); font-size: 15px; } .newcard small { font-size: 13px; color: var(--text3); }
@media (max-width: 700px) { .sites .sgrid { grid-template-columns: 1fr; } .sites .ph-act { flex-wrap: wrap; } .sites .search { width: auto; flex: 1 1 200px; } .newcard { min-height: 160px; } }
/* "Changed by a CSM": one row per change */
.sites .bycsm .tr { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1.2fr) 150px 14px; gap: 18px; padding: 11px 16px; color: var(--text); text-decoration: none; transition: background var(--t-fast); }
.sites .bycsm .tr:hover { background: var(--hover); }
.bycsm .sname { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bycsm .sname > span { display: grid; min-width: 0; }
.bycsm .sname b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bycsm .sname small { color: var(--text3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sstat { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.sstat small { max-width: 100%; font-size: 12px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bycsm .sdom { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--text2); }
.slast { font-size: 12.5px; color: var(--text3); text-align: right; }
.sites .bycsm .tr > svg.go { width: 14px; height: 14px; color: var(--text3); }

/* --- a website: the column beside the page --------------------------------------------------------------------- */
.main:has(.wb)::before { display: none; }  /* no mark behind a page being edited */
.wb { display: grid; grid-template-columns: 380px minmax(0, 1fr); min-width: 0; min-height: 0; position: relative; }
.wcol { display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; border-right: 1px solid var(--line); background: var(--bg); }
.wpane, .wchat { display: grid; grid-template-rows: minmax(0, 1fr); min-width: 0; min-height: 0; position: relative; }
.wpane[hidden], .wchat[hidden] { display: none; }
.slot .seg svg.i { width: 15px; height: 15px; }

/* the chat: the panel's conversation, held to the column; the composer under it */
.wchat { display: flex; flex-direction: column; } .wchat .chat { flex: 1; min-height: 0; }
.wchat .callouts { padding: 0 14px; } .wchat .callouts:empty { display: none; } .wchat .callout { margin-top: 12px; grid-template-columns: 20px minmax(0, 1fr); }
.wchat .chat { padding: 20px 18px; font-size: 14px; }
.wchat .chat .col { max-width: none; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.wchat .composer { padding: 6px 14px 14px; } .wchat .composer .box { max-width: none; }
.wchat .composer textarea { max-height: 40vh; }
.wchat .latest { position: absolute; left: 50%; bottom: 128px; transform: translateX(-50%); }
.wchat .empty.hello { margin-top: 12vh; }
.box .bar2 .btn { height: 28px; font-size: 12.5px; }
.box .bar2 .clip { width: 30px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--text2); }
.box .bar2 .clip:hover { background: var(--hover); color: var(--text); } .box .bar2 .clip svg.i { width: 17px; height: 17px; }
.chips { flex-wrap: wrap; } .chipx { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
/* under the newest change of hours while Google still shows other hours (websites.js, siteHoursHint) */
.ghint { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; line-height: 1.45; }
.ghint svg.i { width: 14px; height: 14px; flex: none; margin-top: 2px; } .ghint a { white-space: nowrap; }
.point[aria-pressed="true"], .chg .btn[aria-pressed="true"] { background: var(--sel); border-color: transparent; color: var(--head); font-weight: 600; }
/* one change as one card: its checks' result, where on the page it changed, and View change and Undo */
.chg { display: grid; gap: 8px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 13px; line-height: 1.4; color: var(--text2); }
.chg .res { display: flex; align-items: flex-start; gap: 7px; margin: 0; color: var(--ok); font-weight: 500; overflow-wrap: anywhere; }
.chg .res svg.i { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.chg.warn .res { color: var(--warn); } .chg.off .res { color: var(--text3); }
.chg.bad { border-color: color-mix(in srgb, var(--bad) 30%, var(--line)); background: var(--bad-bg); } .chg.bad .res { color: var(--bad); font-weight: 600; }
.chg .where { padding: 0; border: 0; background: none; font: 12px/1.5 var(--mono); color: var(--text3); overflow-wrap: anywhere; }
.chg .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.chg .btn { height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 600; } .chg .btn svg.i { width: 13px; height: 13px; }
/* a change nobody's words tell (a Content save, a restore) names itself; under Clutchy's words the words do */
.chg .what { display: none; }
.wchg { padding: 0 14px; } .wchg .chg { margin-top: 0; }
.wchg .chg .what { display: grid; gap: 1px; color: var(--text); } .wchg .what b { font-weight: 600; } .wchg .what small { font-size: 12px; color: var(--text3); }
/* the ask box: what is pointed at rides above the words */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; } .chips[hidden] { display: none; }
.chipx { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 3px 0 9px; border-radius: 7px; background: var(--sel); color: var(--head); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chipx svg.i { width: 13px; height: 13px; }
.chipx button { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: var(--text3); } .chipx button:hover { background: var(--hover); color: var(--text); }
.chipx.said { display: flex; width: max-content; max-width: 100%; margin: 0 0 6px; padding-right: 9px; }
.pvframe.pointing { box-shadow: inset 0 0 0 2px var(--blue); }
.bycsm + .hint { margin-top: 10px; }

.whead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .whead small { font-size: 12px; color: var(--text3); }
.hint { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text3); }
.hint svg.i { width: 14px; height: 14px; flex: none; margin-top: 1px; }

/* the preview: what the page is shown as, which page, and the draft's state with Publish */
.pv { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; position: relative; background: var(--side); container: pv / inline-size; }
.pvbar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; min-width: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.pvbar .seg button { height: 26px; padding: 0 8px; } .pvbar .seg svg.i { width: 15px; height: 15px; }
.pvbar .pick select { max-width: 220px; text-overflow: ellipsis; }
.pvbar .grow { flex: 1; }
/* what acts on the whole site: History, the draft's link, the live site. With less room they keep their icons */
@container pv (max-width: 940px) { .pvbar .tool { padding: 0 6px; } .pvbar .tool span { display: none; } }
.draft { display: inline-flex; align-items: center; gap: 7px; margin-right: 4px; font-size: 12.5px; color: var(--text2); white-space: nowrap; }
.primary.sm { height: 32px; padding: 0 14px; font-size: 13px; } .primary.sm svg.i { width: 15px; height: 15px; stroke-width: 2; }
.primary.sm:disabled { opacity: .45; cursor: not-allowed; }
.pvframe { position: relative; overflow: hidden; min-height: 0; }
.pvframe iframe { display: block; border: 0; background: #fff; }
.pvframe.phone { display: grid; justify-content: center; align-content: start; padding: 18px 0 28px; overflow: auto; }
.pvframe.phone iframe { width: 390px; border: 8px solid #10131a; border-radius: 30px; box-shadow: var(--shadow); box-sizing: content-box; }
.wdraw { position: absolute; top: 49px; right: 0; bottom: 0; width: 380px; z-index: 5; overflow: auto; background: var(--panel); border-left: 1px solid var(--line); box-shadow: var(--shadow); }
/* Publish held by a failing check: the checks, and the one confirm */
.wpub { position: absolute; top: 52px; right: 12px; z-index: 6; width: min(420px, calc(100% - 24px)); display: grid; gap: 10px; padding: 14px; border: 1px solid color-mix(in srgb, var(--bad) 35%, var(--line)); border-radius: 14px; background: var(--raise); box-shadow: var(--shadow); font-size: 13px; }
.wpub b { color: var(--head); font-weight: 600; }
.wpub ul { margin: 0; padding-left: 18px; color: var(--text2); } .wpub li small { display: block; color: var(--text3); overflow-wrap: anywhere; }
.wpub .acts { display: flex; justify-content: flex-end; gap: 8px; }

/* Content: the fields without Clutchy, in the whole room: its sections with their counts on the left, the form beside
   them. The same entry feeds every place on the site that shows it */
.wct[hidden], .wcode[hidden] { display: none; }
.wct { min-width: 0; min-height: 0; }
.ctwrap { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100%; }
.ctnav { display: grid; align-content: start; gap: 2px; padding: 22px 12px; border-right: 1px solid var(--line); background: var(--side); }
.ctnav h3, .ctree h3 { margin: 0 12px 10px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text3); }
.ctnav button { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; color: var(--text2); text-align: left; transition: background var(--t-fast), color var(--t-fast); }
.ctnav button:hover { background: var(--hover); color: var(--text); }
.ctnav button[aria-current="true"] { background: var(--sel); color: var(--head); font-weight: 600; }
.ctnav small { font-size: 12px; font-weight: 500; color: var(--text3); font-variant-numeric: tabular-nums; }
.wdet { display: grid; gap: 18px; align-content: start; grid-template-columns: minmax(0, 1fr); grid-auto-rows: max-content; }
.ctform { padding: 30px 40px 48px; max-width: 880px; }
.cthead { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.cthead h1 { margin: 0; font: 700 28px/1.2 var(--display); letter-spacing: -.01em; color: var(--head); }
.cthead p:not(.saved) { margin: 6px 0 0; max-width: 660px; font-size: 13.5px; line-height: 1.5; color: var(--text2); }
.cthead .saved { flex: none; margin-top: 10px; }
.ctform .wf { gap: 16px 20px; } .ctform .wf input { height: 42px; }
.wf.rows fieldset { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: start; gap: 12px; }
.wf.areas { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wf.areas fieldset { grid-template-columns: minmax(0, 1fr) 84px; gap: 12px; }
.wf fieldset legend { font-family: var(--mono); font-weight: 500; overflow-wrap: anywhere; }
.wf label.ro input { background: var(--panel); color: var(--text2); font: 13px var(--mono); }
.ctform .hr { grid-template-columns: minmax(0, 1fr) 150px 150px 28px; gap: 12px; padding: 10px 18px; } .ctform .hr input { height: 38px; padding: 0 10px; }
.ctform .hh { padding: 14px 18px; }
.noai { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; padding: 13px 16px; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-size: 13.5px; line-height: 1.45; }
.noai svg.i { width: 16px; height: 16px; flex: none; } .noai b { font-weight: 600; }
.wsteps .sub { margin: -6px 0 0; font-size: 12.5px; color: var(--text3); }

/* Code: the site's draft files, read only: the tree on the left, one file's text beside it */
.wcode { display: grid; grid-template-columns: 290px minmax(0, 1fr); min-width: 0; min-height: 0; }
.ctree { overflow: auto; padding: 22px 10px; border-right: 1px solid var(--line); background: var(--side); font-size: 13px; }
.ctree h3 small { margin-left: 6px; letter-spacing: 0; }
.ctree details > div { margin-left: 15px; padding-left: 6px; border-left: 1px solid var(--line); }
.ctree summary, .ctree button { display: flex; align-items: center; gap: 7px; width: 100%; height: 30px; padding: 0 8px; border-radius: 7px; color: var(--text2); cursor: pointer; white-space: nowrap; text-align: left; }
.ctree summary { list-style: none; } .ctree summary::-webkit-details-marker { display: none; }
.ctree summary svg.i, .ctree button svg.i { width: 14px; height: 14px; flex: none; color: var(--text3); }
.ctree summary svg.i:first-child { width: 12px; height: 12px; transition: transform var(--t-fast); } .ctree details[open] > summary svg.i:first-child { transform: rotate(90deg); }
.ctree summary small { margin-left: auto; font-size: 11.5px; color: var(--text3); }
.ctree span { overflow: hidden; text-overflow: ellipsis; }
.ctree summary:hover, .ctree button:hover { background: var(--hover); color: var(--text); }
.ctree button[aria-current="true"] { background: var(--sel); color: var(--head); font-weight: 600; }
.cfile { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; }
.cfile header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.cfile header code { font: 600 13px var(--mono); color: var(--head); overflow-wrap: anywhere; } .cfile header small { font-size: 12px; color: var(--text3); }
.cfile pre { margin: 0; overflow: auto; padding: 14px 0; background: var(--bg); font: 12.5px/1.65 var(--mono); color: var(--text); counter-reset: line; tab-size: 2; }
.cfile pre span { display: inline-block; min-width: 100%; padding-right: 24px; }
.cfile pre span::before { counter-increment: line; content: counter(line); display: inline-block; width: 44px; margin-right: 18px; text-align: right; color: var(--text3); user-select: none; }
.cfile > .empty { margin: 48px auto; }
.wf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .wf.one { grid-template-columns: minmax(0, 1fr); }
.wf label { display: grid; gap: 5px; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--text2); } .wf label.wide { grid-column: 1 / -1; }
.wf input, .wf textarea, .hr input, .rd input { width: 100%; min-width: 0; height: 36px; padding: 0 11px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); font: 14px var(--sans); color: var(--text); }
.wf textarea { height: auto; padding: 8px 11px; line-height: 1.45; resize: vertical; }
.wf input:focus-visible, .wf textarea:focus-visible, .hr input:focus-visible, .rd input:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.wf input:invalid, .hr input:invalid { border-color: var(--bad); background: var(--bad-bg); }
.wf .was { font-size: 12px; font-weight: 500; color: var(--warn); }  /* what the Google listing says, where it differs */
.wf fieldset { display: grid; gap: 8px; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); min-width: 0; }
.wf fieldset legend { padding: 0 4px; font-size: 12px; font-weight: 600; color: var(--text3); }
.hrs { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.hh { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.hh b { font-weight: 600; color: var(--head); } .hh small { color: var(--text3); }
.hr { display: grid; grid-template-columns: minmax(0, 1fr) 92px 92px 22px; gap: 8px; align-items: center; padding: 8px 12px; font-size: 13.5px; }
.hr input[type=time]::-webkit-calendar-picker-indicator { display: none; }  /* the field is typed; its clock would hide the time */
.hr + .hr { border-top: 1px solid var(--line); } .hr b { font-weight: 500; } .hr input { height: 32px; padding: 0 6px; font-size: 13px; }
.hr.ch { background: var(--note-bg); } .hr small { font-size: 12px; font-weight: 600; color: var(--warn); }
.hr .closed { grid-column: 2 / 4; color: var(--text3); }
.hr input[type=checkbox] { width: 16px; height: 16px; justify-self: center; accent-color: var(--blue); }
.wdet .gline { margin: 0; } .wdet .gline small { display: block; }
.saved { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; color: var(--text3); } .saved svg.i { width: 14px; height: 14px; color: var(--ok); }

/* a site building: the form's steps, one line each */
.wsteps { padding: 18px; display: grid; gap: 12px; align-content: start; justify-items: start; overflow: auto; grid-template-columns: minmax(0, 1fr); }
.wsteps h3, .whist h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--head); }
.wsteps ol { width: 100%; margin: 0; padding: 0; list-style: none; display: grid; }
.wsteps li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 2px; font-size: 13.5px; color: var(--text3); }
.wsteps li + li { border-top: 1px solid var(--line); }
.wsteps li.done { color: var(--text); } .wsteps li.done svg.i { color: var(--ok); }
.wsteps li.run { color: var(--head); font-weight: 600; } .wsteps li.run svg.i { color: var(--red); }
.wsteps li > i { width: 9px; height: 9px; justify-self: center; border: 1.5px solid var(--line2); border-radius: 50%; }
.wsteps time { font-size: 12px; font-weight: 400; color: var(--text3); }
.wsteps .hint { margin: 0; }

/* the site's history: every change, newest first */
.whist { padding: 16px; display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.whist ol { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.whist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; padding: 10px 12px; }
.whist li + li { border-top: 1px solid var(--line); }
.whist li b { font-size: 13.5px; font-weight: 600; } .whist li small { grid-column: 1; font-size: 12px; color: var(--text3); }
.whist li small.bad { color: var(--bad); }
.whist li > .pill, .whist li > .btn { grid-column: 2; grid-row: 1; } .whist li > .pill + .btn { grid-row: 2; }
.whist li .btn { height: 26px; font-size: 12px; justify-self: end; } .whist > .btn { justify-self: start; }

/* Content, Code and Go live take the room of the column and the page (websites.js, WHOLE) */
.wb.going { grid-template-columns: minmax(0, 1fr); } .wb.going > .wcol, .wb.going > .pv { display: none; }
.wgo[hidden] { display: none; }
.wlive .ph p { max-width: 640px; }
.wlive .tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; padding: 11px 16px; }
.wlive h3 { margin: 18px 0 8px; font-size: 13px; font-weight: 600; color: var(--text2); } .wlive h2 + h3 { margin-top: 0; }
.qn { display: flex; align-items: center; gap: 10px; min-width: 0; } .qn b { font-weight: 600; }
.qn svg.i { width: 17px; height: 17px; flex: none; }
.qn.ok svg.i { color: var(--ok); } .qn.warn svg.i { color: var(--amber); } .qn.bad svg.i { color: var(--bad); }
.qn.off { color: var(--text3); } .qn.off b { font-weight: 500; }
.qd { font-size: 13px; color: var(--text2); overflow-wrap: anywhere; } .qd.warn { color: var(--warn); } .qd.bad { color: var(--bad); } .qd.off { color: var(--text3); }
.wdone { display: flex; align-items: flex-start; gap: 16px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.wdone .primary, .wdone .pill { flex: none; } .wdone .primary:disabled { opacity: .45; cursor: not-allowed; }
.wdone p { flex: 1; margin: 0; font-size: 13px; line-height: 1.5; color: var(--text2); } .wdone p b { color: var(--text); font-weight: 600; }
.wsure { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; }
.sample { display: block; margin-top: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--raise); color: var(--text); overflow-wrap: anywhere; }
.wlive .gline { margin: 0 0 12px; } .wlive .gline small { display: block; }
.dns .tr { grid-template-columns: 70px 70px minmax(0, 1fr) auto auto; } .dns .tr.head { padding-block: 8px; font-size: 12px; color: var(--text3); }
.dns code { font: 13px var(--mono); overflow-wrap: anywhere; } .dns .pill { justify-self: start; white-space: normal; overflow-wrap: anywhere; }
.wlive .dns + .hint { margin: 10px 0 0; }
.doms .tr { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; }
.dform { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.dsearch { flex: 0 1 420px; margin: 0; }
.wlive .hint { margin: -4px 0 0; } .wlive .doms + .hint { margin-top: 10px; }
/* the API keys an owner sets (Admin, Server): what each is for, whether it is set, and its one field */
.apikeys .tr { grid-template-columns: minmax(0, 1fr) auto minmax(0, 300px) auto; }
.apikeys .tr > span:first-child { display: grid; gap: 2px; } .apikeys small { font-size: 12.5px; color: var(--text3); }
.apikeys input { width: 100%; min-width: 0; height: 34px; padding: 0 11px; border: 1px solid var(--line2); border-radius: 9px; background: var(--bg); font: 13px var(--mono); color: var(--text); }
.apikeys input:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
/* a sign-in's row: its Connect button stands where a key's field and Save stand; .hold is an unseen Save, so the row's
   columns are as wide as a key's (min-width 0 keeps the button's own width out of the Save column) */
.apikeys .tr > a.btn { grid-column: 3 / -1; grid-row: 1; justify-self: end; min-width: 0; } .apikeys .tr > .hold { grid-column: 4; grid-row: 1; visibility: hidden; }

/* a phone: the page above, the column under it; the drawers cover the page */
@media (max-width: 760px) {
  [data-view="website"] .top .back { display: inline-grid; }
  /* the search takes its own row, New site under it at the row's start, as the board's phone head (roster.css) */
  .sites .ph { flex-wrap: wrap; } .sites .ph-act { flex: 1 1 100%; margin-left: 0; } .sites .search { flex: 1 1 100%; width: auto; }
  /* the route's line over its control, each the card's width */
  .broute .rhd { flex-direction: column; align-items: stretch; gap: 10px; } .broute .rhd .btn { justify-content: center; } .broute .rhd .pill { align-self: flex-start; }
  .filt { display: flex; overflow-x: auto; max-width: 100%; scrollbar-width: none; } .filt button { flex: none; white-space: nowrap; }
  /* the status row says more lies to its right: a fade held at the row's right edge while a filter is under it.
     It is the row's last item, so a row that fits, or one scrolled to its end, shows every filter clear of it */
  .filt:has([data-site-filter])::after { content: ""; flex: none; position: sticky; right: 0; width: 28px; margin-left: -4px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--chip) 70%); }
  .sites .tr { grid-template-columns: minmax(0, 1fr); gap: 6px; } .sites .sdom, .sites .slast, .sites .tr > svg.go { display: none; }
  .sstat { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; padding-left: 66px; }
  .wb { grid-template-columns: minmax(0, 1fr); grid-template-rows: 40vh minmax(0, 1fr); }
  .wb .pv { grid-row: 1; } .wb .wcol { grid-row: 2; border: 0; border-top: 1px solid var(--line); }
  .pvbar .pick, .pvbar > .icon, .pvbar [data-site="draft"], .pvbar [data-site="live"], .draft { display: none; }
  .wdraw { width: 100%; }
  .wchat .chat { padding: 14px 12px; } .wchat .composer { padding: 6px 10px 10px; } .wchat .empty.hello { margin-top: 0; }
  .slot .seg span { display: none; }  /* the views as icons: the site's name keeps the room */
  .bycsm .sstat small { display: none; }
  .pvframe.phone { display: block; padding: 0; } .pvframe.phone iframe { width: 100%; border: 0; border-radius: 0; box-shadow: none; }  /* the phone is the frame */
  .wf, .wf.areas, .wf.rows fieldset { grid-template-columns: minmax(0, 1fr); }
  .wb.going { grid-template-rows: minmax(0, 1fr); }
  .ctwrap, .wcode { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .ctnav { display: flex; overflow-x: auto; padding: 8px; border-right: 0; border-bottom: 1px solid var(--line); } .ctnav h3 { display: none; } .ctnav button { flex: none; }
  .ctform { padding: 20px 14px 32px; } .cthead { flex-direction: column; gap: 6px; } .cthead .saved { margin: 0; }
  .ctform .hr { grid-template-columns: minmax(0, 1fr) 92px 92px 22px; gap: 8px; padding: 8px 12px; }
  .ctree { max-height: 32vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .wlive .tr, .dns .tr, .doms .tr, .apikeys .tr { grid-template-columns: minmax(0, 1fr); gap: 6px; } .dns .tr.head { display: none; }
  .apikeys .tr > a.btn { grid-column: auto; grid-row: auto; justify-self: stretch; justify-content: center; } .apikeys .tr > .hold { display: none; }
  .wlive .tr .r { justify-items: start; text-align: left; } .wlive .tr .r:empty, .dns .tr > span:empty { display: none; }
  .wdone { flex-direction: column; } .dsearch { flex-basis: 100%; }
}

/* the list's two rows of tabs (websites.js, sitesHtml): what a site needs, and its package, as the HQ mock's All, Base, In-depth SEO */
.sfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; } .sfilters .filt { margin-top: 0; }
.sites .sfilters + .sgrid, .sites .sfilters + .empty { margin-top: 24px; }
.smeta .spages { font-variant-numeric: tabular-nums; color: var(--text3); }
/* Content → Redirects: one row per redirect, old path → new path, 301 */
.rds { display: grid; gap: 8px; max-width: 900px; }
.rd { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 44px 112px; gap: 10px; align-items: center; }
.rd input { font: 13px var(--mono); }
.rd .rd-to { display: grid; place-items: center; color: var(--text3); } .rd .rd-to svg.i { width: 14px; height: 14px; }
.rd .pill { justify-self: center; } .rd .btn { justify-self: stretch; justify-content: center; }
.rd.head { font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; padding: 0 2px; }
.rd.add { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rd-none { margin: 4px 2px 6px; color: var(--text3); font-size: 13px; }
.rd-err { min-height: 20px; margin: 10px 2px 0; color: var(--bad); font-size: 13px; display: flex; gap: 6px; align-items: center; } .rd-err svg.i { width: 15px; height: 15px; }
@media (max-width: 700px) { .rd { grid-template-columns: 1fr 16px 1fr; } .rd .pill, .rd > span:nth-child(4) { display: none; } .rd .btn { grid-column: 1 / -1; } }
/* Go live: a domain a CSM requested, and the client's launch */
.dreq .wsure { display: flex; gap: 8px; }
