@font-face{font-family:"Archivo";font-weight:100 900;font-stretch:62% 125%;font-display:swap;src:url(/fonts/Archivo.woff2) format("woff2")}
:root{--blue:#1d3bff;--yellow:#ffd23f;--black:#0e0e10;--ink:#111;--muted:#5b5b66;--line:#d9d9e0;--bg:#f2f2f4;--red:#b3261e;--green:#0b6b43;--font:"Archivo",system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:450 1rem/1.5 var(--font)}
a{color:var(--blue)}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:.6rem 1rem;background:var(--blue);color:#fff;border-bottom:3px solid #000}
.brand{display:flex;align-items:center;gap:.6rem;color:#fff;text-decoration:none;font-weight:900;font-stretch:120%;letter-spacing:.06em}
.brand img{height:38px;width:auto}
.brand span{background:var(--yellow);color:#000;padding:.1em .45em;border:2px solid #000;border-radius:6px;font-size:.8rem}
nav{display:flex;gap:.3rem;flex-wrap:wrap;align-items:center}
nav a,nav button{color:#fff;text-decoration:none;font-weight:700;padding:.45rem .75rem;border-radius:8px;border:0;background:transparent;cursor:pointer}
nav a[aria-current=page]{background:#fff;color:var(--blue)}
nav button{border:2px solid #fff}
main{max-width:1100px;margin:0 auto;padding:1.2rem 1rem 4rem}
h1{font-size:1.6rem;font-stretch:115%;font-weight:900;margin:.2rem 0 1rem;line-height:1.1}
h2{font-size:1.15rem;margin:0 0 .4rem}
.loading,.empty{color:var(--muted)}
.card{background:#fff;border:2px solid #000;border-radius:14px;padding:1rem;margin:0 0 .9rem;box-shadow:4px 4px 0 #000}
.card.archived{opacity:.7;box-shadow:none;border-style:dashed}
.row{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.spread{justify-content:space-between}
.meta{color:var(--muted);font-size:.9rem}
.badge{display:inline-block;font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;padding:.15em .55em;border-radius:6px;border:2px solid #000;background:var(--yellow)}
.badge.gray{background:#e4e4ea}.badge.green{background:#c9f2dc}.badge.red{background:#ffd9d6}
.btn{display:inline-flex;align-items:center;gap:.35rem;padding:.5rem .85rem;border:2px solid #000;border-radius:10px;background:#fff;font-weight:800;text-decoration:none;color:#000;cursor:pointer;box-shadow:3px 3px 0 #000}
.btn:active{translate:2px 2px;box-shadow:1px 1px 0 #000}
.btn.blue{background:var(--blue);color:#fff}.btn.yellow{background:var(--yellow)}.btn.red{background:#fff;color:var(--red);border-color:var(--red);box-shadow:3px 3px 0 var(--red)}
.btn[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none}
.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.6rem;margin:0 0 1rem;background:#fff;border:2px solid #000;border-radius:14px;padding:.8rem}
label{display:grid;gap:.2rem;font-weight:700;font-size:.85rem}
input,select,textarea{border:2px solid #000;border-radius:8px;padding:.45rem .55rem;background:#fff;width:100%;font-weight:450;font-size:1rem}
textarea{min-height:3.2rem;resize:vertical}
.check{display:flex;align-items:center;gap:.4rem;font-weight:700}
.check input{width:auto}
.count{font-weight:800;margin:.2rem 0 .8rem}
.auth{max-width:420px;margin:2rem auto}
.auth form{display:grid;gap:.8rem}
.err{color:var(--red);font-weight:700;min-height:1.2em;margin:0}
.ok{color:var(--green);font-weight:700}
.qr{display:block;margin:.6rem auto;width:220px;height:220px;image-rendering:pixelated;border:2px solid #000;border-radius:8px}
.secret{font-family:ui-monospace,monospace;font-size:1.05rem;text-align:center;letter-spacing:.06em;background:var(--bg);padding:.5rem;border-radius:8px;word-break:break-all}
dialog{border:2px solid #000;border-radius:14px;padding:1.2rem;max-width:min(440px,92vw);box-shadow:6px 6px 0 #000}
dialog::backdrop{background:rgba(0,0,0,.45)}
dialog form{display:grid;gap:.8rem}
.temp{font-family:ui-monospace,monospace;font-size:1.3rem;background:var(--yellow);padding:.4rem .7rem;border:2px solid #000;border-radius:8px;display:inline-block}
table{width:100%;border-collapse:collapse;background:#fff;border:2px solid #000;border-radius:14px;overflow:hidden}
th,td{text-align:left;padding:.55rem .7rem;border-bottom:1px solid var(--line);font-size:.95rem}
th{background:var(--black);color:#fff}
@media (max-width:640px){.brand img{height:30px}nav a,nav button{padding:.4rem .55rem;font-size:.92rem}h1{font-size:1.35rem}}
.gap-top{margin-top:1.2rem}

.pill{font-size:.75rem;font-weight:800;padding:.25em .6em;border-radius:99px;border:2px solid #000;background:#e4e4ea;color:#000}
.pill.on{background:#c9f2dc}.pill.off{background:#ffd9d6}
.spin{display:inline-block;width:1em;height:1em;border:3px solid #ccc;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite;vertical-align:-.15em;margin-right:.35em}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:3s}}
.building{font-weight:700;color:var(--blue)}
.done{font-weight:800;color:var(--green)}
.two{display:grid;grid-template-columns:1fr 1fr;gap:.6rem}
@media (max-width:520px){.two{grid-template-columns:1fr}}
fieldset{border:2px solid #000;border-radius:10px;padding:.5rem .8rem;display:grid;gap:.3rem}
legend{font-weight:800;font-size:.85rem;padding:0 .3rem}
dialog form{max-height:80vh;overflow:auto}
.tabs{display:flex;gap:.3rem;flex-wrap:wrap;margin:0 0 1rem}
.tabs a{padding:.45rem .9rem;border:2px solid #000;border-radius:10px;background:#fff;color:#000;text-decoration:none;font-weight:800}
.tabs a[aria-current=page]{background:var(--black);color:#fff}
.files{list-style:none;margin:0 0 1rem;padding:0}
.files li{display:flex;gap:.6rem;align-items:center;justify-content:space-between;padding:.45rem 0;border-bottom:1px solid var(--line)}
.files li a{font-weight:700;word-break:break-all}
.btn.small{padding:.25rem .5rem;font-size:.8rem;box-shadow:2px 2px 0 var(--red)}
.crumbs{font-weight:700}
.chat .msgs{max-height:55vh;overflow:auto;display:grid;gap:.7rem;padding:.2rem;margin-bottom:.8rem}
.msg{display:grid;gap:.15rem;max-width:88%}
.msg.you{justify-self:end;text-align:right}
.msg .bubble{padding:.6rem .85rem;border-radius:14px;border:2px solid #000;white-space:pre-wrap;text-align:left;word-break:break-word}
.msg.you .bubble{background:var(--blue);color:#fff}.msg.you .bubble a{color:#fff}
.msg.agent .bubble{background:#fff}
.say{display:grid;gap:.5rem;margin-bottom:.8rem}
.say select{width:auto}
.pad{width:100%;height:auto;aspect-ratio:3/1;border:2px dashed #000;border-radius:10px;background:#fff;touch-action:none}
.badge.t-change{background:#cdd6ff}.badge.t-new_feature{background:#ffe8a3}.badge.t-support{background:#c9f2dc}.badge.t-billing{background:#ffd9d6}
.legend{display:flex;gap:1rem;flex-wrap:wrap;font-size:.85rem;font-weight:700}
.sw{display:inline-block;width:.9em;height:.9em;border-radius:3px;margin-right:.3em;vertical-align:-.1em;border:1px solid #000}
.sw.t-change{background:#1d3bff}.sw.t-new_feature{background:#e0a800}.sw.t-support{background:#0b8a55}.sw.t-billing{background:#c2362b}.sw.collected{background:#0b8a55}.sw.dash{border:0;border-top:2px dashed #111;height:0;width:1.4em}
.chart{width:100%;height:auto;display:block;margin:.4rem 0}
.pre{white-space:pre-wrap;background:var(--bg);padding:.6rem;border-radius:8px}
details summary{cursor:pointer;font-weight:700;margin:.3rem 0}
@media (max-width:640px){.bar{position:static}nav{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:.2rem;scrollbar-width:none}nav a,nav button,.pill{flex:none}}
.btn.small-plain{font-size:.85rem;padding:.35rem .65rem;box-shadow:2px 2px 0 #000}

/* home tiles */
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1rem}
.tile{display:grid;align-content:start;gap:.35rem;background:#fff;color:var(--ink);text-decoration:none;border:2px solid #000;border-radius:14px;padding:1rem 1.1rem 1.1rem;box-shadow:4px 4px 0 #000;transition:translate .12s ease,box-shadow .12s ease;min-height:9rem}
.tile:hover,.tile:focus-visible{translate:-2px -2px;box-shadow:6px 6px 0 #000}
.tile-h{display:flex;justify-content:space-between;font-weight:800;text-transform:uppercase;letter-spacing:.05em;font-size:.78rem;color:var(--muted)}
.tile-big{font-size:2rem;font-weight:900;font-stretch:115%;line-height:1}
.tile-sub{color:var(--muted);font-size:.92rem}
.tile.ok{border-color:#000}.tile.ok .tile-big{color:var(--green)}
.tile.bad .tile-big{color:var(--red)}
.tile.hot{background:#fffbe6}
.tile-list{list-style:none;margin:.3rem 0 0;padding:0;font-size:.9rem;display:grid;gap:.2rem}
.tile-list span{color:var(--muted)}
.stack{display:flex;height:12px;border:2px solid #000;border-radius:6px;overflow:hidden;margin-top:.3rem}
.stack span.t-change{background:#1d3bff}.stack span.t-new_feature{background:#e0a800}.stack span.t-support{background:#0b8a55}.stack span.t-billing{background:#c2362b}
.legend.small{font-size:.78rem;gap:.6rem;margin:0}
.meter{height:12px;border:2px solid #000;border-radius:6px;overflow:hidden;background:var(--bg);margin-top:.3rem}
.meter span{display:block;height:100%;background:var(--green)}
p.small{font-size:.85rem;margin:.2rem 0 0}
@media (prefers-reduced-motion:reduce){.tile{transition:none}}

/* home tile details */
.tiles{grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.kv{list-style:none;margin:.5rem 0 0;padding:.5rem 0 0;border-top:1px solid var(--line);display:grid;gap:.25rem;font-size:.9rem}
.kv li{display:flex;justify-content:space-between;gap:.8rem}
.kv li span{color:var(--muted)}
.kv li b{text-align:right;font-weight:700}
.kv li.wide{display:block}
.kv li.bad b{color:var(--red)}.kv li.ok b{color:var(--green)}.kv li.hot b{color:var(--blue)}
.tile-label{margin:.6rem 0 0;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
.tile-list li{display:grid;gap:.05rem}
.tile-list li span{font-size:.82rem}
.chips{display:flex;flex-wrap:wrap;gap:.35rem;margin:.3rem 0 0}
.chips span{font-size:.8rem;font-weight:700;padding:.15em .55em;border:1.5px solid #000;border-radius:99px;background:var(--bg)}
.tile-h span{text-transform:none;letter-spacing:0;font-weight:700;color:var(--blue)}
.kv li b small{display:block;font-weight:500;color:var(--muted);font-size:.8rem}
.kv li span{flex:none}

/* mock adjustments page */
.mock-wrap{display:grid;gap:1rem}
@media (min-width:980px){.mock-wrap{grid-template-columns:1.15fr 1fr;align-items:start}}
.mock-preview iframe{width:100%;height:70vh;border:2px solid #000;border-radius:10px;background:#fff;margin-top:.6rem}
@media (max-width:640px){.mock-preview iframe{height:60vh}}
.chip{font:inherit;font-size:.8rem;font-weight:700;padding:.25em .7em;border:1.5px solid #000;border-radius:99px;background:var(--bg);cursor:pointer}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.8rem;margin:.4rem 0}
.stats div{display:grid;gap:.1rem;background:var(--bg);border-radius:10px;padding:.7rem}
.stats b{font-size:1.7rem;font-weight:900;font-stretch:115%}
.stats span{font-weight:700}
.stats small{color:var(--muted)}
/* live agent steps in the chats (2026-11-29) */
.msg .steps{width:100%;text-align:left;font-size:.85rem;margin:.2rem 0 0}
.msg ol.steps,.msg details.steps ol{list-style:none;margin:.3rem 0 0;padding:.5rem .7rem;border:2px dashed #000;border-radius:10px;background:#fff;display:grid;gap:.2rem;color:#111}
.msg .steps li.do::before{content:"› ";font-weight:900;color:var(--blue)}
.msg .steps li.say{color:#333;background:#f2f2f4;border-radius:6px;padding:.15rem .4rem}
.msg .steps li.more{color:#666}
.msg ol.steps.live li:last-child{font-weight:700}
.msg details.steps summary{cursor:pointer;font-weight:700;color:var(--blue)}
.btn.stop{min-height:30px;padding:.2em .7em;font-size:.8rem;border-color:#b00020;color:#b00020}
