html.workspace-scroll-locked { overflow: hidden; overscroll-behavior: none; }
html:has(.tfl-workspace) { scrollbar-gutter: stable; scroll-padding-top: var(--header-height); }
.workspace-header { position: sticky; top: 0; z-index: 10; background: var(--canvas); }
.tfl-workspace iframe { width: 100%; height: 70vh; display: block; border: 0; }
.tfl-prototype { display: flow-root; }
.tfl-workspace form { flex-shrink: 0; }
.tool-picker { position: relative; }
.tool-picker summary { list-style: none; padding: 0 2px 0 14px; min-height: 44px; display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 1.125rem; }
.tool-picker summary::before { position: absolute; content: ""; left: 0; width: 1px; height: 22px; background: #dde0e4; }
.tool-picker summary::-webkit-details-marker { display: none; }
.tool-picker summary:hover, .tool-picker[open] summary { color: var(--ink); }
.tool-picker svg { width: 15px; height: 15px; flex: none; }
.tool-picker[open] svg { transform: rotate(90deg); }
.tool-picker nav { position: absolute; top: 100%; left: 7px; min-width: 188px; width: max-content; padding: 5px; z-index: 2; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: 0 8px 22px #25272b16; }
.tool-picker nav a { display: block; padding: 9px 12px; min-height: 44px; text-decoration: none; border-radius: 6px; }
.tool-picker nav a:hover, .tool-picker nav a[aria-current] { background: var(--focus-surface); }
.tool-picker nav a[aria-current] { font-weight: 600; }
.session-link { font-size: .9375rem; }
.login { max-width: 456px; margin: clamp(28px, 8vh, 90px) auto 64px; padding-inline: 20px; }
.login h1 { margin: 0; font-size: clamp(2rem, 4.5vw, 2.7rem); line-height: 1.15; letter-spacing: -.045em; font-weight: 600; }
.login p { color: var(--muted); margin: 12px 0 0; }
.login form { display: grid; gap: 19px; margin-top: 28px; }
.login button { margin-top: 3px; }
.login .login-error { margin: 0; color: #863e36; }
.prototype { max-width: var(--content); margin: 0 auto; padding: var(--workspace-start) var(--gutter) 48px; }
.prototype h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 13px; font-weight: 600; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); gap: 16px; align-items: stretch; }
.source { padding: 32px 20px 24px; display: flex; flex-direction: column; align-items: stretch; border: 1px dashed var(--control-border); border-radius: 16px; background: var(--surface); text-align: center; min-width: 0; }
.source.drag, .source:focus-within { background: var(--focus-surface); border-color: var(--focus); }
.source p { margin: 14px 0 5px; color: var(--muted); font-size: .9375rem; }
.source .source-description { margin: 0 0 19px; font-size: 1rem; }
.source .source-choice { align-self: center; margin-top: auto; }
.source .source-note { margin: 16px 0 0; }
.source ul:not(:empty) { margin-top: 7px; }
.source ul { list-style: none; margin: 0; padding: 0; }
.source li { display: flex; align-items: center; gap: 8px; justify-content: space-between; border-top: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; font-size: .9375rem; }
.source li button { flex: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); }
.prototype-actions { margin-top: 24px; border-top: 1px solid var(--line); }
.prototype-result { margin-top: 16px; }
.prototype-result p { margin: -5px 0 12px; color: var(--muted); }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.table-scroll table { border-collapse: separate; border-spacing: 0; width: 100%; text-align: left; }
.table-scroll th, .table-scroll td { padding: 12px 16px; border: 0; }
.table-scroll tr + tr > *, .table-scroll thead th { border-top: 1px solid var(--line); }
.table-scroll thead th { border-top: 0; border-bottom: 1px solid var(--line); background: #f1f2f4; }
.table-scroll .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) {
  .tool-picker summary { padding-left: 8px; font-size: 1rem; }
  .session-link { font-size: .875rem; }
}
.depreciation-controls { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.depreciation-controls p { margin: 0 0 16px; color: var(--muted); }
.depreciation-fields { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 12px 16px; margin: 16px 0; }
.depreciation-controls .prototype-note { margin: 10px 0 0; font-size: .9375rem; }
