:root {
    --sa-brand-50: #ecfbfb;
    --sa-brand-100: #d4f5f5;
    --sa-brand-200: #a8eaeb;
    --sa-brand-500: #4fcccd;
    --sa-brand-600: #47b8b8;
    --sa-brand-700: #378e8f;
    --sa-brand-800: #2d7172;
    --sa-ink: #172033;
    --sa-muted: #667085;
    --sa-line: #e2e8f0;
    --sa-panel: #ffffff;
    --sa-canvas: #f8fafc;
    --sa-blue: #3b82f6;
    --sa-purple: #8b5cf6;
    --sa-red: #ef4444;
    --sa-amber: #f59e0b;
    --sa-site-header-height: 81px;
}

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

.sa-page {
    min-width: 0;
    overflow-x: clip;
    background: #fff;
    color: var(--sa-ink);
    font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.sa-page button,
.sa-page input,
.sa-page select {
    font-family: inherit;
}

.sa-page button,
.sa-page select {
    cursor: pointer;
}

.sa-page svg {
    display: block;
}

.sa-dialog.sa-access-dialog {
    width: min(480px, 100%);
    max-height: calc(100vh - 32px);
    grid-template-rows: auto auto auto;
}

.sa-access-dialog > p {
    margin: 0;
    padding: 18px 20px 0;
    color: #526075;
    font-size: 13px;
    line-height: 1.6;
}

.sa-access-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding: 18px 20px 20px;
}

.sa-access-dialog__actions .sa-button {
    min-width: 132px;
}

.sa-access-dialog__actions .sa-button--primary {
    min-width: 190px;
}

.sa-access-dialog .sa-dialog__header {
    padding: 17px 20px 15px;
}

.sa-access-dialog .sa-dialog__header h2 {
    font-size: 19px;
    line-height: 1.25;
}

.sa-access-dialog .sa-dialog__header .sa-icon-button {
    width: 36px;
    height: 36px;
}

.sa-page [data-structural-locked="true"]::after {
    margin-left: 5px;
    content: "Plan";
    color: #8a5a00;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

@media (max-width: 540px) {
    #structural-access-dialog {
        padding: 12px;
    }

    .sa-dialog.sa-access-dialog {
        width: 100%;
        border-radius: 13px;
    }

    .sa-access-dialog .sa-dialog__header {
        align-items: flex-start;
        padding: 15px 16px 13px;
    }

    .sa-access-dialog > p {
        padding: 15px 16px 0;
    }

    .sa-access-dialog__actions {
        grid-template-columns: minmax(0, 1fr);
        display: grid;
        padding: 16px;
    }

    .sa-access-dialog__actions .sa-button {
        width: 100%;
        min-width: 0;
    }
}

.sa-page [hidden] {
    display: none !important;
}

.sa-shell {
    width: min(100% - 40px, 1520px);
    margin-inline: auto;
}

.sa-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.sa-intro {
    position: relative;
    border-bottom: 1px solid #dce8e8;
    background:
        radial-gradient(circle at 11% 10%, rgba(79, 204, 205, 0.13), transparent 29rem),
        linear-gradient(120deg, #f7ffff 0%, #fff 58%, #f8fafc 100%);
}

.sa-intro::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(55, 142, 143, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(55, 142, 143, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    mask-image: linear-gradient(90deg, #000, transparent 65%);
}

.sa-intro__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    padding-block: 28px 30px;
}

.sa-intro__copy {
    min-width: 0;
}

.sa-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--sa-brand-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sa-eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sa-brand-500);
    box-shadow: 0 0 0 4px rgba(79, 204, 205, 0.15);
}

.sa-intro h1 {
    margin: 7px 0 0;
    color: #142033;
    font-size: clamp(30px, 3.2vw, 48px);
    font-weight: 780;
    letter-spacing: -0.038em;
    line-height: 1.08;
}

.sa-intro__copy > p:last-child {
    max-width: 850px;
    margin: 9px 0 0;
    color: #596579;
    font-size: 16px;
    line-height: 1.65;
}

.sa-intro__features {
    display: grid;
    gap: 7px;
    min-width: 250px;
    padding: 14px 16px;
    border: 1px solid rgba(55, 142, 143, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(23, 32, 51, 0.05);
    backdrop-filter: blur(8px);
}

.sa-intro__features span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

.sa-intro__features svg {
    width: 18px;
    height: 18px;
    padding: 3px;
    border-radius: 50%;
    background: var(--sa-brand-100);
    fill: none;
    stroke: var(--sa-brand-800);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.3;
}

.sa-workspace {
    width: 100%;
    min-width: 0;
    border-bottom: 1px solid var(--sa-line);
    background: #edf2f6;
}

.sa-appbar {
    position: relative;
    z-index: 60;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto minmax(430px, 1fr);
    align-items: center;
    gap: 18px;
    min-height: 66px;
    padding: 9px 18px;
    border-bottom: 1px solid #d8e0e8;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.sa-appbar__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.sa-model-name {
    width: min(100%, 250px);
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    color: #1e293b;
    background: transparent;
    font-size: 15px;
    font-weight: 750;
    text-overflow: ellipsis;
}

.sa-model-name:hover,
.sa-model-name:focus {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.sa-model-name:focus {
    box-shadow: 0 0 0 3px rgba(79, 204, 205, 0.18);
}

.sa-save-state {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    color: #7b8797;
    font-size: 11px;
    font-weight: 650;
}

.sa-save-state > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

.sa-save-state.is-saving > span {
    background: var(--sa-amber);
}

.sa-mode-switch {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid #d9e1e8;
    border-radius: 10px;
    background: #f1f5f9;
}

.sa-mode-switch button {
    display: inline-flex;
    min-width: 100px;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 0;
    border-radius: 7px;
    color: #64748b;
    background: transparent;
    font-size: 13px;
    font-weight: 750;
    transition: 150ms ease;
}

.sa-mode-switch button:hover {
    color: #334155;
    background: rgba(255, 255, 255, 0.75);
}

.sa-mode-switch button.is-active {
    color: var(--sa-brand-800);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.sa-mode-switch svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-appbar__actions {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.sa-select-wrap {
    display: flex;
    min-width: 0;
    height: 40px;
    align-items: center;
    gap: 7px;
    padding: 0 8px 0 12px;
    border: 1px solid #d7e0e8;
    border-radius: 9px;
    color: #788497;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.sa-select-wrap select,
.sa-grid-control select {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #334155;
    background: transparent;
    font-size: 12px;
    font-weight: 750;
}

.sa-button {
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: 160ms ease;
}

.sa-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sa-button--primary {
    color: #fff;
    background: var(--sa-brand-700);
    box-shadow: 0 5px 12px rgba(55, 142, 143, 0.2);
}

.sa-button--primary:hover {
    color: #fff;
    background: var(--sa-brand-800);
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(55, 142, 143, 0.24);
}

.sa-button--primary:active {
    transform: translateY(0);
}

.sa-button--full {
    width: 100%;
}

.sa-icon-button {
    display: inline-flex;
    flex: none;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #d7e0e8;
    border-radius: 8px;
    color: #5f6c7c;
    background: #fff;
    transition: 140ms ease;
}

.sa-icon-button:hover:not(:disabled) {
    border-color: #b9c7d4;
    color: #27364a;
    background: #f8fafc;
}

.sa-icon-button:disabled {
    cursor: not-allowed;
    opacity: 0.36;
}

.sa-icon-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-layout {
    display: grid;
    grid-template-columns: 242px minmax(450px, 1fr) 306px;
    min-width: 0;
    min-height: 680px;
    max-height: 820px;
    border-bottom: 1px solid #d9e1e8;
}

.sa-workspace.are-tools-compact .sa-layout {
    grid-template-columns: 72px minmax(450px, 1fr) 306px;
}

.sa-toolbox,
.sa-inspector {
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    background: var(--sa-panel);
}

.sa-toolbox {
    padding: 15px 12px;
    border-right: 1px solid #d8e0e8;
}

.sa-toolbox-toggle {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-bottom: 8px;
    padding: 6px;
    border: 1px solid #e0e6ec;
    border-radius: 8px;
    color: #718095;
    background: #f8fafc;
    font-size: 9px;
    font-weight: 800;
}

.sa-toolbox-toggle:hover {
    border-color: #b9dfe0;
    color: var(--sa-brand-800);
    background: var(--sa-brand-50);
}

.sa-toolbox-toggle svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    transform: rotate(180deg);
}

.sa-toolbox.is-compact {
    padding-inline: 8px;
}

.sa-toolbox.is-compact .sa-toolbox-toggle span,
.sa-toolbox.is-compact .sa-tool > span,
.sa-toolbox.is-compact .sa-tool kbd,
.sa-toolbox.is-compact .sa-section-label,
.sa-toolbox.is-compact .sa-section-label-row,
.sa-toolbox.is-compact .sa-model-overview {
    display: none;
}

.sa-toolbox.is-compact .sa-toolbox-toggle svg {
    transform: none;
}

.sa-toolbox.is-compact .sa-tool-grid,
.sa-toolbox.is-compact .sa-tool-list {
    grid-template-columns: minmax(0, 1fr);
}

.sa-toolbox.is-compact .sa-toolbox__section {
    padding-bottom: 9px;
}

.sa-toolbox.is-compact .sa-toolbox__section + .sa-toolbox__section {
    padding-top: 9px;
}

.sa-toolbox.is-compact .sa-tool {
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 7px 4px;
}

.sa-toolbox.is-compact .sa-tool--wide {
    justify-content: center;
}

.sa-toolbox__section {
    padding: 4px 0 15px;
}

.sa-toolbox__section + .sa-toolbox__section {
    padding-top: 14px;
    border-top: 1px solid #edf1f5;
}

.sa-section-label,
.sa-section-label-row .sa-section-label {
    margin: 0 0 8px;
    color: #8a95a5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.sa-tool-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.sa-tool {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 70px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border: 1px solid #e0e6ec;
    border-radius: 9px;
    color: #536174;
    background: #fff;
    text-align: left;
    transition: 130ms ease;
}

.sa-tool:hover:not(:disabled) {
    border-color: #b9dfe0;
    color: #243247;
    background: #f7fdfd;
}

.sa-tool.is-active {
    border-color: var(--sa-brand-500);
    color: var(--sa-brand-800);
    background: var(--sa-brand-50);
    box-shadow: 0 0 0 2px rgba(79, 204, 205, 0.11);
}

.sa-tool:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.sa-tool svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.sa-tool > span {
    font-size: 11px;
    font-weight: 800;
}

.sa-tool kbd {
    position: absolute;
    top: 7px;
    right: 7px;
    min-width: 17px;
    padding: 1px 4px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: #94a3b8;
    background: #f8fafc;
    font-family: inherit;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
}

.sa-tool-list {
    display: grid;
    gap: 6px;
}

.sa-tool--wide {
    min-height: 58px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.sa-tool--wide > span {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.sa-tool--wide strong {
    color: inherit;
    font-size: 11px;
    line-height: 1.3;
}

.sa-tool--wide small {
    overflow: hidden;
    color: #8a96a7;
    font-size: 9px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-model-overview {
    margin-top: auto;
}

.sa-section-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sa-section-label-row button {
    margin: -3px 0 4px;
    padding: 2px 4px;
    border: 0;
    color: #8793a3;
    background: transparent;
    font-size: 9px;
    font-weight: 750;
}

.sa-model-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e4e9ef;
    border-radius: 8px;
    background: #f8fafc;
}

.sa-model-stats span {
    display: grid;
    justify-items: center;
    gap: 1px;
    padding: 8px 2px;
    color: #8a95a5;
    font-size: 8px;
    font-weight: 750;
    text-transform: uppercase;
}

.sa-model-stats span + span {
    border-left: 1px solid #e4e9ef;
}

.sa-model-stats strong {
    color: #334155;
    font-size: 14px;
}

.sa-stage-card {
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    background: var(--sa-canvas);
}

.sa-canvas-toolbar {
    position: relative;
    z-index: 25;
    display: flex;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-bottom: 1px solid #dbe3ea;
    background: rgba(255, 255, 255, 0.96);
}

.sa-canvas-toolbar .sa-icon-button {
    width: 34px;
    height: 34px;
}

.sa-canvas-toolbar__group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sa-canvas-toolbar__spacer {
    flex: 1;
}

.sa-toolbar-divider {
    width: 1px;
    height: 24px;
    margin-inline: 2px;
    background: #e2e8f0;
}

.sa-view-modes {
    min-width: 0;
    padding: 3px;
    border-radius: 8px;
    background: #f1f5f9;
}

.sa-view-modes button {
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    color: #7a8798;
    background: transparent;
    font-size: 10px;
    font-weight: 800;
    transition: 120ms ease;
}

.sa-view-modes button:hover:not(:disabled) {
    color: #334155;
}

.sa-view-modes button.is-active {
    color: #27364a;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.sa-view-modes button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

.sa-grid-control {
    display: flex;
    height: 34px;
    align-items: center;
    gap: 4px;
    padding: 0 7px;
    border: 1px solid #dbe2e9;
    border-radius: 7px;
    color: #8490a0;
    background: #fff;
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

.sa-grid-control select {
    width: 68px;
    font-size: 10px;
}

.sa-zoom-label {
    width: 38px;
    color: #788598;
    font-size: 9px;
    font-weight: 750;
    text-align: center;
}

.sa-canvas-wrap {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #f8fafc;
    isolation: isolate;
}

.sa-selection-actions {
    position: absolute;
    z-index: 5;
    top: 12px;
    left: 12px;
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(190, 203, 214, 0.95);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(7px);
}

.sa-selection-actions[hidden] {
    display: none;
}

.sa-selection-actions strong {
    padding: 0 8px;
    color: #334155;
    font-size: 9px;
    white-space: nowrap;
}

.sa-selection-actions > span {
    width: 1px;
    height: 22px;
    background: #e2e8f0;
}

.sa-selection-actions button {
    height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    color: #637186;
    background: transparent;
    font-size: 9px;
    font-weight: 800;
}

.sa-selection-actions button:hover {
    color: var(--sa-brand-800);
    background: var(--sa-brand-50);
}

#structural-canvas {
    width: 100%;
    height: 100%;
    min-height: 580px;
    outline: 0;
    touch-action: none;
    user-select: none;
}

#structural-canvas.is-crosshair {
    cursor: crosshair;
}

#structural-canvas.is-pan {
    cursor: grab;
}

#structural-canvas.is-panning {
    cursor: grabbing;
}

#structural-canvas.is-dragging-node {
    cursor: move;
}

.sa-coordinate-readout,
.sa-view-legend {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 7px;
    color: #758195;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(5px);
}

.sa-ai-quick-dock {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 15px;
    width: min(620px, calc(100% - 190px));
    transform: translateX(-50%);
    transition: opacity .16s ease, transform .16s ease;
}

.sa-workspace.is-inspector-open .sa-ai-quick-dock {
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 8px);
}

.sa-canvas-tip {
    width: fit-content;
    max-width: min(100%, 540px);
    margin: 0 auto 8px;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 12px;
    padding: 8px 10px;
    color: #586779;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 9px 28px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(10px);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease;
}

.sa-canvas-tip.is-dismissing {
    opacity: 0;
    transform: translateY(5px);
}

.sa-canvas-tip[hidden] {
    display: none !important;
}

.sa-ai-quick-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid rgba(187, 207, 215, 0.98);
    border-radius: 999px;
    padding: 5px 6px 5px 14px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(12px);
}

.sa-ai-quick-form:focus-within {
    border-color: #65aaa8;
    box-shadow: 0 0 0 3px rgba(61, 145, 143, 0.13), 0 14px 36px rgba(15, 23, 42, 0.16);
}

.sa-ai-quick-form__spark {
    color: #25898b;
    font-size: 16px;
    line-height: 1;
}

.sa-ai-quick-form input {
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 6px 0;
    color: #263448;
    background: transparent;
    font: inherit;
    font-size: 12px;
}

.sa-ai-quick-form input::placeholder {
    color: #68788b;
    opacity: 1;
}

.sa-ai-quick-form kbd {
    border: 1px solid #d8e1e6;
    border-radius: 6px;
    padding: 3px 6px;
    color: #69778a;
    background: #f6f8f9;
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.sa-ai-quick-form button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: #267f80;
    cursor: pointer;
}

.sa-ai-quick-form button svg {
    width: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-ai-quick-form button:disabled {
    cursor: wait;
    opacity: .55;
}

.sa-coordinate-readout {
    right: 12px;
    bottom: 12px;
    min-width: 112px;
    padding: 5px 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 8px;
    text-align: center;
}

.sa-view-legend {
    top: 12px;
    right: 12px;
    min-width: 160px;
    padding: 9px 10px;
    font-size: 9px;
}

.sa-view-legend__bar {
    height: 6px;
    margin: 6px 0 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, #2563eb, #dbeafe 48%, #fee2e2 52%, #ef4444);
}

.sa-view-legend__values {
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.sa-stage-status {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 12px;
    border-top: 1px solid #dbe3ea;
    color: #7e8a9b;
    background: #fff;
    font-size: 9px;
    font-weight: 650;
}

.sa-stage-status > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sa-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sa-brand-500);
}

.sa-inspector {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    border-left: 1px solid #d8e0e8;
}

.sa-inspector__header {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    border-bottom: 1px solid #e4e9ee;
}

.sa-inspector__header .sa-section-label {
    margin-bottom: 2px;
}

.sa-inspector__header h2,
.sa-results h2 {
    margin: 0;
    color: #263448;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.015em;
}

.sa-inspector__delete {
    color: #ef4444;
}

.sa-inspector__delete:hover {
    border-color: #fecaca;
    color: #dc2626;
    background: #fff7f7;
}

.sa-inspector__body {
    min-height: 0;
    overflow-y: auto;
    padding: 15px;
}

.sa-inspector__footer {
    padding: 12px 15px 15px;
    border-top: 1px solid #e4e9ee;
    background: #fbfcfd;
}

.sa-ready-check {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
}

.sa-ready-check__icon {
    display: flex;
    width: 29px;
    height: 29px;
    flex: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #15803d;
    background: #dcfce7;
}

.sa-ready-check__icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.sa-ready-check > span:last-child {
    display: grid;
    min-width: 0;
}

.sa-ready-check strong {
    color: #334155;
    font-size: 10px;
}

.sa-ready-check small {
    overflow: hidden;
    color: #8a96a6;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-ready-check.has-warning .sa-ready-check__icon {
    color: #b45309;
    background: #fef3c7;
}

.sa-ready-check.has-error .sa-ready-check__icon {
    color: #b91c1c;
    background: #fee2e2;
}

.sa-model-warning {
    display: grid;
    gap: 5px;
    margin-bottom: 11px;
    border: 1px solid #f2d6a2;
    border-radius: 8px;
    padding: 9px 10px;
    color: #825f22;
    background: #fff9eb;
}

.sa-model-warning[hidden] {
    display: none;
}

.sa-model-warning strong {
    color: #704b0e;
    font-size: 9px;
}

.sa-model-warning p {
    margin: 0;
    font-size: 8px;
    line-height: 1.45;
}

.sa-model-warning button {
    justify-self: start;
    border: 0;
    padding: 0;
    color: #0f766e;
    background: transparent;
    font: inherit;
    font-size: 8px;
    font-weight: 800;
    cursor: pointer;
}

.sa-model-warning button:hover {
    text-decoration: underline;
}

.sa-inspector-section + .sa-inspector-section {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #edf1f5;
}

.sa-inspector-section__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 10px;
    color: #586679;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sa-inspector-section__title--sub {
    margin-top: 13px;
}

.sa-inspector-section__title button,
.sa-text-button {
    padding: 0;
    border: 0;
    color: var(--sa-brand-800);
    background: transparent;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
}

.sa-text-button {
    display: block;
    margin: 8px 0 10px;
    text-align: left;
}

.sa-field-help {
    margin: -2px 0 9px;
    color: #8793a3;
    font-size: 9px;
    line-height: 1.5;
}

.sa-field-help--identity {
    margin: 8px 0 0;
}

.sa-inspector-load-list {
    display: grid;
    gap: 6px;
}

.sa-inspector-load-list > div {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid #e2e8ee;
    border-radius: 8px;
    background: #f8fafc;
}

.sa-inspector-load-list span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sa-inspector-load-list strong {
    color: #465469;
    font-size: 9px;
}

.sa-inspector-load-list small {
    overflow: hidden;
    color: #8793a3;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-inspector-load-list button {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    border: 0;
    border-radius: 6px;
    color: #a15b62;
    background: #f9e9eb;
    font-size: 14px;
}

.sa-dof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

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

.sa-release-grid label:has(input:disabled) {
    cursor: default;
    opacity: 0.82;
}

.sa-dof-grid label {
    display: grid;
    min-width: 0;
    justify-items: center;
    gap: 2px;
    padding: 8px 3px;
    border: 1px solid #e1e7ed;
    border-radius: 8px;
    color: #667386;
    background: #fff;
    cursor: pointer;
}

.sa-dof-grid label:has(input:checked) {
    border-color: var(--sa-brand-500);
    color: var(--sa-brand-800);
    background: var(--sa-brand-50);
}

.sa-dof-grid input {
    width: 14px;
    height: 14px;
    accent-color: var(--sa-brand-700);
}

.sa-dof-grid span {
    font-size: 10px;
    font-weight: 850;
}

.sa-dof-grid small {
    overflow: hidden;
    max-width: 100%;
    color: #95a0af;
    font-size: 7px;
    text-overflow: ellipsis;
}

.sa-section-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    padding: 8px 9px;
    border: 1px solid #cce8e8;
    border-radius: 8px;
    color: #5f6d80;
    background: #f2fbfb;
}

.sa-section-chip strong {
    color: var(--sa-brand-900);
    font-size: 11px;
}

.sa-section-chip span {
    flex: 1;
    font-size: 8px;
}

.sa-section-chip button {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    color: #6b788a;
    background: transparent;
    font-size: 16px;
}

.sa-button--secondary {
    border-color: #d4e1e8;
    color: #3e6570;
    background: #f7fbfc;
}

.sa-picker-button {
    height: 36px;
    margin: 10px 0;
    font-size: 10px;
}

.sa-dialog-backdrop {
    position: fixed;
    z-index: 80;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(4px);
}

/* Keep centered dialogs below the sticky site header outside focus mode. */
body:not(.sa-structural-focus) .sa-dialog-backdrop {
    padding-top: calc(var(--sa-site-header-height, 81px) + 16px);
}

.sa-dialog-backdrop[hidden] {
    display: none;
}

.sa-dialog {
    display: grid;
    width: min(760px, 100%);
    max-height: min(640px, calc(100dvh - var(--sa-site-header-height, 81px) - 32px));
    /* max-content keeps header/filters from shrinking under overflow:hidden */
    grid-template-rows: max-content max-content minmax(180px, 1fr) max-content;
    overflow: hidden;
    border: 1px solid #dce4eb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

body.sa-structural-focus .sa-dialog {
    max-height: min(720px, calc(100dvh - 40px));
}

.sa-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border-bottom: 1px solid #e7ecf0;
    min-height: max-content;
}

.sa-dialog__header .sa-section-label {
    margin-bottom: 2px;
    color: var(--sa-brand-700);
}

.sa-dialog__header h2 {
    margin: 0;
    color: #263448;
    font-size: 18px;
}

.sa-steel-filters {
    display: grid;
    grid-template-columns: minmax(180px, 0.85fr) minmax(180px, 0.85fr) minmax(280px, 1.6fr);
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid #edf1f5;
    background: #fbfcfd;
}

.sa-steel-search-status {
    grid-column: 1 / -1;
    margin: -1px 0 0;
    color: #758397;
    font-size: 9px;
    line-height: 1.45;
}

.sa-steel-results {
    min-height: 220px;
    overflow-y: auto;
    padding: 8px 10px;
}

.sa-steel-results > p {
    padding: 34px;
    color: #7b8797;
    font-size: 12px;
    text-align: center;
}

.sa-steel-search-suggestion {
    padding: 0;
    border: 0;
    color: var(--sa-brand-700);
    background: transparent;
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sa-steel-search-suggestion:hover {
    color: var(--sa-brand-900);
}

.sa-steel-family-browser {
    display: grid;
    gap: 14px;
    padding: 14px 8px;
}

.sa-steel-family-browser__intro {
    display: grid;
    gap: 3px;
    padding: 0 4px;
}

.sa-steel-family-browser__intro strong {
    color: #263448;
    font-size: 12px;
}

.sa-steel-family-browser__intro span {
    color: #758397;
    font-size: 9px;
}

.sa-steel-family-browser__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.sa-steel-family-browser__grid button {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 12px;
    border: 1px solid #e1e7ed;
    border-radius: 8px;
    color: #526377;
    background: #fff;
    text-align: left;
}

.sa-steel-family-browser__grid button:hover {
    border-color: #b9dddd;
    background: #f4fbfb;
}

.sa-steel-family-browser__grid button > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sa-steel-family-browser__grid strong {
    overflow: hidden;
    color: #263448;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-steel-family-browser__grid small {
    color: #8794a5;
    font-size: 8px;
}

.sa-steel-family-browser__grid b {
    color: var(--sa-brand-700);
    font-size: 14px;
}

.sa-steel-load-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 10px 9px;
    border-top: 1px solid #edf1f5;
}

.sa-steel-load-more button {
    padding: 8px 13px;
    border: 1px solid #b9dddd;
    border-radius: 7px;
    color: var(--sa-brand-800);
    background: var(--sa-brand-50);
    font-size: 9px;
    font-weight: 800;
}

.sa-steel-load-more button:disabled {
    opacity: 0.65;
}

.sa-steel-load-more span {
    color: #8794a5;
    font-size: 8px;
}

.sa-steel-row {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    align-items: center;
    gap: 18px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #667386;
    background: transparent;
    text-align: left;
}

.sa-steel-row:hover {
    border-color: #cce6e7;
    background: #f3fbfb;
}

.sa-steel-row > span:first-child {
    display: grid;
    min-width: 0;
}

.sa-steel-row strong {
    color: #263448;
    font-size: 12px;
}

.sa-steel-row small {
    color: #8b97a7;
    font-size: 8px;
}

.sa-steel-row > span:not(:first-child) {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    white-space: nowrap;
    text-align: right;
}

.sa-steel-row b {
    color: #425166;
}

.sa-dialog__note {
    margin: 0;
    padding: 11px 18px 14px;
    border-top: 1px solid #edf1f5;
    color: #7b8797;
    background: #fbfcfd;
    font-size: 9px;
    line-height: 1.55;
}

.sa-dialog-error {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 38px;
    color: #8a5360;
    font-size: 10px;
    text-align: center;
}

.sa-dialog-error button {
    margin-top: 5px;
    padding: 7px 11px;
    border: 1px solid #e2c8cf;
    border-radius: 7px;
    color: #9f3548;
    background: #fff8f9;
    font-weight: 800;
}

.sa-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sa-form-grid--one {
    grid-template-columns: minmax(0, 1fr);
}

.sa-field {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.sa-field--full {
    grid-column: 1 / -1;
}

.sa-field label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    color: #667386;
    font-size: 9px;
    font-weight: 750;
}

.sa-field label span {
    color: #9aa5b3;
    font-size: 8px;
    font-weight: 650;
}

.sa-field input,
.sa-field select {
    width: 100%;
    height: 37px;
    min-width: 0;
    padding: 0 9px;
    border: 1px solid #d9e1e8;
    border-radius: 7px;
    outline: none;
    color: #27364a;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    transition: 120ms ease;
}

.sa-field input:hover,
.sa-field select:hover {
    border-color: #becbd6;
}

.sa-field input:focus,
.sa-field select:focus {
    border-color: var(--sa-brand-500);
    box-shadow: 0 0 0 3px rgba(79, 204, 205, 0.15);
}

.sa-field input[readonly] {
    color: #8a96a5;
    background: #f8fafc;
}

.sa-segmented {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 3px;
    border-radius: 8px;
    background: #f1f5f9;
}

.sa-segmented--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sa-segmented button {
    min-width: 0;
    height: 32px;
    padding: 0 5px;
    border: 0;
    border-radius: 6px;
    color: #738094;
    background: transparent;
    font-size: 9px;
    font-weight: 800;
}

.sa-segmented button.is-active {
    color: var(--sa-brand-800);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.1);
}

.sa-support-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.sa-support-option {
    display: flex;
    min-height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px;
    border: 1px solid #e1e7ed;
    border-radius: 8px;
    color: #748094;
    background: #fff;
    font-size: 9px;
    font-weight: 750;
}

.sa-support-option svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.sa-support-option.is-active {
    border-color: var(--sa-brand-500);
    color: var(--sa-brand-800);
    background: var(--sa-brand-50);
}

.sa-inline-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid #dce8ef;
    border-radius: 8px;
    color: #69778a;
    background: #f7fafc;
    font-size: 9px;
    line-height: 1.5;
}

.sa-inline-note svg {
    width: 15px;
    height: 15px;
    flex: none;
    margin-top: 1px;
    fill: none;
    stroke: var(--sa-brand-700);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-inspector-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 20px;
    color: #8390a1;
    text-align: center;
}

.sa-inspector-empty svg {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    fill: none;
    stroke: #b2bdc9;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.2;
}

.sa-inspector-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #536174;
    font-size: 11px;
}

.sa-inspector-empty p {
    max-width: 190px;
    margin: 0;
    font-size: 9px;
    line-height: 1.55;
}

.sa-results {
    padding: 18px 20px 22px;
    background: #fff;
}

.sa-results[hidden] {
    display: none;
}

.sa-results__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.sa-results__topline .sa-section-label {
    margin-bottom: 3px;
    color: var(--sa-brand-700);
}

.sa-results__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8793a3;
    font-size: 9px;
    font-weight: 700;
}

.sa-result-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.sa-result-metric {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #e3e8ee;
    border-radius: 10px;
    background: #fbfcfd;
}

.sa-result-metric::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    content: "";
    background: var(--metric-color, var(--sa-brand-500));
}

.sa-result-metric span {
    display: block;
    margin-bottom: 3px;
    overflow: hidden;
    color: #8793a4;
    font-size: 9px;
    font-weight: 750;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.sa-result-metric strong {
    color: #263448;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 16px;
}

.sa-result-table-wrap {
    overflow: hidden;
    border: 1px solid #e1e7ed;
    border-radius: 10px;
}

.sa-result-tabs {
    display: flex;
    gap: 3px;
    padding: 7px 8px;
    border-bottom: 1px solid #e6ebf0;
    background: #f8fafc;
}

.sa-result-tabs button {
    height: 31px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    color: #728095;
    background: transparent;
    font-size: 9px;
    font-weight: 800;
}

.sa-result-tabs button.is-active {
    color: var(--sa-brand-800);
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.sa-table-scroller {
    max-height: 260px;
    overflow: auto;
}

.sa-result-table {
    width: 100%;
    border-collapse: collapse;
    color: #536174;
    font-size: 10px;
    text-align: right;
}

.sa-result-table caption {
    padding: 8px 12px;
    border-bottom: 1px solid #edf1f5;
    color: #7c8999;
    background: #f8fafb;
    font-size: 8px;
    text-align: left;
}

.sa-result-table th,
.sa-result-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #edf1f5;
    white-space: nowrap;
}

.sa-result-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: #7c8999;
    background: #fff;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sa-result-table th:first-child,
.sa-result-table td:first-child {
    text-align: left;
}

.sa-result-table tbody tr:hover td {
    background: #f8fcfc;
}

.sa-result-table tbody tr:last-child td {
    border-bottom: 0;
}

.sa-result-table code {
    color: #334155;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
}

.sa-result-empty {
    padding: 24px;
    color: #8793a3;
    font-size: 10px;
    text-align: center;
}

.sa-toast-stack {
    position: fixed;
    z-index: 100;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: min(350px, calc(100vw - 36px));
    gap: 8px;
    pointer-events: none;
}

.sa-toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #dbe4eb;
    border-radius: 10px;
    color: #536174;
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.17);
    font-size: 11px;
    animation: sa-toast-in 180ms ease-out;
}

.sa-toast::before {
    width: 8px;
    height: 8px;
    flex: none;
    margin-top: 4px;
    border-radius: 50%;
    content: "";
    background: var(--sa-brand-500);
}

.sa-toast.is-error::before {
    background: var(--sa-red);
}

.sa-toast strong {
    display: block;
    margin-bottom: 1px;
    color: #27364a;
}

@keyframes sa-toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.sa-guide {
    padding: 78px 0 82px;
    background: #fff;
}

.sa-guide__intro {
    max-width: 760px;
}

.sa-guide h2,
.sa-faq h2 {
    margin: 9px 0 0;
    color: #182338;
    font-size: clamp(29px, 3vw, 42px);
    font-weight: 780;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.sa-guide__intro > p:last-child,
.sa-faq__grid > div:first-child > p:last-child {
    margin: 14px 0 0;
    color: #667386;
    font-size: 16px;
    line-height: 1.75;
}

.sa-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 36px;
}

.sa-guide-grid article {
    position: relative;
    overflow: hidden;
    min-width: 0;
    padding: 26px;
    border: 1px solid #e1e8ee;
    border-radius: 16px;
    background: linear-gradient(145deg, #fff, #f9fbfc);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.sa-guide-grid article::after {
    position: absolute;
    top: -46px;
    right: -46px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    content: "";
    background: var(--sa-brand-50);
}

.sa-guide-grid article > span {
    color: var(--sa-brand-700);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 850;
}

.sa-guide-grid h3 {
    margin: 20px 0 8px;
    color: #243247;
    font-size: 19px;
    font-weight: 780;
    letter-spacing: -0.02em;
}

.sa-guide-grid p {
    margin: 0;
    color: #69768a;
    font-size: 14px;
    line-height: 1.7;
}

.sa-guide__links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid #d9e5e6;
    border-radius: 14px;
    background: var(--sa-brand-50);
}

.sa-guide__links > div {
    display: grid;
    gap: 2px;
}

.sa-guide__links strong {
    color: #244849;
    font-size: 14px;
}

.sa-guide__links > div span {
    color: #62797a;
    font-size: 12px;
}

.sa-guide__links > a {
    display: inline-flex;
    height: 38px;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid #bddadb;
    border-radius: 8px;
    color: var(--sa-brand-800);
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.sa-guide__links > a:hover {
    border-color: var(--sa-brand-500);
    color: #1f5c5d;
}

.sa-guide__links > a span {
    font-size: 15px;
}

.sa-faq {
    padding: 78px 0 88px;
    border-top: 1px solid #e8edf1;
    background: #f8fafc;
}

.sa-faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 70px;
    align-items: start;
}

.sa-faq__items {
    overflow: hidden;
    border: 1px solid #e0e7ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.sa-faq details + details {
    border-top: 1px solid #e8edf1;
}

.sa-faq summary {
    position: relative;
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 20px;
    color: #334155;
    cursor: pointer;
    font-size: 14px;
    font-weight: 750;
    list-style: none;
}

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

.sa-faq summary span {
    position: relative;
    width: 20px;
    height: 20px;
    flex: none;
    border-radius: 50%;
    background: #f1f5f9;
}

.sa-faq summary span::before,
.sa-faq summary span::after {
    position: absolute;
    top: 9px;
    left: 5px;
    width: 10px;
    height: 1.5px;
    content: "";
    background: #64748b;
}

.sa-faq summary span::after {
    transform: rotate(90deg);
    transition: 150ms ease;
}

.sa-faq details[open] summary {
    color: var(--sa-brand-800);
}

.sa-faq details[open] summary span::after {
    transform: rotate(0deg);
}

.sa-faq details p {
    margin: -2px 0 0;
    padding: 0 20px 18px;
    color: #667386;
    font-size: 13px;
    line-height: 1.7;
}

/* SVG model styling */
#structural-canvas .sa-grid-minor {
    stroke: #e7edf2;
    stroke-width: 1;
}

#structural-canvas .sa-grid-major {
    stroke: #d7e1e9;
    stroke-width: 1;
}

#structural-canvas .sa-axis {
    stroke: #c8d4de;
    stroke-width: 1.2;
}

#structural-canvas .sa-member {
    fill: none;
    stroke: #34455a;
    stroke-linecap: round;
    stroke-width: 5;
    transition: stroke 100ms ease;
}

#structural-canvas .sa-member-group.is-pin-ended .sa-member {
    stroke: #405a72;
    stroke-dasharray: 11 3;
}

#structural-canvas .sa-member-release {
    fill: #fff;
    stroke: #405a72;
    stroke-width: 2;
    pointer-events: none;
}

#structural-canvas .sa-member-hit {
    fill: none;
    stroke: transparent;
    stroke-linecap: round;
    stroke-width: 18;
    cursor: pointer;
}

#structural-canvas .sa-member-group:hover .sa-member,
#structural-canvas .sa-member-group.is-selected .sa-member {
    stroke: var(--sa-brand-600);
}

#structural-canvas .sa-member-group.is-selected .sa-member {
    stroke-width: 7;
    filter: drop-shadow(0 0 3px rgba(79, 204, 205, 0.32));
}

#structural-canvas .sa-member-group.is-selected .sa-member-release {
    stroke: var(--sa-brand-700);
}

#structural-canvas .sa-member-label,
#structural-canvas .sa-node-label,
#structural-canvas .sa-load-label,
#structural-canvas .sa-dimension-label {
    paint-order: stroke;
    stroke: rgba(248, 250, 252, 0.96);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4px;
    font-family: "Open Sans", system-ui, sans-serif;
    font-weight: 750;
    text-anchor: middle;
}

#structural-canvas .sa-member-label {
    fill: #7b8797;
    font-size: 10px;
}

#structural-canvas .sa-dimension-label {
    fill: #8b96a5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    font-weight: 650;
}

#structural-canvas .sa-node {
    fill: #fff;
    stroke: #34455a;
    stroke-width: 3;
    cursor: pointer;
    transition: 100ms ease;
}

#structural-canvas .sa-node-hit {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0;
    cursor: pointer;
}

#structural-canvas .sa-node-group:hover .sa-node,
#structural-canvas .sa-node-group.is-selected .sa-node {
    fill: var(--sa-brand-100);
    stroke: var(--sa-brand-700);
}

#structural-canvas .sa-node-group.is-selected .sa-node {
    stroke-width: 4;
    filter: drop-shadow(0 0 3px rgba(79, 204, 205, 0.35));
}

#structural-canvas .sa-node-label {
    fill: #536174;
    font-size: 9px;
}

#structural-canvas .sa-support {
    fill: #e4f8f8;
    stroke: var(--sa-brand-800);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    pointer-events: none;
}

#structural-canvas .sa-support-ground {
    fill: none;
    stroke: #6f7f91;
    stroke-linecap: round;
    stroke-width: 1.2;
    pointer-events: none;
}

#structural-canvas .sa-custom-support {
    fill: #eefafa;
    stroke: var(--sa-brand-700);
    stroke-width: 1.3;
}

#structural-canvas .sa-custom-support-label {
    fill: var(--sa-brand-900);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 7px;
    font-weight: 850;
    text-anchor: middle;
}

#structural-canvas .sa-load-arrow,
#structural-canvas .sa-load-line {
    fill: none;
    stroke: #e34d59;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    pointer-events: none;
}

#structural-canvas .sa-load-head {
    fill: #e34d59;
    stroke: none;
    pointer-events: none;
}

#structural-canvas .sa-load-label {
    fill: #c53744;
    font-size: 9px;
    pointer-events: none;
}

#structural-canvas .sa-load-hit {
    fill: transparent;
    stroke: transparent;
    stroke-width: 16;
    cursor: pointer;
}

#structural-canvas .sa-member-load-group.is-selected .sa-load-line,
#structural-canvas .sa-node-load-group.is-selected .sa-load-arrow {
    stroke: #aa2130;
    stroke-width: 3;
}

#structural-canvas .sa-member-preview {
    fill: none;
    stroke: var(--sa-brand-500);
    stroke-dasharray: 7 5;
    stroke-linecap: round;
    stroke-width: 3;
    pointer-events: none;
}

#structural-canvas .sa-selection-box {
    pointer-events: none;
    stroke-width: 1.4;
}

#structural-canvas .sa-selection-box.is-window {
    fill: rgba(59, 130, 246, 0.08);
    stroke: #3b82f6;
}

#structural-canvas .sa-selection-box.is-crossing {
    fill: rgba(34, 197, 94, 0.08);
    stroke: #22a55b;
    stroke-dasharray: 6 4;
}

#structural-canvas .sa-snap-point {
    fill: rgba(79, 204, 205, 0.18);
    stroke: var(--sa-brand-600);
    stroke-dasharray: 3 2;
    stroke-width: 1.5;
    pointer-events: none;
}

#structural-canvas .sa-original-member {
    fill: none;
    stroke: #bfcbd5;
    stroke-dasharray: 5 4;
    stroke-width: 2;
}

#structural-canvas .sa-result-member {
    fill: none;
    stroke: var(--sa-brand-700);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

#structural-canvas .sa-moment-fill {
    fill: rgba(139, 92, 246, 0.17);
    stroke: #8b5cf6;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

#structural-canvas .sa-result-label {
    fill: #5b6472;
    paint-order: stroke;
    stroke: rgba(248, 250, 252, 0.96);
    stroke-width: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 9px;
    font-weight: 750;
    text-anchor: middle;
}

#structural-canvas .sa-axis-widget text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 8px;
    font-weight: 750;
}

@media (max-width: 1260px) {
    .sa-layout {
        grid-template-columns: 220px minmax(420px, 1fr) 286px;
    }

    .sa-appbar {
        grid-template-columns: minmax(210px, 1fr) auto minmax(380px, 1fr);
    }

    .sa-save-state {
        display: none;
    }

    .sa-view-modes button {
        padding-inline: 7px;
    }

    .sa-grid-control {
        display: none;
    }
}

@media (max-width: 1040px) {
    .sa-intro__features {
        display: none;
    }

    .sa-intro__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-appbar {
        grid-template-columns: minmax(180px, 1fr) auto minmax(300px, 1fr);
    }

    .sa-select-wrap > span {
        display: none;
    }

    .sa-layout {
        grid-template-columns: 78px minmax(0, 1fr) 272px;
    }

    .sa-toolbox {
        padding-inline: 8px;
    }

    .sa-tool-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-tool {
        min-height: 54px;
        align-items: center;
        padding: 7px 4px;
    }

    .sa-tool > span,
    .sa-tool kbd,
    .sa-tool--wide > span,
    .sa-toolbox .sa-section-label,
    .sa-section-label-row,
    .sa-model-overview {
        display: none;
    }

    .sa-tool--wide {
        justify-content: center;
    }

    .sa-ai-quick-dock {
        width: min(540px, calc(100% - 120px));
    }
}

@media (max-width: 820px) {
    .sa-workspace.are-tools-compact .sa-layout {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .sa-shell {
        width: min(100% - 28px, 1520px);
    }

    .sa-intro__inner {
        padding-block: 22px 24px;
    }

    .sa-appbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
        padding: 8px 10px;
    }

    .sa-appbar__identity {
        grid-column: 1 / -1;
        min-height: 36px;
        border-bottom: 1px solid #edf1f5;
    }

    .sa-model-name {
        width: 100%;
    }

    .sa-appbar__actions {
        min-width: 0;
    }

    .sa-appbar__actions #new-model {
        display: none;
    }

    .sa-appbar__actions .sa-select-wrap {
        display: flex;
        width: 132px;
        padding-left: 7px;
    }

    .sa-appbar__actions .sa-select-wrap select {
        width: 100%;
    }

    .sa-mode-switch {
        justify-self: start;
    }

    .sa-mode-switch button {
        min-width: 86px;
    }

    .sa-layout {
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        max-height: none;
    }

    .sa-toolbox {
        grid-row: 1;
        grid-column: 1;
    }

    .sa-stage-card {
        grid-row: 1;
        grid-column: 2;
        min-height: 590px;
    }

    .sa-inspector {
        grid-row: 2;
        grid-column: 1 / -1;
        max-height: none;
        border-top: 1px solid #d8e0e8;
        border-left: 0;
    }

    .sa-inspector__body {
        max-height: 360px;
    }

    #structural-canvas {
        min-height: 505px;
    }

    .sa-result-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sa-guide-grid,
    .sa-faq__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-faq__grid {
        gap: 34px;
    }

    .sa-guide__links {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-guide__links > a {
        justify-content: space-between;
    }
}

@media (max-width: 560px) {
    .sa-workspace.are-tools-compact .sa-layout {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .sa-selection-actions {
        right: 7px;
        left: 7px;
        overflow-x: auto;
    }

    .sa-selection-actions strong,
    .sa-selection-actions > span {
        display: none;
    }

    .sa-steel-filters,
    .sa-steel-row {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .sa-steel-row {
        gap: 3px;
    }

    .sa-intro h1 {
        font-size: 29px;
    }

    .sa-intro__copy > p:last-child {
        font-size: 14px;
    }

    .sa-mode-switch button {
        min-width: 76px;
        padding-inline: 9px;
    }

    .sa-mode-switch svg {
        display: none;
    }

    .sa-page .sa-appbar__analyze {
        width: 46px;
        padding: 0;
        font-size: 0;
    }

    .sa-appbar__actions .sa-select-wrap {
        width: 116px;
    }

    .sa-appbar__analyze svg {
        width: 20px;
        height: 20px;
    }

    .sa-layout {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .sa-toolbox {
        padding-inline: 5px;
    }

    .sa-toolbox__section {
        padding-bottom: 9px;
    }

    .sa-toolbox__section + .sa-toolbox__section {
        padding-top: 9px;
    }

    .sa-tool {
        min-height: 48px;
    }

    .sa-tool svg {
        width: 20px;
        height: 20px;
    }

    .sa-canvas-toolbar {
        gap: 4px;
        padding-inline: 6px;
    }

    .sa-canvas-toolbar .sa-icon-button {
        width: 31px;
    }

    .sa-view-modes {
        min-width: 0;
        overflow-x: auto;
    }

    .sa-view-modes button {
        flex: none;
        padding-inline: 6px;
        font-size: 8px;
    }

    .sa-toolbar-divider,
    #toggle-grid,
    #zoom-level,
    #zoom-in,
    #zoom-out {
        display: none;
    }

    .sa-stage-status {
        justify-content: center;
    }

    .sa-stage-status > div:last-child,
    .sa-coordinate-readout {
        display: none;
    }

    .sa-results {
        padding-inline: 12px;
    }

    .sa-result-metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-result-tabs {
        overflow-x: auto;
    }

    .sa-result-tabs button {
        flex: none;
    }

    .sa-guide,
    .sa-faq {
        padding-block: 58px 64px;
    }

    .sa-guide-grid article {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sa-page *,
    .sa-page *::before,
    .sa-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Application shell: keep the complete modeling workflow inside one viewport. */
.sa-workspace {
    --sa-site-header-height: 81px;
    position: relative;
    display: grid;
    height: calc(100dvh - var(--sa-site-header-height));
    min-height: 640px;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.sa-appbar {
    display: flex;
    min-height: 64px;
    gap: 16px;
    padding: 8px 14px;
}

.sa-appbar__brand {
    display: grid;
    flex: 0 0 auto;
    align-content: center;
    padding-right: 15px;
    border-right: 1px solid #e2e8f0;
}

.sa-appbar__brand h1 {
    margin: 0;
    color: #1f2d40;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.sa-appbar__brand span {
    color: #8a96a6;
    font-size: 9px;
    font-weight: 700;
}

.sa-appbar__project {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
}

.sa-appbar__identity {
    display: grid;
    width: min(235px, 25vw);
    flex: 0 1 235px;
    gap: 0;
}

.sa-model-name {
    width: 100%;
    height: 28px;
    padding: 0 7px;
    font-size: 13px;
}

.sa-save-state {
    gap: 5px;
    min-height: 16px;
    padding-inline: 7px;
    font-size: 8px;
}

.sa-save-state.is-dirty > span:first-child {
    background: #f59e0b;
}

.sa-save-state.is-cloud > span:first-child {
    background: #22c55e;
}

.sa-save-state.is-error > span:first-child {
    background: #ef4444;
}

.sa-file-actions {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid #dfe6ec;
    border-radius: 9px;
    background: #f8fafc;
}

.sa-command-button {
    display: inline-flex;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    color: #5f6d7f;
    background: transparent;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
    transition: 130ms ease;
}

.sa-command-button:hover {
    color: #263448;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.sa-command-button svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-command-button--setup {
    border: 1px solid #dce4eb;
    background: #fff;
}

.sa-appbar__actions {
    flex: 0 0 auto;
}

.sa-unit-switch button {
    min-width: 58px;
    height: 32px;
    padding-inline: 8px;
    font-size: 9px;
}

.sa-appbar__analyze {
    height: 38px;
}

.sa-layout,
.sa-workspace.are-tools-compact .sa-layout {
    position: relative;
    height: 100%;
    min-height: 0;
    max-height: none;
    grid-template-columns: 72px minmax(0, 1fr);
}

.sa-workspace:not(.are-tools-compact) .sa-layout {
    grid-template-columns: 242px minmax(0, 1fr);
}

.sa-workspace.is-inspector-open.are-tools-compact .sa-layout {
    grid-template-columns: 72px minmax(0, 1fr);
}

.sa-workspace.is-inspector-open:not(.are-tools-compact) .sa-layout {
    grid-template-columns: 242px minmax(0, 1fr);
}

.sa-inspector {
    display: none;
}

.sa-workspace.is-inspector-open .sa-inspector {
    position: absolute;
    z-index: 40;
    top: 0;
    right: 0;
    bottom: 0;
    display: grid;
    width: 306px;
    box-shadow: -14px 0 34px rgba(15, 23, 42, 0.13);
}

.sa-inspector__actions {
    display: flex;
    align-items: center;
    gap: 5px;
}

.sa-properties-toggle[aria-expanded="true"] {
    border-color: #a7d9da;
    color: var(--sa-brand-800);
    background: var(--sa-brand-50);
}

#structural-canvas {
    min-height: 0;
}

.sa-results {
    position: absolute;
    z-index: 30;
    right: 18px;
    bottom: 18px;
    width: min(860px, calc(100% - 108px));
    max-height: min(54vh, 560px);
    overflow: auto;
    border: 1px solid #dce4eb;
    border-radius: 14px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.2);
}

.sa-project-dialog {
    width: min(780px, 100%);
    grid-template-rows: auto minmax(0, 1fr);
}

.sa-project-open {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.sa-project-save {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 4px 18px;
    align-items: end;
    padding: 14px 18px;
    border-bottom: 1px solid #e7edf1;
    background: linear-gradient(90deg, #f3fbfb 0%, #f9fcfc 100%);
}

.sa-project-save[hidden] {
    display: none;
}

.sa-project-save .sa-field {
    grid-row: 1 / span 2;
}

.sa-project-save .sa-field > span,
.sa-project-search .sa-field > span {
    color: #667386;
    font-size: 9px;
    font-weight: 800;
}

.sa-project-save > p {
    grid-column: 2;
    margin: 0;
    color: #738195;
    font-size: 9px;
    line-height: 1.45;
}

.sa-project-save__warning {
    color: #a45d0a !important;
    font-weight: 750;
}

.sa-project-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 38px;
    align-items: end;
    gap: 10px;
    padding: 12px 18px 10px;
    background: #fbfcfd;
}

.sa-project-sort {
    width: 170px;
}

.sa-project-new-folder {
    height: 36px;
    padding-inline: 13px;
    white-space: nowrap;
}

.sa-project-new-folder:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.sa-project-breadcrumb {
    display: flex;
    min-height: 32px;
    align-items: center;
    gap: 7px;
    padding: 4px 18px 8px;
    color: #7c8999;
    background: #fbfcfd;
    font-size: 9px;
}

.sa-project-breadcrumb button {
    border: 0;
    padding: 2px 0;
    color: var(--sa-brand-800);
    background: transparent;
    font: inherit;
    font-weight: 800;
}

.sa-project-breadcrumb button[aria-current="page"] {
    color: #526175;
    cursor: default;
}

.sa-project-breadcrumb strong {
    overflow: hidden;
    color: #526175;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-project-list-shell {
    min-height: 0;
    flex: 1;
    margin: 0 18px 14px;
    overflow: hidden;
    border: 1px solid #dfe7ed;
    border-radius: 11px;
    background: #fff;
}

.sa-project-list__header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 116px 108px 74px;
    align-items: center;
    gap: 11px;
    min-height: 31px;
    padding: 0 12px;
    border-bottom: 1px solid #dfe7ed;
    color: #8290a1;
    background: #f7f9fb;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sa-project-list {
    min-height: 258px;
    max-height: min(430px, 52vh);
    overflow-y: auto;
}

.sa-project-list > p {
    display: grid;
    min-height: 258px;
    place-items: center;
    margin: 0;
    padding: 24px;
    color: #8390a1;
    font-size: 11px;
    text-align: center;
}

.sa-project-row {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 57px;
    grid-template-columns: 36px minmax(0, 1fr) 116px 108px 74px;
    align-items: center;
    gap: 11px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid #edf1f4;
    color: #657286;
    background: transparent;
    text-align: left;
    transition: background 120ms ease, box-shadow 120ms ease;
}

.sa-project-row:last-child {
    border-bottom: 0;
}

.sa-project-row:hover,
.sa-project-row.is-selected {
    background: #f3fbfb;
}

.sa-project-row:focus-visible {
    z-index: 1;
    outline: 2px solid rgba(79, 204, 205, 0.55);
    outline-offset: -2px;
}

.sa-project-row.is-selected {
    box-shadow: inset 3px 0 0 var(--sa-brand-600);
}

.sa-project-row__icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 7px;
    color: var(--sa-brand-800);
    background: #dff6f6;
}

.sa-project-row__icon svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-project-row--folder .sa-project-row__icon {
    color: #9a6700;
    background: #fff3c4;
}

.sa-project-row__name {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sa-project-row__name strong {
    overflow: hidden;
    color: #263448;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-project-row__name small,
.sa-project-row__details,
.sa-project-row__date {
    color: #8a96a6;
    font-size: 8px;
}

.sa-project-row__details,
.sa-project-row__date {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-project-row__name input {
    width: 100%;
    height: 32px;
    min-width: 0;
    padding: 0 8px;
    border: 1px solid var(--sa-brand-500);
    border-radius: 7px;
    outline: 0;
    color: #263448;
    background: #fff;
    font-size: 11px;
    font-weight: 750;
    box-shadow: 0 0 0 3px rgba(79, 204, 205, 0.13);
}

.sa-project-row__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.sa-project-row__open {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #778597;
    background: transparent;
}

.sa-project-row__open:hover,
.sa-project-row__open:focus-visible {
    border-color: #c9e4e5;
    color: var(--sa-brand-800);
    background: #fff;
}

.sa-project-row__open svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sa-project-row__menu {
    position: relative;
}

.sa-project-row__menu summary {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #7f8b9b;
    cursor: pointer;
    list-style: none;
}

.sa-project-row__menu summary::-webkit-details-marker {
    display: none;
}

.sa-project-row__menu summary:hover,
.sa-project-row__menu summary:focus-visible,
.sa-project-row__menu[open] summary {
    border-color: #d8e2e9;
    color: #405166;
    background: #fff;
}

.sa-project-row__menu summary svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.sa-project-row__menu-panel {
    position: fixed;
    z-index: 95;
    display: grid;
    width: 126px;
    padding: 5px;
    border: 1px solid #dce4eb;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18);
}

.sa-project-row__menu-panel button {
    min-height: 31px;
    padding: 0 9px;
    border: 0;
    border-radius: 6px;
    color: #435268;
    background: transparent;
    text-align: left;
    font-size: 9px;
    font-weight: 750;
}

.sa-project-row__menu-panel button:hover,
.sa-project-row__menu-panel button:focus-visible {
    background: #f2f6f8;
}

.sa-project-row__menu-panel button.is-danger {
    color: #b43b45;
}

.sa-project-row__menu-spacer {
    width: 30px;
}

.sa-project-row__editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.sa-project-row__editor-actions button {
    min-height: 28px;
    padding: 0 7px;
    border: 1px solid #d5e0e7;
    border-radius: 6px;
    color: #526175;
    background: #fff;
    font-size: 8px;
    font-weight: 800;
}

.sa-project-row__editor-actions button:first-child {
    border-color: var(--sa-brand-600);
    color: #fff;
    background: var(--sa-brand-700);
}

.sa-project-manager__footer {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 64px;
    padding: 10px 18px;
    border-top: 1px solid #e7ecf0;
    background: #fbfcfd;
}

.sa-project-manager__footer .sa-button {
    height: 36px;
    padding-inline: 14px;
    font-size: 10px;
}

.sa-project-manager__footer .sa-button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    transform: none;
    box-shadow: none;
}

.sa-project-manager__status {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: #66808a;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-project-manager__status.is-error {
    color: #b43b45;
}

.sa-project-login {
    padding: 24px;
}

.sa-project-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.sa-project-login {
    display: grid;
    justify-items: center;
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
}

.sa-project-login__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 14px;
    color: var(--sa-brand-800);
    background: #e1f7f7;
}

.sa-project-login__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-project-login h3 {
    margin: 13px 0 4px;
    color: #263448;
    font-size: 17px;
}

.sa-project-login p {
    margin: 0 0 16px;
    color: #748195;
    font-size: 11px;
    line-height: 1.6;
}

.sa-project-login > div:last-child {
    display: flex;
    gap: 8px;
}

.sa-setup-dialog {
    width: min(680px, 100%);
    grid-template-rows: auto minmax(0, 1fr);
}

.sa-setup-form {
    overflow-y: auto;
    padding: 18px 20px 20px;
}

.sa-setup-step {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 10px;
}

.sa-setup-step:not(:first-child) {
    margin-top: 19px;
}

.sa-setup-step > span {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--sa-brand-900);
    background: #dff5f5;
    font-size: 10px;
    font-weight: 850;
}

.sa-setup-step > div {
    display: grid;
}

.sa-setup-step strong {
    color: #334155;
    font-size: 11px;
}

.sa-setup-step small {
    color: #8a96a6;
    font-size: 8px;
}

.sa-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sa-setup-form .sa-field > small {
    color: #8a96a6;
    font-size: 8px;
}

#structural-canvas .sa-moment-load {
    fill: none;
    stroke: #e34d59;
    stroke-linecap: round;
    stroke-width: 2.2;
    pointer-events: none;
}

@media (max-width: 1180px) {
    .sa-appbar__brand span,
    .sa-command-button span,
    .sa-save-state {
        display: none;
    }

    .sa-appbar__brand {
        padding-right: 10px;
    }

    .sa-appbar__identity {
        width: min(180px, 20vw);
        flex-basis: 180px;
    }

    .sa-file-actions {
        flex: 0 0 auto;
    }

    .sa-command-button {
        width: 32px;
        padding: 0;
    }

    .sa-command-button--setup {
        width: 34px;
    }
}

@media (max-width: 900px) {
    .sa-workspace {
        min-height: 560px;
    }

    .sa-appbar {
        gap: 8px;
        min-height: 58px;
        padding-inline: 8px;
    }

    .sa-appbar__brand {
        display: none;
    }

    .sa-appbar__identity {
        width: min(190px, 32vw);
        flex-basis: 190px;
    }

    .sa-unit-switch {
        display: none;
    }

    .sa-workspace.is-inspector-open .sa-inspector {
        position: fixed;
        z-index: 70;
        top: var(--sa-site-header-height);
        right: 0;
        bottom: 0;
        width: min(340px, 92vw);
        border-left: 1px solid #d8e0e8;
        box-shadow: -16px 0 42px rgba(15, 23, 42, 0.18);
    }

    .sa-workspace.is-inspector-open.are-tools-compact .sa-layout,
    .sa-workspace.is-inspector-open:not(.are-tools-compact) .sa-layout {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .sa-workspace:not(.are-tools-compact) .sa-layout {
        grid-template-columns: 78px minmax(0, 1fr);
    }

    .sa-results {
        right: 10px;
        bottom: 10px;
        width: calc(100% - 84px);
        max-height: 62vh;
    }
}

/* Consolidated project menu and precision-entry controls. */
.sa-project-menu-wrap {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
}

.sa-project-menu-toggle {
    display: inline-flex;
    min-width: 98px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 11px;
    border: 1px solid #dce4eb;
    border-radius: 9px;
    color: #536174;
    background: #f8fafc;
    font-size: 10px;
    font-weight: 800;
}

.sa-project-menu-toggle:hover,
.sa-project-menu-toggle[aria-expanded="true"] {
    border-color: #a9d8d9;
    color: var(--sa-brand-800);
    background: var(--sa-brand-50);
}

.sa-project-menu-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-project-menu-toggle svg:last-child {
    width: 12px;
    transition: transform 140ms ease;
}

.sa-project-menu-toggle[aria-expanded="true"] svg:last-child {
    transform: rotate(180deg);
}

.sa-project-menu {
    position: absolute;
    z-index: 85;
    top: calc(100% + 7px);
    left: 0;
    display: grid;
    width: 238px;
    padding: 6px;
    border: 1px solid #dce4eb;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
}

.sa-project-menu > button,
.sa-project-menu > a {
    display: grid;
    width: 100%;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 0;
    border-radius: 7px;
    color: #526174;
    text-align: left;
    text-decoration: none;
    background: transparent;
}

.sa-project-menu > button:hover,
.sa-project-menu > a:hover {
    color: #274e56;
    background: #effafa;
}

.sa-project-menu > button > svg,
.sa-project-menu > a > svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.sa-project-menu > button > span,
.sa-project-menu > a > span {
    display: grid;
    gap: 1px;
}

.sa-project-menu strong {
    color: #334155;
    font-size: 10px;
}

.sa-project-menu small {
    color: #8793a2;
    font-size: 8px;
}

.sa-project-menu__divider {
    height: 1px;
    margin: 4px 6px;
    background: #e8edf1;
}

.sa-canvas-toolbar .sa-icon-button.is-active {
    border-color: #99d9da;
    color: var(--sa-brand-800);
    background: var(--sa-brand-50);
}

@media (min-width: 901px) {
    .sa-workspace.is-inspector-open .sa-canvas-toolbar {
        padding-right: 317px;
    }
}

.sa-check-field,
.sa-browser-check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    color: #526174;
    background: #f8fafc;
}

.sa-check-field input,
.sa-browser-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--sa-brand-700);
}

.sa-check-field > span {
    display: grid;
    gap: 1px;
}

.sa-check-field strong {
    font-size: 9px;
}

.sa-check-field small {
    color: #8793a2;
    font-size: 8px;
}

.sa-model-browser__actions {
    display: block;
    padding: 0 10px 10px;
}

.sa-browser-create {
    padding: 9px;
    border: 1px solid #e1e8ee;
    border-radius: 9px;
    background: #f8fafc;
}

.sa-browser-create + .sa-browser-create {
    margin-top: 7px;
}

.sa-browser-create__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 7px;
}

.sa-browser-create__heading strong {
    color: #334155;
    font-size: 10px;
}

.sa-browser-create__heading button {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 0;
    border-radius: 6px;
    color: var(--sa-brand-800);
    background: #e3f8f8;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.sa-browser-create__heading-actions {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.sa-browser-create__heading-actions button:last-child {
    color: #687689;
    background: #edf1f5;
}

.sa-browser-inline-form,
.sa-browser-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.sa-browser-inline-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
}

.sa-browser-form-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sa-browser-stack-form {
    display: grid;
    gap: 7px;
}

.sa-browser-inline-form label,
.sa-browser-stack-form > label,
.sa-browser-form-grid label {
    display: grid;
    min-width: 0;
    gap: 3px;
    color: #687689;
    font-size: 7.5px;
    font-weight: 800;
}

.sa-browser-inline-form label span,
.sa-browser-stack-form label span,
.sa-browser-form-grid label span {
    color: #94a0ae;
    font-weight: 700;
}

.sa-browser-field-head {
    display: flex !important;
    min-width: 0;
    min-height: 12px;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px;
}

.sa-browser-field-head > span {
    color: #687689 !important;
    font-weight: 800 !important;
}

.sa-browser-field-head small {
    color: #94a0ae;
    font-size: 7px;
    font-weight: 750;
    white-space: nowrap;
}

.sa-browser-inline-form input,
.sa-browser-stack-form input,
.sa-browser-stack-form select,
.sa-browser-form-grid input,
.sa-browser-form-grid select {
    width: 100%;
    min-width: 0;
    height: 29px;
    padding: 4px 6px;
    border: 1px solid #d8e1e8;
    border-radius: 6px;
    outline: none;
    color: #344155;
    background: #fff;
    font-size: 9px;
}

.sa-browser-inline-form input:focus,
.sa-browser-stack-form input:focus,
.sa-browser-stack-form select:focus,
.sa-browser-form-grid input:focus,
.sa-browser-form-grid select:focus {
    border-color: #8fd3d4;
    box-shadow: 0 0 0 2px rgba(79, 204, 205, 0.11);
}

.sa-browser-inline-form > button,
.sa-browser-stack-form > button {
    min-height: 29px;
    padding: 5px 9px;
    border: 1px solid #9fd9da;
    border-radius: 6px;
    color: var(--sa-brand-800);
    background: #e8fafa;
    font-size: 8.5px;
    font-weight: 800;
}

.sa-browser-inline-form > button {
    grid-column: 1 / -1;
    width: 100%;
}

.sa-browser-inline-form > button:disabled,
.sa-browser-stack-form > button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.sa-browser-form-note {
    margin: 0;
    color: #8793a3;
    font-size: 8px;
    line-height: 1.45;
}

.sa-combination-effective {
    padding: 8px 9px;
    border: 1px solid #dce8eb;
    border-radius: 7px;
    color: #52677a;
    background: #f7fafb;
}

.sa-combination-effective.is-error {
    border-color: #f0c4c7;
    color: #a5313b;
    background: #fff5f5;
}

.sa-browser-check {
    display: flex !important;
    min-height: 34px;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 7px;
    font-size: 8px !important;
}

.sa-browser-stack-form .sa-browser-check input {
    width: 15px;
    min-width: 15px;
    height: 15px;
    min-height: 15px;
    flex: 0 0 15px;
    padding: 0;
}

.sa-browser-check > span {
    color: #687689 !important;
    line-height: 1.3;
}

.sa-section-definition {
    padding: 9px 7px;
    border-bottom: 1px solid #e8edf1;
}

.sa-section-definition.is-selected {
    background: #f0fbfb;
    box-shadow: inset 3px 0 0 var(--sa-brand-500);
}

.sa-section-definition__main {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    border: 0;
    text-align: left;
    background: transparent;
}

.sa-section-definition__main > span:first-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sa-section-definition__main strong {
    color: #334155;
    font-size: 10px;
}

.sa-section-definition__main small {
    overflow: hidden;
    color: #8490a0;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-section-definition__values {
    display: flex;
    gap: 9px;
    margin-top: 6px;
    color: #687689;
    font-size: 7.5px;
    font-weight: 700;
}

.sa-section-definition__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 7px;
}

.sa-section-definition__actions button,
.sa-section-default {
    padding: 3px 6px;
    border: 1px solid #d8e1e8;
    border-radius: 5px;
    color: #607084;
    background: #fff;
    font-size: 7.5px;
    font-weight: 800;
}

.sa-section-default {
    border-color: #a9dcdd;
    color: var(--sa-brand-800);
    background: #e9fafa;
}

@media (max-width: 900px) {
    .sa-project-menu-toggle {
        min-width: 36px;
        width: 36px;
        padding: 0;
    }

    .sa-project-menu-toggle span,
    .sa-project-menu-toggle svg:last-child {
        display: none;
    }

    .sa-project-menu {
        left: auto;
        right: 0;
    }
}

@media (max-width: 620px) {
    .sa-appbar__project {
        gap: 4px;
    }

    .sa-appbar__identity {
        width: min(120px, 32vw);
        flex-basis: 120px;
    }

    .sa-file-actions #save-as-model {
        display: none;
    }

    .sa-appbar__actions {
        gap: 4px;
    }

    .sa-command-button--setup {
        display: inline-flex;
    }

    .sa-project-dialog {
        max-height: calc(100vh - 16px);
    }

    .sa-project-save {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .sa-project-save .sa-field,
    .sa-project-save > p {
        grid-column: 1;
        grid-row: auto;
    }

    .sa-project-search {
        grid-template-columns: minmax(0, 1fr) 38px;
        padding: 10px 12px 8px;
    }

    .sa-project-search .sa-field:first-child {
        grid-column: 1 / -1;
    }

    .sa-project-sort {
        width: auto;
    }

    .sa-project-breadcrumb {
        padding-inline: 12px;
    }

    .sa-project-list-shell {
        margin: 0 12px 10px;
    }

    .sa-project-list__header {
        display: none;
    }

    .sa-project-row {
        grid-template-columns: 32px minmax(0, 1fr) auto;
        gap: 9px;
        padding-inline: 10px;
    }

    .sa-project-row__details,
    .sa-project-row__date {
        display: none;
    }

    .sa-project-manager__footer {
        flex-wrap: wrap;
        min-height: 0;
        padding: 10px 12px;
    }

    .sa-project-manager__status {
        order: -1;
        flex-basis: 100%;
        min-height: 12px;
    }

    .sa-form-grid,
    .sa-form-grid--three {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Compact model navigator: model inventory and drawing tools remain separate. */
.sa-layout,
.sa-workspace.are-tools-compact .sa-layout,
.sa-workspace:not(.are-tools-compact) .sa-layout,
.sa-workspace.is-inspector-open.are-tools-compact .sa-layout,
.sa-workspace.is-inspector-open:not(.are-tools-compact) .sa-layout {
    grid-template-columns: 62px minmax(0, 1fr);
}

.sa-workspace.is-model-browser-open .sa-layout,
.sa-workspace.is-model-browser-open.are-tools-compact .sa-layout,
.sa-workspace.is-model-browser-open:not(.are-tools-compact) .sa-layout {
    grid-template-columns: 62px 278px minmax(0, 1fr);
}

.sa-model-rail {
    position: relative;
    z-index: 6;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 6px;
    overflow: hidden auto;
    border-right: 1px solid #d8e1e9;
    background: #f8fafc;
}

.sa-model-rail__group,
.sa-model-rail__bottom {
    display: grid;
    gap: 5px;
}

.sa-model-rail__divider {
    display: block;
    height: 1px;
    margin: 2px 5px;
    background: #e1e7ed;
}

.sa-rail-button {
    position: relative;
    display: flex;
    width: 50px;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 5px 2px 4px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #657386;
    background: transparent;
    font-size: 7.5px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.sa-rail-button:hover {
    border-color: #d8e4e7;
    color: #334155;
    background: #fff;
}

.sa-rail-button.is-active {
    border-color: #9edfe0;
    color: var(--sa-brand-800);
    background: #eafafa;
    box-shadow: inset 3px 0 0 var(--sa-brand-500);
}

.sa-rail-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-rail-button__count {
    position: absolute;
    top: 3px;
    right: 3px;
    display: inline-flex;
    min-width: 15px;
    height: 15px;
    align-items: center;
    justify-content: center;
    padding-inline: 3px;
    border: 1px solid #fff;
    border-radius: 999px;
    color: #fff;
    background: #718095;
    font-size: 8px;
    font-weight: 850;
    line-height: 1;
}

.sa-rail-button.is-active .sa-rail-button__count {
    background: var(--sa-brand-700);
}

.sa-model-browser {
    position: relative;
    z-index: 5;
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    overflow: hidden;
    border-right: 1px solid #d8e1e9;
    background: #fff;
    box-shadow: 8px 0 24px rgba(15, 23, 42, 0.045);
}

.sa-model-browser__header {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 14px 10px;
}

.sa-model-browser__header .sa-section-label {
    margin-bottom: 2px;
}

.sa-model-browser__header h2 {
    margin: 0;
    color: #1f2c3d;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.sa-model-browser__header .sa-icon-button {
    width: 31px;
    height: 31px;
}

.sa-model-browser__actions {
    display: block;
    min-width: 0;
    padding: 0 14px 11px;
}

.sa-model-browser__actions .sa-browser-create {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.sa-browser-add-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.sa-browser-add-choices > button {
    display: grid;
    min-width: 0;
    justify-items: start;
    gap: 2px;
    padding: 9px;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    color: #69778a;
    background: #f8fafc;
    text-align: left;
}

.sa-browser-add-choices > button:hover {
    border-color: #9ed8d9;
    color: var(--sa-brand-800);
    background: #effafa;
}

.sa-browser-add-choices > button > span {
    display: inline-grid;
    width: 20px;
    height: 20px;
    place-items: center;
    margin-bottom: 2px;
    border-radius: 6px;
    color: var(--sa-brand-800);
    background: #def6f6;
    font-size: 13px;
}

.sa-browser-add-choices strong {
    color: #334155;
    font-size: 9px;
}

.sa-browser-add-choices small {
    color: #8a96a6;
    font-size: 7.5px;
    line-height: 1.35;
}

.sa-draw-launch {
    display: grid;
    gap: 12px;
}

.sa-draw-launch > p {
    margin: 0;
    color: #758295;
    font-size: 9px;
    line-height: 1.5;
}

.sa-draw-tool-grid {
    display: grid;
    gap: 7px;
}

.sa-draw-tool-grid > button {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    color: #566579;
    background: #fff;
    text-align: left;
    transition: 140ms ease;
}

.sa-draw-tool-grid > button:hover {
    border-color: #99d8d9;
    color: var(--sa-brand-800);
    background: #effafa;
    box-shadow: 0 4px 12px rgba(32, 100, 105, 0.08);
}

.sa-draw-tool-grid svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.sa-draw-tool-grid > button > span {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.sa-draw-tool-grid strong {
    color: #334155;
    font-size: 10px;
}

.sa-draw-tool-grid small {
    overflow: hidden;
    color: #8793a3;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-draw-tool-grid kbd {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    padding-inline: 4px;
    border: 1px solid #d9e2e9;
    border-radius: 5px;
    color: #7d8998;
    background: #f8fafc;
    font-family: inherit;
    font-size: 7px;
    font-weight: 800;
}

.sa-library-summary {
    display: grid;
    gap: 7px;
}

.sa-library-summary > button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid #dce5eb;
    border-radius: 9px;
    color: #536174;
    background: #f8fafc;
    text-align: left;
}

.sa-library-summary > button:hover {
    border-color: #9fd8d9;
    background: #effafa;
}

.sa-library-summary > button > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sa-library-summary strong {
    overflow: hidden;
    color: #334155;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-library-summary small {
    color: #8591a1;
    font-size: 8px;
}

.sa-library-summary em {
    display: inline-grid;
    min-width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 999px;
    color: var(--sa-brand-800);
    background: #ddf6f6;
    font-size: 8px;
    font-style: normal;
    font-weight: 850;
}

.sa-library-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 9px;
}

.sa-library-links button {
    min-height: 31px;
    padding: 5px 7px;
    border: 1px solid #d8e2e9;
    border-radius: 7px;
    color: #566579;
    background: #f8fafc;
    font-size: 8px;
    font-weight: 800;
}

.sa-library-links button:hover {
    border-color: #9fd8d9;
    color: var(--sa-brand-800);
    background: #effafa;
}

.sa-model-browser__action {
    display: inline-flex;
    min-width: 0;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 6px 9px;
    border: 1px solid #b7dddd;
    border-radius: 8px;
    color: var(--sa-brand-800);
    background: var(--sa-brand-50);
    font-size: 10px;
    font-weight: 800;
}

.sa-model-browser__action:hover {
    border-color: var(--sa-brand-500);
    background: #ddf7f7;
}

.sa-model-browser__action span {
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
}

.sa-model-browser__search {
    position: relative;
    display: block;
    padding: 0 14px 11px;
}

.sa-model-browser__search svg {
    position: absolute;
    top: 9px;
    left: 24px;
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #8390a1;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.sa-model-browser__search input {
    width: 100%;
    height: 34px;
    padding: 6px 10px 6px 32px;
    border: 1px solid #dce4eb;
    border-radius: 8px;
    outline: none;
    color: #334155;
    background: #f8fafc;
    font-size: 10px;
}

.sa-model-browser__search input:focus {
    border-color: #9bd8d9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 204, 205, 0.11);
}

.sa-model-browser__body {
    min-height: 0;
    padding: 0 8px 10px;
    overflow-y: auto;
    border-top: 1px solid #edf1f4;
}

.sa-model-browser__row {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto 13px;
    align-items: center;
    gap: 7px;
    padding: 10px 7px;
    border: 0;
    border-bottom: 1px solid #edf1f4;
    border-radius: 0;
    color: #5f6d7e;
    text-align: left;
    background: transparent;
}

.sa-model-browser__row:hover,
.sa-model-browser__row.is-selected {
    color: #2b6670;
    background: #f0fbfb;
}

.sa-model-browser__row.is-selected {
    box-shadow: inset 3px 0 0 var(--sa-brand-500);
}

.sa-model-browser__row-main {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sa-model-browser__row-aside {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.sa-model-browser__row-main strong,
.sa-model-browser__row-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-model-browser__row-main strong {
    color: #334155;
    font-size: 11px;
    font-weight: 800;
}

.sa-model-browser__row-main small {
    color: #7a8797;
    font-size: 9px;
    font-weight: 650;
}

.sa-model-browser__row > svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.sa-model-browser__badge {
    max-width: 90px;
    overflow: hidden;
    padding: 3px 6px;
    border-radius: 999px;
    color: #59677a;
    background: #edf2f6;
    font-size: 8px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-model-browser__badge--load {
    color: #b13b47;
    background: #fff0f1;
}

.sa-model-browser__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sa-red);
    box-shadow: 0 0 0 3px #fff0f1;
}

.sa-model-browser__empty {
    display: grid;
    place-items: center;
    padding: 40px 18px;
    color: #778496;
    text-align: center;
}

.sa-model-browser__empty span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    margin-bottom: 9px;
    border-radius: 10px;
    color: #607184;
    background: #f1f5f8;
    font-size: 18px;
}

.sa-model-browser__empty strong {
    color: #3f4c5e;
    font-size: 11px;
}

.sa-model-browser__empty p {
    margin: 4px 0 0;
    font-size: 9px;
    line-height: 1.5;
}

.sa-model-browser__footer {
    min-height: 33px;
    padding: 9px 13px;
    border-top: 1px solid #e5ebf0;
    color: #7a8797;
    background: #f8fafc;
    font-size: 8.5px;
    font-weight: 700;
}

.sa-save-state > [data-save-label] {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
}

@media (max-width: 1400px) {
    .sa-workspace.is-model-browser-open .sa-grid-control,
    .sa-workspace.is-model-browser-open .sa-zoom-label {
        display: none;
    }
}

@media (max-width: 900px) {
    .sa-layout,
    .sa-workspace.are-tools-compact .sa-layout,
    .sa-workspace:not(.are-tools-compact) .sa-layout,
    .sa-workspace.is-inspector-open.are-tools-compact .sa-layout,
    .sa-workspace.is-inspector-open:not(.are-tools-compact) .sa-layout,
    .sa-workspace.is-model-browser-open .sa-layout,
    .sa-workspace.is-model-browser-open.are-tools-compact .sa-layout,
    .sa-workspace.is-model-browser-open:not(.are-tools-compact) .sa-layout {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .sa-model-rail {
        padding-inline: 4px;
    }

    .sa-model-browser {
        position: absolute;
        z-index: 55;
        top: 0;
        bottom: 0;
        left: 58px;
        width: min(286px, calc(100vw - 58px));
        box-shadow: 16px 0 36px rgba(15, 23, 42, 0.16);
    }

    .sa-results {
        width: calc(100% - 70px);
    }
}

/* Direct modeling ribbon and contextual analysis controls. */
.sa-command-button--save {
    min-width: 68px;
    border: 1px solid #dce4eb;
    background: #fff;
}

.sa-canvas-toolbar {
    gap: 5px;
    overflow: visible;
}

.sa-drawing-ribbon {
    flex: 0 0 auto;
    gap: 2px;
    padding: 3px;
    border: 1px solid #e2e8ef;
    border-radius: 9px;
    background: #f7f9fb;
}

.sa-ribbon-tool {
    display: inline-flex;
    height: 32px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #617084;
    background: transparent;
    font-size: 8.5px;
    font-weight: 800;
    white-space: nowrap;
}

.sa-ribbon-tool:hover,
.sa-ribbon-tool.is-active {
    border-color: #a5dfe0;
    color: var(--sa-brand-800);
    background: #fff;
}

.sa-ribbon-tool.is-active {
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), inset 0 -2px 0 var(--sa-brand-500);
}

.sa-ribbon-tool--erase:hover,
.sa-ribbon-tool--erase.is-active {
    border-color: #f0b7bc;
    color: #b43d48;
    background: #fff7f7;
    box-shadow: inset 0 -2px 0 #e76873;
}

.sa-ribbon-tool svg,
.sa-ribbon-tool__menu svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-quick-tool-wrap {
    position: relative;
    display: inline-flex;
    align-items: stretch;
}

.sa-quick-tool-wrap > .sa-ribbon-tool:has(+ .sa-ribbon-tool__menu) {
    padding-right: 5px;
    border-radius: 6px 2px 2px 6px;
}

.sa-ribbon-tool__menu {
    display: inline-grid;
    width: 18px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-left: 0;
    border-radius: 2px 6px 6px 2px;
    color: #748195;
    background: transparent;
}

.sa-ribbon-tool__menu:hover,
.sa-ribbon-tool__menu[aria-expanded="true"],
.sa-quick-tool-wrap > .sa-ribbon-tool:has(+ .sa-ribbon-tool__menu[aria-expanded="true"]) {
    border-color: #a5dfe0;
    color: var(--sa-brand-800);
    background: #fff;
}

.sa-ribbon-tool__menu svg {
    width: 11px;
}

.sa-quick-popover {
    position: absolute;
    z-index: 90;
    top: calc(100% + 8px);
    left: 0;
    padding: 10px;
    border: 1px solid #d9e3e9;
    border-radius: 10px;
    color: #526174;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.18);
}

.sa-display-control > .sa-icon-button {
    position: relative;
}

.sa-display-control > .sa-icon-button.has-hidden-layers::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 6px;
    height: 6px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #e18a3b;
}

.sa-display-popover {
    right: 0;
    left: auto;
    width: 260px;
    padding: 8px;
}

.sa-display-popover__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 3px 3px 8px;
    border-bottom: 1px solid #e7edf1;
}

.sa-display-popover__heading strong,
.sa-display-popover__heading small {
    display: block;
}

.sa-display-popover__heading strong {
    color: #334155;
    font-size: 10px;
}

.sa-display-popover__heading small {
    margin-top: 2px;
    color: #8793a2;
    font-size: 7.5px;
}

.sa-display-popover__heading button {
    border: 0;
    padding: 3px;
    color: #25898b;
    background: transparent;
    font-size: 8px;
    font-weight: 850;
    white-space: nowrap;
}

.sa-display-popover__heading button:hover {
    color: #176a6c;
    text-decoration: underline;
}

.sa-display-options {
    display: grid;
    gap: 1px;
    padding-top: 5px;
}

.sa-display-options > label {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 6px;
    border-radius: 7px;
    cursor: pointer;
}

.sa-display-options > label:hover {
    background: #f3f8f9;
}

.sa-display-options label strong,
.sa-display-options label small {
    display: block;
}

.sa-display-options label strong {
    color: #455468;
    font-size: 9px;
}

.sa-display-options label small {
    margin-top: 1px;
    color: #8a96a5;
    font-size: 7px;
}

.sa-display-options input {
    position: relative;
    width: 29px;
    height: 17px;
    flex: 0 0 auto;
    appearance: none;
    border: 1px solid #cbd6de;
    border-radius: 999px;
    outline: none;
    background: #dbe3e8;
    cursor: pointer;
    transition: 130ms ease;
}

.sa-display-options input::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .2);
    transition: 130ms ease;
}

.sa-display-options input:checked {
    border-color: #25898b;
    background: #25898b;
}

.sa-display-options input:checked::before {
    transform: translateX(12px);
}

.sa-display-options input:focus-visible {
    box-shadow: 0 0 0 3px rgba(79, 204, 205, .2);
}

.sa-display-load-filter {
    margin: -1px 6px 4px;
    padding: 7px 8px 8px;
    border: 1px solid #dce7eb;
    border-radius: 7px;
    background: #f7fafb;
}

.sa-display-load-filter > label,
.sa-display-load-filter > small {
    display: block;
}

.sa-display-load-filter > label {
    margin-bottom: 5px;
    color: #536277;
    font-size: 7.5px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.sa-display-load-filter select {
    width: 100%;
    min-height: 30px;
    border: 1px solid #ccd9e0;
    border-radius: 6px;
    padding: 0 26px 0 8px;
    color: #334155;
    background: #fff;
    font: inherit;
    font-size: 8px;
    font-weight: 700;
}

.sa-display-load-filter > small {
    margin-top: 5px;
    color: #8793a2;
    font-size: 6.8px;
    line-height: 1.35;
}

.sa-support-popover {
    width: 196px;
}

.sa-support-popover > strong,
.sa-quick-popover__heading strong {
    color: #334155;
    font-size: 10px;
}

.sa-support-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 8px;
}

.sa-support-choices button {
    min-height: 31px;
    padding: 5px;
    border: 1px solid #dce4ea;
    border-radius: 6px;
    color: #617084;
    background: #f8fafc;
    font-size: 8px;
    font-weight: 800;
}

.sa-support-choices button:hover,
.sa-support-choices button.is-active {
    border-color: #9bd8d9;
    color: var(--sa-brand-800);
    background: #ecfafa;
}

.sa-load-popover {
    width: 350px;
    max-height: min(520px, calc(100dvh - 220px));
    overflow-y: auto;
    overscroll-behavior: contain;
}

.sa-quick-popover__heading {
    display: grid;
    gap: 1px;
    margin-bottom: 8px;
}

.sa-quick-popover__heading small {
    color: #8793a3;
    font-size: 8px;
}

.sa-quick-load-types {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 7px;
}

.sa-quick-load-types button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 5px;
    min-width: 0;
    padding: 6px;
    border: 1px solid #dce5eb;
    border-radius: 8px;
    outline: 0;
    text-align: left;
    color: #657386;
    background: #f8fafc;
}

.sa-quick-load-types button > span {
    grid-row: 1 / 3;
    align-self: center;
    color: #748397;
    font-size: 15px;
    line-height: 1;
}

.sa-quick-load-types button strong {
    overflow: hidden;
    color: #3e4c5f;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-quick-load-types button small {
    color: #98a3b1;
    font-size: 6.5px;
    font-weight: 700;
}

.sa-quick-load-types button:hover,
.sa-quick-load-types button.is-active {
    border-color: #87d2d3;
    color: var(--sa-brand-800);
    background: #e9fafa;
    box-shadow: inset 2px 0 0 #4fc9ca;
}

.sa-quick-load-types button.is-active > span,
.sa-quick-load-types button.is-active strong {
    color: var(--sa-brand-800);
}

.sa-quick-load-types button:focus-visible {
    border-color: #4fc9ca;
    box-shadow: inset 2px 0 0 #4fc9ca, 0 0 0 2px rgba(79, 201, 202, 0.18);
}

.sa-quick-load-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    align-items: end;
    padding: 8px;
    border: 1px solid #e2e8ee;
    border-radius: 8px;
    background: #f8fafc;
}

.sa-quick-load-form[hidden] {
    display: none;
}

.sa-quick-load-form + .sa-quick-load-form {
    margin-top: 6px;
}

.sa-quick-load-form__title {
    grid-column: 1 / -1;
    color: #3e4c5f;
    font-size: 9px;
}

.sa-quick-load-form__title small {
    display: block;
    margin-top: 1px;
    color: #8c98a7;
    font-size: 7px;
    font-weight: 600;
}

.sa-quick-load-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

[data-quick-load-form="point"] .sa-quick-load-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sa-quick-load-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sa-quick-load-form label {
    display: grid;
    min-width: 0;
    gap: 2px;
    color: #657386;
    font-size: 8px;
    font-weight: 800;
}

.sa-quick-load-form label > span {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px;
}

.sa-quick-load-form label small {
    color: #94a0ae;
    font-size: 6.5px;
}

.sa-quick-load-form input,
.sa-quick-load-form select {
    width: 100%;
    min-width: 0;
    height: 29px;
    padding: 4px 6px;
    border: 1px solid #d5dfe7;
    border-radius: 6px;
    outline: 0;
    color: #344155;
    background: #fff;
    font-size: 9px;
}

.sa-quick-load-form input:focus,
.sa-quick-load-form select:focus {
    border-color: #8fd3d4;
    box-shadow: 0 0 0 2px rgba(79, 204, 205, 0.12);
}

.sa-quick-load-form > button {
    grid-column: 1 / -1;
    min-width: 72px;
    height: 29px;
    padding: 0 8px;
    border: 1px solid #9fd9da;
    border-radius: 6px;
    color: var(--sa-brand-800);
    background: #e7fafa;
    font-size: 8px;
    font-weight: 800;
}

.sa-quick-load-form > .sa-quick-load-assignment {
    grid-column: 1 / -1;
}

.sa-results-ribbon {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 5px;
    margin-left: 4px;
    padding: 3px 4px 3px 7px;
    border: 1px solid #b7dddd;
    border-radius: 9px;
    background: #f0fbfb;
}

.sa-results-ribbon__label {
    color: var(--sa-brand-800);
    font-size: 7.5px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sa-results-ribbon .sa-view-modes {
    background: #e2f4f4;
}

.sa-results-ribbon__overview {
    height: 27px;
    padding: 0 7px;
    border: 0;
    border-radius: 6px;
    color: var(--sa-brand-800);
    background: transparent;
    font-size: 8px;
    font-weight: 800;
}

.sa-results-ribbon__overview:hover {
    background: #fff;
}

#structural-canvas .sa-shear-fill {
    fill: rgba(6, 182, 212, 0.16);
    stroke: #0891b2;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.sa-result-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Two-line navigator summaries with local remove actions. */
.sa-model-browser__row-shell {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: stretch;
    border-bottom: 1px solid #edf1f4;
}

.sa-model-browser__row-shell:hover,
.sa-model-browser__row-shell.is-selected {
    background: #f0fbfb;
}

.sa-model-browser__row-shell.is-selected {
    box-shadow: inset 3px 0 0 var(--sa-brand-500);
}

.sa-model-browser__row {
    grid-template-columns: minmax(0, 1fr) 13px;
    padding: 9px 4px 9px 7px;
    border-bottom: 0;
    background: transparent;
}

.sa-model-browser__row:hover,
.sa-model-browser__row.is-selected {
    background: transparent;
    box-shadow: none;
}

.sa-model-browser__row-main {
    gap: 2px;
}

.sa-model-browser__row-details {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.sa-model-browser__row-details .sa-model-browser__badge {
    max-width: 105px;
}

.sa-model-browser__row-delete {
    display: grid;
    width: 28px;
    min-height: 34px;
    place-items: center;
    align-self: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: #a0aab7;
    background: transparent;
}

.sa-model-browser__row-delete:hover {
    color: #c14651;
    background: #fff0f1;
}

.sa-model-browser__row-delete svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

/* Compact reusable-property creation forms. */
.sa-browser-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}

.sa-browser-form-footer > button {
    min-width: 92px;
    height: 29px;
    padding: 0 9px;
    border: 1px solid #9fd9da;
    border-radius: 6px;
    color: var(--sa-brand-800);
    background: #e8fafa;
    font-size: 8.5px;
    font-weight: 800;
}

.sa-browser-form-footer > button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.sa-browser-default-toggle {
    display: inline-flex !important;
    min-width: 0;
    align-items: center;
    gap: 6px !important;
    color: #6a788b !important;
    font-size: 7.5px !important;
    font-weight: 800 !important;
    white-space: nowrap;
}

.sa-browser-default-toggle input {
    width: 14px !important;
    min-width: 14px !important;
    height: 14px !important;
    min-height: 14px !important;
    padding: 0 !important;
    accent-color: var(--sa-brand-700);
}

.sa-browser-default-toggle span {
    color: #6a788b !important;
}

.sa-section-definition__actions button[data-material-delete],
.sa-section-definition__actions button[data-section-delete] {
    color: #b6404b;
    border-color: #f0c2c6;
    background: #fff7f7;
}

@media (max-width: 1420px) {
    .sa-ribbon-tool {
        width: 34px;
        padding-inline: 0;
    }

    .sa-ribbon-tool span,
    .sa-results-ribbon__label,
    .sa-results-ribbon__overview {
        display: none;
    }

    .sa-quick-tool-wrap > .sa-ribbon-tool:has(+ .sa-ribbon-tool__menu) {
        width: 29px;
        padding: 0;
    }
}

@media (max-width: 1080px) {
    .sa-command-button--save span {
        display: none;
    }

    .sa-command-button--save {
        min-width: 34px;
        width: 34px;
        padding: 0;
    }

    .sa-canvas-toolbar > .sa-toolbar-divider,
    .sa-history-tools {
        display: none;
    }

    .sa-results-ribbon {
        margin-left: 1px;
        padding-left: 3px;
    }
}

@media (max-width: 760px) {
    .sa-canvas-toolbar {
        flex-wrap: wrap;
    }

    .sa-workspace.has-results .sa-results-ribbon {
        order: 10;
        width: 100%;
    }

    .sa-load-popover {
        width: min(330px, calc(100vw - 84px));
    }

    .sa-result-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Context panel, assistant, activity timeline, and contextual canvas guidance */
.sa-command-button--assistant {
    border-color: #c8e7e6;
    color: #176a6c;
    background: linear-gradient(135deg, #f3fbfa, #e6f7f6);
}

.sa-command-button--assistant svg {
    color: #23898b;
}

.sa-inspector {
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.sa-context-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 8px;
    border-bottom: 1px solid #dce5eb;
    background: #f7fafb;
}

.sa-context-tabs button {
    min-width: 0;
    border: 0;
    border-radius: 8px;
    padding: 8px 5px;
    color: #667386;
    background: transparent;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.sa-context-tabs button:hover,
.sa-context-tabs button.is-active {
    color: #176a6c;
    background: #e7f5f4;
}

.sa-context-panel {
    min-height: 0;
    overflow: hidden;
}

.sa-context-panel[hidden] {
    display: none !important;
}

#context-properties-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.sa-context-panel__header {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    border-bottom: 1px solid #e4e9ee;
}

.sa-context-panel__header h2 {
    margin: 1px 0 0;
    color: #263448;
    font-size: 15px;
    font-weight: 800;
}

.sa-context-panel__header > span,
.sa-context-panel__header-actions > span {
    border: 1px solid #d8e8e8;
    border-radius: 999px;
    padding: 4px 7px;
    color: #4d7778;
    background: #f4fbfa;
    font-size: 9px;
    font-weight: 800;
}

.sa-context-panel__header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.sa-assistant-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

.sa-assistant-context {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 9px 13px;
    border-bottom: 1px solid #e6ebef;
}

.sa-assistant-context span,
.sa-activity-entry__revision {
    border-radius: 999px;
    padding: 3px 7px;
    color: #536377;
    background: #edf2f5;
    font-size: 9px;
    font-weight: 800;
}

.sa-assistant-messages {
    min-height: 0;
    overflow-y: auto;
    padding: 13px;
    background: #fbfcfd;
}

.sa-assistant-welcome,
.sa-assistant-message,
.sa-assistant-proposal {
    margin-bottom: 10px;
    border: 1px solid #dee6eb;
    border-radius: 12px;
    padding: 11px;
    color: #435066;
    background: #fff;
    font-size: 12px;
    line-height: 1.5;
}

.sa-assistant-message.is-user {
    margin-left: 24px;
    border-color: #c9e7e6;
    background: #eff9f8;
}

.sa-assistant-message.is-error {
    border-color: #fecaca;
    color: #9f2d38;
    background: #fff7f7;
}

.sa-assistant-welcome p,
.sa-assistant-message p,
.sa-assistant-proposal p {
    margin: 4px 0 0;
}

.sa-assistant-proposal {
    border-color: #bddfdd;
    box-shadow: 0 8px 24px rgba(28, 104, 106, 0.08);
}

.sa-assistant-proposal__heading,
.sa-assistant-proposal__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sa-assistant-proposal ul {
    margin: 9px 0;
    padding-left: 18px;
}

.sa-assistant-proposal__health {
    display: block;
    margin: 7px 0;
    color: #69778a;
    font-size: 10px;
}

.sa-assistant-proposal button,
.sa-assistant-suggestions button,
.sa-assistant-form button,
.sa-activity-filters button {
    border: 1px solid #d4dfe5;
    border-radius: 8px;
    padding: 7px 9px;
    color: #48576b;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.sa-assistant-proposal button[data-assistant-apply],
.sa-assistant-form button {
    border-color: #267f80;
    color: #fff;
    background: #267f80;
}

.sa-assistant-suggestions {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 12px;
    border-top: 1px solid #e5eaee;
}

.sa-assistant-suggestions button {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 6px 9px;
    background: #f7fafb;
}

.sa-assistant-form {
    padding: 10px 12px 12px;
    border-top: 1px solid #e2e8ec;
    background: #fff;
}

.sa-assistant-form textarea {
    width: 100%;
    resize: none;
    border: 1px solid #cfdbe2;
    border-radius: 10px;
    padding: 9px 10px;
    color: #293548;
    background: #fbfcfd;
    font: inherit;
    font-size: 12px;
}

.sa-assistant-form > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 7px;
}

.sa-assistant-form small {
    color: #7a8798;
    font-size: 9px;
}

.sa-assistant-form button:disabled {
    cursor: wait;
    opacity: .58;
}

.sa-activity-panel {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    position: relative;
}

.sa-activity-filters {
    display: flex;
    gap: 5px;
    padding: 9px 12px;
    border-bottom: 1px solid #e5eaee;
    overflow-x: auto;
}

.sa-activity-filters button.is-active {
    border-color: #a9d7d5;
    color: #176a6c;
    background: #eaf7f6;
}

.sa-activity-list {
    min-height: 0;
    overflow-y: auto;
    padding: 14px 13px 24px;
}

.sa-activity-entry {
    display: grid;
    grid-template-columns: 10px 1fr;
    gap: 8px;
    position: relative;
    padding-bottom: 17px;
}

.sa-activity-entry::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 0;
    left: 4px;
    width: 1px;
    background: #dfe7eb;
}

.sa-activity-entry__marker {
    z-index: 1;
    width: 9px;
    height: 9px;
    margin-top: 3px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #7d8997;
    box-shadow: 0 0 0 1px #cdd8de;
}

.sa-activity-entry.is-ai .sa-activity-entry__marker {
    background: #25898b;
}

.sa-activity-entry__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #7d8997;
    font-size: 9px;
}

.sa-activity-entry__meta strong {
    color: #425066;
    font-size: 10px;
}

.sa-activity-entry p {
    margin: 3px 0 6px;
    color: #344155;
    font-size: 11px;
    line-height: 1.45;
}

.sa-activity-entry details {
    margin-top: 6px;
    color: #657386;
    font-size: 10px;
}

.sa-activity-entry details ul {
    margin: 5px 0 0;
    padding-left: 17px;
}

.sa-activity-entry__entities {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.sa-activity-entry__entities button {
    border: 0;
    border-radius: 6px;
    padding: 3px 6px;
    color: #286f71;
    background: #eaf7f6;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.sa-activity-entry__restore {
    margin-top: 7px;
    border: 1px solid #bfdedc;
    border-radius: 7px;
    padding: 5px 7px;
    color: #246f71;
    background: #f0f9f8;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.sa-activity-empty {
    position: absolute;
    inset: 115px 18px auto;
    padding: 28px 14px;
    color: #758295;
    text-align: center;
}

.sa-activity-empty strong {
    display: block;
    color: #455267;
    font-size: 12px;
}

.sa-activity-empty p {
    margin: 5px 0 0;
    font-size: 10px;
    line-height: 1.5;
}

.sa-canvas-tip.is-actionable {
    display: flex;
    align-items: center;
    gap: 9px;
    border-color: #9ed1cf;
    color: #275f61;
    background: rgba(239, 250, 249, .96);
}

.sa-canvas-tip.is-warning {
    border-color: #f2ca75;
    color: #79571a;
    background: rgba(255, 249, 231, .97);
}

.sa-canvas-tip.is-ai {
    border-color: #adcced;
    color: #315f8a;
    background: rgba(242, 248, 255, .97);
}

.sa-canvas-tip button {
    border: 0;
    border-radius: 999px;
    padding: 5px 8px;
    color: #fff;
    background: #267f80;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.sa-canvas-tip button[data-guidance-action="reject-ai-proposal"] {
    border: 1px solid #cdd8df;
    color: #526174;
    background: #fff;
}

.sa-canvas-tip button[data-guidance-action="view-ai-exchange"] {
    color: #256f71;
    background: #dff3f2;
}

.sa-canvas-tip .sa-canvas-tip__dismiss {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    color: #738195;
    background: transparent;
    font-size: 17px;
    font-weight: 500;
    line-height: 1;
}

.sa-canvas-tip .sa-canvas-tip__dismiss:hover,
.sa-canvas-tip .sa-canvas-tip__dismiss:focus-visible {
    border-color: #d9e1e6;
    color: #334155;
    background: #f2f5f6;
}

#structural-canvas .sa-ai-preview-layer {
    pointer-events: none;
}

#structural-canvas .sa-ai-preview-member {
    fill: none;
    stroke: #27999a;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 8 6;
    opacity: .72;
}

#structural-canvas .sa-ai-preview-member.is-delete {
    stroke: #d84a59;
}

#structural-canvas .sa-ai-preview-node {
    fill: rgba(39, 153, 154, .16);
    stroke: #27999a;
    stroke-width: 3;
    stroke-dasharray: 5 4;
}

#structural-canvas .sa-ai-preview-node.is-delete {
    fill: rgba(216, 74, 89, .12);
    stroke: #d84a59;
}

#structural-canvas .sa-ai-preview-label {
    fill: #1c6f71;
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 4px;
    stroke-linejoin: round;
    font-size: 10px;
    font-weight: 850;
}

@media (max-width: 760px) {
    .sa-command-button--assistant span {
        display: none;
    }

    .sa-workspace.is-inspector-open .sa-inspector {
        width: min(92vw, 360px);
    }

    .sa-ai-quick-dock {
        bottom: 10px;
        width: calc(100% - 24px);
    }

    .sa-ai-quick-form {
        padding-left: 11px;
    }

    .sa-ai-quick-form kbd {
        display: none;
    }
}

/* Overlay navigator and dedicated contextual analysis ribbon. */
.sa-workspace {
    --sa-results-ribbon-height: 0px;
}

.sa-workspace.has-results {
    --sa-results-ribbon-height: 44px;
}

.sa-layout,
.sa-workspace.are-tools-compact .sa-layout,
.sa-workspace:not(.are-tools-compact) .sa-layout,
.sa-workspace.is-inspector-open.are-tools-compact .sa-layout,
.sa-workspace.is-inspector-open:not(.are-tools-compact) .sa-layout,
.sa-workspace.is-model-browser-open .sa-layout,
.sa-workspace.is-model-browser-open.are-tools-compact .sa-layout,
.sa-workspace.is-model-browser-open:not(.are-tools-compact) .sa-layout {
    grid-template-columns: 62px minmax(0, 1fr);
}

.sa-stage-card {
    position: relative;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.sa-workspace.has-results .sa-stage-card {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.sa-model-browser,
.sa-workspace.is-model-browser-open .sa-model-browser {
    position: absolute;
    z-index: 12;
    top: calc(52px + var(--sa-results-ribbon-height));
    bottom: 32px;
    left: 0;
    width: 278px;
    border-right: 1px solid #d4dee7;
    border-bottom: 1px solid #d4dee7;
    border-bottom-right-radius: 12px;
    background: rgba(255, 255, 255, 0.985);
    box-shadow: 16px 10px 34px rgba(15, 23, 42, 0.15);
    animation: sa-browser-slide-in 150ms ease-out;
    backdrop-filter: blur(10px);
}

@keyframes sa-browser-slide-in {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sa-results-ribbon {
    position: relative;
    z-index: 7;
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 11px;
    overflow-x: auto;
    border: 0;
    border-bottom: 1px solid #cfe3e4;
    border-radius: 0;
    background: linear-gradient(90deg, #f1fbfb 0%, #f8fcfc 52%, #fff 100%);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.9);
    animation: sa-results-reveal 160ms ease-out;
    scrollbar-width: none;
}

.sa-results-ribbon::-webkit-scrollbar {
    display: none;
}

@keyframes sa-results-reveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sa-results-ribbon__label {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    padding-right: 3px;
    color: var(--sa-brand-800);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sa-results-ribbon__label > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--sa-brand-500);
    box-shadow: 0 0 0 3px rgba(79, 204, 205, 0.14);
}

.sa-results-ribbon .sa-view-modes {
    flex: 0 0 auto;
    background: #e3f3f3;
}

.sa-results-ribbon .sa-view-modes button {
    min-width: 62px;
}

.sa-results-ribbon__overview {
    display: inline-flex;
    flex: 0 0 auto;
    height: 32px;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 0 10px;
    border: 1px solid #b9dddd;
    color: var(--sa-brand-800);
    background: rgba(255, 255, 255, 0.8);
}

.sa-results-ribbon__overview svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (max-width: 900px) {
    .sa-layout,
    .sa-workspace.are-tools-compact .sa-layout,
    .sa-workspace:not(.are-tools-compact) .sa-layout,
    .sa-workspace.is-inspector-open.are-tools-compact .sa-layout,
    .sa-workspace.is-inspector-open:not(.are-tools-compact) .sa-layout,
    .sa-workspace.is-model-browser-open .sa-layout,
    .sa-workspace.is-model-browser-open.are-tools-compact .sa-layout,
    .sa-workspace.is-model-browser-open:not(.are-tools-compact) .sa-layout {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .sa-model-browser,
    .sa-workspace.is-model-browser-open .sa-model-browser {
        top: calc(52px + var(--sa-results-ribbon-height));
        right: auto;
        bottom: 32px;
        left: 0;
        width: min(286px, calc(100vw - 58px));
    }
}

@media (max-width: 760px) {
    .sa-canvas-toolbar {
        flex-wrap: nowrap;
    }

    .sa-workspace.has-results .sa-results-ribbon {
        order: initial;
        width: 100%;
    }

    .sa-results-ribbon__label {
        display: none;
    }

    .sa-results-ribbon__overview {
        margin-left: 0;
    }

    .sa-results-ribbon__overview span {
        display: none;
    }
}

/* Load cases and combinations */
.sa-analysis-scenario {
    display: flex;
    height: 38px;
    min-width: 0;
    align-items: center;
    gap: 7px;
    padding: 0 8px 0 10px;
    border: 1px solid #d9e3ea;
    border-radius: 9px;
    color: #7a8798;
    background: #fff;
    font-size: 8px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sa-analysis-scenario select {
    width: 138px;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #334155;
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

.sa-analysis-scenario:focus-within {
    border-color: #72cdce;
    box-shadow: 0 0 0 3px rgba(79, 204, 205, 0.12);
}

.sa-load-case-bar {
    display: flex;
    min-width: 0;
    align-items: end;
    gap: 7px;
    margin-bottom: 8px;
    padding: 8px;
    border: 1px solid #cfe4e5;
    border-radius: 9px;
    background: #f2fbfb;
}

.sa-load-case-bar label {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 3px;
    color: #708093;
    font-size: 8px;
    font-weight: 800;
}

.sa-load-case-bar select {
    width: 100%;
    height: 31px;
    min-width: 0;
    padding: 0 8px;
    border: 1px solid #d6e2e8;
    border-radius: 7px;
    color: #334155;
    background: #fff;
    font-size: 10px;
    font-weight: 700;
}

.sa-load-case-bar > button {
    height: 31px;
    flex: 0 0 auto;
    padding: 0 9px;
    border: 1px solid #a8d9da;
    border-radius: 7px;
    color: var(--sa-brand-800);
    background: #fff;
    font-size: 9px;
    font-weight: 800;
}

.sa-load-case-bar--optional {
    align-items: center;
}

.sa-load-case-bar--optional > span {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    gap: 2px;
}

.sa-load-case-bar--optional strong {
    color: #405166;
    font-size: 9px;
}

.sa-load-case-bar--optional small {
    color: #7e8d9e;
    font-size: 7.5px;
    line-height: 1.35;
}

.sa-load-manager {
    display: grid;
    gap: 10px;
    padding-bottom: 10px;
}

.sa-workspace.is-model-browser-open .sa-model-browser.is-scenario-manager {
    width: 360px;
    grid-template-rows: auto minmax(0, 1fr);
}

.sa-model-browser.is-scenario-manager .sa-model-browser__actions {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.sa-load-manager > section {
    padding: 9px;
    border: 1px solid #dce5eb;
    border-radius: 10px;
    background: #f8fafc;
}

.sa-load-definition-list {
    display: grid;
    gap: 5px;
}

.sa-load-definition-row {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding: 7px 8px;
    border: 1px solid #e1e8ee;
    border-radius: 8px;
    background: #fff;
}

.sa-load-definition-row > span:first-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sa-load-definition-row strong,
.sa-load-definition-row small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-load-definition-row strong {
    color: #344256;
    font-size: 10px;
}

.sa-load-definition-row small {
    color: #8895a5;
    font-size: 8px;
}

.sa-load-definition-row small b,
.sa-load-definition-row small em {
    display: inline-flex;
    padding: 1px 4px;
    border-radius: 999px;
    color: var(--sa-brand-800);
    background: #e7f7f7;
    font-size: 7px;
    font-style: normal;
}

.sa-load-definition-row small em {
    margin-left: 4px;
    color: #6f5820;
    background: #fff5cf;
}

.sa-load-definition-row__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
}

.sa-load-definition-row__actions button {
    padding: 3px 5px;
    border: 0;
    border-radius: 5px;
    color: #64748b;
    background: #edf2f6;
    font-size: 8px;
    font-weight: 750;
}

.sa-load-definition-row__actions button[data-load-case-delete],
.sa-load-definition-row__actions button[data-combination-delete] {
    color: #a14f59;
    background: #faecee;
}

.sa-scenario-empty {
    display: grid;
    gap: 2px;
    padding: 8px;
    border: 1px dashed #cedae2;
    border-radius: 8px;
    color: #7c899a;
    background: #fff;
}

.sa-scenario-empty strong {
    color: #4b5a6d;
    font-size: 9px;
}

.sa-scenario-empty span {
    font-size: 8px;
    line-height: 1.4;
}

.sa-self-weight-section {
    border-color: #c8e1e1 !important;
    background: #f3fbfb !important;
}

.sa-self-weight-section .sa-browser-create__heading > em {
    padding: 2px 6px;
    border-radius: 999px;
    color: var(--sa-brand-800);
    background: #dff5f5;
    font-size: 7px;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
}

.sa-load-manager__form {
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid #e2e8ee;
}

.sa-load-manager__form .sa-browser-form-footer button[data-load-case-cancel],
.sa-load-manager__form .sa-browser-form-footer button[data-combination-cancel] {
    border-color: #d7e0e7;
    color: #677588;
    background: #f3f6f8;
}

.sa-scenario-manager .sa-browser-create__heading > span {
    display: grid;
    gap: 2px;
}

.sa-scenario-manager .sa-browser-create__heading small {
    color: #8794a5;
    font-size: 8px;
    font-weight: 500;
    line-height: 1.35;
}

.sa-scenario-warning {
    display: grid;
    gap: 2px;
    padding: 8px 9px;
    border: 1px solid #edd997;
    border-radius: 9px;
    color: #735d22;
    background: #fff9e5;
}

.sa-scenario-warning strong {
    font-size: 9px;
}

.sa-scenario-warning span {
    font-size: 8px;
    line-height: 1.4;
}

.sa-self-weight-control {
    width: 100%;
    margin-top: 5px;
    padding: 7px;
    border: 1px solid #dce5eb;
    border-radius: 8px;
    background: #fff;
}

.sa-self-weight-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
}

.sa-self-weight-toggle input {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    accent-color: var(--sa-brand-700);
}

.sa-self-weight-toggle > span {
    display: grid;
    gap: 1px;
}

.sa-self-weight-toggle strong {
    color: #405064;
    font-size: 9px;
}

.sa-self-weight-toggle small {
    color: #8794a5;
    font-size: 7.5px;
    line-height: 1.35;
}

.sa-self-weight-fields {
    margin-top: 7px;
    transition: opacity 140ms ease;
}

.sa-self-weight-control:not(:has(.sa-self-weight-toggle input:checked)) .sa-self-weight-fields {
    opacity: 0.45;
}

.sa-combination-group-label {
    display: block;
    margin: 4px 0 5px;
    color: #59687b;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.sa-combination-advanced {
    width: 100%;
    margin-top: 4px;
    padding: 7px;
    border: 1px solid #dfe6ec;
    border-radius: 8px;
    background: #fff;
}

.sa-combination-advanced summary {
    color: #526175;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.sa-combination-advanced summary span {
    margin-left: 4px;
    color: #8290a1;
    font-size: 7px;
    text-transform: uppercase;
}

.sa-combination-advanced p {
    margin: 6px 0;
    color: #8491a1;
    font-size: 7.5px;
    line-height: 1.4;
}

@media (max-width: 900px) {
    .sa-workspace.is-model-browser-open .sa-model-browser.is-scenario-manager {
        width: min(360px, calc(100vw - 58px));
    }
}

@media (max-width: 1180px) {
    .sa-analysis-scenario span {
        display: none;
    }

    .sa-analysis-scenario {
        padding-left: 7px;
    }

    .sa-analysis-scenario select {
        width: 112px;
    }
}

@media (max-width: 760px) {
    .sa-analysis-scenario {
        display: none;
    }
}

/* Integrated analysis workspace: docked tables, linked inspector, and canvas probing. */
.sa-workspace:not(.has-results) .sa-stage-card {
    grid-template-areas:
        "drawing-toolbar"
        "canvas"
        "stage-status";
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.sa-workspace.has-results .sa-stage-card {
    grid-template-areas:
        "drawing-toolbar"
        "results-ribbon"
        "canvas"
        "stage-status";
    grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.sa-stage-card > .sa-canvas-toolbar {
    grid-area: drawing-toolbar;
}

.sa-stage-card > .sa-results-ribbon {
    grid-area: results-ribbon;
}

.sa-stage-card > .sa-canvas-wrap {
    grid-area: canvas;
}

.sa-stage-card > .sa-stage-status {
    grid-area: stage-status;
}

.sa-context-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sa-context-tabs button:disabled {
    cursor: default;
    opacity: .42;
}

.sa-workspace.is-inspector-open:not(.is-assistant-open) .sa-ai-quick-dock {
    pointer-events: auto;
    opacity: 1;
    transform: translateX(-50%);
}

.sa-workspace.is-assistant-open .sa-ai-quick-dock {
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, 8px);
}

.sa-results-ribbon__scenario,
.sa-results-ribbon__scale,
.sa-results-ribbon__labels {
    display: inline-flex;
    flex: 0 0 auto;
    height: 32px;
    align-items: center;
    gap: 6px;
    border: 1px solid #c6e0e1;
    border-radius: 7px;
    padding: 0 7px;
    color: #597080;
    background: rgba(255, 255, 255, .82);
    font-size: 8px;
    font-weight: 800;
}

.sa-results-ribbon__scenario select,
.sa-results-ribbon__scale select {
    max-width: 126px;
    border: 0;
    outline: 0;
    color: #176a6c;
    background: transparent;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
}

.sa-results-ribbon__scale select {
    width: 48px;
}

.sa-results-ribbon__labels input {
    accent-color: #25898b;
}

.sa-results {
    position: absolute;
    z-index: 18;
    right: 0;
    bottom: 32px;
    left: 0;
    width: auto;
    height: min(330px, 42vh);
    max-height: none;
    overflow: auto;
    border: 0;
    border-top: 1px solid #d7e3e8;
    border-radius: 0;
    padding: 9px 12px 12px;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .06);
}

.sa-results[hidden] {
    display: none;
}

.sa-results-ribbon__overview.is-active {
    border-color: #25898b;
    color: #fff;
    background: #25898b;
}

.sa-results-ribbon__exit {
    display: inline-flex;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #6d7b8d;
    background: transparent;
    font-size: 8.5px;
    font-weight: 800;
    white-space: nowrap;
}

.sa-results-ribbon__exit:hover {
    border-color: #d9e2e8;
    color: #344155;
    background: #fff;
}

.sa-results-ribbon__exit svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

.sa-workspace.are-results-open .sa-ai-quick-dock {
    bottom: calc(min(330px, 42vh) + 18px);
}

@media (min-width: 1101px) {
    .sa-workspace.is-inspector-open .sa-results-ribbon {
        padding-right: 317px;
    }

    .sa-workspace.is-inspector-open .sa-results-ribbon__scenario,
    .sa-workspace.is-inspector-open .sa-results-ribbon__scale,
    .sa-workspace.is-inspector-open .sa-results-ribbon__labels {
        display: none;
    }

    .sa-workspace.is-inspector-open .sa-results {
        right: 306px;
    }
}

.sa-results__topline {
    margin-bottom: 7px;
}

.sa-results__topline h2 {
    font-size: 13px;
}

.sa-result-warnings {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 7px;
    border: 1px solid #f2d6a2;
    border-radius: 7px;
    padding: 6px 9px;
    color: #825f22;
    background: #fff9eb;
    font-size: 8.5px;
}

.sa-result-warnings[hidden] {
    display: none;
}

.sa-result-warnings span {
    line-height: 1.45;
    white-space: normal;
}

.sa-result-metrics {
    grid-template-columns: repeat(5, minmax(118px, 1fr));
    gap: 6px;
    margin-bottom: 8px;
    overflow-x: auto;
}

.sa-result-metric {
    display: block;
    min-width: 0;
    border: 1px solid #e3e8ee;
    padding: 8px 10px 8px 12px;
    text-align: left;
    cursor: pointer;
}

.sa-result-metric:hover,
.sa-result-metric:focus-visible {
    border-color: #abd7d6;
    background: #f5fbfb;
}

.sa-result-metric strong {
    display: block;
    font-size: 12px;
}

.sa-result-metric small {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: #6e7d8f;
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-table-scroller {
    max-height: 180px;
}

.sa-result-table th {
    padding: 0;
}

.sa-result-table th > button {
    width: 100%;
    border: 0;
    padding: 8px 10px;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: right;
    white-space: nowrap;
    cursor: pointer;
}

.sa-result-table th:first-child > button {
    text-align: left;
}

.sa-result-table td {
    padding: 7px 10px;
}

.sa-result-table td small {
    display: block;
    color: #8a96a5;
    font-size: 7.5px;
}

.sa-result-table tbody tr[data-result-entity-type],
.sa-result-table tbody tr[data-result-station] {
    cursor: pointer;
}

.sa-result-table tbody tr.is-selected td {
    color: #175f61;
    background: #eaf7f6;
}

.sa-inspector-results {
    grid-template-rows: auto minmax(0, 1fr);
}

.sa-inspector-results__body {
    min-height: 0;
    overflow: auto;
    padding: 12px;
}

.sa-results-context-chip {
    width: fit-content;
    margin-bottom: 10px;
    border-radius: 999px;
    padding: 5px 8px;
    color: #176a6c;
    background: #e8f6f5;
    font-size: 8px;
    font-weight: 850;
}

.sa-result-inspector-section + .sa-result-inspector-section {
    margin-top: 14px;
    border-top: 1px solid #e7edf1;
    padding-top: 13px;
}

.sa-result-inspector-section h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 7px;
    color: #536174;
    font-size: 9px;
    text-transform: uppercase;
}

.sa-result-inspector-section h3 span {
    color: #8a96a5;
    font-size: 7px;
    font-weight: 700;
    text-transform: none;
}

.sa-result-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.sa-result-kpi {
    min-width: 0;
    border: 1px solid #e2e9ed;
    border-radius: 8px;
    padding: 8px;
    background: #fbfcfd;
}

.sa-result-kpi > span,
.sa-result-kpi small {
    display: block;
    overflow: hidden;
    color: #8390a0;
    font-size: 7.5px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-result-kpi strong {
    display: block;
    margin: 3px 0;
    overflow: hidden;
    color: #263448;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-result-end-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.sa-result-end-grid > div {
    display: grid;
    gap: 4px;
    border: 1px solid #e2e9ed;
    border-radius: 8px;
    padding: 8px;
    color: #607084;
    background: #fbfcfd;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
}

.sa-result-end-grid strong {
    color: #2c3b50;
}

.sa-result-stations-link {
    width: 100%;
    margin-top: 12px;
    border: 1px solid #b9dddd;
    border-radius: 8px;
    padding: 8px;
    color: #176a6c;
    background: #f2fbfa;
    font-size: 9px;
    font-weight: 850;
    cursor: pointer;
}

.sa-result-inspector-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 12px;
}

.sa-result-inspector-actions .sa-result-stations-link {
    margin-top: 0;
}

.sa-member-results-dialog {
    width: min(1040px, 100%);
    max-height: min(820px, calc(100vh - 40px));
    grid-template-rows: auto minmax(0, 1fr);
}

.sa-member-results-dialog__context {
    margin: 3px 0 0;
    color: #7b8797;
    font-size: 9px;
    font-weight: 700;
}

.sa-member-results-dialog__body {
    min-height: 0;
    overflow: auto;
    padding: 15px 18px 18px;
}

.sa-member-results-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 13px;
}

.sa-member-result-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sa-member-result-chart {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e0e8ed;
    border-radius: 10px;
    background: #fbfcfd;
}

.sa-member-result-chart header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px 4px;
}

.sa-member-result-chart header strong,
.sa-member-result-chart header small {
    display: block;
}

.sa-member-result-chart header strong {
    color: #344155;
    font-size: 10px;
}

.sa-member-result-chart header small {
    margin-top: 2px;
    color: #8793a2;
    font-size: 7.5px;
}

.sa-member-result-chart header b {
    color: #176a6c;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 9px;
    white-space: nowrap;
}

.sa-member-result-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

.sa-member-result-chart svg text {
    fill: #8290a1;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 8px;
}

.sa-member-result-chart__axis {
    stroke: #d9e2e8;
    stroke-width: 1;
}

.sa-member-result-chart__grid {
    stroke: #aab8c5;
    stroke-dasharray: 4 4;
    stroke-width: 1;
}

.sa-member-results-dialog__note {
    margin: 12px 0 0;
    color: #7f8b9b;
    font-size: 8.5px;
}

.sa-result-probe {
    position: absolute;
    z-index: 12;
    width: 205px;
    border: 1px solid #b8dada;
    border-radius: 9px;
    padding: 8px 9px;
    color: #405065;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.sa-result-probe strong,
.sa-result-probe span {
    display: block;
}

.sa-result-probe strong {
    margin-bottom: 2px;
    color: #176a6c;
    font-size: 9px;
}

.sa-result-probe span {
    color: #768397;
    font-size: 7.5px;
}

.sa-result-probe div {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto 1fr;
    gap: 3px;
    margin-top: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 7.5px;
}

#structural-canvas .sa-result-hit {
    fill: none;
    stroke: rgba(0, 0, 0, .001);
    stroke-width: 18;
    cursor: pointer;
}

#structural-canvas.are-model-labels-hidden .sa-member-label,
#structural-canvas.are-model-labels-hidden .sa-dimension-label,
#structural-canvas.are-model-labels-hidden .sa-node-label,
#structural-canvas.are-model-labels-hidden .sa-load-label {
    display: none;
}

#structural-canvas .sa-original-member.is-selected,
#structural-canvas .sa-result-member.is-selected {
    stroke: #167779;
    stroke-width: 5;
    filter: drop-shadow(0 0 3px rgba(38, 137, 139, .35));
}

#structural-canvas .sa-reaction-arrow {
    fill: none;
    stroke: #2874c6;
    stroke-linecap: round;
    stroke-width: 2.4;
}

#structural-canvas .sa-reaction-layer .sa-load-head {
    fill: #2874c6;
}

#structural-canvas .sa-reaction-moment {
    fill: #2874c6;
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 3px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 800;
}

#structural-canvas .sa-result-label--governing {
    fill: #176a6c;
    font-size: 10px;
    font-weight: 900;
}

.sa-view-legend small,
.sa-view-legend > div {
    display: block;
    margin-top: 3px;
}

@media (max-width: 1100px) {
    .sa-results-ribbon__scenario > span,
    .sa-results-ribbon__scale > span,
    .sa-results-ribbon__labels > span {
        display: none;
    }

    .sa-results-ribbon__scenario select {
        max-width: 92px;
    }
}

@media (max-width: 760px) {
    .sa-results {
        height: min(360px, 46vh);
        padding-inline: 8px;
    }

    .sa-workspace.are-results-open .sa-ai-quick-dock {
        bottom: calc(min(360px, 46vh) + 14px);
    }

    .sa-results-ribbon__scenario,
    .sa-results-ribbon__scale,
    .sa-results-ribbon__labels {
        display: none;
    }

    .sa-result-metrics {
        grid-template-columns: repeat(5, 132px);
    }

    .sa-member-results-summary,
    .sa-member-result-chart-grid {
        grid-template-columns: 1fr;
    }

    .sa-results-ribbon__exit span {
        display: none;
    }
}

/* SEO landing content and first-run canvas onboarding */
#site-header {
    isolation: isolate;
    z-index: 200;
}

#structural-workspace {
    scroll-margin-top: var(--sa-site-header-height, 81px);
}

.sa-seo-intro {
    border-bottom: 1px solid #dfe9ea;
    background:
        radial-gradient(circle at 12% 0%, rgba(79, 204, 205, .14), transparent 31rem),
        linear-gradient(115deg, #f6ffff 0%, #fff 60%, #f7fafc 100%);
}

.sa-seo-intro .sa-shell {
    padding-block: 18px 20px;
}

.sa-seo-intro__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
    align-items: end;
    gap: 34px;
}

.sa-seo-intro h1 {
    max-width: 900px;
    margin: 0;
    color: #172033;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 820;
    letter-spacing: -.038em;
    line-height: 1.08;
}

.sa-seo-intro__body > div > p {
    max-width: 930px;
    margin: 9px 0 0;
    color: #58677a;
    font-size: 14px;
    line-height: 1.6;
}

.sa-seo-intro__features {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sa-seo-intro__features li {
    padding: 6px 10px;
    border: 1px solid #d3e4e5;
    border-radius: 999px;
    color: #365d60;
    background: rgba(255, 255, 255, .86);
    font-size: 10px;
    font-weight: 780;
    white-space: nowrap;
}

.sa-hero-access {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 10px;
    margin-top: 14px;
}

.sa-hero-access__free,
.sa-hero-access__plan {
    min-width: 0;
    border: 1px solid rgba(176, 218, 219, .88);
    border-radius: 12px;
}

.sa-hero-access__free {
    padding: 12px 14px;
    background: rgba(255, 255, 255, .78);
}

.sa-hero-access__plan {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px 14px;
    background: linear-gradient(112deg, rgba(230, 251, 251, .96), rgba(255, 255, 255, .96));
    box-shadow: 0 9px 24px rgba(28, 100, 102, .07);
}

.sa-hero-access__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #2e8384;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sa-hero-access strong {
    display: block;
    color: #233149;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.sa-hero-access__features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 13px;
    margin-top: 7px;
}

.sa-hero-access__features span {
    position: relative;
    padding-left: 13px;
    color: #536277;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.sa-hero-access__features span::before {
    position: absolute;
    left: 0;
    color: #349899;
    content: "✓";
    font-weight: 900;
}

.sa-hero-access__free-status {
    display: block;
    margin-top: 7px;
    color: #2f7476;
    font-size: 9.5px;
    font-weight: 850;
    line-height: 1.35;
}

.sa-hero-access__copy p {
    max-width: 720px;
    margin: 4px 0 0;
    color: #58677a;
    font-size: 10.5px;
    line-height: 1.45;
}

.sa-hero-access__meta {
    display: flex;
    justify-content: flex-end;
    max-width: 360px;
    text-align: right;
}

.sa-hero-access__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.sa-hero-button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.sa-hero-button:hover {
    transform: translateY(-1px);
}

.sa-hero-button--primary {
    border-color: #3d9c9d;
    color: #fff;
    background: #3d9698;
    box-shadow: 0 7px 16px rgba(45, 124, 126, .16);
}

.sa-hero-button--primary:hover {
    border-color: #2f7e80;
    color: #fff;
    background: #337f81;
}

.sa-hero-button--secondary {
    border-color: #c6dfe0;
    color: #2e7375;
    background: rgba(255, 255, 255, .92);
}

.sa-hero-button--secondary:hover {
    border-color: #83c2c3;
    color: #245f61;
}

.sa-focus-control {
    position: relative;
    display: flex;
    flex: 0 0 auto;
}

.sa-focus-toggle {
    width: auto;
    min-width: 76px;
    gap: 6px;
    padding-inline: 9px;
    border-color: #a9d8d9;
    color: #2d7779;
    background: #f1fbfb;
}

.sa-focus-toggle:hover {
    border-color: #62afb1;
    color: #245f61;
    background: #e7f8f8;
}

.sa-focus-toggle svg.sa-focus-toggle__exit,
.sa-focus-toggle__label.sa-focus-toggle__label--exit {
    display: none;
}

.sa-focus-toggle__label {
    display: block;
    font-size: 10px;
    font-weight: 850;
    white-space: nowrap;
}

.sa-focus-hint {
    position: absolute;
    z-index: 70;
    top: calc(100% + 10px);
    right: 0;
    width: 238px;
    padding: 12px 32px 12px 13px;
    border: 1px solid #a9dcdd;
    border-radius: 10px;
    color: #536277;
    background: #fff;
    box-shadow: 0 15px 38px rgba(15, 23, 42, .18);
}

.sa-focus-hint::before {
    position: absolute;
    top: -6px;
    right: 12px;
    width: 10px;
    height: 10px;
    border-top: 1px solid #a9dcdd;
    border-left: 1px solid #a9dcdd;
    content: "";
    background: #fff;
    transform: rotate(45deg);
}

.sa-focus-hint strong,
.sa-focus-hint span {
    display: block;
}

.sa-focus-hint strong {
    color: #245f61;
    font-size: 11px;
}

.sa-focus-hint span {
    margin-top: 2px;
    font-size: 9.5px;
    line-height: 1.45;
}

.sa-focus-hint button {
    position: absolute;
    z-index: 1;
    top: 5px;
    right: 6px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    color: #748196;
    background: transparent;
    font-size: 17px;
    line-height: 1;
}

html.sa-structural-focus,
body.sa-structural-focus {
    overflow: hidden;
    overscroll-behavior: none;
}

body.sa-structural-focus .sa-workspace.is-focus-mode {
    position: fixed;
    z-index: 500;
    inset: 0;
    width: 100%;
    height: 100dvh;
    min-height: 0;
    border: 0;
}

.sa-workspace.is-focus-mode .sa-appbar {
    width: 100%;
    min-width: 0;
}

.sa-workspace.is-focus-mode .sa-focus-toggle {
    width: auto;
    min-width: 96px;
    gap: 6px;
    padding-inline: 10px;
    border-color: #2f8587;
    color: #fff;
    background: #337f81;
    box-shadow: 0 7px 17px rgba(34, 104, 106, .2);
}

.sa-workspace.is-focus-mode .sa-focus-toggle__enter {
    display: none;
}

.sa-workspace.is-focus-mode .sa-focus-toggle__exit,
.sa-workspace.is-focus-mode .sa-focus-toggle__label--exit {
    display: block;
}

.sa-workspace.is-focus-mode .sa-focus-toggle__label--enter {
    display: none;
}

.sa-appbar__brand h2 {
    margin: 0;
    color: #1f2d40;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: -.02em;
    line-height: 1.2;
}

.sa-start-panel {
    position: absolute;
    z-index: 12;
    top: 50%;
    left: 50%;
    width: min(630px, calc(100% - 72px));
    max-height: calc(100% - 44px);
    overflow: auto;
    padding: 28px;
    border: 1px solid #cfe2e3;
    border-radius: 18px;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 70px rgba(23, 49, 61, .18), 0 2px 8px rgba(23, 49, 61, .08);
    backdrop-filter: blur(12px);
}

.sa-start-panel__dismiss {
    position: absolute;
    top: 12px;
    right: 13px;
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    place-items: center;
    color: #728092;
    background: #f1f5f7;
    font-size: 20px;
    line-height: 1;
}

.sa-start-panel__dismiss:hover {
    color: #243247;
    background: #e7eef1;
}

.sa-start-panel__eyebrow,
.sa-eyebrow {
    display: block;
    margin: 0;
    color: #2d7779;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .105em;
    text-transform: uppercase;
}

.sa-start-panel h3 {
    max-width: 500px;
    margin: 7px 0 0;
    color: #172033;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 820;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.sa-start-panel > p:not(.sa-start-panel__note) {
    max-width: 540px;
    margin: 10px 0 0;
    color: #657386;
    font-size: 13px;
    line-height: 1.65;
}

.sa-start-panel__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
}

.sa-start-panel__actions > * {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 11px;
    border: 1px solid #d8e2e8;
    border-radius: 9px;
    color: #34445a;
    background: #fff;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.sa-start-panel__actions > *:hover {
    border-color: #84c9ca;
    color: #245e60;
}

.sa-start-panel__actions .sa-start-panel__primary {
    border-color: #378e8f;
    color: #fff;
    background: #378e8f;
}

.sa-start-panel__actions .sa-start-panel__primary:hover {
    border-color: #2d7172;
    color: #fff;
    background: #2d7172;
}

.sa-start-panel__actions small {
    padding: 2px 4px;
    border-radius: 4px;
    color: #6e5d21;
    background: #fff5c9;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.sa-start-panel__examples {
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid #e6ecef;
}

.sa-start-panel__examples > span {
    color: #7a8798;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sa-start-panel__examples > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sa-start-panel__examples a {
    padding: 5px 9px;
    border-radius: 999px;
    color: #425368;
    background: #f0f5f6;
    font-size: 10px;
    font-weight: 740;
    text-decoration: none;
}

.sa-start-panel__examples a:hover {
    color: #245e60;
    background: #e2f4f4;
}

.sa-start-panel__note {
    margin: 12px 0 0;
    color: #718092;
    font-size: 10px;
}

.sa-workspace.has-start-panel .sa-ai-quick-dock {
    opacity: 0;
    pointer-events: none;
}

.sa-page-nav {
    border-block: 1px solid #e2e9ee;
    background: #fff;
}

.sa-page-nav .sa-shell {
    display: flex;
    width: min(100% - 40px, 1240px);
    min-height: 56px;
    align-items: center;
    gap: 22px;
}

.sa-page-nav strong {
    flex: none;
    color: #243247;
    font-size: 11px;
}

.sa-page-nav .sa-shell > div {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-block: 9px;
    scrollbar-width: thin;
}

.sa-page-nav a {
    flex: none;
    padding: 7px 9px;
    border-radius: 7px;
    color: #5c6b7e;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.sa-page-nav a:hover {
    color: #2d7172;
    background: #effafa;
}

.sa-content-section,
.sa-related {
    padding: 74px 0;
    border-bottom: 1px solid #e7edf1;
}

.sa-content-section > .sa-shell,
.sa-faq > .sa-shell,
.sa-related > .sa-shell {
    width: min(100% - 40px, 1240px);
}

.sa-content-section--tinted {
    background: #f7fafb;
}

.sa-content-section--examples {
    background: linear-gradient(180deg, #f7fbfb 0%, #fff 100%);
}

.sa-content-section--results {
    background: #172d3e;
    color: #eaf2f5;
}

.sa-content-section--assumptions {
    background: #f3f7f8;
}

.sa-content-section--ai {
    position: relative;
    overflow: hidden;
    color: #eaf5f6;
    background:
        radial-gradient(circle at 85% 15%, rgba(92, 214, 215, .17), transparent 27rem),
        radial-gradient(circle at 10% 90%, rgba(116, 129, 202, .16), transparent 30rem),
        #102b38;
}

.sa-content-section[id],
.sa-content-section [id],
.sa-faq[id] {
    scroll-margin-top: 90px;
}

.sa-content-heading {
    max-width: 780px;
}

.sa-content-heading--wide {
    max-width: 920px;
}

.sa-content-heading h2,
.sa-analysis-type-grid h2,
.sa-comparison h2,
.sa-verification-layout h2,
.sa-assumptions-layout h2,
.sa-ai-guide h2,
.sa-related h2 {
    margin: 8px 0 0;
    color: #172033;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 810;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.sa-content-heading > p:not(.sa-eyebrow),
.sa-verification-layout > div:first-child > p:last-child,
.sa-assumptions-layout > div:first-child > p:last-child,
.sa-ai-guide > div:first-child > p:last-child {
    margin: 14px 0 0;
    color: #637185;
    font-size: 16px;
    line-height: 1.75;
}

.sa-content-heading--wide > p + p {
    margin-top: 9px;
}

.sa-example-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.sa-example-card {
    display: grid;
    overflow: hidden;
    min-width: 0;
    grid-template-rows: auto 1fr auto;
    border: 1px solid #dfe8ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(15, 40, 55, .05);
}

.sa-example-card__visual {
    display: grid;
    min-height: 144px;
    place-items: center;
    background:
        linear-gradient(#e6eef1 1px, transparent 1px),
        linear-gradient(90deg, #e6eef1 1px, transparent 1px),
        #f7fafb;
    background-size: 18px 18px;
}

.sa-example-card__visual svg {
    width: min(74%, 220px);
    overflow: visible;
}

.sa-example-card__visual path {
    fill: none;
    stroke: #344b5f;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.sa-example-card__visual circle {
    fill: #f8fbfc;
    stroke: #344b5f;
    stroke-width: 1.25;
}

.sa-example-card__visual .sa-example-card__ground {
    stroke: #96a6b4;
    stroke-width: 1.5;
}

.sa-example-card__body {
    padding: 20px 20px 17px;
}

.sa-example-card__body > span {
    color: #2d7779;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sa-example-card h3 {
    margin: 6px 0 0;
    color: #223146;
    font-size: 19px;
    font-weight: 790;
    letter-spacing: -.02em;
}

.sa-example-card p {
    margin: 8px 0 0;
    color: #657386;
    font-size: 13px;
    line-height: 1.65;
}

.sa-example-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.sa-example-card li {
    padding: 4px 7px;
    border-radius: 5px;
    color: #5d6c7d;
    background: #f1f5f7;
    font-size: 9px;
    font-weight: 700;
}

.sa-example-card__action {
    display: flex;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-top: 1px solid #e5ecef;
    color: #276f71;
    background: #fbfdfd;
    font-size: 11px;
    font-weight: 820;
    text-decoration: none;
}

.sa-example-card__action:hover {
    color: #1f5d5f;
    background: #effafa;
}

.sa-example-card__actions {
    display: grid;
    border-top: 1px solid #e5ecef;
    background: #fbfdfd;
}

.sa-example-card__actions .sa-example-card__action {
    border-top: 0;
}

.sa-example-card__direct {
    padding: 0 20px 14px;
    color: #607083;
    font-size: 10px;
    font-weight: 750;
    text-decoration: underline;
    text-decoration-color: #b8c8cf;
    text-underline-offset: 3px;
}

.sa-example-card__direct:hover {
    color: #276f71;
    text-decoration-color: currentColor;
}

.sa-analysis-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 38px;
}

.sa-analysis-type-grid > article {
    padding: 28px;
    border: 1px solid #dfe7ec;
    border-radius: 16px;
    background: #fff;
}

.sa-analysis-type-grid h2,
.sa-comparison h2 {
    font-size: clamp(23px, 2.5vw, 31px);
}

.sa-analysis-type-grid article > p:not(.sa-eyebrow),
.sa-comparison > div:first-child > p:last-child {
    margin: 12px 0 0;
    color: #657386;
    font-size: 14px;
    line-height: 1.72;
}

.sa-analysis-type-grid ul,
.sa-assumption-columns ul {
    display: grid;
    gap: 8px;
    margin: 18px 0 0;
    padding-left: 19px;
    color: #4f5e72;
    font-size: 13px;
    line-height: 1.5;
}

.sa-clarification {
    margin-top: 19px;
    padding: 15px 16px;
    border-left: 3px solid #4fcccd;
    border-radius: 0 9px 9px 0;
    background: #effafa;
}

.sa-clarification strong {
    color: #285f61;
    font-size: 12px;
}

.sa-clarification p {
    margin: 4px 0 0;
    color: #557577;
    font-size: 12px;
    line-height: 1.6;
}

.sa-comparison {
    display: grid;
    grid-template-columns: minmax(250px, .7fr) minmax(0, 1.3fr);
    gap: 34px;
    margin-top: 24px;
    padding: 30px;
    border: 1px solid #dfe7ec;
    border-radius: 16px;
    background: #f8fafb;
}

.sa-table-wrap {
    overflow-x: auto;
    border: 1px solid #dfe7ec;
    border-radius: 11px;
    background: #fff;
}

.sa-table-wrap table {
    width: 100%;
    border-collapse: collapse;
    color: #4b5b6e;
    font-size: 12px;
    text-align: left;
}

.sa-table-wrap th,
.sa-table-wrap td {
    padding: 11px 13px;
    border-bottom: 1px solid #e7edf1;
    vertical-align: top;
}

.sa-table-wrap th {
    color: #2d3e53;
    background: #f3f7f8;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.sa-table-wrap tr:last-child td {
    border-bottom: 0;
}

.sa-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 34px 0 0;
    padding: 0;
    counter-reset: none;
    list-style: none;
}

.sa-steps li {
    display: flex;
    gap: 13px;
    padding: 20px;
    border: 1px solid #e0e7eb;
    border-radius: 13px;
    background: #fff;
}

.sa-steps li > span {
    display: grid;
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 8px;
    place-items: center;
    color: #fff;
    background: #378e8f;
    font-size: 11px;
    font-weight: 850;
}

.sa-steps h3,
.sa-topic-grid h3,
.sa-result-guide-grid h3,
.sa-assumption-columns h3 {
    margin: 0;
    color: #26364a;
    font-size: 15px;
    font-weight: 790;
}

.sa-steps p,
.sa-topic-grid p,
.sa-result-guide-grid p {
    margin: 5px 0 0;
    color: #687689;
    font-size: 12px;
    line-height: 1.6;
}

.sa-inline-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 13px;
    margin-top: 22px;
    padding: 0 16px;
    border-radius: 9px;
    color: #fff;
    background: #378e8f;
    font-size: 12px;
    font-weight: 820;
    text-decoration: none;
}

.sa-inline-cta:hover {
    background: #2d7172;
}

.sa-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.sa-topic-grid article {
    padding: 21px;
    border-top: 3px solid #a8dedf;
    border-radius: 4px 4px 11px 11px;
    background: #f8fafb;
}

.sa-content-section--results .sa-eyebrow {
    color: #7ed9da;
}

.sa-content-section--results .sa-content-heading h2 {
    color: #fff;
}

.sa-content-section--results .sa-content-heading > p:not(.sa-eyebrow) {
    color: #b8c9d2;
}

.sa-result-guide-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.sa-result-guide-grid article {
    padding: 21px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 13px;
    background: rgba(255, 255, 255, .055);
}

.sa-result-guide-grid article > span {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 17px;
    border-radius: 9px;
    place-items: center;
    color: #18373e;
    background: #7ed9da;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 800;
}

.sa-result-guide-grid h3 {
    color: #f3f8fa;
}

.sa-result-guide-grid p {
    color: #b7c8d1;
}

.sa-verification-layout,
.sa-assumptions-layout,
.sa-ai-guide {
    display: grid;
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
    gap: 50px;
    align-items: start;
}

.sa-verification-summary {
    overflow: hidden;
    border: 1px solid #dbe5e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(18, 43, 49, .08);
}

.sa-verification-summary__status {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 22px 24px;
    color: #15373d;
    background: #edf9f8;
    border-bottom: 1px solid #d9ecea;
}

.sa-verification-summary.is-unavailable .sa-verification-summary__status {
    background: #fff8e8;
    border-bottom-color: #f0dfb0;
}

.sa-verification-summary__status > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    place-items: center;
    color: #fff;
    background: #218b86;
    font-size: 22px;
    font-weight: 800;
}

.sa-verification-summary.is-unavailable .sa-verification-summary__status > span {
    background: #b77a12;
}

.sa-verification-summary__status small,
.sa-verification-summary__status strong {
    display: block;
}

.sa-verification-summary__status small {
    margin-bottom: 3px;
    color: #4f6b70;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.sa-verification-summary__status strong {
    font-size: 19px;
    line-height: 1.25;
}

.sa-verification-summary__metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid #e7edf1;
}

.sa-verification-summary__metrics > div {
    padding: 24px;
}

.sa-verification-summary__metrics > div + div {
    border-left: 1px solid #e7edf1;
}

.sa-verification-summary__metrics strong,
.sa-verification-summary__metrics span {
    display: block;
}

.sa-verification-summary__metrics strong {
    color: #14363d;
    font-family: Georgia, serif;
    font-size: 31px;
    line-height: 1;
}

.sa-verification-summary__metrics span {
    margin-top: 8px;
    color: #61717c;
    font-size: 12px;
    font-weight: 700;
}

.sa-verification-summary > p {
    margin: 0;
    padding: 19px 24px 0;
    color: #5e6e78;
    font-size: 13px;
    line-height: 1.65;
}

.sa-verification-summary > p.sa-verification-summary__generated {
    padding-top: 5px;
    color: #73818a;
    font-size: 11px;
}

.sa-verification-summary__link {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin: 20px 24px 24px;
    padding: 13px 15px;
    border-radius: 10px;
    color: #fff;
    background: #173d43;
    font-size: 13px;
    font-weight: 800;
    transition: background .18s ease, transform .18s ease;
}

.sa-verification-summary__link:hover {
    color: #fff;
    background: #24565d;
    transform: translateY(-1px);
}

@media (max-width: 540px) {
    .sa-verification-summary__metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-verification-summary__metrics > div + div {
        border-top: 1px solid #e7edf1;
        border-left: 0;
    }
}

.sa-assumption-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dce6e9;
    border-radius: 14px;
    background: #fff;
}

.sa-assumption-columns > div {
    padding: 24px;
}

.sa-assumption-columns > div + div {
    border-left: 1px solid #e1e8ec;
}

.sa-assumption-columns ul {
    margin-top: 14px;
}

.sa-ai-guide {
    align-items: center;
    grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
    gap: 68px;
}

.sa-content-section--ai .sa-eyebrow {
    color: #82dedf;
}

.sa-content-section--ai .sa-ai-guide h2 {
    max-width: 620px;
    color: #fff;
}

.sa-ai-guide__copy > p:not(.sa-eyebrow) {
    max-width: 650px;
    margin: 16px 0 0;
    color: #bfd0d7;
    font-size: 15px;
    line-height: 1.75;
}

.sa-ai-guide__trust {
    display: grid;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.sa-ai-guide__trust li {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 13px;
    padding-top: 12px;
    border-top: 1px solid rgba(203, 232, 234, .14);
}

.sa-ai-guide__trust strong {
    color: #83dcdd;
    font-size: 11px;
    font-weight: 830;
}

.sa-ai-guide__trust span {
    color: #b8cbd2;
    font-size: 11px;
    line-height: 1.55;
}

.sa-ai-guide__cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 0 16px;
    border: 1px solid rgba(126, 217, 218, .5);
    border-radius: 9px;
    color: #eaffff;
    background: rgba(62, 160, 162, .18);
    font-size: 11px;
    font-weight: 820;
    text-decoration: none;
}

.sa-ai-guide__cta:hover {
    border-color: #82dedf;
    color: #fff;
    background: rgba(71, 184, 184, .3);
}

.sa-ai-workflow {
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(190, 229, 231, .18);
    border-radius: 19px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 28px 70px rgba(3, 16, 25, .28);
    backdrop-filter: blur(10px);
}

.sa-ai-workflow__prompt {
    padding: 20px;
    border: 1px solid rgba(128, 219, 220, .24);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(59, 147, 151, .28), rgba(69, 83, 143, .18));
}

.sa-ai-workflow__prompt > span {
    color: #83dcdd;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.sa-ai-workflow__prompt p {
    margin: 8px 0 0;
    color: #f5fbfc;
    font-size: 15px;
    font-weight: 690;
    line-height: 1.55;
}

.sa-ai-workflow ol {
    display: grid;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.sa-ai-workflow li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 13px 12px;
}

.sa-ai-workflow li + li {
    border-top: 1px solid rgba(203, 232, 234, .1);
}

.sa-ai-workflow li > span {
    display: grid;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(130, 222, 223, .34);
    border-radius: 8px;
    place-items: center;
    color: #91e4e5;
    background: rgba(38, 106, 113, .28);
    font-size: 10px;
    font-weight: 850;
}

.sa-ai-workflow li strong {
    color: #f1f8fa;
    font-size: 12px;
}

.sa-ai-workflow li p {
    margin: 3px 0 0;
    color: #aec3cb;
    font-size: 11px;
    line-height: 1.55;
}

.sa-ai-workflow__boundary {
    display: grid;
    gap: 4px;
    padding: 15px 17px;
    border-radius: 11px;
    color: #b9ccd3;
    background: rgba(6, 22, 31, .34);
    font-size: 10px;
    line-height: 1.55;
}

.sa-ai-workflow__boundary strong {
    color: #82dedf;
    font-size: 10px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sa-ai-workflow__boundary span {
    display: block;
}

.sa-faq {
    padding: 74px 0;
}

.sa-related {
    background: #fff;
}

.sa-related > .sa-shell {
    display: grid;
    grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr);
    gap: 44px;
}

.sa-related__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sa-related__links a {
    display: grid;
    gap: 5px;
    padding: 18px;
    border: 1px solid #dfe7ec;
    border-radius: 11px;
    color: #2b3b50;
    background: #fafcfc;
    text-decoration: none;
}

.sa-related__links a:hover {
    border-color: #9bcfd0;
    background: #f1fafa;
}

.sa-related__links strong {
    color: #2d7172;
    font-size: 13px;
}

.sa-related__links span {
    color: #69778a;
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 1020px) {
    .sa-seo-intro__body {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sa-seo-intro__features {
        justify-content: flex-start;
    }

    .sa-hero-access {
        grid-template-columns: 1fr;
    }

    .sa-example-grid,
    .sa-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sa-topic-grid,
    .sa-result-guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sa-result-guide-grid article:last-child {
        grid-column: 1 / -1;
    }

    .sa-ai-guide {
        grid-template-columns: minmax(0, 1fr);
        gap: 34px;
    }
}

@media (max-width: 780px) {
    .sa-seo-intro .sa-shell {
        padding-block: 15px 17px;
    }

    .sa-seo-intro h1 {
        font-size: clamp(25px, 7vw, 34px);
    }

    .sa-seo-intro__features {
        display: none;
    }

    .sa-hero-access__plan {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .sa-hero-access__meta {
        max-width: none;
        justify-content: flex-start;
        text-align: left;
    }

    .sa-hero-access__actions {
        justify-content: flex-start;
    }

    .sa-start-panel {
        width: calc(100% - 24px);
        max-height: calc(100% - 24px);
        padding: 22px 18px;
        border-radius: 14px;
    }

    .sa-start-panel__actions {
        grid-template-columns: 1fr;
    }

    .sa-page-nav .sa-shell {
        width: min(100% - 28px, 1240px);
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
        padding-top: 10px;
    }

    .sa-page-nav .sa-shell > div {
        width: 100%;
    }

    .sa-content-section,
    .sa-related,
    .sa-faq {
        padding: 54px 0;
    }

    .sa-content-section > .sa-shell,
    .sa-faq > .sa-shell,
    .sa-related > .sa-shell {
        width: min(100% - 28px, 1240px);
    }

    .sa-example-grid,
    .sa-analysis-type-grid,
    .sa-comparison,
    .sa-verification-layout,
    .sa-assumptions-layout,
    .sa-ai-guide,
    .sa-related > .sa-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-comparison {
        padding: 22px;
    }

    .sa-verification-layout,
    .sa-assumptions-layout,
    .sa-ai-guide,
    .sa-related > .sa-shell {
        gap: 28px;
    }
}

@media (max-width: 540px) {
    .sa-seo-intro__body > div > p {
        font-size: 13px;
    }

    .sa-hero-access {
        margin-top: 12px;
    }

    .sa-hero-access__free,
    .sa-hero-access__plan {
        padding: 11px 12px;
    }

    .sa-hero-access__features {
        display: grid;
        gap: 4px;
    }

    .sa-hero-access__actions {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .sa-hero-button {
        width: 100%;
    }

    .sa-content-heading h2,
    .sa-verification-layout h2,
    .sa-assumptions-layout h2,
    .sa-ai-guide h2,
    .sa-related h2 {
        font-size: 28px;
    }

    .sa-example-grid,
    .sa-steps,
    .sa-topic-grid,
    .sa-result-guide-grid,
    .sa-related__links,
    .sa-assumption-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-ai-guide__trust li {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .sa-result-guide-grid article:last-child {
        grid-column: auto;
    }

    .sa-assumption-columns > div + div {
        border-top: 1px solid #e1e8ec;
        border-left: 0;
    }
}

/* Structural analysis PDF calculation package */
.sa-command-button--report {
    border: 1px solid #d6e2e8;
    color: #3e5569;
    background: #fff;
}

.sa-command-button--report:hover:not(:disabled) {
    border-color: #95cecf;
    color: #216b6d;
    background: #f2fbfb;
}

.sa-command-button:disabled,
.sa-inline-cta--button:disabled {
    cursor: not-allowed;
    opacity: .42;
    box-shadow: none;
}

.sa-results-ribbon__report {
    display: inline-flex;
    height: 32px;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 0 9px;
    border: 1px solid #86c5c6;
    border-radius: 7px;
    color: #176a6c;
    background: #fff;
    font-size: 8.5px;
    font-weight: 850;
    white-space: nowrap;
}

.sa-results-ribbon__report:hover {
    color: #fff;
    background: #25898b;
}

.sa-results-ribbon__report svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sa-pdf-report-dialog {
    width: min(760px, 100%);
    max-height: min(790px, calc(100vh - 40px));
    grid-template-rows: auto minmax(0, 1fr);
}

#pdf-report-dialog {
    z-index: 1000;
}

.sa-pdf-report-form {
    overflow-y: auto;
    padding: 18px;
}

.sa-pdf-report-form > p {
    margin: 0 0 16px;
    color: #667386;
    font-size: 11px;
    line-height: 1.6;
}

.sa-pdf-report-form .sa-field--wide {
    grid-column: 1 / -1;
}

.sa-pdf-report-form .sa-field > span {
    color: #58677a;
    font-size: 9px;
    font-weight: 800;
}

.sa-pdf-report-form .sa-field textarea {
    width: 100%;
    min-height: 78px;
    resize: vertical;
    padding: 9px;
    border: 1px solid #d9e1e8;
    border-radius: 7px;
    outline: 0;
    color: #27364a;
    background: #fff;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.sa-pdf-report-form .sa-field textarea:focus {
    border-color: var(--sa-brand-500);
    box-shadow: 0 0 0 3px rgba(79, 204, 205, .15);
}

.sa-pdf-logo {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 11px 12px;
    border: 1px solid #dce6eb;
    border-radius: 10px;
    background: #f8fbfc;
}

.sa-pdf-logo.has-error {
    border-color: #e5aeb7;
    background: #fffafa;
}

.sa-pdf-logo__preview {
    display: grid;
    width: 86px;
    height: 48px;
    place-items: center;
    padding: 5px;
    overflow: hidden;
    border: 1px solid #e0e7ec;
    border-radius: 7px;
    background: #fff;
}

.sa-pdf-logo__preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sa-pdf-logo__copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sa-pdf-logo__copy strong {
    color: #2d3b4f;
    font-size: 10px;
}

.sa-pdf-logo__copy span {
    overflow: hidden;
    color: #546477;
    font-size: 9px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sa-pdf-logo__copy small {
    color: #7a8796;
    font-size: 8px;
    line-height: 1.45;
}

.sa-pdf-logo__requirements {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
}

.sa-pdf-logo__requirements span {
    padding: 2px 6px;
    border: 1px solid #d8e4e9;
    border-radius: 999px;
    color: #536a76;
    background: #fff;
    font-size: 7px;
    font-weight: 800;
    line-height: 1.4;
}

.sa-pdf-logo__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sa-pdf-logo__actions .sa-button {
    height: 34px;
    padding: 0 12px;
    cursor: pointer;
    font-size: 9px;
}

.sa-pdf-logo__actions .sa-button.is-disabled {
    pointer-events: none;
    opacity: .55;
}

.sa-pdf-logo__remove {
    padding: 5px 2px;
    border: 0;
    color: #8f4652;
    background: transparent;
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
}

.sa-pdf-logo__remove:hover {
    color: #a43a4d;
    text-decoration: underline;
}

.sa-pdf-logo__error {
    grid-column: 2 / -1;
    margin: -2px 0 0;
    padding: 7px 9px;
    border: 1px solid #ecc4cb;
    border-radius: 7px;
    color: #9f3548;
    background: #fff;
    font-size: 8px;
    font-weight: 800;
    line-height: 1.45;
}

.sa-pdf-report-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 14px;
}

.sa-pdf-report-options .sa-check-field {
    align-items: flex-start;
}

.sa-pdf-report-status {
    min-height: 20px;
    margin-top: 10px;
    color: #657386;
    font-size: 9px;
    font-weight: 700;
}

.sa-pdf-report-status.is-error {
    color: #a43a4d;
}

.sa-pdf-report-form .sa-project-dialog__actions {
    margin-top: 8px;
}

.sa-content-section--report {
    background:
        radial-gradient(circle at 7% 4%, rgba(79, 204, 205, .13), transparent 30rem),
        linear-gradient(120deg, #f4fbfb 0%, #fff 62%, #f7fafc 100%);
}

.sa-report-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: 64px;
}

.sa-report-copy h2 {
    margin: 8px 0 0;
    color: #172033;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 810;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.sa-report-copy > p:not(.sa-eyebrow) {
    margin: 14px 0 0;
    color: #617083;
    font-size: 15px;
    line-height: 1.75;
}

.sa-inline-cta--button {
    border: 0;
    font-family: inherit;
}

.sa-inline-cta--button:not(:disabled):hover {
    color: #fff;
}

.sa-report-includes {
    display: grid;
    gap: 9px;
}

.sa-report-includes article {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    align-items: start;
    padding: 15px 17px;
    border: 1px solid #dbe7e9;
    border-radius: 11px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 8px 24px rgba(15, 40, 55, .035);
}

.sa-report-includes article > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 9px;
    color: #287678;
    background: #e3f5f5;
    font-size: 10px;
    font-weight: 900;
}

.sa-report-includes h3 {
    margin: 0;
    color: #26364a;
    font-size: 14px;
    font-weight: 800;
}

.sa-report-includes p {
    margin: 4px 0 0;
    color: #6a788a;
    font-size: 11px;
    line-height: 1.55;
}

@media (max-width: 1120px) {
    .sa-report-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }
}

@media (max-width: 760px) {
    .sa-results-ribbon__report span,
    .sa-command-button--report span {
        display: none;
    }

    .sa-pdf-report-options,
    .sa-pdf-report-form .sa-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sa-pdf-report-form .sa-field--wide {
        grid-column: auto;
    }

    .sa-pdf-logo {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .sa-pdf-logo__preview {
        width: 72px;
    }

    .sa-pdf-logo__actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .sa-pdf-logo__error {
        grid-column: 1 / -1;
    }
}

/* Mobile modeling shell: prioritize core actions and keep every tool reachable. */
@media (max-width: 760px) {
    body.sa-mobile-workspace-overlay {
        overflow: hidden;
        overscroll-behavior: none;
    }

    body.sa-mobile-workspace-overlay .site-back-to-top {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .sa-workspace.has-mobile-overlay,
    .sa-workspace.has-mobile-overlay .sa-stage-card {
        overflow: visible;
    }

    .sa-workspace.has-mobile-overlay .sa-canvas-toolbar {
        z-index: 100;
    }

    .sa-workspace.has-mobile-overlay::before {
        content: '';
        position: fixed;
        z-index: 20;
        inset: 0;
        background: rgba(15, 23, 42, .24);
        backdrop-filter: blur(1px);
        pointer-events: none;
    }

    .sa-appbar {
        width: 100%;
        min-width: 0;
        gap: 8px;
        overflow: hidden;
    }

    .sa-appbar__project {
        min-width: 0;
        flex: 1 1 auto;
    }

    .sa-appbar__identity {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
    }

    .sa-appbar__actions {
        flex: 0 0 auto;
    }

    .sa-command-button--assistant,
    .sa-command-button--report {
        display: none;
    }

    .sa-command-button--setup {
        display: inline-flex;
    }

    .sa-canvas-toolbar {
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: #8acfd0 #eef5f6;
        -webkit-overflow-scrolling: touch;
        box-shadow: inset -14px 0 14px -16px rgba(15, 23, 42, .8);
    }

    .sa-canvas-toolbar::-webkit-scrollbar {
        height: 4px;
    }

    .sa-canvas-toolbar::-webkit-scrollbar-track {
        background: #eef5f6;
    }

    .sa-canvas-toolbar::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #8acfd0;
    }

    .sa-ribbon-tool,
    .sa-canvas-toolbar .sa-icon-button {
        width: 42px;
        height: 42px;
    }

    .sa-quick-tool-wrap > .sa-ribbon-tool:has(+ .sa-ribbon-tool__menu) {
        width: 36px;
        height: 42px;
    }

    .sa-ribbon-tool__menu {
        width: 22px;
        min-height: 42px;
    }

    #quick-load-toggle[aria-expanded="true"],
    .sa-display-control > .sa-icon-button[aria-expanded="true"],
    .sa-ribbon-tool__menu[aria-expanded="true"] {
        border-color: #dfac68;
        color: #966321;
        background: #fff8ee;
        box-shadow: inset 0 -2px 0 #d9943b;
    }

    .sa-project-menu,
    .sa-quick-popover,
    .sa-load-popover,
    .sa-display-popover,
    .sa-support-popover {
        position: fixed;
        z-index: 140;
        top: auto;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        left: 10px;
        width: auto;
        max-width: none;
        max-height: min(70dvh, 560px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px;
        border-radius: 16px;
        box-shadow: 0 22px 70px rgba(15, 23, 42, .3);
    }

    .sa-project-menu::before,
    .sa-quick-popover::before {
        content: '';
        display: block;
        width: 42px;
        height: 4px;
        margin: 0 auto 9px;
        border-radius: 999px;
        background: #cbd8df;
    }

    .sa-project-menu > button,
    .sa-project-menu > a {
        min-height: 48px;
        padding: 8px 10px;
    }

    .sa-support-choices button,
    .sa-quick-load-types button,
    .sa-quick-load-form > button {
        min-height: 44px;
    }
}
