/* KIK brand (src/tokens.css, docs/DESIGN.md): white page, navy ink, cream panels, brand-strong buttons with white text, Figtree. */
@font-face{font-family:Figtree;src:url('/assets/figtree-latin.woff2') format('woff2');font-weight:300 900;font-style:normal;font-display:swap}
:root{--orange:#b8500e;--orange-d:#8f3f0b;--brand:#f37521;--ink:#202d52;--muted:#4d5775;--line:#e6dfd4;--field:#8a94a2;--paper:#fff;--card:#fbf6ee;--bad:#a1241a;--ok:#2d6a3e}
*{box-sizing:border-box}
body{margin:0;font:16px/1.5 Figtree,system-ui,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--paper)}
.top{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem max(1rem,calc((100% - 56rem)/2 + 1rem));border-bottom:3px solid var(--brand);background:#fff}
.brand img{display:block;height:auto;max-width:100%}
.quiet{color:var(--orange-d);font-size:.95rem}
main{max-width:56rem;margin:0 auto;padding:1.25rem 1rem 4rem}
.narrow{max-width:38rem;margin-top:2rem}
h1{font-size:clamp(1.7rem,5vw,2.4rem);line-height:1.15;margin:.2rem 0 .8rem;letter-spacing:-.02em}
h2{font-size:1.3rem;margin:1.8rem 0 .5rem}h3{margin:0 0 .5rem;font-size:1.05rem}
.lede{font-size:1.1rem}.hint,small{color:var(--muted)}small{font-size:.85rem}
.bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.tabs{display:flex;flex-wrap:wrap;gap:.2rem .4rem;border-bottom:1px solid var(--line);margin:.5rem 0 0}
/* Phones: one scrolling row, with edge shadows that show there is more to reach on that side. */
@media(max-width:41.99rem){.tabs{flex-wrap:nowrap;overflow-x:auto;margin:.5rem -1rem 0;padding:0 1rem;scroll-padding-inline:1rem;scroll-snap-type:x proximity;
 background:linear-gradient(90deg,#fff 30%,#fff0) left center/2rem 100% no-repeat local,linear-gradient(270deg,#fff 30%,#fff0) right center/2rem 100% no-repeat local,linear-gradient(90deg,rgba(32,45,82,.28),#fff0) left center/.7rem 100% no-repeat scroll,linear-gradient(270deg,rgba(32,45,82,.28),#fff0) right center/.7rem 100% no-repeat scroll}.tab{scroll-snap-align:center}}
.tab{flex:none;background:none;border:0;border-bottom:3px solid transparent;border-radius:0;padding:.8rem .6rem;font:inherit;font-weight:600;color:var(--muted);cursor:pointer;min-height:44px}
.tab:active:not(:disabled){transform:none}
@media(hover:hover){.tab:not(.on):hover{color:var(--ink)}}
.tab.on{color:var(--orange);border-bottom-color:var(--brand)}
.cards{display:grid;gap:1rem;margin:1rem 0}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:1rem}
.card.archived{border-style:dashed}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr));gap:.8rem}
.stack{display:grid;gap:.8rem}
.row{display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;margin-top:.5rem}
.row>.field{flex:1 1 12rem}
.field{display:grid;gap:.25rem;font-weight:600;font-size:.95rem}
.field small{font-weight:400}
input[type=text],input[type=email],input[type=url],input[type=number],input[type=date],select,textarea{width:100%;font:inherit;padding:.65rem .7rem;border:1px solid var(--field);border-radius:6px;background:#fff;color:var(--ink);min-height:44px}
textarea{resize:vertical}
input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%}
.button-like{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:.6rem 1rem;border:1px solid var(--orange);color:var(--orange-d);border-radius:6px;font-weight:600;overflow:hidden}
.button-like:focus-within{outline:3px solid var(--ink);outline-offset:2px}
.check{display:flex;gap:.6rem;align-items:center;font-weight:400;min-height:44px}.check.strong{font-weight:700}
input[type=checkbox]{width:22px;height:22px;accent-color:var(--orange)}
fieldset{border:1px solid var(--line);border-radius:8px;padding:.4rem .8rem}legend{font-weight:600;padding:0 .3rem}
button,.button{font:inherit;font-weight:650;min-height:44px;padding:.6rem 1.1rem;border-radius:6px;border:1px solid transparent;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;-webkit-tap-highlight-color:transparent;transition:background-color .18s cubic-bezier(.16,1,.3,1),border-color .18s cubic-bezier(.16,1,.3,1),color .18s cubic-bezier(.16,1,.3,1),transform .18s cubic-bezier(.16,1,.3,1)}
button:active:not(:disabled),.button:active{transform:translateY(1px) scale(.985)}
.primary,.button{background:var(--orange);color:#fff}@media(hover:hover){.primary:hover:not(:disabled),.button:hover{background:var(--orange-d)}}.primary:disabled{opacity:.6;cursor:wait}
.button.secondary{background:#fff;color:var(--orange-d)}.secondary{background:#fff;border-color:var(--orange);color:var(--orange-d)}
.danger{background:#fff;border-color:var(--bad);color:var(--bad)}
.quiet-btn{background:none;border-color:var(--line);color:var(--muted)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.savebar{position:sticky;bottom:0;z-index:1;background:var(--paper);border-top:1px solid var(--line);margin-inline:-1rem;padding:.8rem 1rem;display:flex;gap:1rem;align-items:flex-start;flex-wrap:wrap}
.status.ok{color:var(--ok)}.status.bad,.bad,.error{color:var(--bad)}.status ul{margin:.3rem 0 0;padding-left:1.2rem}
.photo{display:grid;gap:1rem;grid-template-columns:1fr}
@media(min-width:42rem){.photo{grid-template-columns:13rem 1fr}}
.photo-prev{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;background:#eee}
.logo-prev{max-height:48px;max-width:140px;object-fit:contain}
.upload{display:grid;gap:.3rem;margin:.5rem 0}
details{border:1px solid var(--line);border-radius:8px;padding:.3rem .8rem}summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:600}
.stack form,form.stack{display:grid;gap:1rem;margin-top:1.2rem}
a{color:var(--orange-d)}

input[type=search]{width:100%;font:inherit;padding:.65rem .7rem;border:1px solid var(--field);border-radius:6px;background:#fff;color:var(--ink);min-height:44px}
.card summary{display:flex;flex-wrap:wrap;gap:.2rem .6rem;justify-content:space-between}
.facts{display:grid;grid-template-columns:1fr;gap:.1rem 1rem;margin:.6rem 0 0}
.facts dt{font-weight:600;font-size:.85rem;color:var(--muted);margin-top:.6rem}
.facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(min-width:42rem){.facts{grid-template-columns:12rem 1fr}.facts dt{margin-top:.3rem}}
.demo-who{font-size:.9rem;color:var(--muted,#4d5775)}
main.narrow:has(>#app){max-width:56rem}

/* Compact list editors: one row per item on desktop, stacked with visible labels on phones. */
.sr,.cell-label{font-size:.8rem;font-weight:600;color:var(--muted)}
.cell{display:grid;gap:.2rem;min-width:0}
.rowfields{display:grid;gap:.6rem;min-width:0}
.items{display:grid;gap:.6rem;margin:.8rem 0}
.item,.item-stack{display:grid;gap:.6rem;padding:.7rem;border:1px solid var(--line);border-radius:8px;background:#fff}
.item-stack{background:var(--card)}
.item-head{display:none}
.ctl{display:flex;gap:.4rem;justify-content:flex-end}
button.icon{min-width:44px;min-height:44px;padding:0;justify-content:center;font-size:1.15rem;line-height:1}
button.icon:disabled{opacity:.35;cursor:default}
details.group>summary,details.fold-block>summary{font-size:1.05rem;font-weight:700}
details.fold-block{margin:1rem 0;padding:.2rem 1rem .8rem;background:var(--card)}
details.group{background:var(--card);padding:.2rem 1rem .8rem;margin:.8rem 0}
.group-ctl{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:.8rem;padding-top:.6rem;border-top:1px solid var(--line)}
@media(min-width:42rem){
 .cell-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 .rowfields{grid-template-columns:var(--cols)}
 .item{grid-template-columns:minmax(0,1fr) auto;align-items:center;padding:.4rem .6rem}
 .item-stack{grid-template-columns:minmax(0,1fr)}
 .item-head{display:grid;grid-template-columns:minmax(0,1fr) 8.6rem;padding:0 .6rem;font-size:.8rem;font-weight:600;color:var(--muted)}
 .item-head{grid-template-columns:var(--cols) 8.6rem;gap:.6rem}
 .items .item .ctl{width:8.6rem}
 .items .item .stack{gap:.4rem}
 button.icon{min-width:36px;min-height:36px}
 .items .item input[type=text],.items .item input[type=email],.items .item input[type=url],.items .item input[type=number],.items .item textarea{min-height:36px;padding:.35rem .6rem}
}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important}}
