body {
    color: #0c2723;
    font-family: "Nunito", "Segoe UI", sans-serif;
}

.hm {
    --paper: #f6f5f2;
    --ink: #0f172a;
    --mut: #6b7280;
    --panel: #ffffff;
    --line: rgba(15,23,42,.08);
    --shadow: 0 14px 40px rgba(15,23,42,.08);
    --r: 16px;
    --accent: #05703b;
    --accent2: #46b86e;
    --ok: #05703b;
    --warn: #f59e0b;
    --bad: #ef4444;
    background: #f9fafb;
    min-height: 100vh;
}

.hm-hero {
    background: radial-gradient(900px 300px at 10% 0%, rgba(261,186,33,0.25), transparent 60%), radial-gradient(900px 300px at 70% 20%, rgba(180,83,9,.18), transparent 60%), linear-gradient(180deg, #0b1220 0%, #0b1220 100%, var(--paper) 100%, var(--paper) 100%);
    color: #fff;
}

.hm-title {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    letter-spacing: -.035em;
}

.hm-sub {
    margin-top: 6px;
    color: rgba(255,255,255,.78);
}

.hm-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hm-input {
    flex: 1 1 320px;
    border-radius: 999px;
    padding: 12px 14px;
}

.hm-select {
    width: auto;
    border-radius: 999px;
}

.hm-btn {
    border-radius: 999px;
    background: var(--accent2);
    border: 1px solid rgba(0,0,0,.15);
    font-weight: 800;
    color: #fff;
}

    .hm-btn:hover {
        filter: brightness(.97);
    }

.hm-btn-outline {
    border-radius: 999px;
    background: transparent;
    border: 1px solid rgba(5,112,59,.35);
    color: #05703b;
    font-weight: 700;
}

.brand-glow .hm-btn-outline {
    border-color: rgba(255,255,255,.28);
    color: #fff;
}

.hm-chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color:black;
}

.chip {
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
}

    .chip:hover {
        background: rgba(255,255,255,.12);
    }

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: 0 10px 28px rgba(15,23,42,.055);
}

.panel-h {
    font-weight: 900;
    color: var(--ink);
    letter-spacing: .2px;
}

.f-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--mut);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.hr {
    height: 1px;
    background: var(--line);
}

.meta-bar {
    backdrop-filter: blur(8px);
}

.tcard {
    overflow: hidden;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tcard:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(15,23,42,.14);
    border-color: rgba(5,112,59,.28);
}

.tcard-media {
    position: relative;
    display: block;
    background: #0c2723;
    overflow: hidden;
    aspect-ratio: 3 / 2;
}

    .tcard-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform .45s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
    }

.tcard:hover .tcard-media img {
    transform: scale(1.035);
}

@media (max-width:576px) {
    .tcard-media img {
        height: 100%;
    }
}

.unit-chip {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-weight: 900;
    font-size: 12px;
}

.badge-row {
    position: absolute;
    left: 12px;
    top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    max-width: calc(100% - 24px);
}

.badge {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(0,0,0,.12);
}

    .badge.soft {
        background: rgba(255,255,255,.90);
        color: var(--ink);
    }

    .badge.status {
        color: #fff;
    }

        .badge.status.st-ok {
            background: var(--ok);
        }

        .badge.status.st-warn {
            background: var(--warn);
        }

        .badge.status.st-bad {
            background: var(--bad);
        }

        .badge.status.st-neutral {
            background: #475569;
        }

.tcard-body {
    padding: 14px 14px 16px;
    display: flex;
    min-height: 290px;
    flex-direction: column;
}

.tcard-title {
    font-weight: 900;
    color: var(--ink);
    line-height: 1.15;
    font-size: 17px;
    letter-spacing: -.018em;
}

.tcard-sub {
    color: var(--mut);
    font-size: 12px;
    margin-top: 4px;
}

.dot {
    margin: 0 6px;
    opacity: .6;
}

.tcard-price {
    font-weight: 950;
    font-size: 18px;
    color: #05703b;
    letter-spacing: -.025em;
}

.specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.spec {
    background: #faf9f7;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 14px;
    padding: 10px 10px;
}

    .spec span {
        display: block;
        font-size: 11px;
        color: var(--mut);
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .spec b {
        display: block;
        margin-top: 3px;
        font-size: 13px;
        color: var(--ink);
    }

.actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.actions .btn {
    border-radius: 10px;
    font-weight: 800;
}

.upload-error {
    padding: 10px 12px;
    border: 1px solid rgba(185,28,28,.2);
    border-radius: 10px;
    background: #fff1f1;
    color: #991b1b;
    font-size: .875rem;
    font-weight: 650;
}

.adm .form-control:focus, .adm .form-select:focus {
    border-color: rgba(180,83,9,.65);
    box-shadow: 0 0 0 .22rem rgba(245,158,11,.15);
}

@media (prefers-reduced-motion: reduce) {
    .tcard, .tcard-media img { transition: none; }
    .tcard:hover, .tcard:hover .tcard-media img { transform: none; }
}

.adm .adm-h {
    font-weight: 950;
    font-size: 22px;
    letter-spacing: .2px;
}

.btn-amber {
    background: #05703b;
    border: 1px solid rgba(0,0,0,.12);
    font-weight: 900;
    color: #fff;
}

    .btn-amber:hover {
        filter: brightness(.97);
    }

.adm-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.adm-step {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(15,23,42,.08);
    background: #faf9f7;
}

    .adm-step .bubble {
        width: 28px;
        height: 28px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        font-weight: 950;
        background: #0b1220;
        color: #fff;
    }

    .adm-step .label {
        font-weight: 900;
        font-size: 12px;
        color: #0f172a;
        opacity: .8;
        text-transform: uppercase;
        letter-spacing: .08em;
    }

    .adm-step.active {
        background: #fff7ed;
        border-color: rgba(245,158,11,.35);
    }

        .adm-step.active .bubble {
            background: #f59e0b;
            color: #111827;
        }

    .adm-step.done {
        background: #ecfdf5;
        border-color: rgba(22,163,74,.25);
    }

        .adm-step.done .bubble {
            background: #16a34a;
        }

.adm-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    display: grid;
    place-items: center;
    z-index: 9999;
}

.adm-modal-card {
    max-width: 420px;
    width: calc(100% - 24px);
}
.td {
    --ink: #0f172a;
    --mut: #6b7280;
    --line: rgba(15,23,42,.08);
    --panel: #fff;
    --shadow: 0 14px 40px rgba(15,23,42,.08);
    --r: 18px;
    --ok: #16a34a;
    --warn: #f59e0b;
    --bad: #ef4444;
    --warm1: #fff7ed;
    --warm2: rgba(245,158,11,.35);
}

.td-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
}

.td-top {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.td-back {
    color: var(--ink);
    text-decoration: none;
    font-weight: 900;
}

    .td-back:hover {
        text-decoration: underline;
    }

.td-status {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.td-badge {
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 950;
    font-size: 12px;
    border: 1px solid rgba(0,0,0,.10);
    color: #fff;
}

    .td-badge.soft {
        background: rgba(255,255,255,.92);
        color: var(--ink);
    }

    .td-badge.ok {
        background: var(--ok);
    }

    .td-badge.warn {
        background: var(--warn);
    }

    .td-badge.bad {
        background: var(--bad);
    }

    .td-badge.neutral {
        background: #475569;
    }

.td-gallery {
    overflow: hidden;
}

.td-main-img {
    position: relative;
}

    .td-main-img img {
        width: 100%;
        display: block;
        aspect-ratio: 16/10;
        object-fit: cover;
    }

.td-unit {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,.55);
    color: #fff;
    font-weight: 950;
    font-size: 12px;
}

.td-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px;
    overflow: auto;
    border-top: 1px solid var(--line);
    background: #faf9f7;
}

.td-thumb {
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 0;
    background: transparent;
    flex: 0 0 auto;
}

    .td-thumb img {
        width: 110px;
        height: 70px;
        object-fit: cover;
        border-radius: 12px;
        display: block;
        border: 1px solid rgba(15,23,42,.10);
    }

    .td-thumb.active {
        border-color: rgba(245,158,11,.65);
    }

.td-title {
    font-size: 22px;
    font-weight: 950;
    color: var(--ink);
    letter-spacing: .2px;
    line-height: 1.15;
}

.td-sub {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.pill {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    color: var(--ink);
    background: #faf9f7;
    border: 1px solid rgba(15,23,42,.08);
}

.td-price {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--warm1), #fff);
    border: 1px solid rgba(245,158,11,.25);
}

.td-price-main {
    font-size: 28px;
    font-weight: 1000;
    color: var(--ink);
}

.td-price-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 210px;
}

.mini {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(15,23,42,.08);
}

    .mini .k {
        color: var(--mut);
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .mini .v {
        color: var(--ink);
        font-weight: 950;
    }

.td-cta .btn {
    border-radius: 12px;
    font-weight: 900;
}

.td-cta-row {
    display: flex;
    gap: 10px;
}

.td-toast {
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ecfdf5;
    border: 1px solid rgba(22,163,74,.22);
}

.td-h {
    font-weight: 950;
    color: var(--ink);
    letter-spacing: .2px;
}

.td-muted {
    color: var(--mut);
}

.td-small {
    font-size: 12px;
}

.td-text {
    color: var(--ink);
    line-height: 1.6;
}

.td-quote {
    padding: 12px 14px;
    border-radius: 14px;
    background: #faf9f7;
    border: 1px solid rgba(15,23,42,.08);
    font-weight: 800;
    color: #111827;
}

.td-line {
    height: 1px;
    background: var(--line);
}

.td-specgrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.spec {
    background: #faf9f7;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 14px;
    padding: 10px;
}

    .spec span {
        display: block;
        font-size: 11px;
        color: var(--mut);
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: .06em;
    }

    .spec b {
        display: block;
        margin-top: 3px;
        font-size: 13px;
        color: var(--ink);
    }

.td-table .r {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15,23,42,.06);
}

    .td-table .r:last-child {
        border-bottom: none;
    }

.td-table .k {
    color: var(--mut);
    font-weight: 900;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.td-table .v {
    color: var(--ink);
    font-weight: 900;
    text-align: right;
}

.td-warm {
    background: linear-gradient(180deg, var(--warm1), #fff);
    border-color: var(--warm2);
}

.td-options {
    display: grid;
    gap: 10px;
}

.opt {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.75);
    border: 1px solid rgba(15,23,42,.08);
}

    .opt.off {
        opacity: .55;
    }

    .opt .k {
        font-weight: 950;
        color: var(--ink);
    }

    .opt .v {
        font-weight: 900;
        color: var(--mut);
    }

@media (max-width: 992px) {
    .td-price {
        flex-direction: column;
    }

    .td-price-side {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 420px) {
    .td-specgrid {
        grid-template-columns: 1fr;
    }

    .td-thumb img {
        width: 92px;
        height: 62px;
    }
}

/* ===== Payment calculator ===== */
.calc-field {
    display: block;
}

.calc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

    .calc-row label {
        font-weight: 900;
        color: var(--ink);
        font-size: 13px;
    }

.calc-val {
    font-weight: 1000;
    color: var(--ink);
}

.calc-range {
    width: 100%;
    margin-top: 10px;
    accent-color: var(--accent, #05703b);
}

.calc-hint {
    font-size: 12px;
    color: var(--mut);
    font-weight: 700;
    margin-top: 4px;
}

.calc-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.calc-pill {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(15,23,42,.12);
    background: #faf9f7;
    font-weight: 900;
    font-size: 13px;
    color: var(--ink);
    cursor: pointer;
}

    .calc-pill.active {
        background: var(--accent, #05703b);
        border-color: var(--accent, #05703b);
        color: #fff;
    }

.calc-input {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #faf9f7;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 12px;
    padding: 6px 10px;
}

    .calc-input input {
        border: none;
        background: transparent;
        width: 90px;
        text-align: right;
        font-weight: 900;
        color: var(--ink);
        outline: none;
    }

    .calc-input .pre {
        color: var(--mut);
        font-weight: 900;
    }

    .calc-input.dispatch {
        width: 100%;
        justify-content: flex-end;
    }

        .calc-input.dispatch input {
            width: 120px;
        }

        .calc-input.dispatch b {
            margin-left: auto;
            white-space: nowrap;
        }

.calc-result {
    background: linear-gradient(180deg, #ecfdf5, #fff);
    border: 1px solid rgba(5,112,59,.22);
    border-radius: 16px;
    padding: 16px;
}

.calc-big {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

    .calc-big .num {
        font-size: 40px;
        font-weight: 1000;
        color: var(--accent, #05703b);
        line-height: 1;
    }

    .calc-big .per {
        font-size: 16px;
        font-weight: 900;
        color: var(--mut);
    }

.calc-sub {
    margin-top: 6px;
    font-weight: 800;
    color: var(--ink);
    font-size: 13px;
}

.calc-minis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.calc-fixedtag {
    margin-left: 8px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--mut);
    background: #f1f5f9;
    border: 1px solid rgba(15,23,42,.10);
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: middle;
}

.calc-fixed {
    display: grid;
    gap: 2px;
    border: 1px solid rgba(15,23,42,.08);
    border-radius: 14px;
    overflow: hidden;
    background: #faf9f7;
}

.upload-dropzone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 132px;
    padding: 20px;
    overflow: hidden;
    border: 2px dashed rgba(5,112,59,.35);
    border-radius: 14px;
    background: #f6fbf8;
    text-align: center;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within {
    border-color: #05703b;
    background: #edf8f1;
    transform: translateY(-1px);
}

.upload-dropzone.uploading {
    border-style: solid;
    background: #ecfdf5;
}

.upload-drop-input {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-dropzone.uploading .upload-drop-input {
    pointer-events: none;
}

.upload-drop-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #05703b;
    color: #fff;
    font-size: 22px;
    font-weight: 950;
    line-height: 1;
}

.upload-drop-title {
    margin-top: 8px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 950;
}

.upload-drop-sub {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.server-storage {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid rgba(5,112,59,.18);
    border-radius: 16px;
    background: linear-gradient(135deg, #effaf3, #fff);
    box-shadow: 0 10px 28px rgba(15,23,42,.05);
}

.server-storage.compact {
    margin-bottom: 14px;
    padding: 14px;
}

.server-storage.low {
    border-color: rgba(245,158,11,.45);
    background: linear-gradient(135deg, #fff7ed, #fff);
}

.server-storage.critical {
    border-color: rgba(220,38,38,.38);
    background: linear-gradient(135deg, #fff1f2, #fff);
}

.storage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.storage-title {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.storage-sub,
.storage-note {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.storage-numbers {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.storage-numbers > div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(15,23,42,.07);
    border-radius: 12px;
    background: rgba(255,255,255,.8);
}

.storage-numbers span,
.storage-numbers strong {
    display: block;
}

.storage-numbers span {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.storage-numbers strong {
    margin-top: 3px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.storage-progress {
    height: 8px;
    margin-top: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(15,23,42,.10);
}

.storage-progress > div {
    height: 100%;
    border-radius: inherit;
    background: #05703b;
}

.server-storage.low .storage-progress > div { background: #f59e0b; }
.server-storage.critical .storage-progress > div { background: #dc2626; }

.storage-cleanup {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .85rem;
    padding-top: .85rem;
    border-top: 1px solid rgba(15, 23, 42, .1);
}

.storage-cleanup-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .75rem;
    padding: .75rem;
    border: 1px solid #fecaca;
    border-radius: .75rem;
    background: #fff7f7;
}

.storage-note {
    margin-top: 8px;
}

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

.earnings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.earnings-live {
    flex: 0 0 auto;
    color: #05703b;
    background: #eaf7ee;
    border: 1px solid rgba(5,112,59,.18);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 900;
}

.earnings-inputs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid rgba(15,23,42,.10);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.earnings-input {
    min-width: 0;
    padding: 11px 12px;
    border-right: 1px solid rgba(15,23,42,.08);
    background: #faf9f7;
}

    .earnings-input:last-child {
        border-right: none;
    }

    .earnings-input > span {
        display: block;
        margin-bottom: 5px;
        color: var(--mut);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.2;
    }

    .earnings-input > div {
        display: flex;
        align-items: baseline;
        gap: 3px;
    }

    .earnings-input input {
        min-width: 0;
        width: 100%;
        border: 0;
        padding: 0;
        outline: 0;
        background: transparent;
        color: var(--ink);
        font-size: 16px;
        font-weight: 950;
    }

    .earnings-input .fixed-value {
        color: var(--ink);
        font-size: 16px;
        font-weight: 950;
    }

    .earnings-input-fixed {
        cursor: default;
    }

    .earnings-input input:focus-visible {
        border-radius: 4px;
        box-shadow: 0 0 0 3px rgba(5,112,59,.18);
    }

    .earnings-input b {
        color: var(--mut);
        font-size: 11px;
        font-weight: 900;
        white-space: nowrap;
    }

.earnings-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    border: 1px solid rgba(5,112,59,.20);
    border-radius: 18px;
    overflow: hidden;
}

.earnings-now {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    background: #eaf7ee;
}

.earnings-kicker {
    color: #315f48;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.25;
}

.earnings-number {
    margin-top: 7px;
    color: #05703b;
    font-size: clamp(38px, 5vw, 58px);
    font-weight: 1000;
    letter-spacing: -.045em;
    line-height: .95;
}

    .earnings-number.negative {
        color: var(--bad);
    }

.earnings-now p,
.earnings-payoff p {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.4;
}

.earnings-route {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(5,112,59,.18);
    color: #315f48;
    font-size: 12px;
    font-weight: 800;
}

.earnings-ledger {
    padding: 12px 16px;
    background: #fff;
}

.earnings-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0;
    color: var(--mut);
    font-size: 12px;
    font-weight: 750;
}

    .earnings-line b {
        color: var(--ink);
        font-weight: 950;
        white-space: nowrap;
    }

    .earnings-line.positive,
    .earnings-line.positive b {
        color: #05703b;
    }

    .earnings-line.payment {
        margin-top: 5px;
        padding-top: 10px;
        border-top: 1px dashed rgba(15,23,42,.16);
        color: var(--ink);
    }

    .earnings-line.total {
        margin-top: 5px;
        padding-top: 10px;
        border-top: 1px solid rgba(15,23,42,.10);
        color: var(--ink);
        font-size: 13px;
    }

.earnings-payoff {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #123f30;
    color: #fff;
}

    .earnings-payoff .earnings-kicker {
        color: #b9e879;
    }

    .earnings-payoff p {
        max-width: 410px;
        color: #d7e8e0;
    }

.earnings-payoff-total {
    flex: 0 0 auto;
    text-align: right;
}

    .earnings-payoff-total strong {
        display: block;
        font-size: 32px;
        font-weight: 1000;
        letter-spacing: -.035em;
        line-height: 1;
    }

    .earnings-payoff-total span {
        display: inline-block;
        margin-top: 7px;
        color: #b9e879;
        font-size: 12px;
        font-weight: 900;
    }

.earnings-note {
    color: var(--mut);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.fx {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
}

    .fx span {
        font-weight: 800;
        color: var(--ink);
        font-size: 13px;
    }

    .fx b {
        font-weight: 950;
        color: var(--ink);
        font-size: 13px;
        white-space: nowrap;
    }

    .fx.total {
        background: #f1f5f9;
        border-top: 1px solid rgba(15,23,42,.10);
    }

        .fx.total span,
        .fx.total b {
            font-size: 14px;
        }

.calc-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--ink, #0f172a);
    color: #fff;
}

    .calc-total .k {
        font-weight: 900;
        letter-spacing: .02em;
    }

    .calc-total .v {
        font-size: 24px;
        font-weight: 1000;
    }

.calc-toggle {
    border: 1px solid rgba(15,23,42,.12);
    background: #faf9f7;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 900;
    font-size: 12px;
    color: var(--ink);
    cursor: pointer;
}

.calc-schedule {
    overflow-x: auto;
}

    .calc-schedule table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }

    .calc-schedule th {
        text-align: right;
        color: var(--mut);
        font-weight: 900;
        text-transform: uppercase;
        font-size: 11px;
        letter-spacing: .04em;
        padding: 8px 10px;
        border-bottom: 1px solid var(--line);
        white-space: nowrap;
    }

        .calc-schedule th:first-child,
        .calc-schedule td:first-child,
        .calc-schedule th:nth-child(2),
        .calc-schedule td:nth-child(2) {
            text-align: left;
        }

    .calc-schedule td {
        text-align: right;
        padding: 7px 10px;
        border-bottom: 1px solid rgba(15,23,42,.05);
        font-weight: 700;
        color: var(--ink);
        white-space: nowrap;
    }

    .calc-schedule tbody tr:hover {
        background: #faf9f7;
    }

@media (max-width: 560px) {
    .calc-minis {
        grid-template-columns: 1fr;
    }

    .calc-big .num {
        font-size: 32px;
    }

    .earnings-head,
    .earnings-payoff {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .earnings-input {
        border-bottom: 1px solid rgba(15,23,42,.08);
    }

    .earnings-input:nth-child(2n) {
        border-right: none;
    }

    .earnings-input:last-child {
        grid-column: 1 / -1;
        border-bottom: none;
    }

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

    .earnings-now {
        padding: 20px;
    }

    .earnings-payoff-total {
        text-align: left;
    }
}

@media (min-width: 561px) and (max-width: 900px) {
    .earnings-inputs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .earnings-input:nth-child(3) {
        border-right: none;
    }

    .earnings-input:nth-child(-n+3) {
        border-bottom: 1px solid rgba(15,23,42,.08);
    }
}
