* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: #eef1f4; color: #1c2430; }
.app { max-width: 430px; margin: 0 auto; background: #fff; min-height: 100vh; display: flex; flex-direction: column; }
.head { background: #14213d; color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.head-title { font-weight: 700; font-size: 17px; }
.head-sub { font-size: 12px; opacity: .8; margin-top: 2px; }
.head-actions { display: flex; gap: 6px; }
.icon-btn { background: rgba(255,255,255,.15); color: #fff; border: none; border-radius: 10px; font-size: 18px; padding: 8px 11px; cursor: pointer; }
main { padding: 14px; flex: 1; }
h2 { font-size: 20px; margin: 6px 0 10px; }
.muted { color: #5b6b7d; font-size: 14px; margin: 0 0 14px; }
.big { text-align: center; font-size: 44px; margin: 14px 0 2px; }
.search { width: 100%; padding: 13px 14px; font-size: 16px; border: 2px solid #d5dce4; border-radius: 12px; margin-bottom: 12px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.card { border-radius: 14px; padding: 12px; background: #f4f6f8; }
.card b { font-size: 22px; display: block; }
.card span { font-size: 13px; color: #5b6b7d; }
.card.warn { background: #fdecec; } .card.warn b { color: #c0392b; }
.card.ok { background: #e6f6ec; } .card.ok b { color: #1a7a3a; }
.section { font-size: 14px; font-weight: 700; margin: 16px 0 8px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid #e2e7ec; border-radius: 12px; margin-bottom: 8px; background: #fff; cursor: pointer; }
.row small { color: #5b6b7d; display: block; font-size: 13px; }
.row .rname { font-weight: 700; }
.badge { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.red { background: #fdecec; color: #c0392b; } .green { background: #e6f6ec; color: #1a7a3a; }
.amber { background: #fef3d8; color: #8a5a00; }
.btn { display: block; width: 100%; text-align: center; padding: 15px; font-size: 17px; font-weight: 700; border: none; border-radius: 14px; margin: 10px 0; cursor: pointer; }
.btn-dark { background: #14213d; color: #fff; } .btn-green { background: #1a9e4b; color: #fff; }
.btn-light { background: #eef1f4; color: #1c2430; }
.btn-danger { background: #fdecec; color: #c0392b; }
.btn.inline { width: auto; display: inline-block; padding: 11px 16px; margin: 0; font-size: 15px; }
.btn:disabled { opacity: .5; }
.overdue-banner { background: #c0392b; color: #fff; border-radius: 12px; padding: 13px; font-size: 15px; margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #eef1f4; font-size: 15px; gap: 12px; }
.kv span:last-child { font-weight: 600; text-align: right; }
.grid-zone { margin-bottom: 14px; }
.grid-zone h4 { margin: 0 0 6px; font-size: 14px; }
.spots { display: flex; flex-wrap: wrap; gap: 8px; }
.spot { width: 52px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: #fff; border: none; cursor: pointer; }
.spot.avail { background: #1a9e4b; } .spot.taken { background: #d64545; }
.map { position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 12px; }
.map img { width: 100%; display: block; }
.mapchip { position: absolute; background: rgba(20,33,61,.92); color: #fff; font-weight: 800; font-size: 20px; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; cursor: pointer; }
.field { margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px; font-size: 16px; border: 2px solid #d5dce4; border-radius: 12px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 2px solid #d5dce4; border-radius: 12px; margin-bottom: 12px; font-size: 16px; }
.toggle { font-weight: 800; border: none; background: none; font-size: 16px; cursor: pointer; }
.toggle.on { color: #1a7a3a; } .toggle.off { color: #8a94a3; }
.calc { background: #eef4ff; border-radius: 12px; padding: 13px; font-size: 15px; margin-bottom: 12px; }
.calc b { font-size: 19px; }
.nav { display: flex; border-top: 1px solid #e2e7ec; position: sticky; bottom: 0; background: #fff; }
.nav button { flex: 1; text-align: center; padding: 12px 0 14px; font-size: 12px; font-weight: 700; color: #5b6b7d; background: none; border: none; cursor: pointer; }
.nav button.active { color: #14213d; }
.photo-box { background: #f4f6f8; border: 2px dashed #c3ccd6; border-radius: 12px; padding: 16px 12px; text-align: center; color: #5b6b7d; font-size: 14px; margin-bottom: 12px; }
.photo-box img { width: 100%; border-radius: 8px; display: block; }
.note { font-size: 13px; color: #5b6b7d; margin-top: 10px; }
.error { background: #fdecec; color: #c0392b; border-radius: 12px; padding: 12px; font-size: 15px; margin-bottom: 12px; font-weight: 600; }
.empty { color: #5b6b7d; font-size: 15px; padding: 8px 0; }
.row-inline { display: flex; gap: 8px; align-items: stretch; }
.row-inline select, .row-inline input { flex: 1; }
.radio-row { display: flex; gap: 16px; margin: 8px 0 12px; font-size: 16px; }
.radio-row label { display: flex; gap: 6px; align-items: center; }
