/* ACCOUNT / APP LAYER
   Uses the public site's design tokens from site.css.
*/

.app-body {
    min-height: 100vh;
    background: #f4f7fa;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(5, 20, 30, .97);
    border-bottom: 1px solid rgba(255,255,255,.07);
    backdrop-filter: blur(16px);
}

.app-header-inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.app-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-header-nav a {
    padding: 9px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,.62);
    font-size: 13px;
    font-weight: 750;
}

.app-header-nav a.active,
.app-header-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.07);
}

.app-user {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.app-user-name {
    color: rgba(255,255,255,.72);
    font-size: 13px;
    font-weight: 700;
}

.app-link-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.72);
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

.app-link-button:hover {
    color: #fff;
}

.app-main {
    min-height: calc(100vh - 66px);
}

.app-page {
    padding: 44px 0 72px;
}

.app-page-head {
    margin-bottom: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
}

.app-page-head h1,
.form-card-head h1,
.current-ladder-head h1,
.auth-card-head h1 {
    margin: 0;
    color: #101820;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -1.6px;
}

.app-page-head p,
.form-card-head p,
.auth-card-head p {
    max-width: 640px;
    margin: 10px 0 0;
    color: #657182;
    line-height: 1.6;
}

.app-head-stat {
    min-width: 150px;
    padding: 15px 18px;
    border: 1px solid #e2e9ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(16,24,40,.04);
}

.app-head-stat strong {
    display: block;
    color: #07994a;
    font-size: 26px;
}

.app-head-stat span {
    color: #738091;
    font-size: 11px;
    font-weight: 700;
}

.app-alert {
    margin-top: 18px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 750;
}

.app-alert.success {
    color: #076935;
    border: 1px solid #bceccb;
    background: #edfff3;
}

/* AUTH */

.auth-section {
    min-height: calc(100vh - 66px);
    padding: 48px 16px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 80% 10%, rgba(20,232,118,.08), transparent 24%),
        #f4f7fa;
}

.auth-card {
    width: min(100%, 480px);
    padding: 30px;
    border: 1px solid #e0e7ee;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(16,24,40,.09);
}

.auth-card-head {
    margin-bottom: 26px;
}

.auth-card-head h1 {
    font-size: 34px;
}

.auth-card-head p {
    font-size: 13px;
}

.auth-form {
    display: grid;
    gap: 17px;
}

.auth-card .field input,
.auth-card .field select,
.form-card .field input,
.form-card .field select,
.current-ladder-card .field input {
    min-height: 50px;
}

.app-primary-button {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
}

.auth-card-foot {
    margin-top: 20px;
    color: #7b8796;
    font-size: 12px;
    text-align: center;
}

.auth-card-foot a {
    color: #087d3d;
    font-weight: 800;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #687586;
    font-size: 12px;
    font-weight: 650;
}

.field-error {
    color: #dc3545;
    font-size: 11px;
    font-weight: 700;
}

/* PROJECT */

.project-card {
    overflow: hidden;
    border: 1px solid #e1e8ee;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(16,24,40,.06);
}

.project-card + .project-card {
    margin-top: 22px;
}

.project-card-head {
    padding: 24px 26px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #ebeff3;
}

.project-label {
    display: block;
    margin-bottom: 5px;
    color: #0a9d4d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.project-card-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -.6px;
}

.project-count {
    padding: 8px 11px;
    border-radius: 999px;
    color: #5e6b7c;
    background: #f0f3f6;
    font-size: 11px;
    font-weight: 850;
}

.ladder-slots {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.ladder-slot {
    min-height: 175px;
    padding: 17px;
    border-radius: 17px;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ladder-slot:hover {
    transform: translateY(-2px);
}

.ladder-slot.filled {
    border: 1px solid #e1e8ef;
    background: linear-gradient(180deg, #fff, #fbfcfd);
}

.ladder-slot.filled:hover {
    border-color: #b8dfc8;
    box-shadow: 0 12px 30px rgba(16,24,40,.07);
}

.slot-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.slot-number {
    color: #8792a0;
    font-size: 10px;
    font-weight: 850;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    white-space: nowrap;
}

.status-active {
    color: #08713a;
    background: #e9fff1;
}

.status-lost {
    color: #a93c45;
    background: #fff0f1;
}

.status-completed {
    color: #3e5fb0;
    background: #eef3ff;
}

.ladder-slot h3 {
    margin: 18px 0 10px;
    font-size: 15px;
    line-height: 1.25;
}

.slot-amount {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -.7px;
}

.slot-amount.muted {
    color: #758192;
}

.slot-meta {
    margin-top: 5px;
    color: #758192;
    font-size: 10px;
    line-height: 1.45;
}

.freebet-chip {
    display: inline-flex;
    margin-top: 14px;
    padding: 6px 8px;
    border-radius: 999px;
    color: #715f00;
    background: #fff8d9;
    font-size: 9px;
    font-weight: 850;
}

.ladder-slot.empty {
    border: 1px dashed #cdd6df;
    background: #fafbfd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #697688;
    text-align: center;
}

.ladder-slot.empty:hover {
    border-color: #61c98e;
    color: #08783d;
    background: #f7fff9;
}

.empty-plus {
    width: 42px;
    height: 42px;
    margin-bottom: 11px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #08783d;
    background: #e9fff1;
    font-size: 24px;
    font-weight: 400;
}

.ladder-slot.empty strong {
    font-size: 13px;
}

.ladder-slot.empty small {
    margin-top: 4px;
    color: #96a0ad;
    font-size: 10px;
}

.future-project-card {
    margin-top: 18px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border: 1px dashed #ccd5dd;
    border-radius: 18px;
    color: #6f7c8d;
    background: rgba(255,255,255,.48);
}

.future-project-card strong {
    color: #3d4957;
    font-size: 13px;
}

.future-project-card p {
    margin: 4px 0 0;
    font-size: 11px;
    line-height: 1.5;
}

.future-project-card > span {
    white-space: nowrap;
    font-size: 11px;
    font-weight: 850;
}

/* CREATE LADDER */

.narrow-container {
    max-width: 760px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 18px;
    color: #687687;
    font-size: 12px;
    font-weight: 750;
}

.back-link:hover {
    color: #087d3d;
}

.form-card {
    padding: 30px;
    border: 1px solid #e0e7ee;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(16,24,40,.07);
}

.form-card-head {
    margin-bottom: 27px;
}

.form-card-head h1 {
    font-size: 36px;
}

.form-card-head p {
    font-size: 12px;
}

.ladder-create-form {
    display: grid;
    gap: 20px;
}

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

.form-label {
    color: #657182;
    font-size: 12px;
    font-weight: 700;
}

.radio-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card > span {
    min-height: 94px;
    padding: 15px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    border: 1px solid #dfe6ed;
    border-radius: 14px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.radio-card strong {
    font-size: 13px;
}

.radio-card small {
    margin-top: 5px;
    color: #7d8997;
    font-size: 10px;
    line-height: 1.45;
}

.radio-card input:checked + span {
    border-color: #43c47d;
    background: #f5fff8;
    box-shadow: 0 0 0 3px rgba(20,232,118,.10);
}

.two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* LADDER DETAIL */

.ladder-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 18px;
}

.current-ladder-card,
.ladder-summary-card,
.history-card {
    border: 1px solid #e1e8ee;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(16,24,40,.05);
}

.current-ladder-card {
    padding: 28px;
}

.current-ladder-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.current-ladder-head h1 {
    font-size: 34px;
}

.current-stake {
    margin-top: 32px;
}

.current-stake > span {
    display: block;
    color: #758293;
    font-size: 11px;
    font-weight: 750;
}

.current-stake > strong {
    display: block;
    margin-top: 4px;
    font-size: clamp(40px, 6vw, 58px);
    letter-spacing: -2px;
}

.ladder-progress-meta {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ladder-progress-meta > span {
    padding: 8px 10px;
    border-radius: 10px;
    color: #687687;
    background: #f1f4f7;
    font-size: 10px;
}

.progress-bar {
    height: 7px;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf1f4;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #13dc6d, #14e876);
}

.step-form {
    margin-top: 28px;
    padding-top: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 12px;
    border-top: 1px solid #edf0f3;
}

.result-buttons {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.result-button {
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .15s ease;
}

.result-button:hover {
    transform: translateY(-1px);
}

.result-button span {
    margin-right: 6px;
    font-size: 17px;
}

.result-button.win {
    color: #063d20;
    background: linear-gradient(135deg, #1bed7d, #13dc6d);
}

.result-button.loss {
    color: #8c3039;
    background: #fff0f1;
    border: 1px solid #ffd6da;
}

.ladder-summary-card {
    padding: 24px;
    align-self: start;
}

.ladder-summary-card > span {
    color: #7c8997;
    font-size: 10px;
    font-weight: 750;
}

.ladder-summary-card > strong {
    display: block;
    margin-top: 5px;
    font-size: 26px;
    letter-spacing: -.7px;
}

.summary-divider {
    height: 1px;
    margin: 22px 0;
    background: #edf0f3;
}

.summary-row {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #748191;
    font-size: 11px;
}

.summary-row strong {
    color: #24303d;
}

.finished-ladder {
    min-height: 220px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.finished-ladder strong {
    font-size: 38px;
    letter-spacing: -1.3px;
}

.finished-ladder span {
    margin-top: 8px;
    color: #758293;
    font-size: 12px;
}

.history-card {
    margin-top: 18px;
    overflow: hidden;
}

.history-card-head {
    padding: 22px 25px;
    border-bottom: 1px solid #edf0f3;
}

.history-card-head h2 {
    margin: 0;
    font-size: 20px;
}

.history-card-head p {
    margin: 5px 0 0;
    color: #7b8796;
    font-size: 11px;
}

.empty-history {
    padding: 32px 25px;
    color: #8a96a4;
    font-size: 12px;
}

.step-history-list {
    display: grid;
}

.history-item {
    padding: 17px 24px;
    display: grid;
    grid-template-columns: 36px minmax(0,1fr) auto;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #edf0f3;
}

.history-item:last-child {
    border-bottom: 0;
}

.history-step-number {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #08783d;
    background: #e9fff1;
    font-size: 11px;
    font-weight: 900;
}

.history-main {
    display: grid;
    gap: 4px;
}

.history-main strong {
    font-size: 12px;
}

.history-main span {
    color: #7a8796;
    font-size: 10px;
}

.history-result {
    display: grid;
    gap: 3px;
    text-align: right;
}

.history-result strong {
    font-size: 12px;
}

.history-result span {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.history-result.win strong,
.history-result.win span {
    color: #0b8a45;
}

.history-result.loss strong,
.history-result.loss span {
    color: #b5424c;
}

/* MOBILE BOTTOM NAV */

.mobile-bottom-nav {
    display: none;
}

/* RESPONSIVE */

@media (max-width: 1040px) {
    .ladder-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 760px) {
    .app-header-inner {
        min-height: 60px;
    }

    .app-header-nav,
    .app-user-name {
        display: none;
    }

    .app-user {
        gap: 10px;
    }

    .app-page {
        padding: 28px 0 96px;
    }

    .app-page-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-head-stat {
        min-width: 0;
        width: 100%;
    }

    .ladder-slots {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .ladder-slot {
        min-height: 0;
    }

    .ladder-slot.filled {
        min-height: 158px;
    }

    .ladder-slot.empty {
        min-height: 90px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 10px;
        text-align: left;
    }

    .empty-plus {
        width: 36px;
        height: 36px;
        margin: 0;
        flex: 0 0 36px;
    }

    .ladder-slot.empty small {
        margin-left: auto;
    }

    .future-project-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .auth-card,
    .form-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .radio-cards,
    .two-fields {
        grid-template-columns: 1fr;
    }

    .ladder-detail-grid {
        grid-template-columns: 1fr;
    }

    .ladder-summary-card {
        order: -1;
    }

    .current-ladder-card {
        padding: 22px 18px;
    }

    .current-ladder-head {
        flex-direction: column;
        gap: 12px;
    }

    .current-ladder-head h1 {
        font-size: 29px;
    }

    .current-stake {
        margin-top: 24px;
    }

    .current-stake > strong {
        font-size: 44px;
    }

    .step-form {
        grid-template-columns: 1fr;
    }

    .result-buttons {
        grid-column: auto;
    }

    .history-item {
        grid-template-columns: 32px minmax(0,1fr);
    }

    .history-result {
        grid-column: 2;
        text-align: left;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 10px;
        z-index: 150;
        min-height: 64px;
        padding: 6px;
        display: grid;
        grid-template-columns: repeat(3,1fr);
        gap: 4px;
        border: 1px solid rgba(255,255,255,.08);
        border-radius: 18px;
        background: rgba(7,23,34,.97);
        box-shadow: 0 16px 40px rgba(0,0,0,.23);
        backdrop-filter: blur(16px);
    }

    .mobile-bottom-nav a,
    .mobile-bottom-nav button {
        border: 0;
        border-radius: 13px;
        background: transparent;
        color: rgba(255,255,255,.58);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        font: inherit;
    }

    .mobile-bottom-nav a.active {
        color: #072116;
        background: #14e876;
    }

    .mobile-bottom-nav button {
        opacity: .45;
    }

    .mobile-bottom-nav span {
        font-size: 17px;
        font-weight: 900;
    }

    .mobile-bottom-nav small {
        font-size: 8px;
        font-weight: 800;
    }
}


/* PRODUCT v0.2 */

.app-body {
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 0 auto;
}

.app-alert.error {
    color: #9d313b;
    border: 1px solid #f0c4c8;
    background: #fff1f2;
}

.app-page-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-new-project-button {
    min-height: 56px;
    padding: 0 18px;
}

.project-card-completed {
    background: #fbfcfd;
}

.project-title-block {
    min-width: 0;
}

.project-title-line,
.project-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.project-title-line {
    margin-bottom: 5px;
}

.project-label {
    margin-bottom: 0;
}

.project-status {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
}

.project-status-active {
    color: #08713b;
    background: #e8fff1;
}

.project-status-completed {
    color: #657182;
    background: #eef1f4;
}

.project-name-row h2 {
    min-width: 0;
}

.project-rename {
    position: relative;
}

.project-rename summary {
    list-style: none;
    color: #6d7988;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
}

.project-rename summary::-webkit-details-marker {
    display: none;
}

.project-rename[open] form {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    z-index: 20;
    width: min(330px, 76vw);
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    border: 1px solid #dfe6ed;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(16,24,40,.12);
}

.project-rename input {
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #d7dfe6;
    border-radius: 9px;
    font: inherit;
    font-size: 12px;
}

.project-rename button {
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    color: #07361f;
    background: #19e878;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.project-bank-grid {
    padding: 18px 26px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    border-bottom: 1px solid #ebeff3;
    background: #f8fafb;
}

.project-bank-item {
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid #e5eaee;
    border-radius: 14px;
    background: #fff;
}

.project-bank-item > span,
.slot-value-label {
    display: block;
    color: #7a8796;
    font-size: 10px;
    font-weight: 500;
}

.project-bank-item > strong {
    display: block;
    margin-top: 5px;
    color: #1f2a35;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.6px;
}

.project-bank-item > strong.positive {
    color: #0b9149;
}

.project-bank-item > strong.negative {
    color: #b5424c;
}

.project-bank-item > small {
    display: block;
    margin-top: 4px;
    color: #929daa;
    font-size: 9px;
}

.ladder-slot.filled {
    display: block;
}

.slot-title-link {
    display: block;
    color: inherit;
}

.slot-title-link:hover h3 {
    color: #087d3d;
}

.slot-value-label {
    margin-top: 18px;
}

.slot-amount {
    margin-top: 3px;
}

.quick-ladder-form {
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid #edf0f3;
}

.quick-ladder-form label > span {
    display: block;
    margin-bottom: 6px;
    color: #748190;
    font-size: 9px;
    font-weight: 500;
}

.quick-ladder-form input {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid #dce3e9;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.quick-ladder-form input:focus {
    border-color: #4bcf85;
    box-shadow: 0 0 0 3px rgba(20,232,118,.09);
}

.quick-result-buttons {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.quick-result {
    min-height: 36px;
    padding: 0 5px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
}

.quick-result:disabled {
    opacity: .38;
    cursor: default;
}

.quick-result.win {
    color: #075e32;
    background: #e7fff0;
    border-color: #c4efd4;
}

.quick-result.return {
    color: #6c5c19;
    background: #fff9dd;
    border-color: #efe2a5;
}

.quick-result.loss {
    color: #9a3943;
    background: #fff0f1;
    border-color: #ffd6da;
}

.slot-open-link {
    display: inline-flex;
    margin-top: 16px;
    color: #087d3d;
    font-size: 10px;
    font-weight: 600;
}

.ladder-slot.empty.disabled {
    cursor: default;
    opacity: .58;
}

.project-card-actions {
    padding: 15px 26px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #edf0f3;
    background: #fbfcfd;
}

.project-card-actions span {
    color: #7b8796;
    font-size: 10px;
}

.project-complete-button {
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #dce3e9;
    border-radius: 10px;
    color: #44515e;
    background: #fff;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.project-card-actions.completed strong {
    color: #4b5764;
    font-size: 11px;
}

.result-buttons {
    grid-template-columns: repeat(3, 1fr);
}

.result-button.return {
    color: #77651b;
    background: #fff9df;
    border: 1px solid #f0e1a0;
}

.history-result.return strong,
.history-result.return span {
    color: #8a741c;
}

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

@media (max-width: 760px) {
    .app-page-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }

    .app-new-project-button {
        width: 100%;
    }

    .project-card-head {
        align-items: flex-start;
        padding: 20px 18px 16px;
    }

    .project-bank-grid {
        padding: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .project-bank-item {
        padding: 12px;
    }

    .project-bank-item > strong {
        font-size: 19px;
    }

    .ladder-slot.filled {
        min-height: 0;
    }

    .quick-result {
        min-height: 40px;
        font-size: 9px;
    }

    .project-card-actions {
        padding: 14px 16px;
        align-items: flex-start;
        flex-direction: column;
    }

    .project-complete-button {
        min-height: 42px;
    }

    .result-buttons {
        grid-template-columns: repeat(3, 1fr);
    }

    .result-button {
        min-height: 54px;
        padding: 0 5px;
        font-size: 11px;
    }

    .site-footer {
        margin-bottom: 84px;
    }
}

@media (max-width: 390px) {
    .project-bank-grid {
        grid-template-columns: 1fr;
    }

    .quick-result-buttons {
        gap: 4px;
    }

    .quick-result {
        font-size: 8px;
    }
}


/* Product v0.2.1 — ladder result visibility */
.slot-net-result {
    margin-top: 7px;
    color: #7d8895;
    font-size: 10px;
    line-height: 1.35;
}

.slot-net-result strong {
    color: #26313b;
    font-weight: 700;
}

.slot-net-result.positive,
.slot-net-result.positive strong,
.ladder-net-result strong.positive {
    color: #078845;
}

.slot-net-result.negative,
.slot-net-result.negative strong,
.ladder-net-result strong.negative {
    color: #b64049;
}

.ladder-net-result strong {
    font-weight: 700;
}
