:root {
    --primary: #1156b7;
    --primary-dark: #0d438d;
    --primary-soft: #e8f1ff;
    --surface: #ffffff;
    --surface-soft: #f6f9fe;
    --surface-muted: #edf3fb;
    --border: #d7e2f3;
    --text: #173765;
    --text-soft: #60718e;
    --success: #18a15a;
    --warning: #d28a16;
    --danger: #d9414e;
    --shadow: 0 18px 40px rgba(17, 86, 183, 0.08);
    --shadow-soft: 0 10px 24px rgba(17, 86, 183, 0.06);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f7faff 0%, #edf4fb 100%);
    min-height: 100%;
}

body {
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

.app-body {
    padding: 16px 16px 110px;
}

.app-shell,
.splash-shell {
    width: min(100%, 520px);
    margin: 0 auto;
}

.page-content {
    display: grid;
    gap: 18px;
}

.app-topbar,
.hero-panel,
.section-card,
.form-card,
.info-card,
.stat-card,
.shortcut-card,
.empty-state,
.detail-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.96) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.app-topbar {
    position: sticky;
    top: 12px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 26px;
    backdrop-filter: blur(14px);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 3px;
    border: 2px solid rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.brand-copy strong {
    font-size: 15px;
    line-height: 1.2;
}

.brand-kicker {
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 800;
}

.topbar-actions {
    position: relative;
    flex-shrink: 0;
}

.notify-toggle {
    width: 52px;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-soft);
    display: grid;
    place-items: center;
    position: relative;
    cursor: pointer;
}

.notify-icon {
    font-size: 18px;
    font-weight: 900;
}

.notify-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.notification-drawer {
    position: absolute;
    top: 64px;
    right: 0;
    width: min(360px, calc(100vw - 28px));
    background: rgba(255, 255, 255, 0.99);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: 0 26px 50px rgba(15, 60, 124, 0.18);
    padding: 14px;
    display: none;
    z-index: 60;
}

.notification-drawer.open {
    display: block;
}

.notification-drawer-head strong {
    display: block;
    font-size: 15px;
}

.notification-drawer-head span {
    color: var(--text-soft);
    font-size: 12px;
}

.notification-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.notification-item {
    padding: 12px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.notification-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.notification-item strong {
    font-size: 13px;
}

.notification-item p,
.notification-item span {
    color: var(--text-soft);
    font-size: 12px;
    margin: 0;
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--danger);
    flex-shrink: 0;
}

.notification-item.is-seen .notification-dot {
    opacity: 0;
}

.drawer-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.flash-message {
    padding: 14px 16px;
    border-radius: 18px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 700;
}

.flash-message.success {
    background: rgba(24, 161, 90, 0.12);
    color: #0d7d43;
    border: 1px solid rgba(24, 161, 90, 0.16);
}

.flash-message.error {
    background: rgba(217, 65, 78, 0.12);
    color: #a8212c;
    border: 1px solid rgba(217, 65, 78, 0.16);
}

.hero-panel {
    border-radius: 30px;
    padding: 22px;
    background: linear-gradient(145deg, #0d4e9f 0%, #115ebb 42%, #0b5ac0 100%);
    color: #fff;
    overflow: hidden;
    position: relative;
}

.hero-panel::before,
.hero-panel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.hero-panel::before {
    width: 220px;
    height: 220px;
    top: -120px;
    right: -80px;
}

.hero-panel::after {
    width: 160px;
    height: 160px;
    left: -60px;
    bottom: -80px;
}

.hero-panel h1,
.hero-panel h2 {
    margin: 0 0 10px;
    font-size: 26px;
    line-height: 1.1;
}

.hero-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.65;
    font-size: 14px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.hero-actions,
.action-row,
.archive-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-actions,
.button-row {
    margin-top: 18px;
}

.hero-chip,
.mini-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 700;
}

.stats-grid,
.shortcut-grid,
.card-grid,
.two-col-grid {
    display: grid;
    gap: 14px;
}

.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-card,
.form-card,
.detail-card {
    border-radius: 28px;
    padding: 18px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
}

.section-head h3,
.section-head h2 {
    margin: 0;
    font-size: 18px;
}

.section-link {
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
}

.stat-card,
.shortcut-card,
.info-card {
    border-radius: 24px;
    padding: 16px;
}

.stat-card strong,
.shortcut-card strong,
.info-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.stat-card span,
.shortcut-card span,
.info-card span,
.muted-text,
.empty-state p,
.meta-text {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.shortcut-card {
    min-height: 120px;
    display: grid;
    align-content: start;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.shortcut-card:hover,
.shortcut-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(17, 86, 183, 0.12);
    border-color: rgba(17, 86, 183, 0.22);
}

.shortcut-card .shortcut-badge,
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 12px;
}

.list-stack,
.timeline-stack {
    display: grid;
    gap: 12px;
}

.module-intro,
.section-copy {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.list-card,
.module-card,
.work-card,
.alert-card,
.archive-card,
.announcement-card,
.unit-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface-soft);
    padding: 16px;
}

.list-card h4,
.module-card h4,
.work-card h4,
.alert-card h4,
.archive-card h4,
.announcement-card h4,
.unit-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
}

.card-meta span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-soft);
}

.badge-planlandi,
.badge-alindi,
.badge-medium {
    background: rgba(17, 86, 183, 0.12);
    color: var(--primary);
}

.badge-devam-ediyor,
.badge-aktif,
.badge-inceleniyor,
.badge-ekip-atandi,
.badge-high {
    background: rgba(24, 161, 90, 0.12);
    color: #0b8a48;
}

.badge-tamamlandi,
.badge-cozuldu,
.badge-tamam {
    background: rgba(96, 113, 142, 0.14);
    color: #47607f;
}

.badge-vatandas-onayi-bekleniyor,
.badge-belge-kontrolu,
.badge-onay-sureci,
.badge-warning {
    background: rgba(210, 138, 22, 0.12);
    color: #a56d11;
}

.badge-riskli-yol,
.badge-danger {
    background: rgba(217, 65, 78, 0.12);
    color: #b32935;
}

.badge-low {
    background: rgba(96, 113, 142, 0.14);
    color: #47607f;
}

.info-grid,
.feature-grid {
    display: grid;
    gap: 14px;
}

.feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-contact-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-contact-card {
    min-height: 100%;
}

.detail-panel {
    display: grid;
    gap: 16px;
}

.dashboard-feature-card {
    display: grid;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.98));
}

.dashboard-feature-card-alert {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 251, 255, 0.98));
}

.dashboard-feature-media {
    min-height: 220px;
    background: linear-gradient(140deg, #edf4ff 0%, #dceaff 100%);
}

.dashboard-feature-media img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
}

.dashboard-feature-placeholder {
    min-height: 220px;
    height: 100%;
    display: grid;
    align-content: end;
    gap: 8px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(145deg, #0d4e9f 0%, #2e79d8 100%);
}

.dashboard-feature-placeholder-alert {
    background: linear-gradient(145deg, #1156b7 0%, #4c88d9 55%, #90a8cf 100%);
}

.dashboard-feature-placeholder strong {
    font-size: 22px;
    line-height: 1.1;
}

.dashboard-feature-placeholder span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.6;
}

.dashboard-feature-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.dashboard-feature-body h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
}

.unit-directory-card {
    display: grid;
    gap: 14px;
}

.unit-directory-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.unit-directory-top .badge {
    margin-bottom: 0;
    flex-shrink: 0;
}

.unit-directory-top p {
    margin: 0;
}

.detail-cover {
    width: 100%;
    border-radius: 24px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: #fff;
}

.detail-header {
    display: grid;
    gap: 10px;
}

.detail-header h2,
.detail-header h3 {
    margin: 0;
}

.detail-content {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.detail-content p {
    margin: 0 0 12px;
}

.detail-content p:last-child {
    margin-bottom: 0;
}

.contact-list,
.meta-list,
.status-list {
    display: grid;
    gap: 10px;
}

.contact-item,
.meta-item,
.status-item,
.overview-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
}

.contact-item strong,
.meta-item strong,
.status-item strong,
.overview-item strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

.contact-item span,
.meta-item span,
.status-item span,
.overview-item span {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.reference-box {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(17, 86, 183, 0.1), rgba(17, 86, 183, 0.04));
    border: 1px solid rgba(17, 86, 183, 0.12);
}

.reference-box strong {
    display: block;
    font-size: 20px;
    margin-top: 6px;
}

.helper-text {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.form-hint {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.divider {
    width: 100%;
    height: 1px;
    background: #e5eef9;
    margin: 4px 0;
}

.media-preview {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #fff;
}

.media-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.admin-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(17, 86, 183, 0.08);
    border: 1px solid rgba(17, 86, 183, 0.12);
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.table-card {
    border-radius: 28px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.96) 100%);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.record-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 11px;
    font-weight: 800;
    color: var(--text-soft);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

.filters-bar,
.toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 16px;
}

.toolbar-inline,
.inline-actions,
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.field-grid,
.form-grid {
    display: grid;
    gap: 14px;
}

.field-grid.two,
.form-grid.two,
.two-col-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 800;
}

.input,
.select,
.textarea,
.file-input {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    padding: 14px 15px;
    outline: none;
}

.textarea {
    min-height: 120px;
    resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus,
.file-input:focus {
    border-color: rgba(17, 86, 183, 0.38);
    box-shadow: 0 0 0 4px rgba(17, 86, 183, 0.08);
}

.btn,
.btn-outline,
.btn-soft,
.btn-danger,
.drawer-link,
.table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 16px;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    border: none;
}

.btn {
    background: linear-gradient(180deg, #1a69d2 0%, #0f53af 100%);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-danger {
    background: rgba(217, 65, 78, 0.12);
    color: #b32935;
    border: 1px solid rgba(217, 65, 78, 0.18);
}

.btn-soft {
    background: var(--primary-soft);
    color: var(--primary);
}

.map-block,
.map-picker {
    width: 100%;
    min-height: 280px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #dbe8fb;
}

.empty-state {
    padding: 22px;
    border-radius: 24px;
    text-align: center;
}

.empty-state.compact {
    padding: 16px;
}

.empty-state strong {
    display: block;
    margin-bottom: 6px;
}

.mobile-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(100% - 18px, 520px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    box-shadow: 0 24px 50px rgba(17, 86, 183, 0.12);
    backdrop-filter: blur(14px);
    z-index: 50;
}

.bottom-nav-item {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 10px 4px;
    border-radius: 20px;
    color: var(--text-soft);
}

.bottom-nav-item.active {
    background: var(--primary-soft);
    color: var(--primary);
}

.bottom-nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: #fff;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    font-size: 10px;
    font-weight: 900;
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 800;
}

.splash-body {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 22px 16px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 16%, rgba(116, 178, 255, 0.32), rgba(116, 178, 255, 0) 26%),
        radial-gradient(circle at 86% 14%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 24%),
        linear-gradient(180deg, #eef5ff 0%, #dbeafd 42%, #edf4fb 100%);
}

.splash-body::before,
.splash-body::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(18px);
}

.splash-body::before {
    top: -130px;
    left: -70px;
    width: 260px;
    height: 260px;
    background: rgba(56, 126, 228, 0.18);
}

.splash-body::after {
    right: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    background: rgba(17, 86, 183, 0.12);
}

.splash-shell {
    position: relative;
    z-index: 1;
    width: min(100%, 438px);
}

.splash-card {
    position: relative;
    display: grid;
    gap: 0;
    width: 100%;
    border-radius: 38px;
    padding: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 255, 0.74));
    border: 1px solid rgba(229, 236, 247, 0.98);
    box-shadow: 0 30px 80px rgba(12, 55, 112, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.splash-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: space-between;
    gap: 22px;
    min-height: 390px;
    padding: 18px 18px 108px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(7, 28, 56, 0.18), rgba(6, 29, 56, 0.58)),
        radial-gradient(circle at 78% 14%, rgba(137, 189, 255, 0.24), rgba(137, 189, 255, 0) 24%),
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 18%),
        url('../img/splash-kars-belediye-building.jpg') center 34%/cover no-repeat;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.splash-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 23, 45, 0.08), rgba(6, 23, 45, 0.26) 58%, rgba(6, 23, 45, 0.72) 100%);
}

.splash-hero::after {
    content: "";
    position: absolute;
    inset: auto -18% -70px -10%;
    height: 160px;
    background:
        radial-gradient(circle at 12% 24%, rgba(255, 206, 106, 0.9) 0 18px, transparent 19px),
        radial-gradient(circle at 26% 24%, rgba(255, 206, 106, 0.82) 0 14px, transparent 15px),
        radial-gradient(circle at 44% 26%, rgba(255, 206, 106, 0.78) 0 18px, transparent 19px),
        radial-gradient(circle at 58% 22%, rgba(255, 206, 106, 0.8) 0 16px, transparent 17px),
        radial-gradient(circle at 72% 26%, rgba(255, 206, 106, 0.76) 0 15px, transparent 16px),
        linear-gradient(180deg, rgba(245, 197, 84, 0.85), rgba(245, 197, 84, 0.26));
    clip-path: polygon(0 72%, 6% 68%, 12% 74%, 18% 66%, 24% 74%, 30% 67%, 36% 74%, 42% 66%, 48% 74%, 54% 66%, 60% 74%, 66% 67%, 72% 75%, 78% 68%, 84% 74%, 90% 66%, 96% 72%, 100% 68%, 100% 100%, 0 100%);
    opacity: 0.9;
}

.splash-hero-top,
.splash-brand,
.splash-hero-stats {
    position: relative;
    z-index: 1;
}

.splash-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.splash-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.splash-chip--soft {
    background: rgba(18, 82, 170, 0.4);
}

.splash-brand {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
}

.splash-logo-ring {
    position: relative;
    width: 108px;
    height: 108px;
    display: grid;
    place-items: center;
    padding: 7px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 238, 255, 0.9));
    box-shadow: 0 18px 36px rgba(8, 40, 83, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    animation: splash-float 3.6s ease-in-out infinite;
}

.splash-logo-ring::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.splash-logo-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 4px;
    border: 3px solid rgba(255, 255, 255, 0.94);
}

.splash-copy {
    display: grid;
    gap: 8px;
    color: #fff;
}

.splash-eyebrow {
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.splash-copy h1 {
    margin: 0;
    max-width: 12ch;
    font-size: 34px;
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.splash-copy p {
    margin: 0;
    max-width: 260px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    line-height: 1.62;
}

.splash-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.splash-hero-stat {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09));
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.splash-hero-stat strong {
    color: #fff;
    font-size: 16px;
    line-height: 1;
    letter-spacing: -0.03em;
}

.splash-hero-stat span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    line-height: 1.45;
}

.splash-progress-panel {
    margin-top: -86px;
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(245, 249, 255, 0.985));
    border: 1px solid rgba(223, 232, 245, 0.98);
    box-shadow: 0 22px 42px rgba(17, 86, 183, 0.12);
}

.splash-progress-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.splash-progress-head strong {
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #173456;
}

.splash-progress-head span {
    color: #6c7d95;
    font-size: 12px;
    line-height: 1.58;
}

.splash-progress-state {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(24, 161, 90, 0.12);
    color: #11864a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.loading-line {
    position: relative;
    width: 100%;
    height: 11px;
    border-radius: 999px;
    background: linear-gradient(180deg, #dfeafb 0%, #d4e3fa 100%);
    overflow: hidden;
}

.loading-line span {
    display: block;
    width: 36%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f53af 0%, #4a90ff 52%, #8fc0ff 100%);
    box-shadow: 0 8px 18px rgba(17, 86, 183, 0.22);
    animation: loading-slide 1.55s infinite ease-in-out;
}

.splash-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.splash-status-card {
    position: relative;
    display: grid;
    gap: 4px;
    min-height: 72px;
    padding: 12px 12px 12px 14px;
    border-radius: 18px;
    background: #f3f7fd;
    border: 1px solid rgba(224, 233, 246, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.splash-status-card::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #aebdce;
    box-shadow: 0 0 0 6px rgba(174, 189, 206, 0.14);
}

.splash-status-card strong {
    color: #1b3556;
    font-size: 12px;
    line-height: 1.2;
}

.splash-status-card span {
    color: #73839a;
    font-size: 10px;
    line-height: 1.45;
}

.splash-status-card.is-active::before {
    background: #1a9b58;
    box-shadow: 0 0 0 6px rgba(26, 155, 88, 0.14);
}

.splash-status-card.is-active strong {
    color: var(--primary);
}

@keyframes loading-slide {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(210%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes splash-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@media (max-width: 480px) {
    .splash-body {
        padding: 16px 10px;
    }

    .splash-card {
        border-radius: 32px;
        padding: 10px;
    }

    .splash-hero {
        min-height: 364px;
        gap: 18px;
        padding: 16px 16px 96px;
        border-radius: 26px;
    }

    .splash-brand {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: start;
        gap: 14px;
    }

    .splash-logo-ring {
        width: 88px;
        height: 88px;
        padding: 6px;
    }

    .splash-copy h1 {
        max-width: 100%;
        font-size: 29px;
    }

    .splash-copy p {
        max-width: 100%;
        font-size: 12px;
    }

    .splash-hero-stats {
        gap: 8px;
    }

    .splash-hero-stat {
        padding: 10px 11px;
        border-radius: 16px;
    }

    .splash-progress-panel {
        margin-top: -72px;
        padding: 16px;
        border-radius: 24px;
    }

    .splash-progress-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .splash-status-grid {
        gap: 8px;
    }

    .splash-status-card {
        min-height: 68px;
        padding: 10px 10px 10px 12px;
        border-radius: 16px;
    }
}

.admin-body {
    background: #edf4fb;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
}

.admin-sidebar {
    padding: 24px 18px;
    background: linear-gradient(180deg, #0d4c9b 0%, #0b4188 100%);
    color: #fff;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.admin-brand img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
}

.admin-brand strong {
    display: block;
    font-size: 16px;
}

.admin-brand span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav-item {
    padding: 13px 14px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

.admin-nav-item.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.admin-main {
    padding: 24px;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.admin-topbar h1 {
    margin: 0 0 6px;
}

.admin-topbar p {
    margin: 0;
    color: var(--text-soft);
}

.admin-topbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.admin-userbox {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.admin-userbox a {
    color: var(--primary);
}

.admin-content {
    display: grid;
    gap: 18px;
}

.admin-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1.2fr 1fr;
}

.admin-grid.wide {
    grid-template-columns: 1.1fr 1.4fr;
}

.admin-table-wrap {
    overflow: auto;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

th,
td {
    padding: 14px 16px;
    border-bottom: 1px solid #e7eef8;
    text-align: left;
    font-size: 13px;
    vertical-align: top;
}

th {
    color: var(--text-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.admin-login-card {
    width: min(100%, 430px);
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    border: 1px solid var(--border);
    box-shadow: 0 28px 60px rgba(17, 86, 183, 0.12);
}

.admin-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.admin-login-brand img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
}

.admin-login-brand strong {
    display: block;
    font-size: 18px;
}

.admin-login-brand span {
    color: var(--text-soft);
    font-size: 12px;
}

.login-hint {
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

@media (max-width: 920px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        padding-bottom: 12px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .field-grid.two,
    .form-grid.two,
    .card-grid,
    .quick-contact-grid,
    .shortcut-grid,
    .two-col-grid,
    .stats-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .notification-drawer {
        right: -4px;
        width: min(360px, calc(100vw - 20px));
    }

    .section-card,
    .form-card,
    .detail-card {
        padding: 16px;
        border-radius: 24px;
    }

    .mobile-bottom-nav {
        width: calc(100% - 14px);
        gap: 4px;
        padding-left: 6px;
        padding-right: 6px;
    }

    .bottom-nav-label {
        font-size: 9px;
    }
}

@media (min-width: 720px) {
    .dashboard-feature-card {
        grid-template-columns: minmax(220px, 260px) 1fr;
    }
}

.app-home-body {
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
    background:
        radial-gradient(circle at top left, rgba(78, 142, 223, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(17, 86, 183, 0.12), transparent 32%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fb 100%);
}

.app-home-shell {
    position: relative;
    width: min(100%, 460px);
}

.app-home-body .page-content {
    gap: 16px;
}

.app-home-body .app-topbar {
    display: none;
}

.home-hero,
.home-status-strip,
.home-section-card,
.home-archive-card,
.home-live-card,
.home-feature-card,
.home-map-card,
.home-quick-card,
.home-utility-card,
.home-mini-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
    border: 1px solid rgba(214, 226, 242, 0.96);
    box-shadow: 0 22px 44px rgba(15, 67, 137, 0.08);
}

.home-hero {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 22px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(9, 35, 79, 0.8), rgba(17, 86, 183, 0.72)),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(160deg, #274c7e 0%, #153f79 26%, #1156b7 66%, #7da6df 100%);
}

.home-hero::before,
.home-hero::after {
    content: '';
    position: absolute;
    inset: auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.home-hero::before {
    width: 260px;
    height: 260px;
    top: -140px;
    right: -70px;
}

.home-hero::after {
    width: 220px;
    height: 220px;
    left: -120px;
    bottom: -120px;
}

.home-hero-top {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.home-hero-brand {
    display: grid;
    gap: 16px;
}

.home-hero-logo-ring {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 16px 34px rgba(7, 25, 57, 0.28);
    backdrop-filter: blur(18px);
}

.home-hero-logo-ring img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.94);
    padding: 4px;
}

.home-hero-copy {
    display: grid;
    gap: 10px;
    max-width: 430px;
}

.home-hero-kicker {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.home-hero-copy h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.home-hero-copy p {
    margin: 0;
    max-width: 440px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.7;
}

.home-hero-side {
    display: flex;
    align-items: flex-start;
}

.home-hero-glass {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 15px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.home-hero-glass-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
}

.home-hero-glass strong {
    font-size: 20px;
    line-height: 1.2;
}

.home-hero-glass span:last-child {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.6;
}

.home-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.home-hero-stat {
    display: grid;
    gap: 5px;
    padding: 14px 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.home-hero-stat strong {
    font-size: 22px;
    line-height: 1;
}

.home-hero-stat span {
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    line-height: 1.5;
}

.home-status-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 28px;
}

.home-status-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-status-main strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.home-status-main span {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.home-status-icon,
.home-quick-icon,
.home-utility-icon,
.home-live-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-status-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 86, 183, 0.14), rgba(17, 86, 183, 0.06));
    color: var(--primary);
}

.home-status-icon svg,
.home-quick-icon svg,
.home-utility-icon svg,
.home-live-icon svg,
.bottom-nav-icon svg {
    width: 22px;
    height: 22px;
}

.home-status-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.home-status-chip {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: #f1f6fd;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.home-status-chip.is-open {
    background: rgba(24, 161, 90, 0.12);
    color: #0f8a4a;
    border-color: rgba(24, 161, 90, 0.16);
}

.home-status-chip.is-alert {
    background: rgba(217, 65, 78, 0.12);
    color: #b52c37;
    border-color: rgba(217, 65, 78, 0.16);
}

.home-hero {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text);
    display: grid;
    gap: 14px;
    overflow: visible;
}

.home-hero::before,
.home-hero::after {
    display: none;
}

.home-hero-cover {
    position: relative;
    min-height: 228px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(180deg, #244574 0%, #17355d 100%);
    box-shadow: 0 24px 52px rgba(15, 68, 137, 0.16);
}

.home-hero-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.18), transparent 26%),
        linear-gradient(180deg, rgba(7, 29, 60, 0.1), rgba(7, 29, 60, 0.56));
    pointer-events: none;
}

.home-hero-cover-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-toolbar,
.home-hero-branding {
    position: relative;
    z-index: 1;
}

.home-hero-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 14px 0;
}

.home-hero-mini-pill,
.home-hero-mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.home-hero-mini-pill {
    background: rgba(255, 255, 255, 0.84);
    color: #1b3f72;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.home-hero-mini-badge {
    max-width: 52%;
    justify-content: center;
    text-align: center;
    background: rgba(10, 41, 83, 0.34);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.home-hero-action {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #20497e;
    border: 1px solid rgba(255, 255, 255, 0.64);
    box-shadow: 0 10px 18px rgba(11, 38, 72, 0.18);
}

.home-hero-branding {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    min-height: 180px;
    padding: 62px 18px 18px;
}

.home-hero-logo-plate {
    width: 92px;
    height: 92px;
    padding: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow: 0 14px 26px rgba(8, 27, 54, 0.26);
    backdrop-filter: blur(16px);
}

.home-hero-logo-plate img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.96);
    padding: 4px;
}

.home-hero-titles {
    display: grid;
    gap: 6px;
    max-width: 230px;
    color: #fff;
}

.home-hero-kickerline {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.home-hero-titles h1 {
    margin: 0;
    display: grid;
    gap: 2px;
    font-size: 34px;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.home-hero-titles h1 span {
    font-size: 17px;
    line-height: 1;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.home-hero-titles p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    line-height: 1.55;
}

.home-mobile-panel {
    display: grid;
    gap: 12px;
}

.home-climate-strip,
.home-story-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
    border: 1px solid rgba(214, 226, 242, 0.96);
    box-shadow: 0 18px 38px rgba(15, 68, 137, 0.08);
}

.home-climate-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 22px;
}

.home-climate-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.home-climate-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(66, 135, 225, 0.14);
    color: #2c72d7;
}

.home-climate-main strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
}

.home-climate-main span {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.45;
}

.home-climate-action {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f7faff;
    color: #7f8ca5;
    border: 1px solid var(--border);
}

.home-story-stack {
    display: grid;
    gap: 10px;
}

.home-story-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 106px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
}

.home-story-card.tone-danger {
    background: linear-gradient(180deg, rgba(255, 250, 250, 0.98), rgba(249, 252, 255, 0.96));
}

.home-story-card.tone-success {
    background: linear-gradient(180deg, rgba(249, 255, 251, 0.98), rgba(249, 252, 255, 0.96));
}

.home-story-card.tone-info {
    background: linear-gradient(180deg, rgba(251, 249, 255, 0.98), rgba(249, 252, 255, 0.96));
}

.home-story-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(66, 135, 225, 0.12);
    color: #2c72d7;
}

.home-story-card.tone-danger .home-story-icon {
    background: rgba(82, 154, 241, 0.12);
    color: #2671d7;
}

.home-story-card.tone-success .home-story-icon {
    background: rgba(67, 196, 110, 0.12);
    color: #28a35b;
}

.home-story-card.tone-info .home-story-icon {
    background: rgba(232, 184, 66, 0.14);
    color: #d38a15;
}

.home-story-body {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.home-story-body strong {
    font-size: 17px;
    line-height: 1.2;
}

.home-story-body p {
    margin: 0;
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.55;
}

.home-story-body span {
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.4;
}

.home-story-thumb {
    min-height: 72px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(214, 226, 242, 0.84);
    background: linear-gradient(145deg, #edf4ff 0%, #dbe8fb 100%);
}

.home-story-thumb img {
    width: 100%;
    height: 100%;
    min-height: 72px;
    object-fit: cover;
}

.home-story-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    align-content: end;
    gap: 4px;
    padding: 10px;
    color: #fff;
    background:
        linear-gradient(140deg, rgba(12, 58, 120, 0.26), rgba(12, 58, 120, 0.08)),
        url('/assets/img/hero-kars-mobile.svg') center/cover no-repeat;
}

.home-story-thumb-placeholder strong {
    font-size: 11px;
    line-height: 1.2;
}

.home-story-thumb-placeholder span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 10px;
    line-height: 1.3;
}

.home-hero-summary {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.97));
    border: 1px solid rgba(214, 226, 242, 0.96);
    box-shadow: 0 18px 38px rgba(15, 68, 137, 0.1);
}

.home-hero-summary-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-hero-summary-icon,
.home-status-icon,
.home-quick-icon,
.home-utility-icon,
.home-live-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-hero-summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 86, 183, 0.14), rgba(17, 86, 183, 0.06));
    color: var(--primary);
}

.home-hero-summary-head strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.home-hero-summary-head span {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.home-hero-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-hero-summary-stat {
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 20px;
    background: #f5f9ff;
    border: 1px solid rgba(214, 226, 242, 0.8);
}

.home-hero-summary-stat strong {
    font-size: 22px;
    line-height: 1;
    color: var(--text);
}

.home-hero-summary-stat span {
    color: var(--text-soft);
    font-size: 11px;
    line-height: 1.45;
}

.home-section-card {
    padding: 18px;
    border-radius: 30px;
}

.home-section-head {
    margin-bottom: 14px;
}

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-quick-card {
    display: grid;
    gap: 10px;
    min-height: 168px;
    padding: 16px;
    border-radius: 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.home-quick-card:hover,
.home-quick-card:focus-visible,
.home-utility-card:hover,
.home-live-card:hover,
.home-unit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 40px rgba(15, 68, 137, 0.12);
}

.home-quick-card strong {
    font-size: 18px;
    line-height: 1.2;
}

.home-quick-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.home-quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(214, 226, 242, 0.8);
    color: inherit;
    box-shadow: 0 12px 22px rgba(15, 68, 137, 0.08);
}

.home-quick-meta {
    margin-top: auto;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.home-quick-card.tone-blue {
    background: linear-gradient(180deg, rgba(233, 242, 255, 0.98), rgba(249, 252, 255, 0.96));
}

.home-quick-card.tone-mint {
    background: linear-gradient(180deg, rgba(236, 249, 244, 0.98), rgba(249, 252, 255, 0.96));
}

.home-quick-card.tone-violet {
    background: linear-gradient(180deg, rgba(245, 239, 255, 0.98), rgba(250, 252, 255, 0.96));
}

.home-quick-card.tone-amber {
    background: linear-gradient(180deg, rgba(255, 246, 228, 0.98), rgba(250, 252, 255, 0.96));
}

.home-quick-card.tone-blue,
.home-quick-card.tone-blue .home-quick-icon {
    color: #1d6ad8;
}

.home-quick-card.tone-mint,
.home-quick-card.tone-mint .home-quick-icon {
    color: #12965c;
}

.home-quick-card.tone-violet,
.home-quick-card.tone-violet .home-quick-icon {
    color: #6d49d7;
}

.home-quick-card.tone-amber,
.home-quick-card.tone-amber .home-quick-icon {
    color: #d38b1e;
}

.home-utility-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.home-utility-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 22px;
}

.home-utility-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: rgba(17, 86, 183, 0.08);
    color: var(--primary);
}

.home-utility-card strong {
    display: block;
    margin-bottom: 3px;
    font-size: 15px;
}

.home-utility-card span {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.home-live-stack,
.home-compact-list,
.home-mini-list,
.home-archive-strip {
    display: grid;
    gap: 12px;
}

.home-live-card {
    display: grid;
    grid-template-columns: auto 1fr 110px;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 26px;
}

.home-live-card.tone-danger {
    background: linear-gradient(180deg, rgba(255, 250, 250, 0.98), rgba(252, 247, 247, 0.96));
}

.home-live-card.tone-success {
    background: linear-gradient(180deg, rgba(247, 255, 250, 0.98), rgba(249, 252, 255, 0.96));
}

.home-live-card.tone-info {
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(249, 252, 255, 0.96));
}

.home-live-icon {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: rgba(17, 86, 183, 0.08);
    color: var(--primary);
}

.home-live-card.tone-danger .home-live-icon {
    background: rgba(217, 65, 78, 0.12);
    color: #bf3340;
}

.home-live-card.tone-success .home-live-icon {
    background: rgba(24, 161, 90, 0.12);
    color: #118c4d;
}

.home-live-content {
    display: grid;
    gap: 6px;
}

.home-live-eyebrow {
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.home-live-content h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.home-live-content p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.home-live-meta {
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.home-live-media {
    width: 100%;
    min-height: 94px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(214, 226, 242, 0.84);
    background: linear-gradient(145deg, #edf4ff 0%, #dbe8fb 100%);
}

.home-live-media img {
    width: 100%;
    height: 100%;
    min-height: 94px;
    object-fit: cover;
}

.home-live-placeholder,
.home-feature-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    align-content: end;
    gap: 6px;
    padding: 16px;
    color: #fff;
    background: linear-gradient(145deg, #1a5db8 0%, #76a2e0 100%);
}

.home-live-placeholder strong,
.home-feature-placeholder strong {
    font-size: 17px;
    line-height: 1.15;
}

.home-live-placeholder span,
.home-feature-placeholder span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    line-height: 1.5;
}

.home-feature-placeholder-alert,
.home-live-card.tone-danger .home-live-placeholder {
    background: linear-gradient(145deg, #a63b44 0%, #da7c7d 100%);
}

.home-module-grid {
    display: grid;
    gap: 14px;
}

.home-map-card,
.home-feature-card {
    border-radius: 26px;
    overflow: hidden;
}

.home-map-card {
    padding: 14px;
}

.home-map-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.home-map-card-head strong {
    font-size: 15px;
}

.home-map-card-head span {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
}

.home-map-block {
    min-height: 230px;
}

.home-module-stack {
    display: grid;
    gap: 12px;
}

.home-feature-card {
    display: grid;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.98));
}

.home-feature-card-alert {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(252, 248, 248, 0.98));
}

.home-feature-media {
    min-height: 180px;
    background: linear-gradient(145deg, #edf4ff 0%, #dbe8fb 100%);
}

.home-feature-media img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
}

.home-feature-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.home-feature-body h3 {
    font-size: 20px;
    line-height: 1.22;
}

.home-feature-body h3,
.home-mini-card h3,
.home-archive-card h3 {
    margin: 0;
}

.home-feature-body p,
.home-compact-card p,
.home-mini-card p,
.home-archive-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.65;
}

.home-compact-card {
    padding: 14px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: #f8fbff;
}

.home-compact-card-alert {
    background: #fffaf9;
}

.home-compact-card-top,
.home-mini-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.home-compact-card-top strong {
    font-size: 15px;
    line-height: 1.35;
}

.home-works-layout {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
}

.home-works-map-panel {
    display: flex;
    flex-direction: column;
    align-self: start;
    padding: 14px;
}

.home-works-map-panel .home-map-block {
    flex: none;
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
}

.home-works-board {
    display: grid;
    gap: 12px;
    align-content: start;
    padding: 14px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.98));
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.home-works-board-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.home-works-board-head strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.home-works-board-head span {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.6;
}

.home-works-board-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #2f81ea 0%, #135dbe 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.home-works-list,
.home-works-board .home-compact-list {
    display: grid;
    gap: 10px;
}

.home-work-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
    background: #f8fbff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 18px rgba(15, 68, 137, 0.05);
}

.home-work-row-main {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.home-work-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.home-work-row-main strong {
    font-size: 15px;
    line-height: 1.35;
}

.home-work-row-date,
.home-work-row-line {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.5;
}

.home-work-row-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-work-row-actions {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.home-work-detail-button,
.home-work-like-button,
.work-sheet-close {
    appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.home-work-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2f81ea 0%, #135dbe 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 14px 24px rgba(17, 86, 183, 0.18);
}

.home-work-like-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 60px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #fff;
    color: var(--text-soft);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.home-work-like-button:hover,
.home-work-detail-button:hover,
.home-work-detail-link:hover {
    transform: translateY(-1px);
}

.home-work-like-button.is-liked {
    background: rgba(217, 65, 78, 0.12);
    color: #b32935;
    border-color: rgba(217, 65, 78, 0.18);
}

.home-work-like-button[disabled] {
    opacity: 0.7;
    cursor: wait;
}

.home-work-like-icon,
.home-work-like-icon svg {
    width: 14px;
    height: 14px;
    display: block;
}

.home-works-empty {
    border-radius: 22px;
    background: #f8fbff;
    border: 1px solid var(--border);
}

.work-sheet-modal[hidden] {
    display: none;
}

.work-sheet-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.work-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 34, 65, 0.44);
    opacity: 0;
    backdrop-filter: blur(10px);
    transition: opacity 0.22s ease;
}

.work-sheet-dialog {
    position: relative;
    width: min(100%, 480px);
    max-height: calc(100vh - 32px);
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.98));
    border: 1px solid rgba(216, 228, 244, 0.96);
    box-shadow: 0 28px 60px rgba(11, 53, 108, 0.24);
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.work-sheet-modal.open .work-sheet-backdrop {
    opacity: 1;
}

.work-sheet-modal.open .work-sheet-dialog {
    transform: translateY(0);
    opacity: 1;
}

.work-sheet-scroll {
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.work-sheet-media {
    min-height: 220px;
    background: linear-gradient(145deg, #e6f0fd 0%, #d4e4fb 48%, #b3c8e8 100%);
}

.work-sheet-media img {
    width: 100%;
    height: 220px;
    display: block;
    object-fit: cover;
}

.work-sheet-placeholder {
    min-height: 220px;
    display: grid;
    place-items: end start;
    padding: 22px;
    color: #fff;
    background: linear-gradient(145deg, #1b4f9d 0%, #79a7dc 100%);
}

.work-sheet-placeholder strong {
    display: block;
    font-size: 26px;
    line-height: 1.08;
}

.work-sheet-placeholder span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.84;
}

.work-sheet-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    box-shadow: 0 10px 18px rgba(15, 68, 137, 0.12);
}

.work-sheet-body {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.work-sheet-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.work-sheet-like-button {
    min-width: 70px;
}

.work-sheet-headline h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.12;
}

.work-sheet-headline p {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.work-sheet-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.work-sheet-meta span,
.work-sheet-footer span {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
}

.work-sheet-description {
    padding: 16px;
    border-radius: 24px;
    background: rgba(17, 86, 183, 0.05);
    border: 1px solid rgba(17, 86, 183, 0.08);
}

.work-sheet-description p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
    line-height: 1.75;
}

.work-sheet-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.home-work-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: #edf4ff;
    color: #1156b7;
    font-size: 12px;
    font-weight: 800;
}

body.is-modal-locked {
    overflow: hidden;
}

.home-lower-grid {
    align-items: start;
}

.home-mini-card,
.home-archive-card {
    padding: 16px;
    border-radius: 24px;
}

.home-mini-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}

.home-mini-card h3,
.home-archive-card h3 {
    font-size: 18px;
    line-height: 1.28;
}

.home-mini-meta {
    display: inline-flex;
    margin-top: 10px;
    color: var(--text);
    font-size: 12px;
    font-weight: 800;
}

.home-unit-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.home-unit-lines span {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 800;
}

.home-archive-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mobile-bottom-nav {
    left: 50%;
    bottom: 14px;
    width: min(100% - 16px, 540px);
    gap: 4px;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(214, 226, 242, 0.96);
    box-shadow: 0 28px 54px rgba(15, 68, 137, 0.12);
}

.bottom-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-height: 60px;
    padding: 8px 4px;
    border-radius: 22px;
    color: var(--text-soft);
}

.bottom-nav-item.active {
    background: rgba(17, 86, 183, 0.08);
}

.bottom-nav-item.is-accent {
    transform: translateY(-16px);
}

.bottom-nav-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #7b879d;
    box-shadow: 0 10px 18px rgba(15, 68, 137, 0.08);
}

.bottom-nav-item.active .bottom-nav-icon {
    background: linear-gradient(180deg, #2f81ea 0%, #135dbe 100%);
    color: #fff;
    border-color: transparent;
}

.bottom-nav-item.is-accent .bottom-nav-icon {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    background: linear-gradient(180deg, #2f81ea 0%, #135dbe 100%);
    color: #fff;
    box-shadow: 0 18px 30px rgba(19, 93, 190, 0.32);
}

.bottom-nav-item.is-accent.active {
    background: transparent;
}

.bottom-nav-label {
    font-size: 10px;
    font-weight: 800;
}

@media (min-width: 720px) {
    .home-hero-top {
        grid-template-columns: minmax(0, 1fr) 220px;
        align-items: end;
    }

    .home-hero-brand {
        grid-template-columns: 110px minmax(0, 1fr);
        align-items: center;
    }

    .home-module-grid {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .home-feature-card {
        grid-template-columns: minmax(220px, 248px) 1fr;
    }
}

@media (max-width: 720px) {
    .home-hero-copy h1 {
        font-size: 28px;
    }

    .home-live-card {
        grid-template-columns: auto 1fr;
    }

    .home-live-media {
        grid-column: 1 / -1;
        min-height: 140px;
    }

    .home-archive-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .home-hero,
    .home-status-strip,
    .home-section-card {
        border-radius: 28px;
    }

    .home-hero-stats,
    .home-quick-grid,
    .home-utility-row {
        grid-template-columns: 1fr;
    }

    .home-status-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero {
        padding: 20px 18px;
    }

    .home-hero-logo-ring {
        width: 94px;
        height: 94px;
    }

    .home-hero-logo-ring img {
        width: 78px;
        height: 78px;
    }

    .home-feature-body h3,
    .home-live-content h3,
    .home-mini-card h3,
    .home-archive-card h3 {
        font-size: 17px;
    }

    .home-status-chips {
        justify-content: flex-start;
    }

    .mobile-bottom-nav {
        width: calc(100% - 12px);
        padding-left: 6px;
        padding-right: 6px;
    }

    .bottom-nav-item.is-accent {
        transform: translateY(-12px);
    }

    .bottom-nav-item.is-accent .bottom-nav-icon {
        width: 54px;
        height: 54px;
    }
}

@media (min-width: 720px) {
    .home-hero-cover {
        min-height: 250px;
    }

    .home-hero-branding {
        padding: 74px 24px 22px;
    }

    .home-hero-titles {
        max-width: 300px;
    }

    .home-hero-titles h1 {
        font-size: 42px;
    }
}

@media (max-width: 720px) {
    .home-hero-cover {
        min-height: 214px;
    }

    .home-hero-branding {
        min-height: 176px;
        padding: 56px 16px 16px;
        gap: 12px;
    }

    .home-hero-logo-plate {
        width: 84px;
        height: 84px;
    }

    .home-hero-titles {
        max-width: 180px;
    }

    .home-hero-titles h1 {
        font-size: 30px;
    }

    .home-hero-titles h1 span {
        font-size: 15px;
    }

    .home-hero-summary-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-hero {
        gap: 12px;
    }

    .home-hero-cover {
        min-height: 198px;
        border-radius: 30px;
    }

    .home-hero-toolbar {
        padding: 12px 12px 0;
    }

    .home-hero-mini-pill,
    .home-hero-mini-badge {
        min-height: 30px;
        padding: 7px 10px;
        font-size: 10px;
    }

    .home-hero-mini-badge {
        max-width: 56%;
    }

    .home-hero-branding {
        min-height: 170px;
        align-items: flex-end;
        padding: 54px 14px 14px;
        gap: 10px;
    }

    .home-hero-logo-plate {
        width: 78px;
        height: 78px;
        padding: 5px;
    }

    .home-hero-titles {
        max-width: 165px;
        gap: 5px;
    }

    .home-hero-kickerline {
        font-size: 10px;
    }

    .home-hero-titles h1 {
        font-size: 27px;
    }

    .home-hero-titles h1 span {
        font-size: 14px;
    }

    .home-hero-titles p {
        font-size: 12px;
        line-height: 1.45;
    }

    .home-hero-summary {
        border-radius: 24px;
        padding: 14px;
    }

.home-hero-summary-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .home-works-layout {
        grid-template-columns: 152px minmax(0, 1fr);
        gap: 10px;
    }

    .home-works-map-panel {
        padding: 10px;
    }

    .home-works-map-panel .home-map-card-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 8px;
    }

    .home-works-map-panel .home-map-card-head strong {
        font-size: 13px;
    }

    .home-works-map-panel .home-map-block {
        aspect-ratio: 1 / 1;
    }

    .home-work-row {
        grid-template-columns: 1fr;
    }

    .home-work-row-actions {
        justify-items: start;
        grid-auto-flow: column;
    }
}

@media (max-width: 520px) {
    .home-works-layout {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .home-works-board,
    .home-works-map-panel {
        padding: 12px;
    }

    .home-works-map-panel .home-map-block {
        aspect-ratio: 1 / 1;
        border-radius: 24px;
    }

    .work-sheet-modal {
        padding: 10px;
    }

    .work-sheet-dialog {
        max-height: calc(100vh - 20px);
        border-radius: 28px;
    }

    .work-sheet-scroll {
        max-height: calc(100vh - 20px);
    }
}

.dashboard-v2 {
    display: grid;
    gap: 18px;
}

.dashboard-v2-hero {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    padding: 18px;
    border-radius: 34px;
    background: linear-gradient(180deg, #285fa8 0%, #6a97d5 100%);
    box-shadow: 0 28px 50px rgba(12, 55, 112, 0.16);
}

.dashboard-v2-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.3) 0, rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, rgba(9, 32, 67, 0.18), rgba(9, 32, 67, 0.4));
    pointer-events: none;
}

.dashboard-v2-hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
}

.dashboard-v2-hero-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.dashboard-v2-hero-brand {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.dashboard-v2-hero-logo {
    width: 96px;
    height: 96px;
    border-radius: 30px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(10, 49, 101, 0.26);
}

.dashboard-v2-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dashboard-v2-hero-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
    color: #fff;
}

.dashboard-v2-hero-kicker {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.92;
    text-transform: uppercase;
}

.dashboard-v2-hero-copy h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.dashboard-v2-hero-copy p,
.dashboard-v2-hero-update {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.dashboard-v2-notify {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(239, 245, 255, 0.78)),
        linear-gradient(180deg, rgba(38, 111, 204, 0.1), rgba(21, 92, 189, 0.06));
    box-shadow: 0 18px 36px rgba(8, 36, 76, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.76);
    color: #1f63bf;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.dashboard-v2-notify::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.dashboard-v2-notify::after {
    content: "";
    position: absolute;
    inset: auto auto -16px -8px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(32, 101, 192, 0.12), rgba(32, 101, 192, 0));
    pointer-events: none;
}

.dashboard-v2-notify:hover,
.dashboard-v2-notify:focus-visible,
.dashboard-v2-notify[aria-expanded="true"] {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(8, 36, 76, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.84);
    filter: saturate(1.03);
}

.dashboard-v2-notify:active {
    transform: translateY(0) scale(0.98);
}

.dashboard-v2-notify-icon,
.dashboard-v2-notify-icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.dashboard-v2-notify-badge {
    position: absolute;
    top: -4px;
    right: -2px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ef7467, #de544a);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 16px rgba(222, 76, 76, 0.24);
}

body.panel-notification-open {
    overflow: hidden;
}

.panel-notification-popcard-wrap[hidden] {
    display: none;
}

.panel-notification-popcard-wrap {
    position: fixed;
    inset: 0;
    z-index: 1720;
}

.panel-notification-popcard-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(9, 24, 44, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.panel-notification-popcard {
    position: absolute;
    top: max(96px, calc(env(safe-area-inset-top) + 76px));
    right: max(16px, calc((100vw - min(100vw, 460px)) / 2 + 16px));
    width: min(388px, calc(100vw - 28px));
    max-height: min(74vh, 640px);
    padding: 18px;
    overflow: auto;
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(85, 139, 221, 0.11), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(247, 250, 255, 0.95));
    border: 1px solid rgba(228, 236, 247, 0.98);
    box-shadow: 0 26px 54px rgba(11, 37, 73, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-12px) scale(0.98);
    transform-origin: top right;
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(57, 107, 180, 0.35) transparent;
}

.panel-notification-popcard::before {
    content: "";
    position: absolute;
    top: 0;
    left: 18px;
    right: 18px;
    height: 84px;
    border-radius: 0 0 30px 30px;
    background: linear-gradient(180deg, rgba(43, 110, 200, 0.06), rgba(43, 110, 200, 0));
    pointer-events: none;
}

.panel-notification-popcard::-webkit-scrollbar {
    width: 8px;
}

.panel-notification-popcard::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(60, 106, 177, 0.24);
}

.panel-notification-popcard::-webkit-scrollbar-track {
    background: transparent;
}

.panel-notification-popcard-wrap.open .panel-notification-popcard-backdrop {
    opacity: 1;
}

.panel-notification-popcard-wrap.open .panel-notification-popcard {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.panel-notification-popcard-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.panel-notification-popcard-head > div {
    flex: 1;
    padding: 15px 15px 13px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 249, 255, 0.82));
    border: 1px solid rgba(231, 238, 247, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.panel-notification-popcard-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: #4875b0;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.panel-notification-popcard-kicker::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(180deg, #5f93d8, #316bb8);
    box-shadow: 0 0 0 5px rgba(61, 134, 236, 0.08);
}

.panel-notification-popcard-head h2 {
    margin: 0;
    color: #1a3551;
    font-size: 21px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.panel-notification-popcard-head p {
    margin: 8px 0 0;
    color: #728196;
    font-size: 12px;
    line-height: 1.6;
}

.panel-notification-popcard-close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff, #f1f6ff);
    box-shadow: 0 10px 18px rgba(12, 55, 112, 0.08);
    color: #6d7f98;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.panel-notification-popcard-close:hover,
.panel-notification-popcard-close:focus-visible {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #ffffff, #e8f1ff);
    box-shadow: 0 14px 22px rgba(12, 55, 112, 0.13);
}

.panel-notification-popcard-list {
    display: grid;
    gap: 10px;
}

.panel-notification-item {
    position: relative;
    display: grid;
    gap: 9px;
    padding: 15px 15px 15px 17px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 251, 255, 0.97));
    border: 1px solid rgba(226, 234, 245, 0.96);
    box-shadow: 0 10px 20px rgba(12, 55, 112, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    overflow: hidden;
}

.panel-notification-item::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: rgba(56, 105, 177, 0.18);
}

.panel-notification-item::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(64, 124, 214, 0.06), rgba(64, 124, 214, 0));
    pointer-events: none;
}

.panel-notification-item:hover,
.panel-notification-item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(12, 55, 112, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.84);
    border-color: rgba(184, 204, 232, 0.96);
}

.panel-notification-item.is-unread {
    background:
        linear-gradient(180deg, rgba(255, 247, 247, 0.99), rgba(255, 252, 252, 0.97)),
        linear-gradient(90deg, rgba(228, 102, 102, 0.04), transparent 36%);
    border-color: rgba(234, 122, 122, 0.22);
    box-shadow: 0 14px 24px rgba(226, 70, 70, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.panel-notification-item.is-seen {
    opacity: 0.9;
    filter: saturate(0.94);
}

.panel-notification-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.panel-notification-item-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(46, 126, 230, 0.08);
    color: #3f6ea8;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.panel-notification-item.tone-work::before {
    background: linear-gradient(180deg, rgba(41, 154, 97, 0.76), rgba(41, 154, 97, 0.22));
}

.panel-notification-item.tone-danger::before {
    background: linear-gradient(180deg, rgba(223, 78, 78, 0.76), rgba(223, 78, 78, 0.22));
}

.panel-notification-item.tone-info::before {
    background: linear-gradient(180deg, rgba(46, 126, 230, 0.76), rgba(46, 126, 230, 0.22));
}

.panel-notification-item.tone-work .panel-notification-item-pill {
    background: rgba(41, 154, 97, 0.1);
    color: #28724f;
}

.panel-notification-item.tone-danger .panel-notification-item-pill {
    background: rgba(230, 78, 78, 0.1);
    color: #bb5353;
}

.panel-notification-item.tone-info .panel-notification-item-pill {
    background: rgba(46, 126, 230, 0.08);
    color: #3f6ea8;
}

.panel-notification-item-date {
    color: #8593a8;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.panel-notification-item.is-unread .panel-notification-item-date {
    color: #bd6b6b;
}

.panel-notification-item strong {
    color: #203850;
    font-size: 15px;
    line-height: 1.34;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.panel-notification-item p {
    margin: 0;
    color: #687a90;
    font-size: 12px;
    line-height: 1.6;
}

.panel-notification-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #7b8da4;
    font-size: 11px;
    line-height: 1.4;
}

.panel-notification-item-link {
    color: #3e6ba2;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.panel-notification-item-link::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -1px;
}

.panel-notification-empty {
    display: grid;
    gap: 6px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(246, 249, 255, 0.96));
    border: 1px dashed rgba(201, 213, 230, 0.86);
    color: #73839a;
}

.panel-notification-empty strong {
    color: #173552;
    font-size: 16px;
}

.panel-notification-empty p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}

.panel-notification-popcard-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(33, 96, 181, 0.09), rgba(33, 96, 181, 0.04));
    color: #3a68a3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.panel-notification-popcard-more svg {
    width: 18px;
    height: 18px;
}


.dashboard-v2-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: -24px;
    padding: 10px 8px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(217, 228, 243, 0.96);
    box-shadow: 0 20px 40px rgba(12, 55, 112, 0.1);
}

.dashboard-v2-stat {
    display: grid;
    gap: 4px;
    padding: 8px 10px;
    text-align: center;
}

.dashboard-v2-stat + .dashboard-v2-stat {
    border-left: 1px solid rgba(217, 228, 243, 0.92);
}

.dashboard-v2-stat-label,
.dashboard-v2-stat-meta {
    font-size: 12px;
    line-height: 1.45;
}

.dashboard-v2-stat-label {
    color: #23395d;
    font-weight: 800;
}

.dashboard-v2-stat strong {
    font-size: 22px;
    line-height: 1;
    color: #114d9f;
}

.dashboard-v2-stat-meta {
    color: var(--text-soft);
}

.dashboard-v2-section {
    display: grid;
    gap: 12px;
}

.dashboard-v2-section-head,
.dashboard-v2-split-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-v2-section-head h2,
.dashboard-v2-split-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.dashboard-v2-section-head a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #5d7192;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-v2-section-head a svg {
    width: 16px;
    height: 16px;
}

.dashboard-v2-feed {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 76%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.dashboard-v2-feed-card,
.dashboard-v2-spotlight,
.dashboard-v2-map-card,
.dashboard-v2-shortcut {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.98));
    border: 1px solid rgba(217, 228, 243, 0.96);
    box-shadow: 0 20px 34px rgba(12, 55, 112, 0.08);
}

.dashboard-v2-feed-card {
    overflow: hidden;
    scroll-snap-align: start;
}

.dashboard-v2-feed-media {
    min-height: 174px;
    background: linear-gradient(145deg, #d9e8fb 0%, #bed3ee 100%);
}

.dashboard-v2-feed-media img,
.dashboard-v2-spotlight-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.dashboard-v2-feed-placeholder {
    min-height: 174px;
    display: grid;
    place-items: end start;
    padding: 18px;
    color: #fff;
    background: linear-gradient(145deg, #2059ab 0%, #7ea7d8 100%);
}

.dashboard-v2-feed-placeholder strong {
    display: block;
    font-size: 22px;
    line-height: 1.08;
}

.dashboard-v2-feed-placeholder span {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    opacity: 0.88;
}

.dashboard-v2-feed-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.dashboard-v2-feed-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f28f40;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-v2-feed-card.is-work .dashboard-v2-feed-tag {
    background: #3f86e6;
}

.dashboard-v2-feed-card.is-note .dashboard-v2-feed-tag {
    background: #6c7ee5;
}

.dashboard-v2-feed-body h3,
.dashboard-v2-spotlight-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.24;
}

.dashboard-v2-feed-body p,
.dashboard-v2-spotlight-body p {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.6;
}

.dashboard-v2-feed-foot,
.dashboard-v2-spotlight-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dashboard-v2-feed-foot span,
.dashboard-v2-static-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(217, 228, 243, 0.96);
    color: #5d7192;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-v2-feed-link,
.dashboard-v2-chip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #edf4ff;
    color: #1156b7;
    font-size: 12px;
    font-weight: 800;
}

.dashboard-v2-feed-link.is-button {
    border: 0;
    cursor: pointer;
}

.dashboard-v2-split-panels,
.dashboard-v2-map-grid,
.dashboard-v2-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-v2-spotlight {
    overflow: hidden;
}

.dashboard-v2-spotlight-media {
    min-height: 156px;
    background: linear-gradient(145deg, #d9e8fb 0%, #c6daf4 100%);
}

.dashboard-v2-spotlight-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.dashboard-v2-empty {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 16px;
    text-align: center;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.7;
}

.dashboard-v2-map-card {
    padding: 14px;
}

.dashboard-v2-map-card-unified {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.dashboard-v2-map-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.dashboard-v2-map-head strong {
    font-size: 15px;
}

.dashboard-v2-map-head span {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f4f8fd;
    border: 1px solid rgba(217, 228, 243, 0.96);
    color: #5d7192;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-v2-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-v2-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #f5f8fd;
    border: 1px solid rgba(217, 228, 243, 0.96);
    color: #506684;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-v2-map-legend-item i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.dashboard-v2-map-legend-item.is-work i {
    background: #1f9d55;
}

.dashboard-v2-map-legend-item.is-alert i {
    background: #d63a45;
}

.dashboard-v2-map-block {
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    overflow: hidden;
}

.dashboard-v2-map-block-wide {
    aspect-ratio: 16 / 11;
}

.dashboard-v2-shortcut {
    position: relative;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 108px;
    padding: 18px;
    overflow: hidden;
}

.dashboard-v2-shortcut-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 26px rgba(12, 55, 112, 0.12);
}

.dashboard-v2-shortcut-icon,
.dashboard-v2-shortcut-icon svg {
    color: #1156b7;
}

.dashboard-v2-shortcut-icon svg {
    width: 22px;
    height: 22px;
}

.dashboard-v2-shortcut strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
}

.dashboard-v2-shortcut span:last-child {
    color: var(--text-soft);
    font-size: 12px;
    line-height: 1.55;
}

.dashboard-v2-shortcut::after {
    content: "";
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 12px 20px rgba(12, 55, 112, 0.08);
    opacity: 0.9;
}

.dashboard-v2-shortcut::before {
    content: "";
    position: absolute;
    right: 29px;
    bottom: 29px;
    width: 8px;
    height: 8px;
    border-top: 2px solid #1156b7;
    border-right: 2px solid #1156b7;
    transform: rotate(45deg);
    z-index: 1;
}

.dashboard-v2-shortcut.tone-sky {
    background:
        radial-gradient(circle at 88% 12%, rgba(102, 182, 255, 0.18), rgba(102, 182, 255, 0) 28%),
        linear-gradient(180deg, rgba(235, 245, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.dashboard-v2-shortcut.tone-violet {
    background:
        radial-gradient(circle at 88% 12%, rgba(137, 122, 255, 0.14), rgba(137, 122, 255, 0) 28%),
        linear-gradient(180deg, rgba(244, 241, 255, 0.98), rgba(249, 247, 255, 0.98));
}

.dashboard-v2-shortcut.tone-mint {
    background:
        radial-gradient(circle at 88% 12%, rgba(72, 184, 136, 0.16), rgba(72, 184, 136, 0) 28%),
        linear-gradient(180deg, rgba(239, 252, 247, 0.98), rgba(247, 255, 251, 0.98));
}

.dashboard-v2-shortcut.tone-amber {
    background:
        radial-gradient(circle at 88% 12%, rgba(242, 166, 62, 0.18), rgba(242, 166, 62, 0) 28%),
        linear-gradient(180deg, rgba(255, 247, 235, 0.98), rgba(255, 252, 246, 0.98));
}

@media (min-width: 721px) {
    .dashboard-v2-feed {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-flow: unset;
        grid-auto-columns: unset;
        overflow: visible;
    }
}

@media (max-width: 640px) {
    .dashboard-v2 {
        gap: 16px;
    }

    .dashboard-v2-hero {
        min-height: 248px;
        padding: 16px;
        border-radius: 30px;
    }

    .dashboard-v2-hero-brand {
        grid-template-columns: 80px minmax(0, 1fr);
        gap: 12px;
    }

    .dashboard-v2-hero-logo {
        width: 80px;
        height: 80px;
        border-radius: 26px;
    }

    .dashboard-v2-hero-copy h1 {
        font-size: 22px;
    }

    .dashboard-v2-notify {
        width: 54px;
        height: 54px;
        border-radius: 20px;
    }

    .dashboard-v2-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 0;
        padding: 10px;
    }

    .dashboard-v2-stat:nth-child(3),
    .dashboard-v2-stat:nth-child(4) {
        border-top: 1px solid rgba(217, 228, 243, 0.92);
    }

    .dashboard-v2-stat:nth-child(3) {
        border-left: 0;
    }

    .dashboard-v2-feed {
        grid-auto-columns: 84%;
    }

    .dashboard-v2-feed-media {
        min-height: 158px;
    }

    .dashboard-v2-feed-placeholder {
        min-height: 158px;
    }

    .dashboard-v2-feed-body h3,
    .dashboard-v2-spotlight-body h3 {
        font-size: 16px;
    }

    .dashboard-v2-feed-foot,
    .dashboard-v2-spotlight-foot {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-v2-feed-link,
    .dashboard-v2-chip-button,
    .home-work-like-button {
        width: 100%;
    }

    .dashboard-v2-split-panels,
    .dashboard-v2-shortcuts {
        gap: 10px;
    }

    .dashboard-v2-shortcut {
        padding: 14px;
    }

    .dashboard-v2-map-block-wide {
        aspect-ratio: 1 / 1;
    }
}

/* Dashboard v2 premium mobile polish */
.dashboard-v2 {
    --dash-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(246, 250, 255, 0.985));
    --dash-stroke: rgba(216, 228, 244, 0.98);
    --dash-shadow: 0 24px 50px rgba(11, 53, 109, 0.1);
    --dash-shadow-strong: 0 32px 68px rgba(8, 43, 92, 0.16);
    --dash-blue: #1156b7;
    --dash-blue-deep: #0c418a;
    --dash-green: #1f9d55;
    --dash-red: #d63a45;
    --dash-violet: #5f72e4;
    position: relative;
    gap: 20px;
}

.dashboard-v2-section {
    gap: 14px;
}

.dashboard-v2-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.dashboard-v2-split-head {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-v2-split-head h2:last-child {
    text-align: right;
}

.dashboard-v2-section-head h2,
.dashboard-v2-split-head h2 {
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #183452;
}

.dashboard-v2-section-head a {
    width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(217, 228, 243, 0.96);
    box-shadow: 0 10px 18px rgba(12, 55, 112, 0.05);
    color: #607694;
}

.dashboard-v2-hero {
    min-height: 344px;
    padding: 20px;
    border-radius: 38px;
    background:
        radial-gradient(circle at 84% 18%, rgba(157, 204, 255, 0.34), rgba(157, 204, 255, 0) 26%),
        linear-gradient(180deg, #1d4f94 0%, #6c99d6 100%);
    border: 1px solid rgba(186, 214, 250, 0.42);
    box-shadow: 0 34px 72px rgba(9, 49, 104, 0.18);
}

.dashboard-v2-hero::before {
    background:
        radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.26) 0, rgba(255, 255, 255, 0) 34%),
        radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0) 28%),
        linear-gradient(180deg, rgba(8, 29, 63, 0.12), rgba(8, 29, 63, 0.38));
}

.dashboard-v2-hero::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -34px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 56%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
}

.dashboard-v2-hero-art {
    object-position: center 26%;
    opacity: 0.96;
    transform: scale(1.12);
    filter: saturate(1.02) contrast(1.04) brightness(0.92);
}

.dashboard-v2-hero-top {
    min-height: 246px;
}

.dashboard-v2-hero-brand {
    gap: 16px;
}

.dashboard-v2-hero-logo {
    width: 104px;
    height: 104px;
    padding: 10px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.94));
    box-shadow: 0 22px 36px rgba(9, 46, 96, 0.24);
    backdrop-filter: blur(14px);
}

.dashboard-v2-hero-copy {
    gap: 7px;
    text-shadow: 0 12px 28px rgba(7, 28, 60, 0.16);
}

.dashboard-v2-hero-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.82);
}

.dashboard-v2-hero-copy h1 {
    font-size: 30px;
    line-height: 1.02;
    font-weight: 800;
}

.dashboard-v2-hero-copy p {
    max-width: 220px;
}

.dashboard-v2-hero-update {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-top: 2px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(8, 34, 72, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.dashboard-v2-notify,
.dashboard-v2-feed-link,
.dashboard-v2-chip-button,
.dashboard-v2-shortcut,
.home-work-like-button,
.bottom-nav-item,
.work-sheet-close {
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        border-color 0.22s ease;
}

.dashboard-v2-notify {
    width: 60px;
    height: 60px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(229, 241, 255, 0.94));
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: 0 22px 34px rgba(9, 46, 96, 0.2);
    color: var(--dash-blue);
}

.dashboard-v2-notify:hover,
.dashboard-v2-feed-link:hover,
.dashboard-v2-chip-button:hover,
.dashboard-v2-shortcut:hover,
.home-work-like-button:hover,
.bottom-nav-item:hover,
.work-sheet-close:hover {
    transform: translateY(-2px);
}

.dashboard-v2-notify-icon,
.dashboard-v2-notify-icon svg {
    position: relative;
    z-index: 1;
}

.dashboard-v2-notify-badge {
    top: -5px;
    right: -3px;
    min-width: 25px;
    height: 25px;
    background: linear-gradient(180deg, #ff765d 0%, #e24c39 100%);
    box-shadow: 0 10px 18px rgba(226, 76, 57, 0.34);
}

.dashboard-v2-stats {
    position: relative;
    margin: -30px 10px 0;
    padding: 12px 10px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.92));
    border: 1px solid rgba(224, 233, 248, 0.95);
    box-shadow: var(--dash-shadow-strong);
    backdrop-filter: blur(18px);
}

.dashboard-v2-stat {
    gap: 6px;
    padding: 11px 12px;
}

.dashboard-v2-stat strong {
    font-size: 28px;
    letter-spacing: -0.04em;
}

.dashboard-v2-stat:nth-child(1) strong {
    color: var(--dash-blue);
}

.dashboard-v2-stat:nth-child(2) strong {
    color: var(--dash-red);
}

.dashboard-v2-stat:nth-child(3) strong {
    color: #2d67d8;
}

.dashboard-v2-stat:nth-child(4) strong {
    color: #c73852;
}

.dashboard-v2-feed-card,
.dashboard-v2-spotlight,
.dashboard-v2-map-card,
.dashboard-v2-shortcut {
    background: var(--dash-surface);
    border: 1px solid var(--dash-stroke);
    box-shadow: var(--dash-shadow);
}

.dashboard-v2-feed-card,
.dashboard-v2-spotlight,
.dashboard-v2-map-card {
    position: relative;
}

.dashboard-v2-feed-card::before,
.dashboard-v2-spotlight::before,
.dashboard-v2-map-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(120, 164, 226, 0.34), rgba(255, 255, 255, 0.94));
    pointer-events: none;
}

.dashboard-v2-feed {
    gap: 14px;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.dashboard-v2-feed::-webkit-scrollbar {
    display: none;
}

.dashboard-v2-feed-card {
    display: grid;
    grid-template-rows: 188px 1fr;
}

.dashboard-v2-feed-card.is-alert {
    background: linear-gradient(180deg, rgba(255, 249, 247, 0.995), rgba(255, 255, 255, 0.985));
}

.dashboard-v2-feed-card.is-work {
    background: linear-gradient(180deg, rgba(245, 255, 250, 0.995), rgba(255, 255, 255, 0.985));
}

.dashboard-v2-feed-card.is-note {
    background: linear-gradient(180deg, rgba(247, 248, 255, 0.995), rgba(255, 255, 255, 0.985));
}

.dashboard-v2-feed-media,
.dashboard-v2-spotlight-media {
    position: relative;
    overflow: hidden;
}

.dashboard-v2-feed-media {
    min-height: 188px;
}

.dashboard-v2-feed-media::after,
.dashboard-v2-spotlight-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 28, 60, 0) 10%, rgba(7, 28, 60, 0.18) 100%);
    pointer-events: none;
}

.dashboard-v2-feed-media img,
.dashboard-v2-spotlight-media img {
    transition: transform 0.45s ease;
}

.dashboard-v2-feed-card:hover .dashboard-v2-feed-media img,
.dashboard-v2-spotlight:hover .dashboard-v2-spotlight-media img {
    transform: scale(1.04);
}

.dashboard-v2-feed-placeholder {
    min-height: 188px;
    padding: 18px;
}

.dashboard-v2-feed-card.is-alert .dashboard-v2-feed-placeholder,
.dashboard-v2-spotlight.is-alert .dashboard-v2-feed-placeholder {
    background: linear-gradient(145deg, #d7664c 0%, #f0a05a 100%);
}

.dashboard-v2-feed-card.is-work .dashboard-v2-feed-placeholder,
.dashboard-v2-spotlight:not(.is-alert) .dashboard-v2-feed-placeholder {
    background: linear-gradient(145deg, #158a53 0%, #4ac97f 100%);
}

.dashboard-v2-feed-card.is-note .dashboard-v2-feed-placeholder {
    background: linear-gradient(145deg, #4869e5 0%, #8da1ff 100%);
}

.dashboard-v2-feed-body,
.dashboard-v2-spotlight-body {
    gap: 12px;
    padding: 18px;
}

.dashboard-v2-feed-body h3,
.dashboard-v2-spotlight-body h3 {
    font-size: 19px;
    letter-spacing: -0.025em;
    color: #183452;
}

.dashboard-v2-feed-body p,
.dashboard-v2-spotlight-body p {
    color: #647995;
}

.dashboard-v2-feed-tag {
    padding: 8px 13px;
    box-shadow: 0 12px 20px rgba(12, 55, 112, 0.14);
}

.dashboard-v2-feed-card.is-alert .dashboard-v2-feed-tag {
    background: linear-gradient(180deg, #ee8b4f 0%, #d96e44 100%);
}

.dashboard-v2-feed-card.is-work .dashboard-v2-feed-tag {
    background: linear-gradient(180deg, #27af66 0%, #1c8d50 100%);
}

.dashboard-v2-feed-card.is-note .dashboard-v2-feed-tag {
    background: linear-gradient(180deg, #6b7df0 0%, #5266dc 100%);
}

.dashboard-v2-feed-foot,
.dashboard-v2-spotlight-foot {
    gap: 10px;
}

.dashboard-v2-feed-foot span,
.dashboard-v2-static-chip {
    padding: 9px 11px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-v2-feed-link,
.dashboard-v2-chip-button {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    background: linear-gradient(180deg, #2d84f1 0%, #135cbd 100%);
    color: #fff;
    box-shadow: 0 14px 24px rgba(19, 93, 190, 0.26);
}

.dashboard-v2-feed-link.is-button {
    border: 0;
}

.home-work-like-button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.96));
    border: 1px solid rgba(219, 230, 244, 0.96);
    box-shadow: 0 14px 22px rgba(11, 53, 109, 0.08);
}

.home-work-like-button.is-liked {
    background: linear-gradient(180deg, rgba(255, 240, 242, 0.98), rgba(255, 247, 248, 0.96));
    border-color: rgba(233, 115, 130, 0.3);
    box-shadow: 0 16px 24px rgba(195, 56, 82, 0.12);
}

.dashboard-v2-split-panels,
.dashboard-v2-shortcuts {
    gap: 14px;
}

.dashboard-v2-spotlight {
    display: grid;
    grid-template-rows: 172px 1fr;
}

.dashboard-v2-spotlight::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #1f9d55, #51cd85);
}

.dashboard-v2-spotlight.is-alert::after {
    background: linear-gradient(90deg, #d63a45, #f18458);
}

.dashboard-v2-spotlight-media {
    min-height: 172px;
}

.dashboard-v2-map-card-unified {
    gap: 14px;
    padding: 18px;
}

.dashboard-v2-map-head {
    margin-bottom: 0;
}

.dashboard-v2-map-head strong {
    font-size: 17px;
    letter-spacing: -0.02em;
    color: #183452;
}

.dashboard-v2-map-head span {
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dashboard-v2-map-legend {
    gap: 10px;
}

.dashboard-v2-map-legend-item {
    padding: 9px 12px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(242, 247, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dashboard-v2-map-block {
    border-radius: 26px;
    border: 1px solid rgba(214, 227, 243, 0.98);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.dashboard-v2-shortcut {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    min-height: 116px;
    padding: 18px;
    border-radius: 30px;
}

.dashboard-v2-shortcut-icon {
    width: 58px;
    height: 58px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.88);
}

.dashboard-v2-shortcut strong {
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #183452;
}

.dashboard-v2-shortcut span:last-child {
    max-width: 86%;
    color: #647995;
}

.dashboard-v2-shortcut::after {
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.dashboard-v2-shortcut::before {
    right: 31px;
    bottom: 31px;
}

.dashboard-v2-shortcut.tone-sky .dashboard-v2-shortcut-icon {
    background: linear-gradient(180deg, #d9ecff 0%, #ffffff 100%);
    color: #0e61cb;
}

.dashboard-v2-shortcut.tone-violet .dashboard-v2-shortcut-icon {
    background: linear-gradient(180deg, #ece8ff 0%, #ffffff 100%);
    color: #6254d6;
}

.dashboard-v2-shortcut.tone-mint .dashboard-v2-shortcut-icon {
    background: linear-gradient(180deg, #dcf7ea 0%, #ffffff 100%);
    color: #188a56;
}

.dashboard-v2-shortcut.tone-amber .dashboard-v2-shortcut-icon {
    background: linear-gradient(180deg, #ffe8cb 0%, #ffffff 100%);
    color: #ca7a10;
}

.work-sheet-dialog {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.98));
    border: 1px solid rgba(221, 231, 244, 0.96);
    box-shadow: 0 44px 84px rgba(8, 38, 83, 0.24);
}

.work-sheet-close {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.96));
    border: 1px solid rgba(219, 230, 244, 0.96);
    box-shadow: 0 14px 24px rgba(12, 55, 112, 0.12);
}

.mobile-bottom-nav {
    position: relative;
    overflow: hidden;
    gap: 6px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.95));
    border: 1px solid rgba(216, 228, 244, 0.98);
    box-shadow: 0 30px 64px rgba(10, 52, 110, 0.16);
    backdrop-filter: blur(22px);
}

.mobile-bottom-nav::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(120, 164, 226, 0.4), rgba(255, 255, 255, 0.96));
    pointer-events: none;
}

.bottom-nav-item {
    min-height: 64px;
    padding: 8px 6px;
    border-radius: 24px;
}

.bottom-nav-item.active {
    background: linear-gradient(180deg, rgba(17, 86, 183, 0.14), rgba(17, 86, 183, 0.05));
    color: var(--dash-blue);
}

.bottom-nav-item.is-accent:hover {
    transform: translateY(-18px);
}

.bottom-nav-icon {
    border: 1px solid rgba(218, 229, 244, 0.98);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.96));
    box-shadow: 0 12px 22px rgba(12, 55, 112, 0.08);
}

.bottom-nav-item.active .bottom-nav-icon {
    box-shadow: 0 18px 30px rgba(19, 93, 190, 0.26);
}

.bottom-nav-item.is-accent .bottom-nav-icon {
    background: linear-gradient(180deg, #2f81ea 0%, #135dbe 100%);
    box-shadow: 0 22px 34px rgba(19, 93, 190, 0.34);
}

.bottom-nav-label {
    font-size: 10.5px;
    letter-spacing: 0.01em;
}

@media (min-width: 721px) {
    .dashboard-v2 {
        gap: 22px;
    }

    .dashboard-v2-feed {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-flow: unset;
        grid-auto-columns: unset;
        overflow: visible;
    }
}

@media (max-width: 640px) {
    .dashboard-v2-hero {
        min-height: 320px;
        padding: 18px;
        border-radius: 34px;
    }

    .dashboard-v2-hero-brand {
        grid-template-columns: 84px minmax(0, 1fr);
        gap: 13px;
    }

    .dashboard-v2-hero-logo {
        width: 84px;
        height: 84px;
        border-radius: 28px;
    }

    .dashboard-v2-hero-copy h1 {
        font-size: 26px;
    }

    .dashboard-v2-hero-copy p {
        max-width: 180px;
    }

    .dashboard-v2-hero-update {
        font-size: 11px;
    }

    .dashboard-v2-notify {
        width: 56px;
        height: 56px;
        border-radius: 22px;
    }

    .dashboard-v2-stats {
        margin: -26px 8px 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-v2-stat strong {
        font-size: 26px;
    }

    .dashboard-v2-section-head h2,
    .dashboard-v2-split-head h2 {
        font-size: 18px;
    }

    .dashboard-v2-section-head a {
        padding: 7px 10px;
        font-size: 12px;
    }

    .dashboard-v2-feed {
        grid-auto-columns: 85%;
    }

    .dashboard-v2-feed-card {
        grid-template-rows: 170px 1fr;
    }

    .dashboard-v2-feed-media,
    .dashboard-v2-feed-placeholder {
        min-height: 170px;
    }

    .dashboard-v2-feed-body,
    .dashboard-v2-spotlight-body,
    .dashboard-v2-map-card-unified,
    .dashboard-v2-shortcut {
        padding: 16px;
    }

    .dashboard-v2-feed-body h3,
    .dashboard-v2-spotlight-body h3 {
        font-size: 17px;
    }

    .dashboard-v2-split-panels,
    .dashboard-v2-shortcuts {
        gap: 12px;
    }

    .dashboard-v2-spotlight {
        grid-template-rows: 156px 1fr;
    }

    .dashboard-v2-spotlight-media {
        min-height: 156px;
    }

    .dashboard-v2-map-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-v2-map-head span {
        align-self: flex-start;
    }

    .dashboard-v2-map-block-wide {
        aspect-ratio: 1 / 1;
    }

    .dashboard-v2-shortcut {
        grid-template-columns: 54px minmax(0, 1fr);
        min-height: 108px;
    }

    .dashboard-v2-shortcut-icon {
        width: 54px;
        height: 54px;
        border-radius: 20px;
    }

    .dashboard-v2-shortcut span:last-child {
        max-width: 90%;
    }

    .mobile-bottom-nav {
        padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
    }

    .bottom-nav-item.is-accent {
        transform: translateY(-12px);
    }

    .bottom-nav-item.is-accent:hover {
        transform: translateY(-14px);
    }

    .bottom-nav-item.is-accent .bottom-nav-icon {
        width: 56px;
        height: 56px;
    }

    .bottom-nav-label {
        font-size: 9.5px;
    }
}

/* Panel first-stage top layout */
.dashboard-v2-top-only {
    gap: 18px;
    padding-bottom: 8px;
}

.dashboard-v2-top-only .dashboard-v2-section + .dashboard-v2-section {
    margin-top: 2px;
}

.dashboard-v2-top-only .dashboard-v2-hero {
    min-height: 336px;
}

.dashboard-v2-top-only .dashboard-v2-feed {
    grid-auto-columns: 82%;
}

.dashboard-v2-top-only .dashboard-v2-feed-card {
    grid-template-rows: 182px 1fr;
}

.dashboard-v2-top-only .dashboard-v2-feed-media,
.dashboard-v2-top-only .dashboard-v2-feed-placeholder {
    min-height: 182px;
}

.dashboard-v2-top-only .dashboard-v2-split-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}

.dashboard-v2-split-head-side {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.dashboard-v2-split-head-side h2 {
    margin: 0;
    text-align: right;
}

.dashboard-v2-split-head-side a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(217, 228, 243, 0.96);
    box-shadow: 0 10px 18px rgba(12, 55, 112, 0.05);
    color: #607694;
    font-size: 13px;
    font-weight: 800;
}

.dashboard-v2-split-head-side a svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 640px) {
    .dashboard-v2-top-only {
        gap: 16px;
    }

    .dashboard-v2-top-only .dashboard-v2-hero {
        min-height: 298px;
    }

    .dashboard-v2-top-only .dashboard-v2-stats {
        margin: -22px 8px 0;
        padding: 8px 4px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
    }

    .dashboard-v2-top-only .dashboard-v2-stat {
        gap: 3px;
        padding: 7px 4px;
    }

    .dashboard-v2-top-only .dashboard-v2-stat strong {
        font-size: 19px;
    }

    .dashboard-v2-top-only .dashboard-v2-stat-label,
    .dashboard-v2-top-only .dashboard-v2-stat-meta {
        font-size: 10px;
        line-height: 1.25;
    }

    .dashboard-v2-top-only .dashboard-v2-stat:nth-child(3),
    .dashboard-v2-top-only .dashboard-v2-stat:nth-child(4) {
        border-top: 0;
    }

    .dashboard-v2-top-only .dashboard-v2-stat:nth-child(3) {
        border-left: 1px solid rgba(217, 228, 243, 0.92);
    }

    .dashboard-v2-top-only .dashboard-v2-section-head,
    .dashboard-v2-top-only .dashboard-v2-split-head {
        gap: 8px;
    }

    .dashboard-v2-top-only .dashboard-v2-feed {
        grid-auto-columns: 79%;
        gap: 10px;
    }

    .dashboard-v2-top-only .dashboard-v2-feed-card {
        grid-template-rows: 160px 1fr;
    }

    .dashboard-v2-top-only .dashboard-v2-feed-media,
    .dashboard-v2-top-only .dashboard-v2-feed-placeholder {
        min-height: 160px;
    }

    .dashboard-v2-top-only .dashboard-v2-feed-foot,
    .dashboard-v2-top-only .dashboard-v2-spotlight-foot {
        align-items: center;
        flex-direction: row;
    }

    .dashboard-v2-top-only .dashboard-v2-feed-link,
    .dashboard-v2-top-only .dashboard-v2-chip-button,
    .dashboard-v2-top-only .home-work-like-button {
        width: auto;
    }

    .dashboard-v2-top-only .dashboard-v2-split-head {
        grid-template-columns: 1fr;
    }

    .dashboard-v2-top-only .dashboard-v2-split-head > h2 {
        margin-bottom: 2px;
    }

    .dashboard-v2-split-head-side {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .dashboard-v2-split-head-side h2 {
        text-align: left;
    }

    .dashboard-v2-split-head-side a {
        padding: 7px 10px;
        font-size: 12px;
    }

    .dashboard-v2-top-only .dashboard-v2-spotlight {
        grid-template-rows: 146px 1fr;
    }

    .dashboard-v2-top-only .dashboard-v2-spotlight-media {
        min-height: 146px;
    }

    .dashboard-v2-top-only .dashboard-v2-spotlight-body {
        padding: 14px;
    }
}

/* Reference buttons + live map block */
.dashboard-v2-reference-services,
.dashboard-v2-reference-map-section {
    gap: 12px;
}

.dashboard-v2-reference-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-v2-reference-card {
    position: relative;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 8px;
    min-height: 98px;
    padding: 12px 6px 10px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(244, 249, 255, 0.98));
    border: 1px solid rgba(217, 228, 243, 0.96);
    box-shadow: 0 18px 28px rgba(12, 55, 112, 0.08);
    text-align: center;
}

.dashboard-v2-reference-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 34%);
    pointer-events: none;
}

.dashboard-v2-reference-icon {
    position: relative;
    z-index: 1;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 20px rgba(12, 55, 112, 0.1);
}

.dashboard-v2-reference-icon svg {
    width: 20px;
    height: 20px;
}

.dashboard-v2-reference-card strong {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 11px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #26405d;
    font-weight: 800;
}

.dashboard-v2-reference-card.tone-orange {
    background:
        radial-gradient(circle at 84% 14%, rgba(255, 157, 74, 0.2), rgba(255, 157, 74, 0) 32%),
        linear-gradient(180deg, rgba(255, 245, 235, 0.99), rgba(255, 250, 244, 0.98));
}

.dashboard-v2-reference-card.tone-orange .dashboard-v2-reference-icon {
    color: #eb7a17;
}

.dashboard-v2-reference-card.tone-blue {
    background:
        radial-gradient(circle at 84% 14%, rgba(88, 144, 255, 0.18), rgba(88, 144, 255, 0) 32%),
        linear-gradient(180deg, rgba(239, 247, 255, 0.99), rgba(247, 251, 255, 0.98));
}

.dashboard-v2-reference-card.tone-blue .dashboard-v2-reference-icon {
    color: #2a75d8;
}

.dashboard-v2-reference-card.tone-navy {
    background:
        radial-gradient(circle at 84% 14%, rgba(72, 101, 163, 0.18), rgba(72, 101, 163, 0) 32%),
        linear-gradient(180deg, rgba(241, 245, 253, 0.99), rgba(247, 250, 255, 0.98));
}

.dashboard-v2-reference-card.tone-navy .dashboard-v2-reference-icon {
    color: #375f9f;
}

.dashboard-v2-reference-card.tone-sky {
    background:
        radial-gradient(circle at 84% 14%, rgba(66, 179, 245, 0.18), rgba(66, 179, 245, 0) 32%),
        linear-gradient(180deg, rgba(237, 250, 255, 0.99), rgba(246, 252, 255, 0.98));
}

.dashboard-v2-reference-card.tone-sky .dashboard-v2-reference-icon {
    color: #1f90c8;
}

.dashboard-v2-reference-card.tone-red {
    background:
        radial-gradient(circle at 84% 14%, rgba(239, 108, 96, 0.18), rgba(239, 108, 96, 0) 32%),
        linear-gradient(180deg, rgba(255, 243, 241, 0.99), rgba(255, 249, 248, 0.98));
}

.dashboard-v2-reference-card.tone-red .dashboard-v2-reference-icon {
    color: #d64a47;
}

.dashboard-v2-reference-card.tone-teal {
    background:
        radial-gradient(circle at 84% 14%, rgba(79, 181, 166, 0.18), rgba(79, 181, 166, 0) 32%),
        linear-gradient(180deg, rgba(237, 252, 250, 0.99), rgba(246, 255, 253, 0.98));
}

.dashboard-v2-reference-card.tone-teal .dashboard-v2-reference-icon {
    color: #2f8f88;
}

.dashboard-v2-reference-card.tone-amber {
    background:
        radial-gradient(circle at 84% 14%, rgba(244, 185, 76, 0.18), rgba(244, 185, 76, 0) 32%),
        linear-gradient(180deg, rgba(255, 248, 234, 0.99), rgba(255, 252, 244, 0.98));
}

.dashboard-v2-reference-card.tone-amber .dashboard-v2-reference-icon {
    color: #d4971d;
}

.dashboard-v2-reference-card.tone-mint {
    background:
        radial-gradient(circle at 84% 14%, rgba(92, 189, 140, 0.18), rgba(92, 189, 140, 0) 32%),
        linear-gradient(180deg, rgba(239, 252, 244, 0.99), rgba(248, 255, 250, 0.98));
}

.dashboard-v2-reference-card.tone-mint .dashboard-v2-reference-icon {
    color: #2b9563;
}

.dashboard-v2-reference-map-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.998), rgba(246, 250, 255, 0.986));
    border: 1px solid rgba(215, 227, 243, 0.96);
    box-shadow: 0 20px 34px rgba(12, 55, 112, 0.08);
}

.dashboard-v2-reference-map-head {
    display: grid;
    gap: 10px;
}

.dashboard-v2-reference-map-copy {
    display: grid;
    gap: 6px;
}

.dashboard-v2-reference-map-kicker {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 26px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(28, 79, 149, 0.08);
    color: #1c4f95;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dashboard-v2-reference-map-copy strong {
    color: #123b71;
    font-size: 18px;
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.dashboard-v2-reference-map-copy p {
    margin: 0;
    color: #5e7392;
    font-size: 11px;
    line-height: 1.5;
}

.dashboard-v2-reference-map-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-v2-reference-map-stat {
    display: grid;
    grid-template-columns: 10px auto 1fr;
    align-items: center;
    column-gap: 8px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(252, 254, 255, 0.99), rgba(242, 247, 255, 0.97));
    border: 1px solid rgba(217, 228, 243, 0.94);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 10px 18px rgba(12, 55, 112, 0.04);
}

.dashboard-v2-reference-map-stat i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #5f8fd5;
    box-shadow: 0 0 0 4px rgba(95, 143, 213, 0.14);
}

.dashboard-v2-reference-map-stat.is-work i {
    background: #2f8f5b;
    box-shadow: 0 0 0 4px rgba(47, 143, 91, 0.14);
}

.dashboard-v2-reference-map-stat.is-emergency i {
    background: #d64a47;
    box-shadow: 0 0 0 4px rgba(214, 74, 71, 0.14);
}

.dashboard-v2-reference-map-stat.is-announcement i {
    background: #2f73cc;
    box-shadow: 0 0 0 4px rgba(47, 115, 204, 0.14);
}

.dashboard-v2-reference-map-stat b {
    color: #153d72;
    font-size: 18px;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dashboard-v2-reference-map-stat small {
    justify-self: end;
    color: #6c809d;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-v2-reference-map-stage {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(214, 227, 243, 0.96);
    background: linear-gradient(180deg, #eef4fb 0%, #e8f0f9 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.dashboard-v2-reference-map-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(12, 55, 112, 0.06), rgba(12, 55, 112, 0) 26%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 350;
}

.dashboard-v2-reference-map-block {
    height: 248px;
    min-height: 248px;
    border-radius: 26px;
    aspect-ratio: auto;
    background: #dce8f7;
}

.dashboard-v2-reference-map-block .leaflet-control-attribution {
    font-size: 8px;
    padding: 3px 6px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px 0 0 0;
}

.dashboard-v2-reference-map-block .leaflet-control-zoom {
    margin: 12px 12px 0 0;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(13, 55, 111, 0.18);
}

.dashboard-v2-reference-map-block .leaflet-control-zoom a {
    width: 34px;
    height: 34px;
    line-height: 34px;
    border: none;
    color: #1a4c92;
    background: rgba(255, 255, 255, 0.96);
}

.dashboard-v2-reference-map-block .leaflet-control-zoom a:hover {
    background: rgba(241, 247, 255, 0.98);
}

.dashboard-v2-reference-map-block .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 18px 32px rgba(9, 42, 88, 0.18);
}

.dashboard-v2-reference-map-block .leaflet-popup-content {
    margin: 0;
}

.dashboard-v2-reference-map-block .leaflet-popup-tip {
    box-shadow: none;
}

.dashboard-map-marker {
    background: transparent;
    border: none;
}

.dashboard-map-marker span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 3px solid rgba(255, 255, 255, 0.98);
    background: var(--marker-color, #2f73cc);
    box-shadow: 0 10px 18px rgba(10, 52, 110, 0.24);
}

.dashboard-map-marker.is-work {
    --marker-color: #2f8f5b;
}

.dashboard-map-marker.is-emergency {
    --marker-color: #d64a47;
}

.dashboard-map-marker.is-default {
    --marker-color: #2f73cc;
}

.dashboard-map-popup {
    min-width: 208px;
    display: grid;
    gap: 8px;
    padding: 14px;
    color: #173a67;
}

.dashboard-map-popup-badge {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--badge-color, #2f73cc);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.dashboard-map-popup strong {
    color: #123b71;
    font-size: 15px;
    line-height: 1.28;
}

.dashboard-map-popup p {
    margin: 0;
    color: #5c7090;
    font-size: 12px;
    line-height: 1.55;
}

.dashboard-map-popup-meta {
    color: #5d7192;
    font-size: 11px;
    line-height: 1.45;
}

.dashboard-v2-reference-map-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-v2-reference-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-v2-reference-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(243, 247, 255, 0.94);
    border: 1px solid rgba(218, 229, 243, 0.92);
    color: #20487e;
    font-size: 10px;
    font-weight: 800;
}

.dashboard-v2-reference-map-legend-item i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #2f73cc;
    box-shadow: 0 0 0 4px rgba(47, 115, 204, 0.14);
}

.dashboard-v2-reference-map-legend-item.is-work i {
    background: #2f8f5b;
    box-shadow: 0 0 0 4px rgba(47, 143, 91, 0.14);
}

.dashboard-v2-reference-map-legend-item.is-emergency i {
    background: #d64a47;
    box-shadow: 0 0 0 4px rgba(214, 74, 71, 0.14);
}

.dashboard-v2-reference-map-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: none;
    min-width: 194px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2f80ea 0%, #145fbe 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 18px 28px rgba(19, 93, 190, 0.24);
}

.dashboard-v2-reference-map-action span,
.dashboard-v2-reference-map-action span svg {
    display: inline-flex;
    width: 16px;
    height: 16px;
}

.dashboard-v2-reference-strip-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-v2-reference-strip {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 10px 12px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(244, 248, 255, 0.982));
    border: 1px solid rgba(217, 228, 243, 0.96);
    box-shadow: 0 14px 22px rgba(12, 55, 112, 0.05);
    color: #2a4462;
}

.dashboard-v2-reference-strip-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: linear-gradient(180deg, rgba(236, 244, 255, 0.98), rgba(255, 255, 255, 0.98));
    color: #1a68d2;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.dashboard-v2-reference-strip-icon svg,
.dashboard-v2-reference-strip-arrow,
.dashboard-v2-reference-strip-arrow svg {
    width: 16px;
    height: 16px;
}

.dashboard-v2-reference-strip strong {
    font-size: 12px;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #25405d;
}

.dashboard-v2-reference-strip-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(239, 245, 254, 0.96);
    color: #7f96b4;
}

@media (max-width: 640px) {
    .dashboard-v2-reference-grid {
        gap: 8px;
    }

    .dashboard-v2-reference-card {
        min-height: 88px;
        padding: 10px 4px 9px;
        border-radius: 20px;
    }

    .dashboard-v2-reference-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

    .dashboard-v2-reference-icon svg {
        width: 18px;
        height: 18px;
    }

    .dashboard-v2-reference-card strong {
        font-size: 10px;
    }

    .dashboard-v2-reference-map-card {
        padding: 12px;
        border-radius: 26px;
    }

    .dashboard-v2-reference-map-head {
        gap: 10px;
    }

    .dashboard-v2-reference-map-copy strong {
        font-size: 17px;
    }

    .dashboard-v2-reference-map-copy p {
        font-size: 11px;
    }

    .dashboard-v2-reference-map-stats {
        gap: 7px;
    }

    .dashboard-v2-reference-map-stat {
        min-height: 42px;
        padding: 0 11px;
        border-radius: 999px;
    }

    .dashboard-v2-reference-map-stat b {
        font-size: 17px;
    }

    .dashboard-v2-reference-map-stat small {
        font-size: 9px;
    }

    .dashboard-v2-reference-map-stage {
        border-radius: 24px;
    }

    .dashboard-v2-reference-map-block {
        height: 220px;
        min-height: 220px;
        border-radius: 24px;
    }

    .dashboard-v2-reference-map-block .leaflet-control-zoom {
        margin: 10px 10px 0 0;
    }

    .dashboard-v2-reference-map-block .leaflet-control-zoom a {
        width: 32px;
        height: 32px;
        line-height: 32px;
    }

    .dashboard-map-popup {
        min-width: 184px;
        padding: 12px;
        gap: 6px;
    }

    .dashboard-map-popup strong {
        font-size: 14px;
    }

    .dashboard-map-popup p {
        font-size: 10px;
    }

    .dashboard-v2-reference-map-footer {
        display: grid;
        gap: 10px;
    }

    .dashboard-v2-reference-map-legend {
        gap: 6px;
    }

    .dashboard-v2-reference-map-legend-item {
        min-height: 32px;
        padding: 0 11px;
        font-size: 10px;
    }

    .dashboard-v2-reference-map-action {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        font-size: 13px;
    }

    .dashboard-v2-reference-strip-grid {
        gap: 7px;
    }

    .dashboard-v2-reference-strip {
        grid-template-columns: 32px minmax(0, 1fr) 12px;
        min-height: 50px;
        padding: 8px 10px;
        border-radius: 16px;
    }

    .dashboard-v2-reference-strip-icon {
        width: 32px;
        height: 32px;
        border-radius: 11px;
    }

    .dashboard-v2-reference-strip strong {
        font-size: 11px;
    }
}

/* Global menu navigation */
body.menu-open {
    overflow: hidden;
}

.app-menu-launch {
    position: fixed;
    left: 50%;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 1605;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 148px;
    min-height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(243, 248, 255, 0.94));
    border: 1px solid rgba(216, 228, 244, 0.98);
    box-shadow: 0 24px 42px rgba(10, 52, 110, 0.18);
    backdrop-filter: blur(22px);
    color: #1b4f9f;
    font-size: 15px;
    font-weight: 800;
    transform: translateX(-50%);
    transition: transform 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease;
}

.app-menu-launch:hover {
    transform: translateX(-50%) translateY(-2px);
}

.menu-open .app-menu-launch {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(8px);
}

.app-menu-launch-dots,
.app-menu-launch-arrow,
.app-menu-sheet-trigger-icon,
.app-menu-sheet-trigger-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.app-menu-launch-dots {
    color: #85a234;
}

.app-menu-launch-arrow {
    color: #7e93b2;
}

.app-menu-overlay[hidden] {
    display: none;
}

.app-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1700;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 18px 12px calc(100px + env(safe-area-inset-bottom));
}

.app-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 29, 56, 0.28);
    backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.app-menu-sheet {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: 18px 14px 16px;
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(216, 232, 251, 0.4), rgba(241, 247, 255, 0.24)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.46);
    box-shadow: 0 34px 72px rgba(8, 40, 83, 0.28);
    backdrop-filter: blur(28px);
    transform: translateY(28px);
    opacity: 0;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.app-menu-overlay.open .app-menu-backdrop {
    opacity: 1;
}

.app-menu-overlay.open .app-menu-sheet {
    transform: translateY(0);
    opacity: 1;
}

.app-menu-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    color: #5e7291;
    box-shadow: 0 10px 16px rgba(12, 55, 112, 0.08);
}

.app-menu-close svg {
    width: 18px;
    height: 18px;
}

.app-menu-brand {
    display: grid;
    justify-items: center;
    margin-top: -34px;
}

.app-menu-brand-logo {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(231, 240, 254, 0.95));
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 28px rgba(12, 55, 112, 0.18);
}

.app-menu-brand-logo img {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    object-fit: cover;
}

.app-menu-sheet h2 {
    margin: 10px 0 14px;
    text-align: center;
    font-size: 18px;
    letter-spacing: -0.03em;
    color: #1f3d60;
}

.app-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.app-menu-tile {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 7px;
    min-height: 92px;
    padding: 10px 5px 9px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 255, 0.92));
    border: 1px solid rgba(221, 231, 244, 0.98);
    box-shadow: 0 14px 22px rgba(12, 55, 112, 0.08);
    text-align: center;
}

.app-menu-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 84% 14%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 34%);
    pointer-events: none;
}

.app-menu-tile-icon {
    position: relative;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
    box-shadow: 0 10px 16px rgba(12, 55, 112, 0.1);
}

.app-menu-tile-icon svg {
    width: 20px;
    height: 20px;
}

.app-menu-tile strong {
    position: relative;
    z-index: 1;
    font-size: 11px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #284462;
    font-weight: 800;
}

.app-menu-tile-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 2;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6d60 0%, #df473f 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.94);
}

.app-menu-tile.tone-orange .app-menu-tile-icon { color: #eb7a17; }
.app-menu-tile.tone-blue .app-menu-tile-icon { color: #2a75d8; }
.app-menu-tile.tone-navy .app-menu-tile-icon { color: #375f9f; }
.app-menu-tile.tone-sky .app-menu-tile-icon { color: #1f90c8; }
.app-menu-tile.tone-red .app-menu-tile-icon { color: #d64a47; }
.app-menu-tile.tone-teal .app-menu-tile-icon { color: #2f8f88; }
.app-menu-tile.tone-amber .app-menu-tile-icon { color: #d4971d; }
.app-menu-tile.tone-mint .app-menu-tile-icon { color: #2b9563; }

.app-menu-sheet-trigger {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 246, 255, 0.96));
    box-shadow: 0 16px 26px rgba(12, 55, 112, 0.12);
    color: #1f4f9e;
    font-size: 16px;
    font-weight: 800;
}

.app-menu-sheet-trigger-icon {
    color: #84a133;
}

.app-menu-sheet-trigger-arrow {
    color: #7f94b2;
}

.mobile-bottom-nav.mobile-bottom-nav-menu {
    gap: 6px;
    padding: 12px 10px calc(12px + env(safe-area-inset-bottom));
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
    box-shadow: 0 28px 56px rgba(10, 52, 110, 0.16);
    backdrop-filter: blur(24px);
}

.mobile-bottom-nav.mobile-bottom-nav-menu .bottom-nav-item {
    min-height: 60px;
    padding: 8px 4px;
    border-radius: 20px;
}

.mobile-bottom-nav.mobile-bottom-nav-menu .bottom-nav-icon {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 16px;
}

.mobile-bottom-nav.mobile-bottom-nav-menu .bottom-nav-item.active {
    background: linear-gradient(180deg, rgba(17, 86, 183, 0.14), rgba(17, 86, 183, 0.05));
}

.bottom-nav-static-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6d60 0%, #df473f 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.96);
}

@media (max-width: 640px) {
    .app-menu-launch {
        bottom: calc(82px + env(safe-area-inset-bottom));
        min-width: 138px;
        min-height: 48px;
        padding: 0 16px;
        font-size: 14px;
    }

    .app-menu-overlay {
        padding: 14px 10px calc(98px + env(safe-area-inset-bottom));
    }

    .app-menu-sheet {
        padding: 16px 12px 14px;
        border-radius: 30px;
    }

    .app-menu-brand {
        margin-top: -28px;
    }

    .app-menu-brand-logo {
        width: 68px;
        height: 68px;
    }

    .app-menu-grid {
        gap: 7px;
    }

    .app-menu-tile {
        min-height: 86px;
        padding: 9px 4px 8px;
        border-radius: 16px;
    }

    .app-menu-tile-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .app-menu-tile-icon svg {
        width: 18px;
        height: 18px;
    }

    .app-menu-tile strong {
        font-size: 10px;
    }

    .app-menu-sheet-trigger {
        min-height: 47px;
        margin-top: 10px;
        font-size: 15px;
    }
}

/* Modern civic bottom navigation + services sheet */
body.services-sheet-open {
    overflow: hidden;
}

.civic-nav-shell {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1600;
    display: flex;
    justify-content: center;
    padding: 0 12px calc(10px + env(safe-area-inset-bottom));
    pointer-events: none;
}

.civic-bottom-nav {
    pointer-events: auto;
    width: min(100%, 540px);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.9));
    border: 1px solid rgba(226, 234, 247, 0.96);
    box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.62), 0 22px 42px rgba(8, 40, 83, 0.14);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.civic-bottom-nav__item {
    appearance: none;
    border: 0;
    background: transparent;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 7px;
    min-height: 64px;
    padding: 8px 5px;
    border-radius: 20px;
    color: #667c98;
    font: inherit;
    transition:
        transform 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
}

.civic-bottom-nav__item:hover {
    transform: translateY(-1px);
    color: #3f618d;
}

.civic-bottom-nav__item:active {
    transform: translateY(0) scale(0.98);
}

.civic-bottom-nav__item.is-active {
    background: linear-gradient(180deg, #2a75d8 0%, #145cb7 100%);
    color: #fff;
    box-shadow: 0 16px 24px rgba(19, 93, 190, 0.22);
}

.civic-bottom-nav__item--services {
    color: #1e5aa8;
}

.civic-bottom-nav__item--services.is-open {
    background: linear-gradient(180deg, rgba(47, 129, 234, 0.12), rgba(19, 93, 190, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.civic-bottom-nav__icon {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
    border: 1px solid rgba(225, 234, 246, 0.98);
    box-shadow: 0 8px 14px rgba(12, 55, 112, 0.08);
    color: inherit;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.civic-bottom-nav__item.is-active .civic-bottom-nav__icon {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.civic-bottom-nav__icon--services {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: linear-gradient(180deg, #2a75d8 0%, #145cb7 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 22px rgba(19, 93, 190, 0.24);
}

.civic-bottom-nav__icon svg {
    width: 22px;
    height: 22px;
}

.civic-bottom-nav__label {
    font-size: 12px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.civic-bottom-nav__badge {
    position: absolute;
    top: -4px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ff6b5f 0%, #df463f 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 16px rgba(223, 70, 63, 0.24);
}

.civic-services-sheet-wrap[hidden] {
    display: none;
}

.civic-services-sheet-wrap {
    position: fixed;
    inset: 0;
    z-index: 1700;
}

.civic-services-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 29, 56, 0.24);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.26s ease;
}

.civic-services-sheet {
    --sheet-drag: 0px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 560px);
    max-height: min(84vh, 780px);
    margin: 0 auto;
    padding: 10px 14px calc(26px + env(safe-area-inset-bottom));
    border-radius: 32px 32px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.97));
    border: 1px solid rgba(229, 236, 247, 0.98);
    box-shadow: 0 -10px 24px rgba(8, 40, 83, 0.08), 0 -2px 0 rgba(255, 255, 255, 0.64);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform: translateY(calc(100% + var(--sheet-drag, 0px)));
    opacity: 0;
    overflow: auto;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
    will-change: transform;
}

.civic-services-sheet-wrap.is-open .civic-services-sheet__backdrop {
    opacity: 1;
}

.civic-services-sheet-wrap.is-open .civic-services-sheet {
    transform: translateY(var(--sheet-drag));
    opacity: 1;
}

.civic-services-sheet.is-dragging {
    transition: none;
}

.civic-services-sheet__drag {
    display: grid;
    place-items: center;
    width: 100%;
    color: #a5b4c9;
    margin-bottom: 8px;
    touch-action: none;
}

.civic-services-sheet__drag svg {
    width: 48px;
    height: 8px;
}

.civic-services-sheet__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #f2f6fc;
    color: #6d7f98;
    box-shadow: 0 10px 18px rgba(12, 55, 112, 0.08);
}

.civic-services-sheet__close svg {
    width: 18px;
    height: 18px;
}

.civic-services-sheet__header {
    padding: 6px 4px 12px;
}

.civic-services-sheet__eyebrow {
    margin: 0 0 6px;
    color: #3d6fb8;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.civic-services-sheet__header h2 {
    margin: 0;
    color: #193754;
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.civic-services-sheet__summary {
    margin: 8px 0 0;
    color: #6d7f98;
    font-size: 12px;
    line-height: 1.55;
}

.civic-services-sheet__support {
    margin-bottom: 14px;
}

.civic-support-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(241, 252, 249, 0.99), rgba(248, 255, 253, 0.97));
    border: 1px solid rgba(222, 234, 245, 0.98);
    box-shadow: 0 14px 22px rgba(12, 55, 112, 0.05);
    color: #22415f;
}

.civic-support-card__icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 17px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 245, 0.96));
    color: #258d67;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.civic-support-card__icon svg {
    width: 22px;
    height: 22px;
}

.civic-support-card__body {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.civic-support-card__body strong {
    color: #173a67;
    font-size: 15px;
    line-height: 1.18;
    letter-spacing: -0.02em;
}

.civic-support-card__body span {
    color: #637a97;
    font-size: 12px;
    line-height: 1.45;
}

.civic-support-card__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #7a91ae;
}

.civic-support-card__arrow svg {
    width: 18px;
    height: 18px;
}

.civic-services-section {
    display: grid;
    gap: 10px;
}

.civic-services-section + .civic-services-section {
    margin-top: 16px;
}

.civic-services-section__head {
    display: grid;
    gap: 3px;
    padding: 0 2px;
}

.civic-services-section__head h3 {
    margin: 0;
    color: #1a3859;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.civic-services-section__head p {
    margin: 0;
    color: #6d7f98;
    font-size: 12px;
    line-height: 1.45;
}

.civic-services-sheet__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.civic-services-sheet__grid--priority {
    gap: 12px;
}

.civic-service-card {
    position: relative;
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 112px;
    padding: 15px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.97));
    border: 1px solid rgba(224, 232, 245, 0.98);
    box-shadow: 0 12px 20px rgba(12, 55, 112, 0.05);
    transform: translateY(0) scale(1);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.civic-service-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 18px 30px rgba(12, 55, 112, 0.1);
}

.civic-service-card:active {
    transform: translateY(0) scale(0.985);
}

.civic-service-card__icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.civic-service-card__icon svg {
    width: 22px;
    height: 22px;
}

.civic-service-card strong {
    display: block;
    color: #203d5c;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.civic-service-card span:last-child {
    color: #6d7f98;
    font-size: 12px;
    line-height: 1.55;
}

.civic-service-card--priority strong {
    font-size: 16px;
}

.civic-services-list {
    display: grid;
    gap: 10px;
}

.civic-service-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 12px 14px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995), rgba(245, 249, 255, 0.98));
    border: 1px solid rgba(224, 232, 245, 0.98);
    box-shadow: 0 12px 18px rgba(12, 55, 112, 0.04);
    color: #244261;
}

.civic-service-row__icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 245, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.civic-service-row__icon svg {
    width: 20px;
    height: 20px;
}

.civic-service-row__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.civic-service-row__body strong {
    color: #203d5c;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.civic-service-row__body span {
    color: #6d7f98;
    font-size: 11px;
    line-height: 1.42;
}

.civic-service-row__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #8aa0bc;
}

.civic-service-row__arrow svg {
    width: 18px;
    height: 18px;
}

.civic-service-card.tone-orange .civic-service-card__icon { color: #eb7a17; }
.civic-service-card.tone-blue .civic-service-card__icon { color: #2a75d8; }
.civic-service-card.tone-navy .civic-service-card__icon { color: #375f9f; }
.civic-service-card.tone-red .civic-service-card__icon { color: #d64a47; }
.civic-service-card.tone-teal .civic-service-card__icon { color: #2f8f88; }
.civic-service-card.tone-amber .civic-service-card__icon { color: #d4971d; }
.civic-service-card.tone-mint .civic-service-card__icon { color: #2b9563; }

.civic-service-row.tone-orange .civic-service-row__icon { color: #eb7a17; }
.civic-service-row.tone-blue .civic-service-row__icon { color: #2a75d8; }
.civic-service-row.tone-navy .civic-service-row__icon { color: #375f9f; }
.civic-service-row.tone-red .civic-service-row__icon { color: #d64a47; }
.civic-service-row.tone-teal .civic-service-row__icon { color: #2f8f88; }
.civic-service-row.tone-amber .civic-service-row__icon { color: #d4971d; }
.civic-service-row.tone-mint .civic-service-row__icon { color: #2b9563; }

.civic-service-card.tone-orange { background: linear-gradient(180deg, rgba(255, 247, 240, 0.99), rgba(255, 252, 248, 0.97)); }
.civic-service-card.tone-blue { background: linear-gradient(180deg, rgba(242, 248, 255, 0.99), rgba(248, 251, 255, 0.97)); }
.civic-service-card.tone-navy { background: linear-gradient(180deg, rgba(244, 247, 253, 0.99), rgba(249, 251, 255, 0.97)); }
.civic-service-card.tone-red { background: linear-gradient(180deg, rgba(255, 244, 243, 0.99), rgba(255, 250, 249, 0.97)); }
.civic-service-card.tone-teal { background: linear-gradient(180deg, rgba(241, 252, 249, 0.99), rgba(248, 255, 253, 0.97)); }
.civic-service-card.tone-amber { background: linear-gradient(180deg, rgba(255, 249, 238, 0.99), rgba(255, 252, 246, 0.97)); }
.civic-service-card.tone-mint { background: linear-gradient(180deg, rgba(242, 253, 247, 0.99), rgba(248, 255, 251, 0.97)); }

@media (max-width: 640px) {
    .civic-nav-shell {
        padding: 0 10px calc(8px + env(safe-area-inset-bottom));
    }

    .civic-bottom-nav {
        gap: 5px;
        padding: 8px 8px 10px;
    }

    .civic-bottom-nav__item {
        min-height: 60px;
        padding: 7px 4px;
        border-radius: 18px;
    }

    .civic-bottom-nav__icon {
        width: 40px;
        height: 40px;
        border-radius: 15px;
    }

    .civic-bottom-nav__icon--services {
        width: 46px;
        height: 46px;
        border-radius: 17px;
    }

    .civic-bottom-nav__icon svg {
        width: 21px;
        height: 21px;
    }

    .civic-bottom-nav__label {
        font-size: 11px;
    }

    .civic-services-sheet {
        max-height: min(84vh, 760px);
        padding: 10px 12px calc(22px + env(safe-area-inset-bottom));
    }

    .civic-services-sheet__header h2 {
        font-size: 22px;
    }

    .civic-services-sheet__summary {
        font-size: 12px;
    }

    .civic-support-card {
        grid-template-columns: 44px minmax(0, 1fr) 16px;
        min-height: 72px;
        padding: 12px;
        border-radius: 22px;
    }

    .civic-support-card__icon {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .civic-support-card__body strong {
        font-size: 14px;
    }

    .civic-support-card__body span {
        font-size: 11px;
    }

    .civic-services-section__head h3 {
        font-size: 15px;
    }

    .civic-services-section__head p {
        font-size: 11px;
    }

    .civic-services-sheet__grid {
        gap: 10px;
    }

    .civic-service-card {
        min-height: 104px;
        padding: 14px;
        border-radius: 20px;
    }

    .civic-service-card__icon {
        width: 42px;
        height: 42px;
        border-radius: 15px;
    }

    .civic-service-card strong {
        font-size: 14px;
    }

    .civic-service-card span:last-child {
        font-size: 11px;
    }

    .civic-services-list {
        gap: 8px;
    }

    .civic-service-row {
        grid-template-columns: 38px minmax(0, 1fr) 16px;
        min-height: 60px;
        padding: 11px 12px;
        border-radius: 18px;
    }

    .civic-service-row__icon {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }

    .civic-service-row__body strong {
        font-size: 13px;
    }

    .civic-service-row__body span {
        font-size: 10px;
    }
}

@media (max-width: 640px) {
    .panel-notification-popcard {
        top: max(82px, calc(env(safe-area-inset-top) + 64px));
        right: 14px;
        left: 14px;
        width: auto;
        max-height: min(76vh, 640px);
        padding: 15px;
        border-radius: 28px;
    }

    .panel-notification-popcard-head > div {
        padding: 12px 12px 10px;
        border-radius: 20px;
    }

    .panel-notification-popcard-head h2 {
        font-size: 20px;
    }

    .panel-notification-popcard-head p {
        font-size: 12px;
    }

    .panel-notification-item {
        padding: 13px 13px 13px 16px;
        border-radius: 20px;
    }

    .panel-notification-item strong {
        font-size: 15px;
    }

    .panel-notification-item p,
    .panel-notification-item-meta {
        font-size: 12px;
    }
}

.panel-notification-popcard {
    top: 50%;
    left: 50%;
    right: auto;
    width: min(430px, calc(100vw - 30px));
    max-height: none;
    padding: 70px 14px 16px;
    border-radius: 38px;
    background:
        radial-gradient(circle at top, rgba(188, 214, 248, 0.52), rgba(188, 214, 248, 0) 44%),
        linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(236, 244, 255, 0.9));
    border: 1px solid rgba(233, 239, 248, 0.98);
    box-shadow: 0 36px 72px rgba(17, 48, 94, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translate(-50%, calc(-50% - 18px)) scale(0.96);
    transform-origin: center;
    overflow: visible;
}

.panel-notification-popcard::before {
    display: none;
}

.panel-notification-popcard-wrap.open .panel-notification-popcard {
    transform: translate(-50%, -50%) scale(1);
}

.panel-notification-popcard-orb {
    position: absolute;
    top: -58px;
    left: 50%;
    z-index: 3;
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 38%),
        linear-gradient(180deg, rgba(241, 247, 255, 0.98), rgba(219, 232, 251, 0.9));
    border: 1px solid rgba(227, 236, 248, 0.96);
    box-shadow: 0 24px 48px rgba(27, 73, 141, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.panel-notification-popcard-orb::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 28% 30%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 36%),
        linear-gradient(180deg, rgba(228, 238, 254, 0.92), rgba(200, 219, 248, 0.72));
}

.panel-notification-popcard-orb-icon,
.panel-notification-popcard-orb-icon svg {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 54px;
    color: #2d67c7;
    display: block;
}

.panel-notification-popcard-orb-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, #ef7167, #de5349);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    border: 3px solid rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 20px rgba(222, 83, 73, 0.22);
}

.panel-notification-popcard-head {
    display: block;
    margin-bottom: 16px;
    text-align: center;
}

.panel-notification-popcard-head > div {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.panel-notification-popcard-kicker {
    display: none;
}

.panel-notification-popcard-head h2 {
    margin: 0;
    color: #234068;
    font-size: 30px;
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.panel-notification-popcard-head p {
    max-width: 290px;
    margin: 10px auto 0;
    color: #7b8ca0;
    font-size: 13px;
    line-height: 1.65;
}

.panel-notification-popcard-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(237, 243, 252, 0.92));
    box-shadow: 0 12px 24px rgba(12, 55, 112, 0.08);
    color: #8a98aa;
    font-size: 28px;
}

.panel-notification-popcard-list {
    display: grid;
    gap: 14px;
    max-height: min(46vh, 360px);
    padding: 2px;
    overflow: auto;
}

.panel-notification-item {
    min-height: 208px;
    padding: 18px 18px 74px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 252, 255, 0.96));
    border: 1px solid rgba(229, 236, 246, 0.98);
    box-shadow: 0 18px 34px rgba(17, 58, 110, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.panel-notification-item::before {
    display: none;
}

.panel-notification-item::after {
    display: none;
}

.panel-notification-item:hover,
.panel-notification-item:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 22px 38px rgba(17, 58, 110, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.panel-notification-item.is-unread {
    border-color: rgba(111, 148, 213, 0.34);
    box-shadow: 0 22px 42px rgba(32, 95, 188, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.panel-notification-item.is-unread::after {
    content: "";
    display: block;
    position: absolute;
    top: 18px;
    right: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e45e56;
    box-shadow: 0 0 0 5px rgba(228, 94, 86, 0.11);
}

.panel-notification-item-top {
    display: block;
    margin-bottom: 10px;
}

.panel-notification-item-pill {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #78acfa, #2d6ad4);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-transform: none;
    box-shadow: 0 14px 26px rgba(45, 106, 212, 0.2);
}

.panel-notification-item-date {
    position: absolute;
    left: 20px;
    bottom: 22px;
    color: #8f9caf;
    font-size: 13px;
    font-weight: 600;
}

.panel-notification-item strong {
    color: #253e66;
    font-size: 22px;
    line-height: 1.22;
    letter-spacing: -0.03em;
}

.panel-notification-item p {
    color: #6f8095;
    font-size: 14px;
    line-height: 1.6;
}

.panel-notification-item-meta {
    display: block;
    padding-right: 176px;
    color: #9aa7b8;
    font-size: 12px;
    line-height: 1.5;
}

.panel-notification-item-link {
    position: absolute;
    right: 18px;
    bottom: 16px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6fa8f9, #2d69d3);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 16px 28px rgba(45, 105, 211, 0.22);
}

.panel-notification-item-link::after {
    width: 8px;
    height: 8px;
    margin-top: -1px;
}

/* Notification popup spacing pass */
.panel-notification-popcard {
    width: min(406px, calc(100vw - 16px));
    padding: 54px 10px 14px;
}

.panel-notification-popcard-list {
    gap: 8px;
    max-height: min(56vh, 430px);
}

.panel-notification-item {
    grid-template-columns: 62px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 6px;
    padding: 13px;
    border-radius: 22px;
}

.panel-notification-item::before {
    top: 13px;
    left: 13px;
    width: 62px;
    height: 62px;
    border-radius: 20px;
}

.panel-notification-item::after {
    top: 32px;
    left: 32px;
    width: 24px;
    height: 24px;
}

.panel-notification-item-body strong {
    font-size: 16px;
    line-height: 1.2;
}

.panel-notification-item-body p {
    font-size: 12px;
    line-height: 1.48;
    -webkit-line-clamp: 2;
}

.panel-notification-item-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
}

.panel-notification-item-meta {
    min-height: 0;
    padding: 4px 10px;
    border-radius: 14px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.35;
}

.panel-notification-item-link {
    min-width: 94px;
    min-height: 34px;
    padding: 0 12px;
    font-size: 11px;
    box-shadow: 0 10px 16px rgba(45, 105, 211, 0.16);
}

@media (max-width: 640px) {
    .panel-notification-popcard {
        width: min(100vw - 10px, 392px);
        padding: 50px 8px 12px;
    }

    .panel-notification-popcard-list {
        max-height: min(58vh, 448px);
    }

    .panel-notification-item {
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 10px;
        padding: 12px;
        border-radius: 20px;
    }

    .panel-notification-item::before {
        top: 12px;
        left: 12px;
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .panel-notification-item::after {
        top: 28px;
        left: 28px;
        width: 22px;
        height: 22px;
    }

    .panel-notification-item-body strong {
        font-size: 15px;
    }

    .panel-notification-item-body p {
        font-size: 11px;
    }

    .panel-notification-item-meta {
        padding: 4px 8px;
        font-size: 10px;
    }

    .panel-notification-item-link {
        min-width: 88px;
        min-height: 32px;
        padding: 0 10px;
        font-size: 10px;
    }
}

/* Address visibility pass */
.panel-notification-popcard {
    width: min(414px, calc(100vw - 12px));
    padding: 50px 10px 14px;
}

.panel-notification-popcard-list {
    gap: 8px;
    max-height: min(60vh, 520px);
}

.panel-notification-item {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 6px;
    padding: 12px;
    border-radius: 20px;
}

.panel-notification-item::before {
    top: 12px;
    left: 12px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
}

.panel-notification-item::after {
    top: 28px;
    left: 28px;
    width: 22px;
    height: 22px;
}

.panel-notification-item-top {
    gap: 8px;
}

.panel-notification-item-pill {
    min-height: 26px;
    padding: 0 12px;
    font-size: 10px;
}

.panel-notification-item-date {
    font-size: 10px;
}

.panel-notification-item-body {
    gap: 5px;
}

.panel-notification-item-body strong {
    font-size: 15px;
    line-height: 1.18;
}

.panel-notification-item-body p {
    font-size: 11px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
}

.panel-notification-item-meta-row {
    grid-template-columns: 1fr;
    gap: 6px;
}

.panel-notification-item-meta {
    display: block;
    min-height: 0;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: 10px;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.panel-notification-item-link {
    justify-self: end;
    min-width: 88px;
    min-height: 32px;
    padding: 0 10px;
    font-size: 10px;
}

@media (max-width: 640px) {
    .panel-notification-popcard {
        width: min(100vw - 6px, 404px);
        padding: 48px 8px 12px;
    }

    .panel-notification-popcard-list {
        max-height: min(62vh, 560px);
    }

    .panel-notification-item {
        grid-template-columns: 52px minmax(0, 1fr);
        padding: 11px;
        border-radius: 18px;
    }

    .panel-notification-item::before {
        top: 11px;
        left: 11px;
        width: 52px;
        height: 52px;
        border-radius: 16px;
    }

    .panel-notification-item::after {
        top: 26px;
        left: 26px;
        width: 20px;
        height: 20px;
    }

    .panel-notification-item-body strong {
        font-size: 14px;
    }

    .panel-notification-item-body p {
        font-size: 10px;
    }

    .panel-notification-item-meta {
        font-size: 9px;
        padding: 5px 8px;
    }

    .panel-notification-item-link {
        min-width: 82px;
        min-height: 30px;
        padding: 0 9px;
        font-size: 9px;
    }
}

.panel-notification-empty {
    padding: 26px 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.95));
    border: 1px solid rgba(229, 236, 246, 0.98);
    box-shadow: 0 16px 30px rgba(17, 58, 110, 0.06);
    text-align: center;
}

.panel-notification-popcard-more {
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(105, 161, 247, 0.16), rgba(53, 112, 203, 0.1));
    color: #2f5f9f;
    font-size: 13px;
    font-weight: 800;
}

@media (max-width: 640px) {
    .panel-notification-popcard {
        top: 50%;
        left: 50%;
        right: auto;
        width: min(100vw - 24px, 420px);
        padding: 64px 12px 14px;
        border-radius: 32px;
        transform: translate(-50%, calc(-50% - 14px)) scale(0.96);
    }

    .panel-notification-popcard-wrap.open .panel-notification-popcard {
        transform: translate(-50%, -50%) scale(1);
    }

    .panel-notification-popcard-orb {
        top: -52px;
        width: 104px;
        height: 104px;
    }

    .panel-notification-popcard-orb-icon,
    .panel-notification-popcard-orb-icon svg {
        width: 48px;
        height: 48px;
    }

    .panel-notification-popcard-orb-badge {
        min-width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .panel-notification-popcard-head h2 {
        font-size: 26px;
    }

    .panel-notification-item {
        min-height: 194px;
        padding: 16px 16px 70px;
        border-radius: 24px;
    }

    .panel-notification-item strong {
        font-size: 18px;
    }

    .panel-notification-item p {
        font-size: 13px;
    }

    .panel-notification-item-meta {
        padding-right: 148px;
        font-size: 11px;
    }

    .panel-notification-item-link {
        right: 14px;
        bottom: 14px;
        min-height: 42px;
        padding: 0 18px;
        font-size: 13px;
    }

    .panel-notification-item-date {
        left: 16px;
        bottom: 19px;
        font-size: 12px;
    }
}

/* Compact notification cards */
.panel-notification-popcard {
    width: min(404px, calc(100vw - 24px));
    padding: 58px 12px 14px;
}

.panel-notification-popcard-orb {
    top: -46px;
    width: 96px;
    height: 96px;
}

.panel-notification-popcard-orb::before {
    inset: 9px;
}

.panel-notification-popcard-orb-icon,
.panel-notification-popcard-orb-icon svg {
    width: 44px;
    height: 44px;
}

.panel-notification-popcard-orb-badge {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    font-size: 16px;
}

.panel-notification-popcard-head {
    margin-bottom: 12px;
}

.panel-notification-popcard-head h2 {
    font-size: 26px;
}

.panel-notification-popcard-head p {
    max-width: 250px;
    font-size: 12px;
}

.panel-notification-popcard-close {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    font-size: 24px;
}

.panel-notification-popcard-list {
    gap: 10px;
    max-height: min(46vh, 332px);
}

.panel-notification-item {
    min-height: 132px;
    padding: 14px 14px 14px 100px;
    border-radius: 24px;
    box-shadow: 0 12px 24px rgba(17, 58, 110, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.panel-notification-item::before {
    display: block;
    top: 14px;
    left: 14px;
    bottom: auto;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(180deg, #7ab0fb, #2c69d3);
    box-shadow: 0 16px 26px rgba(45, 105, 211, 0.18);
}

.panel-notification-item::after {
    content: "";
    display: block;
    position: absolute;
    top: 36px;
    left: 36px;
    width: 28px;
    height: 28px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.panel-notification-item.tone-info::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 4a4 4 0 0 0-4 4v1.1A6 6 0 0 0 4 15v2h16v-2a6 6 0 0 0-4-5.9V8a4 4 0 0 0-4-4Zm0 17a3 3 0 0 0 2.83-2H9.17A3 3 0 0 0 12 21Z'/%3E%3C/svg%3E");
}

.panel-notification-item.tone-danger::before {
    background: linear-gradient(180deg, #ff9d73, #ec6a45);
    box-shadow: 0 16px 26px rgba(236, 106, 69, 0.18);
}

.panel-notification-item.tone-danger::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2.8 1.8 20.5h20.4L12 2.8Zm.9 5.4-.2 6.3h-1.4l-.2-6.3h1.8Zm-.9 10a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4Z'/%3E%3C/svg%3E");
}

.panel-notification-item.tone-work::before {
    background: linear-gradient(180deg, #6fc9ab, #2b9b74);
    box-shadow: 0 16px 26px rgba(43, 155, 116, 0.18);
}

.panel-notification-item.tone-work::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='m15.6 3.7 4.3-1.5c.7-.3 1.5.3 1.5 1.1v13.6c0 .5-.3 1-.8 1.1l-5 1.7-7.2-2-4.4 1.6c-.7.3-1.5-.3-1.5-1.1V5.7c0-.5.3-1 .8-1.1l5-1.7 7.3 2.8Zm-5 .8L5 6.1v10.8l5.6-1.6V4.5Zm1.8.3v10.8l4.9 1.4V6.2l-4.9-1.4Z'/%3E%3C/svg%3E");
}

.panel-notification-item.is-unread::after {
    content: "";
}

.panel-notification-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.panel-notification-item-top::after {
    display: none;
}

.panel-notification-item.is-unread .panel-notification-item-top::after {
    content: "";
    display: inline-flex;
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #e45e56;
    box-shadow: 0 0 0 4px rgba(228, 94, 86, 0.12);
}

.panel-notification-item-pill {
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
    box-shadow: 0 10px 18px rgba(45, 106, 212, 0.14);
}

.panel-notification-item strong {
    font-size: 18px;
    line-height: 1.24;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel-notification-item p {
    font-size: 12px;
    line-height: 1.52;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.panel-notification-item-meta {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    max-width: 148px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(43, 99, 187, 0.06);
    color: #587394;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-notification-item-date {
    position: static;
    color: #8e9daf;
    font-size: 11px;
    font-weight: 700;
}

.panel-notification-item-link {
    position: static;
    margin-left: auto;
    min-height: 36px;
    padding: 0 16px;
    font-size: 12px;
    box-shadow: 0 10px 18px rgba(45, 105, 211, 0.16);
}

.panel-notification-item-foot {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

@media (max-width: 640px) {
    .panel-notification-popcard {
        width: min(100vw - 18px, 396px);
        padding: 54px 10px 12px;
    }

    .panel-notification-popcard-orb {
        width: 88px;
        height: 88px;
        top: -42px;
    }

    .panel-notification-popcard-orb-icon,
    .panel-notification-popcard-orb-icon svg {
        width: 40px;
        height: 40px;
    }

    .panel-notification-popcard-head h2 {
        font-size: 24px;
    }

    .panel-notification-popcard-list {
        max-height: min(48vh, 330px);
    }

    .panel-notification-item {
        min-height: 124px;
        padding: 13px 12px 13px 92px;
        border-radius: 22px;
    }

    .panel-notification-item::before {
        top: 13px;
        left: 12px;
        width: 66px;
        height: 66px;
        border-radius: 20px;
    }

    .panel-notification-item::after {
        top: 32px;
        left: 31px;
        width: 26px;
        height: 26px;
    }

    .panel-notification-item strong {
        font-size: 16px;
    }

    .panel-notification-item p {
        font-size: 11px;
    }

    .panel-notification-item-meta {
        max-width: 122px;
        padding: 0 10px;
        font-size: 10px;
    }

    .panel-notification-item-link {
        min-height: 34px;
        padding: 0 13px;
        font-size: 11px;
    }
}

/* Popup bug fixes */
.panel-notification-popcard-orb-badge[hidden] {
    display: none !important;
}

.panel-notification-popcard-list {
    padding: 6px 2px 2px;
    overflow-x: hidden;
}

.panel-notification-item {
    overflow: hidden;
}

.panel-notification-item::before {
    top: 50%;
    left: 16px;
    width: 62px;
    height: 62px;
    transform: translateY(-50%);
}

.panel-notification-item::after {
    top: 50%;
    left: 33px;
    width: 28px;
    height: 28px;
    transform: translateY(-50%);
}

.panel-notification-item-body {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.panel-notification-item-body strong,
.panel-notification-item-body p {
    margin: 0;
}

.panel-notification-item-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-wrap: nowrap;
}

.panel-notification-item-meta {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 142px;
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-notification-item-link {
    flex: 0 0 auto;
    min-width: 108px;
    justify-content: center;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .panel-notification-item::before {
        left: 14px;
        width: 58px;
        height: 58px;
    }

    .panel-notification-item::after {
        left: 30px;
        width: 24px;
        height: 24px;
    }

    .panel-notification-item-meta {
        max-width: 118px;
        padding: 0 10px;
    }

    .panel-notification-item-link {
        min-width: 96px;
    }
}

/* Notification popup final polish */
.panel-notification-popcard {
    width: min(394px, calc(100vw - 18px));
    padding: 56px 12px 14px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top, rgba(191, 214, 245, 0.34), rgba(191, 214, 245, 0) 42%),
        linear-gradient(180deg, rgba(247, 250, 255, 0.97), rgba(236, 244, 255, 0.93));
    border: 1px solid rgba(229, 237, 248, 0.98);
    box-shadow: 0 32px 64px rgba(15, 47, 91, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.panel-notification-popcard-head {
    display: block;
    margin: 0 18px 14px;
    text-align: center;
}

.panel-notification-popcard-head > div {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.panel-notification-popcard-head h2 {
    font-size: 28px;
    line-height: 1.08;
    color: #234066;
}

.panel-notification-popcard-head p {
    max-width: 270px;
    margin: 10px auto 0;
    color: #78889d;
    font-size: 13px;
    line-height: 1.55;
}

.panel-notification-popcard-close {
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    font-size: 25px;
}

.panel-notification-popcard-list {
    display: grid;
    gap: 10px;
    max-height: min(48vh, 344px);
    padding: 4px 1px 1px;
    overflow: auto;
    overflow-x: hidden;
}

.panel-notification-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas:
        "icon top"
        "icon body"
        "icon meta";
    column-gap: 14px;
    row-gap: 8px;
    align-items: start;
    min-height: 0;
    padding: 16px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(249, 252, 255, 0.97));
    border: 1px solid rgba(228, 236, 246, 0.98);
    box-shadow: 0 14px 26px rgba(17, 58, 110, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.panel-notification-item::before {
    top: 16px;
    left: 16px;
    width: 72px;
    height: 72px;
    transform: none;
    border-radius: 22px;
    box-shadow: 0 16px 28px rgba(45, 105, 211, 0.18);
}

.panel-notification-item::after {
    top: 38px;
    left: 38px;
    width: 28px;
    height: 28px;
    transform: none;
}

.panel-notification-item-top,
.panel-notification-item-body,
.panel-notification-item-meta-row {
    grid-column: 2;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.panel-notification-item-top {
    grid-area: top;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
}

.panel-notification-item.is-unread .panel-notification-item-top::after {
    display: none;
}

.panel-notification-item-pill {
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 10px 18px rgba(45, 106, 212, 0.14);
}

.panel-notification-item-date {
    position: static;
    color: #8a98aa;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.panel-notification-item-body {
    grid-area: body;
    display: grid;
    gap: 7px;
}

.panel-notification-item-body strong,
.panel-notification-item-body p {
    margin: 0;
}

.panel-notification-item-body strong {
    color: #1f395c;
    font-size: 18px;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.panel-notification-item-body p {
    color: #6d7f95;
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.panel-notification-item-meta-row {
    grid-area: meta;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.panel-notification-item-meta {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: none;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(44, 101, 188, 0.06);
    color: #5c7491;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.panel-notification-item-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #6fa8f8, #2d69d3);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 12px 20px rgba(45, 105, 211, 0.18);
}

.panel-notification-item-link::after {
    width: 8px;
    height: 8px;
    margin-top: -1px;
}

.panel-notification-item.is-unread {
    border-color: rgba(120, 157, 218, 0.32);
    box-shadow: 0 16px 28px rgba(32, 95, 188, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.panel-notification-popcard-more {
    min-height: 50px;
    font-size: 13px;
    border-radius: 999px;
}

@media (max-width: 640px) {
    .panel-notification-popcard {
        width: min(100vw - 14px, 388px);
        padding: 52px 10px 12px;
    }

    .panel-notification-popcard-head {
        margin: 0 16px 12px;
    }

    .panel-notification-popcard-head h2 {
        font-size: 25px;
    }

    .panel-notification-popcard-list {
        max-height: min(48vh, 330px);
    }

    .panel-notification-item {
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 12px;
        padding: 14px;
        border-radius: 22px;
    }

    .panel-notification-item::before {
        top: 14px;
        left: 14px;
        width: 64px;
        height: 64px;
        border-radius: 20px;
    }

    .panel-notification-item::after {
        top: 34px;
        left: 34px;
        width: 24px;
        height: 24px;
    }

    .panel-notification-item-body strong {
        font-size: 16px;
    }

    .panel-notification-item-body p {
        font-size: 12px;
    }

    .panel-notification-item-meta {
        padding: 0 12px;
        font-size: 10px;
    }

    .panel-notification-item-link {
        min-width: 102px;
        min-height: 36px;
        padding: 0 14px;
        font-size: 11px;
    }
}
