:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #162b29;
  background: #f4f8f5;
  font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; }
.screen {
  width: min(100%, 580px);
  min-height: 100dvh;
  margin: auto;
  padding: 12px 13px calc(14px + env(safe-area-inset-bottom));
}
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 22px; line-height: 1.1; margin-bottom: 0; }
h2 { font-size: 17px; line-height: 1.2; margin-bottom: 0; }
h3 { font-size: 14px; line-height: 1.2; margin: 0 0 2px; }
.hero { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.owner-stats-open { margin-left: auto; border: 1px solid #b9deca; border-radius: 9px; background: #eaf7ee; color: #236c49; padding: 8px; font: inherit; font-size: 11px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.mark { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 11px; background: #d8f3de; font-size: 21px; }
.eyebrow { margin: 0 0 2px; color: #52836d; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.intro { font-size: 12px; line-height: 1.35; color: #42645a; margin-bottom: 9px; }
.card, .address-card { background: #fff; border: 1px solid #dbe9df; border-radius: 14px; box-shadow: 0 2px 10px #173f2810; }
.card { padding: 12px; margin-bottom: 12px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.symbol { font-size: 19px; }
.field { display: block; font-weight: 700; margin: 6px 0; }
.field small, .switch-row small { display: block; color: #638074; font-weight: 400; line-height: 1.25; margin-top: 2px; }
.field input, .time-pair input { display: block; width: 100%; height: 38px; border: 1px solid #cadcd0; border-radius: 9px; padding: 0 10px; background: #f8fbf9; color: #162b29; font: inherit; margin-top: 4px; }
.field input:focus, .time-pair input:focus { outline: 2px solid #52b878; }
.field input:disabled { opacity: .5; }
.card:not(.editor) .field { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 3px 0; }
.card:not(.editor) .field input { width: 116px; margin-top: 0; }
.rule { border-top: 1px solid #ebf1ed; margin: 7px 0; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch-row input { width: 22px; height: 22px; accent-color: #218b5a; }
.time-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 5px; }
.time-pair label { font-size: 12px; font-weight: 700; color: #44695a; }
.time-pair input { height: 35px; }
.hint { font-size: 11px; line-height: 1.3; color: #6a8377; margin: 6px 0; }
.primary, .add { width: 100%; height: 37px; border: 0; border-radius: 9px; font: inherit; font-weight: 750; cursor: pointer; }
.primary { background: #218b5a; color: #fff; margin-top: 5px; }
.primary:disabled { opacity: .45; cursor: default; }
.outside { margin: 0 2px 7px; }
.outside h2 span { font-size: 12px; color: #729183; font-weight: 500; }
.address-list { display: grid; gap: 7px; }
.address-card { overflow: hidden; }
.address-card-top { display: flex; align-items: center; gap: 9px; min-height: 55px; padding: 8px 10px; cursor: pointer; list-style: none; }
.address-card-top::-webkit-details-marker { display: none; }
.address-number { display: grid; place-items: center; flex: 0 0 26px; height: 26px; border-radius: 8px; background: #e7f5e8; color: #277348; font-weight: 800; font-size: 12px; }
.address-card-main { flex: 1; min-width: 0; }
.address-card h3 { overflow-wrap: anywhere; }
.address-card p { color: #668075; font-size: 11px; margin-bottom: 0; }
.chevron { color: #5c8b70; font-size: 22px; line-height: 1; transition: transform .15s; }
.address-card[open] .chevron { transform: rotate(180deg); }
.address-actions { display: flex; gap: 6px; padding: 0 10px 10px 45px; flex-wrap: wrap; }
.address-actions button, .close { border: 1px solid #d7e7dd; background: #f6faf7; border-radius: 8px; color: #236c49; padding: 7px 9px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }
.address-actions .danger { color: #ad4a43; }
.add { border: 1px dashed #6fb78a; color: #218b5a; background: #eaf7ee; margin-top: 8px; }
.editor { margin-top: 14px; }
.editor .section-heading { margin-bottom: 6px; }
.editor .field { margin: 10px 0; }
.editor .field input { height: 44px; }
.close { font-size: 16px; padding: 5px 10px; }
.options, .queue-options { display: grid; gap: 6px; }
.options button, .queue-options button { width: 100%; text-align: left; border: 1px solid #d9e9df; background: #f8fbf9; border-radius: 9px; padding: 9px 11px; color: #254737; font: inherit; cursor: pointer; }
.queue-options button.selected { border-color: #218b5a; background: #e7f6ec; }
.queue-options small { display: block; color: #5a806b; font-size: 11px; margin-top: 2px; }
.field-title { font-weight: 700; margin: 14px 0 3px; }
.notice { padding: 9px 11px; border-radius: 9px; background: #e7f6ec; color: #266d49; margin: 0 0 9px; font-size: 12px; }
.notice.error { background: #fff0ec; color: #a94637; }
.stats-overlay { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: #10271c99; }
.stats-card { width: min(100%, 420px); padding: 18px; border-radius: 16px; background: #fff; box-shadow: 0 12px 35px #10271c33; }
.stats-card p { margin: 10px 0; font-size: 14px; }
.stats-card strong { float: right; }
[hidden] { display: none !important; }
@media (max-width: 360px) { .owner-stats-open span { display: none; } }
@media (min-height: 760px) {
  .screen { padding-top: 20px; }
  .card { padding: 16px; margin-bottom: 17px; }
  .address-card-top { min-height: 62px; }
  .address-list { gap: 9px; }
}
