@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
    --primary: #1d3b34;
    --secondary: #1d3b34;
    --accent: #1d3b34;
    --primary-fg: #ffffff;
    --header-link-color: #475569;
    --body-fg: #0f172a;
    --body-quiet-color: #64748b;
    --body-bg: #f4f6f8;
    --hairline-color: #e5e7eb;
    --border-color: #dbe1e8;
    --darkened-bg: #eef2f7;
    --selected-row: #f1f5f9;
    --close-button-bg: #8b3d36;
    --close-button-hover-bg: #6f302b;
    --link-fg: #1d3b34;
    --link-hover-color: #0f172a;
    --ink: #0f172a;
    --ink-soft: #64748b;
    --forest: #1d3b34;
    --forest-deep: #16302b;
    --clay: #8b3d36;
    --rose: #8b3d36;
    --radius-xl: 16px;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    --shadow-soft: 0 4px 14px rgba(15, 23, 42, 0.03);
}


*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #f4f6f8;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: #f4f6f8;
    font-family: "Manrope", "Segoe UI", sans-serif;
    position: relative;
    overflow-x: hidden;
}

::selection {
    background: var(--forest);
    color: #ffffff;
}

::-moz-selection {
    background: var(--forest);
    color: #ffffff;
}

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

p,
h1,
h2,
h3,
h4 {
    margin: 0;
}

.backdrop,
.grid-wash {
    display: none;
}

.backdrop {
    filter: blur(18px);
    opacity: 0.9;
}

.backdrop-one {
    inset: -12% auto auto -8%;
    width: 32rem;
    height: 32rem;
    background: radial-gradient(circle, rgba(210, 109, 57, 0.22), transparent 72%);
}

.backdrop-two {
    inset: auto -10% -14% auto;
    width: 34rem;
    height: 34rem;
    background: radial-gradient(circle, rgba(25, 60, 53, 0.18), transparent 74%);
}

.grid-wash {
    background-image:
        linear-gradient(rgba(22, 33, 29, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 33, 29, 0.018) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 92%);
}

.page-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: clamp(248px, 22vw, 300px) minmax(0, 1fr);
    gap: 24px;
    width: min(1600px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 24px;
}

.sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    max-height: calc(100vh - 48px);
    padding: 0;
    border: 1px solid #dbe1e8;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.sidebar-inner {
    position: relative;
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: inherit;
    overflow-x: hidden;
    overflow-y: auto;
    background: #ffffff;
    color: var(--ink);
    scrollbar-width: thin;
}

.sidebar-inner::after {
    display: none;
}

.brand,
.brand-copy,
.sidebar-block,
.nav-links {
    position: relative;
    z-index: 1;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--forest);
    color: #ffffff;
    font-weight: 700;
    box-shadow: none;
}

.brand-copy {
    display: grid;
    gap: 3px;
}

.brand-copy strong,
.topbar h1,
.hero h2,
.panel h3,
.profile-hero h2,
.stat-card strong,
.collection-badge strong,
.metric-strip strong,
.detail-cell strong {
    font-family: "Fraunces", Georgia, serif;
}

.brand-copy strong {
    font-size: 1.18rem;
    line-height: 1;
}

.brand-copy small,
.nav-link small,
.sidebar-card p,
.sidebar-stats span {
    color: var(--ink-soft);
}

.sidebar-label {
    margin: 0;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

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

.nav-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-link > span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef3f2;
    color: var(--forest);
    font-size: 0.74rem;
    font-weight: 700;
}

.nav-link strong {
    display: block;
    margin-bottom: 3px;
    font-size: 0.96rem;
    line-height: 1.1;
}

.nav-link small {
    display: block;
    font-size: 0.76rem;
    line-height: 1.35;
}

.nav-link:hover,
.nav-link.is-active {
    transform: none;
    background: #f8fafc;
    border-color: #dbe1e8;
}

.sidebar-card {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #dbe1e8;
    box-shadow: none;
}

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

.sidebar-stats > div {
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
}

.sidebar-stats strong {
    display: block;
    margin-top: 4px;
}

.main-panel {
    padding: 8px 0 36px;
}

.topbar,
.topbar-meta,
.topbar-actions,
.panel-head,
.employee-card-top,
.employee-card-actions,
.hero-actions,
.form-actions,
.pagination {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar {
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
}

.topbar-copy {
    max-width: 760px;
}

.topbar h1 {
    margin-top: 6px;
    font-size: clamp(2.6rem, 4vw, 4.3rem);
    line-height: 0.92;
}

.topbar-summary {
    max-width: 56ch;
    margin-top: 10px;
    color: var(--ink-soft);
    line-height: 1.7;
}

.topbar-meta {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.meta-chip {
    min-width: 134px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe1e8;
    box-shadow: var(--shadow-soft);
}

.meta-chip span,
.stat-kicker,
.collection-badge span,
.employee-seq,
.info-chip,
.pill,
.status,
.progress-value,
.detail-cell span,
.metric-strip span,
.sidebar-stats span {
    font-size: 0.76rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.meta-chip strong {
    display: block;
    margin-top: 6px;
}

.eyebrow {
    color: var(--ink-soft);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero,
.panel,
.stat-card,
.employee-card,
.message,
.profile-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid #dbe1e8;
    box-shadow: var(--shadow);
}

.hero,
.panel,
.profile-hero {
    border-radius: var(--radius-xl);
}

.hero,
.profile-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.9fr);
    gap: 22px;
    padding: 32px;
}

.hero::before,
.panel::before,
.profile-hero::before {
    display: none;
}

.hero-dashboard {
    background: #ffffff;
    color: var(--ink);
}

.hero-collection,
.hero-form {
    background: #ffffff;
}

.hero-delete {
    background: #fff7f7;
    color: var(--ink);
}

.hero-delete .eyebrow,
.hero-dashboard .eyebrow {
    color: var(--ink-soft);
}

.hero-delete p:not(.eyebrow),
.hero-dashboard p:not(.eyebrow),
.hero-delete small,
.hero-dashboard small,
.hero-delete .collection-badge,
.hero-dashboard .mini-panel {
    color: var(--ink-soft);
}

.hero-dashboard .mini-panel,
.hero-dashboard .mini-panel strong,
.hero-dashboard .mini-panel span {
    color: var(--ink);
}

.hero-dashboard .mini-panel small,
.hero-dashboard .mini-panel p {
    color: var(--ink-soft);
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 14px;
}

.hero h2,
.profile-hero h2 {
    font-size: clamp(2.4rem, 4vw, 4.9rem);
    line-height: 0.92;
    max-width: 11ch;
}

.hero p:not(.eyebrow),
.panel p,
.profile-hero p {
    line-height: 1.7;
}

.hero-rail,
.people-list,
.stack-actions {
    display: grid;
    gap: 14px;
}

.mini-panel,
.collection-badge,
.profile-status-panel {
    position: relative;
    z-index: 1;
    padding: 18px;
    border-radius: 16px;
    border: 1px solid #dbe1e8;
    background: #f8fafc;
    backdrop-filter: none;
}

.collection-badge,
.profile-status-panel {
    background: #ffffff;
    border-color: #dbe1e8;
    color: var(--ink);
}

.danger-badge {
    background: rgba(255, 255, 255, 0.08);
    color: #fdf5f1;
    border-color: rgba(255, 255, 255, 0.16);
}

.mini-panel strong,
.collection-badge strong,
.profile-status-panel strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 2rem;
}

.stats-grid,
.dashboard-grid,
.content-grid,
.employee-grid,
.detail-grid,
.form-grid {
    display: grid;
    gap: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 20px;
}

.stat-card {
    padding: 24px;
    border-radius: 16px;
    background: #ffffff;
}

.stat-card::after {
    display: none;
}

.stat-card:nth-child(2) {
    background: #ffffff;
}

.stat-card:nth-child(3) {
    background: #ffffff;
}

.stat-card:nth-child(4) {
    background: #ffffff;
}

.stat-card > span:not(.stat-kicker),
.area-row small,
.person-card small,
.muted,
.message,
.empty-state p,
.pagination span,
.meta-list {
    color: var(--ink-soft);
}

.stat-kicker {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(22, 33, 29, 0.06);
    color: var(--ink);
    width: fit-content;
}

.stat-card strong {
    display: block;
    margin: 18px 0 8px;
    font-size: clamp(2.3rem, 3vw, 3.3rem);
}

.stat-card-wide-number strong {
    font-size: clamp(1.7rem, 2.1vw, 2.35rem);
    line-height: 1.05;
    word-break: break-word;
}

.analytics-stats .stat-card strong {
    font-size: clamp(1.85rem, 2.2vw, 2.7rem);
    line-height: 1.08;
    word-break: break-word;
}

.analytics-stats .stat-card-wide-number strong {
    font-size: clamp(1.55rem, 1.85vw, 2.1rem);
}

.dashboard-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
    margin-top: 18px;
}

.panel {
    padding: 28px;
    background: #ffffff;
}

.panel-feature {
    grid-row: span 2;
}

.panel-story {
    background: #ffffff;
}

.panel-head {
    justify-content: space-between;
    align-items: start;
    margin-bottom: 22px;
}

.pill,
.status,
.info-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.pill {
    background: rgba(210, 109, 57, 0.12);
    color: var(--clay);
}

.status.active {
    background: rgba(109, 134, 102, 0.16);
    color: #476549;
}

.status.inactive {
    background: rgba(163, 73, 64, 0.14);
    color: var(--rose);
}

.area-list {
    display: grid;
    gap: 14px;
}

.area-row,
.detail-cell,
.metric-strip > div {
    padding: 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.area-copy {
    display: flex;
    gap: 14px;
    align-items: center;
}

.area-index,
.employee-seq {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef3f2;
    color: var(--forest);
    font-weight: 700;
}

.progress-track {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.progress {
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--forest);
}

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

.story-metrics > div {
    padding: 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.story-metrics strong {
    display: block;
    margin-top: 6px;
    font-size: 1.2rem;
}

.person-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.person-card:hover,
.employee-card:hover,
.button:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.person-card-main,
.employee-card-headline,
.profile-identity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.person-card-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.employee-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    margin-top: 20px;
}

.employee-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border-radius: 16px;
    background: #ffffff;
}

.employee-card-main {
    display: grid;
    gap: 16px;
}

.employee-card-headline h3,
.employee-card-headline p {
    margin: 0;
}

.chip-row,
.stack-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-chip {
    background: #eef2f7;
    color: var(--ink-soft);
}

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

.metric-strip strong {
    display: block;
    margin-top: 8px;
    font-size: 1.15rem;
}

.employee-card-actions {
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(22, 33, 29, 0.08);
}

.profile-hero {
    background: #ffffff;
    color: var(--ink);
    margin-bottom: 18px;
}

.profile-hero .eyebrow {
    color: var(--ink-soft);
}

.profile-hero .muted,
.profile-status-panel small {
    color: var(--ink-soft);
}

.profile-status-panel {
    align-self: start;
    background: #f8fafc;
    color: var(--ink);
    border-color: #dbe1e8;
}

.content-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
}

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

.detail-cell {
    display: grid;
    gap: 8px;
}

.field-group {
    display: grid;
    gap: 9px;
}

.field-group label {
    font-size: 0.92rem;
    font-weight: 600;
}

.full-width {
    grid-column: 1 / -1;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.toggle-row label {
    order: 2;
}

.input {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
    box-shadow: none;
}

.input:focus {
    outline: 0;
    border-color: var(--forest);
    box-shadow: 0 0 0 3px rgba(29, 59, 52, 0.08);
}

.checkbox {
    inline-size: 18px;
    block-size: 18px;
    accent-color: var(--clay);
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--forest);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button:hover {
    box-shadow: none;
    background: var(--forest-deep);
}

.button.secondary {
    background: #ffffff;
    border-color: #dbe1e8;
    color: var(--ink);
    box-shadow: none;
}

.button.ghost {
    background: #ffffff;
    border-color: #dbe1e8;
    color: var(--ink);
    box-shadow: none;
}

.button.danger {
    background: var(--rose);
}

.panel-highlight-new {
    border-color: #d8ccff;
    background: linear-gradient(180deg, #f8f4ff, #ffffff);
}

.panel-highlight-new-soft .stat-card {
    border-color: #e3d9ff;
    background: linear-gradient(180deg, #fbf9ff, #ffffff);
}

.pill-highlight-new {
    background: #efe7ff;
    color: #6941c6;
}

.button-highlight-new {
    background: #b79cff;
    border-color: #b79cff;
    color: #ffffff;
}

.button-highlight-new:hover {
    background: #a184f5;
}

.text-link {
    color: var(--forest);
    font-weight: 600;
    transition: color 0.2s ease;
}

.meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.message-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.message {
    padding: 16px 18px;
    border-radius: 12px;
    background: #ffffff;
}

.message.success {
    border-left: 4px solid #476549;
}

.message.error {
    border-left: 4px solid var(--rose);
}

.filters-form,
.stacked-form {
    display: grid;
    gap: 16px;
}

.date-filter-form {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: end;
}

.date-filter-form .field {
    display: grid;
    gap: 8px;
}

.date-filter-form .field-grow {
    grid-column: span 2;
}

.date-filter-form label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(24, 41, 36, 0.72);
}

.filters-form {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.filters-form input,
.date-filter-form input,
.date-filter-form select,
.stacked-form input,
.stacked-form select,
.stacked-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #ffffff;
    color: var(--ink);
    font: inherit;
}

.stacked-form textarea {
    min-height: 120px;
    padding: 14px;
    resize: vertical;
}

.date-filter-form .button {
    align-self: end;
}

.stacked-form p {
    display: grid;
    gap: 8px;
    margin: 0;
}

.stacked-form label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(24, 41, 36, 0.72);
}

.form-grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.field-card {
    display: grid;
    gap: 8px;
}

.readonly-chip {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border: 1px solid #cfd8e3;
    border-radius: 10px;
    background: #f8fafc;
    color: var(--ink);
    font-weight: 600;
}

.field-error {
    color: var(--rose);
    font-size: 0.82rem;
}

.support-upload-box {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px dashed #bfd0dd;
    border-radius: 16px;
    background: linear-gradient(180deg, #fcfefe 0%, #f4f8fb 100%);
}

.support-upload-box input[type="file"],
.support-upload-input {
    min-height: auto;
    padding: 10px 12px;
    border-radius: 10px;
    background: #ffffff;
}

.support-upload-input-shell {
    padding: 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ea;
}

.support-upload-copy {
    display: grid;
    gap: 4px;
}

.support-upload-kicker {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--forest);
}

.support-upload-copy strong {
    font-size: 0.95rem;
}

.support-upload-box small {
    color: var(--ink-soft);
}

.support-upload-current,
.support-upload-empty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ea;
}

.support-upload-current span,
.support-upload-empty {
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.support-upload-empty {
    justify-content: flex-start;
}

.filter-panel,
.narrow-panel,
.empty-state {
    margin-top: 18px;
}

.empty-state {
    padding: 32px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    border: 1px solid #dbe1e8;
    box-shadow: var(--shadow);
}

.pagination {
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.page-loader {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(11, 20, 18, 0.26);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.page-loader.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-loader-card {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: min(100%, 340px);
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(19, 42, 37, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 60px rgba(10, 18, 16, 0.26);
    color: #f8f4eb;
}

.page-loader-spinner {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(248, 244, 235, 0.18);
    border-top-color: #f3b27c;
    animation: loader-spin 0.8s linear infinite;
    flex: 0 0 auto;
}

.page-loader-copy {
    display: grid;
    gap: 4px;
}

.page-loader-copy strong {
    font-size: 1rem;
    font-weight: 700;
}

.page-loader-copy small {
    color: rgba(248, 244, 235, 0.76);
    line-height: 1.45;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.hero-analytics {
    background:
        radial-gradient(circle at top right, rgba(109, 134, 102, 0.16), transparent 24%),
        radial-gradient(circle at bottom left, rgba(237, 191, 152, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(14, 33, 40, 0.98), rgba(25, 60, 53, 0.94));
    color: #fbf6ee;
}

.hero-analytics .eyebrow {
    color: #f5c697;
}

.hero-analytics p:not(.eyebrow),
.hero-analytics small,
.hero-analytics .mini-panel,
.data-note {
    color: rgba(255, 248, 239, 0.82);
}

.hero-analytics .mini-panel,
.hero-analytics .mini-panel strong,
.hero-analytics .mini-panel span {
    color: var(--ink);
}

.hero-analytics .mini-panel small,
.hero-analytics .mini-panel p {
    color: var(--ink-soft);
}

.analytics-layout {
    display: grid;
    gap: 18px;
    margin-top: 18px;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
    align-items: start;
}

.analytics-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.panel-analytics-callout {
    margin-top: 18px;
    background:
        radial-gradient(circle at top right, rgba(210, 109, 57, 0.14), transparent 22%),
        linear-gradient(150deg, rgba(255, 248, 239, 0.86), rgba(255, 255, 255, 0.64));
}

.cartera-grid {
    margin-top: 18px;
}

.aging-grid,
.ledger-list,
.process-list,
.endpoint-list {
    display: grid;
    gap: 14px;
}

.aging-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 18px;
}

.aging-card,
.process-card,
.ledger-card,
.endpoint-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(22, 33, 29, 0.06);
}

.aging-card strong,
.process-card strong,
.endpoint-card strong {
    display: block;
    margin: 10px 0 6px;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.55rem;
}

.process-card,
.endpoint-card {
    display: grid;
    gap: 6px;
}

.ledger-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.ledger-card small,
.process-card small,
.endpoint-card small,
.aging-card span {
    color: var(--ink-soft);
}

.ledger-meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.endpoint-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.endpoint-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.panel-head.compact {
    margin-top: 18px;
}

.progress-track.compact {
    margin-top: 10px;
}

.dashboard-view .page-shell {
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 18px;
    width: min(1440px, calc(100% - 44px));
}

.dashboard-view .brand {
    gap: 12px;
}

.dashboard-view .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 18px;
}

.dashboard-view .brand-copy strong {
    font-size: 1.28rem;
}

.dashboard-view .brand-copy small,
.dashboard-view .sidebar-label,
.dashboard-view .nav-link small {
    font-size: 0.8rem;
}

.dashboard-view .sidebar-inner {
    gap: 20px;
    padding: 20px;
}

.dashboard-view .nav-links {
    gap: 8px;
}

.dashboard-view .nav-link {
    padding: 12px 14px;
    border-radius: 20px;
}

.dashboard-view .nav-link > span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.dashboard-view .nav-link strong {
    font-size: 1rem;
}

.dashboard-view .sidebar-card {
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
}

.dashboard-view .sidebar-stats {
    gap: 10px;
}

.dashboard-view .sidebar-stats > div {
    padding: 12px;
}

.dashboard-view .main-panel {
    max-width: 1060px;
    padding-top: 2px;
}

.dashboard-view .topbar {
    margin-bottom: 16px;
    align-items: center;
}

.dashboard-view .topbar-copy {
    max-width: 680px;
}

.dashboard-view .topbar h1 {
    margin-top: 4px;
    font-size: clamp(2.05rem, 3vw, 3.25rem);
    line-height: 0.96;
}

.dashboard-view .topbar-summary {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.64;
}

.dashboard-view .meta-chip {
    min-width: 110px;
    padding: 11px 14px;
    border-radius: 18px;
}

.dashboard-view .topbar-actions .button,
.dashboard-view .hero-actions .button,
.dashboard-view .panel-analytics-callout .button {
    padding: 11px 14px;
    border-radius: 15px;
    font-size: 0.95rem;
}

.dashboard-view .hero-dashboard {
    grid-template-columns: minmax(0, 1.05fr) minmax(232px, 0.78fr);
    gap: 16px;
    padding: 22px 24px;
    border-radius: 28px;
}

.dashboard-view .hero-copy {
    gap: 10px;
}

.dashboard-view .hero h2 {
    font-size: clamp(2.3rem, 3.4vw, 3.65rem);
    max-width: 11.5ch;
    line-height: 0.95;
}

.dashboard-view .hero p:not(.eyebrow) {
    max-width: 56ch;
    font-size: 0.92rem;
    line-height: 1.64;
}

.auth-view,
.portal-view {
    background:
        radial-gradient(circle at top left, rgba(210, 109, 57, 0.12), transparent 28%),
        radial-gradient(circle at bottom right, rgba(29, 59, 52, 0.10), transparent 30%),
        linear-gradient(180deg, #f4f6f8 0%, #eef2f5 100%);
    min-height: 100vh;
    color: var(--ink);
}

.auth-view .login-container,
.portal-view .page-shell {
    max-width: 1120px;
    margin: auto;
    padding: 2.25rem 1.25rem;
}

.auth-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0;
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 22px;
    padding: 24px;
    border: 1px solid #dbe1e8;
    border-radius: 28px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: var(--shadow);
}

.auth-card-copy,
.auth-panel {
    display: grid;
    align-content: start;
    gap: 16px;
}

.auth-card-copy {
    padding: 18px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(109, 134, 102, 0.16), transparent 24%),
        radial-gradient(circle at bottom left, rgba(237, 191, 152, 0.18), transparent 24%),
        linear-gradient(135deg, rgba(14, 33, 40, 0.98), rgba(25, 60, 53, 0.94));
    color: #fbf6ee;
}

.auth-card-copy .eyebrow {
    color: #f5c697;
}

.auth-card-copy h1 {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 0.95;
    margin: 0;
}

.auth-summary {
    color: rgba(255, 248, 239, 0.82);
    line-height: 1.7;
    margin: 0;
}

.auth-panel {
    padding: 18px;
    border-radius: 24px;
    background: #f8fafc;
    border: 1px solid #dbe1e8;
}

.auth-brand {
    margin-bottom: 4px;
}

.auth-form .button {
    width: 100%;
}

.auth-footer-note {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.86rem;
    text-align: center;
}

.portal-module-card {
    min-height: 100%;
}

.portal-module-card.is-disabled {
    opacity: 0.84;
}

.auth-view .login-card,
.portal-view .modulos-grid .modulo-card {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(26, 32, 44, 0.9);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
}

.auth-view .login-header h2,
.portal-view .portal-header h1 {
    color: #f8fafc;
}

.auth-view .btn-login,
.portal-view .modulo-card.primary .modulo-button {
    background: linear-gradient(135deg, #3f51b5 0%, #2a3f6f 100%);
    border: none;
    color: #fff;
}

.auth-view .btn-login:hover,
.portal-view .modulo-card.primary .modulo-button:hover {
    background: linear-gradient(135deg, #3346a8 0%, #1f2f59 100%);
}

.portal-view .modulo-card.secondary .modulo-button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(203, 213, 225, 0.25);
    color: #cbd5e1;
}

.user-info {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid #2a3044;
}

.dashboard-view .hero-rail {
    gap: 10px;
}

.dashboard-view .mini-panel {
    padding: 14px 16px;
    border-radius: 20px;
}

.dashboard-view .mini-panel strong {
    margin: 7px 0 4px;
    font-size: 1.55rem;
}

.dashboard-view .stats-grid {
    gap: 14px;
    margin-top: 14px;
}

.dashboard-view .stat-card {
    padding: 18px;
    border-radius: 24px;
}

.dashboard-view .stat-card strong {
    margin: 12px 0 6px;
    font-size: clamp(1.8rem, 2.2vw, 2.45rem);
}

.dashboard-view .dashboard-grid {
    gap: 14px;
    margin-top: 14px;
}

.dashboard-view .panel,
.dashboard-view .panel-analytics-callout {
    padding: 20px;
    border-radius: 24px;
}

.dashboard-view .panel-head {
    margin-bottom: 14px;
}

.dashboard-view .panel h3 {
    font-size: clamp(1.32rem, 1.7vw, 1.7rem);
    line-height: 1.1;
}

.dashboard-view .area-list,
.dashboard-view .people-list {
    gap: 10px;
}

.dashboard-view .area-row,
.dashboard-view .person-card,
.dashboard-view .story-metrics > div,
.dashboard-view .metric-strip > div {
    padding: 14px;
    border-radius: 18px;
}

.dashboard-view .area-index {
    width: 36px;
    height: 36px;
    border-radius: 12px;
}

.dashboard-view .person-card {
    gap: 10px;
}

.dashboard-view .progress-track {
    margin-top: 10px;
}

.dashboard-view .status,
.dashboard-view .pill,
.dashboard-view .info-chip {
    padding: 7px 10px;
}

.dashboard-view .panel-analytics-callout {
    margin-top: 14px;
}

.analytics-preview-grid {
    margin-top: 0;
}

.data-note {
    font-size: 0.92rem;
}

.trend-shell,
.forecast-list,
.channel-list,
.risk-list,
.breakdown-list {
    display: grid;
    gap: 14px;
}

.trend-chart {
    padding: 14px 10px 8px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(22, 33, 29, 0.06);
}

.trend-chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-grid-line {
    stroke: rgba(22, 33, 29, 0.08);
    stroke-width: 1;
}

.chart-grid-label,
.chart-axis-label {
    fill: rgba(93, 104, 95, 0.88);
    font-family: "Sora", "Segoe UI", sans-serif;
    font-size: 11px;
}

.chart-axis-label {
    text-anchor: middle;
}

.chart-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-sales {
    stroke: var(--forest-deep);
}

.chart-line-payments {
    stroke: var(--clay);
}

.chart-dot {
    stroke: rgba(255, 255, 255, 0.9);
    stroke-width: 2;
}

.chart-dot-sales {
    fill: var(--forest-deep);
}

.chart-dot-payments {
    fill: var(--clay);
}

.chart-legend,
.forecast-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(22, 33, 29, 0.06);
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 600;
}

.legend-swatch {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.legend-swatch.sales {
    background: var(--forest-deep);
}

.legend-swatch.payments {
    background: var(--clay);
}

.legend-text {
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.donut-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.donut-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 180px;
    aspect-ratio: 1;
    border-radius: 50%;
}

.donut-visual::before {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: rgba(255, 248, 239, 0.96);
    box-shadow: inset 0 0 0 1px rgba(22, 33, 29, 0.08);
}

.donut-visual > div {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    gap: 6px;
    text-align: center;
}

.donut-visual strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 2rem;
}

.donut-copy {
    display: grid;
    gap: 10px;
}

.donut-copy h4 {
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.45rem;
}

.breakdown-row,
.channel-row,
.risk-row {
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(22, 33, 29, 0.06);
}

.breakdown-row {
    display: grid;
    grid-template-columns: minmax(120px, 0.85fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.breakdown-copy,
.channel-copy,
.channel-meta,
.risk-client,
.risk-meta {
    display: grid;
    gap: 4px;
}

.breakdown-track,
.channel-track {
    height: 12px;
    border-radius: 999px;
    background: rgba(22, 33, 29, 0.08);
    overflow: hidden;
}

.breakdown-track span,
.channel-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.tone-good {
    background: linear-gradient(90deg, #476549, #6d8666);
}

.tone-warm {
    background: linear-gradient(90deg, #d26d39, #edbf98);
}

.tone-critical {
    background: linear-gradient(90deg, #7f302c, #a34940);
}

.breakdown-value {
    min-width: 46px;
    text-align: right;
}

.forecast-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(22, 33, 29, 0.06);
}

.forecast-period {
    color: var(--ink-soft);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.forecast-card strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: 2rem;
}

.channel-row,
.risk-row {
    display: grid;
    align-items: center;
    gap: 14px;
}

.channel-row {
    grid-template-columns: minmax(130px, 0.9fr) minmax(0, 1fr) auto;
}

.channel-track span {
    background: linear-gradient(90deg, var(--clay), var(--forest));
}

.channel-meta,
.risk-meta {
    text-align: right;
}

.risk-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.pill.up {
    background: rgba(109, 134, 102, 0.18);
    color: #476549;
}

.pill.down,
.pill.critical {
    background: rgba(163, 73, 64, 0.14);
    color: var(--rose);
}

.pill.warm {
    background: rgba(210, 109, 57, 0.12);
    color: var(--clay);
}

.reveal {
    animation: float-in 0.55s ease both;
}

.reveal:nth-child(2) {
    animation-delay: 0.06s;
}

.reveal:nth-child(3) {
    animation-delay: 0.12s;
}

.reveal:nth-child(4) {
    animation-delay: 0.18s;
}

.error-text {
    color: var(--rose);
}

@keyframes float-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .button,
    .person-card,
    .employee-card,
    .text-link,
    .nav-link {
        animation: none;
        transition: none;
    }
}

@media (max-width: 1400px) {
    .page-shell {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 18px;
        width: min(1400px, calc(100% - 24px));
    }

    .sidebar {
        top: 16px;
        max-height: calc(100vh - 32px);
    }

    .sidebar-inner {
        max-height: calc(100vh - 32px);
        padding: 16px;
        gap: 16px;
    }

    .nav-link {
        padding: 10px 12px;
    }
}

@media (max-width: 1320px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .content-grid,
    .analytics-layout {
        grid-template-columns: 1fr;
    }

    .panel-feature {
        grid-row: auto;
    }

    .panel-trend,
    .panel-gauge,
    .panel-forecast {
        grid-column: auto;
        grid-row: auto;
    }

    .dashboard-view .page-shell {
        width: min(1320px, calc(100% - 32px));
    }

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

}

@media (max-width: 1100px) {
    .page-shell {
        grid-template-columns: 1fr;
        width: min(1200px, calc(100% - 24px));
        gap: 18px;
        padding-top: 18px;
    }

    .sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }

    .sidebar-inner {
        max-height: none;
        gap: 22px;
    }

    .main-panel {
        padding-top: 0;
    }

    .dashboard-view .page-shell {
        grid-template-columns: 1fr;
        width: min(1120px, calc(100% - 24px));
        gap: 18px;
        padding-top: 18px;
    }

    .dashboard-view .sidebar {
        position: relative;
        top: 0;
        max-height: none;
    }

    .dashboard-view .main-panel {
        padding-top: 0;
    }

}

@media (max-width: 820px) {
    .hero,
    .profile-hero,
    .topbar {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-meta,
    .topbar-actions,
    .hero-actions,
    .employee-card-actions,
    .form-actions,
    .pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .stats-grid,
    .detail-grid,
    .form-grid,
    .metric-strip,
    .donut-card,
    .auth-card {
        grid-template-columns: 1fr;
    }

    .breakdown-row,
    .channel-row,
    .risk-row {
        grid-template-columns: 1fr;
    }

    .channel-meta,
    .risk-meta,
    .breakdown-value {
        text-align: left;
    }

    .dashboard-view .topbar h1 {
        font-size: clamp(1.95rem, 7vw, 2.9rem);
    }

    .dashboard-view .hero-dashboard {
        padding: 20px;
    }

    .dashboard-view .hero h2 {
        max-width: none;
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .ledger-card {
        grid-template-columns: 1fr;
    }

    .ledger-meta {
        justify-items: start;
        text-align: left;
    }

}

@media (max-width: 640px) {
    .page-shell {
        width: min(100%, calc(100% - 16px));
    }

    .sidebar-inner,
    .hero,
    .panel,
    .profile-hero,
    .empty-state {
        padding: 22px;
    }

    .person-card,
    .employee-card {
        padding: 18px;
    }

    .topbar-meta {
        width: 100%;
    }

    .person-card-meta {
        justify-items: start;
    }

    .employee-card-headline,
    .profile-identity {
        align-items: flex-start;
    }

    .donut-visual {
        width: min(180px, 100%);
        margin: 0 auto;
    }

    .dashboard-view .page-shell {
        width: min(100%, calc(100% - 16px));
    }

    .dashboard-view .sidebar-inner,
    .dashboard-view .hero-dashboard,
    .dashboard-view .panel,
    .dashboard-view .panel-analytics-callout {
        padding: 18px;
    }

    .auth-shell {
        width: min(100%, calc(100% - 16px));
        padding: 18px 0;
    }

    .auth-card,
    .auth-card-copy,
    .auth-panel {
        padding: 18px;
    }

}
