:root {
    --mc-bg: #0d1117;
    --mc-panel: #161b22;
    --mc-panel-2: #1c222b;
    --mc-border: #30363d;
    --mc-border-soft: #242b34;
    --mc-text: #f0f6fc;
    --mc-muted: #8b949e;
    --mc-green: #4caf50;
    --mc-green-bright: #67d46d;
    --mc-green-dark: #238636;
    --mc-green-soft: rgba(76, 175, 80, .12);
    --mc-blue: #58a6ff;
    --mc-yellow: #e3b341;
    --mc-red: #f85149;
    --mc-radius: 16px;
    --mc-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}


body {
    background: radial-gradient(circle at 20% 0%, rgba(46, 160, 67, .08), transparent 30%), radial-gradient(circle at 80% 20%, rgba(88, 166, 255, .06), transparent 25%), var(--mc-bg);
    color: var(--mc-text);
}


.mc-page {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 32px 24px 70px;
}


.mc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}


    .mc-header h1 {
        margin: 3px 0 6px;
        font-size: clamp(2rem, 4vw, 3.2rem);
        font-weight: 800;
        letter-spacing: -1.5px;
    }


    .mc-header p {
        color: var(--mc-muted);
        margin: 0;
        font-size: 1.03rem;
    }


.mc-eyebrow {
    color: var(--mc-green-bright);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 2px;
}


.mc-header-icon {
    width: 88px;
    height: 88px;
    min-width: 88px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(76, 175, 80, .35);
    border-radius: 22px;
    background: linear-gradient( 145deg, rgba(76, 175, 80, .18), rgba(76, 175, 80, .03));
    box-shadow: 0 0 50px rgba(76, 175, 80, .13);
    font-size: 2.6rem;
}


.mc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, .75fr);
    gap: 22px;
    align-items: start;
}


.mc-right-column {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


.mc-panel {
    overflow: hidden;
    background: linear-gradient( 145deg, rgba(255,255,255,.015), transparent), var(--mc-panel);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
    box-shadow: var(--mc-shadow);
}



.mc-panel-header {
    min-height: 68px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--mc-border-soft);
}


    .mc-panel-header > div:first-child {
        display: flex;
        align-items: center;
        gap: 11px;
    }


.mc-panel-title {
    font-weight: 700;
    font-size: 1.05rem;
}


.mc-step {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: var(--mc-green-dark);
    font-size: .85rem;
    font-weight: 800;
}


    .mc-step.completed {
        background: var(--mc-green-dark);
    }


.mc-count {
    color: var(--mc-muted);
    font-size: .8rem;
}


.mc-search-wrapper {
    position: relative;
    margin: 20px;
}


.mc-search {
    width: 100%;
    height: 52px;
    padding: 0 46px 0 48px;
    color: var(--mc-text);
    background: #0d1117;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}


    .mc-search:focus {
        border-color: var(--mc-green);
        box-shadow: 0 0 0 3px rgba(76, 175, 80, .12);
    }


    .mc-search::placeholder {
        color: #66707c;
    }


.mc-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}


.mc-search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 7px;
    color: var(--mc-muted);
    background: transparent;
    font-size: 1.3rem;
}


    .mc-search-clear:hover {
        color: #fff;
        background: #252c35;
    }


/* ============================================================
   ITEM TYPE / CATEGORY FILTERS
   ============================================================ */
.mc-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 20px 18px;
    overflow: visible;
    flex: 0 0 auto;
    min-height: 44px;
}


.mc-category {
    flex: 0 0 auto;
    padding: 8px 14px;
    white-space: nowrap;
    color: #c4ccd5;
    background: #11161c;
    border: 1px solid var(--mc-border);
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.2;
}


    .mc-category:hover {
        color: #ffffff;
        border-color: #53606c;
        background: #1a2028;
    }


    .mc-category.active {
        color: #e6ffe8;
        background: var(--mc-green-soft);
        border-color: rgba(76, 175, 80, .65);
    }

.mc-item {
    position: relative;
    min-height: 155px;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--mc-text);
    text-align: center;
    background: linear-gradient( 145deg, #1b2129, #14191f);
    border: 1px solid var(--mc-border);
    border-radius: 13px;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}


    .mc-item:hover {
        transform: translateY(-3px);
        border-color: #53606c;
        background: linear-gradient( 145deg, #222a33, #181e25);
        box-shadow: 0 10px 25px rgba(0,0,0,.25);
    }


    .mc-item.selected {
        border-color: var(--mc-green);
        background: linear-gradient( 145deg, rgba(76,175,80,.16), rgba(76,175,80,.04));
        box-shadow: 0 0 0 1px rgba(76,175,80,.12), 0 10px 30px rgba(0,0,0,.25);
    }


.mc-item-icon {
    min-height: 52px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    font-size: 2.2rem;
}


.mc-item-name {
    font-size: .86rem;
    font-weight: 700;
}


.mc-item-category {
    margin-top: 3px;
    color: var(--mc-muted);
    font-size: .68rem;
}


.mc-selected-check {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--mc-green-dark);
    border-radius: 50%;
    font-size: .65rem;
    font-weight: 900;
}


.mc-no-results {
    grid-column: 1 / -1;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--mc-muted);
}


    .mc-no-results strong {
        margin-top: 8px;
        color: var(--mc-text);
    }


.mc-no-results-icon {
    font-size: 2.3rem;
}


.mc-selected-product {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 22px 22px 12px;
}


.mc-selected-product-icon {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    background: linear-gradient( 145deg, rgba(76,175,80,.16), rgba(76,175,80,.03));
    border: 1px solid rgba(76,175,80,.25);
    border-radius: 15px;
    font-size: 2.2rem;
}


.mc-selected-product h2 {
    margin: 2px 0 1px;
    font-size: 1.25rem;
    font-weight: 800;
}


.mc-small-label {
    color: var(--mc-green-bright);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: 1.3px;
}


.mc-category-label {
    color: var(--mc-muted);
    font-size: .78rem;
}


.mc-quantity-title {
    margin: 18px 22px 10px;
    color: var(--mc-muted);
    font-size: .78rem;
    font-weight: 700;
}


.mc-quantity-control {
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    gap: 8px;
    margin: 0 22px;
}


.mc-quantity-button {
    height: 54px;
    color: var(--mc-text);
    background: #202730;
    border: 1px solid var(--mc-border);
    border-radius: 11px;
    font-size: 1.5rem;
    font-weight: 500;
}


    .mc-quantity-button:hover {
        background: #29313b;
        border-color: #4e5965;
    }


.mc-quantity-input {
    width: 100%;
    color: #fff;
    text-align: center;
    background: #0d1117;
    border: 1px solid var(--mc-border);
    border-radius: 11px;
    outline: none;
    font-size: 1.3rem;
    font-weight: 800;
}


    .mc-quantity-input:focus {
        border-color: var(--mc-green);
        box-shadow: 0 0 0 3px rgba(76,175,80,.1);
    }


.mc-quick-quantities {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin: 10px 22px 20px;
}


    .mc-quick-quantities button {
        padding: 6px 2px;
        color: var(--mc-muted);
        background: transparent;
        border: 1px solid var(--mc-border);
        border-radius: 7px;
        font-size: .7rem;
    }


        .mc-quick-quantities button:hover {
            color: var(--mc-green-bright);
            border-color: rgba(76,175,80,.5);
            background: var(--mc-green-soft);
        }


.mc-calculate-button {
    width: calc(100% - 44px);
    height: 52px;
    margin: 0 22px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: linear-gradient( 135deg, #2ea043, #238636);
    border: 1px solid #3bb951;
    border-radius: 11px;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(46,160,67,.16);
}


    .mc-calculate-button:hover {
        filter: brightness(1.08);
        transform: translateY(-1px);
    }


    .mc-calculate-button:disabled {
        opacity: .5;
        cursor: not-allowed;
    }


.mc-empty-selection {
    min-height: 290px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--mc-muted);
}


    .mc-empty-selection strong {
        margin: 5px 0;
        color: var(--mc-text);
    }


.mc-empty-icon {
    font-size: 2rem;
}


.mc-result-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 18px 18px 4px;
}


.mc-summary-card {
    min-height: 100px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    background: #11161c;
    border: 1px solid var(--mc-border-soft);
    border-radius: 11px;
}


    .mc-summary-card strong {
        margin: 1px 0;
        color: var(--mc-text);
        font-size: 1.6rem;
        line-height: 1.2;
    }


    .mc-summary-card > span:last-child {
        color: var(--mc-muted);
        font-size: .7rem;
    }


.mc-summary-label {
    color: var(--mc-green-bright);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: 1px;
}


.mc-summary-card.extra strong {
    color: var(--mc-yellow);
}


.mc-material-heading {
    padding: 22px 20px 12px;
}


    .mc-material-heading > div {
        display: flex;
        align-items: center;
        gap: 10px;
    }


    .mc-material-heading h3 {
        margin: 0;
        font-size: .95rem;
    }


    .mc-material-heading p {
        margin: 1px 0 0;
        color: var(--mc-muted);
        font-size: .7rem;
    }


.mc-material-heading-icon {
    font-size: 1.25rem;
}


.mc-material-list {
    margin: 0 18px 18px;
    overflow: hidden;
    border: 1px solid var(--mc-border-soft);
    border-radius: 12px;
}


.mc-material-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 14px;
    background: #11161c;
    border-bottom: 1px solid var(--mc-border-soft);
}


    .mc-material-row:last-child {
        border-bottom: 0;
    }


.mc-material-left {
    display: flex;
    align-items: center;
    gap: 11px;
}


    .mc-material-left > div:last-child {
        display: flex;
        flex-direction: column;
    }


    .mc-material-left strong {
        font-size: .82rem;
    }


    .mc-material-left span {
        color: var(--mc-muted);
        font-size: .65rem;
    }


.mc-material-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: #202730;
    border: 1px solid var(--mc-border);
    border-radius: 9px;
    font-size: 1.3rem;
}


.mc-material-quantity {
    min-width: 100px;
    display: flex;
    flex-direction: column;
    text-align: right;
}


    .mc-material-quantity strong {
        color: var(--mc-green-bright);
        font-size: 1.08rem;
    }


    .mc-material-quantity span {
        color: var(--mc-muted);
        font-size: .67rem;
    }


.mc-extra-notice {
    display: flex;
    gap: 11px;
    margin: 0 18px 18px;
    padding: 13px;
    color: #d8c889;
    background: rgba(227,179,65,.08);
    border: 1px solid rgba(227,179,65,.22);
    border-radius: 10px;
}


    .mc-extra-notice > div {
        display: flex;
        flex-direction: column;
    }


    .mc-extra-notice strong {
        font-size: .75rem;
    }


    .mc-extra-notice span {
        margin-top: 2px;
        color: #a99e72;
        font-size: .68rem;
        line-height: 1.5;
    }


.mc-extra-icon {
    font-size: 1rem;
}


.mc-loading {
    padding: 60px;
    color: var(--mc-muted);
    text-align: center;
}

@media (max-width: 1050px) {

    .mc-layout {
        grid-template-columns: 1fr;
    }

    .mc-selector-panel {
        min-height: 0;
    }
}


@media (max-width: 600px) {

    .mc-page {
        padding: 22px 12px 50px;
    }

    .mc-header-icon {
        display: none;
    }

    .mc-item-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mc-result-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .mc-quick-quantities {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   ADD TO BUILD LIST
   Secondary action beneath Calculate Materials
   ============================================================ */

    .mc-build-add-button:hover {
        color: #ffffff;
        background: linear-gradient( 145deg, rgba(76, 175, 80, .16), rgba(76, 175, 80, .04) ), #1a222a;
        border-color: rgba(103, 212, 109, .65);
        box-shadow: 0 7px 20px rgba(0, 0, 0, .22), 0 0 0 1px rgba(76, 175, 80, .06);
        transform: translateY(-1px);
    }


    .mc-build-add-button:active {
        transform: translateY(0);
    }


    .mc-build-add-button:focus-visible {
        outline: none;
        border-color: var(--mc-green-bright);
        box-shadow: 0 0 0 3px rgba(76, 175, 80, .14);
    }


    .mc-build-add-button:disabled {
        opacity: .42;
        cursor: not-allowed;
        transform: none;
    }


/* Plus icon */

.mc-build-add-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mc-green-bright);
    background: rgba(76, 175, 80, .11);
    border: 1px solid rgba(76, 175, 80, .28);
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: background .18s ease, border-color .18s ease;
}


.mc-build-add-button:hover .mc-build-add-icon {
    background: rgba(76, 175, 80, .18);
    border-color: rgba(103, 212, 109, .48);
}


/* Text */

.mc-build-add-text {
    text-align: left;
    letter-spacing: .1px;
}


/* Right-side arrow */

.mc-build-add-arrow {
    color: #697580;
    font-size: 1rem;
    text-align: right;
    transition: color .18s ease, transform .18s ease;
}


.mc-build-add-button:hover .mc-build-add-arrow {
    color: var(--mc-green-bright);
    transform: translateX(2px);
}

/* ============================================================
   SECTION DIVIDER
   ============================================================ */

.mc-section-divider {
    height: 1px;
    margin: 12px 22px 0;
    background: var(--mc-border-soft);
}


/* ============================================================
   BUILD LIST
   ============================================================ */

.mc-build-section,
.mc-build-results {
    margin-top: 28px;
    overflow: hidden;
    background: linear-gradient( 145deg, rgba(255,255,255,.015), transparent), var(--mc-panel);
    border: 1px solid var(--mc-border);
    border-radius: 18px;
    box-shadow: var(--mc-shadow);
}


.mc-build-header {
    min-height: 84px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid var(--mc-border-soft);
}


.mc-build-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}


.mc-build-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    background: rgba(76, 175, 80, .12);
    border: 1px solid rgba(76, 175, 80, .3);
    border-radius: 12px;
    font-size: 1.45rem;
}


.mc-build-header h2,
.mc-build-results-header h2 {
    margin: 0;
    color: var(--mc-text);
    font-size: 1.18rem;
    font-weight: 800;
}


.mc-build-header p,
.mc-build-results-header p {
    margin: 3px 0 0;
    color: var(--mc-muted);
    font-size: .74rem;
}

.mc-saved-builds {
    margin-top: 18px;
    padding: 18px 22px;
    background: linear-gradient(145deg, rgba(103, 212, 109, .055), transparent 65%), var(--mc-panel);
    border: 1px solid var(--mc-border);
    border-radius: 16px;
    box-shadow: var(--mc-shadow);
}

.mc-saved-builds-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.mc-saved-builds-heading h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.mc-saved-builds-heading p,
.mc-saved-hint {
    margin: 4px 0 0;
    color: var(--mc-muted);
    font-size: .77rem;
    line-height: 1.45;
}

.mc-save-status {
    padding: 4px 8px;
    color: #cbd8e5;
    background: rgba(88, 166, 255, .08);
    border: 1px solid rgba(88, 166, 255, .25);
    border-radius: 7px;
    font-size: .7rem;
    font-weight: 700;
}

.mc-saved-builds-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.mc-saved-build-control label {
    display: block;
    margin-bottom: 6px;
    color: #c6d1dc;
    font-size: .76rem;
    font-weight: 700;
}

.mc-saved-build-inputs {
    display: flex;
    gap: 7px;
    min-width: 0;
}

.mc-saved-build-inputs input,
.mc-saved-build-inputs select {
    flex: 1 1 150px;
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    color: var(--mc-text);
    background: #0d1117;
    border: 1px solid #394550;
    border-radius: 8px;
    font-size: .8rem;
}

.mc-saved-build-inputs button {
    flex: 0 0 auto;
    padding: 0 11px;
    color: var(--mc-green-bright);
    background: rgba(76, 175, 80, .1);
    border: 1px solid rgba(76, 175, 80, .4);
    border-radius: 8px;
    font-size: .76rem;
    font-weight: 750;
}

.mc-saved-build-inputs button:hover:not(:disabled) {
    color: #fff;
    background: rgba(76, 175, 80, .24);
}

.mc-saved-build-inputs .mc-saved-delete {
    color: #ef9a9a;
    background: rgba(248, 81, 73, .07);
    border-color: rgba(248, 81, 73, .28);
}

.mc-saved-build-inputs .mc-saved-delete:hover:not(:disabled) {
    background: rgba(248, 81, 73, .2);
}

.mc-saved-build-inputs :is(input, select, button):focus-visible {
    outline: 2px solid var(--mc-green-bright);
    outline-offset: 2px;
}

.mc-saved-build-inputs :disabled {
    opacity: .45;
    cursor: not-allowed;
}

.mc-saved-hint {
    margin-top: 13px;
}

/* Pasted materials are reviewed before they change the Build List. */
.mc-import-panel {
    margin-top: 22px;
    overflow: hidden;
    color: var(--mc-text);
    background: var(--mc-panel);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
    box-shadow: var(--mc-shadow);
}

.mc-import-panel summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
}

.mc-import-panel summary::-webkit-details-marker {
    display: none;
}

.mc-import-panel summary:focus-visible,
.mc-import-panel button:focus-visible,
.mc-import-panel textarea:focus-visible {
    outline: 2px solid var(--mc-green-bright);
    outline-offset: 2px;
}

.mc-import-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 800;
}

.mc-import-hint {
    color: var(--mc-muted);
    font-size: .8rem;
}

.mc-import-content {
    padding: 20px;
    border-top: 1px solid var(--mc-border-soft);
}

.mc-import-content label {
    display: block;
    margin-bottom: 8px;
    font-size: .85rem;
    font-weight: 700;
}

.mc-import-content textarea {
    display: block;
    width: 100%;
    min-height: 140px;
    padding: 12px;
    color: var(--mc-text);
    background: #0d1117;
    border: 1px solid var(--mc-border);
    border-radius: 10px;
    resize: vertical;
    font: inherit;
    line-height: 1.5;
}

.mc-import-content textarea::placeholder {
    color: #82909e;
}

.mc-import-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

.mc-import-actions p,
.mc-import-preview > p {
    margin: 0;
    color: var(--mc-muted);
    font-size: .8rem;
}

.mc-import-button-group {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.mc-import-actions button,
.mc-import-commit {
    flex: 0 0 auto;
    padding: 10px 15px;
    color: #e6ffe8;
    background: var(--mc-green-soft);
    border: 1px solid rgba(76, 175, 80, .65);
    border-radius: 9px;
    font-weight: 700;
}

.mc-import-actions button:hover:not(:disabled),
.mc-import-commit:hover:not(:disabled) {
    background: rgba(76, 175, 80, .25);
}

.mc-import-actions .mc-import-clear {
    color: var(--mc-text);
    background: var(--mc-panel-2);
    border-color: var(--mc-border);
}

.mc-import-actions .mc-import-clear:hover:not(:disabled) {
    background: #313b46;
}

.mc-import-panel button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.mc-import-preview {
    margin-top: 18px;
    padding: 16px;
    background: #11161c;
    border: 1px solid var(--mc-border-soft);
    border-radius: 10px;
}

.mc-import-preview h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

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

.mc-import-match {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    background: var(--mc-panel-2);
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    font-size: .84rem;
}

.mc-import-match img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    image-rendering: pixelated;
}

.mc-import-match span {
    flex: 1;
    min-width: 0;
}

.mc-import-match strong {
    white-space: nowrap;
}

.mc-import-substitutions {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 14px;
    padding: 12px;
    color: #cae7ff;
    background: rgba(93, 169, 226, .08);
    border: 1px solid rgba(93, 169, 226, .3);
    border-radius: 8px;
    font-size: .8rem;
}

.mc-import-substitutions p {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

.mc-import-issues {
    max-height: 220px;
    overflow-y: auto;
    margin-top: 14px;
    padding: 12px;
    color: #ffd1a5;
    background: rgba(227, 179, 65, .07);
    border: 1px solid rgba(227, 179, 65, .3);
    border-radius: 8px;
    font-size: .8rem;
}

.mc-import-issues p {
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

.mc-import-error {
    margin: 14px 0 0;
    color: #ffb5ae;
    font-size: .82rem;
}

.mc-import-commit {
    margin-top: 16px;
}

@media (max-width: 600px) {
    .mc-import-panel summary,
    .mc-import-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .mc-import-matches {
        grid-template-columns: 1fr;
    }

    .mc-import-button-group,
    .mc-import-commit {
        width: 100%;
    }

    .mc-import-button-group button {
        flex: 1 1 0;
    }
}

@media (max-width: 900px) {
    .mc-saved-builds-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 440px) {
    .mc-saved-builds {
        padding: 16px;
    }

    .mc-saved-build-inputs {
        flex-wrap: wrap;
    }

    .mc-saved-build-inputs input,
    .mc-saved-build-inputs select {
        flex-basis: 100%;
    }
}


.mc-clear-build {
    padding: 8px 13px;
    color: #ef9a9a;
    background: rgba(248,81,73,.07);
    border: 1px solid rgba(248,81,73,.25);
    border-radius: 9px;
    font-size: .74rem;
    font-weight: 700;
}


    .mc-clear-build:hover {
        color: #fff;
        background: rgba(248,81,73,.18);
    }


.mc-build-items {
    padding: 18px 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}


.mc-build-item {
    min-height: 76px;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 14px;
    background: #11161c;
    border: 1px solid var(--mc-border-soft);
    border-radius: 12px;
}


.mc-build-item-info {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}


.mc-build-item-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    background: #202730;
    border: 1px solid var(--mc-border);
    border-radius: 9px;
    font-size: 1.3rem;
}


.mc-build-item-info > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}


.mc-build-item-info strong {
    color: var(--mc-text);
    font-size: .83rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.mc-build-item-info span {
    color: var(--mc-muted);
    font-size: .67rem;
}


.mc-build-item-controls {
    display: grid;
    grid-template-columns: 32px 72px 32px;
    gap: 5px;
}


    .mc-build-item-controls button,
    .mc-build-item-controls input {
        height: 34px;
        color: var(--mc-text);
        background: #0d1117;
        border: 1px solid var(--mc-border);
        border-radius: 7px;
    }


        .mc-build-item-controls button:hover {
            border-color: var(--mc-green);
        }


    .mc-build-item-controls input {
        width: 72px;
        text-align: center;
        outline: none;
        font-size: .78rem;
        font-weight: 700;
    }


.mc-remove-build-item {
    width: 34px;
    height: 34px;
    padding: 0;
    color: var(--mc-muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 1.25rem;
}


    .mc-remove-build-item:hover {
        color: #ff7770;
        background: rgba(248,81,73,.08);
        border-color: rgba(248,81,73,.2);
    }


.mc-build-footer {
    padding: 17px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(0,0,0,.12);
    border-top: 1px solid var(--mc-border-soft);
}


.mc-build-count {
    display: flex;
    flex-direction: column;
}


    .mc-build-count span {
        color: var(--mc-muted);
        font-size: .68rem;
    }


    .mc-build-count strong {
        color: var(--mc-text);
        font-size: .83rem;
    }


.mc-build-calculate {
    min-width: 230px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff;
    background: linear-gradient( 135deg, #2ea043, #238636);
    border: 1px solid #3bb951;
    border-radius: 10px;
    font-weight: 800;
}


/* ============================================================
   BUILD RESULTS
   ============================================================ */

.mc-build-results-header {
    min-height: 80px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--mc-border-soft);
}


    .mc-build-results-header > div {
        display: flex;
        align-items: center;
        gap: 12px;
    }


.mc-build-results-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--mc-green-dark);
    border-radius: 9px;
    font-weight: 900;
}


.mc-build-summary {
    padding: 20px 22px 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}


.mc-build-summary-card {
    min-height: 105px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #11161c;
    border: 1px solid var(--mc-border-soft);
    border-radius: 12px;
}


    .mc-build-summary-card > span {
        color: var(--mc-green-bright);
        font-size: .61rem;
        font-weight: 800;
        letter-spacing: 1px;
    }


    .mc-build-summary-card strong {
        margin: 2px 0;
        color: #fff;
        font-size: 1.65rem;
    }


    .mc-build-summary-card small {
        color: var(--mc-muted);
        font-size: .68rem;
    }


.mc-build-results-grid {
    padding: 14px 22px 24px;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 18px;
}


.mc-build-result-panel {
    overflow: hidden;
    background: #10151b;
    border: 1px solid var(--mc-border-soft);
    border-radius: 13px;
}


.mc-build-subheading {
    padding: 14px 16px;
    border-bottom: 1px solid var(--mc-border-soft);
}


    .mc-build-subheading > div {
        display: flex;
        align-items: center;
        gap: 10px;
    }


    .mc-build-subheading h3 {
        margin: 0;
        color: var(--mc-text);
        font-size: .9rem;
    }


    .mc-build-subheading p {
        margin: 2px 0 0;
        color: var(--mc-muted);
        font-size: .66rem;
    }


/* ============================================================
   RAW MATERIALS
   ============================================================ */

.mc-build-materials {
    padding: 9px;
}


.mc-build-material {
    min-height: 65px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--mc-border-soft);
}


    .mc-build-material:last-child {
        border-bottom: 0;
    }


.mc-build-material-info {
    display: flex;
    align-items: center;
    gap: 10px;
}


    .mc-build-material-info > div:last-child {
        display: flex;
        flex-direction: column;
    }


    .mc-build-material-info strong {
        color: var(--mc-text);
        font-size: .8rem;
    }


    .mc-build-material-info span {
        color: var(--mc-muted);
        font-size: .66rem;
    }


.mc-build-material-number {
    color: var(--mc-green-bright);
    font-size: 1rem;
    font-weight: 800;
}


/* ============================================================
   CRAFTING PLAN
   ============================================================ */

.mc-crafting-plan {
    padding: 9px;
}


.mc-crafting-step {
    min-height: 72px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--mc-border-soft);
}


    .mc-crafting-step:last-child {
        border-bottom: 0;
    }


.mc-crafting-step-main {
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 10px;
}


    .mc-crafting-step-main > div:last-child {
        display: flex;
        flex-direction: column;
    }


    .mc-crafting-step-main strong {
        color: var(--mc-text);
        font-size: .78rem;
    }


    .mc-crafting-step-main span {
        color: var(--mc-muted);
        font-size: .64rem;
    }


.mc-crafting-step-icon {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    display: grid;
    place-items: center;
    background: #202730;
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    font-size: 1.1rem;
}


.mc-crafting-step-stats {
    display: grid;
    grid-template-columns: repeat(3, 70px);
    gap: 7px;
}


    .mc-crafting-step-stats > div {
        display: flex;
        flex-direction: column;
        text-align: right;
    }


    .mc-crafting-step-stats span {
        color: var(--mc-muted);
        font-size: .52rem;
        font-weight: 700;
        letter-spacing: .6px;
    }


    .mc-crafting-step-stats strong {
        color: var(--mc-text);
        font-size: .82rem;
    }


.mc-crafting-extra strong {
    color: var(--mc-yellow);
}


/* ============================================================
   BUILD RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {

    .mc-build-results-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 850px) {

    .mc-build-items {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .mc-build-header,
    .mc-build-footer {
        align-items: stretch;
        flex-direction: column;
    }


    .mc-build-calculate {
        width: 100%;
    }


    .mc-build-summary {
        grid-template-columns: 1fr;
    }


    .mc-build-item {
        grid-template-columns: 1fr auto;
    }


    .mc-build-item-controls {
        grid-column: 1 / -1;
        grid-template-columns: 40px 1fr 40px;
    }


        .mc-build-item-controls input {
            width: 100%;
        }


    .mc-remove-build-item {
        grid-column: 2;
        grid-row: 1;
    }


    .mc-crafting-step {
        align-items: flex-start;
        flex-direction: column;
    }


    .mc-crafting-step-stats {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================================
   INGREDIENT / MATERIAL PREFERENCES
   ============================================================ */

.mc-preferences-panel {
    margin-top: 22px;
}

.mc-preferences-body {
    padding: 20px;
}

.mc-preferences-help {
    margin: 0 0 16px;
    color: var(--mc-muted);
    font-size: .78rem;
    line-height: 1.5;
}

.mc-preferences-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mc-preference {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.mc-preference-name {
    color: var(--mc-text-soft, var(--mc-text));
    font-size: .72rem;
    font-weight: 700;
}

.mc-preference-select {
    width: 100%;
    min-height: 42px;
    padding: 0 38px 0 12px;
    color: var(--mc-text);
    background: #0d1117;
    border: 1px solid var(--mc-border);
    border-radius: 9px;
    outline: none;
}

    .mc-preference-select:focus {
        border-color: var(--mc-green);
        box-shadow: 0 0 0 3px rgba(76, 175, 80, .10);
    }

@media (max-width: 600px) {
    .mc-preferences-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   MINECRAFT ITEM IMAGE SIZING
   Keep this section at the END of the stylesheet.
   ============================================================ */


/* ------------------------------------------------------------
   Common image rules
   ------------------------------------------------------------ */

.mc-item-icon img,
.mc-selected-product-icon img,
.mc-material-icon img,
.mc-build-item-icon img,
.mc-crafting-step-icon img,
.mc-preference-icon {
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    image-rendering: pixelated;
}


/* ============================================================
   ITEM SELECTOR CARDS
   ============================================================ */

.mc-item-icon {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
    overflow: hidden !important;
}


    .mc-item-icon img {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
    }


/* ============================================================
   SELECTED ITEM / QUANTITY PANEL
   ============================================================ */

.mc-selected-product-icon {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}


    .mc-selected-product-icon img {
        width: 54px !important;
        height: 54px !important;
        max-width: 54px !important;
        max-height: 54px !important;
    }


/* ============================================================
   RECIPE / RAW MATERIAL ROWS
   ============================================================ */

.mc-material-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}


    .mc-material-icon img {
        width: 32px !important;
        height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
    }


/* ============================================================
   BUILD LIST
   ============================================================ */

.mc-build-item-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}


    .mc-build-item-icon img {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }


/* ============================================================
   CRAFTING PLAN
   ============================================================ */

.mc-crafting-step-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}


    .mc-crafting-step-icon img {
        width: 34px !important;
        height: 34px !important;
        max-width: 34px !important;
        max-height: 34px !important;
    }


/* ============================================================
   INGREDIENT PREFERENCE PANEL
   ============================================================ */

.mc-preference-icon {
    width: 38px !important;
    height: 38px !important;
    max-width: 38px !important;
    max-height: 38px !important;
    object-fit: contain !important;
    padding: 4px;
    background: #11161c;
    border: 1px solid var(--mc-border);
    border-radius: 8px;
}

.mc-item {
    overflow: hidden !important;
}

.mc-selected-product {
    overflow: hidden !important;
}

/* ============================================================
   SCROLLABLE ITEM SELECTOR
   Fill available vertical viewing area
   ============================================================ */

.mc-selector-panel {
    display: flex;
    flex-direction: column;
    /*
     * Fill the visible browser height beneath:
     *   page top padding
     *   page header
     *   header bottom margin
     *
     * 100vh is the fallback.
     * 100dvh follows the actual usable viewport as it changes.
     */
    height: calc(100vh - 180px);
    height: calc(100dvh - 180px);
    min-height: 500px;
    max-height: none;
}


    /*
 * Header, search, and category buttons remain fixed
 * inside the selector.
 */
    .mc-selector-panel > .mc-panel-header,
    .mc-selector-panel > .mc-search-wrapper,
    .mc-selector-panel > .mc-categories {
        flex: 0 0 auto;
    }


/*
 * Only the item cards consume the remaining vertical space
 * and scroll when necessary.
 */
.mc-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    grid-auto-rows: minmax(155px, auto);
    gap: 12px;

    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    align-content: start;
    scrollbar-gutter: stable;

    padding: 0 12px 20px 20px;
}


/* Firefox */
.mc-item-grid {
    scrollbar-width: thin;
    scrollbar-color: #46505b #11161c;
}


    /* Chrome / Edge */
    .mc-item-grid::-webkit-scrollbar {
        width: 10px;
    }

    .mc-item-grid::-webkit-scrollbar-track {
        background: #11161c;
        border-radius: 10px;
    }

    .mc-item-grid::-webkit-scrollbar-thumb {
        background: #46505b;
        border-radius: 10px;
        border: 2px solid #11161c;
    }

        .mc-item-grid::-webkit-scrollbar-thumb:hover {
            background: #5b6875;
        }


/* ============================================================
   TABLET / STACKED LAYOUT
   ============================================================ */

@media (max-width: 1050px) {

    .mc-selector-panel {
        /*
         * Still use most of the available screen height when the
         * left/right columns become stacked.
         */
        height: calc(100vh - 150px);
        height: calc(100dvh - 150px);
        min-height: 500px;
        max-height: none;
    }

    .mc-item-grid {
        /*
         * Important:
         * remove the previous max-height: 620px restriction.
         */
        max-height: none;
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .mc-selector-panel {
        height: calc(100vh - 125px);
        height: calc(100dvh - 125px);
        min-height: 420px;
    }

    .mc-item-grid {
        /*
         * Remove the old max-height: 70vh rule.
         * The selector itself now controls the available height.
         */
        max-height: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ============================================================
   OTHER LONG LISTS
   ============================================================ */


/* Build List */
.mc-build-items {
    max-height: 480px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}


/* Combined raw materials */
.mc-build-materials {
    max-height: 520px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}


/* Crafting plan */
.mc-crafting-plan {
    max-height: 520px;
    overflow-y: auto;
    scrollbar-gutter: stable;
}


/*
 * Single-item materials usually aren't huge,
 * but this prevents unusually complex recipes from
 * growing indefinitely.
 */
.mc-results-panel .mc-material-list {
    max-height: 420px;
    overflow-y: auto;
}

/* ============================================================
   ITEM CARD NAME / TYPE TEXT
   ============================================================ */

.mc-item-name {
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #f0f6fc !important;
    text-align: center;
}


.mc-item-category {
    margin-top: 6px !important;
    color: #c4ccd5 !important;
    font-size: .95rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: .1px;
    text-align: center;
}

.mc-search-wrapper {
    flex: 0 0 auto;
}

.mc-panel-header {
    flex: 0 0 auto;
}

/* Keep the full match count visible while rendering item cards in batches. */
.mc-item-browser-footer {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-top: 1px solid var(--mc-border-soft);
    color: var(--mc-muted);
    font-size: .8rem;
}

.mc-load-more,
.mc-mobile-change-button {
    padding: 8px 12px;
    color: #e6ffe8;
    background: var(--mc-green-soft);
    border: 1px solid rgba(76, 175, 80, .65);
    border-radius: 8px;
    font-weight: 700;
    white-space: nowrap;
}

.mc-load-more:hover,
.mc-mobile-change-button:hover {
    background: rgba(76, 175, 80, .25);
}

.mc-load-more:focus-visible,
.mc-mobile-change-button:focus-visible {
    outline: 2px solid var(--mc-green-bright);
    outline-offset: 2px;
}

.mc-mobile-selection {
    display: none;
}

.mc-action-notice {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: min(460px, calc(100vw - 24px));
    padding: 14px 16px;
    color: var(--mc-text);
    background: #202730;
    border: 1px solid rgba(103, 212, 109, .45);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
    font-size: .9rem;
    font-weight: 600;
}

.mc-action-notice button {
    flex: 0 0 auto;
    padding: 7px 11px;
    color: #e6ffe8;
    background: var(--mc-green-soft);
    border: 1px solid rgba(76, 175, 80, .65);
    border-radius: 8px;
    font-weight: 800;
}

.mc-action-notice button:hover {
    background: rgba(76, 175, 80, .25);
}

.mc-action-notice button:focus-visible {
    outline: 2px solid var(--mc-green-bright);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .mc-action-notice {
        right: 12px;
        bottom: 12px;
        left: 12px;
        justify-content: space-between;
    }

    .mc-selector-panel.mc-mobile-collapsed {
        height: auto;
        min-height: 0;
    }

    .mc-selector-panel.mc-mobile-collapsed .mc-panel-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .mc-selector-panel.mc-mobile-collapsed .mc-count,
    .mc-selector-panel.mc-mobile-collapsed .mc-search-wrapper,
    .mc-selector-panel.mc-mobile-collapsed .mc-categories,
    .mc-selector-panel.mc-mobile-collapsed .mc-item-grid,
    .mc-selector-panel.mc-mobile-collapsed .mc-item-browser-footer {
        display: none;
    }

    .mc-selector-panel.mc-mobile-collapsed .mc-mobile-selection {
        display: flex;
        flex: 1 0 100%;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: var(--mc-muted);
        font-size: .85rem;
    }

    .mc-mobile-selection strong {
        color: var(--mc-text);
    }
}

/* ============================================================
   ITEM INFORMATION TOOLTIPS
   ============================================================ */

.mc-item-tooltip .tooltip-inner,
.tooltip .tooltip-inner {
    max-width: min(360px, calc(100vw - 24px));
    padding: 12px 14px;
    color: #f0f6fc;
    background: #202730;
    border: 1px solid #3a4551;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.45;
    text-align: left;
    white-space: normal;
}

.mc-item-tooltip .mc-tooltip-heading {
    display: block;
    padding-bottom: 9px;
    margin-bottom: 9px;
    color: #ffd166;
    border-bottom: 1px solid #3a4551;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.mc-item-tooltip .mc-tooltip-details {
    color: #f0f6fc;
    white-space: pre-line;
}

.mc-item-tooltip .mc-tooltip-section {
    margin-top: 11px;
    padding-top: 9px;
    border-top: 1px solid #38424c;
}

.mc-item-tooltip .mc-tooltip-card > .mc-tooltip-section:nth-child(2) {
    margin-top: 0;
    padding-top: 2px;
    border-top: 0;
}

.mc-item-tooltip .mc-tooltip-section-label {
    margin-bottom: 6px;
    color: #91d49f;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .07em;
}

.mc-item-tooltip .mc-tooltip-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mc-item-tooltip .mc-tooltip-chip {
    padding: 3px 7px;
    color: #f0f6fc;
    background: #151d26;
    border: 1px solid #475567;
    border-radius: 6px;
    font-size: .78rem;
    line-height: 1.25;
}

.mc-item-tooltip .mc-tooltip-row {
    margin-top: 4px;
    color: #f0f6fc;
    overflow-wrap: anywhere;
}

.mc-item-tooltip .mc-tooltip-key {
    color: #aebdca;
    font-weight: 650;
}

.mc-item-tooltip .mc-tooltip-value {
    color: #f0f6fc;
}

.mc-item-tooltip .mc-tooltip-switch-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.mc-item-tooltip .mc-tooltip-state {
    min-width: 37px;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.mc-item-tooltip .mc-tooltip-state.is-on {
    color: #a6f2ac;
    background: #1b3925;
    border: 1px solid #488f5b;
}

.mc-item-tooltip .mc-tooltip-state.is-off {
    color: #d3dae1;
    background: #303943;
    border: 1px solid #697787;
}

.mc-item-tooltip .mc-tooltip-state-text {
    color: #dce5ee;
    font-size: .8rem;
}

.mc-item-tooltip .mc-tooltip-switch-note {
    margin-top: 10px;
    padding-top: 9px;
    color: #aebdca;
    border-top: 1px solid #38424c;
    font-size: .78rem;
}

.tooltip.show {
    opacity: 1;
}

.tooltip-inner {
    white-space: pre-line;
}

.mc-preference-control {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.mc-preference-recipe-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #11161c;
    border: 1px solid var(--mc-border);
    border-radius: 8px;
    font-size: 1.05rem;
}

/* ============================================================
   TOTAL MATERIALS - BIOME TOOLTIP TOGGLE
   ============================================================ */

.mc-material-heading-with-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mc-biome-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--mc-muted);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

    .mc-biome-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.mc-biome-toggle-track {
    position: relative;
    width: 38px;
    height: 20px;
    flex: 0 0 38px;
    background: #252c34;
    border: 1px solid var(--mc-border);
    border-radius: 999px;
    transition: background .18s ease, border-color .18s ease;
}

.mc-biome-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #8b949e;
    border-radius: 50%;
    transition: transform .18s ease, background .18s ease;
}

.mc-biome-toggle input:checked + .mc-biome-toggle-track {
    background: var(--mc-green-soft);
    border-color: rgba(76, 175, 80, .7);
}

    .mc-biome-toggle input:checked +
    .mc-biome-toggle-track .mc-biome-toggle-thumb {
        transform: translateX(18px);
        background: var(--mc-green-bright);
    }

.mc-biome-toggle input:focus-visible +
.mc-biome-toggle-track {
    outline: 2px solid rgba(113, 255, 160, .65);
    outline-offset: 2px;
}

.mc-biome-toggle-label {
    white-space: nowrap;
}


/* Make it obvious that a material row has hover information. */
.mc-material-row[data-mc-tooltip="true"] {
    cursor: help;
}

    .mc-material-row[data-mc-tooltip="true"]:hover {
        background: #151b22;
    }


/*
 * Your Bootstrap tooltip CSS already uses white-space: pre-line.
 * This makes the biome/location list display one line per entry.
 */
.tooltip-inner {
    white-space: pre-line;
}


@media (max-width: 600px) {
    .mc-material-heading-with-toggle {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================================
   TOTAL MATERIALS - BIOME TOOLTIP TOGGLE
   ============================================================ */

.mc-material-heading-with-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mc-biome-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--mc-muted);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

    .mc-biome-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.mc-biome-toggle-track {
    position: relative;
    width: 38px;
    height: 20px;
    flex: 0 0 38px;
    background: #252c34;
    border: 1px solid var(--mc-border);
    border-radius: 999px;
    transition: background .18s ease, border-color .18s ease;
}

.mc-biome-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #8b949e;
    border-radius: 50%;
    transition: transform .18s ease, background .18s ease;
}

.mc-biome-toggle input:checked + .mc-biome-toggle-track {
    background: var(--mc-green-soft);
    border-color: rgba(76, 175, 80, .7);
}

    .mc-biome-toggle input:checked +
    .mc-biome-toggle-track .mc-biome-toggle-thumb {
        transform: translateX(18px);
        background: var(--mc-green-bright);
    }

.mc-biome-toggle input:focus-visible +
.mc-biome-toggle-track {
    outline: 2px solid rgba(113, 255, 160, .65);
    outline-offset: 2px;
}

.mc-biome-toggle-label {
    white-space: nowrap;
}


/* Make it obvious that a material row has hover information. */
.mc-material-row[data-mc-tooltip="true"] {
    cursor: help;
}

    .mc-material-row[data-mc-tooltip="true"]:hover {
        background: #151b22;
    }


/*
 * Your Bootstrap tooltip CSS already uses white-space: pre-line.
 * This makes the biome/location list display one line per entry.
 */
.tooltip-inner {
    white-space: pre-line;
}


@media (max-width: 600px) {
    .mc-material-heading-with-toggle {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================================
   TOTAL MATERIALS - BIOME TOOLTIP TOGGLE
   ============================================================ */

.mc-material-heading-with-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mc-biome-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--mc-muted);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}

    .mc-biome-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.mc-biome-toggle-track {
    position: relative;
    width: 38px;
    height: 20px;
    flex: 0 0 38px;
    background: #252c34;
    border: 1px solid var(--mc-border);
    border-radius: 999px;
    transition: background .18s ease, border-color .18s ease;
}

.mc-biome-toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    background: #8b949e;
    border-radius: 50%;
    transition: transform .18s ease, background .18s ease;
}

.mc-biome-toggle input:checked + .mc-biome-toggle-track {
    background: var(--mc-green-soft);
    border-color: rgba(76, 175, 80, .7);
}

    .mc-biome-toggle input:checked +
    .mc-biome-toggle-track .mc-biome-toggle-thumb {
        transform: translateX(18px);
        background: var(--mc-green-bright);
    }

.mc-biome-toggle input:focus-visible +
.mc-biome-toggle-track {
    outline: 2px solid rgba(113, 255, 160, .65);
    outline-offset: 2px;
}

.mc-biome-toggle-label {
    white-space: nowrap;
}


/* Make it obvious that a material row has hover information. */
.mc-material-row[data-mc-tooltip="true"] {
    cursor: help;
}

    .mc-material-row[data-mc-tooltip="true"]:hover {
        background: #151b22;
    }


/*
 * Your Bootstrap tooltip CSS already uses white-space: pre-line.
 * This makes the biome/location list display one line per entry.
 */
.tooltip-inner {
    white-space: pre-line;
}


@media (max-width: 600px) {
    .mc-material-heading-with-toggle {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================================
   QUANTITY PANEL SECONDARY ACTION
   ============================================================ */

.mc-quantity-actions {
    padding: 0 22px 22px;
}


/* Add to Build List */

.mc-build-add-button {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    display: grid;
    grid-template-columns: 32px 1fr 24px;
    align-items: center;
    gap: 10px;
    color: #dce6ee;
    background: linear-gradient( 145deg, rgba(76, 175, 80, .08), rgba(255, 255, 255, .015) ), #171d24;
    border: 1px solid #34404a;
    border-radius: 11px;
    font-size: .84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}


    .mc-build-add-button:hover {
        color: #ffffff;
        background: linear-gradient( 145deg, rgba(76, 175, 80, .16), rgba(76, 175, 80, .04) ), #1a222a;
        border-color: rgba(103, 212, 109, .65);
        box-shadow: 0 7px 20px rgba(0, 0, 0, .22);
        transform: translateY(-1px);
    }


    .mc-build-add-button:active {
        transform: translateY(0);
    }


    .mc-build-add-button:focus-visible {
        outline: none;
        border-color: var(--mc-green-bright);
        box-shadow: 0 0 0 3px rgba(76, 175, 80, .14);
    }


/* Plus icon */

.mc-build-add-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--mc-green-bright);
    background: rgba(76, 175, 80, .11);
    border: 1px solid rgba(76, 175, 80, .28);
    border-radius: 8px;
    font-size: 1.2rem;
}


/* Button text */

.mc-build-add-text {
    text-align: left;
}


/* Right arrow */

.mc-build-add-arrow {
    color: #697580;
    text-align: right;
    transition: color .18s ease, transform .18s ease;
}


.mc-build-add-button:hover .mc-build-add-arrow {
    color: var(--mc-green-bright);
    transform: translateX(2px);
}

.mc-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--mc-green-bright);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.mc-edition {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    line-height: 1.2;
}

.mc-edition-bedrock {
    color: #fff;
    background: rgba(248, 81, 73, .14);
    border: 1px solid rgba(248, 81, 73, .65);
    box-shadow: 0 0 14px rgba(248, 81, 73, .10);
}

.mc-version-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.mc-version-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 7px 10px;
    color: #aebdca;
    background: linear-gradient(145deg, rgba(255, 255, 255, .035), transparent), #161b22;
    border: 1px solid #34404a;
    border-radius: 8px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.25;
}

.mc-version-badge strong {
    color: #f0f6fc;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .01em;
}

.mc-version-bedrock {
    border-color: rgba(103, 212, 109, .4);
}

.mc-version-bedrock::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    background: var(--mc-green-bright);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(103, 212, 109, .5);
}

.mc-version-app strong {
    color: #ffd166;
}

.mc-whats-new-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid rgba(227, 179, 65, .45);
    border-radius: 8px;
    background: rgba(227, 179, 65, .09);
    color: #ffe09a;
    font-size: .75rem;
    font-weight: 800;
    text-decoration: none;
    line-height: 1.25;
}

.mc-whats-new-link:hover,
.mc-whats-new-link:focus-visible {
    color: #fff1c7;
    border-color: #e3b341;
    background: rgba(227, 179, 65, .18);
    text-decoration: none;
}

.mc-whats-new-link:focus-visible {
    outline: 2px solid #e3b341;
    outline-offset: 2px;
}

.mc-guide-header-link {
    border-color: rgba(103, 212, 109, .45);
    background: rgba(103, 212, 109, .09);
    color: #a6edab;
}

.mc-guide-header-link:hover,
.mc-guide-header-link:focus-visible {
    border-color: var(--mc-green-bright);
    background: rgba(103, 212, 109, .18);
    color: #e1ffe3;
}

/* Build export and print controls */
.mc-report-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mc-report-button {
    padding: 8px 12px;
    color: var(--mc-green-bright);
    background: rgba(76, 175, 80, .1);
    border: 1px solid rgba(76, 175, 80, .4);
    border-radius: 9px;
    font-size: .74rem;
    font-weight: 700;
    cursor: pointer;
}

.mc-report-button:hover,
.mc-report-button:focus-visible {
    color: #fff;
    background: rgba(76, 175, 80, .25);
}

.mc-build-results-header-content,
.mc-build-subheading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mc-build-results-header-content > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mc-print-quantity {
    display: none;
}

@media (max-width: 600px) {
    .mc-build-results-header-content,
    .mc-build-subheading {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    @page { margin: 12mm; }

    body[data-mc-print],
    body[data-mc-print] .mc-page {
        background: #fff !important;
        color: #111 !important;
    }

    body[data-mc-print] .mc-page {
        max-width: none;
        padding: 0;
    }

    body[data-mc-print] .mc-page > :not(.mc-build-section):not(.mc-build-results),
    body[data-mc-print] .mc-report-actions,
    body[data-mc-print] .mc-build-calculate,
    body[data-mc-print] .mc-remove-build-item,
    body[data-mc-print] .mc-build-item-controls button,
    body[data-mc-print] .mc-build-item-controls input,
    body[data-mc-print] .tooltip {
        display: none !important;
    }

    body[data-mc-print] .mc-print-quantity {
        display: inline;
        font-weight: 700;
    }

    body[data-mc-print] .mc-build-item-controls {
        display: block;
    }

    body[data-mc-print] .mc-build-section,
    body[data-mc-print] .mc-build-results,
    body[data-mc-print] .mc-build-result-panel,
    body[data-mc-print] .mc-build-summary-card,
    body[data-mc-print] .mc-build-item {
        background: #fff !important;
        box-shadow: none !important;
        border-color: #bbb !important;
    }

    body[data-mc-print] .mc-build-section,
    body[data-mc-print] .mc-build-results,
    body[data-mc-print] .mc-build-result-panel {
        overflow: visible !important;
        break-inside: auto;
    }

    body[data-mc-print] .mc-build-section *,
    body[data-mc-print] .mc-build-results * {
        color: #111 !important;
    }

    body[data-mc-print] .mc-build-items,
    body[data-mc-print] .mc-build-results-grid {
        display: block !important;
    }

    body[data-mc-print] .mc-build-item,
    body[data-mc-print] .mc-build-result-panel {
        margin-bottom: 8px;
    }

    body[data-mc-print] .mc-build-item,
    body[data-mc-print] .mc-build-material,
    body[data-mc-print] .mc-crafting-step {
        break-inside: avoid;
    }

    body[data-mc-print="build"] .mc-build-results,
    body[data-mc-print="raw"] .mc-build-section,
    body[data-mc-print="crafting"] .mc-build-section,
    body[data-mc-print="raw"] .mc-build-results-header,
    body[data-mc-print="crafting"] .mc-build-results-header,
    body[data-mc-print="raw"] .mc-build-summary,
    body[data-mc-print="crafting"] .mc-build-summary,
    body[data-mc-print="raw"] .mc-build-result-panel:nth-child(2),
    body[data-mc-print="crafting"] .mc-build-result-panel:first-child {
        display: none !important;
    }
}
.mc-whats-new {
    max-width: 1040px;
    padding-bottom: 90px;
}

.mc-whats-new-top,
.mc-whats-new-meta,
.mc-whats-new-jump,
.mc-whats-new-section-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.mc-whats-new-top {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    color: var(--mc-green-bright);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
}

.mc-whats-new-back {
    color: #ffe09a;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.mc-whats-new-back:hover,
.mc-whats-new-back:focus-visible {
    color: #fff1c7;
    text-decoration: underline;
}

.mc-whats-new a:focus-visible {
    outline: 2px solid var(--mc-yellow);
    outline-offset: 4px;
    border-radius: 4px;
}

.mc-whats-new-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 6vw, 56px);
    border: 1px solid rgba(103, 212, 109, .34);
    border-radius: 20px;
    background: radial-gradient(circle at 90% 10%, rgba(103, 212, 109, .2), transparent 38%),
                linear-gradient(140deg, #1c2823, #161b22 65%);
    box-shadow: var(--mc-shadow);
}

.mc-whats-new-hero::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -65px;
    width: 190px;
    height: 190px;
    border: 24px solid rgba(103, 212, 109, .07);
    transform: rotate(20deg);
    pointer-events: none;
}

.mc-whats-new-eyebrow,
.mc-whats-new-kicker {
    color: var(--mc-green-bright);
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.mc-whats-new-eyebrow span {
    color: var(--mc-yellow);
    margin: 0 5px;
}

.mc-whats-new-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(2.5rem, 7vw, 4.4rem);
    font-weight: 850;
    letter-spacing: -.045em;
}

.mc-whats-new-hero p {
    max-width: 620px;
    margin: 0;
    color: #b9c5cf;
    font-size: 1.1rem;
    line-height: 1.6;
}

.mc-whats-new-meta {
    gap: 10px;
    margin-top: 30px;
}

.mc-whats-new-meta > span {
    padding: 6px 10px;
    color: #c6d1dc;
    background: rgba(13, 17, 23, .45);
    border: 1px solid #46534c;
    border-radius: 8px;
    font-size: .75rem;
}

.mc-whats-new-current strong {
    color: #ffe09a;
    margin-left: 5px;
}

.mc-whats-new-jump {
    gap: 8px;
    padding: 24px 0 4px;
}

.mc-whats-new-jump a {
    padding: 8px 13px;
    color: #c3d0dc;
    background: var(--mc-panel);
    border: 1px solid var(--mc-border);
    border-radius: 9px;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}

.mc-whats-new-jump a:hover,
.mc-whats-new-jump a:focus-visible {
    border-color: var(--mc-green-bright);
    color: var(--mc-green-bright);
}

.mc-whats-new-section {
    scroll-margin-top: 18px;
    margin-top: 42px;
}

.mc-whats-new-section-heading {
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.mc-whats-new-section h2 {
    margin: 4px 0 0;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
}

.mc-whats-new-date {
    color: var(--mc-muted);
    font-size: .82rem;
}

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

.mc-whats-new-card,
.mc-whats-new-list,
.mc-whats-new-note {
    border: 1px solid var(--mc-border);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .025), transparent), var(--mc-panel);
}

.mc-whats-new-card {
    position: relative;
    padding: 24px;
}

.mc-whats-new-card-feature {
    border-color: rgba(103, 212, 109, .4);
    background: linear-gradient(145deg, rgba(76, 175, 80, .1), transparent 65%), var(--mc-panel);
}

.mc-whats-new-icon {
    position: absolute;
    top: 18px;
    right: 22px;
    color: var(--mc-green-bright);
    font-size: 1.5rem;
}

.mc-whats-new-tag {
    color: #ffe09a;
    font-size: .69rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.mc-whats-new-card h3 {
    margin: 10px 0 8px;
    font-size: 1.15rem;
    font-weight: 800;
}

.mc-whats-new-card p,
.mc-whats-new-list p,
.mc-whats-new-note p {
    margin: 0;
    color: #b9c5cf;
    line-height: 1.6;
}

.mc-whats-new-card a {
    color: #ffe09a;
    font-weight: 800;
}

.mc-whats-new-list {
    padding: 8px 22px;
}

.mc-whats-new-list > div {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
}

.mc-whats-new-list > div + div {
    border-top: 1px solid var(--mc-border-soft);
}

.mc-whats-new-list strong {
    color: var(--mc-text);
}

.mc-whats-new-check {
    flex: 0 0 24px;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    color: var(--mc-green-bright);
    background: rgba(103, 212, 109, .12);
    font-weight: 900;
}

.mc-whats-new-note {
    padding: 22px;
    border-color: rgba(227, 179, 65, .35);
}

.mc-whats-new-note p + p {
    margin-top: 12px;
}

.mc-whats-new-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 36px;
}

@media (max-width: 640px) {
    .mc-whats-new-top > span {
        display: none;
    }

    .mc-whats-new-grid {
        grid-template-columns: 1fr;
    }

    .mc-whats-new-hero {
        padding: 28px 22px;
    }
}

/* User guide */
.mc-guide {
    max-width: 1280px;
}

.mc-guide a:focus-visible {
    outline: 2px solid var(--mc-yellow);
    outline-offset: 3px;
    border-radius: 4px;
}

.mc-guide-top,
.mc-guide-hero-actions,
.mc-guide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.mc-guide-top {
    margin-bottom: 22px;
}

.mc-guide-top a,
.mc-guide-footer a {
    color: #ffe09a;
    font-weight: 800;
    text-decoration: none;
}

.mc-guide-top a:hover,
.mc-guide-footer a:hover {
    color: #fff1c7;
    text-decoration: underline;
}

.mc-guide-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(103, 212, 109, .45);
    border-radius: 20px;
    background: radial-gradient(circle at 90% 12%, rgba(227, 179, 65, .13), transparent 35%),
                linear-gradient(140deg, #1b2921, #161b22 70%);
    box-shadow: var(--mc-shadow);
}

.mc-guide-hero::after {
    content: "";
    position: absolute;
    right: -42px;
    bottom: -52px;
    width: 168px;
    height: 168px;
    border: 22px solid rgba(103, 212, 109, .06);
    transform: rotate(24deg);
    pointer-events: none;
}

.mc-guide-eyebrow {
    color: var(--mc-green-bright);
    font-size: .73rem;
    font-weight: 900;
    letter-spacing: .16em;
}

.mc-guide-eyebrow span {
    margin: 0 4px;
    color: var(--mc-yellow);
}

.mc-guide-hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(2.5rem, 6vw, 4.3rem);
    font-weight: 850;
    letter-spacing: -.045em;
}

.mc-guide-hero p {
    max-width: 690px;
    margin: 0;
    color: #c4d0d9;
    font-size: 1.08rem;
    line-height: 1.6;
}

.mc-guide-hero-actions {
    justify-content: flex-start;
    margin-top: 26px;
    color: #b1c0c9;
    font-size: .82rem;
}

.mc-guide-primary-link {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    padding: 11px 16px;
    border-radius: 9px;
    background: var(--mc-green-dark);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.mc-guide-primary-link:hover {
    background: #319447;
    color: #fff;
}

.mc-guide-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin-top: 32px;
}

.mc-guide-sidebar {
    position: sticky;
    top: 20px;
    border: 1px solid var(--mc-border);
    border-radius: 14px;
    background: var(--mc-panel);
    padding: 18px 12px;
}

.mc-guide-sidebar nav {
    display: grid;
    gap: 2px;
}

.mc-guide-sidebar strong {
    padding: 0 10px 10px;
    color: var(--mc-green-bright);
    font-size: .7rem;
    letter-spacing: .14em;
}

.mc-guide-sidebar a {
    padding: 8px 10px;
    border-radius: 8px;
    color: #c1cdd7;
    font-size: .85rem;
    text-decoration: none;
}

.mc-guide-sidebar a:hover,
.mc-guide-sidebar a:focus-visible {
    background: rgba(103, 212, 109, .12);
    color: #b8f4bd;
}

.mc-guide-content {
    min-width: 0;
    display: grid;
    gap: 22px;
}

.mc-guide-section {
    scroll-margin-top: 18px;
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--mc-border);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .018), transparent), var(--mc-panel);
    box-shadow: var(--mc-shadow);
}

.mc-guide-heading {
    margin-bottom: 16px;
}

.mc-guide-heading > span {
    color: var(--mc-green-bright);
    font-size: .71rem;
    font-weight: 900;
    letter-spacing: .13em;
}

.mc-guide-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(1.45rem, 3vw, 1.9rem);
    font-weight: 800;
}

.mc-guide-section h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
}

.mc-guide-section p,
.mc-guide-section li {
    color: #bac7d2;
    line-height: 1.65;
}

.mc-guide-section p {
    margin: 0 0 12px;
}

.mc-guide-section p:last-child {
    margin-bottom: 0;
}

.mc-guide-section strong,
.mc-guide-section b {
    color: var(--mc-text);
}

.mc-guide-intro {
    font-size: 1.02rem;
}

.mc-guide-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    counter-reset: guide-step;
}

.mc-guide-steps li {
    position: relative;
    padding: 18px 18px 18px 55px;
    border: 1px solid var(--mc-border);
    border-radius: 12px;
    background: #1c222b;
    counter-increment: guide-step;
}

.mc-guide-steps li::before {
    content: counter(guide-step);
    position: absolute;
    left: 16px;
    top: 18px;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: var(--mc-green-dark);
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
}

.mc-guide-steps strong,
.mc-guide-steps span {
    display: block;
}

.mc-guide-callout {
    margin-top: 16px;
    padding: 14px 17px;
    border-left: 3px solid var(--mc-yellow);
    border-radius: 0 9px 9px 0;
    background: rgba(227, 179, 65, .09);
    color: #d7dce1;
    line-height: 1.6;
}

.mc-guide-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 18px;
}

.mc-guide-split > div {
    padding: 17px;
    border: 1px solid var(--mc-border);
    border-radius: 10px;
    background: #1c222b;
}

.mc-guide-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    margin: 18px 0;
}

.mc-guide-table-scroll table {
    width: 100%;
    border-collapse: collapse;
}

.mc-guide-table-scroll caption {
    caption-side: top;
    color: var(--mc-muted);
    text-align: left;
    font-size: .8rem;
}

.mc-guide-table-scroll th,
.mc-guide-table-scroll td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--mc-border);
    text-align: left;
    vertical-align: top;
}

.mc-guide-table-scroll thead th {
    color: var(--mc-green-bright);
    font-size: .8rem;
}

.mc-guide-table-scroll tbody th {
    min-width: 160px;
    color: var(--mc-text);
}

.mc-guide-table-scroll td {
    color: #bac7d2;
}

.mc-guide-bullets,
.mc-guide-numbered {
    padding-left: 22px;
    margin: 14px 0;
}

.mc-guide-bullets li,
.mc-guide-numbered li {
    padding-left: 4px;
    margin-bottom: 9px;
}

.mc-guide-bullets li::marker,
.mc-guide-numbered li::marker {
    color: var(--mc-green-bright);
    font-weight: 800;
}

.mc-guide-example {
    overflow-x: auto;
    margin: 18px 0;
    padding: 18px;
    border: 1px solid rgba(103, 212, 109, .25);
    border-radius: 10px;
    background: #0d1117;
    color: #e6f8e7;
    font-size: .9rem;
    line-height: 1.8;
}

.mc-guide-small {
    color: #aebbc6 !important;
    font-size: .89rem;
}

.mc-guide-section code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #263329;
    color: #b8f4bd;
}

.mc-guide-faq {
    display: grid;
    gap: 10px;
}

.mc-guide-faq details {
    border: 1px solid var(--mc-border);
    border-radius: 9px;
    background: #1c222b;
}

.mc-guide-faq summary {
    padding: 14px 17px;
    color: var(--mc-text);
    font-weight: 750;
    cursor: pointer;
}

.mc-guide-faq summary::marker {
    color: var(--mc-green-bright);
}

.mc-guide-faq details p {
    padding: 0 17px 15px;
    margin: 0;
}

.mc-guide-faq a {
    color: #ffe09a;
}

/* Portable build backups and recovery messages. */
.mc-backup-panel,
.mc-load-failure {
    margin-top: 20px;
    padding: 22px;
    color: var(--mc-text);
    background: linear-gradient(145deg, rgba(103, 212, 109, .07), transparent 70%), var(--mc-panel);
    border: 1px solid var(--mc-border);
    border-radius: 16px;
    box-shadow: var(--mc-shadow);
}

.mc-backup-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.mc-backup-heading h2,
.mc-backup-preview h3 {
    margin: 0;
    color: var(--mc-text);
    font-size: 1.08rem;
    font-weight: 800;
}

.mc-backup-heading p,
.mc-backup-preview p {
    margin: 5px 0 0;
    color: var(--mc-muted);
    font-size: .83rem;
    line-height: 1.5;
}

.mc-backup-heading > span {
    font-size: 1.6rem;
}

.mc-backup-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px;
    margin-top: 18px;
}

.mc-backup-controls > button,
.mc-backup-actions button,
.mc-recovery-notice button,
.mc-load-failure button,
.mc-error-actions a {
    padding: 10px 14px;
    color: #edffea;
    background: #28631b;
    border: 1px solid #65a34e;
    border-radius: 8px;
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.mc-backup-controls button:disabled,
.mc-backup-actions button:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.mc-backup-input {
    flex: 1 1 240px;
    min-width: 0;
}

.mc-backup-input label {
    display: block;
    margin-bottom: 6px;
    color: #c6d1dc;
    font-size: .77rem;
    font-weight: 700;
}

.mc-backup-input input {
    display: block;
    width: 100%;
    padding: 7px;
    color: var(--mc-text);
    background: #0d1117;
    border: 1px solid #394550;
    border-radius: 8px;
    font-size: .8rem;
}

.mc-backup-input input::file-selector-button {
    margin-right: 10px;
    padding: 5px 9px;
    color: var(--mc-text);
    background: #293438;
    border: 1px solid #526658;
    border-radius: 5px;
    cursor: pointer;
}

.mc-backup-preview {
    margin-top: 16px;
    padding: 15px;
    background: rgba(76, 175, 80, .06);
    border: 1px solid rgba(103, 212, 109, .34);
    border-radius: 10px;
}

.mc-backup-preview strong {
    overflow-wrap: anywhere;
    color: var(--mc-text);
}

.mc-backup-preview details { margin-top: 9px; color: var(--mc-text); font-size: .82rem; }
.mc-backup-preview summary { cursor: pointer; }
.mc-backup-preview ul { margin: 7px 0 0; padding-left: 22px; }

.mc-backup-actions,
.mc-error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 14px;
}

.mc-backup-actions .mc-backup-cancel {
    color: var(--mc-text);
    background: #293438;
    border-color: #526658;
}

.mc-backup-status,
.mc-backup-error {
    margin: 13px 0 0;
    font-size: .82rem;
    line-height: 1.5;
}

.mc-backup-status { color: #a9eab0; }
.mc-backup-error { color: #ffb7a9; }

.mc-recovery-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin: 12px 0;
    padding: 15px 18px;
    color: var(--mc-text);
    background: #312b24;
    border: 1px solid #a8753f;
    border-radius: 10px;
}

.mc-recovery-notice strong { color: #ffe0a6; }
.mc-recovery-notice p { margin: 4px 0 0; font-size: .86rem; }
.mc-recovery-notice button { background: #4d412f; border-color: #b08b56; }
.mc-load-failure { max-width: 680px; margin: 26px auto; }
.mc-load-failure h1,
.mc-load-failure h2 { margin: 0 0 12px; color: var(--mc-text); }
.mc-load-failure p { color: var(--mc-muted); }
.mc-error-page { min-height: 70vh; display: grid; align-items: center; }
.mc-error-kicker { color: var(--mc-green-bright); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.mc-error-reference { margin-top: 20px; font-size: .76rem; }
.mc-backup-panel :is(button, input):focus-visible,
.mc-recovery-notice button:focus-visible,
.mc-load-failure :is(button, a):focus-visible {
    outline: 2px solid var(--mc-green-bright);
    outline-offset: 2px;
}

/* Inline material details remain available without hover. */
.mc-material-row,
.mc-build-material {
    flex-wrap: wrap;
    gap: 10px;
}

.mc-material-left,
.mc-build-material-info { flex: 1 1 130px; min-width: 0; }
.mc-material-quantity { min-width: 65px; }

.mc-material-info-button {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #ffe09a;
    background: #26303a;
    border: 1px solid #69798a;
    border-radius: 50%;
    font-size: .84rem;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
}

.mc-material-info-button:hover,
.mc-material-info-button[aria-expanded="true"] {
    color: #11161c;
    background: #ffd166;
    border-color: #ffd166;
}

.mc-material-info-button:focus-visible,
.mc-material-details-panel button:focus-visible,
.mc-step-ingredients summary:focus-visible {
    outline: 2px solid #ffd166;
    outline-offset: 3px;
}

.mc-material-details-panel {
    flex: 0 0 100%;
    min-width: 0;
    padding: 14px;
    color: var(--mc-text);
    background: #1c242c;
    border: 1px solid #526658;
    border-radius: 10px;
    text-align: left;
}

.mc-material-details-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #43515c;
}

.mc-material-details-heading h4 { margin: 0; color: #ffd166; font-size: .93rem; }
.mc-material-details-heading button {
    padding: 5px 9px;
    color: var(--mc-text);
    background: #303b45;
    border: 1px solid #617181;
    border-radius: 6px;
    font-size: .7rem;
    cursor: pointer;
}

.mc-material-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 14px;
    padding-top: 12px;
}

.mc-material-details-grid h5 {
    margin: 0 0 6px;
    color: #a5e6ae;
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.mc-material-details-grid p,
.mc-material-details-grid ul {
    margin: 0 0 4px;
    padding: 0;
    color: #dee8ed;
    font-size: .77rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.mc-material-details-grid ul { padding-left: 17px; }
.mc-material-details-grid strong { color: #b6c8d1; }

/* Native details keeps crafting ingredients usable with touch and keyboard. */
.mc-crafting-step { display: block; }
.mc-crafting-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.mc-step-ingredients { margin: 9px 0 0 49px; color: var(--mc-text); }
.mc-step-ingredients summary {
    width: fit-content;
    color: #ffe09a;
    font-size: .72rem;
    font-weight: 750;
    cursor: pointer;
}

.mc-step-ingredients summary span { padding-left: 4px; }
.mc-step-ingredients[open] summary span { display: inline-block; transform: rotate(180deg); }
.mc-step-ingredients ul {
    margin: 9px 0 0;
    padding: 9px 12px;
    list-style: none;
    background: #1b242a;
    border: 1px solid #35453f;
    border-radius: 8px;
}

.mc-step-ingredients li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 0;
    font-size: .76rem;
}

.mc-step-ingredients li + li { border-top: 1px solid #33413f; }
.mc-step-ingredients li strong { flex: 0 0 auto; color: #a5e6ae; }
.mc-step-ingredients p { margin: 8px 0 0; color: var(--mc-muted); font-size: .72rem; }

@media (max-width: 1050px) {
    .mc-crafting-step-header { align-items: flex-start; flex-direction: column; }
    .mc-step-ingredients { margin-left: 0; }
}

@media (max-width: 480px) {
    .mc-material-row,
    .mc-build-material { gap: 8px; }
    .mc-material-left,
    .mc-build-material-info { flex-basis: 100%; }
}

@media print {
    body[data-mc-print] .mc-material-info-button,
    body[data-mc-print] .mc-material-details-panel,
    body[data-mc-print] .mc-step-ingredients summary { display: none !important; }

    body[data-mc-print] .mc-crafting-plan,
    body[data-mc-print] .mc-build-materials,
    body[data-mc-print] .mc-build-items { max-height: none !important; overflow: visible !important; }

    body[data-mc-print] .mc-step-ingredients > ul,
    body[data-mc-print] .mc-step-ingredients > p { display: block !important; }

    body[data-mc-print] .mc-step-ingredients {
        margin: 7px 0 0 49px;
        color: #111 !important;
    }

    body[data-mc-print] .mc-step-ingredients ul { padding: 0; background: #fff; border: 0; }
    body[data-mc-print] .mc-step-ingredients li { color: #111 !important; }
}

/* On phones, one category picker leaves space for the item results. */
.mc-mobile-category { display: none; }

@media (max-width: 600px) {
    .mc-selector-panel:not(.mc-mobile-collapsed) {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .mc-selector-panel .mc-categories { display: none; }

    .mc-selector-panel:not(.mc-mobile-collapsed) .mc-mobile-category {
        display: block;
        flex: 0 0 auto;
        padding: 0 20px 15px;
    }

    .mc-mobile-category label {
        display: block;
        margin-bottom: 6px;
        color: var(--mc-muted);
        font-size: .75rem;
        font-weight: 700;
    }

    .mc-mobile-category select {
        width: 100%;
        min-height: 44px;
        padding: 8px 12px;
        color: var(--mc-text);
        background: #11161c;
        border: 1px solid #526658;
        border-radius: 9px;
        font-size: .9rem;
    }

    .mc-mobile-category select:focus-visible {
        outline: 2px solid var(--mc-green-bright);
        outline-offset: 2px;
    }

    .mc-selector-panel:not(.mc-mobile-collapsed) .mc-item-grid {
        flex: 0 1 auto;
        min-height: min(220px, 35dvh);
        max-height: min(55dvh, 520px);
        overflow-y: auto;
    }

    .mc-selector-panel.mc-mobile-collapsed .mc-mobile-category { display: none; }
}

.mc-guide-footer {
    padding: 32px 0 12px;
}

@media (max-width: 850px) {
    .mc-guide-layout {
        display: block;
    }

    .mc-guide-sidebar {
        position: static;
        margin-bottom: 22px;
    }

    .mc-guide-sidebar nav {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .mc-guide-sidebar strong {
        flex: 0 0 100%;
    }
}

@media (max-width: 600px) {
    .mc-guide-steps,
    .mc-guide-split {
        grid-template-columns: 1fr;
    }

    .mc-guide-hero {
        padding: 28px 22px;
    }

    .mc-guide-sidebar a {
        border: 1px solid var(--mc-border);
    }
}

/* Supporting tools share the current planner workspace. */
.mc-app-nav {
    max-width: 1320px;
    margin: 18px auto 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--mc-muted);
}
.mc-app-nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-app-nav a, .mc-workspace-tools a, .mc-tools-return a {
    display: inline-block;
    padding: 9px 13px;
    border: 1px solid var(--mc-border);
    border-radius: 9px;
    background: var(--mc-panel);
    color: var(--mc-text);
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
}
.mc-app-nav a.active, .mc-app-nav a:hover, .mc-app-nav a:focus-visible {
    border-color: var(--mc-green-bright);
    color: var(--mc-green-bright);
    background: rgba(103, 212, 109, .08);
}
.mc-app-nav-summary { font-size: .8rem; white-space: nowrap; }
.mc-tools-heading { margin: 16px 0 28px; }
.mc-tools-heading h1 { margin: 10px 0; color: var(--mc-text); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
.mc-tools-heading p, .mc-workspace-summary { color: var(--mc-muted); }
.mc-workspace-summary { padding: 14px; border: 1px solid var(--mc-border); border-radius: 10px; background: var(--mc-panel); }
.mc-workspace-summary a { color: var(--mc-green-bright); font-weight: 700; }
.mc-workspace-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 22px 0; }
.mc-workspace-tools > div { display: grid; gap: 9px; padding: 16px; border: 1px solid var(--mc-border); border-radius: 12px; background: var(--mc-panel); }
.mc-workspace-tools strong { color: var(--mc-text); }
.mc-workspace-tools span { color: var(--mc-muted); font-size: .82rem; overflow-wrap: anywhere; }
.mc-workspace-tools a { justify-self: start; color: var(--mc-green-bright); }
.mc-tools-return { margin-top: 24px; }
@media (max-width: 768px) {
    .mc-app-nav { padding: 0 12px; flex-direction: column; align-items: flex-start; }
    .mc-workspace-tools { grid-template-columns: 1fr; }
}
@media print { .mc-app-nav, .mc-workspace-tools, .mc-tools-return { display: none !important; } }

/* A focused overview page keeps the main planning workflow together. */
.mc-video-page { max-width: 1380px; }
.mc-video-meta { margin-bottom: 0; font-size: .86rem; }
.mc-video-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 22px; }
.mc-video-player-panel { min-width: 0; overflow: hidden; background: var(--mc-panel); border: 1px solid var(--mc-border); border-radius: 14px; }
.mc-video-player-panel video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.mc-video-player-panel video:focus-visible { outline: 2px solid var(--mc-green-bright); outline-offset: -3px; }
.mc-video-player-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.mc-video-player-footer p { flex: 1 1 250px; margin: 0; color: var(--mc-muted); font-size: .88rem; }
.mc-video-player-footer a, .mc-video-next a, .mc-guide-video-link { color: var(--mc-green-bright); font-weight: 700; }
.mc-video-notice { margin: 0; padding: 0 18px 16px; color: var(--mc-yellow); }
.mc-video-chapters { padding: 20px; border: 1px solid var(--mc-border); border-radius: 14px; background: var(--mc-panel); }
.mc-video-chapters h2 { margin: 0 0 9px; color: var(--mc-text); font-size: 1.15rem; }
.mc-video-chapters > p { color: var(--mc-muted); font-size: .85rem; }
.mc-video-chapters button { display: flex; width: 100%; align-items: flex-start; gap: 12px; text-align: left; margin-top: 10px; padding: 12px; border: 1px solid var(--mc-border); border-radius: 9px; background: var(--mc-bg); color: var(--mc-text); font-size: .86rem; line-height: 1.4; }
.mc-video-chapters button:hover, .mc-video-chapters button:focus-visible { border-color: var(--mc-green-bright); outline: 2px solid transparent; background: var(--mc-green-soft); }
.mc-video-chapters button:focus-visible { outline: 2px solid var(--mc-green-bright); outline-offset: 2px; }
.mc-video-time { flex: 0 0 38px; color: var(--mc-green-bright); font-variant-numeric: tabular-nums; font-weight: 700; }
.mc-video-demo-note { margin: 18px 0 0; line-height: 1.6; }
.mc-video-transcript { margin-top: 22px; padding: 18px 20px; border: 1px solid var(--mc-border); border-radius: 14px; background: var(--mc-panel); }
.mc-video-transcript summary { color: var(--mc-text); font-weight: 700; cursor: pointer; }
.mc-video-transcript ol { list-style: none; margin: 20px 0 0; padding: 0; }
.mc-video-transcript li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 15px; margin: 0 0 16px; }
.mc-video-transcript strong { color: var(--mc-green-bright); font-variant-numeric: tabular-nums; font-size: .9rem; }
.mc-video-transcript p { margin: 0; color: var(--mc-muted); line-height: 1.65; }
.mc-video-next { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.mc-video-next a, .mc-guide-video-link { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--mc-border); border-radius: 9px; background: var(--mc-panel); text-decoration: none; }
.mc-guide-video-link span { font-size: .82rem; color: var(--mc-muted); }
.mc-video-next a:focus-visible, .mc-guide-video-link:focus-visible { outline: 2px solid var(--mc-green-bright); outline-offset: 2px; }
@media (max-width: 1000px) { .mc-video-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .mc-video-player-footer { align-items: flex-start; }
    .mc-video-chapters { padding: 16px; }
    .mc-video-transcript { padding: 16px; }
    .mc-video-transcript li { grid-template-columns: 43px minmax(0, 1fr); gap: 9px; }
}
@media print { .mc-video-player-panel, .mc-video-chapters, .mc-video-next { display: none !important; } }
