:root {
    --portal-line: rgba(148, 163, 184, 0.24);
    --trust-navy: #0f172a; /* bg-slate-900 */
    --app-bg: #f8fafc; /* bg-slate-50 */
    --card-bg: #ffffff;
    --accent-gold: #b98e54;
}

.portal-public-body {
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(124, 45, 18, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fafc 0%, #fff7ed 42%, #f8fafc 100%);
}

.portal-section-shell {
    max-width: 1200px;
    margin: 0 auto;
}

.portal-hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.28), transparent 22%),
        linear-gradient(135deg, #3f1212 0%, #7c2d12 38%, #111827 100%);
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.18);
}

.portal-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.65rem 1rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.portal-login-rail {
    position: relative;
    display: flex;
    align-self: stretch;
    align-items: stretch;
    height: 100%;
    min-height: 80px;
    margin-left: 1.25rem;
    padding-left: 0;
}

.portal-login-rail::before {
    content: "";
    position: absolute;
    inset: 0;
    border-left: 1px solid rgba(148, 163, 184, 0.24);
}

.portal-login-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    height: 100%;
    min-height: 80px;
    padding: 0 1.5rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 900;
    background:
        radial-gradient(circle at top, rgba(251, 191, 36, 0.45), transparent 40%),
        linear-gradient(135deg, #7c2d12 0%, #4c1d1d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    text-decoration: none;
}

.portal-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.portal-glass-card {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.08);
}

.portal-feature-card,
.portal-stat-card,
.portal-list-card,
.portal-step-card,
.portal-app-card {
    border: 1px solid var(--portal-line);
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.portal-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(124, 45, 18, 0.14);
}

.portal-kpi-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #7c2d12);
}

.portal-app-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 26%),
        linear-gradient(180deg, #fffaf5 0%, #f8fafc 100%);
}

.portal-app-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    min-height: 100vh;
}

.portal-sidebar {
    background: linear-gradient(180deg, #111827 0%, #1f2937 100%);
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.78);
}

.portal-sidebar-link:hover,
.portal-sidebar-link.is-active {
    background: linear-gradient(135deg, rgba(124, 45, 18, 0.88), rgba(245, 158, 11, 0.22));
    color: white;
}

.portal-app-topbar {
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    backdrop-filter: blur(14px);
}

.portal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portal-status--amber {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

.portal-status--emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #065f46;
}

.portal-status--slate {
    background: rgba(148, 163, 184, 0.12);
    color: #334155;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th,
.portal-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.95);
    text-align: left;
    vertical-align: top;
}

.portal-table th {
    color: #475569;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-table td {
    color: #0f172a;
    font-size: 0.94rem;
}

@media (max-width: 1024px) {
    .portal-app-layout {
        grid-template-columns: 1fr;
    }

    .portal-sidebar,
    .portal-login-rail {
        display: none;
    }
}

.dash-shell {
    height: 100vh;
    overflow: hidden;
    background: #f7f7f5;
    color: #111827;
    font-family: 'Inter', sans-serif;
}

.dash-layout {
    display: grid;
    grid-template-columns: 296px minmax(0, 1fr);
    height: 100vh;
}

.dash-sidebar {
    display: flex;
    flex-direction: column;
    background: #fcfcfb;
    border-right: 1px solid #e7e5df;
    overflow-y: auto;
}

.dash-sidebar-inner {
    padding: 1.25rem 1rem 1rem;
}

.dash-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.dash-brand-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 0.35rem;
    background: #6e261f;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
}

.dash-brand-badge--admin {
    background: #1e293b;
}

.dash-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dash-brand-accent {
    color: #d9a420;
}

.dash-brand-subtitle {
    margin-top: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #b98913;
    text-transform: uppercase;
}

.dash-chevron {
    margin-left: auto;
    color: #6b7280;
}

.dash-nav {
    margin-top: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.dash-nav-label {
    padding: 1rem 0.8rem 0.4rem;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    color: #111827;
    text-transform: uppercase;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1rem 1rem;
    width: 100%;
    border: none;
    border-radius: 1rem;
    background: transparent;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dash-nav-link:hover {
    background: #f3f4f6;
}

.dash-nav-link.is-active {
    background: #6e261f;
    color: #fff;
    box-shadow: 0 10px 18px rgba(110, 38, 31, 0.18);
}

.dash-nav-link.is-active.dash-nav-link--admin {
    background: #0f172a;
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.18);
}

.dash-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.dash-nav-pill {
    margin-left: auto;
    border-radius: 0.35rem;
    background: #d9a420;
    color: #fff;
    padding: 0.18rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.dash-sidebar-spacer {
    flex: 1;
}

.dash-sidebar-footer {
    border-top: 1px solid #e5e7eb;
    margin-top: 1rem;
    padding: 1rem 0.25rem 0;
}

.dash-profile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.dash-avatar {
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #c79b18;
    color: white;
    font-size: 1.1rem;
    font-weight: 800;
    position: relative;
}

.dash-avatar--dark {
    background: #1f2937;
}

.dash-avatar::after {
    content: "";
    position: absolute;
    right: 0.05rem;
    bottom: 0.05rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #fff;
}

.dash-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.dash-content-panel {
    display: none;
}

.dash-content-panel.is-active {
    display: block;
}

.dash-section-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 1.4rem;
    padding: 1.4rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.dash-section-title {
    font-size: 1.65rem;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #111827;
}

.dash-muted-copy {
    margin-top: 0.55rem;
    font-size: 0.96rem;
    line-height: 1.75;
    color: #6b7280;
}

.dash-two-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.4rem;
    margin-top: 1.5rem;
}

.dash-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.dash-list-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #eceef2;
    border-radius: 1rem;
    padding: 1rem 1rem;
    background: #fcfcfd;
}

.dash-list-title {
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.dash-list-meta {
    margin-top: 0.25rem;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #6b7280;
}

.dash-mini-stat {
    display: grid;
    gap: 0.25rem;
    min-width: 6.5rem;
    text-align: right;
}

.dash-mini-stat strong {
    font-size: 1.15rem;
    font-weight: 900;
    color: #111827;
}

.dash-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.dash-info-box {
    border: 1px solid #eceef2;
    border-radius: 1rem;
    padding: 1rem;
    background: #fcfcfd;
}

.dash-info-box h4 {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6b7280;
}

.dash-info-box p {
    margin-top: 0.6rem;
    font-size: 1.4rem;
    font-weight: 900;
    color: #111827;
}

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #fcfcfb;
    border-bottom: 1px solid #e7e5df;
    padding: 1.3rem 1.9rem;
    flex-shrink: 0;
}

.dash-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.dash-breadcrumb-accent {
    color: #d9a420;
}

.dash-rightbar {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.dash-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid #ece8df;
    background: #fff;
    padding: 0.5rem 0.8rem 0.5rem 1rem;
    border-radius: 999px;
}

.dash-toggle-label {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #16a34a;
}

.dash-toggle {
    width: 2.55rem;
    height: 1.6rem;
    border-radius: 999px;
    background: #22c55e;
    position: relative;
}

.dash-toggle::after {
    content: "";
    position: absolute;
    top: 0.16rem;
    right: 0.16rem;
    width: 1.26rem;
    height: 1.26rem;
    border-radius: 999px;
    background: #fff;
}

.dash-search {
    width: min(28rem, 100%);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #fff;
    border: 1px solid #e6e7eb;
    border-radius: 999px;
    padding: 0.9rem 1rem;
}

.dash-search input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.98rem;
}

.dash-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #111827;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-left: 1rem;
    border-left: 1px solid #e5e7eb;
}

.dash-user-meta {
    line-height: 1.1;
}

.dash-user-name {
    font-size: 0.98rem;
    font-weight: 800;
}

.dash-user-role {
    margin-top: 0.22rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.dash-content {
    padding: 2rem 2rem 2.5rem;
    flex: 1;
    overflow-y: auto;
}

.dash-review-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: #111827;
    color: #fff;
    border-radius: 1.35rem;
    padding: 1.55rem 1.7rem;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.18);
}

.dash-review-left {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.dash-review-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    background: #f59e0b;
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-primary-button {
    border-radius: 0.95rem;
    background: #f59e0b;
    color: #111827;
    padding: 1rem 1.45rem;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}

.dash-status-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid #f7d98c;
    color: #c78500;
    border-radius: 0.45rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: #fff9ea;
}

.dash-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.dash-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.dash-title-accent {
    color: #6e261f;
}

.dash-earnings-card {
    min-width: 15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 1.2rem;
    padding: 1rem 1.2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.dash-earnings-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    background: #e9fbf0;
    color: #0f9f63;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-kpi-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.dash-kpi-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 1.4rem;
    padding: 1.4rem;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.dash-kpi-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.dash-kpi-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-kpi-icon--amber {
    background: #fff2d8;
    color: #f59e0b;
}

.dash-kpi-icon--rose {
    background: #f4ecec;
    color: #6e261f;
}

.dash-kpi-icon--mint {
    background: #dcfce7;
    color: #10b981;
}

.dash-kpi-icon--gold {
    background: #fff9e8;
    color: #d4a017;
}

.dash-kpi-label {
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.dash-kpi-number {
    margin-top: 1.4rem;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.dash-kpi-subtext {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    font-weight: 800;
}

.dash-admin-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.4rem;
}

.dash-admin-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border-radius: 0.95rem;
    background: #0f172a;
    color: #fff;
    padding: 1rem 1.45rem;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
}

.dash-admin-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.dash-admin-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 1.2rem;
    padding: 0.75rem 1.15rem 1.25rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
}

.dash-admin-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.dash-admin-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dash-admin-icon--blue { background: #ebf3ff; color: #2f6fff; }
.dash-admin-icon--purple { background: #f4edff; color: #9333ea; }
.dash-admin-icon--amber { background: #fff3dd; color: #d97706; }
.dash-admin-icon--mint { background: #e8fbf0; color: #059669; }
.dash-admin-icon--orange { background: #fff0e6; color: #f97316; }
.dash-admin-icon--yellow { background: #fff8da; color: #d4a017; }
.dash-admin-icon--teal { background: #e7fbf7; color: #0891b2; }
.dash-admin-icon--green { background: #e8fbf0; color: #10b981; }

.dash-admin-value {
    margin-top: 0;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.dash-admin-value--large {
    font-size: 2rem;
}

.dash-admin-title {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.dash-admin-note {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eceff1;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111827;
}

@media (max-width: 1200px) {
    .dash-kpi-grid,
    .dash-admin-grid,
    .dash-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .dash-layout {
        grid-template-columns: 1fr;
    }

    .dash-sidebar {
        display: none;
    }

    .dash-topbar,
    .dash-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .dash-two-col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .dash-rightbar,
    .dash-admin-head,
    .dash-heading-row,
    .dash-review-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-kpi-grid,
    .dash-admin-grid,
    .dash-info-grid {
        grid-template-columns: 1fr;
    }
}

.dash-three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.dash-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.dash-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.dash-form-span-2 {
    grid-column: span 2;
}

.dash-field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #334155;
}

.dash-field {
    width: 100%;
    border: 1px solid #dbe1e8;
    border-radius: 1rem;
    background: #fff;
    padding: 1rem 1.05rem;
    font-size: 0.95rem;
    color: #0f172a;
}

.dash-field--textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.dash-upload-box {
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #f8fafc;
    padding: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    color: #334155;
}

.dash-upload-box span {
    color: #64748b;
}

.dash-bullet-list {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.55rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #475569;
}

.dash-bullet-list li {
    list-style: disc;
    margin-left: 1.2rem;
}

.dash-table-wrap {
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 1.2rem;
    background: #fff;
}

.dash-doc-list {
    display: grid;
    gap: 0.8rem;
}

.dash-doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid #eceef2;
    border-radius: 1rem;
    background: #fcfcfd;
    padding: 1rem;
    font-size: 0.92rem;
    color: #334155;
}

.dash-doc-item strong {
    color: #111827;
}

.dash-message-thread {
    display: grid;
    gap: 1rem;
}

.dash-message {
    border-radius: 1.2rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e6e8eb;
}

.dash-message--light {
    background: #fff;
}

.dash-message--accent {
    background: #fff7ed;
    border-color: #fdba74;
}

.dash-message-title {
    font-size: 0.92rem;
    font-weight: 900;
    color: #111827;
}

.dash-message p {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.75;
    color: #475569;
}

.dash-message span {
    display: block;
    margin-top: 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #7c2d12;
}

.dash-timeline {
    display: grid;
    gap: 0.9rem;
}

.dash-timeline-item {
    border-left: 3px solid #7c2d12;
    padding: 0.2rem 0 0.2rem 1rem;
}

.dash-timeline-item strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 900;
    color: #111827;
}

.dash-timeline-item span {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #475569;
}

.dash-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.95rem;
    border: 1px solid #d5dbe4;
    background: #fff;
    color: #334155;
    padding: 1rem 1.35rem;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .dash-three-col,
    .dash-two-col,
    .dash-form-grid,
    .dash-info-grid {
        grid-template-columns: 1fr;
    }

    .dash-form-span-2 {
        grid-column: span 1;
    }
}

/* --- New SaaS App Shell (Blueprint) --- */
.blueprint-shell {
    min-height: 100vh;
    background: var(--app-bg);
    font-family: 'Inter', sans-serif;
    display: flex;
}

.blueprint-sidebar {
    width: 280px;
    background: var(--trust-navy);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 50;
}

.blueprint-sidebar-inner {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blueprint-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.blueprint-brand-badge {
    width: 40px;
    height: 40px;
    background: var(--accent-gold);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 800;
}

.blueprint-brand-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
}

.blueprint-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.blueprint-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s;
}

.blueprint-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.blueprint-nav-link.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.blueprint-main {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.blueprint-topbar {
    height: 72px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.blueprint-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #64748b;
}

.blueprint-content {
    padding: 16px 32px 32px 32px;
    flex: 1;
}

.blueprint-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.blueprint-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
    margin-bottom: 32px;
}

.blueprint-kpi-card {
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.blueprint-kpi-label {
    font-size: 1.15rem;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.blueprint-kpi-value {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin-top: 4px;
    line-height: 1.2;
}

.blueprint-badge {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.blueprint-badge-success { background: #dcfce7; color: #166534; }
.blueprint-badge-warning { background: #fef9c3; color: #854d0e; }
.blueprint-badge-info { background: #dbeafe; color: #1e40af; }
.blueprint-badge-danger { background: #fee2e2; color: #991b1b; }

@media (max-width: 1024px) {
    .blueprint-sidebar { width: 0; display: none; }
    .blueprint-main { margin-left: 0; }
}
