:root {
  --brand: #F37021; --brand-d: #D2560D; --brand-l: #FFF1E7; --ink: #1D2127; --ink2: #5C6570;
  --line: #F1DCCB; --bg: #FFF8F3; --green: #1A7431; --green-l: #E6F4EA; --red: #B42318; --red-l: #FDECEA;
  --r: 18px; --sh: 0 8px 28px rgba(214, 104, 40, .13);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: Heebo, system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-tap-highlight-color: transparent; }
body::before { content: ''; position: fixed; inset: 0 0 auto 0; height: 220px; background: linear-gradient(180deg, #FFE3CF, rgba(255, 248, 243, 0)); z-index: -1; }
main { max-width: 480px; margin: 0 auto; padding: 20px 16px 48px; }
.top { text-align: center; padding: 8px 0 18px; }
.top img { width: 170px; height: auto; display: block; margin: 0 auto 14px; }
h1 { font-size: 26px; line-height: 1.25; margin: 0 0 6px; font-weight: 800; }
.lead { color: var(--ink2); margin: 0; }
.card { background: #fff; border-radius: var(--r); box-shadow: var(--sh); padding: 20px 18px; }
.field { margin-bottom: 16px; }
.field > label, .field > .lbl { display: block; font-weight: 700; margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=search], input[type=password] {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); min-height: 50px;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(243, 112, 33, .15); }
input.bad { border-color: var(--red); }
.err { color: var(--red); font-size: 14px; margin-top: 5px; min-height: 0; }
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.teams label { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 600; cursor: pointer; background: #fff; }
.teams label.wide { grid-column: 1 / -1; }
.teams input { position: absolute; opacity: 0; pointer-events: none; }
.teams label:has(input:checked) { background: var(--brand); border-color: var(--brand); color: #fff; }
.teams label:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(243, 112, 33, .25); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: 18px; border: 0; border-radius: 16px; padding: 14px 18px; min-height: 54px; cursor: pointer; background: #fff; color: var(--ink); box-shadow: 0 2px 10px rgba(214, 104, 40, .12); text-decoration: none; }
.btn.pri { background: linear-gradient(180deg, #F98A46, var(--brand)); color: #fff; box-shadow: 0 10px 24px rgba(243, 112, 33, .32); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; }
.note { font-size: 13px; color: var(--ink2); text-align: center; margin: 14px 4px 0; }
.done { text-align: center; padding: 28px 18px; }
.done .ok { width: 72px; height: 72px; border-radius: 50%; background: var(--green-l); color: var(--green); display: grid; place-items: center; margin: 0 auto 12px; font-size: 38px; font-weight: 800; }
.hide { display: none !important; }
.sr, input.sr { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip-path: inset(50%); white-space: nowrap; inset-inline-start: 0; }
html, body { overflow-x: hidden; }
/* admin */
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.kpi { background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 10px; text-align: center; }
.kpi b { display: block; font-size: 24px; color: var(--brand-d); }
.kpi span { font-size: 13px; color: var(--ink2); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.chip { border: 0; background: #fff; border-radius: 99px; padding: 8px 13px; font: inherit; font-size: 14px; font-weight: 600; box-shadow: 0 2px 8px rgba(214, 104, 40, .12); cursor: pointer; color: var(--ink); }
.chip.on { background: var(--brand); color: #fff; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { background: #fff; border-radius: 16px; box-shadow: var(--sh); padding: 14px; }
.item.isdone { opacity: .62; }
.item .meta { font-size: 14px; color: var(--ink2); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--brand-l); color: var(--brand-d); }
.tag.green { background: var(--green-l); color: var(--green); }
.acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mini { font: inherit; font-size: 14px; font-weight: 700; border: 0; border-radius: 12px; padding: 8px 12px; min-height: 40px; cursor: pointer; background: var(--brand-l); color: var(--brand-d); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mini.wa { background: #25D366; color: #fff; }
.mini.call { background: var(--brand); color: #fff; }
.mini.del { background: none; color: var(--red); margin-inline-start: auto; }
.empty { text-align: center; color: var(--ink2); padding: 30px 10px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 14px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 9; }
.toast.on { opacity: 1; }
