
body.public-body.app-shell {
    margin: 0;
    font-family: 'Rawline', sans-serif;
    background: linear-gradient(180deg, #eef4ff 0%, #f5f7fb 180px, #f4f6f9 100%);
    color: #1f2937;
    padding-bottom: 86px;
}

.app-header.govbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(19,81,180,.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(19,81,180,.18);
}

.topbar-inner.mobile-first {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
}

.brand-wrap.brand-link { text-decoration: none; color: #fff; display: flex; gap: 12px; align-items: center; }
.brand-mark {
    width: 42px; height: 42px; border-radius: 14px;
    background: rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center;
    font-weight: 800; letter-spacing:.04em;
}
.eyebrow { font-size: 11px; opacity: .9; text-transform: uppercase; letter-spacing: .08em; }
.brand-link h1 { margin: 0; font-size: 18px; line-height: 1.1; }
.mobile-install-chip {
    border: 0; background: rgba(255,255,255,.16); color: #fff; border-radius: 999px;
    padding: 10px 12px; font-weight: 700; font-size: 13px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.mobile-install-chip.hidden { display:none; }
.desktop-nav { display: none; }
.page-content.app-main { padding-top: 18px; padding-bottom: 18px; }
.mobile-home-hero {
    background: linear-gradient(145deg, #1351b4 0%, #0b3f92 100%);
    color: #fff; border-radius: 24px; padding: 22px 18px; margin-bottom: 18px;
    box-shadow: 0 18px 40px rgba(19,81,180,.24);
}
.mobile-home-hero h2 { margin: 0 0 8px; font-size: 26px; line-height: 1.05; }
.mobile-home-hero p { margin: 0; color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.45; }
.mobile-install-hint {
    display: inline-flex; margin-top: 14px; padding: 8px 12px; gap: 8px; align-items:center;
    background: rgba(255,255,255,.14); border-radius: 999px; font-size: 12px; font-weight: 700;
}
.category-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin-bottom: 18px;
}
.category-card {
    text-decoration: none; color: #0f172a; background: #fff; border-radius: 22px; padding: 16px 14px;
    min-height: 124px; box-shadow: 0 12px 28px rgba(15,23,42,.08); position: relative; overflow: hidden;
    display:flex; flex-direction:column; justify-content:space-between; border: 1px solid rgba(15,23,42,.04);
    transition: transform .12s ease, box-shadow .12s ease;
}
.category-card:active { transform: scale(.98); }
.category-card::before {
    content: ''; position: absolute; inset: 0 auto auto 0; width: 100%; height: 5px; background: var(--accent, #1351b4);
}
.category-icon {
    width: 52px; height: 52px; border-radius: 18px; display:flex; align-items:center; justify-content:center;
    background: color-mix(in srgb, var(--accent, #1351b4) 16%, #fff); font-size: 28px;
}
.category-card h3 { margin: 12px 0 6px; font-size: 16px; line-height:1.15; }
.category-card p { margin:0; color:#64748b; font-size: 12px; line-height:1.35; }
.mobile-quick-actions { display:grid; gap: 12px; }
.mobile-action-card {
    background: #fff; border-radius: 18px; padding: 16px; display:flex; align-items:center; justify-content:space-between;
    text-decoration:none; color:#0f172a; box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.mobile-action-card strong { display:block; font-size: 15px; }
.mobile-action-card small { color:#64748b; }
.mobile-action-icon {
    width: 46px; height: 46px; border-radius: 16px; background: #e8f0ff; display:flex; align-items:center; justify-content:center; font-size: 24px;
}
.mobile-bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.98);
    backdrop-filter: blur(10px); border-top: 1px solid rgba(148,163,184,.25); display:grid; grid-template-columns: repeat(3,1fr);
    padding: 8px max(14px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
.mobile-bottom-nav a {
    display:flex; flex-direction:column; align-items:center; justify-content:center; text-decoration:none; color:#64748b; gap:4px; font-weight:700; font-size: 11px;
}
.mobile-bottom-nav a.is-active { color:#1351b4; }
.mobile-bottom-nav span { font-size: 20px; }
.mobile-form-shell, .mobile-query-shell { background:#fff; border-radius: 22px; padding: 18px; box-shadow: 0 14px 28px rgba(15,23,42,.08); }
.mobile-page-header { margin-bottom: 14px; }
.mobile-page-header h2 { margin: 8px 0 6px; font-size: 24px; }
.mobile-page-header p { margin: 0; color:#64748b; }
.mobile-page-header .badge { display:inline-flex; padding:7px 10px; border-radius:999px; background:#e8f0ff; color:#1351b4; font-weight:700; font-size:12px; }
.mobile-form-shell select,
.mobile-form-shell input,
.mobile-form-shell textarea,
.mobile-query-shell input {
    width: 100%; border:1px solid #dbe4f0; border-radius: 14px; padding: 13px 14px; font-size: 15px; background:#fbfcfe;
}
.mobile-form-shell label, .mobile-query-shell label { display:block; font-weight:700; margin: 14px 0 8px; }
.mobile-grid-single { display:grid; gap: 14px; grid-template-columns: 1fr; }
.app-map-toolbar { display:flex; gap:8px; flex-wrap:wrap; margin: 14px 0 12px; }
.btn.btn-inline, .btn.btn-secondary.btn-inline, .btn.btn-outline.btn-inline {
    width:auto; padding:10px 12px; border-radius: 12px; font-size: 13px; font-weight:700;
}
.app-map {
    height: 290px; border-radius: 20px; overflow:hidden; box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
}
.help-text { color:#64748b; font-size: 13px; }
.coords-card { margin-top: 12px; }
.btn.btn-block.btn-large, .mobile-primary-button {
    display:block; width:100%; border:0; border-radius: 16px; padding: 15px 16px; font-size: 16px; font-weight: 800;
    background: linear-gradient(135deg, #1351b4 0%, #0b3f92 100%); color:#fff; box-shadow: 0 16px 30px rgba(19,81,180,.28);
}
.mobile-primary-button.loading { opacity:.88; pointer-events:none; }
.checkbox-inline.app-checkbox { display:flex; gap: 10px; align-items:center; }
.checkbox-inline.app-checkbox input { width:auto; }
.form-feedback {
    margin-top: 12px; padding: 12px 14px; border-radius: 14px; background:#eafaf0; color:#1f7a37; font-weight:700; display:none;
}
.inline-actions.mobile-inline { display:grid; grid-template-columns: 1fr; gap:10px; }
.query-result-card { background:#fff; border-radius: 22px; padding: 18px; margin-top: 16px; box-shadow: 0 14px 28px rgba(15,23,42,.08); }
.mobile-status-badge { display:inline-flex; align-items:center; justify-content:center; padding: 9px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background:#e8f0ff; color:#1351b4; }
.query-map { height: 220px; border-radius: 18px; overflow:hidden; margin-top: 12px; }
.install-sheet {
    position: fixed; left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 70; background:#fff;
    border-radius: 24px; padding: 18px; box-shadow: 0 22px 46px rgba(15,23,42,.18); display:none;
}
.install-sheet.show { display:block; }
.install-sheet h3 { margin: 0 0 6px; font-size:18px; }
.install-sheet p { margin:0 0 14px; color:#64748b; line-height:1.45; }
.install-sheet-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.install-sheet-actions .btn { width:100%; border-radius:14px; }
@media (min-width: 900px) {
    body.public-body.app-shell { padding-bottom: 0; }
    .desktop-nav { display:flex; gap:16px; }
    .mobile-install-chip { display:none !important; }
    .page-content.app-main { padding-top: 28px; }
    .mobile-bottom-nav { display:none; }
    .install-sheet { left: auto; right: 24px; width: 360px; }
    .mobile-home-hero { padding: 28px; }
    .category-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .mobile-grid-single { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .inline-actions.mobile-inline { grid-template-columns: 1fr auto; align-items:end; }
}
