:root {
    --brand-500: #00abf0;
    --brand-600: #0091cc;
    --brand-700: #006d99;
    --brand-50: #e6f7fe;
    --charcoal: #0f172a;
    --ink: #0b1220;
    --success: #16a34a;
    --danger: #dc2626;
    --page: #f4f7fb;
    --sidebar: #0b1220;
    --radius: 16px;
    --shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px rgba(15, 23, 42, 0.06);
}

[x-cloak] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 100;
    background: #0f172a;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus {
    top: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.bg-page { background: var(--page); }
.text-charcoal { color: var(--charcoal); }

body {
    background: var(--page);
    color: var(--charcoal);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img,
svg {
    max-width: 100%;
}

pre,
code {
    overflow-wrap: anywhere;
}

body.cp-nav-open { overflow: hidden; }

/* Shell */
.cp-shell {
    min-height: 100vh;
    display: flex;
}

.cp-sidebar {
    width: 260px;
    background: linear-gradient(180deg, #0b1220 0%, #0f1a2e 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    padding: 1.25rem 0.9rem;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.cp-sidebar.is-open { transform: translateX(0); }

@media (min-width: 1024px) {
    .cp-sidebar {
        transform: none;
        position: sticky;
        top: 0;
        height: 100vh;
        flex-shrink: 0;
    }
}

.cp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 40;
}

.cp-sidebar-brand {
    padding: 0.75rem 0.5rem 1.5rem;
}
.cp-logo {
    height: 4.75rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.cp-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1 0 auto;
}

.cp-nav-section-label {
    margin: 0.9rem 0.75rem 0.25rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.cp-nav-count {
    margin-left: auto;
    min-width: 1.5rem;
    padding: 0.15rem 0.4rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 800;
}

.cp-sidebar-foot {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}

.cp-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    color: rgba(255,255,255,0.72);
    font-weight: 600;
    font-size: 0.925rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
    background: transparent;
    border: 0;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
    min-height: 44px;
}
.cp-nav-link:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}
.cp-nav-link:focus-visible,
.cp-icon-btn:focus-visible,
.btn:focus-visible,
.card-link:focus-visible,
.list-card:focus-visible,
.quick-action:focus-visible {
    outline: 3px solid #33bff7;
    outline-offset: 2px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 2px;
}
.cp-nav-link.is-active {
    background: var(--brand-700);
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 171, 240, 0.28);
}

.cp-badge-dot {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: var(--brand-500);
    box-shadow: 0 0 0 2px #0b1220;
}

.cp-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cp-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 64px;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e2e8f0;
    backdrop-filter: blur(8px);
}
.cp-topbar-start {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.cp-topbar-logo {
    height: 2rem;
    width: auto;
    object-fit: contain;
}
.cp-topbar-greeting {
    min-width: 0;
    line-height: 1.2;
}
.cp-topbar-greeting-label {
    display: block;
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cp-topbar-greeting-name {
    display: block;
    color: var(--charcoal);
    font-family: Montserrat, system-ui, sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 14rem;
}
.cp-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}
.cp-topbar-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cp-topbar-btn:hover {
    background: var(--brand-50);
    border-color: #dbe7f0;
    color: var(--brand-800);
}
.cp-topbar-btn.is-active {
    background: var(--brand-50);
    border-color: #b6dcf0;
    color: var(--brand-800);
}
.cp-topbar-btn:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 2px;
}
.cp-topbar-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.cp-topbar-btn-label {
    display: none;
}
.cp-topbar-count {
    position: absolute;
    top: -0.45rem;
    right: -0.55rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1.15rem;
    text-align: center;
}
.cp-account-menu {
    position: relative;
}
.cp-account-trigger .cp-account-caret {
    opacity: 0.7;
}
.cp-account-dropdown {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    z-index: 40;
    width: min(18rem, calc(100vw - 1.5rem));
    padding: 0.4rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.cp-account-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.cp-account-item:hover,
.cp-account-item.is-active {
    background: var(--brand-50);
    color: var(--brand-800);
}
.cp-account-item:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 1px;
}
.cp-account-divider {
    height: 1px;
    margin: 0.35rem 0.4rem;
    background: #e2e8f0;
}
.cp-account-signout {
    color: #b91c1c;
}
.cp-account-signout:hover {
    background: #fef2f2;
    color: #991b1b;
}

@media (min-width: 640px) {
    .cp-topbar-btn-label { display: inline; }
}

@media (min-width: 1024px) {
    .cp-topbar {
        padding: 0.75rem 1.5rem;
    }
}

.cp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    color: var(--charcoal);
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: var(--shadow-soft);
}

.cp-content {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.25rem 1rem calc(6.5rem + env(safe-area-inset-bottom));
}

@media (min-width: 1024px) {
    .cp-content { padding: 1.75rem 2rem 2.5rem; }
}

.cp-bottom-nav {
    position: fixed;
    z-index: 35;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 0.35rem max(0.35rem, env(safe-area-inset-right))
        calc(0.35rem + env(safe-area-inset-bottom))
        max(0.35rem, env(safe-area-inset-left));
    background: rgba(255,255,255,0.97);
    border-top: 1px solid #dbe3ec;
    backdrop-filter: blur(10px);
}
.cp-bottom-nav a {
    min-width: 0;
    min-height: 52px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    border-radius: 10px;
    color: #475569;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
}
.cp-bottom-nav a.is-active {
    color: var(--brand-700);
    background: var(--brand-50);
}
.cp-bottom-nav a:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 1px;
}

.cp-footer {
    margin-top: 2.5rem;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
}
.cp-footer-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: #475569;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.cp-footer-help a {
    color: var(--brand-600);
    font-weight: 700;
    text-decoration: none;
}

/* Auth */
.cp-auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f3f6fa;
    position: relative;
    overflow-x: hidden;
}
.cp-auth-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.07) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.cp-auth-hero {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #0b1220 0%, #004966 45%, #006d99 100%);
    color: #e6f7fe;
    padding: 2.75rem 1.25rem 5rem;
    overflow: hidden;
}
.cp-auth-hero::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    left: -120px;
    top: -160px;
}
.cp-auth-hero::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    right: -80px;
    top: -40px;
}
.cp-auth-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.cp-auth-logo {
    height: 5.5rem;
    width: auto;
    max-width: min(90vw, 420px);
    object-fit: contain;
    filter: brightness(0) invert(1);
    margin: 0 auto;
}
.cp-auth-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 72px;
    color: #f3f6fa;
    display: block;
}
.cp-auth-body {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem 2rem;
    margin-top: -3.25rem;
}
.cp-auth-panel {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 1.5rem 1.6rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.04);
}
.cp-auth-copy {
    margin-top: auto;
    padding-top: 1.75rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

.login-head {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
.login-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--brand-50);
    color: var(--brand-600);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.login-title {
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -0.02em;
    color: var(--charcoal);
    line-height: 1.1;
}
.login-sub {
    margin-top: 0.3rem;
    color: #64748b;
    font-size: 0.92rem;
}

.input-icon-wrap {
    position: relative;
}
.input-icon-wrap .input {
    padding-left: 2.65rem;
}
.input-icon-wrap.has-action .input {
    padding-right: 4rem;
}
.input-leading {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    display: grid;
    place-items: center;
    pointer-events: none;
}
.input-action {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    padding: 0;
    color: var(--brand-600);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
}
.input-action:hover { color: var(--brand-700); }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.35rem 0 1rem;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.auth-link-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--brand-600);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.auth-link-row:hover { color: var(--brand-700); }
.auth-help {
    margin-top: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.5;
}
.auth-help a {
    color: var(--brand-600);
    font-weight: 700;
    text-decoration: none;
}
.auth-help a:hover { text-decoration: underline; }

/* Cards / buttons / inputs */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--brand-700);
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}
.card-title svg { color: var(--brand-500); }
.card-link {
    color: var(--brand-600);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0.15rem;
}
.card-link:hover { color: var(--brand-700); }

.maps-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 700;
    color: var(--brand-700);
    text-decoration: none;
}
.maps-link:hover { text-decoration: underline; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.72rem 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.1;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    min-height: 44px;
    max-width: 100%;
    text-align: center;
}
.btn-primary {
    background: var(--brand-700);
    color: #fff;
}
.btn-primary:hover {
    background: var(--brand-800);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,171,240,0.25);
}
.btn-dark { background: var(--charcoal); color: #fff; }
.btn-outline {
    background: #fff;
    color: var(--brand-700);
    border-color: #dbe7f0;
}
.btn-outline:hover {
    border-color: var(--brand-500);
    color: var(--brand-600);
    background: var(--brand-50);
}
.btn-success {
    background: #15803d;
    color: #fff;
}
.btn-success:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(22,163,74,0.25);
}
.btn-block { width: 100%; }
.btn:disabled,
.btn[aria-disabled="true"] {
    cursor: wait;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

.input {
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    background: #fff;
    min-height: 44px;
}
.input:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(0, 171, 240, 0.15);
}
.label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

input[type="checkbox"],
input[type="radio"] {
    min-width: 1.15rem;
    min-height: 1.15rem;
}
label:has(input[type="checkbox"]),
label:has(input[type="radio"]) {
    min-height: 44px;
    cursor: pointer;
}

.form-error-summary {
    border: 1px solid #fecaca;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
}
.form-error-summary ul {
    margin: 0.45rem 0 0 1.1rem;
    list-style: disc;
}
.form-error-summary a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.status-pill {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.25;
}

.safe-address {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 700;
}

.quote-dialog {
    width: min(92vw, 36rem);
    max-height: min(88vh, 46rem);
    overflow-y: auto;
    border: 0;
    border-radius: 18px;
    padding: 1.25rem;
    color: var(--charcoal);
    background: #fff;
}
.quote-dialog::backdrop {
    background: rgba(15, 23, 42, 0.6);
}
.quote-dialog:focus-visible {
    outline: 3px solid var(--brand-400);
    outline-offset: 2px;
}

/* Page headers */
.page-header { margin-bottom: 1.35rem; }
.page-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-600);
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    margin-bottom: 0.65rem;
}
.page-title {
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: var(--charcoal);
}
.page-sub {
    margin-top: 0.35rem;
    color: #64748b;
    font-size: 0.95rem;
    overflow-wrap: anywhere;
}

/* Hero */
.hero-banner {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    color: #fff;
    min-height: 220px;
    background:
        linear-gradient(110deg, rgba(11,18,32,0.92) 0%, rgba(0,109,153,0.78) 48%, rgba(0,171,240,0.35) 100%),
        url('../images/hero-clean.jpg') center right / cover no-repeat,
        linear-gradient(135deg, #0b1220, #006d99);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
    padding: 1.6rem 1.4rem;
}
.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 220px at 20% 120%, rgba(0,171,240,0.35), transparent 60%),
        radial-gradient(420px 180px at 80% -20%, rgba(255,255,255,0.12), transparent 55%);
    pointer-events: none;
}
.hero-banner > * { position: relative; z-index: 1; }
.hero-kicker {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}
.hero-name {
    font-family: Montserrat, system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 2.6rem);
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-top: 0.15rem;
}
.hero-copy {
    margin-top: 0.65rem;
    max-width: 34rem;
    color: rgba(255,255,255,0.9);
    font-size: 0.98rem;
}
.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.15rem;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.12);
    max-width: 100%;
    overflow-wrap: anywhere;
}
.hero-pill.is-danger {
    background: #dc2626;
    border-color: transparent;
}
.hero-pill.is-ok {
    background: #16a34a;
    border-color: transparent;
}

.hero-notif-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    text-decoration: none;
}
.hero-notif-btn:hover {
    background: rgba(15, 23, 42, 0.65);
}
.hero-notif-btn:focus-visible {
    outline: 3px solid #99dffb;
    outline-offset: 2px;
}
.hero-notif-count {
    position: absolute;
    top: -0.35rem;
    right: -0.35rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: grid;
    place-items: center;
    border: 2px solid #0b1220;
}

/* Dashboard widgets */
.dash-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.15rem;
}
@media (min-width: 900px) {
    .dash-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .quick-grid { grid-template-columns: repeat(4, 1fr); }
}
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.1rem 0.75rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15,23,42,0.05);
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 700;
    font-size: 0.875rem;
    transition: transform 0.15s, border-color 0.15s;
}
.quick-action:hover {
    transform: translateY(-2px);
    border-color: rgba(0,171,240,0.35);
}
.quick-action .qa-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--brand-50);
    color: var(--brand-600);
}

.activity-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid #f1f5f9;
    min-width: 0;
    overflow-wrap: anywhere;
}
.activity-row:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-row:first-child { padding-top: 0; }
.activity-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.activity-icon.is-success {
    background: #dcfce7;
    color: #16a34a;
}
.activity-icon.is-warn {
    background: #fef3c7;
    color: #d97706;
}
.activity-icon.is-info {
    background: var(--brand-50);
    color: var(--brand-600);
}

.list-card {
    display: block;
    padding: 1rem 1.1rem;
    transition: border-color 0.15s, transform 0.15s;
    text-decoration: none;
    color: inherit;
    overflow-wrap: anywhere;
}
.list-card:hover {
    border-color: rgba(0,171,240,0.35);
    transform: translateY(-1px);
}

.seg-tabs {
    display: inline-flex;
    gap: 0.4rem;
    background: #e8eef5;
    padding: 0.3rem;
    border-radius: 14px;
    margin-bottom: 1.1rem;
}
.seg-tabs a {
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.875rem;
    color: #64748b;
    text-decoration: none;
}
.seg-tabs a.is-active {
    background: #fff;
    color: var(--brand-700);
    box-shadow: var(--shadow-soft);
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: #64748b;
    font-size: 0.95rem;
}

@media (max-width: 374px) {
    .cp-topbar { padding-inline: 0.65rem; }
    .cp-content { padding-inline: 0.75rem; }
    .card { border-radius: 14px; }
    .page-title { font-size: 1.5rem; }
    .hero-banner { padding: 1.25rem 1rem; }
    .hero-name { font-size: 1.85rem; }
    .quick-grid { gap: 0.55rem; }
    .quick-action { padding-inline: 0.45rem; overflow-wrap: anywhere; text-align: center; }
    .cp-auth-panel { padding-inline: 1rem; }
    .cp-bottom-nav a { font-size: 0.63rem; }
}
