.project-shell,
.project-form-page,
.project-picker-page {
    padding-top: 32px;
    padding-bottom: 72px;
}

.project-page-header,
.project-detail-header,
.project-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 28px;
}

.project-page-header h1,
.project-detail-header h1,
.project-form-header h1 {
    margin: 6px 0 8px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
}

.project-page-header p,
.project-detail-header p,
.project-form-header p {
    max-width: 760px;
    margin: 0;
    color: #aeb5b2;
    line-height: 1.6;
}

.project-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #28302d;
    border-radius: 18px;
    background: #28302d;
}

.project-summary-strip > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    background: #101412;
}

.project-summary-strip strong {
    color: #d9ff43;
    font-size: 1.45rem;
}

.project-summary-strip span {
    color: #9aa29e;
    font-size: .82rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.project-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid #252c29;
    border-radius: 22px;
    background: linear-gradient(145deg, #121715, #0b0f0d);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .2);
}

.project-card-top,
.project-card-copy,
.project-card-meta,
.project-card-actions {
    padding-left: 20px;
    padding-right: 20px;
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
}

.project-device-mark,
.project-guide-mark,
.project-empty-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(217, 255, 67, .34);
    border-radius: 15px;
    background: rgba(217, 255, 67, .08);
    color: #d9ff43;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
    letter-spacing: .06em;
}

.project-status,
.project-fit-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 10px;
    background: #232a27;
    color: #c7cfcb;
    font-size: .72rem;
    font-weight: 700;
}

.project-status-sourcing,
.project-status-repairing,
.project-fit-badge.is-verified {
    background: rgba(217, 255, 67, .12);
    color: #d9ff43;
}

.project-status-completed {
    background: rgba(77, 209, 132, .13);
    color: #72e3a2;
}

.project-status-paused {
    background: rgba(255, 184, 77, .12);
    color: #ffc66f;
}

.project-card-copy {
    flex: 1;
    padding-top: 18px;
}

.project-card-copy small,
.project-plan-item small,
.project-selected-guide small,
.project-picker-listing small,
.project-compatibility-heading small {
    color: #8f9894;
}

.project-card-copy h2 {
    margin: 6px 0 10px;
    font-size: 1.25rem;
}

.project-card-copy h2 a {
    color: #f4f7f5;
    text-decoration: none;
}

.project-card-copy p {
    margin: 0;
    color: #a8b0ac;
    line-height: 1.55;
}

.project-progress {
    height: 7px;
    overflow: hidden;
    margin: 20px;
    border-radius: 99px;
    background: #252c29;
}

.project-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8bae16, #d9ff43);
}

.project-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-bottom: 18px;
    color: #939c98;
    font-size: .8rem;
}

.project-card-meta strong {
    color: #f2f6f3;
}

.project-guide-ready {
    color: #d9ff43;
}

.project-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #252c29;
    padding-top: 13px;
    padding-bottom: 13px;
}

.project-card-actions a {
    color: #dbe1de;
    text-align: center;
    text-decoration: none;
    font-size: .86rem;
    font-weight: 700;
}

.project-card-actions a + a {
    border-left: 1px solid #303834;
}

.project-empty-state {
    display: grid;
    max-width: 680px;
    place-items: center;
    gap: 14px;
    margin: 60px auto;
    padding: 48px 28px;
    border: 1px dashed #39423e;
    border-radius: 24px;
    text-align: center;
}

.project-empty-state h2,
.project-empty-state p {
    margin: 0;
}

.project-empty-state p {
    color: #aeb5b2;
    line-height: 1.65;
}

.project-form-header {
    justify-content: flex-start;
}

.project-form-header > a {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #303834;
    border-radius: 50%;
    color: #f5f7f6;
    text-decoration: none;
    font-size: 1.8rem;
}

.project-source-card,
.project-form-card,
.project-plan-section,
.project-progress-panel,
.project-side-card,
.project-picker-listing,
.project-compatibility-card {
    border: 1px solid #27302c;
    border-radius: 22px;
    background: #101412;
}

.project-source-card {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
    padding: 18px 20px;
}

.project-source-card span,
.project-side-card > span {
    color: #d9ff43;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.project-source-card small {
    color: #959e9a;
}

.project-form-card {
    max-width: 860px;
    padding: clamp(20px, 4vw, 34px);
}

.project-form-field {
    display: grid;
    gap: 8px;
    margin-bottom: 22px;
}

.project-form-field label {
    font-weight: 750;
}

.project-form-field small {
    color: #929b97;
    line-height: 1.45;
}

.project-form-control,
.project-status-select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #3a443f;
    border-radius: 12px;
    background: #080b0a;
    color: #f4f7f5;
    padding: 11px 13px;
}

textarea.project-form-control {
    resize: vertical;
}

.project-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    border-top: 1px solid #27302c;
    padding-top: 22px;
}

.project-form-actions a {
    color: #b2bbb7;
}

.project-detail-device {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
}

.project-detail-device .project-device-mark {
    width: 62px;
    height: 62px;
    border-radius: 19px;
}

.project-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-detail-actions > a {
    color: #dbe1de;
}

.project-detail-actions form,
.project-plan-item-head form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-detail-actions select,
.project-plan-item-head select {
    width: auto;
    min-width: 150px;
}

.project-detail-actions button,
.project-plan-item-head button,
.project-compatible-grid button {
    min-height: 42px;
    border: 1px solid #46514c;
    border-radius: 10px;
    background: #1b211e;
    color: #eff3f0;
    padding: 0 13px;
    font-weight: 700;
}

.project-progress-panel {
    margin-bottom: 18px;
    padding: 18px 20px;
}

.project-progress-panel > div:first-child {
    display: flex;
    justify-content: space-between;
}

.project-progress-panel .project-progress {
    margin: 12px 0;
}

.project-progress-panel p {
    margin: 0;
    color: #929b97;
    font-size: .8rem;
}

.project-warning-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.project-warning {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border: 1px solid #4c3e25;
    border-radius: 15px;
    background: rgba(255, 181, 71, .07);
    padding: 15px 17px;
}

.project-warning > span {
    min-width: 42px;
    color: #ffc96f;
    font-size: .72rem;
    font-weight: 900;
}

.project-warning strong,
.project-warning p {
    display: block;
    margin: 0;
}

.project-warning p {
    margin-top: 4px;
    color: #c8c0b2;
    line-height: 1.45;
}

.project-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
    align-items: start;
}

.project-detail-main,
.project-detail-side {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.project-plan-section {
    min-width: 0;
    padding: 22px;
}

.project-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.project-section-heading > div {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
}

.project-section-heading > div > span {
    grid-row: 1 / span 2;
    color: #d9ff43;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 800;
}

.project-section-heading h2,
.project-section-heading p {
    margin: 0;
}

.project-section-heading p {
    margin-top: 4px;
    color: #969f9b;
    font-size: .85rem;
}

.project-section-heading > a {
    flex: 0 0 auto;
    color: #d9ff43;
    font-size: .85rem;
    font-weight: 700;
}

.project-selected-guide {
    display: flex;
    gap: 16px;
    border: 1px solid #303a35;
    border-radius: 17px;
    padding: 18px;
    background: #0a0e0c;
}

.project-selected-guide h3,
.project-selected-guide p {
    margin: 4px 0 0;
}

.project-selected-guide p {
    color: #a5adaa;
    line-height: 1.5;
}

.project-guide-options {
    display: grid;
    gap: 10px;
}

.project-guide-options > p {
    color: #a7afab;
}

.project-guide-options form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #303834;
    border-radius: 14px;
    padding: 14px;
}

.project-guide-options form span {
    display: grid;
    gap: 3px;
}

.project-plan-list {
    display: grid;
    gap: 12px;
}

.project-plan-item {
    min-width: 0;
    border: 1px solid #2b3430;
    border-radius: 17px;
    padding: 17px;
    background: #0b0f0d;
}

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

.project-plan-item h3,
.project-plan-item p {
    margin: 4px 0 0;
}

.project-plan-item p {
    color: #9da6a2;
}

.project-fit-badge {
    margin-top: 10px;
}

.project-plan-warnings {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.project-plan-warnings span {
    border-radius: 999px;
    background: rgba(255, 184, 77, .1);
    color: #ffc66f;
    padding: 6px 9px;
    font-size: .72rem;
    font-weight: 700;
}

.project-mini-listings {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.project-mini-listings a {
    display: grid;
    min-width: 0;
    gap: 4px;
    border: 1px solid #303834;
    border-radius: 12px;
    padding: 12px;
    color: #f1f4f2;
    text-decoration: none;
}

.project-mini-listings span {
    color: #929b97;
    font-size: .7rem;
}

.project-mini-listings strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .84rem;
}

.project-mini-listings b {
    color: #d9ff43;
}

.project-no-stock,
.project-plan-empty {
    margin: 14px 0 0;
    border-radius: 12px;
    background: #171c19;
    color: #9ea6a2;
    padding: 13px;
    line-height: 1.45;
}

.project-compatible-more {
    margin-top: 16px;
    border-top: 1px solid #2c3431;
    padding-top: 14px;
}

.project-compatible-more summary {
    cursor: pointer;
    color: #d9ff43;
    font-weight: 750;
}

.project-compatible-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.project-compatible-grid article {
    display: grid;
    gap: 9px;
    border: 1px solid #303834;
    border-radius: 14px;
    padding: 14px;
}

.project-compatible-grid article > div {
    display: grid;
    gap: 3px;
}

.project-compatible-grid span,
.project-compatible-grid small {
    color: #929b97;
    font-size: .72rem;
}

.project-compatible-grid p {
    margin: 0;
    color: #ffc66f;
    font-size: .75rem;
}

.project-compatible-grid a {
    color: #d9ff43;
    font-size: .8rem;
}

.project-compatible-grid form,
.project-compatible-grid button {
    width: 100%;
}

.project-side-card {
    padding: 18px;
}

.project-side-card h2 {
    margin: 7px 0 12px;
    font-size: 1.05rem;
}

.project-side-card dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.project-side-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.project-side-card dt {
    color: #8f9894;
}

.project-side-card dd {
    margin: 0;
    text-align: right;
}

.project-side-card p {
    color: #a4aca8;
    line-height: 1.5;
}

.project-side-card a {
    color: #d9ff43;
}

.project-delete-form button {
    width: 100%;
    border: 0;
    background: transparent;
    color: #f08d8d;
    padding: 10px;
}

.project-section-heading > strong {
    flex: 0 0 auto;
    color: #d9ff43;
    font-size: .82rem;
}

.project-checklist-groups {
    display: grid;
    gap: 18px;
}

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

.project-checklist-group > h3 {
    margin: 0;
    color: #aeb7b2;
    font-size: .76rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.project-checklist-items {
    display: grid;
    gap: 8px;
}

.project-checklist-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    border: 1px solid #303834;
    border-radius: 14px;
    background: #0b0f0d;
    padding: 14px;
}

.project-checklist-item.is-ready {
    border-color: #526622;
    background: rgba(217, 255, 67, .045);
}

.project-check-indicator {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #4a5550;
    border-radius: 50%;
    color: #9fa9a4;
    font-weight: 900;
}

.project-checklist-item.is-ready .project-check-indicator {
    color: #d9ff43;
    border-color: #799129;
    background: rgba(217, 255, 67, .1);
}

.project-checklist-item strong,
.project-checklist-item p,
.project-checklist-item small {
    display: block;
}

.project-checklist-item p {
    margin: 5px 0 0;
    color: #9da6a2;
    font-size: .85rem;
    line-height: 1.5;
}

.project-checklist-item a {
    display: inline-block;
    margin-top: 8px;
    color: #d9ff43;
    font-size: .78rem;
    font-weight: 750;
}

.project-checklist-item small {
    margin-top: 7px;
    color: #89928e;
}

.project-checklist-item form {
    display: flex;
    align-items: center;
    gap: 7px;
}

.project-checklist-item select {
    width: auto;
    min-width: 112px;
}

.project-checklist-item button {
    min-height: 42px;
    border: 1px solid #46514c;
    border-radius: 10px;
    background: #1b211e;
    color: #eff3f0;
    padding: 0 12px;
    font-weight: 700;
}

.project-readiness-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.project-readiness-summary span {
    border-radius: 999px;
    background: #171c19;
    color: #aeb7b2;
    padding: 8px 11px;
    font-size: .76rem;
}

.project-readiness-summary strong {
    color: #f1f5f2;
}

.project-picker-listing {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
}

.project-picker-listing h2,
.project-picker-listing p {
    margin: 3px 0 0;
}

.project-picker-listing p {
    color: #9ea7a3;
}

.project-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.project-compatibility-card {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.project-compatibility-card.state-incompatible {
    border-color: #543031;
}

.project-compatibility-card.state-verified,
.project-compatibility-card.state-exact_device {
    border-color: #526622;
}

.project-compatibility-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-compatibility-heading h2 {
    margin: 3px 0 0;
    font-size: 1rem;
}

.project-compatibility-result {
    border-radius: 13px;
    background: #090d0b;
    padding: 14px;
}

.project-compatibility-result strong,
.project-compatibility-result p,
.project-compatibility-result span {
    display: block;
}

.project-compatibility-result p {
    margin: 5px 0;
    color: #a5adaa;
    line-height: 1.45;
}

.project-compatibility-result span {
    color: #d9ff43;
    font-size: .72rem;
}

.project-compatibility-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-compatibility-actions > a,
.project-picker-new {
    color: #c9d0cc;
}

.project-picker-new {
    display: block;
    margin-top: 20px;
    text-align: center;
}

.repair-intelligence-box,
.checkout-repair-intelligence {
    margin-top: 15px;
    border: 1px solid #3b463f;
    border-radius: 15px;
    background: #0c110e;
    padding: 16px;
}

.repair-intelligence-box h3,
.checkout-repair-intelligence h3 {
    margin: 0 0 7px;
}

.repair-intelligence-box p,
.checkout-repair-intelligence p {
    margin: 0;
    color: #a8b0ac;
    line-height: 1.5;
}

.repair-project-match-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.repair-project-match-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-radius: 10px;
    background: #171c19;
    padding: 10px 12px;
}

.repair-project-match-list span {
    color: #d9ff43;
    font-size: .75rem;
    font-weight: 700;
}

.checkout-warning-ack {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 0;
    border: 1px solid #5b4827;
    border-radius: 12px;
    background: rgba(255, 184, 77, .08);
    padding: 13px;
}

.checkout-warning-ack input {
    margin-top: 3px;
}

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

    .project-detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-detail-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .project-shell,
    .project-form-page,
    .project-picker-page {
        padding-top: 18px;
        padding-bottom: 110px;
    }

    .project-page-header,
    .project-detail-header,
    .project-form-header {
        flex-direction: column;
        gap: 16px;
    }

    .project-page-header .button {
        width: 100%;
        text-align: center;
    }

    .project-summary-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-grid,
    .project-picker-grid,
    .project-detail-side,
    .project-compatible-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-detail-device .project-device-mark {
        width: 52px;
        height: 52px;
    }

    .project-detail-actions {
        width: 100%;
        justify-content: space-between;
    }

    .project-detail-actions form {
        min-width: 0;
        flex: 1;
    }

    .project-detail-actions select {
        min-width: 0;
        flex: 1;
    }

    .project-plan-section {
        padding: 16px;
    }

    .project-section-heading,
    .project-plan-item-head,
    .project-guide-options form,
    .project-compatibility-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .project-section-heading > a {
        align-self: flex-start;
    }

    .project-plan-item-head form {
        width: 100%;
    }

    .project-plan-item-head select {
        min-width: 0;
        flex: 1;
    }

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

    .project-checklist-item form {
        grid-column: 1 / -1;
        width: 100%;
        padding-left: 44px;
    }

    .project-checklist-item select {
        min-width: 0;
        flex: 1;
    }

    .project-mini-listings {
        grid-template-columns: minmax(0, 1fr);
    }

    .project-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .project-form-actions .button {
        width: 100%;
    }

    .project-picker-listing {
        align-items: flex-start;
    }
}
