@import 'tailwindcss';

@import 'tw-animate-css';

@source '../views';
@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';

@theme {
    --radius-lg: var(--radius);
    --radius-md: calc(var(--radius) - 2px);
    --radius-sm: calc(var(--radius) - 4px);

    --color-background: var(--background);
    --color-foreground: var(--foreground);

    --color-card: var(--card);
    --color-card-foreground: var(--card-foreground);

    --color-popover: var(--popover);
    --color-popover-foreground: var(--popover-foreground);

    --color-primary: var(--primary);
    --color-primary-foreground: var(--primary-foreground);

    --color-secondary: var(--secondary);
    --color-secondary-foreground: var(--secondary-foreground);

    --color-muted: var(--muted);
    --color-muted-foreground: var(--muted-foreground);

    --color-accent: var(--accent);
    --color-accent-foreground: var(--accent-foreground);

    --color-destructive: var(--destructive);
    --color-destructive-foreground: var(--destructive-foreground);

    --color-border: var(--border);
    --color-input: var(--input);
    --color-ring: var(--ring);

    --color-chart-1: var(--chart-1);
    --color-chart-2: var(--chart-2);
    --color-chart-3: var(--chart-3);
    --color-chart-4: var(--chart-4);
    --color-chart-5: var(--chart-5);

    --color-sidebar: var(--sidebar);
    --color-sidebar-foreground: var(--sidebar-foreground);
    --color-sidebar-primary: var(--sidebar-primary);
    --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
    --color-sidebar-accent: var(--sidebar-accent);
    --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
    --color-sidebar-border: var(--sidebar-border);
    --color-sidebar-ring: var(--sidebar-ring);
}

:root {
    /* Draft design tokens, exposed through the component-library variables. */
    --ink: #171a1c;
    --muted-text: #71767a;
    --line: #e8e6e2;
    --panel: #ffffff;
    --canvas: #f7f7f5;
    --sidebar-surface: #191d1f;
    --gold: #ad7a27;
    --gold-soft: #f5ecdc;
    --green: #209752;
    --green-soft: #e9f7ee;
    --orange: #d7791e;
    --orange-soft: #fff2e2;
    --red: #d63535;
    --red-soft: #fdeaea;
    --blue: #2869b8;
    --blue-soft: #eaf2fb;
    --purple: #7155ad;
    --purple-soft: #efebf7;

    --background: var(--canvas);
    --foreground: var(--ink);
    --card: var(--panel);
    --card-foreground: var(--ink);
    --popover: var(--panel);
    --popover-foreground: var(--ink);
    --primary: var(--gold);
    --primary-foreground: #ffffff;
    --secondary: #efeeeb;
    --secondary-foreground: var(--ink);
    --muted: var(--gold-soft);
    --muted-foreground: var(--muted-text);
    --accent: var(--gold-soft);
    --accent-foreground: #74501a;
    --destructive: var(--red);
    --destructive-foreground: #ffffff;
    --border: var(--line);
    --input: var(--line);
    --ring: #c69a50;
    --chart-1: var(--gold);
    --chart-2: var(--green);
    --chart-3: var(--blue);
    --chart-4: var(--orange);
    --chart-5: var(--purple);
    --radius: 0.625rem;
    --sidebar: var(--sidebar-surface);
    --sidebar-foreground: #edf0f1;
    --sidebar-primary: var(--gold);
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: rgba(255, 255, 255, 0.07);
    --sidebar-accent-foreground: #ffffff;
    --sidebar-border: rgba(255, 255, 255, 0.1);
    --sidebar-ring: #d4ad68;
}

@layer base {
    * {
        @apply border-border;
    }

    html {
        scroll-behavior: smooth;
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: transparent;
        -webkit-font-smoothing: antialiased;
    }

    body {
        @apply bg-background text-foreground;
    }
}

/* Executive Suite — adapted from the approved source draft. */
:root {
    --executive-ink: var(--ink);
    --executive-muted: var(--muted-text);
    --executive-line: var(--line);
    --executive-canvas: var(--canvas);
    --executive-sidebar: var(--sidebar-surface);
    --executive-gold: var(--gold);
    --executive-shadow: 0 8px 30px rgba(28, 31, 33, 0.04);
}

body {
    background: var(--executive-canvas);
    color: var(--executive-ink);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
}
button,
a {
    transition:
        color 180ms ease,
        background 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}
button:not(:disabled):not([aria-disabled='true']) {
    cursor: pointer;
}
button:disabled,
button[aria-disabled='true'] {
    cursor: not-allowed !important;
}
.action-link {
    color: #805b20;
    text-decoration: underline;
}
.action-link:hover {
    color: var(--gold);
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(207, 165, 92, 0.45);
    outline-offset: 2px;
}
.no-permission-page {
    min-height: calc(100vh - 48px);
    padding: 32px;
    display: grid;
    place-items: center;
}
.no-permission-card {
    width: min(100%, 520px);
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.no-permission-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--red);
    background: var(--red-soft);
}
.no-permission-icon svg {
    width: 32px;
    height: 32px;
}
.no-permission-eyebrow {
    margin-top: 20px;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}
.no-permission-card h1 {
    margin-top: 4px;
    font-family: Georgia, serif;
    font-size: clamp(28px, 5vw, 38px);
    font-weight: 600;
}
.no-permission-card > p:last-of-type {
    margin-top: 10px;
    color: var(--executive-muted);
}
.no-permission-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.no-permission-actions svg {
    width: 16px;
    height: 16px;
}
.executive-shell {
    min-height: 100vh;
    background: var(--executive-canvas);
}
.executive-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: 256px;
    padding: 24px 16px 18px;
    display: flex;
    flex-direction: column;
    color: #edf0f1;
    background: var(--executive-sidebar);
    overflow-y: auto;
}
.executive-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.executive-brand {
    min-height: 66px;
    display: grid;
    place-content: center;
    flex: 1;
    color: #d4ad68;
    text-align: center;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.executive-brand strong {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 600;
}
.executive-brand small {
    margin-top: 3px;
    color: #aaa59d;
    font-size: 8px;
    letter-spacing: 0.35em;
}
.executive-brand:hover {
    color: #f1cf94;
}
.sidebar-close,
.mobile-menu-button {
    display: none;
}
.executive-nav {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}
.executive-nav-link {
    min-height: 42px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 9px;
    color: #c8cdcf;
    font-size: 12px;
    font-weight: 500;
}
.executive-nav-link svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
}
.executive-nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    transform: translateX(2px);
}
.executive-nav-link.active {
    color: #fff;
    background: linear-gradient(110deg, #856334, #bd8b3f);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.executive-profile {
    margin-top: auto;
    padding: 18px 4px 0;
    display: flex;
    align-items: center;
    gap: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.executive-avatar {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #5b3d12;
    background: linear-gradient(145deg, #f1d6aa, #b78448);
    font-size: 12px;
    font-weight: 700;
}
.executive-profile strong,
.executive-profile small {
    display: block;
    max-width: 156px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.executive-profile strong {
    font-size: 12px;
    font-weight: 600;
}
.executive-profile small {
    color: #92999c;
    font-size: 10px;
}
.executive-main {
    min-width: 0;
    margin-left: 256px;
}
.executive-topbar {
    height: 72px;
    padding: 0 clamp(20px, 3vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--executive-line);
    background: rgba(247, 247, 245, 0.88);
    backdrop-filter: blur(14px);
}
.topbar-wordmark {
    color: #8a8e90;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.notification-button {
    width: 40px;
    height: 40px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid var(--executive-line);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}
.notification-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--executive-shadow);
}
.notification-button svg {
    width: 17px;
}
.notification-button span {
    position: absolute;
    top: -4px;
    right: -2px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    color: white;
    background: #d63535;
    font-size: 9px;
    line-height: 17px;
}
.profile-trigger {
    border-radius: 50%;
    cursor: pointer;
}
.profile-trigger [data-slot='avatar-fallback'] {
    color: #5b3d12;
    background: linear-gradient(145deg, #f1d6aa, #b78448);
    font-size: 11px;
    font-weight: 700;
}
.executive-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 34px clamp(20px, 3vw, 48px) 48px;
}
.dashboard-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.greeting-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--executive-gold);
    background: #f5ecdc;
}
.greeting-icon svg {
    width: 25px;
}
.eyebrow {
    color: var(--executive-gold);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.dashboard-heading h1,
.module-heading h1 {
    margin-top: 3px;
    font-size: clamp(25px, 2.4vw, 35px);
    font-weight: 650;
    letter-spacing: -0.035em;
}
.dashboard-heading div > p:last-child,
.module-heading > p:last-child {
    color: var(--executive-muted);
    font-size: 13px;
}
.executive-card {
    border: 1px solid var(--executive-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--executive-shadow);
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.metric-card {
    min-height: 142px;
    padding: 19px;
    position: relative;
}
.metric-icon,
.attention-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}
.metric-icon {
    position: absolute;
    top: 18px;
    right: 18px;
}
.metric-icon svg,
.attention-icon svg {
    width: 18px;
    height: 18px;
}
.metric-label {
    padding-right: 42px;
    font-size: 12px;
    font-weight: 650;
}
.metric-value {
    display: block;
    margin-top: 27px;
    font-size: clamp(21px, 2vw, 28px);
    font-weight: 650;
    letter-spacing: -0.03em;
}
.metric-note {
    margin-top: 3px;
    color: var(--executive-muted);
    font-size: 11px;
}
.metric-note span {
    color: #209752;
    font-weight: 600;
}
.metric-note svg {
    width: 11px;
    display: inline;
}
.tone-gold {
    color: #ad7a27;
    background: #f5ecdc;
}
.tone-green {
    color: #209752;
    background: #e9f7ee;
}
.tone-blue {
    color: #2869b8;
    background: #eaf2fb;
}
.tone-purple {
    color: #7155ad;
    background: #efebf7;
}
.tone-orange {
    color: #d7791e;
    background: #fff2e2;
}
.tone-red {
    color: #d63535;
    background: #fdeaea;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
    gap: 18px;
    margin-bottom: 18px;
}
.profit-panel,
.attention-panel {
    padding: 20px;
}
.panel-heading {
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.panel-heading h2,
.module-placeholder h2 {
    font-size: 16px;
    font-weight: 650;
}
.period-button {
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--executive-line);
    border-radius: 8px;
    color: var(--executive-muted);
    background: #fff;
    font-size: 11px;
    cursor: pointer;
}
.period-button:hover {
    border-color: #c9a86d;
    color: #74501a;
    background: #f5ecdc;
}
.period-button svg {
    width: 13px;
}
.chart-area {
    height: 260px;
    margin-top: 15px;
    display: grid;
    grid-template-columns: 43px 1fr;
}
.chart-scale {
    padding-bottom: 27px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--executive-muted);
    font-size: 9px;
}
.chart-plot {
    min-width: 0;
    position: relative;
    padding-bottom: 28px;
}
.grid-line {
    height: 1px;
    position: absolute;
    left: 0;
    right: 0;
    background: repeating-linear-gradient(
        90deg,
        #e8e8e5 0 4px,
        transparent 4px 8px
    );
}
.grid-line:nth-child(1) {
    top: 0;
}
.grid-line:nth-child(2) {
    top: 33%;
}
.grid-line:nth-child(3) {
    top: 66%;
}
.grid-line:nth-child(4) {
    bottom: 28px;
}
.chart-plot svg {
    width: 100%;
    height: calc(100% - 28px);
    position: relative;
    overflow: visible;
}
.chart-fill {
    fill: url(#profitFill);
}
.chart-stroke {
    fill: none;
    stroke: var(--executive-gold);
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
}
.chart-dates {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    justify-content: space-between;
    color: var(--executive-muted);
    font-size: 9px;
}
.attention-count {
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border-radius: 13px;
    color: #a22d2d;
    background: #fdeaea;
    font-size: 10px;
    line-height: 25px;
    text-align: center;
}
.attention-list {
    margin-top: 12px;
    list-style: none;
}
.attention-list li {
    min-height: 58px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #efeeeb;
}
.attention-list li:last-child {
    border: 0;
}
.attention-icon {
    width: 34px;
    height: 34px;
}
.attention-icon svg {
    width: 15px;
}
.attention-list strong,
.attention-list small {
    display: block;
}
.attention-list strong {
    font-size: 11px;
    font-weight: 650;
}
.attention-list small {
    color: var(--executive-muted);
    font-size: 9px;
}
.attention-list button {
    padding: 5px 8px;
    border: 1px solid var(--executive-line);
    border-radius: 7px;
    color: #666;
    background: #fff;
    font-size: 9px;
    cursor: pointer;
}
.attention-list button:hover {
    border-color: var(--executive-gold);
    color: var(--executive-gold);
    transform: translateY(-1px);
}
.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.summary-card {
    min-height: 124px;
    padding: 18px;
}
.summary-card p {
    color: var(--executive-muted);
    font-size: 11px;
}
.summary-card > strong {
    display: block;
    margin: 8px 0 3px;
    font-size: 23px;
    font-weight: 650;
}
.summary-card small {
    color: var(--executive-muted);
    font-size: 10px;
}
.summary-card small span {
    color: #209752;
    font-weight: 650;
}
.progress-track {
    height: 5px;
    margin: 8px 0 7px;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
}
.progress-track i {
    width: 87%;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b6325, #c7933f);
}
.module-heading {
    margin-bottom: 28px;
}
.module-placeholder {
    min-height: 460px;
    padding: 36px;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
}
.module-placeholder > span {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: white;
    background: linear-gradient(145deg, #d4ad68, #856334);
}
.module-placeholder > span svg {
    width: 27px;
}
.module-placeholder p {
    max-width: 480px;
    margin-top: 8px;
    color: var(--executive-muted);
    font-size: 12px;
}
.module-placeholder button {
    margin-top: 20px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 9px;
    color: white;
    background: linear-gradient(110deg, #9b6c22, #c99135);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}
.module-placeholder button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(173, 122, 39, 0.24);
}
.module-placeholder button svg {
    width: 14px;
}

@media (max-width: 900px) {
    .executive-sidebar {
        transform: translateX(-100%);
        transition: transform 220ms ease;
    }
    .executive-sidebar.is-open {
        transform: translateX(0);
    }
    .executive-main {
        margin-left: 0;
    }
    .mobile-menu-button {
        width: 40px;
        height: 40px;
        position: fixed;
        top: 16px;
        left: 18px;
        z-index: 30;
        display: grid;
        place-items: center;
        border: 1px solid var(--executive-line);
        border-radius: 10px;
        background: #fff;
        box-shadow: var(--executive-shadow);
    }
    .mobile-menu-button svg,
    .sidebar-close svg {
        width: 19px;
    }
    .sidebar-close {
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border: 0;
        border-radius: 8px;
        color: #ddd;
        background: transparent;
    }
    .sidebar-close:hover {
        background: rgba(255, 255, 255, 0.08);
    }
    .sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 35;
        border: 0;
        background: rgba(20, 22, 23, 0.56);
        backdrop-filter: blur(2px);
    }
    .executive-topbar {
        padding-left: 75px;
    }
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 600px) {
    .executive-content {
        padding: 24px 14px 36px;
    }
    .topbar-wordmark {
        display: none;
    }
    .executive-topbar {
        justify-content: flex-end;
    }
    .dashboard-heading {
        align-items: flex-start;
    }
    .greeting-icon {
        width: 42px;
        height: 42px;
    }
    .metric-grid,
    .summary-grid {
        grid-template-columns: 1fr;
    }
    .metric-card {
        min-height: 132px;
    }
    .profit-panel,
    .attention-panel {
        padding: 16px;
    }
    .chart-area {
        height: 220px;
    }
    .chart-dates span:nth-child(even) {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* Authentication */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 0.92fr) minmax(520px, 1.08fr);
    background: #fff;
}

.auth-story {
    min-height: 100vh;
    position: relative;
    padding: clamp(32px, 4.5vw, 68px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #edf0f1;
    background:
        linear-gradient(145deg, rgba(25, 29, 31, 0.96), rgba(14, 17, 18, 0.99)),
        radial-gradient(circle at 20% 20%, #82602d, transparent 45%);
}

.auth-story::after {
    width: 440px;
    height: 440px;
    position: absolute;
    right: -220px;
    bottom: -210px;
    border: 1px solid rgba(212, 173, 104, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(212, 173, 104, 0.035),
        0 0 0 140px rgba(212, 173, 104, 0.025);
    content: '';
}

.auth-story-glow {
    width: 320px;
    height: 320px;
    position: absolute;
    top: 20%;
    left: -170px;
    border-radius: 50%;
    background: rgba(173, 122, 39, 0.17);
    filter: blur(80px);
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    align-self: flex-start;
}

.auth-brand:hover {
    transform: translateY(-2px);
}

.auth-brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(212, 173, 104, 0.36);
    border-radius: 12px;
    color: #e4bb75;
    background: rgba(212, 173, 104, 0.1);
}

.auth-brand-mark svg {
    width: 21px;
}

.auth-brand strong,
.auth-brand small {
    display: block;
    text-transform: uppercase;
}

.auth-brand strong {
    color: #dfbd81;
    font-family: Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.13em;
}

.auth-brand small {
    margin-top: 2px;
    color: #93999c;
    font-size: 8px;
    letter-spacing: 0.32em;
}

.auth-story-copy {
    max-width: 560px;
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 60px 0;
}

.auth-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #d4ad68 !important;
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.auth-kicker svg {
    width: 15px;
}

.auth-story-copy h2 {
    margin-top: 18px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: clamp(38px, 4.2vw, 62px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.auth-story-copy > p {
    max-width: 490px;
    margin-top: 22px;
    color: #aeb3b5;
    font-size: 14px;
    line-height: 1.75;
}

.auth-story-copy ul {
    margin-top: 34px;
    display: grid;
    gap: 13px;
    list-style: none;
}

.auth-story-copy li {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #d5d8d9;
    font-size: 12px;
}

.auth-story-copy li svg {
    width: 17px;
    color: #c89644;
}

.auth-trust {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #858c8f;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-trust svg {
    width: 15px;
}

.auth-workspace {
    min-height: 100vh;
    padding: 44px clamp(28px, 7vw, 110px) 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(245, 236, 220, 0.72),
            transparent 34%
        ),
        #fbfbfa;
}

.auth-mobile-brand {
    display: none;
}

.auth-panel {
    width: 100%;
    max-width: 440px;
    margin: auto;
    padding: 40px;
    border: 1px solid var(--executive-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(28, 31, 33, 0.08);
}

.auth-panel-heading {
    margin-bottom: 29px;
}

.auth-panel-heading h1 {
    margin-top: 5px;
    font-size: 27px;
    font-weight: 650;
    letter-spacing: -0.035em;
}

.auth-panel-heading > p:last-child {
    margin-top: 7px;
    color: var(--executive-muted);
    font-size: 12px;
    line-height: 1.55;
}

.auth-panel label {
    color: #393d3f;
    font-size: 11px;
    font-weight: 650;
}

.auth-panel input:not([type='checkbox']) {
    min-height: 44px;
    border-color: var(--executive-line);
    border-radius: 9px;
    background: #fff;
    font-size: 12px;
}

.auth-panel input:not([type='checkbox']):hover {
    border-color: #cdb484;
}

.auth-panel input:not([type='checkbox']):focus {
    border-color: var(--executive-gold);
    box-shadow: 0 0 0 3px rgba(173, 122, 39, 0.12);
}

.auth-panel [data-slot='button'][type='button'] {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #4c5052;
    background: var(--panel);
    font-size: 12px;
    font-weight: 600;
    box-shadow: none;
    cursor: pointer;
}

.auth-panel [data-slot='button'][type='button']:hover {
    border-color: #c9a86d;
    color: #74501a;
    background: var(--gold-soft);
    transform: translateY(-1px);
}

.auth-panel [data-slot='button'][type='button']:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.auth-panel [data-slot='separator'] {
    background: var(--line);
}

.auth-panel [data-slot='separator'] + * {
    color: var(--muted-text);
}

.auth-panel .bg-background {
    background: var(--panel);
}

.auth-panel button[type='submit'] {
    min-height: 44px;
    border: 1px solid #9c6b20;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(110deg, #94651f, #c99339);
    font-size: 12px;
    font-weight: 650;
    box-shadow: 0 9px 20px rgba(173, 122, 39, 0.2);
    cursor: pointer;
}

.auth-panel button[type='submit']:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(173, 122, 39, 0.27);
}

.auth-panel button[type='submit']:disabled {
    cursor: not-allowed;
    opacity: 0.58;
    transform: none;
}

.auth-panel a {
    color: #97691f;
    font-weight: 600;
}

.auth-panel a:hover {
    color: #c08831;
}

.auth-copyright {
    margin-top: auto;
    padding-top: 24px;
    color: #9a9d9e;
    text-align: center;
    font-size: 9px;
}

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

    .auth-story {
        display: none;
    }

    .auth-workspace {
        padding: 28px 20px 22px;
    }

    .auth-mobile-brand {
        margin: 0 auto 28px;
        display: flex;
        align-items: center;
        gap: 11px;
        color: #6f4d18;
        font-family: Georgia, serif;
        font-size: 14px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .auth-mobile-brand .auth-brand-mark {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 520px) {
    .auth-workspace {
        justify-content: flex-start;
    }

    .auth-panel {
        padding: 28px 22px;
        border-radius: 15px;
    }
}

/* Draft application shell — structure and breakpoints match drafts/styles.css. */
.app-shell {
    min-height: 100vh;
    display: block;
}
.sidebar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    width: 100%;
    height: auto;
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    color: #edf0f1;
    background: var(--sidebar-surface);
    box-shadow: 0 -10px 30px rgba(15, 18, 19, 0.18);
    overflow-y: auto;
}
.brand {
    display: none;
    min-height: 74px;
    place-items: center;
    margin-bottom: 18px;
    color: #d4ad68;
    text-align: center;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.brand strong {
    font-family: Georgia, serif;
    font-size: 19px;
}
.brand small {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    letter-spacing: 0.4em;
}
.side-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    -webkit-overflow-scrolling: touch;
}
.nav-link {
    width: 88px;
    min-width: 88px;
    min-height: 68px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    border-radius: 9px;
    color: #e2e5e6;
    font-size: 14px;
    transition:
        background 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}
.nav-link.active {
    color: #fff;
    background: linear-gradient(110deg, #856334, #bd8b3f);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.nav-drawer {
    display: flex;
    gap: 8px;
}
.nav-drawer-trigger {
    position: relative;
    flex: 0 0 auto;
    border: 0;
    font: inherit;
}
.nav-drawer-trigger.has-active {
    color: #f2d59e;
    background: rgba(212, 173, 104, 0.12);
}
.nav-drawer-chevron {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 12px;
    height: 12px;
    transition: transform 180ms ease;
}
.nav-drawer[data-open='true'] .nav-drawer-chevron {
    transform: rotate(180deg);
}
.nav-drawer-content {
    display: none;
    gap: 8px;
}
.nav-drawer[data-open='true'] .nav-drawer-content {
    display: flex;
}
.nav-sub-link {
    background: rgba(255, 255, 255, 0.035);
}
.nav-icon {
    width: 22px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.nav-icon svg {
    width: 18px;
    height: 18px;
}
.nav-label {
    width: 100%;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.profile {
    display: none;
    margin-top: auto;
    padding: 20px 4px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    gap: 11px;
}
.avatar {
    width: 40px;
    height: 40px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #5b3d12;
    background: linear-gradient(145deg, #f1d6aa, #b78448);
    font-weight: 700;
}
.profile strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
}
.profile small {
    display: block;
    color: #afb4b7;
    font-size: 11px;
}
.main {
    min-width: 0;
    padding: 18px 12px 112px;
}
.topbar {
    display: block;
    margin-bottom: 26px;
}
.heading {
    display: flex;
    align-items: center;
    gap: 16px;
}
.heading-icon {
    width: 33px;
    color: var(--gold);
}
.heading-icon svg {
    width: 33px;
    height: 33px;
}
.heading h1 {
    font-size: clamp(24px, 2.2vw, 34px);
    font-weight: 650;
    letter-spacing: -0.035em;
}
.subtitle {
    color: var(--muted-text);
    font-size: 15px;
}
.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}
.icon-button {
    width: 44px;
    height: 44px;
    position: relative;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--panel);
}
.icon-button svg {
    width: 18px;
}
.icon-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--executive-shadow);
}
.badge-count {
    position: absolute;
    top: -5px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    color: #fff;
    background: var(--red);
    font-size: 10px;
    line-height: 18px;
}
.profile-trigger {
    padding: 0;
    overflow: visible;
}
.profile-trigger [data-slot='avatar'] {
    width: 40px;
    height: 40px;
}
.profile-trigger [data-slot='avatar-fallback'] {
    color: #5b3d12;
    background: linear-gradient(145deg, #f1d6aa, #b78448);
    font-size: 11px;
    font-weight: 700;
}
.metric-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
}
.card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--executive-shadow);
}
.metric {
    min-height: 148px;
    padding: 19px;
    position: relative;
}
.metric-label {
    padding-right: 42px;
    font-size: 13px;
    font-weight: 600;
}
.metric-value {
    margin-top: 25px;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 650;
    letter-spacing: -0.03em;
}
.metric-note {
    margin-top: 4px;
    color: var(--muted-text);
    font-size: 12px;
}
.metric-icon {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}
.metric-icon svg {
    width: 20px;
}
.green {
    color: var(--green);
}
.green-bg {
    color: var(--green);
    background: var(--green-soft);
}
.blue-bg {
    color: var(--blue);
    background: var(--blue-soft);
}
.orange-bg {
    color: var(--orange);
    background: var(--orange-soft);
}
.gold-bg {
    color: var(--gold);
    background: var(--gold-soft);
}
.purple-bg {
    color: var(--purple);
    background: var(--purple-soft);
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 18px;
}
.panel {
    padding: 20px;
}
.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.panel-head h2 {
    font-size: 17px;
    font-weight: 650;
}
.select-button {
    padding: 7px 11px;
    display: flex;
    align-items: center;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted-text);
    background: #fff;
    font-size: 12px;
}
.select-button svg {
    width: 13px;
}
.chart {
    height: 235px;
    position: relative;
    padding: 15px 8px 28px 48px;
    overflow: hidden;
}
.chart-grid {
    height: 100%;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
}
.chart-grid span {
    border-top: 1px dashed #e8e8e5;
    color: var(--muted-text);
    font-size: 10px;
    transform: translateX(-42px);
}
.chart-line {
    position: absolute;
    left: 56px;
    right: 12px;
    top: 50px;
    height: 100px;
}
.segment {
    position: absolute;
    height: 2px;
    background: var(--gold);
    transform-origin: left center;
}
.s1 {
    width: 17%;
    left: 0;
    top: 66px;
    transform: rotate(-12deg);
}
.s2 {
    width: 18%;
    left: 16%;
    top: 45px;
    transform: rotate(19deg);
}
.s3 {
    width: 17%;
    left: 33%;
    top: 65px;
    transform: rotate(-28deg);
}
.s4 {
    width: 16%;
    left: 48%;
    top: 20px;
    transform: rotate(24deg);
}
.s5 {
    width: 18%;
    left: 62%;
    top: 54px;
    transform: rotate(22deg);
}
.s6 {
    width: 22%;
    left: 78%;
    top: 88px;
    transform: rotate(-24deg);
}
.chart-dates {
    position: absolute;
    left: 48px;
    right: 5px;
    bottom: 2px;
    display: flex;
    justify-content: space-between;
    color: var(--muted-text);
    font-size: 10px;
}

@media (min-width: 601px) {
    .app-shell {
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
    }
    .sidebar {
        position: sticky;
        top: 0;
        width: auto;
        height: 100vh;
        padding-inline: 10px;
        box-shadow: none;
    }
    .brand {
        display: grid;
    }
    .brand strong {
        font-size: 11px;
    }
    .brand small,
    .nav-label,
    .profile div {
        display: none;
    }
    .side-nav {
        display: grid;
        overflow-x: visible;
    }
    .nav-link {
        width: auto;
        min-width: 50px;
        min-height: 46px;
        padding: 0;
        flex-direction: row;
        gap: 13px;
    }
    .nav-drawer {
        display: grid;
        gap: 4px;
    }
    .nav-drawer-content {
        gap: 4px;
    }
    .nav-drawer[data-open='true'] .nav-drawer-content {
        display: grid;
    }
    .nav-drawer-chevron {
        display: none;
    }
    .nav-sub-link {
        min-height: 40px;
    }
    .profile {
        display: flex;
        justify-content: center;
    }
    .main {
        padding: 22px 18px;
    }
    .topbar {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 24px;
    }
    .top-actions {
        margin-top: 0;
    }
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 841px) {
    .app-shell {
        grid-template-columns: 250px minmax(0, 1fr);
    }
    .sidebar {
        padding: 26px 18px 22px;
    }
    .brand strong {
        font-size: 19px;
    }
    .brand small {
        display: block;
    }
    .nav-label,
    .profile div {
        display: block;
    }
    .nav-link {
        justify-content: flex-start;
        padding: 0 14px;
    }
    .nav-drawer-trigger {
        width: 100%;
    }
    .nav-drawer-chevron {
        position: static;
        width: 15px;
        height: 15px;
        display: block;
        margin-left: auto;
    }
    .nav-drawer-content {
        position: relative;
        padding-left: 18px;
    }
    .nav-drawer-content::before {
        position: absolute;
        content: '';
        top: 4px;
        bottom: 4px;
        left: 10px;
        width: 1px;
        background: rgba(255, 255, 255, 0.12);
    }
    .nav-sub-link {
        min-height: 42px;
        padding-left: 12px;
    }
    .nav-label {
        width: auto;
        overflow: visible;
        font-size: 14px;
        line-height: 1.5;
        text-align: left;
        text-overflow: clip;
        white-space: normal;
    }
    .profile {
        justify-content: flex-start;
    }
    .main {
        padding: 28px 32px 34px;
    }
    .dashboard-grid {
        grid-template-columns: 1.45fr 1fr;
    }
}
@media (min-width: 1181px) {
    .metric-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

.under-construction h2 {
    font-size: 24px;
    font-weight: 650;
}
.under-construction p {
    margin-top: 8px;
}
.under-construction {
    min-height: 420px;
    padding: 48px 24px;
    display: grid;
    place-content: center;
    justify-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
    text-align: center;
}
.construction-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #d4ad68, #856334);
}
.construction-icon svg {
    width: 30px;
    height: 30px;
}
