body.crafting-page {
    background-color: var(--background-color);
    background-image: url("../images/bg_sky_large.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
    color: var(--text-color);
}

body.crafting-page main {
    align-items: stretch;
    text-align: left;
    gap: 2rem;
}

body.crafting-page *,
body.crafting-page *::before,
body.crafting-page *::after {
    box-sizing: border-box;
}

.crafting-shell {
    width: min(1220px, calc(100% - 2rem));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

#recipe-browser {
    order: 1;
}

#crafting-simulator {
    order: 2;
}

#crafting-enhancers {
    order: 3;
}

#crafting-system {
    order: 4;
}

#recipe-browser,
#crafting-system,
#crafting-enhancers,
#crafting-simulator,
#crafting-overview,
#material-hotspots-section {
    scroll-margin-top: 90px;
}

.crafting-intro-panel {
    background: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.crafting-panel,
.crafting-stats-strip {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.crafting-intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.crafting-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff8dc;
    border: 2px solid #d4a95f;
    color: #a95f0b;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.crafting-intro-copy h1 {
    font-family: "Trebuchet MS", "Verdana", sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    color: var(--primary-color);
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #fff;
    margin-bottom: 0.75rem;
}

.crafting-intro-copy p,
.panel-title-row p,
.overview-card p,
.detail-description,
.detail-callout p,
.source-note-card p,
.source-missing,
.requirement-source-empty,
.source-more,
.recipe-result-footer,
.special-list li,
.showcase-header p,
.browser-welcome-card p {
    color: var(--text-muted);
}

.crafting-intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-content: start;
}

.crafting-anchor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.1rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 800;
    color: #5f3a07;
    background: linear-gradient(180deg, #fffef6, #f8df94);
    border: 2px solid #ddb75a;
    box-shadow: 0 4px 0 rgba(153, 106, 17, 0.18);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.crafting-anchor-btn:hover,
.crafting-anchor-btn:focus-visible,
.material-jump:hover,
.material-jump:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(129, 91, 24, 0.16);
    border-color: #c47a13;
    outline: none;
}

.crafting-panel,
.recipe-detail-panel {
    background: var(--card-background);
    border-radius: 12px;
}

.crafting-intro-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.crafting-panel {
    padding: 1.5rem;
}

.crafting-guide-banner {
    max-width: none;
    width: 100%;
}

.enhancer-summary-item,
.enhancer-note-panel,
.reference-panel {
    background: white;
    border: 2px solid #eee;
    border-bottom: 4px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: grid;
    gap: 0.45rem;
    padding: 1rem;
}

.enhancer-summary-bar,
.enhancer-notes-grid,
.crafting-reference-grid {
    display: grid;
    gap: 1rem;
}

.enhancer-summary-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.enhancer-notes-grid,
.crafting-reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reference-panel h3,
.enhancer-note-panel h3 {
    color: var(--text-color);
    margin: 0;
}

.reference-panel ul,
.enhancer-note-panel ul {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.55rem;
    color: var(--text-muted);
}

.panel-title-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.2rem;
}

.panel-title-row h2 {
    color: #2f2616;
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
}

.crafting-controls {
    display: grid;
    grid-template-columns: minmax(260px, 1.8fr) repeat(5, minmax(140px, 1fr));
    gap: 0.85rem;
}

.crafting-quick-filter-bar,
.crafting-filter-status,
.crafting-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.crafting-quick-filter-bar {
    margin-bottom: 1rem;
}

.quick-filter-pill,
.active-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    line-height: 1;
}

.quick-filter-pill {
    border: 2px solid #e1c36a;
    background: linear-gradient(180deg, #fffef8, #f7e4a8);
    color: #73480f;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.quick-filter-pill:hover,
.quick-filter-pill:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(129, 91, 24, 0.14);
    border-color: #c88916;
    outline: none;
}

.quick-filter-pill.is-active {
    background: linear-gradient(180deg, #ffd996, #f3b24d);
    border-color: #ca7a15;
    color: #5f3300;
    box-shadow: 0 0 0 3px rgba(236, 170, 63, 0.2);
}

.quick-filter-pill:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.crafting-search {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 2px solid #e1c36a;
    background: #fffdf4;
    border-radius: 18px;
    padding: 0 1rem;
}

.crafting-search i {
    color: #b96d10;
}

.crafting-search input,
.crafting-select {
    border: 2px solid #e1c36a;
    background: #fffdf4;
    border-radius: 18px;
    padding: 0.95rem 1rem;
    font-size: 0.95rem;
    color: #42331d;
}

.crafting-search input {
    border: 0;
    width: 100%;
    padding-left: 0;
    outline: none;
    background: transparent;
}

.crafting-results-bar,
.crafting-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.crafting-results-bar {
    margin-top: 1rem;
}

.crafting-filter-status {
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 0.9rem;
}

.crafting-filter-help {
    flex: 1 1 280px;
    color: #6d5936;
    font-size: 0.92rem;
    line-height: 1.5;
    background: rgba(255, 252, 241, 0.76);
    border: 1px dashed #dfbe72;
    border-radius: 16px;
    padding: 0.8rem 0.9rem;
}

.crafting-active-filters {
    flex: 1 1 260px;
    justify-content: flex-end;
}

.active-filter-chip {
    background: #fff5d4;
    border: 1px solid #e1c36a;
    color: #80570f;
    padding: 0.45rem 0.75rem;
    font-size: 0.78rem;
}

.active-filter-chip.is-subtle {
    background: #f9edc5;
    color: #6e5424;
}

.active-filter-empty {
    color: #866e42;
    font-size: 0.85rem;
    align-self: center;
}

.recipe-browser-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(350px, 0.96fr);
    gap: 1.15rem;
    margin-top: 1.15rem;
    align-items: start;
}

.recipe-results-column,
.detail-scroll {
    min-width: 0;
}

.recipe-results-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.crafting-recipes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1rem;
}

.recipe-result-card {
    border: 2px solid #eee;
    border-bottom: 4px solid #ddd;
    border-radius: 12px;
    background: white;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    text-align: left;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
    color: inherit;
    font: inherit;
    appearance: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.recipe-result-card:hover,
.recipe-result-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
    outline: none;
}

.recipe-result-card.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(242, 159, 5, 0.2);
}

.recipe-result-card::after {
    content: "";
    display: block;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(202, 122, 21, 0.14), rgba(202, 122, 21, 0.5));
}

.recipe-result-top,
.recipe-result-header,
.recipe-title-row,
.recipe-header,
.detail-header,
.requirement-header,
.material-card-top {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.recipe-result-top {
    justify-content: space-between;
}

.recipe-result-copy,
.detail-header-copy,
.requirement-copy {
    min-width: 0;
    flex: 1;
}

.recipe-result-overline,
.detail-overline,
.recipe-preview-label,
.detail-callout-title,
.detail-section-title-row span,
.acquisition-label,
.source-note-label,
.requirement-type,
.recipe-section-title {
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #8a5f10;
}

.recipe-result-copy h3,
.detail-header-copy h3,
.requirement-copy h4,
.recipe-title-row h3 {
    color: #2d2617;
    line-height: 1.2;
    margin: 0;
    overflow-wrap: anywhere;
}

.recipe-result-copy h3 {
    font-size: 1.05rem;
}

.detail-header-copy h3 {
    font-size: 1.55rem;
}

.requirement-copy h4 {
    font-size: 1rem;
}

.recipe-id {
    font-size: 0.78rem;
    color: #8a7550;
    overflow-wrap: anywhere;
}

.recipe-result-output {
    min-width: 56px;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffefbc, #f4d06f);
    color: #845408;
    font-weight: 900;
    padding: 0.7rem 0.8rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.recipe-result-pill-row,
.material-meta,
.detail-pill-row,
.recipe-badges,
.source-chip-row,
.recipe-preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.material-pill,
.recipe-badge,
.source-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    font-size: 0.77rem;
    font-weight: 800;
}

.recipe-badge,
.source-chip {
    background: #ffefbc;
    color: #845408;
}

.ingredient-preview-chip,
.source-ingredient-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 16px;
    padding: 0.38rem 0.65rem 0.38rem 0.4rem;
    background: linear-gradient(180deg, #fffaf0, #ffe7a7);
    border: 1px solid #dfbd67;
    color: #6a4910;
    max-width: 100%;
}

.ingredient-preview-chip.is-more {
    background: #f5e1a0;
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
}

.recipe-preview-block {
    background: rgba(255, 255, 255, 0.56);
    border: 1px dashed #dfbe72;
    border-radius: 16px;
    padding: 0.8rem;
    display: grid;
    gap: 0.55rem;
}

.recipe-result-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.84rem;
    font-weight: 700;
}

.recipe-result-footer span:last-child {
    color: #a35b07;
}

.recipe-detail-panel {
    border: 1px solid var(--border-color);
    position: sticky;
    top: 96px;
    align-self: start;
    min-width: 0;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.detail-scroll {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    max-height: calc(100vh - 120px);
    overflow: auto;
    background: white;
}

.detail-description {
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid #ead190;
    border-radius: 16px;
    padding: 0.95rem 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.detail-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.detail-simulate-row {
    display: grid;
    gap: 0.6rem;
    align-items: center;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid #d8e0ec;
    background: linear-gradient(180deg, #f6fbff, #e9f1fb);
}

.detail-simulate-btn {
    justify-self: start;
    border: 2px solid #4c76b0;
    border-bottom-width: 4px;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, #77b9ff, #5489db);
    color: white;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.detail-simulate-btn:hover,
.detail-simulate-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(61, 99, 153, 0.18);
    outline: none;
}

.detail-simulate-note {
    color: #5c6c7a;
    font-size: 0.9rem;
    line-height: 1.45;
}

.detail-summary-tile {
    background: linear-gradient(180deg, #fff8e7, #ffefc2);
    border: 2px solid #e2c062;
    border-radius: 18px;
    padding: 0.85rem 0.95rem;
}

.detail-summary-tile span {
    display: block;
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7b693e;
    margin-bottom: 0.3rem;
}

.detail-summary-tile strong {
    color: #cf6d09;
    font-size: 1rem;
}

.detail-section {
    display: grid;
    gap: 0.8rem;
}

.detail-section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
}

.detail-section-title-row h3 {
    margin: 0;
    color: #2d2617;
    font-size: 1.15rem;
}

.detail-callout {
    background: linear-gradient(180deg, #fff8e9, #f7ebc7);
    border: 1px dashed #dcb866;
    border-radius: 16px;
    padding: 0.9rem 1rem;
    display: grid;
    gap: 0.35rem;
}

.detail-callout p,
.source-note-card p {
    margin: 0;
    line-height: 1.55;
}

.requirement-list,
.reward-list,
.special-list {
    display: grid;
    gap: 0.8rem;
}

.requirement-card {
    background: linear-gradient(180deg, rgba(255, 252, 242, 0.95), rgba(250, 240, 212, 0.95));
    border: 2px solid #e5c979;
    border-radius: 18px;
    padding: 0.95rem;
    display: grid;
    gap: 0.85rem;
    box-shadow: 0 4px 12px rgba(116, 86, 33, 0.06);
}

.requirement-meta-row,
.ingredient-topline,
.reward-topline {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.25rem;
}

.requirement-count,
.reward-prob,
.ingredient-count {
    font-size: 0.82rem;
    color: #7a653d;
    font-weight: 800;
}

.requirement-source-shell,
.acquisition-block,
.source-note-stack {
    display: grid;
    gap: 0.65rem;
}

.source-note-card {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid #e4cf9a;
    border-radius: 14px;
    padding: 0.8rem 0.85rem;
}

.source-route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.7rem;
}

.source-route-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #e1c887;
    border-radius: 14px;
    padding: 0.75rem 0.8rem;
    display: grid;
    gap: 0.2rem;
}

.source-route-card strong {
    color: #2d2617;
}

.source-route-card span {
    color: #6a5838;
    font-size: 0.82rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.source-craft-top {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.source-craft-top strong {
    color: #2d2617;
    display: block;
    line-height: 1.3;
}

.source-ingredient-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.requirement-source-empty,
.source-more {
    font-size: 0.84rem;
}

.detail-empty-state {
    min-height: 260px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 0.75rem;
}

.detail-empty-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffefbc, #f4d06f);
    color: #a75e0e;
    font-size: 1.4rem;
}

.detail-empty-state h3 {
    margin: 0;
    color: #2d2617;
}

.detail-empty-state p,
.detail-empty-inline {
    color: #6a5838;
}

.crafting-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    background: linear-gradient(180deg, #fff6d8, #f7e6ab);
    border-radius: 22px;
    padding: 1rem;
}

.crafting-stat-tile {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid #e2c062;
    border-radius: 18px;
    padding: 1rem;
    text-align: center;
}

.crafting-stat-tile .stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #78633e;
    margin-bottom: 0.35rem;
}

.crafting-stat-tile strong {
    font-size: 1.8rem;
    color: #cf6d09;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.enhancer-intro-grid,
.enhancer-stat-grid,
.enhancer-table-grid,
.enhancer-detail-grid,
.simulator-layout,
.gem-family-grid {
    display: grid;
    gap: 1rem;
}

.enhancer-intro-grid,
.enhancer-stat-grid,
.enhancer-detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.enhancer-table-grid,
.simulator-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enhancer-highlight-card,
.enhancer-note-card,
.enhancer-table-card,
.enhancer-focus-card,
.gem-family-card,
.simulator-controls,
.simulator-summary,
.simulator-outcome,
.simulator-roll-card,
.simulator-stat-card {
    background: linear-gradient(180deg, rgba(255, 251, 239, 0.98), rgba(247, 235, 205, 0.96));
    border: 2px solid #e3c06e;
    border-radius: 22px;
    box-shadow: 0 6px 18px rgba(108, 71, 15, 0.08);
}

.enhancer-highlight-card,
.enhancer-note-card,
.enhancer-focus-card,
.simulator-controls,
.simulator-summary,
.simulator-outcome {
    padding: 1.15rem;
}

.enhancer-highlight-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff7dd, #f5c86f);
    color: #bb6710;
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
}

.enhancer-highlight-card h3,
.enhancer-note-card strong,
.enhancer-focus-card h3,
.gem-family-card h4,
.simulator-outcome h3,
.simulator-roll-card h3 {
    color: #2d2617;
}

.enhancer-label,
.simulator-label,
.simulator-kicker {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #8a5f10;
    margin-bottom: 0.45rem;
}

.enhancer-note-card strong {
    display: block;
    font-size: 1.65rem;
    color: #cf6d09;
    margin-bottom: 0.55rem;
}

.enhancer-table-card {
    overflow: hidden;
}

.enhancer-table-wrap {
    overflow-x: auto;
}

.enhancer-table {
    width: 100%;
    border-collapse: collapse;
}

.enhancer-table th,
.enhancer-table td {
    text-align: left;
    padding: 0.95rem 1rem;
    border-top: 1px solid #ecd39a;
    color: #5f4f35;
}

.enhancer-table thead th {
    border-top: 0;
    background: rgba(255, 244, 203, 0.78);
    color: #6b4510;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.enhancer-bullet-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.7rem;
    color: #5f4f35;
}

.maker-sim-window {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.maker-pane,
.maker-outcome-panel {
    background: linear-gradient(180deg, #dce9f8 0%, #c7daef 8%, #eef4fb 8%, #e7eef7 100%);
    border: 3px solid #7895b6;
    border-radius: 18px;
    box-shadow: inset 0 0 0 2px #f8fbff, 0 12px 24px rgba(62, 89, 125, 0.16);
    overflow: hidden;
}

.maker-pane {
    padding: 0.75rem;
    display: grid;
    gap: 0.75rem;
    align-content: start;
    grid-auto-rows: max-content;
}

.maker-pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff, #edf3fa);
    border: 1px solid #93aac5;
    color: #2f3944;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.maker-selected-shell,
.maker-block,
.maker-list-shell {
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid #acc0d8;
    border-radius: 12px;
    padding: 0.85rem;
}

.maker-selected-shell {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    background: linear-gradient(180deg, #6e9ecf, #5d87bb);
    color: white;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    padding: 0.9rem;
    border-radius: 16px;
}

.maker-selected-icon,
.maker-selected-item-icon,
.maker-recipe-icon,
.maker-required-icon {
    min-width: 0;
}

.maker-selected-item-icon,
.maker-recipe-icon,
.maker-required-icon {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #d5e2f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.maker-recipe-icon {
    width: 40px;
    height: 40px;
    border-radius: 7px;
}

.maker-required-icon {
    width: 44px;
    height: 44px;
    border-radius: 7px;
}

.maker-selected-item-icon img,
.maker-recipe-icon img,
.maker-required-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.maker-search-title {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.maker-search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.maker-search-box {
    min-width: 0;
    border: 2px solid #d4e0ef;
    border-radius: 14px;
    background: white;
    color: #354351;
    font: inherit;
    padding: 0.95rem 1rem;
    min-height: 58px;
}

.maker-search-box:focus {
    outline: 2px solid rgba(149, 189, 243, 0.55);
    outline-offset: 1px;
}

.maker-search-button {
    border: 2px solid #304db2;
    border-bottom-width: 4px;
    border-radius: 14px;
    background: linear-gradient(180deg, #3f6fff, #294ec1);
    color: white;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    min-height: 58px;
}

.maker-search-button:hover,
.maker-search-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(31, 62, 141, 0.2);
    outline: none;
}

.maker-selected-name {
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.15;
}

.maker-selected-meta {
    font-size: 0.82rem;
    opacity: 0.92;
    margin-top: 0.25rem;
}

.maker-block {
    display: grid;
    gap: 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.maker-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    color: #4e6074;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.maker-quantity-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.8rem;
}

.maker-quantity-input {
    width: 70px;
    padding: 0.38rem 0.45rem;
    border: 2px solid #8aa4c2;
    border-radius: 8px;
    background: white;
    font: inherit;
    text-align: center;
}

.maker-subnote {
    font-size: 0.72rem;
    color: #6d7b87;
    text-transform: none;
    letter-spacing: normal;
}

.maker-required-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.maker-required-slot {
    min-height: 88px;
    border-radius: 14px;
    border: 1px solid #cad8e7;
    background: linear-gradient(180deg, #ffffff, #f7fafd);
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.65rem;
    align-items: center;
}

.maker-required-slot.is-empty {
    border-style: dashed;
    background:
        linear-gradient(135deg, transparent calc(50% - 1px), #d3dde9 calc(50% - 1px), #d3dde9 calc(50% + 1px), transparent calc(50% + 1px)),
        #fbfcfe;
}

.maker-required-info {
    min-width: 0;
}

.maker-required-info strong,
.maker-recipe-copy strong {
    display: block;
    color: #2c3744;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.maker-required-info span,
.maker-recipe-copy span,
.maker-summary-note {
    color: #647486;
    font-size: 0.78rem;
    line-height: 1.3;
}

.maker-time-row,
.maker-failure-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    font-weight: 800;
    color: #536273;
}

.maker-time-row strong,
.maker-failure-row strong {
    font-size: 1.15rem;
    color: #7d8fc5;
}

.maker-extra-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.maker-extra-card {
    background: linear-gradient(180deg, #ffffff, #f3f7fb);
    border: 1px solid #c8d7e7;
    border-radius: 14px;
    padding: 0.65rem;
    display: grid;
    gap: 0.4rem;
}

.maker-extra-card-wide {
    grid-column: span 3;
}

.maker-extra-label,
.maker-list-title,
.maker-summary-label {
    color: #5d6d80;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.maker-toggle {
    justify-content: flex-start;
    padding: 0.55rem 0.7rem;
    min-height: 0;
}

.maker-hidden-control {
    display: none;
}

.maker-touch-tile {
    width: 100%;
    text-align: left;
    border: 2px solid #cad7e7;
    border-bottom-width: 4px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #eef4fb);
    padding: 0.7rem;
    color: #334353;
    font: inherit;
    cursor: pointer;
    display: grid;
    gap: 0.15rem;
    min-height: 74px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.maker-touch-tile.is-active {
    border-color: #4f86da;
    background: linear-gradient(180deg, #eef7ff, #d7e9ff);
    box-shadow: 0 8px 16px rgba(65, 113, 190, 0.15);
}

.maker-touch-main {
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1.1;
}

.maker-touch-sub {
    color: #617182;
    font-size: 0.72rem;
    line-height: 1.2;
}

.maker-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.maker-choice-btn {
    border: 2px solid #cad7e7;
    border-bottom-width: 4px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #eef4fb);
    color: #334353;
    font: inherit;
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: -0.01em;
    min-height: 52px;
    min-width: 0;
    padding: 0.65rem 0.7rem;
    flex: 0 1 auto;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.maker-choice-group-tier .maker-choice-btn {
    min-width: 54px;
    justify-content: center;
}

.maker-choice-btn.is-active {
    border-color: #4f86da;
    background: linear-gradient(180deg, #eef7ff, #d7e9ff);
    box-shadow: 0 8px 16px rgba(65, 113, 190, 0.15);
}

.maker-choice-btn:disabled,
.maker-touch-tile:disabled,
.maker-gem-slot:disabled,
.maker-gem-token:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.maker-gem-card {
    gap: 0.7rem;
}

.maker-gem-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.maker-clear-gems {
    border: 0;
    background: transparent;
    color: #4f6d94;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.maker-clear-gems:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.maker-gem-slots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.maker-gem-slot {
    border: 2px solid #cad7e7;
    border-bottom-width: 4px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #eef4fb);
    min-height: 76px;
    padding: 0.65rem;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    text-align: left;
    color: #334353;
    font: inherit;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.maker-gem-slot.is-active,
.maker-gem-token.is-active {
    border-color: #4f86da;
    box-shadow: 0 8px 16px rgba(65, 113, 190, 0.15);
}

.maker-gem-slot-icon,
.maker-gem-token-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 2px solid #d5e2f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.maker-gem-slot-icon img,
.maker-gem-token-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.maker-gem-slot-core,
.maker-gem-token-swatch {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    display: inline-flex;
}

.maker-gem-slot-core.is-empty {
    background:
        linear-gradient(135deg, transparent calc(50% - 1px), #c9d6e5 calc(50% - 1px), #c9d6e5 calc(50% + 1px), transparent calc(50% + 1px)),
        #edf3fa;
    border-color: #d7e1eb;
}

.maker-gem-slot-copy,
.maker-gem-token-copy {
    min-width: 0;
    display: grid;
    gap: 0.1rem;
}

.maker-gem-slot-copy strong,
.maker-gem-token-copy strong {
    color: #2e3b47;
    line-height: 1.1;
    font-size: 0.88rem;
}

.maker-gem-slot-copy span,
.maker-gem-token-copy span {
    color: #667686;
    font-size: 0.72rem;
    line-height: 1.15;
}

.maker-gem-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.55rem;
}

.maker-gem-token {
    border: 2px solid #cad7e7;
    border-bottom-width: 4px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff, #eef4fb);
    padding: 0.65rem;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
    text-align: left;
    color: #334353;
    font: inherit;
    cursor: pointer;
    min-height: 64px;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gem-ruby {
    background: radial-gradient(circle at 30% 30%, #ffd2d6, #d43a56 72%);
}

.gem-sapphire {
    background: radial-gradient(circle at 30% 30%, #dff0ff, #4d7cff 72%);
}

.gem-emerald {
    background: radial-gradient(circle at 30% 30%, #ddffe6, #2fad67 72%);
}

.gem-amethyst {
    background: radial-gradient(circle at 30% 30%, #f0ddff, #8e57d8 72%);
}

.gem-diamond {
    background: radial-gradient(circle at 30% 30%, #ffffff, #9dd2ff 72%);
}

.maker-action-row {
    display: flex;
    gap: 0.9rem;
}

.maker-action-btn {
    width: min(260px, 100%);
    border: 2px solid #5b6f92;
    border-bottom-width: 4px;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.maker-action-btn:hover,
.maker-action-btn:focus-visible,
.maker-recipe-row:hover,
.maker-recipe-row:focus-visible,
.maker-touch-tile:hover,
.maker-touch-tile:focus-visible,
.maker-choice-btn:hover,
.maker-choice-btn:focus-visible,
.maker-gem-slot:hover,
.maker-gem-slot:focus-visible,
.maker-gem-token:hover,
.maker-gem-token:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(62, 89, 125, 0.16);
    outline: none;
}

.maker-action-create {
    background: linear-gradient(180deg, #6fb2ff, #4f84da);
    color: white;
}

.maker-action-storage {
    background: linear-gradient(180deg, #7f97be, #5a6d8a);
    color: white;
}

.maker-summary-box {
    background: rgba(255, 255, 255, 0.94);
    border: 2px solid #abc0da;
    border-radius: 12px;
    padding: 0.85rem;
}

.maker-summary-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.maker-summary-card {
    background: linear-gradient(180deg, #ffffff, #f4f8fb);
    border: 1px solid #c9d7e8;
    border-radius: 8px;
    padding: 0.75rem;
}

.maker-summary-card strong {
    display: block;
    color: #293846;
    margin-top: 0.15rem;
    margin-bottom: 0.25rem;
}

.maker-filter-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 0.75rem;
}

.maker-filter-row-compact {
    display: flex;
    justify-content: flex-start;
    align-items: start;
}

.maker-filter-row-compact .crafting-select {
    width: auto;
    min-width: 150px;
    max-width: 100%;
    justify-self: start;
    padding: 0.8rem 2.2rem 0.8rem 0.9rem;
    border-radius: 14px;
    white-space: nowrap;
}

.maker-list-shell {
    display: grid;
    gap: 0.6rem;
    padding: 0.7rem;
    align-self: start;
}

.maker-recipe-list {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #bfd0e2;
    border-radius: 8px;
    max-height: 620px;
    overflow: auto;
    display: grid;
    gap: 0;
}

.maker-recipe-row {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d7e2ee;
    background: linear-gradient(180deg, #ffffff, #f9fbfd);
    border-radius: 0;
    padding: 0.6rem;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
}

.maker-recipe-row.is-active {
    box-shadow: inset 4px 0 0 #5d88bb;
    background: linear-gradient(180deg, #eef5fd, #e4effb);
}

.maker-recipe-row {
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

.maker-empty-state {
    border: 1px dashed #bccdde;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    color: #6a7988;
    background: linear-gradient(180deg, #ffffff, #f7f9fc);
}

.maker-outcome-panel {
    margin-top: 0.9rem;
    padding: 1rem;
}

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

.gem-family-card {
    padding: 1rem;
}

.enhancer-family-list {
    margin: 0.55rem 0 0;
    padding-left: 1rem;
    color: #5f4f35;
    display: grid;
    gap: 0.2rem;
}

.enhancer-family-list li {
    line-height: 1.3;
}

.enhancer-family-note {
    font-weight: 700;
}

.gem-family-card p {
    margin: 0.45rem 0 0;
    color: #5f4f35;
}

.simulator-controls {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.simulator-field {
    display: grid;
    gap: 0.45rem;
}

.simulator-field label {
    color: #6e4a14;
    font-weight: 800;
}

.simulator-checkbox {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px dashed #ddb96a;
    background: rgba(255, 250, 233, 0.78);
    color: #5f4f35;
    font-weight: 700;
}

.simulator-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #c96d10;
}

.simulator-output {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.simulator-summary {
    display: grid;
    gap: 0.85rem;
}

.simulator-summary-grid,
.simulator-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.simulator-stat-card,
.simulator-roll-card {
    padding: 0.95rem;
}

.simulator-stat-card strong,
.simulator-roll-card strong {
    display: block;
    color: #cf6d09;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.simulator-roll-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1rem;
}

.simulator-item-header {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.simulator-item-copy {
    min-width: 0;
}

.simulator-item-copy p,
.simulator-roll-note,
.simulator-roll-list li {
    color: #5f4f35;
}

.simulator-roll-list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.55rem;
}

.simulator-outcome.is-fail {
    border-color: #ce8f72;
    background: linear-gradient(180deg, rgba(255, 245, 238, 0.98), rgba(248, 224, 210, 0.96));
}

.simulator-outcome.is-success {
    border-color: #d7b45a;
}

.overview-card {
    background: linear-gradient(180deg, #fff9e8, #fff2c7);
    border: 2px solid #e4c06f;
    border-radius: 20px;
    padding: 1.25rem;
}

.overview-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffefb5;
    color: #c66b0d;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.material-hotspots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.material-card {
    background: linear-gradient(180deg, #fff9eb, #fdf1cb);
    border: 2px solid #e5c979;
    border-radius: 18px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(116, 86, 33, 0.06);
}

.material-card strong {
    color: #3b2e1a;
}

.material-pill {
    background: #f9e4a4;
    color: #7c560d;
}

.material-jump {
    border: 0;
    background: linear-gradient(180deg, #8cb63d, #6d9428);
    color: #fff;
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.material-card-icon,
.recipe-icon,
.ingredient-icon,
.reward-icon,
.detail-icon,
.ingredient-preview-icon,
.source-ingredient-icon,
.source-crafted-icon,
.featured-item-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.82);
    border: 2px solid #ead08c;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.detail-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
}

.featured-item-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
}

.ingredient-preview-icon,
.source-ingredient-icon,
.source-crafted-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
}

.material-card-icon img,
.recipe-icon img,
.ingredient-icon img,
.reward-icon img,
.detail-icon img,
.ingredient-preview-icon img,
.source-ingredient-icon img,
.source-crafted-icon img,
.featured-item-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.detail-icon img {
    width: 42px;
    height: 42px;
}

.featured-item-icon img {
    width: 46px;
    height: 46px;
}

.ingredient-preview-icon img,
.source-ingredient-icon img,
.source-crafted-icon img {
    width: 22px;
    height: 22px;
}

.ingredient-preview-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ingredient-preview-count,
.requirement-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    background: rgba(255, 252, 237, 0.88);
    border: 1px solid #e0bd64;
    color: #7a560f;
}

.job-all-class {
    background: #f4e7b2;
    color: #775814;
}

.job-warrior {
    background: #ffd8bb;
    color: #8a4200;
}

.job-magician {
    background: #dde5ff;
    color: #3048a3;
}

.job-bowman {
    background: #d8efc2;
    color: #39611c;
}

.job-thief {
    background: #e6dcff;
    color: #573398;
}

.job-pirate {
    background: #ffd9d8;
    color: #8c3836;
}

.crafting-loading,
.crafting-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    border: 2px dashed #dbbd6d;
    border-radius: 20px;
    background: rgba(255, 250, 232, 0.85);
    color: #7a653d;
}

@media (max-width: 1200px) {
    .recipe-browser-layout {
        grid-template-columns: 1fr;
    }

    .maker-sim-window {
        grid-template-columns: 1fr;
    }

    .recipe-detail-panel {
        position: static;
    }

    .detail-scroll {
        max-height: none;
    }
}

@media (max-width: 1100px) {
    .crafting-intro-panel {
        grid-template-columns: 1fr;
    }

    .enhancer-summary-bar,
    .enhancer-notes-grid,
    .crafting-reference-grid,
    .maker-summary-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .crafting-controls {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 768px) {
    .crafting-shell {
        width: min(100%, calc(100% - 1rem));
    }

    .panel-title-row,
    .crafting-results-bar,
    .crafting-pagination,
    .recipe-result-footer,
    .detail-section-title-row,
    .requirement-meta-row,
    .reward-topline,
    .source-craft-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .crafting-controls,
    .crafting-stats-strip,
    .detail-summary-grid,
    .crafting-recipes {
        grid-template-columns: 1fr;
    }

    .system-story,
    .gem-family-grid,
    .enhancer-summary-bar,
    .enhancer-notes-grid,
    .crafting-reference-grid,
    .maker-summary-row,
    .maker-filter-row,
    .maker-extra-grid,
    .maker-required-grid,
    .maker-gem-picker {
        grid-template-columns: 1fr;
    }

    .crafting-filter-status {
        flex-direction: column;
    }

    .crafting-active-filters {
        justify-content: flex-start;
    }

    .recipe-result-top {
        flex-direction: column;
    }

    .crafting-panel,
    .crafting-intro-panel {
        padding: 1rem;
    }

    .crafting-anchor-btn {
        width: 100%;
    }

    .crafting-search input,
    .crafting-select,
    .quick-filter-pill,
    .material-jump {
        min-height: 48px;
    }

    .detail-scroll {
        padding: 1rem;
    }

    .source-route-grid {
        grid-template-columns: 1fr;
    }

    .detail-header,
    .requirement-header,
    .material-card-top {
        flex-direction: row;
    }

    .detail-icon {
        width: 58px;
        height: 58px;
    }

    .maker-extra-card-wide {
        grid-column: span 1;
    }

    .maker-gem-slots,
    .maker-choice-group,
    .maker-choice-group-tier {
        grid-template-columns: 1fr;
    }

    .recipe-preview-list,
    .source-ingredient-list {
        gap: 0.4rem;
    }
}

@media (max-width: 560px) {
    .crafting-shell {
        width: calc(100% - 0.75rem);
    }

    .crafting-intro-copy h1 {
        font-size: 2rem;
    }

    .crafting-kicker,
    .recipe-result-overline,
    .detail-overline,
    .recipe-preview-label,
    .detail-callout-title,
    .detail-section-title-row span,
    .acquisition-label,
    .source-note-label,
    .requirement-type,
    .recipe-section-title {
        letter-spacing: 0.05em;
    }

    .crafting-results-bar,
    .crafting-pagination,
    .recipe-result-footer,
    .detail-section-title-row,
    .requirement-meta-row,
    .reward-topline {
        gap: 0.55rem;
    }

    .crafting-quick-filter-bar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .recipe-result-card,
    .requirement-card,
    .material-card,
    .overview-card,
    .enhancer-summary-item,
    .enhancer-note-panel,
    .reference-panel,
    .maker-summary-card {
        padding: 0.9rem;
    }

    .recipe-result-output {
        align-self: flex-start;
    }

    .detail-empty-state {
        min-height: 220px;
        padding: 1.35rem 1rem;
    }
}
