* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body-font);
    letter-spacing: 0;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px max(18px, calc((100vw - 1180px) / 2));
    background: var(--header);
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .24);
}
.homepage-body .site-header-transparent {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, .62), rgba(15, 23, 42, .18));
    border-bottom: 0;
    box-shadow: none;
}
.homepage-body .site-header-transparent .main-nav a {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
}
.homepage-body .site-header-transparent .main-nav a:hover {
    background: rgba(255, 255, 255, .22);
}
.homepage-body .site-header-transparent .main-nav a.active {
    background: var(--primary);
    border-color: var(--primary);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--heading-font); font-weight: 900; font-size: 1.1rem; }
.brand span { color: #fff; }
.brand img { max-height: 42px; width: auto; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .24)); }
.main-nav, .admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.main-nav a, .admin-tabs a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #e5edf8;
    font-weight: 800;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}
.main-nav a:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .22); color: #fff; }
.main-nav a.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(0, 85, 191, .38); }
.admin-tabs a:hover { background: rgba(0, 85, 191, .08); border-color: rgba(0, 85, 191, .14); color: var(--text); }
.admin-tabs a.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 8px 18px rgba(0, 85, 191, .22); }
.mobile-menu-toggle, .mobile-menu { display: none; }
.page { width: min(1180px, calc(100% - 32px)); margin: 26px auto 44px; flex: 1 0 auto; }
.admin-tabs {
    width: 100%;
    padding: 12px;
    margin: 0 0 22px;
    border: 1px solid rgba(0, 85, 191, .16);
    border-left: 6px solid var(--primary);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, .08);
}
.admin-tabs a { background: #f1f5f9; color: #334155; border-color: #d8dee8; }
.site-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 0;
    padding: 14px max(18px, calc((100vw - 1180px) / 2));
    border-top: 1px solid rgba(17, 24, 39, .12);
    background: #ffffff;
    color: #475569;
    font-size: .86rem;
}
.site-footer img { flex: 0 0 auto; max-height: 38px; max-width: 150px; object-fit: contain; }
.site-footer p { margin: 0; max-width: 960px; }
.logo-preview { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.logo-preview img { max-height: 58px; max-width: 220px; object-fit: contain; }
.admin-thumb { width: 74px; aspect-ratio: 1 / 1; border-radius: 8px; border: 1px solid var(--line); background: #eef2f6; object-fit: cover; }
.admin-thumb.empty { display: grid; place-items: center; color: var(--muted); font-weight: 800; font-size: .75rem; text-align: center; padding: 6px; }
.instruction-editor { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
.instruction-media { display: grid; gap: 12px; }
.instruction-media-preview { aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 8px; background: #eef2f6; overflow: hidden; display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.instruction-media-preview img { width: 100%; height: 100%; object-fit: cover; }
.file-status { display: grid; gap: 8px; }
.file-status-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.file-status-row strong { color: var(--text); }
.file-status-row.missing { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }
.file-status-row.ok { background: #eef7f4; border-color: #c7e3db; color: #104a42; }
.file-fields { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.part-corrections {
    display: grid;
    gap: 12px;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
}
.part-corrections h3 { margin: 0; }
.correction-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(150px, 1fr)) auto;
    gap: 10px;
    align-items: end;
}
.unknown-parts, .alias-list { display: flex; flex-wrap: wrap; gap: 8px; }
.unknown-parts span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-weight: 850;
    font-size: .86rem;
}
.alias-list { display: grid; }
.alias-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}
.alias-list span { overflow-wrap: anywhere; font-weight: 800; }

h1, h2, h3 { font-family: var(--heading-font); line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(2rem, 5vw, 4rem); margin: 0 0 12px; }
h2 { font-size: 1.6rem; margin: 0 0 14px; }
h3 { font-size: 1.15rem; margin: 0 0 10px; }
.muted { color: var(--muted); }
.section { margin: 32px 0; }

.button, button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    background: var(--primary);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.button:hover, button:hover { background: var(--accent-strong); }
.button.secondary, button.secondary { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.button.warning { background: #d32f2f; }
.button.danger, button.danger { background: #b42318; color: #fff; }
.button.danger:hover, button.danger:hover { background: #8f1d14; }
.button.build { background: #2e7d32; font-size: 1.08rem; }
.button.prominent { min-height: 58px; font-size: 1.1rem; box-shadow: 0 12px 26px rgba(15, 138, 75, .22); }
.button.small { min-height: 36px; padding: 0 12px; font-size: .88rem; font-weight: 850; }

.form, .panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.form { display: grid; gap: 14px; max-width: 600px; margin: 0 auto; }
label { display: grid; gap: 6px; font-weight: 800; }
input, select, textarea {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    background: var(--panel);
    color: var(--text);
}
input[type="color"] { height: 48px; padding: 4px; }
textarea { min-height: 140px; resize: vertical; }
input[type="checkbox"] { width: auto; min-height: 0; }
.checkline { display: flex; gap: 8px; align-items: center; font-weight: 650; }

.flash { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; border: 1px solid; text-align: center; }
.flash.success, .flash.notice { background: #eef7f4; border-color: #c7e3db; color: #104a42; }
.flash.error { background: #fff2e8; border-color: #f0c9aa; color: #6f2f0d; }

.hero-public {
    min-height: calc(100vh - 155px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .7fr);
    gap: 32px;
    align-items: center;
}
.hero-copy p { font-size: 1.08rem; color: var(--muted); max-width: 620px; }
.login-card { max-width: 420px; margin-left: auto; }
.home-hero {
    width: 100vw;
    min-height: clamp(280px, 48vh, var(--home-hero-max-height, 560px));
    max-height: var(--home-hero-max-height, 560px);
    margin: -26px calc(50% - 50vw) 28px;
    background: linear-gradient(180deg, rgba(var(--home-hero-overlay-color, 15, 23, 42), var(--home-hero-overlay-opacity, .22)), rgba(var(--home-hero-overlay-color, 15, 23, 42), var(--home-hero-overlay-opacity, .22))), var(--header);
    background-position: center;
    background-size: cover;
}
.home-latest-section { margin-top: 0; }
.home-latest-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    overflow: visible;
}
.home-latest-grid .tile:nth-child(n+11) { display: none; }
.home-latest-actions {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
.homepage-admin-card {
    display: grid;
    gap: 14px;
}
.hero-preview {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #eef2f6;
}
.hero-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.user-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(320px, 420px)); gap: 16px; align-items: start; }
.user-form-card { max-width: none; margin: 0; }
.alias-admin {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
}
.alias-admin .form { max-width: none; margin: 0; box-shadow: none; }
.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.search-row input { width: min(360px, 100%); }
.table-panel { display: grid; gap: 14px; max-width: none; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head h2 { margin: 0; }
.users-table input, .users-table select { min-width: 150px; }
.users-table td:first-child input { min-width: 220px; }
.bulk-panel { display: grid; gap: 12px; }
.bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
}
.bulk-actions .checkline { margin: 0; }
.bulk-action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.tile {
    min-height: 226px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.tile-media { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #e8ece8; overflow: hidden; color: var(--muted); font-weight: 800; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 12px; display: grid; gap: 8px; flex: 1; }
.tile-title { margin: 0 0 8px; font-weight: 900; line-height: 1.2; overflow-wrap: anywhere; }
.category-parent-label {
    width: fit-content;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(0, 85, 191, .1);
    color: var(--primary);
    font-size: .76rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}
.tile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.carousel .tile { min-width: 220px; scroll-snap-align: start; }

.instruction-page { display: grid; gap: 18px; }
.instruction-top { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.instruction-top h1 { margin: 0; max-width: 860px; overflow-wrap: anywhere; }
.instruction-build { flex: 0 0 auto; padding-top: 8px; }
.instruction-hero-image {
    width: min(100%, 720px);
    aspect-ratio: 1 / 1;
    justify-self: center;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #e8ece8;
    overflow: hidden;
    color: var(--muted);
    font-weight: 900;
    font-size: 2rem;
}
.instruction-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.pdf-frame { width: 100%; height: min(82vh, 860px); border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.actions-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.subtle-link { color: var(--muted); text-decoration: underline; font-size: .92rem; }
.download-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.modal-backdrop { position: fixed; inset: 0; display: none; place-items: center; background: rgba(15, 23, 42, .48); z-index: 50; padding: 20px; }
.modal-backdrop.open { display: grid; }
.modal { width: min(460px, 100%); background: var(--panel); border-radius: 8px; padding: 22px; box-shadow: 0 24px 60px rgba(15, 23, 42, .28); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.progressbar { height: 10px; border-radius: 999px; background: #e5ebf1; overflow: hidden; }
.progressbar span { display: block; height: 100%; background: var(--primary); }
.zoeklijst-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.zoeklijst-head > div:not(.actions-row) { min-width: 0; flex: 1 1 auto; }
.zoeklijst-head h1 {
    max-width: 100%;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    overflow-wrap: anywhere;
    word-break: normal;
}
.zoeklijst-cover {
    flex: 0 0 clamp(120px, 18vw, 210px);
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #e8ece8;
    box-shadow: var(--shadow);
}
.zoeklijst-cover img { width: 100%; height: 100%; object-fit: cover; }
.rows { display: grid; gap: 8px; }
.part-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 96px 180px;
    gap: 10px;
    align-items: center;
    min-height: 94px;
    padding: 8px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.part-row.complete { background: #f3faf5; border-color: #b7dbca; }
.part-row.is-hidden { display: none; }
.part-img { width: 76px; height: 76px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f3f4ef; color: var(--muted); font-size: .8rem; text-align: center; }
.part-img img { width: 100%; height: 100%; object-fit: contain; }
.part-name { margin: 0 0 4px; font-weight: 900; overflow-wrap: anywhere; }
.part-sub { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.need { text-align: center; font-weight: 900; }
.need-number { display: block; color: var(--warn); font-size: 1.8rem; line-height: 1; }
.complete .need-number { color: var(--primary); }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.step {
    min-height: 52px;
    min-width: 0;
    padding: 0;
    font-size: 1.45rem;
    touch-action: manipulation;
    user-select: none;
}
.step.minus { background: #6b7476; }
.step.plus { background: var(--primary); }
.step.check { background: #2e7d32; }
.step.delete-item { display: none; background: #d32f2f; }
.edit-mode .step.plus, .edit-mode .step.minus, .edit-mode .step.check { display: none; }
.edit-mode .step.delete-item { display: inline-flex; }
.part-row.is-deleted { opacity: .35; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.toolbar input, .toolbar select { max-width: 260px; }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: #f8f9fa; }

@media (max-width: 760px) {
    .site-header {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding: 10px 12px;
    }
    .homepage-body .site-header-transparent {
        background: linear-gradient(180deg, rgba(15, 23, 42, .74), rgba(15, 23, 42, .22));
    }
    .brand { order: 2; }
    .brand img { max-height: 36px; max-width: 180px; }
    .main-nav { display: none; }
    .mobile-menu-toggle {
        order: 1;
        width: 44px;
        height: 42px;
        min-height: 42px;
        margin-left: 0;
        padding: 0;
        display: inline-grid;
        place-items: center;
        gap: 0;
        border: 1px solid rgba(255, 255, 255, .22);
        background: rgba(255, 255, 255, .1);
    }
    .mobile-menu-toggle span {
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
        display: block;
    }
    .mobile-menu {
        order: 3;
        width: 100%;
        display: none;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, .18);
        border-radius: 8px;
        background: rgba(15, 23, 42, .96);
        box-shadow: 0 18px 44px rgba(0, 0, 0, .24);
    }
    .site-header.menu-open .mobile-menu { display: grid; }
    .mobile-menu section {
        display: grid;
        gap: 7px;
    }
    .mobile-menu h2 {
        margin: 2px 0 4px;
        color: rgba(255, 255, 255, .64);
        font-size: .78rem;
        text-transform: uppercase;
        letter-spacing: 0;
    }
    .mobile-menu a {
        min-height: 40px;
        display: flex;
        align-items: center;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, .1);
        border-radius: 8px;
        background: rgba(255, 255, 255, .08);
        color: #fff;
        font-weight: 850;
    }
    .mobile-menu a.active {
        background: var(--primary);
        border-color: var(--primary);
    }
    .mobile-category-group {
        display: grid;
        gap: 6px;
    }
    .mobile-category-group summary {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 8px;
        background: rgba(255, 255, 255, .14);
        color: #fff;
        font-weight: 900;
        cursor: pointer;
        list-style: none;
    }
    .mobile-category-group summary::-webkit-details-marker {
        display: none;
    }
    .mobile-category-group summary::after {
        content: "+";
        flex: 0 0 auto;
        font-size: 1.15rem;
        line-height: 1;
    }
    .mobile-category-group[open] summary::after {
        content: "-";
    }
    .mobile-category-children {
        display: grid;
        gap: 6px;
        margin-top: 6px;
        padding-left: 12px;
        border-left: 2px solid rgba(255, 255, 255, .18);
    }
    .mobile-category-children a {
        min-height: 38px;
        background: rgba(255, 255, 255, .05);
        color: rgba(255, 255, 255, .9);
    }
    .mobile-category-children a.mobile-category-all {
        background: rgba(255, 255, 255, .11);
        color: #fff;
    }
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 0 -12px 12px;
        padding: 0 12px 6px;
        -webkit-overflow-scrolling: touch;
    }
    .admin-tabs a {
        flex: 0 0 auto;
        min-height: 38px;
        padding: 0 12px;
        font-size: .94rem;
    }
    .page {
        width: calc(100% - 20px);
        margin-top: 14px;
        margin-bottom: 32px;
    }
    .home-hero {
        min-height: clamp(240px, 42vh, min(var(--home-hero-max-height, 440px), 440px));
        margin: -14px calc(50% - 50vw) 22px;
    }
    .home-latest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .instruction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .instruction-grid .tile {
        min-height: 0;
    }
    .instruction-grid .tile-body {
        padding: 10px;
        gap: 6px;
    }
    .instruction-grid .tile-title {
        font-size: .92rem;
        line-height: 1.18;
    }
    .instruction-grid .muted {
        font-size: .86rem;
    }
    .home-latest-grid .tile:nth-child(n+7) { display: none; }
    .site-footer {
        display: grid;
        gap: 10px;
        padding: 16px 12px;
    }
    .site-footer img { max-height: 34px; }
    h1 { font-size: clamp(2.25rem, 12vw, 3.15rem); }
    h2 { font-size: 1.35rem; }
    .form, .panel { padding: 14px; }
    .user-admin-grid { grid-template-columns: 1fr; }
    .alias-admin { grid-template-columns: 1fr; }
    .search-row input { width: 100%; }
    .bulk-actions { align-items: stretch; }
    .bulk-action-buttons { width: 100%; }
    .bulk-actions .button, .bulk-actions button { width: 100%; }
    .instruction-editor { grid-template-columns: 1fr; }
    .correction-grid { grid-template-columns: 1fr; }
    .hero-public { grid-template-columns: 1fr; }
    .hero-public { min-height: auto; gap: 18px; }
    .instruction-top { display: grid; gap: 10px; }
    .instruction-build { padding-top: 0; }
    .instruction-hero-image { width: min(100%, 560px); }
    .login-card { margin-left: 0; }
    .zoeklijst-head { display: grid; align-items: start; }
    .zoeklijst-head h1 { font-size: clamp(1.55rem, 8vw, 2.3rem); }
    .zoeklijst-cover { width: min(180px, 100%); }
    .toolbar input, .toolbar select { max-width: none; }
    .table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table th, .table td {
        min-width: 120px;
        white-space: nowrap;
    }
    .modal-backdrop { padding: 12px; }
    .modal { padding: 18px; }
    .part-row {
        grid-template-columns: 64px minmax(0, 1fr) 74px;
        grid-template-areas:
            "img info need"
            "img controls controls";
        min-height: 128px;
    }
    .part-img { grid-area: img; width: 64px; height: 64px; }
    .part-info { grid-area: info; }
    .need { grid-area: need; }
    .stepper { grid-area: controls; grid-template-columns: repeat(4, minmax(44px, 1fr)); }
}

@media (max-width: 420px) {
    .brand img { max-width: 150px; }
    .admin-tabs a {
        min-height: 36px;
        padding: 0 10px;
        font-size: .9rem;
    }
    .button, button { width: 100%; }
    .mobile-menu-toggle { width: 44px; }
    .instruction-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
    .instruction-grid .tile-body {
        padding: 9px;
    }
    .instruction-grid .tile-title {
        font-size: .84rem;
    }
    .instruction-grid .muted {
        font-size: .8rem;
    }
    .tile-actions .button,
    .actions-row .button,
    .modal-actions .button,
    .toolbar .button,
    .stepper button {
        width: auto;
    }
    .part-row {
        grid-template-columns: 58px minmax(0, 1fr) 58px;
        gap: 8px;
    }
    .part-img { width: 58px; height: 58px; }
    .need-number { font-size: 1.45rem; }
    .home-latest-grid .tile:nth-child(n+5) { display: none; }
}
