[hidden] { display: none !important; }
:root {
  --accent: #0b57d0; --brand: #14161a; --gold: #ffc928; --red: #c62828; --ink: #16181d; --muted: #646b76; --line: #e4e6ea; --bg: #f4f5f7; --card: #fff; --ok: #15803d; --warm: #b45309;
  --top: env(safe-area-inset-top, 0px); --bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.4;
  color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; overscroll-behavior-y: none; }
#app { max-width: 640px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .ok { color: var(--ok); } .bad { color: var(--red); }

.bar { position: sticky; top: 0; z-index: 5; background: var(--card); border-bottom: 1px solid var(--line); padding: calc(var(--top) + .6rem) 1rem .6rem; }
.bar .line { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; }
.bar h1 { font-size: 1.25rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.plain { background: none; border: 0; color: var(--accent); padding: .5rem 0; min-height: 44px; min-width: 44px; }
.tabs { display: flex; background: var(--bg); border-radius: 10px; padding: 3px; margin-top: .35rem; }
.tabs button { flex: 1; border: 0; background: none; border-radius: 8px; min-height: 38px; font-size: .92rem; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: var(--card); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px #0002; }

.list { background: var(--card); }
.item { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.item .who { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: .8rem 0 .8rem 1rem; }
.item b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sub { display: block; color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call { flex: none; display: grid; place-items: center; width: 46px; height: 46px; margin: 0 .9rem; border-radius: 50%; background: var(--ok); color: #fff; }
.call svg { width: 21px; height: 21px; fill: currentColor; }
.tag { font-size: .78rem; font-weight: 600; color: var(--warm); } .tag.good { color: var(--ok); } .tag.bad { color: var(--red); }
.empty { text-align: center; color: var(--muted); padding: 3rem 1.5rem; }

.page { padding: 1rem 1rem calc(var(--bottom) + 7rem); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: .9rem; }
.card h2 { font-size: 1rem; margin: 0 0 .5rem; }
label { display: block; font-size: .85rem; color: var(--muted); margin: .75rem 0 .25rem; } label:first-child { margin-top: 0; }
input, select, textarea { width: 100%; border: 1px solid #c9cdd4; border-radius: 10px; padding: .7rem .75rem; background: #fff; min-height: 46px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; align-items: end; }
.check { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-size: .95rem; margin-top: .9rem; min-height: 44px; } .check input { width: 22px; min-height: 22px; accent-color: var(--brand); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips button { border: 1px solid #c9cdd4; background: #fff; border-radius: 999px; padding: .45rem .85rem; min-height: 44px; font-size: .92rem; }
.chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn { display: flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid #c9cdd4; background: #fff; font-weight: 600; color: var(--ink); }
.btn.go { background: var(--brand); border-color: var(--brand); color: var(--gold); } .btn.dial { background: var(--ok); border-color: var(--ok); color: #fff; } .btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn:disabled { opacity: .55; }
.foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: #fffffff2; border-top: 1px solid var(--line); padding: .7rem 1rem calc(var(--bottom) + .7rem); }
.foot > * { max-width: 608px; margin: 0 auto; }
dl { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; margin: 0; font-size: .92rem; } dt { color: var(--muted); } dd { margin: 0; overflow-wrap: anywhere; }
iframe { width: 100%; border: 0; display: block; min-height: 200px; }
.lead { display: flex; gap: .5rem; padding: .65rem 0; border-top: 1px solid var(--line); } .lead:first-of-type { border-top: 0; } .lead > div { flex: 1; min-width: 0; }
.lead p { margin: .15rem 0 0; font-size: .85rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lead button { flex: none; width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.3rem; }
.login { padding: 18vh 1.5rem 2rem; } .login h1 { text-align: center; } .login .btn { margin-top: 1.2rem; }
#toast { position: fixed; left: 1rem; right: 1rem; bottom: calc(var(--bottom) + 5.5rem); z-index: 20; background: var(--ink); color: #fff; border-radius: 12px; padding: .8rem 1rem; text-align: center; max-width: 560px; margin: 0 auto; } #toast.err { background: #8f0000; }
.cities { display: flex; gap: .4rem; overflow-x: auto; margin: 0 -1rem; padding: .1rem 1rem .45rem; scrollbar-width: none; } .cities::-webkit-scrollbar { display: none; }
.cities button { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .85rem; min-height: 40px; font-size: .92rem; }
.cities button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.clock { margin: 0 0 .2rem; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; background: #fffffff5; border-top: 1px solid var(--line); padding-bottom: var(--bottom); }
.nav button { flex: 1; border: 0; background: none; min-height: 52px; color: var(--muted); font-weight: 600; border-top: 2px solid transparent; } .nav button[aria-pressed="true"] { color: var(--brand); border-top-color: var(--gold); }
.list ~ .empty:last-of-type { padding-bottom: calc(var(--bottom) + 6rem); }
.more { padding: 1rem 1rem 0; margin: 0; }
.known { margin-top: .5rem; } .known button { font-size: .85rem; overflow-wrap: anywhere; text-align: left; }
.seg { margin: 0 0 .75rem; }
.v { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin-bottom: .6rem; } .v p { margin: .25rem 0 .4rem; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vtop { display: flex; justify-content: space-between; gap: .5rem; align-items: start; } .pill { flex: none; background: #e6f4ea; color: var(--ok); border-radius: 999px; padding: .1rem .55rem; font-size: .75rem; font-weight: 600; }
.meter { display: inline-block; vertical-align: middle; width: 72px; height: 8px; background: #e4e6ea; border-radius: 4px; overflow: hidden; } .meter i { display: block; height: 100%; background: var(--ok); } .meter i.mid { background: #d98a06; } .meter i.full { background: var(--red); }
.card > .meter { display: block; width: 100%; }
.chips button:disabled { opacity: .45; }
.stars { display: flex; align-items: center; } .stars button { border: 0; background: none; width: 46px; height: 46px; font-size: 1.9rem; line-height: 1; color: #b4b9c2; padding: 0; } .stars button.on { color: #d98a06; } .stars span { margin-left: .5rem; }
.tag.star { color: #b36f00; letter-spacing: .05em; }
.mail { border-left: 3px solid var(--line); padding: .1rem 0 .1rem .7rem; margin: 0 0 .7rem; overflow-wrap: anywhere; } .mail.theirs { border-color: var(--accent); } .said { white-space: pre-wrap; font-size: .95rem; color: var(--ink); max-height: 18rem; overflow: auto; }
.search { margin: .1rem 0 .45rem; } .search input { min-height: 40px; padding: .45rem .75rem; background: var(--bg); border-color: var(--bg); }
.say { white-space: pre-wrap; font-size: .98rem; margin: 0; } .say + .say { margin-top: .6rem; color: var(--muted); font-size: .9rem; }
.lead .sub { display: block; color: var(--muted); font-size: .85rem; } .lead p a { font-size: .85rem; }
.lead input[type=checkbox] { width: 24px; min-height: 24px; height: 24px; margin: .15rem .2rem 0 0; flex: none; accent-color: var(--brand); }
.row { display: flex; gap: .6rem; } .row > * { flex: 1; } .row + .row, .btn + .btn, .row + .btn, .btn + .row { margin-top: .6rem; }
a.btn { text-decoration: none; }
.status { display: inline-block; border-radius: 999px; padding: .1rem .6rem; font-size: .78rem; font-weight: 600; background: #eef0f3; color: var(--muted); }
.status.taken, .status.done, .status.quoted { background: #e6f4ea; color: var(--ok); } .status.offered { background: #fff4d6; color: #8a5a00; } .status.lost { background: #fde8e8; color: var(--red); }
.offerrow { border-top: 1px solid var(--line); padding: .7rem 0; } .offerrow:first-of-type { border-top: 0; }
.hist { font-size: .88rem; border-top: 1px solid var(--line); padding: .5rem 0; } .hist:first-of-type { border-top: 0; }
.note { font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }
.warn { color: var(--warm); }
/* the public offer page */
.offer .page { padding-top: calc(var(--top) + 1.2rem); padding-bottom: calc(var(--bottom) + 2rem); }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; margin: 0 0 1rem; } .brand img { border-radius: 8px; }
.offer h1 { font-size: 1.35rem; margin: 0 0 .4rem; } .offer dl { margin-top: .9rem; gap: .55rem .9rem; font-size: 1rem; } .offer .card.done { border-color: var(--ok); }
.answer .btn { min-height: 56px; font-size: 1.05rem; }
.offer dl { display: block; } .offer dt { font-size: .85rem; margin-top: .75rem; } .offer dd { font-size: 1.02rem; }
.row > .btn + .btn { margin-top: 0; }
