.armstrong-ai-shell {
    --armstrong-ai-bg-app: #f6f7f9;
    --armstrong-ai-bg-surface: #ffffff;
    --armstrong-ai-bg-panel: #eef1f4;
    --armstrong-ai-bg-panel-strong: #e4e9ef;
    --armstrong-ai-border: #d9dfe6;
    --armstrong-ai-text: #16202a;
    --armstrong-ai-text-muted: #5b6570;
    --armstrong-ai-text-soft: #7a8592;
    --armstrong-ai-brand: #0f766e;
    --armstrong-ai-accent: #0b5fff;
    --armstrong-ai-cta: #eb5e28;
    --armstrong-ai-cta-strong: #c2410c;
    --armstrong-ai-success: #198754;
    --armstrong-ai-warning: #d39b00;
    --armstrong-ai-danger: #cf3e36;
    --armstrong-ai-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    --armstrong-ai-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
    color: var(--armstrong-ai-text);
    background: var(--armstrong-ai-bg-app);
    border-radius: 28px;
    box-sizing: border-box;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.armstrong-ai-shell * {
    box-sizing: border-box;
}

.armstrong-ai-shell__hero,
.armstrong-ai-shell__layout,
.armstrong-ai-shell__detail-grid,
.armstrong-ai-shell__panel-grid,
.armstrong-ai-shell__meta-grid {
    display: grid;
    gap: 20px;
}

.armstrong-ai-shell__hero {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
}

.armstrong-ai-shell__hero-main,
.armstrong-ai-shell__hero-side,
.armstrong-ai-shell__rail,
.armstrong-ai-shell__workspace,
.armstrong-ai-shell__context-card,
.armstrong-ai-shell__answer-card,
.armstrong-ai-shell__detail-card,
.armstrong-ai-shell__panel,
.armstrong-ai-shell__meta-card {
    background: var(--armstrong-ai-bg-surface);
    border: 1px solid var(--armstrong-ai-border);
    border-radius: 24px;
    box-shadow: var(--armstrong-ai-shadow);
}

.armstrong-ai-shell__hero-main,
.armstrong-ai-shell__workspace,
.armstrong-ai-shell__rail {
    padding: 24px;
}

.armstrong-ai-shell__hero-main {
    display: grid;
    gap: 18px;
}

.armstrong-ai-shell__topline,
.armstrong-ai-shell__answer-head,
.armstrong-ai-shell__detail-head,
.armstrong-ai-shell__panel-head,
.armstrong-ai-shell__rail-head,
.armstrong-ai-shell__search-input-wrap,
.armstrong-ai-shell__hero-actions,
.armstrong-ai-shell__answer-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.armstrong-ai-shell__eyebrow,
.armstrong-ai-shell__panel-kicker,
.armstrong-ai-shell__meta-label,
.armstrong-ai-shell__indicator-grid span,
.armstrong-ai-shell__format-list li::before,
.armstrong-ai-shell__search-meta,
.armstrong-ai-shell__search-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
}

.armstrong-ai-shell__eyebrow,
.armstrong-ai-shell__panel-kicker,
.armstrong-ai-shell__meta-label,
.armstrong-ai-shell__indicator-grid span {
    color: var(--armstrong-ai-brand);
}

.armstrong-ai-shell__title {
    margin: 6px 0 8px;
    font-size: 34px;
    line-height: 1.15;
}

.armstrong-ai-shell__intro,
.armstrong-ai-shell__context-copy,
.armstrong-ai-shell__search-meta,
.armstrong-ai-shell__warning,
.armstrong-ai-shell__question-card,
.armstrong-ai-shell__answer-body,
.armstrong-ai-shell__source-meta,
.armstrong-ai-shell__mini-note,
.armstrong-ai-shell__meta-card small,
.armstrong-ai-shell__source-empty,
.armstrong-ai-shell__search-empty {
    color: var(--armstrong-ai-text-muted);
}

.armstrong-ai-shell__utility-chip,
.armstrong-ai-shell__badge,
.armstrong-ai-shell__scope-button,
.armstrong-ai-shell__tab,
.armstrong-ai-shell__quick-action,
.armstrong-ai-shell__mini-action,
.armstrong-ai-shell__suggestion,
.armstrong-ai-shell__search-tag,
.armstrong-ai-shell__secondary-button,
.armstrong-ai-shell__primary-button {
    border-radius: 999px;
    border: 1px solid var(--armstrong-ai-border);
    background: #ffffff;
    font: inherit;
    color: var(--armstrong-ai-text);
}

.armstrong-ai-shell__utility-chip,
.armstrong-ai-shell__badge,
.armstrong-ai-shell__mini-action,
.armstrong-ai-shell__search-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
}

.armstrong-ai-shell__utility-chip--solid,
.armstrong-ai-shell__badge,
.armstrong-ai-shell__primary-button,
.armstrong-ai-shell__scope-button.is-active,
.armstrong-ai-shell__tab.is-active,
.armstrong-ai-shell__quick-action.is-active,
.armstrong-ai-shell__suggestion:hover,
.armstrong-ai-shell__suggestion:focus {
    background: var(--armstrong-ai-accent);
    color: #ffffff;
    border-color: var(--armstrong-ai-accent);
}

.armstrong-ai-shell__badge[data-confidence-tone="high"] {
    background: var(--armstrong-ai-success);
    border-color: var(--armstrong-ai-success);
}

.armstrong-ai-shell__badge[data-confidence-tone="medium"] {
    background: #c28a00;
    border-color: #c28a00;
}

.armstrong-ai-shell__badge[data-confidence-tone="low"] {
    background: var(--armstrong-ai-danger);
    border-color: var(--armstrong-ai-danger);
}

.armstrong-ai-shell__badge[data-confidence-tone="pending"] {
    background: var(--armstrong-ai-text-muted);
    border-color: var(--armstrong-ai-text-muted);
}

.armstrong-ai-shell__searchbar {
    display: grid;
    gap: 12px;
}

.armstrong-ai-shell__search-header {
    display: grid;
    gap: 6px;
}

.armstrong-ai-shell__search-help {
    margin: 6px 0 0;
    color: var(--armstrong-ai-text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.armstrong-ai-shell__search-input-wrap {
    align-items: center;
    background: linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
    border: 1px solid rgba(11, 95, 255, 0.14);
    border-radius: 20px;
    padding: 16px 18px;
}

.armstrong-ai-shell__search-input,
.armstrong-ai-shell__field-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font: inherit;
    color: var(--armstrong-ai-text);
}

.armstrong-ai-shell__search-input {
    font-size: 18px;
}

.armstrong-ai-shell__voice-button,
.armstrong-ai-shell__primary-button,
.armstrong-ai-shell__secondary-button,
.armstrong-ai-shell__scope-button,
.armstrong-ai-shell__tab,
.armstrong-ai-shell__quick-action,
.armstrong-ai-shell__mini-action,
.armstrong-ai-shell__suggestion {
    cursor: pointer;
    transition: 0.2s ease;
}

.armstrong-ai-shell__voice-button {
    border: 1px solid var(--armstrong-ai-border);
    border-radius: 999px;
    padding: 10px 14px;
    background: #ffffff;
    color: var(--armstrong-ai-text-soft);
}

.armstrong-ai-shell__secondary-button {
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--armstrong-ai-text);
    background: #ffffff;
    border-color: rgba(91, 101, 112, 0.24);
}

.armstrong-ai-shell__secondary-button:hover,
.armstrong-ai-shell__secondary-button:focus {
    border-color: var(--armstrong-ai-accent);
    color: var(--armstrong-ai-accent);
}

.armstrong-ai-shell__voice-button[disabled] {
    cursor: not-allowed;
    opacity: 0.8;
}

.armstrong-ai-shell__scope-toggle,
.armstrong-ai-shell__tabs,
.armstrong-ai-shell__quick-actions,
.armstrong-ai-shell__suggestions,
.armstrong-ai-shell__hero-actions,
.armstrong-ai-shell__search-controls,
.armstrong-ai-shell__search-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.armstrong-ai-shell__warehouse-helper,
.armstrong-ai-shell__workspace-helper {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.14);
    color: var(--armstrong-ai-text);
}

.armstrong-ai-shell__workspace-helper {
    background: #f8fafc;
    border-color: rgba(217, 223, 230, 0.92);
}

.armstrong-ai-shell__warehouse-helper strong,
.armstrong-ai-shell__workspace-helper strong {
    font-size: 13px;
}

.armstrong-ai-shell__warehouse-helper span,
.armstrong-ai-shell__workspace-helper span {
    font-size: 13px;
    color: var(--armstrong-ai-text-muted);
}

.armstrong-ai-shell__scope-button,
.armstrong-ai-shell__tab,
.armstrong-ai-shell__quick-action,
.armstrong-ai-shell__suggestion {
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
}

.armstrong-ai-shell__search-controls {
    align-items: center;
    justify-content: space-between;
}

.armstrong-ai-shell__search-actions {
    align-items: center;
    justify-content: flex-end;
}

.armstrong-ai-shell__scope-button:hover,
.armstrong-ai-shell__tab:hover,
.armstrong-ai-shell__quick-action:hover,
.armstrong-ai-shell__mini-action:hover,
.armstrong-ai-shell__suggestion:hover,
.armstrong-ai-shell__primary-button:hover,
.armstrong-ai-shell__secondary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.armstrong-ai-shell__roadmap-list,
.armstrong-ai-shell__format-list,
.armstrong-ai-shell__sources-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.armstrong-ai-shell__roadmap-list li,
.armstrong-ai-shell__format-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(217, 223, 230, 0.9);
}

.armstrong-ai-shell__roadmap-list li:last-child,
.armstrong-ai-shell__format-list li:last-child,
.armstrong-ai-shell__search-card:last-child,
.armstrong-ai-shell__source-item:last-child {
    border-bottom: none;
}

.armstrong-ai-shell__layout {
    grid-template-columns: 300px minmax(0, 1fr);
}

.armstrong-ai-shell--workspace .armstrong-ai-shell__layout {
    grid-template-columns: minmax(0, 1fr);
}

.armstrong-ai-shell--workspace .armstrong-ai-shell__rail,
.armstrong-ai-shell--workspace .armstrong-ai-shell__warehouse-card,
.armstrong-ai-shell--workspace .armstrong-ai-shell__warehouse-matches-card,
.armstrong-ai-shell--workspace .armstrong-ai-shell__warehouse-drawer,
.armstrong-ai-shell--workspace .armstrong-ai-shell__detail-grid,
.armstrong-ai-shell--workspace .armstrong-ai-shell__panel-grid {
    display: none;
}

.armstrong-ai-shell--workspace .armstrong-ai-shell__workspace {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.armstrong-ai-shell--workspace .armstrong-ai-shell__tab {
    min-width: 200px;
    justify-content: center;
    padding: 14px 18px;
    font-weight: 700;
}

.armstrong-ai-shell--workspace .armstrong-ai-shell__context-card,
.armstrong-ai-shell--workspace .armstrong-ai-shell__answer-card,
.armstrong-ai-shell--workspace .armstrong-ai-shell__meta-grid,
.armstrong-ai-shell--workspace .armstrong-ai-shell__sources-panel,
.armstrong-ai-shell--workspace .armstrong-ai-shell__related-panel {
    box-shadow: var(--armstrong-ai-shadow-soft);
}

.armstrong-ai-shell__suggestions-wrap {
    display: grid;
    gap: 10px;
}

.armstrong-ai-shell__rail,
.armstrong-ai-shell__workspace {
    display: grid;
    gap: 18px;
    align-content: start;
}

.armstrong-ai-shell__rail-card {
    border-radius: 20px;
    background: var(--armstrong-ai-bg-panel);
    padding: 18px;
}

.armstrong-ai-shell__rail-head h3,
.armstrong-ai-shell__answer-head h3,
.armstrong-ai-shell__panel-head h3,
.armstrong-ai-shell__detail-head h3,
.armstrong-ai-shell__context-title {
    margin: 0;
}

.armstrong-ai-shell__search-list {
    display: grid;
    gap: 12px;
}

.armstrong-ai-shell__search-card {
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(217, 223, 230, 0.95);
}

.armstrong-ai-shell__search-card button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
}

.armstrong-ai-shell__search-card strong,
.armstrong-ai-shell__meta-card strong,
.armstrong-ai-shell__indicator-grid strong,
.armstrong-ai-shell__source-title,
.armstrong-ai-shell__answer-body strong {
    display: block;
    margin-bottom: 6px;
    color: var(--armstrong-ai-text);
}

.armstrong-ai-shell__search-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.armstrong-ai-shell__search-tag {
    padding: 6px 10px;
    font-size: 11px;
    color: var(--armstrong-ai-text-soft);
}

.armstrong-ai-shell__context-card,
.armstrong-ai-shell__answer-card,
.armstrong-ai-shell__detail-card,
.armstrong-ai-shell__panel,
.armstrong-ai-shell__meta-card {
    padding: 20px;
}

.armstrong-ai-shell__question-answer-stack,
.armstrong-ai-shell__question-wrap,
.armstrong-ai-shell__answer-wrap,
.armstrong-ai-shell__confidence-keys {
    display: grid;
    gap: 12px;
}

.armstrong-ai-shell__section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--armstrong-ai-text-soft);
}

.armstrong-ai-shell__context-card {
    display: grid;
    gap: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.armstrong-ai-shell__context-tools {
    display: grid;
    gap: 16px;
}

.armstrong-ai-shell__field-group {
    display: grid;
    gap: 8px;
    padding: 16px;
    background: var(--armstrong-ai-bg-panel);
    border-radius: 18px;
    border: 1px solid var(--armstrong-ai-border);
}

.armstrong-ai-shell__field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--armstrong-ai-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.armstrong-ai-shell__field-input {
    background: #ffffff;
    border: 1px solid var(--armstrong-ai-border);
    border-radius: 14px;
    padding: 12px 14px;
}

.armstrong-ai-shell__inventory-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.armstrong-ai-shell__toolbar-note {
    font-size: 13px;
    color: var(--armstrong-ai-text-muted);
}

.armstrong-ai-shell__field-group--inventory {
    gap: 18px;
}

.armstrong-ai-shell__filter-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.armstrong-ai-shell__filter-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.armstrong-ai-shell__filter-field {
    display: grid;
    gap: 8px;
}

.armstrong-ai-shell__filter-field--wide {
    grid-column: span 2;
}

.armstrong-ai-shell__filter-field--status {
    grid-column: span 2;
}

.armstrong-ai-shell__notx-banner {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(217, 119, 6, 0.08);
    border: 1px solid rgba(217, 119, 6, 0.18);
    color: #9a3412;
}

.armstrong-ai-shell__notx-banner strong {
    font-size: 14px;
}

.armstrong-ai-shell__notx-banner span {
    font-size: 13px;
    line-height: 1.55;
}

.armstrong-ai-shell__warehouse-field-help {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--armstrong-ai-text-muted);
}

.armstrong-ai-shell__status {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(91, 101, 112, 0.1);
    color: var(--armstrong-ai-text-muted);
    border: 1px solid transparent;
}

.armstrong-ai-shell__status[data-tone="success"] {
    background: rgba(25, 135, 84, 0.12);
    color: var(--armstrong-ai-success);
    border-color: rgba(25, 135, 84, 0.18);
}

.armstrong-ai-shell__status[data-tone="warning"] {
    background: rgba(211, 155, 0, 0.12);
    color: #8b6900;
    border-color: rgba(211, 155, 0, 0.2);
}

.armstrong-ai-shell__status[data-tone="danger"] {
    background: rgba(207, 62, 54, 0.12);
    color: var(--armstrong-ai-danger);
    border-color: rgba(207, 62, 54, 0.2);
}

.armstrong-ai-shell__question-card {
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 18px;
    border: 1px solid var(--armstrong-ai-border);
}

.armstrong-ai-shell__answer-card {
    gap: 16px;
}

.armstrong-ai-shell__answer-wrap {
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(217, 223, 230, 0.95);
    background: #ffffff;
}

.armstrong-ai-shell__answer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.armstrong-ai-shell__answer-body {
    line-height: 1.7;
    white-space: pre-wrap;
}

.armstrong-ai-shell__warning {
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7df;
    border: 1px solid #f1d98d;
    color: #7a5a00;
}

.armstrong-ai-shell__primary-button {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--armstrong-ai-cta) 0%, var(--armstrong-ai-cta-strong) 100%);
    box-shadow: 0 14px 28px rgba(194, 65, 12, 0.26);
}

.armstrong-ai-shell__primary-button:hover,
.armstrong-ai-shell__primary-button:focus {
    background: linear-gradient(135deg, #f97316 0%, var(--armstrong-ai-cta-strong) 100%);
    box-shadow: 0 16px 32px rgba(194, 65, 12, 0.32);
}

.armstrong-ai-shell__primary-button:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.armstrong-ai-shell__mini-action {
    padding: 8px 12px;
    color: var(--armstrong-ai-text-soft);
}

.armstrong-ai-shell__meta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.armstrong-ai-shell__meta-card {
    display: grid;
    gap: 8px;
}

.armstrong-ai-shell__meta-card--confidence {
    border: 1px solid rgba(217, 223, 230, 0.95);
}

.armstrong-ai-shell__meta-card--confidence[data-confidence-tone="high"] {
    background: linear-gradient(180deg, #f2fbf6 0%, #ffffff 100%);
    border-color: rgba(25, 135, 84, 0.24);
}

.armstrong-ai-shell__meta-card--confidence[data-confidence-tone="medium"] {
    background: linear-gradient(180deg, #fff8e8 0%, #ffffff 100%);
    border-color: rgba(211, 155, 0, 0.28);
}

.armstrong-ai-shell__meta-card--confidence[data-confidence-tone="low"] {
    background: linear-gradient(180deg, #fff1f0 0%, #ffffff 100%);
    border-color: rgba(207, 62, 54, 0.26);
}

.armstrong-ai-shell__meta-card--confidence[data-confidence-tone="pending"] {
    background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
}

.armstrong-ai-shell__meta-card strong {
    font-size: 18px;
    line-height: 1.3;
}

.armstrong-ai-shell__detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.armstrong-ai-shell__indicator-grid div {
    padding: 14px;
    background: var(--armstrong-ai-bg-panel);
    border-radius: 16px;
}

.armstrong-ai-shell__confidence-keys {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
}

.armstrong-ai-shell__confidence-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid transparent;
    opacity: 0.7;
}

.armstrong-ai-shell__confidence-key.is-active {
    opacity: 1;
    box-shadow: inset 0 0 0 2px rgba(15, 23, 42, 0.08);
}

.armstrong-ai-shell__confidence-key--high {
    background: rgba(25, 135, 84, 0.12);
    color: var(--armstrong-ai-success);
    border-color: rgba(25, 135, 84, 0.18);
}

.armstrong-ai-shell__confidence-key--medium {
    background: rgba(211, 155, 0, 0.14);
    color: #8b6900;
    border-color: rgba(211, 155, 0, 0.22);
}

.armstrong-ai-shell__confidence-key--low {
    background: rgba(207, 62, 54, 0.12);
    color: var(--armstrong-ai-danger);
    border-color: rgba(207, 62, 54, 0.2);
}

.armstrong-ai-shell__confidence-key--pending {
    background: rgba(91, 101, 112, 0.1);
    color: var(--armstrong-ai-text-muted);
    border-color: rgba(91, 101, 112, 0.16);
}

.armstrong-ai-shell__format-list li {
    position: relative;
    padding-left: 20px;
}

.armstrong-ai-shell__format-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 11px;
}

.armstrong-ai-shell__panel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.armstrong-ai-shell__sources-list {
    display: grid;
    gap: 12px;
}

.armstrong-ai-shell__source-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--armstrong-ai-bg-panel);
    border: 1px solid rgba(217, 223, 230, 0.92);
}

.armstrong-ai-shell__source-meta {
    display: block;
    line-height: 1.5;
}

.armstrong-ai-shell__source-empty,
.armstrong-ai-shell__search-empty {
    padding: 12px 0 4px;
    font-size: 14px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

@media (max-width: 1200px) {
    .armstrong-ai-shell__hero,
    .armstrong-ai-shell__layout,
    .armstrong-ai-shell__meta-grid,
    .armstrong-ai-shell__detail-grid,
    .armstrong-ai-shell__panel-grid {
        grid-template-columns: 1fr;
    }

    .armstrong-ai-shell__workspace {
        order: 1;
    }

    .armstrong-ai-shell__rail {
        order: 2;
    }
}

@media (max-width: 860px) {
    .armstrong-ai-shell {
        padding: 16px;
        border-radius: 0;
    }

    .armstrong-ai-shell__hero-main,
    .armstrong-ai-shell__hero-side,
    .armstrong-ai-shell__workspace,
    .armstrong-ai-shell__rail {
        padding: 18px;
    }

    .armstrong-ai-shell__title {
        font-size: 28px;
    }

    .armstrong-ai-shell__tabs,
    .armstrong-ai-shell__quick-actions,
    .armstrong-ai-shell__hero-actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .armstrong-ai-shell__search-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .armstrong-ai-shell__search-actions {
        width: 100%;
        justify-content: stretch;
    }

    .armstrong-ai-shell__search-actions > * {
        flex: 1 1 0;
    }

    .armstrong-ai-shell__search-input {
        font-size: 16px;
    }

    .armstrong-ai-shell__indicator-grid,
    .armstrong-ai-shell__confidence-keys {
        grid-template-columns: 1fr;
    }
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__hero {
    grid-template-columns: minmax(0, 1fr);
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__hero-actions,
.armstrong-ai-shell--warehouse .armstrong-ai-shell__scope-toggle,
.armstrong-ai-shell--warehouse .armstrong-ai-shell__suggestions,
.armstrong-ai-shell--warehouse .armstrong-ai-shell__tabs,
.armstrong-ai-shell--warehouse .armstrong-ai-shell__page-link-row {
    display: none;
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__workspace {
    max-width: 100%;
    order: 1;
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__rail {
    display: grid;
    order: 2;
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__rail-card:not(:first-child) {
    display: none;
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__meta-grid,
.armstrong-ai-shell--warehouse .armstrong-ai-shell__detail-grid,
.armstrong-ai-shell--warehouse .armstrong-ai-shell__panel-grid {
    display: none;
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__context-card {
    grid-template-columns: minmax(0, 1fr);
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__context-tools {
    align-items: stretch;
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__field-group--sku {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.armstrong-ai-shell--warehouse .armstrong-ai-shell__suggestions {
    margin-top: 8px;
}

.armstrong-ai-shell__page-link-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
}

.armstrong-ai-shell__page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(217, 119, 6, 0.32);
    background: rgba(255, 247, 237, 0.92);
    color: #9a3412;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(154, 52, 18, 0.12);
}

.armstrong-ai-shell__page-link:hover,
.armstrong-ai-shell__page-link:focus {
    background: #ffffff;
    color: #7c2d12;
}

.armstrong-ai-shell__page-link-note {
    font-size: 13px;
    color: #6b7280;
}

.armstrong-ai-shell__warehouse-card {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(217, 119, 6, 0.14);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}

.armstrong-ai-shell__warehouse-matches-card {
    background: #ffffff;
    border: 1px solid rgba(217, 223, 230, 0.92);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--armstrong-ai-shadow-soft);
    margin-bottom: 24px;
}

.armstrong-ai-shell__warehouse-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.armstrong-ai-shell__warehouse-head h3 {
    margin: 6px 0 0;
    font-size: 24px;
    color: #111827;
}

.armstrong-ai-shell__warehouse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.armstrong-ai-shell__warehouse-panel {
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 18px;
}

.armstrong-ai-shell__warehouse-panel--full {
    grid-column: 1 / -1;
}

.armstrong-ai-shell__warehouse-panel h4 {
    margin: 0 0 14px;
    font-size: 15px;
    color: #92400e;
}

.armstrong-ai-shell__warehouse-fields-list {
    margin: 0;
    display: grid;
    gap: 12px;
}

.armstrong-ai-shell__warehouse-field {
    display: grid;
    gap: 4px;
}

.armstrong-ai-shell__warehouse-field dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #92400e;
}

.armstrong-ai-shell__warehouse-field dd {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.armstrong-ai-shell__warehouse-quantities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.armstrong-ai-shell__warehouse-quantity-card {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.18);
}

.armstrong-ai-shell__warehouse-quantity-card strong {
    font-size: 14px;
    color: #9a3412;
}

.armstrong-ai-shell__warehouse-quantity-card span {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.armstrong-ai-shell__warehouse-empty {
    color: #6b7280;
    font-size: 14px;
}

.armstrong-ai-shell__warehouse-match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.armstrong-ai-shell__warehouse-match-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(217, 223, 230, 0.92);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: var(--armstrong-ai-shadow-soft);
}

.armstrong-ai-shell__warehouse-match-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.armstrong-ai-shell__warehouse-match-head h4 {
    margin: 0;
    font-size: 17px;
    color: #111827;
}

.armstrong-ai-shell__warehouse-match-meta,
.armstrong-ai-shell__warehouse-match-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--armstrong-ai-text-muted);
}

.armstrong-ai-shell__warehouse-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(217, 223, 230, 0.92);
    background: rgba(91, 101, 112, 0.1);
    color: var(--armstrong-ai-text);
}

.armstrong-ai-shell__warehouse-status-badge[data-status="available"] {
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.2);
    color: var(--armstrong-ai-success);
}

.armstrong-ai-shell__warehouse-status-badge[data-status="low-inventory"] {
    background: rgba(211, 155, 0, 0.14);
    border-color: rgba(211, 155, 0, 0.22);
    color: #8b6900;
}

.armstrong-ai-shell__warehouse-status-badge[data-status="out-of-stock"],
.armstrong-ai-shell__warehouse-status-badge[data-status="not-available-for-armstrong-mccall-store-ordering"] {
    background: rgba(207, 62, 54, 0.12);
    border-color: rgba(207, 62, 54, 0.2);
    color: var(--armstrong-ai-danger);
}

.armstrong-ai-shell__warehouse-match-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.armstrong-ai-shell__warehouse-match-detail {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--armstrong-ai-bg-panel);
}

.armstrong-ai-shell__warehouse-match-detail span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--armstrong-ai-text-soft);
}

.armstrong-ai-shell__warehouse-match-detail strong {
    font-size: 16px;
    color: #111827;
}

.armstrong-ai-shell__warehouse-match-warehouses {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.armstrong-ai-shell__warehouse-inline-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.18);
    color: #9a3412;
    font-size: 12px;
    font-weight: 700;
}

.armstrong-ai-shell__warehouse-card-actions {
    display: flex;
    justify-content: flex-end;
}

.armstrong-ai-shell__warehouse-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.armstrong-ai-shell__warehouse-drawer-scrim {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.48);
}

.armstrong-ai-shell__warehouse-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(520px, 100%);
    height: 100%;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.16);
    padding: 24px;
    display: grid;
    gap: 20px;
}

.armstrong-ai-shell__warehouse-drawer-head,
.armstrong-ai-shell__warehouse-drawer-summary {
    display: grid;
    gap: 12px;
}

.armstrong-ai-shell__warehouse-drawer-grid {
    display: grid;
    gap: 16px;
}

.armstrong-ai-shell__warehouse-breakdown {
    display: grid;
    gap: 10px;
}

.armstrong-ai-shell__warehouse-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--armstrong-ai-bg-panel);
    border: 1px solid rgba(217, 223, 230, 0.92);
}

body.armstrong-ai-shell-drawer-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .armstrong-ai-shell--warehouse .armstrong-ai-shell__layout {
        grid-template-columns: 1fr;
    }

    .armstrong-ai-shell--warehouse .armstrong-ai-shell__rail {
        display: none;
    }

    .armstrong-ai-shell__filter-grid,
    .armstrong-ai-shell__filter-grid--compact,
    .armstrong-ai-shell--warehouse .armstrong-ai-shell__field-group--sku,
    .armstrong-ai-shell__warehouse-grid {
        grid-template-columns: 1fr;
    }

    .armstrong-ai-shell__filter-field--wide {
        grid-column: auto;
    }

    .armstrong-ai-shell__page-link-row {
        justify-content: stretch;
    }

    .armstrong-ai-shell__page-link {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .armstrong-ai-shell__topline,
    .armstrong-ai-shell__answer-head,
    .armstrong-ai-shell__detail-head,
    .armstrong-ai-shell__panel-head,
    .armstrong-ai-shell__rail-head,
    .armstrong-ai-shell__search-input-wrap,
    .armstrong-ai-shell__hero-actions,
    .armstrong-ai-shell__answer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .armstrong-ai-shell__scope-toggle,
    .armstrong-ai-shell__search-actions {
        width: 100%;
    }

    .armstrong-ai-shell__scope-button,
    .armstrong-ai-shell__tab,
    .armstrong-ai-shell__quick-action,
    .armstrong-ai-shell__suggestion,
    .armstrong-ai-shell__primary-button,
    .armstrong-ai-shell__secondary-button,
    .armstrong-ai-shell__mini-action,
    .armstrong-ai-shell__voice-button {
        width: 100%;
        justify-content: center;
    }

    .armstrong-ai-shell__search-input-wrap {
        padding: 14px;
    }

    .armstrong-ai-shell__utility-chip {
        width: 100%;
        justify-content: center;
    }
}
