/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Helles Erscheinungsbild (Light Theme) */
  --bg:          #eef1f5;   /* App-Hintergrund — helles, kühles Grau */
  --bg-card:     #ffffff;   /* Karten + Header */
  --bg-card-2:   #f3f5f8;   /* verschachtelte Flächen + Eingabefelder */
  --border:      #e3e7ee;
  --border-hi:   #cdd4df;
  --orange:      #ea580c;   /* kräftiges Orange — Flächen, Buttons, Balken, Fokus */
  --orange-2:    #c2410c;
  --orange-ink:  #b5440c;   /* Orange als TEXT auf hellem Grund (kontraststark) */
  --orange-glow: rgba(234,88,12,0.10);
  --amber:       #b45309;
  --teal:        #0f766e;
  --blue:        #1d4ed8;
  --green:       #047857;
  --gold:        #b7791f;
  --red:         #dc2626;
  --text:        #1b2027;
  --text-dim:    #586172;
  --text-muted:  #8a93a4;
  --font:        'Inter', system-ui, sans-serif;
  --font-num:    'Space Grotesk', system-ui, sans-serif;
  --radius:      14px;
  --radius-sm:   9px;
  --shadow-card: 0 1px 2px rgba(20,30,50,0.04), 0 4px 14px rgba(20,30,50,0.05);
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font);
  min-height: 100vh; min-height: 100dvh; overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* === HEADER === */
.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  padding-top: calc(12px + env(safe-area-inset-top, 0));
}
.header-left { display: flex; align-items: center; gap: 12px; }
.header-right { display: flex; align-items: center; gap: 6px; }
.logo {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-weight: 700; font-size: 22px; color: #fff;
  flex-shrink: 0; box-shadow: 0 6px 16px rgba(234,88,12,0.28);
}
.app-title { font-family: var(--font-num); font-size: 18px; font-weight: 700; letter-spacing: -0.3px; }
.app-sub { font-size: 11px; color: var(--text-dim); margin-top: 1px; }

#sync-badge {
  font-size: 11px; color: var(--text-muted); font-family: var(--font-num);
  padding: 4px 8px; border-radius: 99px; white-space: nowrap;
}
#sync-badge[data-state="busy"] { color: var(--amber); }
#sync-badge[data-state="ok"] { color: var(--green); }
.btn-icon {
  background: none; border: 1px solid var(--border); cursor: pointer;
  color: var(--text-dim); font-size: 15px; width: 34px; height: 34px;
  border-radius: 9px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.btn-icon:hover, .btn-icon:active { color: var(--text); border-color: var(--border-hi); background: var(--bg-card-2); }

/* === TABS === */
.tabs {
  display: flex; gap: 4px; padding: 8px 12px;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  position: sticky; top: calc(64px + env(safe-area-inset-top, 0)); z-index: 90;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 99px; white-space: nowrap;
  background: transparent; border: 1px solid transparent; color: var(--text-dim);
  font-family: var(--font); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: all 0.15s; flex-shrink: 0;
}
.tab .tab-ic { font-size: 15px; }
.tab:hover { color: var(--text); background: var(--bg-card-2); }
.tab.active {
  background: var(--orange-glow); border-color: rgba(234,88,12,0.4); color: var(--orange-ink);
}

/* === MAIN === */
.main { max-width: 1100px; margin: 0 auto; padding: 16px 16px 96px; }
.view { display: none; flex-direction: column; gap: 16px; }
.view.active { display: flex; animation: fade 0.2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.view-head { display: flex; align-items: baseline; justify-content: space-between; }
.view-head h2 { font-size: 19px; font-weight: 700; font-family: var(--font-num); }

/* === KPI GRID === */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 720px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-card);
}
.kpi-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--text-dim); font-weight: 600; }
.kpi-value { font-family: var(--font-num); font-size: 34px; font-weight: 700; line-height: 1.05; margin-top: 6px; }
.kpi-sub { font-size: 11px; color: var(--text-muted); margin-top: 3px; }
.kpi.accent .kpi-value { color: var(--orange-ink); }
.kpi.green  .kpi-value { color: var(--green); }
.kpi.teal   .kpi-value { color: var(--teal); }
.kpi.gold   .kpi-value { color: var(--gold); }
.kpi-bar { height: 4px; background: var(--bg-card-2); border-radius: 2px; margin-top: 8px; overflow: hidden; }
.kpi-bar-fill { height: 100%; background: var(--orange); border-radius: 2px; transition: width 0.5s cubic-bezier(.2,.8,.2,1); }

/* === BIG ADD BUTTON === */
.big-add-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  width: 100%; padding: 20px;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  border: none; border-radius: var(--radius); cursor: pointer; color: #fff;
  font-family: var(--font); box-shadow: 0 10px 26px rgba(234,88,12,0.28);
  transition: transform 0.12s;
}
.big-add-btn:active { transform: scale(0.98); }
.bab-ic { font-size: 30px; font-weight: 300; line-height: 1; }
.bab-txt { font-size: 18px; font-weight: 700; font-family: var(--font-num); }
.bab-sub { font-size: 12px; opacity: 0.9; }

/* === STANDORT-BUTTON (GPS) === */
.geo-btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px 18px;
  background: var(--bg-card); border: 1px solid var(--border-hi); border-radius: var(--radius);
  color: var(--orange-ink); font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: pointer; box-shadow: var(--shadow-card); transition: all 0.14s;
}
.geo-btn:hover { border-color: var(--orange); }
.geo-btn:active { transform: scale(0.99); }
.geo-btn .geo-ic { font-size: 19px; }
.geo-btn.busy { opacity: 0.7; cursor: wait; }

/* === PANELS === */
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--border);
}
.panel-head h3 { font-size: 13px; font-weight: 600; }
.panel-count { font-size: 12px; color: var(--text-muted); font-family: var(--font-num); }
.panel-body { padding: 8px; }
.empty-hint { padding: 22px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* === BESUCH CARD (list item) === */
.bcard {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; transition: border-color 0.15s, transform 0.1s, box-shadow 0.15s; margin-bottom: 8px;
}
.bcard:last-child { margin-bottom: 0; }
.bcard:active { transform: scale(0.99); }
.bcard:hover { border-color: var(--border-hi); box-shadow: var(--shadow-card); }
.bcard-main { flex: 1; min-width: 0; }
.bcard-title { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.bcard-title .laden { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard-meta { font-size: 12px; color: var(--text-dim); margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.bcard-meta .map-link { color: var(--orange-ink); text-decoration: none; border-bottom: 1px dotted rgba(181,68,12,0.45); }
.bcard-meta .map-link:hover { border-bottom-style: solid; }
.bcard-note { font-size: 12px; color: var(--text-muted); margin-top: 5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.bcard-foto { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }
.foto-count { font-size: 11px; color: var(--text-muted); }

/* === STATUS BADGE === */
.sbadge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11px; font-weight: 600; white-space: nowrap; border: 1px solid;
}
.st-offen             { color: var(--text-dim); border-color: var(--border-hi); background: var(--bg-card-2); }
.st-gesprochen        { color: var(--blue);   border-color: rgba(29,78,216,0.35);  background: rgba(29,78,216,0.08); }
.st-material          { color: var(--amber);  border-color: rgba(180,83,9,0.35);   background: rgba(180,83,9,0.08); }
.st-nummer            { color: var(--teal);   border-color: rgba(15,118,110,0.35); background: rgba(15,118,110,0.08); }
.st-wiedervorlage     { color: var(--orange-ink); border-color: rgba(234,88,12,0.4); background: var(--orange-glow); }
.st-abschluss         { color: #fff;          border-color: var(--green);          background: var(--green); }
.st-kein_interesse    { color: var(--red);    border-color: rgba(220,38,38,0.35);  background: rgba(220,38,38,0.07); }
.st-nicht_angetroffen { color: #6b7280;       border-color: rgba(107,114,128,0.35);background: rgba(107,114,128,0.07); }

/* === FILTER BAR === */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.search-input, .filter-select {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; font-family: var(--font);
  outline: none; transition: border-color 0.15s;
}
.search-input { flex: 1 1 100%; }
.filter-select { flex: 1 1 calc(50% - 4px); cursor: pointer; }
.search-input:focus, .filter-select:focus { border-color: var(--orange); }
.list-count { font-size: 12px; color: var(--text-muted); font-family: var(--font-num); }

/* === ROUTE === */
.route-intro h2 { font-size: 19px; font-weight: 700; font-family: var(--font-num); margin-bottom: 4px; }
.route-intro p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.route-group { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.route-group-head { padding: 11px 16px; background: var(--bg-card-2); border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 700; color: var(--orange-ink); display: flex; justify-content: space-between; }
.route-street {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px; border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background 0.12s;
}
.route-street:last-child { border-bottom: none; }
.route-street:active { background: var(--bg-card-2); }
.route-street-name { font-size: 14px; }
.route-pill { font-family: var(--font-num); font-size: 12px; padding: 2px 9px; border-radius: 99px; background: var(--bg-card-2); color: var(--text-muted); border: 1px solid var(--border); }
.route-pill.has { background: var(--orange-glow); color: var(--orange-ink); border-color: rgba(234,88,12,0.35); }

/* === ABSCHLUSS GALLERY === */
.abschluss-card { background: var(--bg-card); border: 1px solid rgba(4,120,87,0.3); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; cursor: pointer; box-shadow: var(--shadow-card); }
.abschluss-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.abschluss-card-title { font-size: 16px; font-weight: 700; }
.abschluss-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.abschluss-fotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* === AUSWERTUNG === */
.aw-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow-card); }
.aw-section h3 { font-size: 13px; font-weight: 600; margin-bottom: 14px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.funnel-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.funnel-label { width: 130px; font-size: 13px; flex-shrink: 0; }
.funnel-track { flex: 1; height: 26px; background: var(--bg-card-2); border-radius: 7px; overflow: hidden; position: relative; }
.funnel-fill { height: 100%; border-radius: 7px; display: flex; align-items: center; padding-left: 10px; font-family: var(--font-num); font-weight: 700; font-size: 13px; color: #fff; min-width: 30px; transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.aw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.aw-mini { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.aw-mini-label { font-size: 12px; color: var(--text-dim); }
.aw-mini-value { font-family: var(--font-num); font-size: 24px; font-weight: 700; margin-top: 4px; }
.aw-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.aw-bar-name { width: 110px; flex-shrink: 0; color: var(--text-dim); }
.aw-bar-track { flex: 1; height: 16px; background: var(--bg-card-2); border-radius: 5px; overflow: hidden; }
.aw-bar-fill { height: 100%; background: linear-gradient(90deg, var(--orange-2), var(--orange)); border-radius: 5px; }
.aw-bar-num { width: 34px; text-align: right; font-family: var(--font-num); font-weight: 600; }

/* === MODAL === */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(22,30,46,0.45); z-index: 200; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 16px; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  width: 100%; max-width: 540px; padding: 20px 22px;
  margin: auto; box-shadow: 0 20px 50px rgba(20,30,50,0.18);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h2 { font-size: 19px; font-weight: 700; font-family: var(--font-num); }
.modal-close { background: transparent; border: 1px solid var(--border); color: var(--text-dim); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; flex-shrink: 0; transition: all 0.15s; }
.modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }

.form-row { display: flex; gap: 12px; }
.form-row.two > * { flex: 1; }
.form-group { margin-bottom: 14px; }
.form-group.grow { flex: 1; }
.form-group label { display: block; font-size: 11px; color: var(--text-dim); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.label-with-action { display: flex; align-items: center; justify-content: space-between; }
.form-input {
  width: 100%; padding: 11px 13px; background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 15px; resize: vertical;
  outline: none; transition: border-color 0.15s;
}
.form-input:focus { border-color: var(--orange); background: var(--bg-card); }
select.form-input { cursor: pointer; }

/* Mic + Standort-Mini-Buttons in Labels */
.mic-btn, .label-action-btn { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-card-2); border: 1px solid var(--border); color: var(--text-dim); font-size: 12px; padding: 5px 10px; border-radius: 99px; cursor: pointer; font-family: var(--font); transition: all 0.15s; text-transform: none; letter-spacing: 0; }
.mic-btn:hover, .label-action-btn:hover { border-color: var(--orange); color: var(--orange-ink); }
.mic-btn.listening { background: var(--orange); color: #fff; border-color: var(--orange); animation: pulse-mic 1.2s infinite; }
@keyframes pulse-mic { 0%,100% { box-shadow: 0 0 0 0 rgba(234,88,12,0.5); } 50% { box-shadow: 0 0 0 7px rgba(234,88,12,0); } }

/* Maps-Link unter dem Straßenfeld */
.maps-inline { margin: -6px 0 14px; }
.maps-inline a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--orange-ink); text-decoration: none; font-weight: 600; }
.maps-inline a:hover { text-decoration: underline; }

/* Status picker */
.status-picker { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px) { .status-picker { grid-template-columns: repeat(4, 1fr); } }
.status-opt {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 11px 6px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg-card-2); cursor: pointer; transition: all 0.13s; text-align: center;
}
.status-opt .so-ic { font-size: 18px; }
.status-opt .so-label { font-size: 11px; font-weight: 600; line-height: 1.2; }
.status-opt.sel { border-width: 2px; transform: translateY(-1px); }
.status-opt.sel.so-gesprochen     { border-color: var(--blue);   background: rgba(29,78,216,0.10); }
.status-opt.sel.so-material       { border-color: var(--amber);  background: rgba(180,83,9,0.10); }
.status-opt.sel.so-nummer         { border-color: var(--teal);   background: rgba(15,118,110,0.10); }
.status-opt.sel.so-wiedervorlage  { border-color: var(--orange); background: var(--orange-glow); }
.status-opt.sel.so-abschluss      { border-color: var(--green);  background: rgba(4,120,87,0.12); }
.status-opt.sel.so-kein_interesse { border-color: var(--red);    background: rgba(220,38,38,0.10); }
.status-opt.sel.so-nicht_angetroffen { border-color: #6b7280;    background: rgba(107,114,128,0.10); }
.status-opt.sel.so-offen          { border-color: var(--border-hi); background: var(--bg-card); }

/* Foto strip */
.foto-hint { font-size: 11px; color: var(--text-muted); text-transform: none; letter-spacing: 0; font-weight: 400; }
.foto-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.foto-strip:empty { display: none; }
.foto-thumb { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.foto-thumb .foto-del { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; border: none; font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.foto-thumb.uploading { display: flex; align-items: center; justify-content: center; background: var(--bg-card-2); font-size: 11px; color: var(--text-dim); }
.foto-add-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--bg-card-2); border: 1px dashed var(--border-hi); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; cursor: pointer; transition: all 0.15s; }
.foto-add-btn:hover { border-color: var(--orange); color: var(--orange-ink); }
.foto-upload-status { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Conditional rows */
.contact-fields, #termin-row { transition: opacity 0.2s; }

/* === MODAL ACTIONS === */
.modal-actions { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.modal-actions .spacer { flex: 1; }
.btn-primary { padding: 11px 20px; background: linear-gradient(135deg, var(--orange), var(--orange-2)); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; cursor: pointer; font-family: var(--font); transition: transform 0.1s; }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary { padding: 11px 18px; background: var(--bg-card-2); color: var(--text-dim); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; font-family: var(--font); }
.btn-secondary:hover { border-color: var(--border-hi); color: var(--text); }
.btn-danger { padding: 11px 16px; background: transparent; color: var(--red); border: 1px solid rgba(220,38,38,0.35); border-radius: var(--radius-sm); font-size: 14px; cursor: pointer; font-family: var(--font); }
.btn-danger:hover { background: rgba(220,38,38,0.08); border-color: var(--red); }

/* === FOTO VIEWER === */
.foto-viewer { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 300; align-items: center; justify-content: center; padding: 20px; }
.foto-viewer.active { display: flex; }
.foto-viewer img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* === TOAST === */
#toast-container { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 400; display: flex; flex-direction: column; gap: 8px; pointer-events: none; width: calc(100% - 32px); max-width: 380px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: var(--bg-card); border: 1px solid var(--border-hi); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(20,30,50,0.16); font-size: 14px; color: var(--text); animation: toast-in 0.25s ease, toast-out 0.3s ease 2.6s forwards; }
.toast.good { border-color: rgba(4,120,87,0.5); }
.toast.win  { border-color: var(--gold); box-shadow: 0 0 30px rgba(183,121,31,0.18); }
.toast-ic { font-size: 20px; flex-shrink: 0; }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateY(20px); opacity: 0; } }

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--border-hi); border-radius: 3px; }

/* === MOBILE === */
@media (max-width: 540px) {
  .modal-overlay.active { padding: 0; }
  .modal { max-width: 100%; min-height: 100dvh; border-radius: 0; border: none; margin: 0; padding: 16px; padding-top: calc(16px + env(safe-area-inset-top,0)); }
  .form-row.two { flex-direction: column; gap: 0; }
  .app-sub { display: none; }
  .header { padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top,0)); }
  .tabs { top: calc(60px + env(safe-area-inset-top, 0)); }
}
