:root { --ink: #1a1f3d; --muted: #5b6478; --accent: #4a2db5; --line: #e3e7ef; --panel: #f6f7fb; --ok: #0f7a55; --bad: #b42318; --bg: #ffffff; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Sarabun", "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px max(16px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; letter-spacing: 2px; color: var(--accent); }
main { max-width: 460px; margin: 28px auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
h1 { font-size: 24px; margin: 0 0 6px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 16px 0; background: var(--panel); }
label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: 14px; }
input, select { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #c9cfdc; border-radius: 8px; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
button.primary, a.primary { display: block; width: 100%; margin-top: 16px; padding: 12px; font: inherit; font-weight: 700; color: #fff; background: var(--accent); border: 0; border-radius: 8px; cursor: pointer; text-align: center; text-decoration: none; }
button.line, a.line { display: block; width: 100%; margin-top: 12px; padding: 12px; font: inherit; font-weight: 700; color: #fff; background: #06c755; border-radius: 8px; text-align: center; text-decoration: none; }
button.secondary { display: block; width: 100%; margin-top: 10px; padding: 11px; font: inherit; background: #fff; color: var(--ink); border: 1px solid #c9cfdc; border-radius: 8px; cursor: pointer; }
button.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
button:disabled { opacity: .6; cursor: default; }
.msg { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; }
.msg.bad { background: #fdecea; color: var(--bad); }
.msg.ok { background: #e7f6ef; color: var(--ok); }
.code { letter-spacing: 6px; font-size: 22px; text-align: center; }
.row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row:first-child { border-top: 0; }
h2 { font-size: 18px; margin: 14px 0 6px; } .card > h2:first-child { margin-top: 0; }
a.button { display: block; }
a.pdf { display: block; margin-top: 10px; text-align: center; color: var(--accent); font-weight: 600; }
/* Usage meter (no inline styles: the width is a class, w0..w100 in steps of 5) */
.meter { display: inline-grid; gap: 4px; min-width: 120px; text-align: end; }
.bar { display: block; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); } .bar.full i { background: var(--bad); }
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}
.w55{width:55%}.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}.w95{width:95%}.w100{width:100%}
/* The business's steps to an active bot: done ones checked, the current one in the accent colour */
.steps { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; gap: 6px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.steps .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; border: 2px solid var(--line); background: #fff; }
.steps li.done { color: var(--ink); } .steps li.done .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.steps li.now { color: var(--accent); font-weight: 700; } .steps li.now .dot { border-color: var(--accent); color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #eef0ff; color: var(--accent); font-size: 14px; font-weight: 600; }
