@import "https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800&family=Poppins:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap";:root {
    --orange: #ff5a1f;
    --orange-dark: #e5480a;
    --orange-light: #ff7a45;
    --orange-glow: #ff5a1f24;
    --navy: #0b1118;
    --navy-soft: #151e2b;
    --navy-border: #1f2b39;
    --slate: #355070;
    --slate-soft: #506277;
    --page-bg: #e8eef4;
    --surface: #fff;
    --surface-soft: #f4f7fa;
    --border: #d9e1e8;
    --border-strong: #cbd5e1;
    --text-primary: #0b1118;
    --text-secondary: #506277;
    --text-muted: #64748b;
    --status-pass: #00bd6d;
    --status-pass-bg: #00bd6d14;
    --status-warn: #ff5a1f;
    --status-warn-bg: #ff5a1f14;
    --status-fail: #dc2626;
    --status-fail-bg: #dc26260f;
    --font-ui: "Poppins", -apple-system, sans-serif;
    --font-heading: "Montserrat", -apple-system, sans-serif;
    --font-data: "JetBrains Mono", "Consolas", monospace;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 4px #0b11180f;
    --shadow: 0 4px 16px #0b111814;
    --shadow-lg: 0 8px 32px #0b11181f;
    --shadow-orange: 0 4px 16px #ff5a1f38;
    --bg-main: #f4f7fa;
    --bg-card: #fff;
    --bg-card-hover: #f4f7fa;
    --text-main: #16202b;
    --border-color: #d9e1e8
}

*,:before,:after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    background-color: var(--page-bg);
    color: var(--text-primary);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.6
}

.workspace-matrix-shortcode-container,.workspace-matrix-app,#workspace-matrix-root {
    font-family: var(--font-ui);
    color: var(--text-primary);
    text-align: left;
    box-sizing: border-box;
    font-size: 15px;
    line-height: 1.6
}

.workspace-matrix-app *,.workspace-matrix-app :before,.workspace-matrix-app :after {
    box-sizing: border-box
}

.workspace-matrix-app button {
    font-family: inherit
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    letter-spacing: -.02em;
    margin-top: 0;
    line-height: 1.25
}

p {
    color: var(--text-secondary);
    margin: 0 0 1rem
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px
}

::-webkit-scrollbar-track {
    background: var(--surface-soft)
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 3px
}

.app-wrapper {
    flex-direction: column;
    min-height: 100vh;
    display: flex
}

.app-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    height: 64px;
    box-shadow: var(--shadow-sm);
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    display: flex;
    position: sticky;
    top: 0
}

.brand-mark {
    background: var(--navy);
    color: #fff;
    border-radius: 9px;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    display: flex
}

.brand-title {
    font-family: var(--font-heading);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-primary);
    cursor: pointer;
    margin: 0;
    font-size: 1rem;
    font-weight: 800
}

.page-body {
    flex: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    padding: 2rem
}

.card h2 {
    margin-bottom: .5rem;
    font-size: 1.2rem;
    font-weight: 700
}

.nav-hub {
    grid-template-columns: repeat(2,1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
    display: grid
}

@media (width<=600px) {
    .nav-hub {
        grid-template-columns: 1fr
    }
}

.nav-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.75rem;
    transition: border-color .2s,box-shadow .2s,transform .2s;
    position: relative;
    overflow: hidden
}

.nav-card:before {
    content: "";
    background: var(--orange);
    opacity: 0;
    border-radius: 12px 0 0 12px;
    width: 4px;
    height: 100%;
    transition: opacity .2s;
    position: absolute;
    top: 0;
    left: 0
}

.nav-card:hover {
    box-shadow: var(--shadow), 0 0 0 1px #ff5a1f26;
    border-color: #ff5a1f66;
    transform: translateY(-3px)
}

.nav-card:hover:before {
    opacity: 1
}

.nav-card .nav-icon {
    margin-bottom: 1rem;
    font-size: 2rem;
    display: block
}

.nav-card h3 {
    margin: 0 0 .4rem;
    font-size: 1rem;
    font-weight: 700
}

.nav-card p {
    color: var(--text-muted);
    margin: 0;
    font-size: .83rem;
    line-height: 1.5
}

.stepper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
    margin-bottom: 2rem;
    padding: .75rem 1.25rem;
    display: flex
}

.step {
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: .01em;
    border-radius: 6px;
    padding: .3rem .75rem;
    font-size: .72rem;
    font-weight: 600;
    transition: color .15s,background .15s
}

.step:hover {
    color: var(--text-secondary);
    background: var(--surface-soft)
}

.step.active {
    color: var(--orange);
    background: var(--orange-glow);
    font-weight: 700
}

.step.completed {
    color: var(--text-primary);
    font-weight: 700
}

button {
    cursor: pointer;
    font-family: var(--font-ui);
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    letter-spacing: .01em;
    padding: .6rem 1.25rem;
    font-size: .85rem;
    font-weight: 600;
    transition: all .18s
}

button:hover {
    background: var(--surface-soft);
    border-color: var(--border-strong);
    color: var(--text-primary)
}

button.primary {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: var(--shadow-orange);
    font-weight: 700
}

button.primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    box-shadow: 0 4px 24px #ff5a1f59
}

select,input[type=number],input[type=text] {
    font-family: var(--font-ui);
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    appearance: none;
    width: 100%;
    padding: .7rem 1rem;
    font-size: .875rem;
    transition: border-color .2s,box-shadow .2s
}

select:focus,input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px var(--orange-glow);
    outline: none
}

.system-check-row {
    border-bottom: 1px solid var(--border);
    justify-content: space-between;
    align-items: center;
    padding: .875rem 0;
    font-size: .875rem;
    display: flex
}

.system-check-row:last-child {
    border-bottom: none
}

.icon-pass {
    color: var(--status-pass);
    font-size: 1.15em;
    font-weight: 700
}

.icon-warn {
    color: var(--status-warn);
    font-size: 1.15em;
    font-weight: 700
}

.icon-fail {
    color: var(--status-fail);
    font-size: 1.15em;
    font-weight: 700
}

.status-badge {
    border-radius: var(--radius-sm);
    letter-spacing: .05em;
    text-transform: uppercase;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.25rem;
    padding: .4rem .9rem;
    font-size: .75rem;
    font-weight: 700;
    display: inline-flex
}

.status-badge.pass {
    background: var(--status-pass-bg);
    color: var(--status-pass);
    border: 1px solid #10b98133
}

.status-badge.warn {
    background: var(--status-warn-bg);
    color: var(--status-warn);
    border: 1px solid #f59e0b33
}

.status-badge.fail {
    background: var(--status-fail-bg);
    color: var(--status-fail);
    border: 1px solid #ef444433
}

.database-stats {
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    display: grid
}

@media (width<=700px) {
    .database-stats {
        grid-template-columns: repeat(2,1fr)
    }
}

.stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    transition: box-shadow .2s,transform .2s
}

.stat-box:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px)
}

.stat-box .num {
    font-family: var(--font-heading);
    color: var(--orange);
    letter-spacing: -.04em;
    margin-bottom: .25rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    display: block
}

.tooltip {
    color: var(--text-muted);
    cursor: help;
    margin-left: .4rem;
    font-size: .85em;
    display: inline-block
}

.amazon-item-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex-direction: column;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.25rem;
    transition: box-shadow .2s,border-color .2s;
    display: flex
}

.amazon-item-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong)
}

.amazon-item-card .item-type {
    font-family: var(--font-data);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-size: .62rem;
    font-weight: 700
}

.amazon-item-card .item-name {
    color: var(--text-primary);
    flex-grow: 1;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.4
}

.btn-amazon {
    background: var(--orange);
    color: #fff;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    letter-spacing: .02em;
    white-space: nowrap;
    box-shadow: var(--shadow-orange);
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: .55rem 1.1rem;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s,box-shadow .2s;
    display: inline-flex
}

.btn-amazon:hover {
    background: var(--orange-dark);
    box-shadow: 0 4px 20px #ff5a1f59
}

.btn-amazon-sm {
    color: var(--orange);
    border: 1.5px solid var(--orange);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    white-space: nowrap;
    background: 0 0;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: .45rem .9rem;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex
}

.btn-amazon-sm:hover {
    background: var(--orange-glow);
    border-color: var(--orange-dark);
    color: var(--orange-dark)
}

@media (width<=600px) {
    .app-header {
        gap: .5rem;
        height: 56px;
        padding: 0 1rem
    }

    .brand-title {
        letter-spacing: .04em;
        font-size: .78rem
    }

    .brand-mark {
        width: 30px;
        height: 30px;
        font-size: .85rem
    }

    .btn-amazon-sm {
        justify-content: center;
        width: 100%
    }

    .page-body {
        padding: 1rem
    }

    .card {
        border-radius: var(--radius-sm);
        margin-bottom: 1rem;
        padding: 1.25rem
    }

    .stepper {
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        gap: 0;
        padding: .6rem .875rem;
        overflow-x: auto
    }

    .stepper::-webkit-scrollbar {
        display: none
    }

    .step {
        flex-shrink: 0;
        padding: .25rem .6rem;
        font-size: .68rem
    }
}

@media (width<=480px) {
    .nav-hub {
        grid-template-columns: 1fr;
        gap: .875rem
    }

    .nav-card {
        padding: 1.25rem
    }

    .nav-card .nav-icon {
        margin-bottom: .625rem;
        font-size: 1.5rem
    }
}

@media (width<=600px) {
    .database-stats {
        grid-template-columns: repeat(2,1fr);
        gap: .75rem
    }

    .stat-box {
        padding: 1.1rem
    }

    .stat-box .num {
        font-size: 1.6rem
    }
}

.result-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
    display: grid
}

@media (width<=640px) {
    .result-grid {
        grid-template-columns: 1fr;
        gap: 1rem
    }
}

.calc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    display: grid
}

@media (width<=640px) {
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem
    }
}

.calc-results {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem
}

@media (width<=640px) {
    .calc-results {
        padding: 1.25rem
    }
}

.kpi-value {
    font-family: var(--font-heading);
    letter-spacing: -.04em;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1
}

.kpi-label {
    font-family: var(--font-data);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: .25rem;
    font-size: .68rem;
    font-weight: 600
}

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

@media (width<=640px) {
    .amazon-grid {
        grid-template-columns: 1fr;
        gap: 1rem
    }
}

.rec-item-row {
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    display: flex
}

@media (width<=500px) {
    .rec-item-row {
        flex-direction: column;
        align-items: flex-start
    }

    .rec-item-row .btn-amazon-sm {
        justify-content: center;
        width: 100%
    }
}

.dock-row {
    background: var(--surface-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    transition: border-color .2s,box-shadow .2s;
    display: flex
}

@media (width<=480px) {
    .dock-row {
        flex-direction: column;
        align-items: flex-start
    }

    .dock-row .btn-amazon {
        justify-content: center;
        width: 100%
    }

    .cable-grid {
        grid-template-columns: 1fr!important
    }
}

.btn-group {
    flex-wrap: wrap;
    gap: .75rem;
    display: flex
}

@media (width<=400px) {
    .btn-group {
        flex-direction: column
    }

    .btn-group button {
        text-align: center;
        width: 100%
    }
}

.system-check-box {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem
}

label {
    color: var(--text-secondary);
    flex-direction: column;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 500;
    display: flex
}

.result-section-label {
    font-family: var(--font-data);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    font-size: .65rem;
    font-weight: 700
}

.card-status-pill {
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: .05em;
    border-radius: var(--radius-sm);
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    font-size: .6rem;
    font-weight: 700;
    display: inline-flex
}

.card-status-pill.pass {
    color: var(--status-pass);
    background: #22c55e1f;
    border: 1px solid #22c55e40
}

.card-status-pill.fail {
    color: var(--status-fail);
    background: #ef44441f;
    border: 1px solid #ef444459
}

.card-status-pill.warn {
    color: var(--status-warn);
    background: #f59e0b1f;
    border: 1px solid #f59e0b4d
}

.amazon-item-card.card-fail {
    background: var(--surface);
    border-color: #dc262659
}

.amazon-item-card.card-pass {
    border-color: var(--border);
    background: var(--surface)
}

.amazon-item-card.card-warn {
    background: var(--surface);
    border-color: #ff5a1f59
}

.rec-section-container {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
    padding: 1.5rem;
    position: relative;
    overflow: hidden
}

.rec-section-container:before {
    content: "";
    background: var(--orange);
    height: 3px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0
}

.rec-section-header {
    margin-bottom: 1.25rem
}

.rec-cards-grid {
    grid-template-columns: repeat(auto-fit,minmax(290px,1fr));
    gap: 1.25rem;
    display: grid
}

.rec-upgrade-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm,8px);
    box-shadow: var(--shadow-sm);
    flex-direction: column;
    gap: .85rem;
    padding: 1.25rem;
    transition: transform .2s,box-shadow .2s,border-color .2s;
    display: flex
}

.rec-upgrade-card:hover {
    border-color: var(--orange);
    box-shadow: 0 4px 16px var(--orange-glow);
    transform: translateY(-2px)
}

.rec-card-top {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    display: flex
}

.rec-type-badge {
    font-family: var(--font-data);
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--orange);
    background: var(--status-warn-bg);
    border: 1px solid #ff5a1f40;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: .65rem;
    font-weight: 700
}

.rec-replaces-line {
    color: var(--text-muted);
    font-size: .78rem
}

.rec-replaces-name {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: line-through
}

.rec-product-title {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35
}

.rec-highlight-chip {
    font-family: var(--font-data);
    color: var(--navy-soft);
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: .74rem;
    font-weight: 500;
    line-height: 1.4
}

.rec-reason-text {
    color: var(--text-secondary);
    flex-grow: 1;
    margin: 0;
    font-size: .82rem;
    line-height: 1.55
}

.rec-actions-row {
    align-items: center;
    gap: .65rem;
    margin-top: .25rem;
    display: flex
}

.btn-amazon-rec {
    background: var(--orange);
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    letter-spacing: .03em;
    box-shadow: 0 2px 8px var(--orange-glow);
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: .6rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s,box-shadow .15s;
    display: inline-flex;
    color: #fff!important
}

.btn-amazon-rec:hover {
    background: var(--orange-dark);
    box-shadow: 0 4px 14px #ff5a1f52;
    color: #fff!important
}

.btn-apply-rec {
    background: var(--surface);
    color: var(--navy-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-family: var(--font-data);
    letter-spacing: .04em;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: .55rem .95rem;
    font-size: .75rem;
    font-weight: 700;
    transition: all .2s;
    display: inline-flex
}

.btn-apply-rec:hover {
    background: var(--navy-soft);
    color: #fff;
    border-color: var(--navy-soft)
}

@media (width<=640px) {
    .rec-cards-grid {
        grid-template-columns: 1fr
    }

    .rec-actions-row {
        flex-direction: column;
        gap: .5rem
    }

    .btn-amazon-rec,.btn-apply-rec {
        width: 100%
    }
}

.human-summary-card {
    background: var(--surface,#fff);
    border: 1px solid var(--border,#d9e1e8);
    border-radius: var(--radius,12px);
    box-shadow: var(--shadow-sm,0 1px 4px #0b11180f);
    margin-bottom: 1.5rem;
    padding: 1.5rem
}

.human-summary-badges .status-badge {
    border-radius: var(--radius-sm,8px);
    box-sizing: border-box;
    letter-spacing: .04em;
    justify-content: center;
    align-items: center;
    height: 32px;
    padding: 0 .85rem;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    margin-bottom: 0!important
}

.confidence-pill {
    border-radius: var(--radius-sm,8px);
    letter-spacing: .04em;
    text-transform: uppercase;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 .85rem;
    font-family: inherit;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex
}

.confidence-high {
    color: #059669;
    background: #10b98114;
    border: 1px solid #10b98140
}

.confidence-medium {
    color: #d97706;
    background: #f59e0b14;
    border: 1px solid #f59e0b40
}

.confidence-low {
    color: #dc2626;
    background: #ef444414;
    border: 1px solid #ef444440
}

.human-summary-text {
    color: var(--text-primary,#16202b);
    margin-top: 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.6
}

.btn-toggle-tech {
    background: var(--surface-soft,#f4f7fa);
    border: 1px solid var(--border,#d9e1e8);
    color: var(--text-primary,#16202b);
    border-radius: var(--radius-sm,8px);
    cursor: pointer;
    box-sizing: border-box;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    height: 32px;
    padding: 0 .9rem;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    transition: all .2s;
    display: inline-flex
}

.btn-toggle-tech:hover {
    border-color: var(--navy-soft);
    color: var(--navy-soft);
    background: #e8eef4
}

.connection-path-badge {
    background: var(--surface-soft,#f4f7fa);
    border-left: 3px solid var(--orange);
    font-family: var(--font-data,monospace);
    color: var(--text-secondary,#506277);
    border-radius: 4px;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .75rem 1rem;
    font-size: .82rem;
    display: flex
}

.connection-path-badge .path-title {
    color: var(--orange);
    text-transform: uppercase;
    font-weight: 700
}

.tech-details-panel {
    background: var(--surface,#fff);
    border: 1px solid var(--border,#d9e1e8);
    border-radius: var(--radius,12px);
    box-shadow: var(--shadow-sm,0 1px 4px #0b11180f);
    margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem;
    animation: .2s ease-in-out fadeIn
}

.tech-details-header {
    font-family: var(--font-heading,sans-serif);
    text-transform: uppercase;
    color: var(--navy-soft,#151e2b);
    letter-spacing: .05em;
    border-bottom: 1px solid var(--border,#d9e1e8);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    font-size: .85rem;
    font-weight: 700
}

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

.tech-spec-item {
    background: var(--surface-soft,#f4f7fa);
    border-radius: var(--radius-sm,8px);
    border: 1px solid var(--border,#d9e1e8);
    flex-direction: column;
    gap: .35rem;
    padding: .75rem 1rem;
    display: flex
}

.tech-spec-item .spec-label {
    font-family: var(--font-data,monospace);
    text-transform: uppercase;
    color: var(--text-muted,#94a3b8);
    letter-spacing: .05em;
    font-size: .68rem;
    font-weight: 600
}

.tech-spec-item .spec-val {
    font-family: var(--font-heading,sans-serif);
    color: var(--text-primary,#16202b);
    font-size: .88rem;
    font-weight: 700
}

.card-specs-line {
    color: var(--text-secondary,#64748b);
    font-size: .74rem;
    font-family: var(--font-data,monospace);
    background: var(--surface-soft,#f4f7fa);
    border: 1px solid var(--border,#d9e1e8);
    border-radius: 6px;
    margin: .25rem 0;
    padding: 4px 8px;
    line-height: 1.35
}

.bottlenecks-heading {
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-top: 0;
    font-size: 1.15rem;
    font-weight: 700
}

.bottlenecks-list {
    flex-direction: column;
    gap: .85rem;
    display: flex
}

.bottleneck-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--orange);
    border-radius: var(--radius-sm,8px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.15rem
}

.bottleneck-issue {
    color: var(--text-primary);
    align-items: flex-start;
    gap: .55rem;
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.5;
    display: flex
}

.bottleneck-dot {
    color: var(--orange);
    flex-shrink: 0;
    font-weight: 800
}

.bottleneck-fix-banner {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 6px;
    align-items: flex-start;
    gap: .65rem;
    margin-top: .75rem;
    padding: .6rem .85rem;
    display: flex
}

.bottleneck-fix-banner .fix-tag {
    background: var(--navy-soft);
    color: #fff;
    font-family: var(--font-data,monospace);
    letter-spacing: .05em;
    border-radius: 4px;
    flex-shrink: 0;
    padding: 2px 7px;
    font-size: .68rem;
    font-weight: 700
}

.bottleneck-fix-banner .fix-desc {
    color: var(--text-primary);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.45
}

.rec-confidence-tag {
    font-family: var(--font-data,monospace);
    color: var(--status-pass);
    background: var(--status-pass-bg);
    text-transform: uppercase;
    border: 1px solid #00bd6d40;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: .68rem;
    font-weight: 700
}

.rec-why-works {
    background: var(--surface-soft);
    border-left: 3px solid var(--navy-soft);
    border-radius: 0 var(--radius-sm,8px) var(--radius-sm,8px) 0;
    color: var(--text-primary);
    padding: 8px 12px;
    font-size: .82rem;
    line-height: 1.5
}

.rec-why-works strong {
    color: var(--orange);
    font-weight: 700
}

.rec-path-box {
    background: var(--surface-soft,#f4f7fa);
    border: 1px solid var(--border,#d9e1e8);
    border-radius: var(--radius-sm,8px);
    font-family: var(--font-data,monospace);
    flex-direction: column;
    gap: .4rem;
    padding: .75rem 1rem;
    font-size: .75rem;
    display: flex
}

.path-row {
    gap: .5rem;
    line-height: 1.4;
    display: flex
}

.path-row.before {
    color: var(--text-muted)
}

.path-row.before .path-label {
    color: var(--status-fail)
}

.path-row.after {
    color: var(--text-primary);
    font-weight: 500
}

.path-row.after .path-label {
    color: var(--status-pass)
}

.path-label {
    letter-spacing: .04em;
    flex-shrink: 0;
    font-weight: 800
}

.human-summary-header {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: .75rem;
    display: flex
}

.human-summary-badges {
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem;
    display: flex
}

.confidence-reason-text {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm,8px);
    color: var(--text-secondary);
    align-items: flex-start;
    gap: .45rem;
    margin-top: .65rem;
    padding: .5rem .75rem;
    font-size: .78rem;
    line-height: 1.5;
    display: flex
}

.confidence-reason-text .reason-bullet {
    flex-shrink: 0;
    font-size: .85rem
}

@media (width<=640px) {
    .human-summary-card {
        padding: 1.1rem 1rem
    }

    .human-summary-header {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: .75rem;
        display: flex
    }

    .human-summary-badges {
        flex-wrap: wrap;
        align-items: center;
        gap: .5rem;
        display: inline-flex
    }

    .tech-details-panel {
        padding: 1rem
    }

    .tech-details-grid {
        grid-template-columns: 1fr;
        gap: .65rem
    }

    .btn-amazon-sm {
        width: 100%;
        padding: .65rem 1rem;
        font-size: .85rem
    }

    .amazon-item-card {
        padding: 1rem
    }

    .card-specs-line {
        word-break: break-word;
        font-size: .72rem
    }

    .rec-upgrade-card {
        padding: 1.1rem 1rem
    }

    .rec-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: .4rem
    }

    .rec-product-title {
        font-size: 1rem
    }

    .rec-path-box {
        padding: .6rem .75rem;
        font-size: .72rem
    }
}

.workspace-matrix-shortcode-container {
    box-sizing: border-box;
    width: 100%
}

.wm-seo-header {
    text-align: left;
    margin-bottom: 2.25rem
}

.wm-seo-title {
    font-family: var(--font-heading);
    color: var(--navy);
    letter-spacing: -.02em;
    margin: 0 0 .85rem;
    font-size: clamp(1.75rem,3.5vw,2.35rem);
    font-weight: 800;
    line-height: 1.25
}

.wm-seo-lead {
    font-family: var(--font-ui);
    color: var(--slate-soft);
    max-width: 880px;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.65
}

.wm-seo-section {
    border-top: 1px solid var(--border);
    font-family: var(--font-ui);
    color: var(--slate-soft);
    text-align: left;
    margin-top: 3.5rem;
    padding-top: 2.75rem
}

.wm-seo-heading {
    font-family: var(--font-heading);
    color: var(--navy);
    align-items: center;
    gap: .65rem;
    margin: 0 0 1rem;
    font-size: 1.45rem;
    font-weight: 700;
    display: flex
}

.wm-seo-heading-icon {
    width: 28px;
    height: 28px;
    color: var(--orange);
    background: #ff5a1f1a;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    display: inline-flex
}

.wm-seo-text {
    color: var(--slate-soft);
    margin: 0 0 1.25rem;
    font-size: .96rem;
    line-height: 1.7
}

.wm-seo-grid {
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 1.25rem;
    margin: 1.75rem 0 2.5rem;
    display: grid
}

.wm-seo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 1.35rem;
    transition: transform .15s,box-shadow .15s
}

.wm-seo-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
    transform: translateY(-2px)
}

.wm-seo-card-badge {
    font-family: var(--font-data);
    color: var(--orange);
    background: var(--status-warn-bg);
    text-transform: uppercase;
    letter-spacing: .5px;
    border-radius: 4px;
    margin-bottom: .65rem;
    padding: .2rem .55rem;
    font-size: .72rem;
    font-weight: 700;
    display: inline-block
}

.wm-seo-card-title {
    font-family: var(--font-heading);
    color: var(--navy);
    margin: 0 0 .5rem;
    font-size: 1.05rem;
    font-weight: 700
}

.wm-seo-card-desc {
    color: var(--slate-soft);
    margin: 0;
    font-size: .88rem;
    line-height: 1.55
}

.wm-seo-callout {
    background: var(--surface-soft);
    border-left: 4px solid var(--orange);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-primary);
    margin: 1.5rem 0 2rem;
    padding: 1.25rem 1.5rem;
    font-size: .94rem;
    line-height: 1.65
}

.wm-seo-callout strong {
    color: var(--navy)
}

.wm-seo-faq {
    border-top: 1px dashed var(--border);
    text-align: left;
    margin-top: 3rem;
    padding-top: 2rem
}

.wm-faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: .85rem;
    transition: border-color .2s,box-shadow .2s;
    overflow: hidden
}

.wm-faq-item[open] {
    border-color: var(--orange-light);
    box-shadow: var(--shadow-sm)
}

.wm-faq-summary {
    font-family: var(--font-heading);
    color: var(--navy);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.35rem;
    font-size: 1rem;
    font-weight: 600;
    list-style: none;
    display: flex
}

.wm-faq-summary::-webkit-details-marker {
    display: none
}

.wm-faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--slate);
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    margin-left: 1rem;
    transition: transform .2s,color .2s;
    display: inline-flex
}

.wm-faq-item[open] .wm-faq-chevron {
    color: var(--orange);
    transform: rotate(180deg)
}

.wm-faq-answer {
    font-family: var(--font-ui);
    color: var(--slate-soft);
    margin: 0;
    padding: 0 1.35rem 1.25rem;
    font-size: .92rem;
    line-height: 1.65
}

.amazon-item-card {
    background-color: var(--surface,#fff);
    border: 1px solid var(--border,#d9e1e8);
    border-radius: var(--radius-sm,8px);
    box-shadow: var(--shadow-sm,0 1px 4px #0b11180f);
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    display: flex
}

.amazon-item-card .item-type {
    font-family: var(--font-data,monospace);
    color: var(--text-muted,#64748b);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .5rem;
    font-size: .72rem;
    font-weight: 700
}

.amazon-item-card .item-name {
    font-family: var(--font-heading,sans-serif);
    color: var(--text-primary,#0b1118);
    flex-grow: 1;
    margin-bottom: .75rem;
    font-weight: 700
}

.btn-amazon {
    background-color: var(--orange,#ff5a1f);
    border-radius: var(--radius-sm,8px);
    letter-spacing: .03em;
    text-align: center;
    box-shadow: 0 2px 8px var(--orange-glow,#ff5a1f24);
    justify-content: center;
    align-items: center;
    padding: .65rem 1.25rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex;
    color: #fff!important
}

.btn-amazon:hover {
    background-color: var(--orange-dark,#e5480a);
    box-shadow: 0 4px 14px #ff5a1f52;
    color: #fff!important
}

.btn-amazon-sm {
    background-color: var(--orange,#ff5a1f);
    border: 1px solid var(--orange,#ff5a1f);
    border-radius: var(--radius-sm,8px);
    font-family: var(--font-ui,sans-serif);
    letter-spacing: .03em;
    text-align: center;
    box-shadow: 0 2px 8px var(--orange-glow,#ff5a1f24);
    justify-content: center;
    align-items: center;
    padding: .5rem .95rem;
    font-size: .8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
    display: inline-flex;
    color: #fff!important
}

.btn-amazon-sm:hover {
    background-color: var(--orange-dark,#e5480a);
    border-color: var(--orange-dark,#e5480a);
    box-shadow: 0 4px 14px #ff5a1f52;
    color: #fff!important
}
