:root{--bg:#f4f6f8;--card:#fff;--text:#1d2329;--muted:#5f6b76;--line:#dfe4e8;--brand:#1f6feb;--ok:#2e7d32;--warn:#b26a00;--err:#c62828;--r:14px}
@media (prefers-color-scheme:dark){:root{--bg:#111417;--card:#1b2025;--text:#e8ecef;--muted:#9aa6b1;--line:#2c333a;--brand:#5b9dff;--ok:#66bb6a;--warn:#ffb74d;--err:#ef5350}}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--text);font:16px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
main{max-width:560px;margin:0 auto;padding:16px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:18px;margin:0 0 14px}
.center{text-align:center}
h1{font-size:1.25rem;margin:0 0 2px}
h2{font-size:1rem;margin:0 0 10px}
.muted{color:var(--muted);font-size:.92rem}
.head{display:flex;gap:12px;align-items:center}
.head img{max-height:44px;max-width:120px;object-fit:contain}
.state{font-weight:600;font-size:1.05rem;margin:12px 0 4px}
.steps{list-style:none;padding:0;margin:14px 0 0;display:grid;grid-template-columns:repeat(5,1fr);gap:4px}
.steps li{font-size:.72rem;color:var(--muted);text-align:center}
.steps li:before{content:"";display:block;height:6px;border-radius:3px;background:var(--line);margin-bottom:6px}
.steps li.done:before{background:var(--brand)}
.steps li.now{color:var(--text);font-weight:600}
.row{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--line)}
.row:first-of-type{border-top:0}
button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:46px;border:0;border-radius:10px;background:var(--brand);color:#fff;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}
button.secondary{background:transparent;color:var(--brand);border:1px solid var(--brand)}
button:disabled{opacity:.55;cursor:default}
input,textarea,select{width:100%;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:11px 12px;margin:6px 0 10px}
textarea{min-height:96px;resize:vertical}
canvas{width:100%;height:170px;background:#fff;border:1px dashed var(--muted);border-radius:10px;touch-action:none;display:block;margin:6px 0 8px}
.stars{display:flex;gap:6px;margin:6px 0 10px}
.stars button{width:auto;min-width:46px;background:transparent;color:var(--muted);border:1px solid var(--line);font-size:1.4rem;padding:0 8px}
.stars button.on{color:#f5a623;border-color:#f5a623}
.msg{margin:8px 0 0;font-size:.92rem}
.msg.ok{color:var(--ok)} .msg.err{color:var(--err)}
.tag{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--bg);border:1px solid var(--line);font-size:.8rem}
.spinner{width:28px;height:28px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;margin:8px auto;animation:s 1s linear infinite}
@keyframes s{to{transform:rotate(360deg)}}
footer{text-align:center;color:var(--muted);font-size:.8rem;padding:6px 16px 28px}
.sr{position:absolute;left:-9999px}

/* 26/10: etiqueta QR para imprimir */
.label{max-width:360px;margin:24px auto;text-align:center;background:#fff;color:#111;border:2px solid #111;border-radius:12px;padding:18px}
.label img.qr{width:240px;height:240px;display:block;margin:10px auto}
.label h1{font-size:1.15rem}.label .eq{font-weight:600;margin:4px 0}.label .hint{font-size:.95rem;margin-top:6px}
.noprint{max-width:360px;margin:0 auto 24px}
@media print{body{background:#fff}.noprint,footer{display:none}.label{margin:0 auto;border-width:1px}}

/* 29/10: orçamento */
.pre{white-space:pre-wrap;margin:0 0 6px}
table.lines{width:100%;border-collapse:collapse;margin:0 0 12px}
table.lines td{padding:8px 0;border-top:1px solid var(--line);vertical-align:top}
table.lines td.num{text-align:right;white-space:nowrap;padding-left:12px}
table.lines tr.sub td{color:var(--muted);font-size:.92rem;padding:4px 0}
table.lines tr.total td{font-weight:700;font-size:1.05rem}
.gap{height:8px}
.question{margin:10px 0 2px}
.question p{margin:2px 0 0}

/* 16/11/2026: service request with type, photos and date */
[hidden]{display:none!important}
.lbl{font-size:.92rem;color:var(--muted);margin:10px 0 6px}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.chips button{width:auto;min-height:38px;padding:0 12px;background:transparent;color:var(--text);border:1px solid var(--line);font-weight:400}
.chips button.on{background:var(--brand);color:#fff;border-color:var(--brand)}
.thumbs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 8px}
.thumb{position:relative;width:72px;height:72px}
.thumb img{width:72px;height:72px;object-fit:cover;border-radius:10px;border:1px solid var(--line);display:block}
.thumb button.x{position:absolute;top:-8px;right:-8px;width:26px;min-height:26px;height:26px;border-radius:50%;padding:0;background:var(--text);color:var(--card);font-size:1rem}
