/* Kiln customer app mockups (2026-11-26): the layouts the shared system (kiln-ui.css) lacks.
   Same tokens, same rules: content sits on the sheet, parted by space and hairlines; no new surfaces.
   Every part has its phone layout at the foot of this file. */

/* ── the shell: where its two menus sit; the quiet line is a link ───────── */
.side .menu.at-who{left:12px;right:12px;top:110px;min-width:0}
.side .menu.at-help{left:12px;right:12px;bottom:58px;min-width:0}
a.side-note{display:block}
a.side-note:hover{text-decoration:underline;text-underline-offset:3px}
.who{position:relative}

/* ── a site in the list, with its plan: five aligned columns ───────────── */
.row.site.wplan{grid-template-columns:112px minmax(0,1.1fr) minmax(0,1.1fr) minmax(0,.72fr) 136px;cursor:pointer}
.row a.nm{display:block}
.row a.nm:hover{text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.row .nm small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row.site.wplan .plan{color:var(--ink-2);font-size:14px}
.row.site.wplan>.btn{justify-self:stretch}

/* ── the only site of an account, shown large ──────────────────────────── */
.thumb.md b{font-size:17px}
.thumb.lg{border-radius:14px}
.thumb.lg b{font-size:clamp(22px,2.7vw,38px)}
/* The site's name in the drawn picture ends before the circle begins (the circle starts at 66% of the width),
   at every width: two lines at most, a long word broken, the rest cut with an ellipsis; one line when small. */
.thumb b{right:38%;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.thumb.sm b{display:block;white-space:nowrap;text-overflow:ellipsis}
.feature .st{margin-bottom:14px}
.feature .addr{margin-top:8px;color:var(--ink-2)}
.quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line-2)}
.quick a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center;padding:18px 18px 18px 0}
.quick a+a{border-left:1px solid var(--line);padding-left:22px}
.quick .label,.quick b{grid-column:1}
.quick b{font-weight:600;font-size:15.5px}
.quick .ic{grid-column:2;grid-row:1/span 2;color:var(--ink-3)}
.quick a:hover .ic{color:var(--ink)}

/* ── a section of a site begins by saying where things stand ───────────── */
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}
.sec-head h2{font-size:24px;line-height:1.18;font-weight:650;letter-spacing:-.02em}
.sec-head .label{display:block;margin-bottom:8px}
.sec-head .sub{margin-top:8px;color:var(--ink-2);display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.sec-head .btn{flex:0 0 auto}
.group:first-child{margin-top:0}
.secnav a{display:flex;align-items:center;justify-content:space-between;gap:8px}
.glance{display:grid;grid-template-columns:minmax(0,248px) minmax(0,1fr);gap:30px;align-items:center;margin-bottom:28px}
.glance .label{display:block;margin-bottom:8px}
.glance h2{font-size:24px;line-height:1.18;font-weight:650;letter-spacing:-.02em}
.glance p{margin-top:6px;color:var(--ink-2)}
.facts dd .link{margin-left:10px;font-weight:430;color:var(--ink-2)}
.set .acts{display:flex;flex-wrap:wrap;gap:8px}
.set .btn:disabled{opacity:.5;cursor:default}
.nums.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.nums+.facts{border-top:0}
.after{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}

/* ── steps with a state each (a domain's three, a set-up's two) ────────── */
.path{list-style:none;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);border-top:1px solid var(--line-2);border-bottom:1px solid var(--line-2);counter-reset:p}
.path li{padding:18px 20px 20px 0;counter-increment:p;color:var(--ink-2)}
.path li+li{padding-left:22px;border-left:1px solid var(--line)}
.path .m{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1.5px solid var(--ink-3);font:500 12px var(--mono);font-style:normal;color:var(--ink-2)}
.path .m::before{content:counter(p)}
.path b{display:block;margin-top:12px;font-weight:620;font-size:15.5px;line-height:1.3}
.path span{display:block;margin-top:2px;font-size:13.5px}
.path .done .m{background:var(--sage);border-color:var(--sage)}
.path .done .m::before{content:"";width:10px;height:5px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:translateY(-1px) rotate(-45deg)}
.path .now{color:var(--ink)}
.path .now span{color:var(--clay-deep);font-weight:520}
.path .now .m{background:var(--ink);border-color:var(--ink);color:var(--sheet)}
.path .btn{margin-top:14px}

/* ── people ────────────────────────────────────────────────────────────── */
.row.person{grid-template-columns:38px minmax(0,1.15fr) minmax(0,1fr) 44px;padding:13px 6px}
.pav{width:38px;height:38px;border-radius:10px;background:rgba(36,38,47,.08);display:grid;place-items:center;font-weight:640}
.row.person .may{color:var(--ink-2)}
.row.person .tag{justify-self:end}
.anchor{position:relative;justify-self:end}
.menu.drop{right:0;top:calc(100% + 6px)}
.iconbtn{width:40px;height:40px;border-radius:10px;border:0;background:none;display:grid;place-items:center;cursor:pointer;color:var(--ink-2)}
.iconbtn:hover{background:var(--tint);color:var(--ink)}

/* ── billing: the total under the one table ────────────────────────────── */
.sum{display:flex;align-items:baseline;justify-content:space-between;gap:16px;padding:22px 6px 0}
.sum b{font-size:32px;line-height:1.05;font-weight:620;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.sum b small{margin-left:8px;font-size:15px;font-weight:520;letter-spacing:0;color:var(--ink-2)}
.sum .label small{display:block;margin-top:6px;font:430 13.5px/1.4 var(--display);letter-spacing:0;text-transform:none;color:var(--ink-2)}
.t.bill td.then{color:var(--ink-2)}
.t.bill td{white-space:nowrap}
.t.bill td.state,.t.bill td.then{white-space:normal}
.t.bill td.none{color:var(--ink-2)}
.glance p .link{margin-left:12px}
/* adding a site is a page of its own: its one column sits in the middle of the sheet */
.page.narrow{margin-inline:auto}

/* ── adding a site ─────────────────────────────────────────────────────── */
.choice.slim{padding:13px 6px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;box-shadow:none}
.choice.slim+.choice.slim{margin-top:0}
.choice.slim.on{background:none;box-shadow:none}
.choice.slim h3{font-size:15.5px;font-weight:600}
.choice.slim h3.mono{font-family:var(--mono);font-size:13.5px;font-weight:500;padding-top:2px}
.choice.slim p{font-size:14px}
.choice[disabled]{opacity:.5;cursor:default}
.picks{border-top:1px solid var(--line-2)}
.under{margin-top:12px;font-size:14px}
.page .label.over{display:block;margin:30px 0 10px}
.tick{display:flex;gap:12px;align-items:flex-start;margin-top:22px;cursor:pointer}
.tick input{width:20px;height:20px;margin-top:1px;flex:0 0 20px;accent-color:var(--ink)}
.flow-acts{display:flex;align-items:center;gap:10px 14px;margin-top:32px}
.flow-acts .grow{margin-left:auto}
.btn[aria-disabled="true"]{opacity:.38;pointer-events:none}
.progress{margin-bottom:8px}
.progress i{transition:width .5s ease}
.check .c .ic{width:13px;height:13px;flex-basis:13px}
.check li:not(.done) .c .ic{visibility:hidden}
.check li.now .c{border-color:var(--ink);border-top-color:transparent;animation:kspin .8s linear infinite}
@keyframes kspin{to{transform:rotate(360deg)}}

/* ── inside a dialog ───────────────────────────────────────────────────── */
.dlg>p,.dlg [data-step]>p{margin-top:10px;color:var(--ink-2)}
.dlg .label{display:block;margin:22px 0 8px}
.dlg [data-choices]{margin-top:18px}
.dlg .label+[data-choices]{margin-top:0}
.dlg .choice{padding:14px 16px}
.dlg .acts{flex-wrap:wrap}
.dlg .acts .first{margin-right:auto}
.dlg .picks{border:0;margin:12px 0 0}
.chip[data-pick]{background:#fff}
.chip[data-pick].on{background:var(--ink)}
.copy .faint{min-width:34px}

/* ── the mockup's own note: what the real app would do on this press ───── */

/* ── a phone ───────────────────────────────────────────────────────────── */
@media(max-width:900px){
  /* buttons 44px tall, settings rows, .steps, .copy and dialogs from the foot now live in kiln-ui.css */
  .iconbtn{width:44px;height:44px}
  .secnav a{font-size:14.5px;padding:11px 9px;gap:6px}
  .secnav .wide{display:none}

  .row.site.wplan{grid-template-columns:84px minmax(0,1fr);align-items:start;gap:3px 14px;padding:16px 2px}
  .row.site.wplan>.thumb{grid-row:1/span 3;margin-top:3px}
  .row.site.wplan>.nm,.row.site.wplan>.st,.row.site.wplan>.plan{grid-column:2}
  .row.site.wplan>.st{margin-top:5px;font-size:14.5px}
  .row.site.wplan .plan{font-size:13.5px}
  .row.site.wplan>.btn{grid-column:2;justify-self:start;margin-top:10px}

  .quick{grid-template-columns:minmax(0,1fr)}
  .quick a{padding:14px 2px}
  .quick a+a{border-left:0;border-top:1px solid var(--line);padding-left:2px}

  .sec-head{flex-direction:column;align-items:flex-start;gap:14px;margin-bottom:20px}
  .sec-head h2,.glance h2{font-size:20px}
  .glance{grid-template-columns:104px minmax(0,1fr);gap:16px;margin-bottom:20px}
  .glance p{font-size:14px}
  .glance p .link{display:block;width:max-content;margin:3px 0 0}
  .thumb.md b{font-size:10px}
  .after .btn{flex:1 1 auto}
  .page-head .sub .dim{display:none}
  .copy .faint{min-width:28px}

  .path{grid-auto-flow:row;grid-auto-columns:auto}
  .path li{display:grid;grid-template-columns:26px minmax(0,1fr);gap:1px 14px;padding:14px 0}
  .path li+li{padding-left:0;border-left:0;border-top:1px solid var(--line)}
  .path .m{grid-row:1/span 3}
  .path b{margin-top:2px}
  .path b,.path span,.path .btn{grid-column:2}
  .path .btn{justify-self:start;margin-top:10px}

  .row.person{grid-template-columns:38px minmax(0,1fr) 44px;gap:0 12px;padding:12px 2px}
  .row.person .pav{grid-row:1/span 2}
  .row.person .may{grid-column:2;grid-row:2;font-size:13.5px}
  .row.person .tag,.row.person .anchor{grid-column:3;grid-row:1/span 2}

  /* billing: the name and its state, then the price and what comes next */
  .t.bill td.nm{order:-2} .t.bill td.state{order:-1}
  .t.bill td.price,.t.bill td.then{font-size:13.5px;color:var(--ink-2);margin-top:2px}
  .t.bill td.then{text-align:right}
  .sum{flex-direction:column;gap:8px;padding:20px 2px 0}
  .sum b{font-size:28px}

  .flow-acts{flex-wrap:wrap;margin-top:26px}
  .flow-acts .grow{flex:1;margin-left:0}
  .flow-acts .link,.flow-acts .note{flex:1 1 100%;order:2}

  .dlg .acts .first{flex:1 1 100%;margin-right:0}
}

/* The Sites pages: adding a site is a quiet action, and on a phone it stays beside the title so the site comes first. */
@media (max-width:900px){
  .page-head.beside{flex-direction:row;align-items:center;gap:12px}
  .page-head.beside .acts .btn{flex:0 0 auto}
}

/* ── the real app, stage 1: the shell's parts the mockups leave out ────── */
/* shown and hidden by the page script */
.hide{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* the page's status line while the account loads */
.loading-line{padding:96px 20px;text-align:center;font:400 13px/1.5 var(--mono);letter-spacing:.04em;color:var(--ink-3)}
/* the account menu: today's two parts (Emails from Kiln, GitHub) above Admin and Sign out */
.side-head{position:relative}
.side .menu.at-who{top:112px;max-height:calc(100vh - 128px);overflow:auto}
.menu .menu-h{font:500 10.5px/1.4 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-3);padding:10px 10px 4px}
.menu .menu-fine{font-size:13px;line-height:1.45;color:var(--ink-2);padding:2px 10px 8px}
.menu .menu-fine.co{padding-top:8px;font-size:12.5px;color:var(--ink-3)}
.mailcard .notice{display:none;flex:1 1 100%;font-size:14px;color:var(--clay-deep)}
.mailcard .notice.show{display:block}
#acct-mail-home .mail-words{font-size:14px;line-height:1.5;color:var(--ink-2);max-width:62ch;overflow-wrap:anywhere}
#acct-mail-home .mail-words strong{color:var(--ink);font-weight:600}
#acct-mail-home .mail-form{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;max-width:520px}
#acct-mail-home .mail-form .input{flex:1 1 220px;min-width:0}
#acct-mail-home #mail-change{margin-top:12px}
#acct-mail-home .notice{margin-top:8px}
#acct-mail-home .notice{padding:0 10px 6px}
#acct-mail-home .btn{justify-content:flex-start;padding:0 10px}
/* with no address on record, the email question is the strip of Sites home (or of adding a site, with no site yet) */
#mail-home.next{display:block}
#mail-home .mailcard{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px}
#mail-home .mail-words{flex:1 1 340px;font-size:15.5px;max-width:62ch}
#mail-home .mail-form{display:flex;gap:8px;flex:1 1 300px;max-width:440px}
#mail-home .mail-form .input{flex:1;min-width:0}
/* the "Finish adding" strip of Sites home (dashboard.js, doorStrip): drawn only while the switch WIZARD is on */
#door-strip{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;padding:16px 20px;margin-bottom:18px;border:1px solid var(--line-2);border-radius:12px}
#door-strip .door-words{flex:1 1 260px;margin:0;font-size:15.5px;max-width:62ch;overflow-wrap:anywhere}
#door-strip .btn{height:44px}
/* the strip that says how a payment, a new site or a removal went */
#pay-note:not(.show){display:none}
/* The strip's words are one run of text, bold words and all, not the kit's row of words and a button. */
#pay-note.show{display:block}
#pay-note a{text-decoration:underline;text-underline-offset:3px}
/* the page's one dialog: its main button is dark, and red for a removal */
.dlg-body p{margin-top:10px;color:var(--ink-2)}
.btn.dark:hover{background:#3b3c48;border-color:#3b3c48}
.btn.red{background:var(--clay-deep);border-color:var(--clay-deep);color:#fff}
.btn.red:hover{background:#a5452f;border-color:#a5452f}
.btn.red[aria-disabled="true"]{opacity:.6;pointer-events:none}
/* a site's page while its sections are built: the redesign's header above today's row */
.site-top{margin-bottom:24px}
.site-top h1{overflow-wrap:anywhere}
#scr-add>.crumb{margin-bottom:8px}
/* a phone: everything pressable is at least 44 pixels tall */
@media(max-width:900px){
  .topbar .brand{min-height:44px}
  .topbar button{width:44px;height:44px}
  .btn.sm{height:44px}
  .side-sites a,.side-note,.menu a,.menu button,.crumb{min-height:44px}
  .crumb{align-items:center}
  .row.site .nm{display:flex;flex-direction:column;justify-content:center;min-height:44px}
  .feature h2 a,.feature .addr a,.site-top .addr{display:inline-flex;align-items:center;min-height:44px}
  #mail-home .mail-form{flex-basis:100%;max-width:none}
}
/* a site's page in sections: the strip, the set-up path, the facts, and the set-up panels in the dialog */
.site-secs{margin-top:6px}
.site-secs+.site-was{margin-top:28px}
.group .facts{border-top:0}
#ov-strip p{flex:1 1 auto;margin:0}
.pdlg .dlg{width:min(640px,calc(100vw - 32px));max-width:none;max-height:calc(100vh - 48px);overflow:auto}
.pdlg .was .btn-primary{background:var(--ink);border-color:var(--ink);color:#fff}
@media(max-width:900px){
  .secnav a{min-height:44px}
  .group>.label a{min-height:44px;display:inline-flex;align-items:center}
  .pdlg .dlg{width:100%}
}
/* In the dialog a panel's main button is dark under the pointer too, and the forwarding form's two fields stand apart from their words. */
.pdlg .was .btn-primary:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.pdlg .was .fwd-field{display:flex;flex-direction:column;gap:6px;margin:14px 0 0}
.pdlg .was .fwd-field label{font-weight:620}
#plan-state p{flex:1 1 auto;margin:0}
/* stage 3: a refusal said inside the invite dialog */
.dlg-said{color:var(--clay-deep);font-weight:550}

/* ---- what a new person sees first (Part B, chunk D1): Add your site, the address line ---- */
.d1-note{display:none;color:var(--clay-deep);font-size:14px;margin-top:8px;max-width:62ch}
.d1-note.show{display:block}
.d1-first{max-width:760px}
.d1-first .page-head{margin-bottom:10px}
.d1-first .first-parts{display:flex;flex-direction:column}
.d1-first .btn{height:44px}
.d1-first .set.first-step{grid-template-columns:minmax(0,1fr) auto;border-top:1px solid var(--line)}
.d1-first .first-step p{margin:0;color:var(--ink);font-size:15.5px}
.d1-first .first-step p:empty{display:none}
.d1-first .first-step p:empty+.acts{grid-column:1 / -1}
.d1-first .first-step .acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.set.d1-setup{display:block;padding:22px 0}
.d1-setup h3{font-size:16.5px;font-weight:620}
.d1-setup .setup-q{margin:12px 0 2px;padding:14px 18px;border-left:3px solid var(--clay);border-radius:0 12px 12px 0;background:var(--wash-clay)}
.d1-setup .setup-q p{margin:0;max-width:none;font-family:var(--serif);font-size:20px;line-height:1.35;color:var(--ink)}
.d1-setup .setup-q footer{margin-top:6px;font-size:13.5px;color:var(--ink-2)}
.d1-setup .field{margin-top:14px;max-width:520px}
.d1-setup .tick{margin-top:10px;min-height:44px;align-items:center}
.d1-setup #setup-go{margin-top:12px}
.d1-setup .setup-sent{margin-top:12px;max-width:62ch;color:var(--ink);font-size:15px;overflow-wrap:anywhere}
.d1-setup .setup-sent a{text-decoration:underline;text-underline-offset:3px}
.d1-first[data-first="setup"] #first-setup{order:-1;border-top:1px solid var(--line)}
.d1-first[data-first="setup"] #first-step{border-top:0}
#view-app[data-way="first"] #add-was{display:none}
.addr-line{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;padding:12px 16px;margin-bottom:18px;border:1px solid var(--line-2);border-radius:12px}
#view-app[data-way="first"] .addr-line{max-width:760px}
.addr-line .addr-words{flex:1 1 300px;margin:0;font-size:15px;overflow-wrap:anywhere}
.addr-line .acts{display:flex;flex-wrap:wrap;gap:8px}
.addr-line .btn{height:44px}
.addr-form{display:flex;gap:8px;flex:1 1 100%;max-width:520px}
.addr-form .input{flex:1;min-width:0}
.addr-note{flex:1 1 100%;margin:0;font-size:14px;color:var(--ink-2);overflow-wrap:anywhere}
.addr-note:empty{display:none}
.addr-note.err{color:var(--clay-deep)}
@media(max-width:700px){
  .d1-first .set.first-step{grid-template-columns:minmax(0,1fr)}
  .d1-first .first-step .acts .btn{flex:1 1 100%}
  .d1-setup #setup-go{width:100%}
  .addr-line .acts .btn{flex:1 1 auto}
}

/* ---- Part B, chunk D2: the card for a trial that has ended. It is the strip (.next) with one question under its words. Every class here starts d2-. ---- */
.next.d2-card{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:12px 22px;margin-bottom:22px}
.d2-card .d2-what{flex:1 1 320px;min-width:0;margin:0;overflow-wrap:anywhere}
.d2-card .d2-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;min-width:0;max-width:100%;margin-left:auto}
.d2-card .d2-acts:empty{display:none}
.d2-card .btn{height:auto;min-height:44px;max-width:100%;padding-top:8px;padding-bottom:8px;white-space:normal;overflow-wrap:anywhere;text-align:center}
.d2-card .btn:not(.dark){background:#fff}
.d2-card .d2-asked{flex:1 1 100%;margin:0;color:var(--ink-2);font-size:14.5px;max-width:none;overflow-wrap:anywhere}
.d2-card .d2-asked.no{color:var(--clay-deep)}
.d2-card .d2-ask{flex:1 1 100%;min-width:0;padding-top:14px;border-top:1px solid rgba(192,84,61,.2)}
.d2-card .d2-q{margin:0 0 8px;font-weight:620}
.d2-picks{display:flex;flex-wrap:wrap;gap:8px}
.d2-pick{min-height:44px;padding:8px 14px;border:1px solid var(--line-2);border-radius:11px;background:#fff;color:var(--ink);font:inherit;font-weight:560;font-size:15px;line-height:1.3;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.d2-pick:hover{border-color:var(--ink)}
.d2-pick[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:var(--sheet)}
.d2-pick:focus-visible{outline:2px solid var(--clay-deep);outline-offset:2px}
.d2-card .d2-you{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:0;max-width:none;overflow-wrap:anywhere}
.d2-card .d2-you b{font-weight:620}
.d2-more{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 10px;align-items:start;margin-top:14px;max-width:640px}
.d2-more label{grid-column:1 / -1;font-size:14.5px;font-weight:560;overflow-wrap:anywhere}
.d2-more label small{color:var(--ink-2);font-size:13.5px;font-weight:430;margin-left:6px}
.d2-note{display:block;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line-2);border-radius:10px;background:#fff;color:var(--ink);font:inherit;font-size:16px;line-height:1.4;resize:vertical;overflow-wrap:anywhere;overflow:hidden}
.d2-note:focus-visible{outline:2px solid var(--clay-deep);outline-offset:1px}
.d2-card .d2-said{display:none;margin:10px 0 0;color:var(--sage-deep);font-size:14.5px;font-weight:560;overflow-wrap:anywhere}
.d2-card .d2-said.show{display:block}
.d2-card .d2-said.no{color:var(--clay-deep)}
@media (max-width:600px){
  .d2-card .d2-acts{flex:1 1 100%}
  .d2-card .d2-acts .btn{flex:1 1 auto}
  .d2-picks{display:grid;grid-template-columns:1fr 1fr}
  .d2-more label small{display:block;margin-left:0}
}
