:root {
    color-scheme: dark;
    --bg: #07111b;
    --bg-deep: #040b12;
    --panel: #0e1b29;
    --panel-elevated: #14263a;
    --input: #091521;
    --border: #294157;
    --border-strong: #42637f;
    --text: #f4f8fc;
    --muted: #9cb2c6;
    --muted-strong: #bfd0df;
    --accent: #31c3ff;
    --accent-dark: #087da8;
    --accent-soft: rgba(49, 195, 255, 0.12);
    --success: #4dd7a8;
    --warning: #ffb454;
    --error: #ff7474;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    font-family: Inter, Pretendard, "Segoe UI", "Noto Sans KR", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 85% -10%, rgba(32, 137, 185, 0.2), transparent 30rem),
        radial-gradient(circle at -10% 40%, rgba(22, 86, 119, 0.12), transparent 28rem),
        var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button, input, select {
    font: inherit;
}

button, select, input[type="checkbox"] {
    cursor: pointer;
}

button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.app-shell {
    width: min(1540px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
}

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

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-mark {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    overflow: hidden;
    border: 1px solid #36536c;
    border-radius: 14px;
    background: linear-gradient(145deg, #122c42, #091624);
    box-shadow: inset 0 0 24px rgba(49, 195, 255, 0.08);
}

.brand-arc {
    position: absolute;
    width: 35px;
    height: 24px;
    left: 7px;
    top: 9px;
    border-top: 4px solid var(--accent);
    border-right: 4px solid var(--accent);
    border-radius: 50% 50% 50% 10%;
    transform: rotate(18deg);
}

.brand-impact {
    position: absolute;
    width: 10px;
    height: 10px;
    right: 8px;
    bottom: 8px;
    border: 3px solid var(--warning);
    border-radius: 50%;
}

.eyebrow, .step-label {
    margin: 0 0 2px;
    color: var(--accent);
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

h1 span {
    color: var(--accent);
    font-weight: 500;
}

.subtitle {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.privacy-badge, .unit-badge, .result-state {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(14, 27, 41, 0.74);
    font-size: 0.72rem;
    font-weight: 650;
    white-space: nowrap;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(77, 215, 168, 0.12);
}

.icon-button, .file-actions button, .file-upload {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--border-strong);
    border-radius: 9px;
    color: var(--text);
    background: #152b3f;
    font-size: 0.78rem;
    font-weight: 700;
    transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.icon-button:hover, .file-actions button:hover, .file-upload:hover {
    border-color: var(--accent);
    background: #1b3850;
}

.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 180, 84, 0.28);
    border-radius: var(--radius-md);
    background: rgba(86, 59, 24, 0.24);
}

.notice-icon {
    display: grid;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #16100a;
    background: var(--warning);
    font-size: 0.78rem;
    font-weight: 900;
}

.notice-card strong {
    display: block;
    margin-bottom: 2px;
    color: #ffd59e;
    font-size: 0.8rem;
}

.notice-card p {
    margin: 0;
    color: #d4b98f;
    font-size: 0.73rem;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(390px, 0.86fr) minmax(590px, 1.55fr);
    gap: 16px;
    align-items: start;
}

.results-column {
    display: grid;
    gap: 16px;
}

.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(15, 29, 43, 0.98), rgba(10, 22, 33, 0.98));
    box-shadow: var(--shadow);
}

.input-panel, .result-panel, .comparison-panel, .file-panel {
    padding: 20px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.18rem;
    letter-spacing: -0.025em;
}

.compact-heading {
    margin-bottom: 12px;
}

.field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
    color: var(--muted-strong);
    font-size: 0.76rem;
    font-weight: 650;
}

.field > span {
    min-height: 19px;
}

.field em, .metric-card em, .comparison-results em {
    color: var(--muted);
    font-size: 0.7em;
    font-style: normal;
    font-weight: 500;
}

.field input:not([type="checkbox"]), .field select {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    background: var(--input);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.field input:hover, .field select:hover {
    border-color: var(--border-strong);
}

.field input:focus, .field select:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 195, 255, 0.1);
}

.field small, .section-description {
    margin: 0;
    color: var(--muted);
    font-size: 0.67rem;
    font-weight: 450;
    line-height: 1.45;
}

.full-field {
    margin-bottom: 15px;
}

.field-grid {
    display: grid;
    gap: 10px;
}

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

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

.term {
    display: inline-grid;
    width: 17px;
    height: 17px;
    margin: 0 0 0 3px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    color: var(--accent);
    background: transparent;
    font-size: 0.65rem;
    font-weight: 800;
    vertical-align: 1px;
}

.subsection {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(66, 99, 127, 0.44);
}

.subsection-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.subsection-title h3 {
    margin: 0;
    font-size: 0.93rem;
}

.subsection-title p {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 0.66rem;
}

.number-chip {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--accent-dark);
    border-radius: 8px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 0.75rem;
    font-weight: 850;
}

.correction-field {
    margin-top: 10px;
    padding: 11px;
    border: 1px solid rgba(255, 180, 84, 0.36);
    border-radius: 10px;
    background: rgba(80, 55, 22, 0.16);
}

.correction-field > span {
    color: #ffd29a;
}

.velocity-grid input {
    min-width: 0;
}

.conversion-card {
    margin-top: 15px;
    padding: 12px;
    border: 1px solid var(--accent-dark);
    border-radius: 10px;
    background: var(--accent-soft);
}

.conversion-card.invalid {
    border-color: var(--error);
    background: rgba(255, 116, 116, 0.09);
}

.conversion-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted-strong);
    font-size: 0.67rem;
}

.conversion-heading strong {
    color: var(--accent);
    font-size: 0.68rem;
}

.conversion-card p {
    margin: 5px 0 0;
    color: var(--accent);
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 0.71rem;
    overflow-wrap: anywhere;
}

details > summary {
    cursor: pointer;
    list-style: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

.advanced-settings {
    margin-top: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.advanced-settings > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    color: var(--text);
    background: rgba(20, 38, 58, 0.55);
    font-size: 0.77rem;
    font-weight: 750;
}

.advanced-settings > summary::after, .engineering-details > summary::after, .help-panel > summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1rem;
}

.advanced-settings[open] > summary::after, .engineering-details[open] > summary::after, .help-panel[open] > summary::after {
    content: "−";
}

.advanced-settings summary small {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.62rem;
    font-weight: 450;
}

.details-body {
    padding: 13px;
}

.toggle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 0.73rem;
    font-weight: 600;
}

.toggle-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent-dark);
}

.atmosphere-box {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(6, 16, 25, 0.45);
}

.primary-actions {
    margin-top: 16px;
}

.primary-button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #43cdfd;
    border-radius: 11px;
    color: #041018;
    background: linear-gradient(135deg, #42ccff, #19a9e1);
    box-shadow: 0 10px 28px rgba(23, 174, 227, 0.22);
    font-size: 0.93rem;
    font-weight: 850;
    transition: transform 120ms ease, filter 120ms ease;
}

.primary-button:hover:not(:disabled) {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.button-spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(4, 16, 24, 0.3);
    border-top-color: #041018;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-state.waiting {
    color: var(--muted);
}

.result-state.working {
    color: var(--warning);
    border-color: rgba(255, 180, 84, 0.45);
}

.result-state.complete {
    color: var(--success);
    border-color: rgba(77, 215, 168, 0.44);
    background: rgba(77, 215, 168, 0.08);
}

.status-message {
    margin: -4px 0 14px;
    padding: 9px 11px;
    border-left: 3px solid var(--border-strong);
    border-radius: 5px;
    color: var(--muted-strong);
    background: rgba(20, 38, 58, 0.44);
    font-size: 0.72rem;
}

.status-message.success {
    border-left-color: var(--success);
    color: #acf1d7;
}

.status-message.error {
    border-left-color: var(--error);
    color: #ffc0c0;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.metric-card {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: rgba(8, 20, 31, 0.67);
}

.metric-card.metric-primary {
    border-color: rgba(49, 195, 255, 0.32);
    background: linear-gradient(145deg, rgba(14, 67, 90, 0.38), rgba(8, 25, 37, 0.7));
}

.metric-card > span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.59rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.metric-card strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: clamp(1rem, 1.6vw, 1.45rem);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
}

.metric-card.metric-primary strong {
    color: var(--accent);
}

.metric-card small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.6rem;
}

.plot-section {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #091521;
}

.plot-tabs {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    background: rgba(20, 38, 58, 0.58);
}

.plot-tabs button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 13px;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: transparent;
    font-size: 0.7rem;
    font-weight: 750;
}

.plot-tabs button.active {
    color: var(--text);
    background: #1a344a;
    box-shadow: inset 0 -2px var(--accent);
}

.plot-frame {
    position: relative;
    width: 100%;
    min-height: 310px;
}

.plot-frame svg {
    display: block;
    width: 100%;
    height: 310px;
}

.plot-grid line {
    stroke: #263c50;
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.plot-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.plot-start {
    fill: var(--success);
    stroke: #e8fff7;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}

.plot-impact line {
    stroke: var(--warning);
    stroke-width: 3;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.plot-labels text {
    fill: #7894aa;
    font-size: 12px;
}

.plot-empty {
    display: flex;
    min-height: 310px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--muted);
    text-align: center;
}

.plot-empty-icon {
    color: var(--accent-dark);
    font-size: 3rem;
    line-height: 1;
}

.plot-empty strong {
    margin-top: 7px;
    color: var(--muted-strong);
    font-size: 0.85rem;
}

.plot-empty small {
    margin-top: 3px;
    font-size: 0.67rem;
}

.engineering-details {
    margin-top: 12px;
    border-top: 1px solid var(--border);
}

.engineering-details > summary {
    display: flex;
    justify-content: space-between;
    padding: 12px 2px 2px;
    color: var(--muted-strong);
    font-size: 0.73rem;
    font-weight: 750;
}

.engineering-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.engineering-grid div {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 7px;
    background: rgba(7, 18, 28, 0.7);
}

.engineering-grid span, .engineering-grid strong {
    display: block;
}

.engineering-grid span {
    color: var(--muted);
    font-size: 0.61rem;
}

.engineering-grid strong {
    margin-top: 3px;
    overflow-wrap: anywhere;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 0.67rem;
    font-weight: 550;
}

.section-description {
    margin: -7px 0 14px;
}

.comparison-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    margin-top: 13px;
}

.comparison-results > div {
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: rgba(8, 20, 31, 0.65);
}

.comparison-results span, .comparison-results strong {
    display: block;
}

.comparison-results span {
    color: var(--muted);
    font-size: 0.61rem;
}

.comparison-results strong {
    margin-top: 4px;
    color: var(--warning);
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.file-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.file-upload {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.file-upload input {
    display: none;
}

.help-panel {
    overflow: hidden;
}

.help-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    color: var(--muted-strong);
    font-size: 0.78rem;
    font-weight: 750;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0 16px 16px;
}

.help-grid > div {
    padding: 11px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(7, 18, 28, 0.68);
}

.help-grid strong {
    color: var(--accent);
    font-size: 0.72rem;
}

.help-grid p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.65rem;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 4px 0;
    color: #698398;
    font-size: 0.62rem;
}

.mobile-calculate-bar {
    display: none;
}

#blazor-error-ui {
    position: fixed;
    z-index: 2000;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: none;
    padding: 12px 42px 12px 14px;
    border: 1px solid var(--error);
    border-radius: 10px;
    color: white;
    background: #5b1d24;
    box-shadow: var(--shadow);
    font-size: 0.78rem;
}

#blazor-error-ui a {
    margin-left: 8px;
    color: white;
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
}

.loading-progress {
    position: relative;
    display: block;
    width: 6rem;
    height: 6rem;
    margin: 30vh auto 1rem;
}

.loading-progress circle {
    fill: none;
    stroke: #1d3346;
    stroke-width: 0.55rem;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-progress circle:last-child {
    stroke: var(--accent);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    inset: calc(30vh + 2.5rem) 0 auto;
    color: var(--muted);
    text-align: center;
    font-size: 0.72rem;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "FTS IIP 로딩 중");
}

@media (max-width: 1080px) {
    .workspace-grid {
        grid-template-columns: minmax(350px, 0.9fr) minmax(500px, 1.35fr);
    }

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

@media (max-width: 820px) {
    .app-shell {
        width: min(100% - 20px, 700px);
        padding: 14px 0 102px;
    }

    .topbar {
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .brand-mark {
        width: 44px;
        height: 44px;
        border-radius: 12px;
    }

    .brand-arc {
        width: 31px;
        height: 21px;
        left: 6px;
        top: 8px;
    }

    .brand-impact {
        right: 7px;
        bottom: 7px;
    }

    .subtitle {
        max-width: 230px;
    }

    .privacy-badge {
        display: none;
    }

    .icon-button {
        min-height: 34px;
        padding: 6px 9px;
        font-size: 0.68rem;
    }

    .workspace-grid {
        display: block;
    }

    .results-column {
        margin-top: 12px;
        gap: 12px;
    }

    .panel {
        border-radius: 14px;
        box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
    }

    .input-panel, .result-panel, .comparison-panel, .file-panel {
        padding: 16px;
    }

    .desktop-actions {
        display: none;
    }

    .mobile-calculate-bar {
        position: fixed;
        z-index: 1000;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 140px;
        gap: 12px;
        align-items: center;
        padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
        border-top: 1px solid var(--border-strong);
        background: rgba(7, 17, 27, 0.94);
        box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.34);
        backdrop-filter: blur(16px);
    }

    .mobile-calculate-bar > div {
        min-width: 0;
    }

    .mobile-calculate-bar span, .mobile-calculate-bar strong {
        display: block;
    }

    .mobile-calculate-bar span {
        color: var(--muted);
        font-size: 0.58rem;
    }

    .mobile-calculate-bar strong {
        overflow: hidden;
        margin-top: 2px;
        color: var(--accent);
        font-size: 0.73rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-calculate-bar .primary-button {
        min-height: 45px;
        font-size: 0.82rem;
    }

    footer {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 520px) {
    .app-shell {
        width: calc(100% - 16px);
    }

    h1 {
        font-size: 1.23rem;
    }

    .eyebrow {
        font-size: 0.58rem;
    }

    .subtitle {
        font-size: 0.69rem;
    }

    .notice-card {
        padding: 10px 12px;
    }

    .notice-card p {
        font-size: 0.66rem;
    }

    .field input:not([type="checkbox"]), .field select {
        min-height: 46px;
        font-size: 16px;
    }

    .velocity-grid {
        gap: 6px;
    }

    .velocity-grid .field > span {
        font-size: 0.68rem;
    }

    .result-cards {
        gap: 7px;
    }

    .metric-card {
        padding: 11px;
    }

    .metric-card strong {
        font-size: 1.04rem;
    }

    .plot-frame, .plot-empty {
        min-height: 250px;
    }

    .plot-frame svg {
        height: 250px;
    }

    .engineering-grid, .help-grid {
        grid-template-columns: 1fr;
    }

    .comparison-results {
        grid-template-columns: 1fr;
    }

    .file-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .file-actions > * {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .topbar {
        gap: 8px;
    }

    .brand-lockup {
        gap: 9px;
    }

    .brand-mark {
        display: none;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .velocity-grid, .details-body .three-columns {
        grid-template-columns: 1fr;
    }

    .toggle-grid {
        grid-template-columns: 1fr;
    }

    .mobile-calculate-bar {
        grid-template-columns: minmax(0, 1fr) 120px;
    }
}

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