:root {
  --teal: #12807b;
  --teal-dark: #0b5e5a;
  --teal-soft: #e3f2f1;
  --coral: #e2583f;
  --coral-soft: #fdebe7;
  --amber: #f0a83a;
  --amber-soft: #fdf3e1;
  --green: #1f8a4c;
  --green-soft: #e4f4ea;
  --red: #c0352b;
  --red-soft: #fbe6e4;
  --ink: #15302e;
  --ink-2: #4b615f;
  --muted: #7d8f8d;
  --line: #e8e3da;
  --bg: #faf7f2;
  --cream: #fbf7f1;
  --peach: #fde9df;
  --teal-deep: #0a4d4a;
  --card: #ffffff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 48, 46, .05), 0 8px 24px -8px rgba(16, 48, 46, .12);
  --field-border: #d9e1df;
  --focus-ring: 0 0 0 4px rgba(18, 128, 123, .15);
  /* the portal's accent: teal for families and admin, coral for bystanders (set on body below) */
  --accent: var(--teal);
  --accent-soft: var(--teal-soft);
  --accent-ink: var(--teal-dark);
  --accent-hover: var(--teal-dark);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); line-height: 1.5; font-size: 15px; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .75rem; }
a { color: var(--teal-dark); }
img { max-width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- header / nav */
body[data-role="bystander"] { --accent: var(--coral); --accent-soft: var(--coral-soft); --accent-ink: #b2412b; --accent-hover: #c2442d; }
.topbar { background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20;
  box-shadow: 0 6px 20px -16px rgba(16, 48, 46, .35); }
.topbar-inner { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.brand strong { font-size: 1.1rem; letter-spacing: -.01em; }
.brand span { display: block; font-size: .75rem; color: var(--accent-ink); font-weight: 600; }
.topbar .spacer { flex: 1; }
.who { font-size: .85rem; color: var(--ink-2); text-align: right; }
.tabs { max-width: 1120px; margin: 0 auto; padding: 2px 16px 12px; display: flex; gap: 6px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-radius: 99px; padding: 8px 16px; font: inherit;
  font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tabs button:hover:not(:disabled):not(.active) { background: #f3eee6; }
.tabs button.active { background: var(--accent-soft); color: var(--accent-ink); }
.tabs button:disabled { color: #b8c4c3; cursor: not-allowed; }
.tabs .count { background: var(--coral); color: #fff; border-radius: 99px; font-size: .7rem; padding: 1px 7px; margin-left: 4px; }

main { max-width: 1120px; margin: 0 auto; padding: 32px 16px 72px; }

/* ---------- surfaces */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.stack > * + * { margin-top: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.6rem; letter-spacing: -.02em; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }

.banner { border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid; }
.banner .ico { font-size: 1.25rem; line-height: 1.2; }
.banner.info { background: var(--teal-soft); border-color: #bfe0dd; }
.banner.warn { background: var(--amber-soft); border-color: #f3d9a8; }
.banner.danger { background: var(--red-soft); border-color: #f0c2bd; }
.banner.ok { background: var(--green-soft); border-color: #bfe3cc; }
.banner p:last-child { margin: 0; }

/* ---------- buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 12px;
  padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; background: var(--accent); color: #fff;
  box-shadow: 0 6px 16px -8px var(--accent); transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.secondary, .btn.ghost { box-shadow: none; }
.btn.coral { box-shadow: 0 6px 16px -8px rgba(226, 88, 63, .6); }
.btn.danger { box-shadow: 0 6px 16px -8px rgba(192, 53, 43, .5); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.secondary:hover { background: #f6f2ec; }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #9e2a22; }
.btn.coral { background: var(--coral); }
.btn.coral:hover { background: #c2442d; }
.btn.ghost { background: transparent; color: var(--accent-ink); padding: 6px 8px; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.sm { padding: 6px 12px; font-size: .85rem; }
.btn.block { width: 100%; }

label.field { display: block; }
label.field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
label.field > span em { color: var(--coral); font-style: normal; }
input, select, textarea { width: 100%; font: inherit; color: var(--ink); background-color: #fff; border: 1px solid var(--field-border); border-radius: 12px;
  padding: 10px 14px; min-height: 44px; transition: border-color .15s, box-shadow .15s; }
input:hover:not(:disabled), select:hover:not(:disabled), textarea:hover:not(:disabled) { border-color: #b9c9c6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: var(--focus-ring); }
input:disabled, select:disabled, textarea:disabled { background-color: #f4f1ec; color: var(--muted); cursor: not-allowed; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--teal); }
input[type=file] { padding: 8px; }
/* Every dropdown looks the same: no browser arrow, a teal chevron instead. */
select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2312807b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px; }
select:disabled { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a9b6b4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
select option { color: var(--ink); }
textarea { min-height: 84px; resize: vertical; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: none; font: inherit; font-size: .85rem;
  font-weight: 600; color: var(--teal-dark); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { background: var(--teal-soft); }
.pw-toggle:focus-visible { outline: 2px solid rgba(18, 128, 123, .35); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
fieldset { border: 0; padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid var(--line); }
fieldset:last-of-type { border-bottom: 0; }
legend { font-weight: 700; font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 0; }
legend::before { content: ""; width: 4px; height: 18px; border-radius: 4px; background: var(--accent); }
.chips-input { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-input label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--field-border); border-radius: 99px; padding: 7px 14px; cursor: pointer; font-size: .88rem; background: #fff; transition: border-color .15s, background .15s; }
.chips-input label:hover { border-color: var(--teal); }
.chips-input input { width: auto; margin: 0; }
.chips-input label:has(input:checked) { background: var(--teal-soft); border-color: var(--teal); color: var(--teal-dark); }
.code-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; max-width: 180px; }

/* ---------- badges */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 10px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-gray { background: #eef2f2; color: #55696a; }
.b-teal { background: var(--teal-soft); color: var(--teal-dark); }
.b-amber { background: var(--amber-soft); color: #9a6408; }
.b-green { background: var(--green-soft); color: var(--green); }
.b-red { background: var(--red-soft); color: var(--red); }
.b-coral { background: var(--coral-soft); color: #b2412b; }
.verified { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 700; font-size: .82rem; }
.chip { display: inline-block; background: #eef3f2; border-radius: 99px; padding: 2px 10px; font-size: .8rem; margin: 2px 4px 2px 0; color: var(--ink-2); }
.stars { color: var(--amber); letter-spacing: 1px; }
.chip.good { background: var(--green-soft); color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* star picker: inputs are in 5..1 order, shown right-to-left, so ~ selects the lower stars */
.star-pick { border: 0; padding: 0; margin: 0; }
.star-pick legend { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 2px; padding: 0; }
.star-pick legend em { color: var(--coral); font-style: normal; }
.star-row { display: inline-flex; flex-direction: row-reverse; vertical-align: middle; }
.star-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-row label { font-size: 2.2rem; line-height: 1; padding: 2px 3px; color: #d3dcdb; cursor: pointer; transition: color .1s, transform .1s; }
.star-row input:checked ~ label { color: var(--amber); }
.star-row:hover label, .star-row:hover input:checked ~ label { color: #d3dcdb; }
.star-row:hover label:hover, .star-row:hover label:hover ~ label { color: var(--amber); }
.star-row label:hover { transform: scale(1.12); }
.star-row input:focus-visible + label { outline: 2px solid rgba(18, 128, 123, .45); border-radius: 6px; }
.star-word { margin-left: 10px; font-weight: 600; color: var(--ink-2); font-size: .92rem; vertical-align: middle; }
.review { padding: 10px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review-summary { margin: 10px 0 4px; max-width: 320px; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 24px; align-items: center; gap: 8px; font-size: .8rem; }
.bar { height: 6px; background: #eef3f2; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--amber); border-radius: 99px; }

/* ---------- lists */
.list-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.list-item + .list-item { margin-top: 12px; }
.list-item.clickable { cursor: pointer; transition: border-color .15s, transform .15s; }
.list-item.clickable:hover { border-color: var(--accent); transform: translateY(-1px); }
.list-item .grow { flex: 1; min-width: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; color: var(--ink-2); margin: 4px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--teal-soft);
  color: var(--teal-dark); display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; }
.avatar.lg { width: 96px; height: 96px; font-size: 1.8rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checklist li { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.checklist .tick { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; flex-shrink: 0; }
.checklist .done .tick { background: var(--green); color: #fff; }
.checklist .todo .tick { background: #e6ecec; color: var(--muted); }
.checklist .todo { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 12px 0 4px; }
.steps div { height: 6px; border-radius: 6px; background: #e3eaea; }
.steps div.on { background: var(--green); }

.code-box { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%); color: #fff; border-radius: var(--radius); padding: 20px; text-align: center; }
.code-box .code { font-size: 2.6rem; font-weight: 800; letter-spacing: .35em; margin: 6px 0 4px 0.35em; font-variant-numeric: tabular-nums; }
.code-box p { color: #d3ecea; font-size: .88rem; margin: 0; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 2.2rem; margin-bottom: 6px; }

/* ---------- stat tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tile .label { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tile .value { font-size: 2rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 4px; }
.tile .sub { font-size: .82rem; color: var(--ink-2); margin-top: 4px; }
.tile.alert { border-color: #f0c2bd; background: var(--red-soft); }

/* ---------- tables */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #faf7f2; color: var(--ink-2); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f6faf9; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.filters .pill { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 6px 14px; font: inherit; font-size: .85rem; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.filters .pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filters input { max-width: 260px; }

/* ---------- auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .logo { width: 72px; height: 72px; border-radius: 16px; display: block; margin: 0 auto 12px; }
.auth-card h1 { text-align: center; font-size: 1.4rem; }
.auth-card .switch { display: grid; grid-template-columns: 1fr 1fr; background: #eef3f2; border-radius: 10px; padding: 4px; margin: 16px 0; }
.auth-card .switch button { border: 0; background: none; padding: 8px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.auth-card .switch button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth-card .switch { background: #f3eee6; border-radius: 12px; }
/* photo on the left, form on the right; the photo hides on small screens */
.auth-wrap { background: radial-gradient(circle at 15% 10%, var(--peach) 0, transparent 45%), radial-gradient(circle at 90% 90%, var(--teal-soft) 0, transparent 45%), var(--bg); }
.auth-wrap.with-art { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 40px; place-items: stretch; align-content: center;
  padding-inline: max(16px, calc((100% - 1080px) / 2)); }
.auth-wrap.with-art .auth-card { align-self: center; }
.auth-art { position: relative; border-radius: 28px; min-height: 520px; background-size: cover; background-position: center; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10, 77, 74, .5); }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 77, 74, 0) 35%, rgba(10, 45, 43, .85) 100%); }
.auth-art-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; color: #fff; z-index: 1; }
.auth-art-text h2 { font-size: 1.9rem; letter-spacing: -.02em; color: #fff; }
.auth-art-text p { color: #dcefed; margin: 0; max-width: 32em; }
.eyebrow-light { display: inline-block; background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); border-radius: 99px; padding: 5px 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
@media (max-width: 860px) {
  .auth-wrap.with-art { grid-template-columns: 1fr; }
  .auth-art { display: none; }
}

/* ---------- modal & toast */
.modal-back { position: fixed; inset: 0; background: rgba(15, 35, 34, .45); display: grid; place-items: center; padding: 16px; z-index: 50; overflow-y: auto; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 920px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.x { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }

#toasts { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.2); font-size: .9rem; animation: up .2s ease-out; }
.toast.error { background: var(--red); }
.toast.ok { background: var(--green); }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }

.doc-view { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #f8fbfa; }
.doc-view img { display: block; width: 100%; max-height: 260px; object-fit: contain; background: #eef3f2; }
.doc-view .cap { padding: 8px 12px; font-size: .82rem; display: flex; justify-content: space-between; gap: 8px; }
.upload-box { border: 1.5px dashed #c5d3d2; border-radius: 12px; padding: 14px; background: #fbfdfd; }
.upload-box img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; background: #eef3f2; }

.switch-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch-toggle input { display: none; }
.switch-toggle .track { width: 44px; height: 24px; border-radius: 24px; background: #cfd9d8; position: relative; transition: background .2s; }
.switch-toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch-toggle input:checked + .track { background: var(--green); }
.switch-toggle input:checked + .track::after { transform: translateX(20px); }

/* ---------- landing */
.hero { text-align: center; padding: 48px 16px 24px; max-width: 760px; margin: 0 auto; }
.hero img { width: 104px; height: 104px; border-radius: 24px; box-shadow: var(--shadow); }
.hero h1 { font-size: 2.3rem; margin-top: 16px; letter-spacing: -.02em; }
.hero p { font-size: 1.08rem; color: var(--ink-2); }
.portals { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 1000px; margin: 16px auto 0; padding: 0 16px; }
.portal { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); border-top: 5px solid var(--teal); transition: transform .15s; }
.portal:hover { transform: translateY(-2px); }
.portal.coral { border-top-color: var(--coral); }
.portal.amber { border-top-color: var(--amber); }
.portal .icon { font-size: 2rem; }
.portal h2 { margin: 8px 0 6px; }
.portal p { color: var(--ink-2); font-size: .93rem; }
.portal .go { font-weight: 700; color: var(--teal-dark); }
.trust { max-width: 1000px; margin: 40px auto; padding: 0 16px; }
.trust-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-grid .card { padding: 16px; }
.trust-grid .card + .card { margin-top: 0; }
footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px 16px 40px; }

/* ---------- searchable multi-select & place search */
.ms, .place-search { position: relative; }
.ms-control { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 44px; padding: 5px 8px; background: #fff;
  border: 1px solid var(--field-border); border-radius: 12px; cursor: text; transition: border-color .15s, box-shadow .15s; }
.ms-control:focus-within { border-color: var(--teal); box-shadow: var(--focus-ring); }
.ms.disabled .ms-control { background: #f4f1ec; cursor: default; }
.ms-chips { display: contents; }
.ms-chip { display: inline-flex; align-items: center; gap: 2px; background: var(--teal-soft); color: var(--teal-dark); border-radius: 99px;
  padding: 2px 4px 2px 10px; font-size: .85rem; font-weight: 600; }
.ms.disabled .ms-chip { padding-right: 10px; }
.ms-chip button { border: 0; background: none; color: inherit; font-size: 1rem; line-height: 1; cursor: pointer; padding: 0 6px; border-radius: 99px; }
.ms-chip button:hover { background: rgba(11, 94, 90, .12); }
.ms-search { flex: 1; min-width: 120px; border: 0; padding: 4px; min-height: 0; outline: none !important; box-shadow: none !important; background: transparent; }
.ms-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 34px rgba(16, 48, 46, .16); max-height: 260px; overflow-y: auto; }
.ms-list li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.ms-list li.active, .ms-list li[data-opt]:hover { background: var(--teal-soft); }
.ms-list li.ms-empty, .ms-list li.attrib { color: var(--muted); cursor: default; background: none; font-size: .82rem; }
.ms-list li.attrib { border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0; text-align: right; }
.ms-list .addr { display: block; color: var(--muted); font-size: .8rem; }
.place-search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.place-search > input { padding-left: 36px; }
.place-picked { border: 1px solid #cfe5e2; border-radius: 14px; overflow: hidden; background: var(--teal-soft); }
.place-picked .info { padding: 14px 16px; }

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .list-item { flex-direction: column; }
  .hero h1 { font-size: 1.8rem; }
  .kv { grid-template-columns: 1fr; gap: 0 0; }
  .kv dd { margin-bottom: 8px; }
}
