:root {
    --forest: #174e3c;
    --deep: #103b2d;
    --lime: #d6f196;
    --paper: #f5f7f1;
    --ink: #203f34;
    --muted: #627168;
    --line: #e4e9df;
    --white: #fff;
    --amber: #ae7329;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 13px;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
a,
input,
select,
textarea {
    outline-offset: 4px;
}
button {
    cursor: pointer;
}
svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 31px;
    font-weight: 800;
    letter-spacing: -1.8px;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: var(--forest);
    color: var(--lime);
    border-radius: 12px;
}
.brand small {
    font-size: 9px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0;
    margin-top: 12px;
}
.sidebar {
    width: 236px;
    position: fixed;
    inset: 0 auto 0 0;
    background: var(--white);
    border-right: 1px solid var(--line);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 50;
}
.sidebar nav {
    margin-top: 35px;
    overflow: auto;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 1.8px;
    font-size: 9px;
    font-weight: 750;
    color: var(--muted);
}
.sidebar .eyebrow {
    padding: 0 14px;
    margin: 18px 0 10px;
}
.nav-link {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    margin: 3px 0;
    border-radius: 12px;
    color: #64756b;
    font-size: 12px;
    font-weight: 600;
    min-height: 44px;
}
.nav-link:hover {
    background: #f0f5e9;
}
.nav-link.active {
    background: var(--forest);
    color: white;
}
.nav-link.active svg {
    color: var(--lime);
}
.nav-link svg {
    width: 18px;
    height: 18px;
}
.sidebar-bottom {
    margin-top: auto;
    padding: 20px 14px 0;
    color: var(--muted);
    font-size: 10px;
}
.sidebar-bottom div {
    border-radius: 16px;
    background: #eff4e6;
    padding: 15px;
    color: var(--forest);
    font-size: 12px;
    margin-bottom: 14px;
}
.workspace {
    margin-left: 236px;
}
.topbar {
    height: 82px;
    padding: 0 38px;
    background: #ffffffb8;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(12px);
}
.topbar .search {
    max-width: 340px;
    position: relative;
    width: 100%;
}
.search input {
    border: 0;
    background: var(--paper);
    padding: 12px 15px 12px 40px;
    border-radius: 12px;
    font-size: 11px;
    width: 100%;
}
.search svg {
    position: absolute;
    left: 12px;
    top: 11px;
    color: var(--muted);
    width: 17px;
}
.topbar .right {
    margin-left: auto;
    display: flex;
    gap: 17px;
    align-items: center;
}
.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8efdc;
    color: var(--forest);
    display: grid;
    place-items: center;
    font-weight: 750;
}
.role {
    font-size: 10px;
    color: var(--muted);
}
.name {
    font-size: 12px;
    font-weight: 700;
}
.menu-button {
    display: none;
    border: 0;
    background: none;
    color: var(--forest);
}
main {
    max-width: 1520px;
    padding: 32px 38px 45px;
    margin: auto;
}
.page-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 25px;
}
h1 {
    margin: 5px 0 7px;
    font-size: 30px;
    letter-spacing: -1.2px;
    line-height: 1.22;
}
h2 {
    font-size: 16px;
    letter-spacing: -0.4px;
    margin: 0 0 6px;
}
h3 {
    font-size: 13px;
    margin: 0 0 6px;
}
p {
    margin: 6px 0 16px;
    color: var(--muted);
    font-size: 12px;
}
.subtle {
    color: var(--muted);
    font-size: 11px;
}
.button,
button.primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: var(--forest);
    color: white;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.button:hover,
button.primary:hover {
    background: var(--deep);
}
.button.secondary {
    background: white;
    border: 1px solid var(--line);
    color: var(--forest);
}
.button.lime {
    background: var(--lime);
    color: var(--forest);
}
.button.small {
    padding: 8px 12px;
    min-height: 36px;
    font-size: 10px;
    border-radius: 9px;
}
.button.danger {
    background: #f9e9e2;
    color: #9b4130;
}
.button svg {
    width: 15px;
    height: 15px;
}
.row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.row.wrap {
    flex-wrap: wrap;
}
.between {
    justify-content: space-between;
}
.grid {
    display: grid;
    gap: 20px;
}
.cols-2 {
    grid-template-columns: 1fr 1fr;
}
.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}
.stats {
    margin-bottom: 24px;
}
.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 21px;
    padding: 23px;
    min-width: 0;
}
.stat .value {
    font-size: 31px;
    letter-spacing: -1.4px;
    font-weight: 750;
    margin: 16px 0 1px;
    line-height: 1.1;
}
.stat .icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #edf3e3;
    color: var(--forest);
}
.stat .icon.peach {
    background: #f8eada;
}
.stat .icon.purple {
    background: #efedf8;
}
.stat .icon.blue {
    background: #e9f1f8;
}
.stat .label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
}
.hero {
    padding: 28px 32px;
    color: white;
    border-radius: 22px;
    background: var(--forest);
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    min-height: 180px;
}
.hero:before,
.hero:after {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    border: 1px solid #ffffff1c;
    border-radius: 50%;
    right: -25px;
    top: -75px;
    box-shadow:
        0 0 0 26px #ffffff07,
        0 0 0 54px #ffffff05,
        0 0 0 86px #ffffff04;
    pointer-events: none;
}
.hero:after {
    width: 90px;
    height: 110px;
    border-radius: 22px;
    right: 68px;
    top: 45px;
    background: var(--lime);
    transform: rotate(-16deg);
    box-shadow: none;
    border: 0;
}
.hero h2 {
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -1px;
    max-width: 65%;
    position: relative;
    z-index: 1;
}
.hero p {
    color: #cbded0;
    max-width: 65%;
    position: relative;
    z-index: 1;
}
.hero .eyebrow {
    color: var(--lime);
    margin-bottom: 13px;
}
.hero .button {
    position: relative;
    z-index: 2;
}
.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 14px;
}
.section-head p {
    margin: 4px 0 0;
}
.link {
    font-size: 11px;
    font-weight: 700;
    color: var(--forest);
}
.pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.2px;
    background: #eff3e9;
    color: #52674f;
    white-space: nowrap;
}
.pill.pending,
.pill.requested,
.pill.PENDING_VERIFY,
.pill.QUEUED,
.pill.batched {
    background: #fcf1dc;
    color: #94621d;
}
.pill.approved,
.pill.active,
.pill.SUCCESS,
.pill.paid,
.pill.completed,
.pill.delivered {
    background: #eaf5e5;
    color: #3d713d;
}
.pill.rejected,
.pill.FAILED,
.pill.suspended,
.pill.MANUAL_REVIEW {
    background: #fbeae5;
    color: #a44c38;
}
.table-wrap {
    overflow: auto;
    margin: 0 -7px;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
th {
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.8px;
    color: var(--muted);
    font-weight: 600;
    text-align: left;
    background: #f9faf6;
}
td,
th {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
td strong {
    font-weight: 650;
}
td .subtle {
    display: block;
    margin-top: 3px;
    font-size: 10px;
}
tr:last-child td {
    border-bottom: 0;
}
.empty {
    padding: 42px 24px;
    text-align: center;
    color: var(--muted);
}
.empty svg {
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
    color: #9caf98;
}
.empty strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
}
.empty p {
    margin: 8px 0 0;
}
.notice {
    background: #eaf2db;
    color: #3b623b;
    border-radius: 13px;
    padding: 14px 17px;
    margin-bottom: 20px;
    font-size: 12px;
}
.notice.error,
.notice.warning {
    background: #fbefdc;
    color: #926126;
}
.chart {
    height: 170px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 14px;
    padding-top: 20px;
}
.chart-item {
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.bar {
    width: 100%;
    max-width: 44px;
    background: #d9e9bf;
    border-radius: 7px 7px 3px 3px;
    min-height: 3px;
}
.chart-item:last-child .bar {
    background: var(--forest);
}
.chart-label {
    font-size: 9px;
    color: var(--muted);
}
.actions-list {
    display: grid;
    gap: 10px;
}
.action-row {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.action-row svg {
    color: var(--forest);
}
.action-row strong {
    font-size: 12px;
}
.action-row p {
    margin: 3px 0 0;
    font-size: 10px;
}
.action-row .arrow {
    margin-left: auto;
    color: var(--muted);
}
label {
    display: block;
    font-size: 11px;
    font-weight: 650;
    margin-bottom: 14px;
}
label input,
label select,
label textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    border: 1px solid var(--line);
    border-radius: 11px;
    min-height: 44px;
    padding: 12px;
    background: #fafbf7;
    color: var(--ink);
    font-size: 12px;
}
textarea {
    min-height: 82px;
    resize: vertical;
}
select[multiple] {
    min-height: 100px;
}
label small {
    display: block;
    color: var(--muted);
    font-weight: 400;
    margin-top: 5px;
    font-size: 10px;
}
input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--forest);
}
.checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: 450;
}
.filter {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.filter input,
.filter select {
    border: 1px solid var(--line);
    background: white;
    padding: 11px;
    border-radius: 11px;
    min-height: 44px;
    color: var(--ink);
}
.filter input {
    min-width: 200px;
}
.toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.progress {
    height: 5px;
    border-radius: 5px;
    background: #edf1e7;
    overflow: hidden;
    margin-top: 8px;
}
.progress span {
    display: block;
    height: 100%;
    background: #8aac63;
    border-radius: 5px;
}
.study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.study-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.study-card p {
    margin: 0;
    min-height: 38px;
}
.study-card .row:last-child {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 15px;
}
.thumb {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 14px;
    background: #eef1e8;
}
.photo-card pre {
    max-height: 150px;
    overflow: auto;
    font-size: 10px;
    background: #f6f8f1;
    padding: 12px;
    border-radius: 10px;
}
.photo-card form {
    margin-top: 15px;
}
.pagination {
    margin-top: 20px;
}
.pagination nav {
    display: flex;
    justify-content: space-between;
}
.pagination nav > div:first-child {
    display: none;
}
.pagination svg {
    width: 14px;
    height: 14px;
}
.pagination a,
.pagination span[aria-current] {
    display: inline-block;
    padding: 7px 10px;
}
.form-card {
    max-width: 850px;
    margin-bottom: 24px;
}
details > summary {
    cursor: pointer;
    min-height: 44px;
    font-size: 12px;
    font-weight: 650;
    padding: 10px 0;
}
.finance-alert {
    padding: 14px 17px;
    border: 1px solid #ead7b3;
    background: #fff8e9;
    border-radius: 13px;
    margin-bottom: 12px;
}
.finance-alert p {
    margin: 4px 0;
    font-size: 11px;
}
.integration {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.integration:last-child {
    border: 0;
}
.mono {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 10px;
    overflow-wrap: anywhere;
}
footer {
    padding-top: 30px;
    text-align: center;
    font-size: 10px;
    color: var(--muted);
}
.auth-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fafbf6;
}
.auth-story {
    margin: 18px;
    border-radius: 26px;
    padding: 42px 48px;
    background: var(--forest);
    color: white;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.auth-story .brand {
    color: white;
}
.auth-story .brand-mark {
    background: var(--lime);
    color: var(--forest);
}
.auth-story .brand small {
    color: #d1e0cb;
}
.auth-story h1 {
    font-size: 55px;
    line-height: 1.07;
    letter-spacing: -2.5px;
    margin: 70px 0 22px;
    max-width: 450px;
}
.auth-story p {
    color: #c7dbcc;
    font-size: 14px;
    max-width: 330px;
    line-height: 1.9;
}
.auth-story .orbit {
    width: 340px;
    height: 340px;
    border: 1px solid #ffffff1c;
    box-shadow:
        0 0 0 35px #ffffff06,
        0 0 0 70px #ffffff04;
    border-radius: 50%;
    position: absolute;
    right: -150px;
    bottom: 50px;
}
.auth-story .quote {
    margin-top: auto;
    position: relative;
    z-index: 1;
    background: #ffffff0b;
    border: 1px solid #ffffff16;
    border-radius: 18px;
    padding: 20px 24px;
    max-width: 380px;
}
.auth-story .quote p {
    margin: 0;
    font-size: 13px;
    color: #eff6e8;
}
.auth-story .quote .eyebrow {
    margin-top: 14px;
    color: var(--lime);
}
.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.auth-form {
    width: 100%;
    max-width: 365px;
}
.auth-form h1 {
    font-size: 30px;
}
.auth-form > p {
    font-size: 12px;
    margin: 12px 0 28px;
}
.auth-form .button {
    width: 100%;
    margin-top: 8px;
}
.auth-form .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 18px;
    font-size: 11px;
}
.auth-form .meta label {
    margin: 0;
}
.auth-form .footnote {
    margin-top: 22px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
}
.auth-form .footnote a {
    color: var(--forest);
    font-weight: 700;
}
.auth-main .brand {
    display: none;
}
.error-page {
    max-width: 550px;
    margin: 12vh auto;
    padding: 30px;
}
.error-page h1 {
    font-size: 40px;
}
@media (min-width: 1500px) {
    main {
        padding: 38px 50px;
    }
    .hero {
        min-height: 210px;
    }
}
@media (max-width: 1150px) {
    .cols-4 {
        grid-template-columns: 1fr 1fr;
    }
    .sidebar {
        width: 210px;
    }
    .workspace {
        margin-left: 210px;
    }
    .topbar {
        padding: 0 24px;
    }
    main {
        padding: 28px 24px;
    }
    .auth-story {
        padding: 35px;
    }
    .auth-story h1 {
        font-size: 45px;
    }
}
@media (max-width: 800px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.2s;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 20px 0 80px #153c3333;
    }
    .workspace {
        margin: 0;
    }
    .menu-button {
        display: block;
    }
    .topbar {
        height: 70px;
        padding: 0 20px;
        gap: 14px;
    }
    .topbar .search {
        max-width: 200px;
    }
    .topbar .right .user-info {
        display: none;
    }
    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }
    .cols-2,
    .cols-3 {
        grid-template-columns: 1fr;
    }
    main {
        padding: 24px 20px;
    }
    .hero {
        padding: 25px;
    }
    .hero h2 {
        font-size: 24px;
        max-width: 75%;
    }
    .hero:after {
        right: -30px;
        opacity: 0.6;
    }
    .auth-body {
        grid-template-columns: 1fr;
    }
    .auth-story {
        display: none;
    }
    .auth-main {
        min-height: 100vh;
        padding: 28px;
    }
    .auth-main .brand {
        display: flex;
        margin-bottom: 48px;
    }
    .auth-form {
        max-width: 410px;
    }
    .card {
        padding: 19px;
    }
    .stat .value {
        font-size: 27px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

.hero:after {
    content: "ϟ";
    display: grid;
    place-items: center;
    font-size: 75px;
    line-height: 1;
    color: var(--forest);
}

.button.small {
    min-height: 44px;
}
.link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.checkbox {
    min-height: 44px;
}
.auth-form .footnote a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
.auth-form button[data-toggle-password] {
    min-height: 44px !important;
}
