.beam-cursor-probe {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.beam-cursor-probe[hidden] {
    display: none;
}

.beam-cursor-guide {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px dashed;
}

.beam-cursor-value {
    position: absolute;
    max-width: calc(100% - 16px);
    padding: 4px 7px;
    border: 1px solid var(--beam-border);
    border-radius: 5px;
    background: color-mix(in srgb, var(--beam-text) 75%, transparent);
    color: var(--beam-panel-bg);
    box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
    transform: translateX(-50%);
    font: 11px/1.35 "Geist Mono", monospace;
    white-space: nowrap;
}

.beam-span-label-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}

.beam-span-help {
    display: inline-flex;
}

.beam-span-help-button {
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--beam-muted);
    background: transparent;
    cursor: help;
}

.beam-span-help-button:focus-visible {
    outline: 2px solid var(--beam-text);
    outline-offset: 2px;
}

.beam-span-examples {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    width: max-content;
    max-width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--beam-border);
    border-radius: 6px;
    background: var(--beam-text);
    color: var(--beam-panel-bg);
    box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
    font-size: 12px;
    line-height: 1.5;
    visibility: hidden;
}

.beam-span-examples p {
    margin: 0 0 4px;
}

.beam-span-examples ul {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.beam-span-examples code {
    font-family: "Geist Mono", monospace;
}

.beam-span-help:hover .beam-span-examples,
.beam-span-help:focus-within .beam-span-examples {
    visibility: visible;
}

.beam-load-dialog:not([open]),
.beam-preset-confirm-dialog:not([open]) {
    display: none;
}

.beam-load-dialog,
.beam-preset-confirm-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    height: fit-content;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    color: var(--text-1);
}

.beam-load-dialog form {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.beam-load-dialog::backdrop,
.beam-preset-confirm-dialog::backdrop {
    background: oklch(0 0 0 / 0.45);
}

#beamPresetConfirmDialog .modal-body p {
    margin: 0;
}

.beam-load-dialog-field {
    display: flex;
    align-items: center;
    gap: var(--space-sm, 8px);
    margin-top: var(--space-sm, 8px);
}

.beam-load-dialog-field .input-standard {
    flex: 1;
    min-width: 0;
}

.beam-calculator-page {
    --beam-panel-bg: var(--bg-chrome, #ffffff);
    --beam-canvas-bg: var(--bg-canvas, #f7f8fa);
    --beam-border: var(--border-color, #d9dde2);
    --beam-text: var(--text-1, #20242a);
    --beam-muted: var(--text-2, #68717c);
    margin: 0;
    min-height: 100vh;
    overflow: hidden;
    color: var(--beam-text);
    background: var(--beam-panel-bg);
    font-family: var(--font-sans, Geist, sans-serif);
}

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

@media screen and (max-width: 768px) {
    .beam-calculator-document {
        position: static;
        width: 100%;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        touch-action: pan-y;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .beam-calculator-document::-webkit-scrollbar {
        display: none;
    }

    .beam-calculator-document body {
        position: static;
        width: 100%;
        height: auto;
        overflow: visible;
        touch-action: pan-y;
    }
}

.beam-skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #fff;
    background: #256d50;
    transform: translateY(-160%);
}

.beam-skip-link:focus {
    transform: translateY(0);
}

.beam-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 20px;
    border-bottom: 1px solid var(--beam-border);
    background: var(--beam-panel-bg);
}

.beam-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.beam-brand img {
    display: block;
    width: 120px;
    height: 32px;
    object-fit: contain;
}

.beam-topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.beam-app-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    text-decoration: none;
}

.beam-language-switcher {
    display: flex;
    align-items: center;
}

.beam-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    height: calc(100vh - 64px);
    min-height: 420px;
}

.beam-settings-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-right: 1px solid var(--beam-border);
    background: var(--beam-panel-bg);
}

.beam-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
}

.beam-settings-nav-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-right: 1px solid var(--beam-border);
}

.beam-settings-fixed {
    flex: 0 0 auto;
    padding: 22px 16px 0;
}

.beam-settings-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 14px 12px 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.beam-settings-nav::-webkit-scrollbar,
.beam-settings-content::-webkit-scrollbar {
    display: none;
}

.beam-settings-tabs {
    display: flex;
    flex-direction: row;
    min-width: 0;
    width: 100%;
    gap: 5px;
}

.beam-settings-tab {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    min-width: 0;
    width: auto;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--beam-border);
    border-radius: 7px;
    color: var(--beam-muted);
    background: transparent;
    font: 600 13px/1.3 var(--font-sans, Geist, sans-serif);
    letter-spacing: 0.045em;
    text-align: left;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.beam-settings-tab:hover {
    border-color: var(--border-strong, #b0b5bc);
    color: var(--beam-text);
    background: var(--bg-hover, #f3f4f6);
}

.beam-settings-tab.is-active {
    border-color: var(--beam-border);
    color: var(--beam-text);
    background: color-mix(in srgb, #529774 12%, var(--beam-panel-bg));
}

.beam-settings-tab:focus-visible {
    outline: 2px solid #529774;
    outline-offset: 2px;
}

.beam-preset-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.beam-preset-button {
    display: grid;
    position: relative;
    place-items: center;
    width: 100%;
    aspect-ratio: 2 / 1;
    min-width: 0;
    padding: 3px;
    overflow: hidden;
    border: 1px solid var(--beam-border);
    border-radius: 7px;
    color: var(--beam-text);
    background: var(--beam-panel-bg);
    cursor: pointer;
    transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.beam-preset-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.beam-preset-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.beam-preset-button:hover {
    border-color: #529774;
    background: color-mix(in srgb, #529774 8%, var(--beam-panel-bg));
}

.beam-preset-button:active { transform: scale(0.97); }

.beam-preset-button:focus-visible {
    outline: 2px solid #529774;
    outline-offset: 2px;
}

.beam-settings-content {
    min-width: 0;
    min-height: 0;
    overflow: auto;
    padding: 22px 18px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.beam-settings-section[hidden] {
    display: none !important;
}

.beam-settings-section-heading {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--beam-border);
}

.beam-settings-section-heading h2 {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 20px;
    margin: 0;
    color: var(--beam-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.beam-load-help {
    display: inline-flex;
    flex: 0 0 auto;
}

.beam-load-legend-tooltip {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 10;
    width: max-content;
    max-width: min(320px, 100%);
    padding: 10px 12px;
    border: 1px solid var(--beam-border);
    border-radius: 6px;
    color: var(--beam-panel-bg);
    background: var(--beam-text);
    box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
    font-size: 11px;
    line-height: 1.45;
    visibility: hidden;
}

.beam-load-legend-tooltip ul {
    display: grid;
    gap: 5px;
    margin: 0;
    padding-left: 16px;
    list-style: disc;
}

.beam-canvas-heading {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.beam-canvas-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.beam-canvas-support-tooltip {
    right: auto;
    left: 0;
    max-width: min(300px, calc(100vw - 32px));
}

.beam-load-help:hover .beam-load-legend-tooltip,
.beam-load-help:focus-within .beam-load-legend-tooltip {
    visibility: visible;
}

.beam-page-intro {
    margin-bottom: 20px;
}

.beam-eyebrow {
    margin: 0 0 8px;
    color: var(--text-3, #7b8490);
    font-family: var(--font-mono, "Geist Mono", monospace);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.beam-page-intro h1 {
    margin: 0;
    color: var(--beam-text);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.2;
}

.beam-intro-copy {
    margin: 10px 0 0;
    color: var(--beam-muted);
    font-size: 13px;
    line-height: 1.55;
}

.beam-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.beam-span-row {
    display: flex;
    align-items: stretch;
    gap: 9px;
}

.beam-input-wrap {
    position: relative;
    flex: 1;
    min-width: 0;
}

.beam-span-input.input-standard {
    width: 100%;
    height: 40px;
    padding: 7px 38px 7px 11px;
    font-size: 14px;
}

.beam-unit-label {
    position: absolute;
    top: 50%;
    right: 11px;
    color: var(--beam-muted);
    font-family: var(--font-mono, "Geist Mono", monospace);
    font-size: 12px;
    transform: translateY(-50%);
    pointer-events: none;
}

.beam-generate-button.btn-primary {
    flex: 0 0 auto;
    min-width: 104px;
    height: 40px;
    padding: 0 14px;
    font-size: 13px;
}

.beam-input-error {
    margin: 0;
    color: var(--danger, #b42318);
    font-size: 13px;
    line-height: 1.45;
}

.beam-input-error[hidden] {
    display: none !important;
}

.beam-tool-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--beam-border);
}

.beam-left-stiffness {
    margin-top: 0;
    padding-top: 16px;
    border-top: 1px solid var(--beam-border);
}

.beam-left-stiffness {
    min-height: 80px;
}

.beam-settings-nav {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--beam-border);
}

.beam-stiffness-row {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.beam-stiffness-row .ty-field-label {
    min-width: 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.beam-stiffness-input.input-standard {
    width: 100%;
    height: 32px;
    padding: 4px 27px 4px 7px;
    font-size: 14px;
    appearance: textfield;
}

.beam-stiffness-input--modulus.input-standard {
    padding-right: 32px;
}

.beam-stiffness-error {
    margin-top: 8px;
}

.beam-nodal-loads-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.beam-nodal-loads-header h2 {
    margin: 0;
    color: var(--beam-text);
    font-family: var(--font-sans, Geist, sans-serif);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0.045em;
}

.beam-span-section .beam-input-error {
    margin-top: 8px;
}

.beam-tool-actions-header {
    margin-bottom: 10px;
}

.beam-tool-actions > .beam-tool-actions-header {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

.beam-tool-actions > .beam-tool-actions-header h2 {
    white-space: normal;
    overflow-wrap: anywhere;
}

.beam-tool-actions-buttons {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.beam-add-tool-button.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 4px;
    color: var(--text-1, #20242a);
}

.beam-add-tool-button img {
    display: block;
    width: 100%;
    height: 100%;
}

.beam-add-tool-button:focus-visible {
    outline: 2px solid #529774;
    outline-offset: 2px;
}

.beam-add-tool-button.btn-ghost.is-active {
    color: #28734e;
    border-color: #529774;
    background: rgba(82, 151, 116, 0.12);
}

.beam-nodal-loads-list,
.beam-span-list,
.beam-hinges-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.beam-load-row {
    padding: 11px;
    border: 1px solid var(--beam-border);
    border-radius: 9px;
    background: var(--bg-panel, #fbfcfd);
}

.beam-load-row-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.beam-load-number {
    color: var(--beam-text);
    font-size: 12px;
    font-weight: 600;
}

.beam-load-span {
    margin-left: auto;
    color: var(--beam-muted);
    font-size: 11px;
}

.beam-load-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--beam-muted);
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.beam-load-delete:hover,
.beam-load-delete:focus-visible {
    border-color: var(--beam-border);
    color: var(--danger, #b42318);
    background: var(--bg-hover, #f3f4f6);
}

.beam-load-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.beam-load-fields--distributed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.beam-load-fields--point {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.beam-load-fields--point .beam-load-field:first-child {
    grid-column: 1 / -1;
}

.beam-load-fields--moment {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.beam-load-fields--distributed .beam-load-input.input-standard {
    padding-right: 34px;
    padding-left: 5px;
}

.beam-hinge-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.beam-load-field {
    display: block;
    min-width: 0;
    color: var(--beam-muted);
    font-size: 10px;
    line-height: 1.35;
}

.beam-load-input-wrap {
    display: block;
    position: relative;
}

.beam-load-input.input-standard {
    width: 100%;
    height: 32px;
    padding: 4px 27px 4px 7px;
    font-size: 14px;
    appearance: textfield;
}

.beam-load-input::-webkit-inner-spin-button,
.beam-load-input::-webkit-outer-spin-button,
.beam-stiffness-input::-webkit-inner-spin-button,
.beam-stiffness-input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.beam-load-row[data-load-type="moment"] .beam-load-field:first-child .beam-load-input {
    padding-right: 42px;
}

.beam-load-input[aria-invalid="true"],
.beam-stiffness-input[aria-invalid="true"] {
    border-color: var(--danger, #b42318);
}

.beam-load-unit {
    position: absolute;
    top: 50%;
    right: 6px;
    color: var(--beam-muted);
    font-size: 10px;
    transform: translateY(-50%);
    pointer-events: none;
}

.beam-model-summary {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--beam-border);
    color: var(--beam-muted);
    background: var(--bg-panel, #fbfcfd);
    font-size: 12px;
    line-height: 1.5;
}

.beam-canvas-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--beam-canvas-bg);
}

.beam-canvas-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 7px 20px;
    border-bottom: 1px solid var(--beam-border);
    background: var(--beam-panel-bg);
}

.beam-canvas-header h2 {
    margin: 0;
    color: var(--beam-text);
    font-size: 15px;
    font-weight: 600;
}

.beam-canvas-summary {
    margin: 4px 0 0;
    color: var(--beam-muted);
    font-size: 12px;
}

.beam-local-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border: 1px solid var(--beam-border);
    border-radius: 999px;
    color: var(--beam-muted);
    font-size: 11px;
    line-height: 1;
}

.beam-canvas-frame {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.beam-schematic-plot {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

#beamCanvas,
#beamMomentCanvas,
#beamShearCanvas,
#beamDeflectionCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

#beamMomentCanvas,
#beamShearCanvas,
#beamDeflectionCanvas {
    flex: 1 1 auto;
    min-height: 0;
    height: 0;
}

.beam-moment-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--beam-border);
    background: var(--beam-canvas-bg);
}

.beam-shear-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--beam-border);
    background: var(--beam-canvas-bg);
}

.beam-deflection-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    border-top: 1px solid var(--beam-border);
    background: var(--beam-canvas-bg);
}

.beam-moment-plot,
.beam-shear-plot,
.beam-deflection-plot {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
}

.beam-moment-plot .beam-marker-snap,
.beam-shear-plot .beam-marker-snap,
.beam-deflection-plot .beam-marker-snap {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.beam-moment-plot .beam-marker-snap[hidden],
.beam-shear-plot .beam-marker-snap[hidden],
.beam-deflection-plot .beam-marker-snap[hidden] {
    display: none;
}

#beamMomentCanvas,
#beamShearCanvas,
#beamDeflectionCanvas {
    flex: none;
    width: 100%;
    height: 100%;
}

.beam-hover-tooltip {
    position: absolute;
    z-index: 1;
    max-width: calc(100% - 16px);
    padding: 5px 8px;
    border: 1px solid var(--beam-border);
    border-radius: 5px;
    color: var(--beam-panel-bg);
    background: color-mix(in srgb, var(--beam-text) 75%, transparent);
    box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
    font: 11px/1.35 "Geist Mono", monospace;
    text-align: center;
    white-space: normal;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: auto;
    transform: translate(-50%, calc(-100% - 7px));
}

.beam-hover-tooltip-text {
    min-width: 0;
}

.beam-hover-tooltip-close {
    display: inline-grid;
    flex: 0 0 24px;
    place-items: center;
    width: 24px;
    height: 24px;
    margin: -3px -5px -3px 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: inherit;
    background: transparent;
    font: 18px/1 sans-serif;
    cursor: pointer;
}

.beam-hover-tooltip-close:hover,
.beam-hover-tooltip-close:focus-visible {
    background: rgb(255 255 255 / 18%);
    outline: none;
}

.beam-hover-tooltip[hidden] {
    display: none;
}

.beam-moment-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    padding: 5px 16px;
    border-bottom: 1px solid var(--beam-border);
    background: var(--beam-panel-bg);
}

.beam-moment-header h3 {
    margin: 0;
    color: var(--beam-text);
    font-size: 12px;
    font-weight: 600;
}

.beam-solver-status {
    max-width: 58%;
    margin: 0;
    color: var(--beam-muted);
    font-size: 12px;
    text-align: right;
}

.beam-solver-status.is-error {
    color: var(--danger, #b42318);
}

.beam-solver-status .beam-extreme--max {
    color: rgb(180 4 38);
}

.beam-solver-status .beam-extreme--min {
    color: rgb(59 76 192);
}

.beam-solver-status .beam-extreme-value {
    font-weight: 400;
}

.beam-solver-status .is-dominant {
    font-weight: 700;
}

html[data-theme="dark"] .beam-solver-status .beam-extreme--max {
    color: rgb(222 96 77);
}

html[data-theme="dark"] .beam-solver-status .beam-extreme--min {
    color: rgb(141 176 254);
}

.beam-canvas-empty-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: min(80%, 360px);
    color: var(--beam-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.beam-canvas-empty-hint[hidden] {
    display: none !important;
}

.beam-canvas-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    padding: 6px 16px;
    border-top: 1px solid var(--beam-border);
    color: var(--beam-muted);
    background: var(--beam-panel-bg);
    font-size: 11px;
}

.beam-interaction-status {
    color: var(--beam-text);
    text-align: right;
}

.beam-interaction-status.is-active {
    padding: 6px 10px;
    border-radius: 8px;
    color: #28734e;
    font-weight: 600;
    animation: beam-placement-prompt-pulse 1.2s ease-in-out infinite;
}

@keyframes beam-placement-prompt-pulse {
    0%,
    100% {
        background-color: rgba(82, 151, 116, 0);
    }

    50% {
        background-color: rgba(82, 151, 116, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    .beam-interaction-status.is-active {
        animation: none;
        background-color: rgba(82, 151, 116, 0.22);
    }
}

@media (max-width: 900px) {
    .beam-calculator-page {
        overflow: auto;
    }

    .beam-topbar {
        height: 58px;
        padding: 0 12px;
    }

    .beam-brand img {
        width: 96px;
        height: 28px;
    }

    .beam-topbar-actions {
        gap: 8px;
    }

    .beam-app-link {
        min-height: 31px;
        padding: 0 8px;
        font-size: 11px;
    }

    .beam-workspace {
        display: flex;
        height: auto;
        min-height: calc(100vh - 58px);
        flex-direction: column;
    }

    .beam-settings-panel {
        min-height: auto;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--beam-border);
    }

    .beam-settings-layout {
        display: flex;
        flex: initial;
        flex-direction: column;
    }

    .beam-settings-nav-column {
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid var(--beam-border);
    }

    .beam-settings-fixed {
        position: sticky;
        z-index: 3;
        top: 0;
        padding: 22px 16px 0;
        background: var(--beam-panel-bg);
    }

    .beam-settings-nav {
        flex: initial;
        overflow: visible;
        padding: 12px 16px;
    }

    .beam-settings-nav {
        margin-top: 14px;
        padding-top: 12px;
    }

    .beam-settings-tabs {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }

    .beam-settings-tab {
        width: auto;
        min-height: 34px;
        padding: 7px 9px;
    }

    .beam-settings-content {
        overflow: visible;
        padding: 18px 16px;
    }

    .beam-page-intro {
        margin-bottom: 20px;
    }

    .beam-tool-actions {
        margin-top: 22px;
        padding-top: 12px;
    }

    .beam-model-summary {
        margin: 0;
    }

    .beam-canvas-panel {
        min-height: 700px;
    }

    .beam-canvas-frame {
        flex: none;
        grid-template-rows: repeat(4, minmax(0, 1fr));
        height: min(78vh, 720px);
        min-height: 600px;
    }

    .beam-canvas-header {
        min-height: 54px;
        padding: 11px 14px;
    }

    .beam-canvas-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 8px 14px;
    }

    .beam-interaction-status {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .beam-tool-actions-header {
        gap: 4px;
    }

    .beam-tool-actions-header h2 {
        font-size: 11px;
        letter-spacing: 0.02em;
    }

    .beam-settings-tab {
        font-size: 11px;
    }

    .beam-tool-actions-buttons {
        gap: 2px;
    }

    .beam-add-tool-button.btn-ghost {
        width: 30px;
        min-width: 30px;
        height: 30px;
        padding: 3px;
    }

    .beam-span-row {
        align-items: stretch;
        flex-direction: column;
    }

    .beam-generate-button.btn-primary {
        width: 100%;
    }
}

.beam-canvas-panel,
.beam-canvas-panel * {
    font-family: var(--font-mono, "Geist Mono", monospace) !important;
}

.beam-settings-panel input:not([type="checkbox"]):not([type="radio"]),
.beam-settings-panel select,
.beam-settings-panel textarea {
    font-size: 12px;
}

.beam-settings-panel input::placeholder,
.beam-settings-panel textarea::placeholder,
.beam-settings-panel .beam-unit-label,
.beam-settings-panel .beam-load-unit {
    font-size: 12px;
}
