@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    color-scheme: light;
    --adp-ink: #111714;
    --adp-paper: #f4f6f1;
    --adp-surface: #ffffff;
    --adp-wash: #e9eee8;
    --adp-muted: #68716c;
    --adp-soft-muted: #7a847d;
    --adp-line: #dce2db;
    --adp-green: #b9f36a;
    --adp-green-hover: #cdfb8b;
    --adp-green-deep: #4b7553;
    --adp-green-tint: #eef7e4;
    --adp-font-body: 'DM Sans', sans-serif;
    --adp-font-display: 'Space Grotesk', sans-serif;
}

.app-shell {
    --adp-ink: #edf2ed;
    --adp-paper: #090b0a;
    --adp-surface: #18221c;
    --adp-wash: #121714;
    --adp-muted: #a7b1a9;
    --adp-soft-muted: #879289;
    --adp-line: #303a33;
    --adp-green: #050606;
    --adp-green-hover: #2b302d;
    --adp-green-deep: #edf2ed;
    --adp-green-tint: #252a27;
    color-scheme: dark;
}

html.app-shell,
html.saas-auth {
    background: var(--adp-paper) !important;
    color: var(--adp-ink) !important;
}

html.saas-auth { color-scheme: light; }

body.app-shell,
body.saas-auth {
    background: var(--adp-paper) !important;
    color: var(--adp-ink) !important;
    font-family: var(--adp-font-body) !important;
}

.app-shell h1,
.app-shell h2,
.app-shell h3,
.saas-auth h1,
.saas-auth h2,
.saas-auth h3 {
    color: var(--adp-ink);
    font-family: var(--adp-font-display);
}

.app-shell aside {
    background: var(--adp-wash) !important;
    border-color: var(--adp-line) !important;
}

.app-shell .bg-zinc-950,
.saas-auth .bg-zinc-950 {
    background-color: var(--adp-paper) !important;
}

.app-shell .bg-zinc-900,
.saas-auth .bg-zinc-900 {
    background-color: var(--adp-surface) !important;
}

.app-shell .bg-zinc-800 {
    background-color: var(--adp-wash) !important;
}

.app-shell [class~="bg-zinc-900/50"] {
    background-color: rgb(24 34 28 / 92%) !important;
}

.app-shell [class~="bg-zinc-800/60"],
.app-shell [class~="bg-zinc-800/30"] {
    background-color: rgb(255 255 255 / 4%) !important;
}

.app-shell .border-zinc-700,
.app-shell .border-zinc-800,
.app-shell [class~="border-zinc-800/80"],
.app-shell [class~="border-zinc-800/60"],
.app-shell [class~="border-zinc-800/50"],
.saas-auth .border-zinc-700,
.saas-auth .border-zinc-800 {
    border-color: var(--adp-line) !important;
}

.app-shell .divide-zinc-800 > :not(:last-child) {
    border-color: var(--adp-line) !important;
}

.app-shell .text-white,
.app-shell .text-zinc-100,
.saas-auth .text-white,
.saas-auth .text-zinc-100 {
    color: var(--adp-ink) !important;
}

.app-shell .text-zinc-300,
.app-shell .text-zinc-400,
.saas-auth .text-zinc-300,
.saas-auth .text-zinc-400 {
    color: var(--adp-muted) !important;
}

.app-shell .text-zinc-500,
.saas-auth .text-zinc-500 {
    color: var(--adp-soft-muted) !important;
}

.app-shell .text-zinc-600,
.saas-auth .text-zinc-600 {
    color: #909991 !important;
}

.app-shell .text-indigo-300,
.app-shell .text-indigo-400,
.app-shell .text-indigo-500,
.saas-auth .text-indigo-300,
.saas-auth .text-indigo-400 {
    color: var(--adp-green-deep) !important;
}

.app-shell .bg-indigo-500 {
    background-color: var(--adp-green-deep) !important;
}

.app-shell [class~="bg-indigo-500/10"] {
    background-color: var(--adp-green-tint) !important;
}

.app-shell .bg-indigo-600,
.saas-auth .bg-indigo-600 {
    background-color: var(--adp-green) !important;
    color: var(--adp-ink) !important;
}

.app-shell [class~="bg-indigo-600/10"] {
    background-color: rgb(255 255 255 / 6%) !important;
}

.saas-auth [class~="bg-indigo-600/10"] {
    background-color: rgb(185 243 106 / 17%) !important;
}

.app-shell .border-indigo-500,
.app-shell [class~="border-indigo-500/20"],
.app-shell [class~="border-indigo-500/30"] {
    border-color: rgb(255 255 255 / 16%) !important;
}

.saas-auth .border-indigo-500 {
    border-color: rgb(75 117 83 / 35%) !important;
}

.app-shell .hover\:bg-indigo-500:hover,
.saas-auth .hover\:bg-indigo-500:hover {
    background-color: var(--adp-green-hover) !important;
    color: var(--adp-ink) !important;
}

.app-shell [class~="hover:bg-indigo-600/20"]:hover {
    background-color: var(--adp-green-tint) !important;
}

.app-shell [class~="hover:text-indigo-300"]:hover,
.app-shell [class~="hover:text-indigo-400"]:hover {
    color: var(--adp-green-deep) !important;
}

.app-shell [class~="hover:border-indigo-500/50"]:hover,
.app-shell .group:hover [class~="group-hover:border-indigo-500/50"] {
    border-color: rgb(255 255 255 / 35%) !important;
}

.app-shell .hover\:bg-zinc-800:hover {
    background-color: var(--adp-wash) !important;
}

.app-shell .hover\:text-white:hover {
    color: var(--adp-ink) !important;
}

.app-shell [class~="focus:border-indigo-500"]:focus,
.saas-auth [class~="focus:border-indigo-500"]:focus {
    border-color: var(--adp-green-deep) !important;
}

.app-shell [class~="placeholder-zinc-500"]::placeholder,
.app-shell [class~="placeholder-zinc-600"]::placeholder,
.saas-auth [class~="placeholder-zinc-500"]::placeholder,
.saas-auth [class~="placeholder-zinc-600"]::placeholder {
    color: var(--adp-soft-muted) !important;
}

.app-shell input[type="checkbox"],
.saas-auth input[type="checkbox"] {
    accent-color: var(--adp-green-deep);
}

.app-shell .text-white svg,
.saas-auth .text-white svg {
    color: inherit;
}

.app-shell .image-link .text-white {
    color: #fff !important;
}

.app-shell [class~="bg-emerald-500/10"] {
    background-color: var(--adp-green-tint) !important;
}

.app-shell .text-emerald-300,
.app-shell .text-emerald-400,
.app-shell .text-emerald-500 {
    color: var(--adp-green-deep) !important;
}

.app-shell [class~="shadow-indigo-600/20"],
.app-shell [class~="shadow-indigo-500/20"] {
    --tw-shadow-color: rgb(75 117 83 / 12%) !important;
}

.app-shell [class~="border-emerald-500/30"] {
    border-color: rgb(255 255 255 / 16%) !important;
}

.saas-brand-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--adp-green) !important;
    color: var(--adp-ink) !important;
    box-shadow: none !important;
}

.saas-brand-mark svg {
    color: var(--adp-ink) !important;
}

.app-shell .gain-chart {
    border-radius: 6px;
    background: #18221c;
}

.app-shell .gain-chart [stroke="#6ee7b7"],
.app-shell .gain-chart [fill="#6ee7b7"],
.app-shell [style*="#6ee7b7"] {
    stroke: #6ee7b7 !important;
    fill: #6ee7b7 !important;
    background-color: #6ee7b7 !important;
}

.app-shell .gain-chart [stroke="#60a5fa"],
.app-shell .gain-chart [fill="#60a5fa"],
.app-shell [style*="#60a5fa"] {
    stroke: #92b9ff !important;
    fill: #92b9ff !important;
    background-color: #92b9ff !important;
}

.app-shell .gain-chart [stroke="#fbbf24"],
.app-shell .gain-chart [fill="#fbbf24"],
.app-shell [style*="#fbbf24"] {
    stroke: #f3c96b !important;
    fill: #f3c96b !important;
    background-color: #f3c96b !important;
}

.app-shell .saas-brand-mark { border: 1px solid rgb(255 255 255 / 16%); }
.app-shell .catalog-count { border-left-color: #aeb6af; }

.catalog-toolbar {
    padding: 24px 30px 15px !important;
    gap: 18px !important;
    background: var(--adp-paper) !important;
    border-color: var(--adp-line) !important;
}

.catalog-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.catalog-kicker {
    margin: 0 0 8px;
    color: var(--adp-green-deep);
    font-size: 10px;
    font-weight: 700;
}

.catalog-title {
    margin: 0;
    font-size: 29px;
    font-weight: 600;
    line-height: 1.15;
}

.catalog-summary {
    margin: 7px 0 0;
    color: var(--adp-muted);
    font-size: 12px;
}

.catalog-count {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    border-left: 2px solid var(--adp-green);
}

.catalog-count strong {
    color: var(--adp-ink);
    font-family: var(--adp-font-display);
    font-size: 25px;
    font-weight: 600;
}

.catalog-count span {
    color: var(--adp-muted);
    font-size: 10px;
    line-height: 1.45;
}

.catalog-controls { min-width: 0; }
.catalog-control-actions { flex: 0 0 auto; }
.catalog-main { padding: 20px 30px !important; }
.catalog-table { border-radius: 8px !important; box-shadow: 0 14px 40px rgb(0 0 0 / 22%) !important; }
.catalog-table-heading { background: var(--adp-wash) !important; border-color: var(--adp-line) !important; }
.catalog-row { min-height: 82px; border-color: var(--adp-line) !important; }
.catalog-economics > div { min-width: 0; }

.app-mobile-header { display: none; }
.app-sidebar-backdrop { display: none; }

@media (max-width: 767px) {
    body.app-shell { display: block !important; }
    .app-main-area { height: 100svh !important; min-height: 0; }
    .app-mobile-header {
        display: flex;
        height: 58px;
        flex: 0 0 58px;
        align-items: center;
        justify-content: space-between;
        padding: 0 16px;
        border-bottom: 1px solid var(--adp-line);
        background: var(--adp-paper);
    }
    .app-mobile-brand {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: var(--adp-ink);
        font-family: var(--adp-font-display);
        font-size: 15px;
        font-weight: 700;
    }
    .app-menu-button {
        display: grid;
        width: 38px;
        height: 38px;
        place-items: center;
        border: 1px solid var(--adp-line);
        border-radius: 6px;
        background: var(--adp-surface);
        color: var(--adp-ink);
    }
    .app-sidebar { display: none !important; }
    .app-sidebar.is-open {
        position: fixed;
        z-index: 51;
        top: 58px;
        bottom: 0;
        left: 0;
        display: flex !important;
        width: min(288px, 86vw);
        border-right: 1px solid var(--adp-line);
        box-shadow: 16px 0 40px rgb(17 23 20 / 12%);
    }
    .app-sidebar-backdrop:not([hidden]) {
        position: fixed;
        z-index: 50;
        inset: 58px 0 0;
        display: block;
        background: rgb(17 23 20 / 28%);
    }
    .app-main-content { min-height: 0; height: auto !important; }
    .catalog-toolbar { padding: 18px 16px 12px !important; }
    .catalog-heading { align-items: start; }
    .catalog-title { font-size: 25px; }
    .catalog-summary { max-width: 300px; line-height: 1.5; }
    .catalog-count { gap: 8px; padding-left: 10px; }
    .catalog-count strong { font-size: 21px; }
    .catalog-count span { font-size: 9px; }
    .catalog-controls { align-items: stretch !important; flex-direction: column; gap: 9px !important; }
    .catalog-search { max-width: none !important; }
    .catalog-control-actions { justify-content: space-between; }
    .catalog-quick-filters { flex-wrap: wrap; overflow: visible; }
    .catalog-main { padding: 16px !important; }
    .catalog-resultline { align-items: start; flex-direction: column; gap: 10px; }
    .catalog-table-heading { display: none !important; }
    .catalog-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px !important; padding: 14px !important; }
    .catalog-row > .col-span-4,
    .catalog-row > .col-span-3,
    .catalog-row > .col-span-1 { grid-column: 1 / -1 !important; }
    .catalog-row > .col-span-2 { grid-column: span 1 / span 1 !important; }
    .catalog-product input[type="checkbox"] { display: none; }
    .catalog-product { min-width: 0; }
    .catalog-economics > div { flex-wrap: wrap; gap: 8px; }
    .catalog-activity { text-align: right !important; }
    .catalog-actions-cell { justify-content: flex-end !important; }
}

.app-shell ::-webkit-scrollbar-track { background: var(--adp-paper); }
.app-shell ::-webkit-scrollbar-thumb { background: #c4cec4; }
.app-shell ::-webkit-scrollbar-thumb:hover { background: #9ba99d; }

.saas-auth .shadow-2xl,
.app-shell .shadow-xl {
    --tw-shadow-color: rgb(0 0 0 / 22%);
}

.saas-auth.auth-page {
    display: block !important;
    min-height: 100svh;
    height: auto !important;
    padding: 0 !important;
}

.auth-layout {
    display: grid;
    min-height: 100svh;
    grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
}

.auth-visual {
    position: relative;
    min-height: 100svh;
    overflow: hidden;
    background: #18221c;
    color: #fff;
}

.auth-visual-image,
.auth-visual-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.auth-visual-image { object-fit: cover; object-position: center; }
.auth-visual-shade { background: rgb(10 17 13 / 34%); }

.auth-visual-brand,
.auth-visual-copy {
    position: absolute;
    z-index: 1;
    left: 48px;
    display: flex;
    align-items: center;
    color: #fff !important;
}

.auth-visual-brand {
    top: 36px;
    gap: 10px;
    font-family: var(--adp-font-display);
    font-size: 19px;
    font-weight: 700;
}

.auth-visual-brand .saas-brand-mark { border: 0; }
.auth-visual-copy { right: 52px; bottom: 58px; display: block; max-width: 520px; }
.auth-visual-copy p { margin-bottom: 15px; color: var(--adp-green); font-size: 10px; font-weight: 700; }
.auth-visual-copy h2 { margin: 0 0 13px; color: #fff; font-family: var(--adp-font-display); font-size: 36px; font-weight: 600; line-height: 1.08; }
.auth-visual-copy span { display: block; max-width: 400px; color: rgb(255 255 255 / 82%); font-size: 13px; line-height: 1.7; }

.auth-panel {
    display: flex;
    min-width: 0;
    min-height: 100svh;
    align-items: center;
    justify-content: center;
    padding: 50px clamp(32px, 7vw, 100px);
    background: var(--adp-paper);
}

.auth-panel-inner { width: min(100%, 420px); }
.auth-back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 54px; color: var(--adp-muted); font-size: 11px; }
.auth-back-link:hover { color: var(--adp-ink); }
.auth-back-link svg { width: 15px; height: 15px; }
.auth-heading { margin-bottom: 27px; }
.auth-eyebrow { margin-bottom: 11px; color: var(--adp-green-deep); font-size: 10px; font-weight: 700; }
.auth-heading h1 { margin: 0 0 8px; color: var(--adp-ink); font-family: var(--adp-font-display); font-size: 34px; font-weight: 600; line-height: 1.12; }
.auth-heading > p:last-child { margin: 0; color: var(--adp-muted); font-size: 13px; line-height: 1.6; }
.auth-form { display: grid; gap: 17px; }
.auth-field { display: grid; gap: 7px; }
.auth-field label { color: #465149; font-size: 11px; font-weight: 600; }
.auth-field input { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--adp-line); border-radius: 4px; outline: none; background: #fff; color: var(--adp-ink); font: 13px var(--adp-font-body); }
.auth-field input:focus { border-color: var(--adp-green-deep); box-shadow: 0 0 0 3px rgb(75 117 83 / 10%); }
.auth-error { color: #b42318; font-size: 11px; line-height: 1.5; }
.auth-remember { display: inline-flex; width: fit-content; align-items: center; gap: 9px; color: var(--adp-muted); cursor: pointer; font-size: 11px; }
.auth-remember input { width: 14px; height: 14px; margin: 0; accent-color: #4b7553; }
.auth-submit { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; border: 0; border-radius: 4px; background: var(--adp-green); color: var(--adp-ink); cursor: pointer; font: 700 12px var(--adp-body); transition: background 150ms ease, transform 150ms ease; }
.auth-submit:hover { transform: translateY(-1px); background: var(--adp-green-hover); }
.auth-submit svg { width: 15px; height: 15px; }
.auth-switch { margin: 24px 0 0; color: var(--adp-muted); font-size: 11px; }
.auth-switch a { color: var(--adp-green-deep); font-weight: 700; }
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 900px) {
    .auth-layout { grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr); }
    .auth-panel { padding-right: 34px; padding-left: 34px; }
    .auth-visual-brand, .auth-visual-copy { left: 30px; }
    .auth-visual-copy { right: 30px; }
    .auth-visual-copy h2 { font-size: 30px; }
}

@media (max-width: 700px) {
    .auth-layout { display: block; }
    .auth-visual { min-height: 250px; height: 31svh; max-height: 310px; }
    .auth-visual-image { object-position: center 42%; }
    .auth-visual-brand { top: 18px; left: 20px; font-size: 16px; }
    .auth-visual-brand .saas-brand-mark { width: 28px; height: 28px; }
    .auth-visual-copy { right: 20px; bottom: 20px; left: 20px; }
    .auth-visual-copy p { margin-bottom: 7px; font-size: 9px; }
    .auth-visual-copy h2 { margin-bottom: 0; font-size: 25px; }
    .auth-visual-copy span { display: none; }
    .auth-panel { min-height: auto; padding: 30px 22px 42px; }
    .auth-back-link { margin-bottom: 30px; }
    .auth-heading h1 { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
    .app-shell *,
    .saas-auth * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}