/* Land Area Calculator — canvas-first layout, fullscreen drawing */

.ts-tool .lac-app {
    --lac-gap: 1rem;
    --lac-canvas-min-h: clamp(22rem, 52vh, 36rem);
    --lac-toolbar-bg: rgba(255, 255, 255, 0.94);
    --lac-toolbar-border: rgba(10, 124, 110, 0.18);
    max-width: 100%;
}

[data-theme="dark"] .ts-tool .lac-app {
    --lac-toolbar-bg: rgba(22, 32, 38, 0.94);
    --lac-toolbar-border: rgba(120, 200, 185, 0.22);
}

/* Intro */
.ts-tool .lac-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-sm);
}

.ts-tool .lac-intro p {
    flex: 1 1 14rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.ts-tool .lac-help-link {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.ts-tool .lac-help-link:hover {
    border-color: var(--color-primary);
    background: rgba(10, 124, 110, 0.06);
    color: var(--color-primary-hover);
}

/* Workflow chips */
.ts-tool .lac-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.ts-tool .lac-step {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.ts-tool .lac-step i {
    color: var(--color-primary);
    font-size: 0.72rem;
}

.ts-tool .lac-step--active {
    color: var(--color-text);
    border-color: var(--color-primary);
    background: rgba(10, 124, 110, 0.08);
}

/* Workspace — canvas dominates */
.ts-tool .lac-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 1fr);
    gap: var(--lac-gap);
    align-items: stretch;
}

/* Canvas stage */
.ts-tool .lac-canvas-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: var(--lac-canvas-min-h);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.ts-tool .lac-canvas-chrome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: var(--color-surface-2);
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
}

.ts-tool .lac-canvas-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    min-width: 0;
}

.ts-tool .lac-status-mode {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--color-text);
}

.ts-tool .lac-status-points {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.2rem 0.55rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
}

.ts-tool .lac-fs-exit-hint {
    display: none;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.ts-tool .lac-fs-exit-hint kbd {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    font-size: 0.68rem;
    font-family: inherit;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.ts-tool .lac-canvas-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.ts-tool .lac-canvas-wrap {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: #f8fbfa;
    line-height: 0;
}

[data-theme="dark"] .ts-tool .lac-canvas-wrap {
    background: #0f1719;
}

.ts-tool #canvas {
    display: block;
    width: 100%;
    height: 100%;
    min-height: calc(var(--lac-canvas-min-h) - 3.25rem);
    cursor: crosshair;
    border: 0;
    touch-action: none;
}

.ts-tool .lac-snap-hint {
    position: absolute;
    left: 50%;
    bottom: 0.85rem;
    transform: translateX(-50%);
    margin: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--lac-toolbar-bg);
    border: 1px solid var(--lac-toolbar-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    line-height: 1.35;
    pointer-events: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ts-tool .lac-snap-hint i {
    margin-right: 0.35rem;
}

/* Floating toolbar */
.ts-tool .lac-floating-toolbar {
    position: absolute;
    top: 3.35rem;
    right: 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.45rem;
    background: var(--lac-toolbar-bg);
    border: 1px solid var(--lac-toolbar-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3;
}

.ts-tool .lac-tool-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    margin: 0;
    box-shadow: none;
}

.ts-tool .lac-tool-btn:hover:not(:disabled) {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.ts-tool .lac-tool-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ts-tool .lac-tool-btn--ghost {
    background: transparent;
}

.ts-tool .lac-tool-btn--warn:hover:not(:disabled) {
    border-color: #c53030;
    color: #c53030;
}

.ts-tool .lac-tool-btn--help {
    background: rgba(10, 124, 110, 0.08);
    border-color: rgba(10, 124, 110, 0.25);
    color: var(--color-primary);
}

/* Fullscreen mode — canvas edge-to-edge, all controls float on top */
body.lac-fs-open {
    overflow: hidden;
}

body.lac-fs-open .lac-workspace {
    display: block;
}

.ts-tool .lac-canvas-stage.is-fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9990;
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    display: block;
    overflow: hidden;
    background: #f8fbfa;
}

[data-theme="dark"] .ts-tool .lac-canvas-stage.is-fullscreen {
    background: #0f1719;
}

.ts-tool .lac-canvas-stage.is-fullscreen .lac-canvas-wrap {
    position: absolute;
    inset: 0;
    flex: none;
    min-height: 0;
}

.ts-tool .lac-canvas-stage.is-fullscreen #canvas {
    min-height: 0;
    width: 100%;
    height: 100%;
}

.ts-tool .lac-canvas-stage.is-fullscreen .lac-canvas-chrome {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 12;
    max-width: min(22rem, calc(100vw - 2rem));
    padding: 0.5rem 0.75rem;
    background: var(--lac-toolbar-bg);
    border: 1px solid var(--lac-toolbar-border);
    border-radius: var(--radius-md);
    border-bottom: 1px solid var(--lac-toolbar-border);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ts-tool .lac-canvas-stage.is-fullscreen .lac-canvas-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
}

.ts-tool .lac-canvas-stage.is-fullscreen .lac-floating-toolbar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: auto;
    bottom: auto;
    z-index: 12;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: min(20rem, calc(100vw - 2rem));
}

.ts-tool .lac-canvas-stage.is-fullscreen .lac-snap-hint {
    bottom: 1.25rem;
    z-index: 11;
}

body.lac-fs-open .lac-side-panel {
    position: fixed;
    top: 5rem;
    right: 1rem;
    bottom: 1rem;
    left: auto;
    width: min(20rem, calc(100vw - 2rem));
    min-height: 0;
    max-height: calc(100vh - 6rem);
    z-index: 9995;
    margin: 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--lac-toolbar-bg);
    border-color: var(--lac-toolbar-border);
    transition: max-height 0.2s ease, bottom 0.2s ease, top 0.2s ease;
}

body.lac-fs-open .lac-side-panel.is-fs-collapsed {
    top: auto;
    bottom: 1rem;
    height: auto;
    min-height: 0;
    max-height: 2.85rem;
    overflow: hidden;
}

body.lac-fs-open .lac-side-panel.is-fs-collapsed .lac-panel-body,
body.lac-fs-open .lac-side-panel.is-fs-collapsed .lac-disclaimer {
    display: none;
}

.ts-tool .lac-canvas-stage.is-fullscreen:has(~ .lac-side-panel.is-fs-collapsed) .lac-snap-hint {
    bottom: 4.5rem;
}

body.lac-fs-open .lac-side-panel .lac-panel-body {
    max-height: none;
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

body.lac-fs-open .lac-side-panel .lac-disclaimer {
    flex-shrink: 0;
    max-height: 5.5rem;
    overflow-y: auto;
}

body.lac-fs-open .lac-fs-exit-hint {
    display: inline-flex;
}

/* Side panel */
.ts-tool .lac-side-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: var(--lac-canvas-min-h);
}

.ts-tool .lac-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.ts-tool .lac-panel-tabs {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-2);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
}

.ts-tool .lac-panel-fs-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.35rem;
    border: 0;
    border-left: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    margin: 0;
    box-shadow: none;
}

body.lac-fs-open .lac-panel-fs-toggle:not([hidden]) {
    display: inline-flex !important;
}

.ts-tool .lac-panel-fs-toggle:hover {
    color: var(--color-primary);
    background: rgba(10, 124, 110, 0.06);
}

body.lac-fs-open .lac-side-panel.is-fs-collapsed .lac-panel-fs-toggle i {
    transform: rotate(180deg);
}

.ts-tool .lac-panel-tab {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 0.5rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--color-text-muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    margin: 0;
    box-shadow: none;
}

.ts-tool .lac-panel-tab:hover {
    color: var(--color-primary);
    background: rgba(10, 124, 110, 0.04);
}

.ts-tool .lac-panel-tab.is-active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background: var(--color-surface);
}

.ts-tool .lac-panel-body {
    flex: 1 1 auto;
    padding: clamp(0.75rem, 2.5vw, 1rem);
    min-height: 0;
    overflow: auto;
}

.ts-tool .lac-panel-pane {
    display: none;
}

.ts-tool .lac-panel-pane.is-active {
    display: block;
}

.ts-tool .lac-panel-empty {
    margin: 0;
    font-size: 0.84rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.ts-tool #lacPanelMeasurements.is-active:has(#inputPanel:not(:empty)) .lac-panel-empty,
.ts-tool #lacPanelResults.is-active:has(#results:not(:empty)) .lac-panel-empty {
    display: none;
}

.ts-tool .lac-side-panel .form-group {
    margin-bottom: 0.75rem;
}

.ts-tool .lac-side-panel .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
}

.ts-tool #instructions.lac-instructions {
    margin: 0;
    padding: 0.65rem 0.75rem;
    background: rgba(10, 124, 110, 0.08);
    border: 1px solid rgba(10, 124, 110, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    color: var(--color-text);
    line-height: 1.45;
}

.ts-tool #instructions.lac-instructions.highlight {
    border-left: 3px solid var(--color-primary);
}

/* Buttons (dynamically created + legacy) */
.ts-tool .lac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    margin: 0;
    width: auto;
    box-shadow: none;
}

.ts-tool .lac-btn--primary {
    background: var(--color-primary);
    color: #fff;
}

.ts-tool .lac-btn--primary:hover {
    background: var(--color-primary-hover);
    transform: none;
}

.ts-tool .lac-btn--secondary {
    background: var(--color-surface-2);
    border-color: var(--color-border);
    color: var(--color-text);
}

.ts-tool .lac-btn--secondary:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: none;
}

/* Input panel */
.ts-tool #inputPanel.lac-input-panel:not(:empty) {
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ts-tool .dim-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 7rem) auto;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.65rem;
}

.ts-tool .dim-group label {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text);
}

.ts-tool .dim-group input {
    width: 100%;
    margin: 0;
    min-width: 0;
}

.ts-tool .dim-group span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.ts-tool #inputPanel .lac-btn {
    margin-top: 0.5rem;
    width: 100%;
}

.ts-tool #inputPanel .lac-btn + .lac-btn {
    margin-top: 0.45rem;
}

/* Results */
.ts-tool #results.lac-results:not(:empty) {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.ts-tool .result-card {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--color-primary);
}

.ts-tool .result-card h3 {
    margin: 0 0 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--color-text);
}

.ts-tool .result-card p {
    margin: 0.35rem 0;
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.ts-tool .result-card strong {
    color: var(--color-primary);
}

.ts-tool .result-card .error {
    color: var(--color-error);
    font-weight: 600;
}

.ts-tool .result-card .lac-viz-note {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.65rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-warning);
    background: var(--color-warning-bg);
    border: 1px solid var(--color-warning-border);
    border-radius: var(--radius-sm);
}

.ts-tool .result-card .lac-viz-note i {
    flex-shrink: 0;
}

.ts-tool .result-card select,
.ts-tool .result-card label {
    margin-top: 0.65rem;
    display: block;
    font-size: 0.82rem;
    color: var(--color-text);
}

.ts-tool .result-card select {
    width: 100%;
    max-width: 16rem;
    margin-top: 0.35rem;
}

.ts-tool #convertedArea {
    margin-top: 0.35rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Disclaimer */
.ts-tool .lac-disclaimer {
    margin-top: auto;
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    background: var(--color-surface-2);
    border-top: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.ts-tool .lac-disclaimer strong {
    color: var(--color-text);
}

/* Help modal */
.ts-tool .lac-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ts-tool .lac-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ts-tool .lac-modal__dialog {
    width: min(100%, 28rem);
    max-height: min(90vh, 32rem);
    overflow: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.ts-tool .lac-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.ts-tool .lac-modal__head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--color-text);
}

.ts-tool .lac-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface-2);
    color: var(--color-text-muted);
    cursor: pointer;
    margin: 0;
    box-shadow: none;
}

.ts-tool .lac-modal__close:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.ts-tool .lac-modal__steps {
    margin: 0;
    padding: 1rem 1rem 1.15rem 1.35rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.ts-tool .lac-modal__steps li + li {
    margin-top: 0.55rem;
}

.ts-tool .lac-modal__steps kbd {
    display: inline-block;
    padding: 0.1rem 0.35rem;
    font-size: 0.78rem;
    font-family: inherit;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

/* How it works */
.ts-tool .lac-help {
    margin-top: 1.5rem;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.ts-tool .lac-help > h2 {
    text-align: center;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    margin: 0 0 1rem;
    color: var(--color-text);
}

.ts-tool .lac-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.75rem;
}

.ts-tool .lac-guide-step {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.ts-tool .lac-guide-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(10, 124, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.65rem;
}

.ts-tool .lac-guide-icon i {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.ts-tool .lac-guide-step h3 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem;
    color: var(--color-text);
}

.ts-tool .lac-guide-step p {
    font-size: 0.84rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .ts-tool .lac-workspace {
        grid-template-columns: 1fr;
    }

    .ts-tool .lac-side-panel {
        min-height: 0;
    }

    .ts-tool .lac-floating-toolbar {
        flex-direction: row;
        top: auto;
        bottom: 0.65rem;
        right: 0.65rem;
        left: 0.65rem;
        justify-content: center;
    }

    .ts-tool .lac-tool-label {
        display: none;
    }

    body.lac-fs-open .lac-side-panel {
        top: auto;
        right: 0.65rem;
        left: 0.65rem;
        bottom: 0.65rem;
        width: auto;
        max-height: min(42vh, 20rem);
    }

    .ts-tool .lac-canvas-stage.is-fullscreen .lac-canvas-chrome {
        top: 0.65rem;
        left: 0.65rem;
        max-width: calc(100% - 1.3rem);
    }

    .ts-tool .lac-canvas-stage.is-fullscreen .lac-floating-toolbar {
        top: 0.65rem;
        right: 0.65rem;
        max-width: calc(100% - 1.3rem);
    }

    .ts-tool .lac-canvas-stage.is-fullscreen .lac-snap-hint {
        bottom: calc(min(42vh, 20rem) + 1.25rem);
    }

    .ts-tool .lac-canvas-stage.is-fullscreen:has(~ .lac-side-panel.is-fs-collapsed) .lac-snap-hint {
        bottom: 4.5rem;
    }
}

@media (max-width: 767px) {
    .ts-tool .lac-steps {
        display: none;
    }

    .ts-tool .lac-panel-tab {
        font-size: 0.72rem;
        padding: 0.55rem 0.35rem;
    }

    .ts-tool .lac-panel-tab i {
        display: none;
    }

    .ts-tool .dim-group {
        grid-template-columns: 1fr;
        gap: 0.35rem;
        padding-bottom: 0.65rem;
        border-bottom: 1px solid var(--color-divider);
    }

    .ts-tool .dim-group:last-of-type {
        border-bottom: 0;
    }
}

@media (min-width: 992px) {
    .ts-tool .lac-tool-btn--ghost .lac-tool-label {
        display: inline;
    }
}