:root {
  --c: #0f766e; --c2: #115e59; --bg: #f8fafc; --card: #fff; --tx: #0f172a; --mu: #64748b; --bd: #e2e8f0;
  --ok: #15803d; --warn: #b45309; --err: #b91c1c; --r: 14px;
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--tx); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
h1, h2, h3 { margin: .2em 0 .5em; line-height: 1.25; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
a { color: var(--c); }
img { max-width: 100%; }
.center { text-align: center; } .muted { color: var(--mu); } .small { font-size: .875rem; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; } .grow { flex: 1; } .right { margin-left: auto; }
.wrap { max-width: 720px; margin: 0 auto; padding: 1rem 1rem 5.5rem; }
.wide { max-width: 1100px; }

header.top { position: sticky; top: 0; z-index: 1000; background: var(--c); color: #fff; padding: .6rem 1rem; display: flex; align-items: center; gap: .6rem; }
header.top b { font-size: 1.15rem; } header.top button { background: transparent; border: 1px solid #fff8; color: #fff; padding: .35rem .8rem; min-height: 40px; }

nav.tabs { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000; display: flex; background: #fff; border-top: 1px solid var(--bd); padding-bottom: env(safe-area-inset-bottom); }
nav.tabs button { flex: 1; border: 0; border-radius: 0; background: none; color: var(--mu); padding: .55rem .2rem; font-size: .8rem; min-height: 58px; }
nav.tabs button[aria-current="page"] { color: var(--c); font-weight: 700; box-shadow: inset 0 3px 0 var(--c); }
nav.tabs span { display: block; font-size: 1.35rem; line-height: 1.1; }

.card { background: var(--card); border: 1px solid var(--bd); border-radius: var(--r); padding: 1rem; margin-bottom: 1rem; }
button, .btn { font: inherit; border: 0; border-radius: 12px; padding: .7rem 1.1rem; min-height: 48px; background: #e2e8f0; color: var(--tx); cursor: pointer; }
button.primary { background: var(--c); color: #fff; font-weight: 600; }
button.primary:hover { background: var(--c2); }
button.danger { background: #fee2e2; color: var(--err); }
button.ok { background: var(--ok); color: #fff; font-weight: 600; }
button.big { width: 100%; font-size: 1.15rem; min-height: 58px; }
button:disabled { opacity: .55; cursor: wait; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

label { display: block; margin: .7rem 0 .25rem; font-weight: 600; font-size: .95rem; }
label.check { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
input, select, textarea { font: inherit; width: 100%; padding: .65rem .8rem; min-height: 48px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; }
input[type="checkbox"], input[type="radio"] { width: 24px; min-height: 24px; height: 24px; flex: none; }
fieldset { border: 1px solid var(--bd); border-radius: 10px; padding: .4rem .8rem .8rem; margin: 0 0 .6rem; } legend { font-weight: 600; padding: 0 .3rem; }
.checks { list-style: none; padding: 0; } .checks li { padding: .4rem .6rem; border-radius: 8px; margin: .3rem 0; word-break: break-word; }
.checks .ok { background: #dcfce7; } .checks .err { background: #fee2e2; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .8rem; }

#map { height: 46vh; min-height: 260px; border-radius: var(--r); border: 1px solid var(--bd); margin-bottom: 1rem; z-index: 0; }
.suggest { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bd); border-radius: 10px; background: #fff; max-height: 240px; overflow: auto; }
.suggest li button { width: 100%; text-align: left; background: none; border-radius: 0; border-bottom: 1px solid var(--bd); min-height: 44px; padding: .5rem .8rem; }

.driver { display: flex; gap: .8rem; align-items: center; padding: .8rem; border: 2px solid var(--bd); border-radius: var(--r); background: #fff; margin-bottom: .6rem; width: 100%; text-align: left; }
.driver[aria-pressed="true"] { border-color: var(--c); background: #f0fdfa; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #ccfbf1; display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.price { font-size: 1.25rem; font-weight: 700; color: var(--c); white-space: nowrap; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 99px; font-size: .8rem; font-weight: 600; background: #e2e8f0; }
.b-ok { background: #dcfce7; color: var(--ok); } .b-warn { background: #fef3c7; color: var(--warn); } .b-err { background: #fee2e2; color: var(--err); } .b-c { background: #ccfbf1; color: var(--c2); }

.qr { background: #fff; padding: .8rem; border-radius: var(--r); border: 1px solid var(--bd); max-width: 300px; margin: 0 auto; }
.qr svg { width: 100%; height: auto; display: block; }
.stars button { font-size: 2rem; background: none; min-height: 48px; padding: 0 .2rem; color: #cbd5e1; }
.stars button[aria-pressed="true"] { color: #f59e0b; }
.switch { font-size: 1.25rem; min-height: 64px; width: 100%; }
.stat { flex: 1 1 140px; } .stat b { display: block; font-size: 1.5rem; color: var(--c); }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--bd); vertical-align: top; }
.scroll { overflow-x: auto; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; } .thumbs a img { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--bd); }
.photo-in img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; display: block; margin-top: .3rem; }

#toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); z-index: 2000; max-width: 92vw; }
#toast div { background: #0f172a; color: #fff; padding: .7rem 1rem; border-radius: 10px; margin-top: .4rem; box-shadow: 0 4px 16px #0003; }
#toast div.err { background: var(--err); }
dialog { border: 0; border-radius: var(--r); padding: 1.2rem; width: min(440px, 94vw); }
dialog::backdrop { background: #0008; }
.alert { padding: .8rem 1rem; border-radius: 10px; background: #fef3c7; color: #78350f; margin-bottom: 1rem; }
.alert.err { background: #fee2e2; color: #7f1d1d; } .alert.ok { background: #dcfce7; color: #14532d; }
.steps { display: flex; justify-content: space-between; font-size: .8rem; margin: .5rem 0 1rem; }
.steps span { flex: 1; text-align: center; padding: .3rem; border-bottom: 4px solid var(--bd); color: var(--mu); }
.steps span.on { border-color: var(--c); color: var(--c); font-weight: 700; }
@media (min-width: 900px) { nav.tabs { position: static; max-width: 1100px; margin: 0 auto; border: 0; } nav.tabs button { min-height: 50px; } .wrap { padding-bottom: 2rem; } }
.google-credit { font-family:Roboto,Arial,sans-serif; font-size:14px; font-weight:500; letter-spacing:0; color:#5e5e5e; margin:12px 0; }
