/* The header's navigation and the drawing controls use separate surfaces. */
.takeoff-workspace[data-workspace-view] {
  font-size: 14px;
}
.takeoff-workspace[data-workspace-view] :is(input,textarea) { caret-color: var(--takeoff-accent); }
.takeoff-workspace[data-workspace-view] :is(button,input,select,textarea,a,summary):focus-visible { outline-offset: 3px; }
.takeoff-workspace[data-workspace-view] .takeoff-header-main :focus-visible { outline-color: var(--ui-nav-accent); outline-offset: 2px; }
.takeoff-header-main .takeoff-tool-separator { background: var(--ui-nav-line); }
.takeoff-workspace[data-workspace-view] .button { min-height: 40px; padding: 8px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; }
.takeoff-workspace[data-workspace-view] .takeoff-header .button { min-height: 36px; padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: inherit; }
.takeoff-workspace[data-workspace-view] .takeoff-layout.takeoff-body { display: grid; grid-template-columns: 88px minmax(0,1fr); flex: 1; min-width: 0; min-height: 0; }
.takeoff-rail { display: flex; flex-direction: column; align-items: stretch; gap: 9px; min-width: 0; min-height: 0; padding: 24px 5px 12px; border-right: 1px solid var(--takeoff-line); background: var(--takeoff-surface-raised); overflow-y: auto; scrollbar-width: thin; }
.takeoff-rail button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; flex: none; width: 100%; min-height: 82px; padding: 10px 1px; border: 0; border-radius: 8px; color: var(--takeoff-muted); background: transparent; font-size: 13px; }
.takeoff-rail button span { max-width: 100%; text-align: center; line-height: 1.3; white-space: nowrap; }
.takeoff-rail button .takeoff-icon { width: 23px; height: 23px; }
.takeoff-rail button:hover { color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-rail button:is(.active,[aria-current="page"],[aria-pressed="true"]) { color: var(--takeoff-accent); background: var(--ui-selected); font-weight: 650; }
.takeoff-workspace[data-workspace-view] .takeoff-rail button:focus-visible { outline-offset: -2px; }
.takeoff-rail-foot { margin-top: auto; padding-top: 20px; color: var(--takeoff-muted); text-align: center; font-size: 11px; line-height: 1.8; }
.takeoff-workarea { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--takeoff-surface); }
.takeoff-screen-heading { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 20px; min-height: 100px; padding: 20px 28px; border-bottom: 1px solid var(--takeoff-line); background: var(--takeoff-surface); }
.takeoff-screen-heading h2 { margin: 0 0 9px; color: var(--takeoff-ink); font-size: clamp(21px,1.7vw,29px); line-height: 1.25; font-weight: 650; letter-spacing: -.025em; }
.takeoff-screen-heading p { margin: 0; color: var(--takeoff-muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.takeoff-screen-heading > :last-child { min-width: 0; }
.takeoff-screen-heading .takeoff-screen-meta { flex: none; text-align: right; }
.takeoff-screen-meta strong { display: block; margin-bottom: 9px; color: var(--takeoff-accent); font-weight: 600; }
.takeoff-screen-heading-compact { gap: 16px; min-height: 50px; padding: 0 16px 0 24px; }
.takeoff-screen-heading-compact h2 { margin: 0; font-size: 15px; letter-spacing: 0; white-space: nowrap; }
.takeoff-screen-tabs { display: flex; align-items: stretch; align-self: stretch; flex: 1; gap: 16px; min-width: 0; min-height: 49px; overflow-x: auto; }
.takeoff-screen-tabs button { flex: none; min-height: 44px; padding: 0 4px; border: 0; border-bottom: 2px solid transparent; color: var(--takeoff-muted); background: transparent; font-size: 13px; white-space: nowrap; }
.takeoff-screen-tabs button:hover { color: var(--takeoff-accent); }
.takeoff-screen-tabs button:is(.active,[aria-current="page"],[aria-selected="true"]) { color: var(--takeoff-accent); border-bottom-color: var(--takeoff-accent); font-weight: 650; }
.takeoff-workspace[data-workspace-view] .takeoff-screen-tabs button:focus-visible { outline-offset: -3px; }
.takeoff-workbench-heading .takeoff-screen-tabs { flex: 0 0 auto; }
.takeoff-workbench-session { display: flex; flex: 1 1 320px; align-items: center; gap: 8px; min-width: 0; margin-inline-end: auto; color: var(--takeoff-muted); font-size: 13px; white-space: nowrap; }
.takeoff-workbench-session select { flex: 1; width: 100%; min-width: 0; max-width: 450px; min-height: 36px; padding: 5px 9px; border: 1px solid var(--ui-border-strong); border-radius: 5px; color: var(--takeoff-ink); background: var(--takeoff-surface); font-size: 13px; text-overflow: ellipsis; }
.takeoff-workspace[data-workspace-view] .takeoff-workbench-session .button { display: inline-grid; flex: none; place-items: center; width: 36px; min-height: 36px; padding: 0; }
.takeoff-screen-content { --takeoff-details-width: clamp(310px,30vw,460px); display: grid; position: relative; grid-template-columns: minmax(0,1fr) var(--takeoff-details-width); flex: 1; min-width: 0; min-height: 0; overflow: hidden; }
.takeoff-screen-content .takeoff-main { display: flex; min-width: 0; min-height: 0; }
.takeoff-screen-content .takeoff-drawing { min-height: 0; }
.takeoff-screen-content .takeoff-drawing-heading { min-height: 42px; padding: 7px 16px; background: var(--takeoff-surface-raised); }
.takeoff-screen-content .takeoff-drawing-heading h2 { font-size: 13px; }
.takeoff-screen-content .takeoff-file-action { color: var(--takeoff-muted); }
.takeoff-screen-content .takeoff-file-action:hover:not(:disabled) { color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-screen-content .takeoff-canvas-host { margin: 16px 16px 0; border: 1px solid var(--takeoff-line); background: var(--takeoff-canvas-surface); }
.takeoff-screen-content .takeoff-drawing { background: var(--takeoff-canvas-surface); }
.takeoff-screen-content #takeoff-canvas { background: var(--takeoff-canvas-surface); }
.takeoff-screen-content .takeoff-canvas-status { min-height: 46px; padding: 10px 18px; border-bottom: 0; background: var(--takeoff-canvas-surface); }
.takeoff-screen-content .takeoff-canvas-status > span:first-child { color: var(--takeoff-accent); }
.takeoff-screen-content .takeoff-side { min-height: 0; border-left: 1px solid var(--takeoff-line); background: var(--takeoff-surface); scrollbar-gutter: stable; }
.takeoff-screen-content .takeoff-side-section { padding: 24px 26px; border-bottom: 1px solid var(--takeoff-line); }
.takeoff-screen-content .takeoff-side-section:first-child { padding: 24px 26px; }
.takeoff-screen-content .takeoff-side-section:first-child > .takeoff-section-heading { min-height: auto; padding: 0 0 14px; border-bottom: 0; }
.takeoff-screen-content .takeoff-section-heading h2 { font-size: 21px; }
.takeoff-screen-content .takeoff-selected { padding-top: 24px; }
.takeoff-screen-content .takeoff-selected h3 { margin: 12px 0 20px; font-size: 25px; font-weight: 600; }
.takeoff-screen-content .takeoff-selected-label { font-size: 14px; color: var(--takeoff-muted); }
.takeoff-screen-content .takeoff-selected dl > div { padding: 13px 0; border-color: var(--takeoff-line); font-size: 13px; }
.takeoff-screen-content .takeoff-empty-copy { font-size: 13px; line-height: 1.7; }
.takeoff-screen-content .takeoff-measured-search { margin-inline: 0; border-color: var(--ui-border-strong); background: var(--takeoff-surface); }
.takeoff-screen-content .takeoff-measured-row { border-color: var(--takeoff-line); }
.takeoff-screen-content .takeoff-measured-row.selected { background: var(--ui-selected); }
.takeoff-screen-content .takeoff-measured-locate:hover:not(:disabled),.takeoff-screen-content .takeoff-measured-row.selected .takeoff-measured-locate:hover:not(:disabled) { color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-screen-content .takeoff-measured-delete { color: var(--ui-danger); }
.takeoff-screen-content .takeoff-measured-delete:hover:not(:disabled) { color: var(--ui-danger); background: var(--ui-danger-bg); }
.takeoff-workspace-panel { display: none; min-width: 0; min-height: 0; overflow: auto; background: var(--takeoff-surface); }
.takeoff-workspace[data-workspace-view="files"] .takeoff-screen-content,
.takeoff-workspace[data-workspace-view="components"] .takeoff-screen-content,
.takeoff-workspace[data-workspace-view="rebar"] .takeoff-screen-content,
.takeoff-workspace[data-workspace-view="projects"] .takeoff-screen-content,
.takeoff-workspace[data-workspace-view="drawing"][data-takeoff-drawing-details-collapsed] .takeoff-screen-content { grid-template-columns: minmax(0,1fr); }
.takeoff-workspace:is([data-workspace-view="files"],[data-workspace-view="components"],[data-workspace-view="rebar"],[data-workspace-view="projects"]) .takeoff-screen-content > :is(.takeoff-main,.takeoff-side) { display: none; }
.takeoff-workspace:is([data-workspace-view="files"],[data-workspace-view="components"],[data-workspace-view="rebar"]) .takeoff-workspace-panel { display: block; }
.takeoff-workspace[data-workspace-view="projects"] :is(.takeoff-modes,.takeoff-live-status,.takeoff-command-bar,.takeoff-alert,.takeoff-notice,.takeoff-toolbar-warning,.takeoff-footer) { display: none; }
#takeoff-project-management-host { min-width: 0; min-height: 0; overflow: auto; padding: 24px 28px; }
#p1-r3-projects { color: var(--takeoff-ink); }
#p1-r3-projects .takeoff-project-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
#p1-r3-projects :is(h2,h3) { margin: 0; overflow-wrap: anywhere; color: var(--takeoff-ink); }
#p1-r3-projects h2 { font-size: 23px; line-height: 1.3; }
#p1-r3-projects .card-title h3 { margin-top: 3px; font-size: 17px; }
#p1-r3-projects :is(.head-actions,.row-actions,.card-title) { flex-wrap: wrap; gap: 8px; }
#p1-r3-projects .r3-toolbar { margin-bottom: 16px; border-color: var(--takeoff-line); }
#p1-r3-projects :is(label,.r3-meta dt,.r3-meta dd small,.card-title small,.p5-output-info p,.p5-output-heading p) { color: var(--takeoff-muted); }
#p1-r3-projects :is(.r3-meta dd,.r3-description) { color: var(--takeoff-ink); }
#p1-r3-projects .card-title small { font-size: 12px; letter-spacing: 0; }
#p1-r3-projects .card { padding: 16px; border-color: var(--takeoff-line); background: var(--takeoff-surface); box-shadow: none; }
#p1-r3-projects .r3-description { margin-block: 12px; }
#p1-r3-projects .r3-meta .button { margin-top: 6px; white-space: normal; }
#p1-r3-projects .pill.pending { color: var(--takeoff-accent); background: var(--ui-selected); }
#p1-r3-projects .pill.off { color: var(--takeoff-muted); background: var(--takeoff-surface-raised); }
#p1-r3-projects :is(.r3-toolbar,#p5-output-filter) :is(select,input:not([type="checkbox"])) { min-width: 0; min-height: 40px; max-width: 100%; border-color: var(--ui-border-strong); color: var(--takeoff-ink); background: var(--takeoff-surface); font: inherit; }
#p1-r3-projects .button.danger { color: var(--ui-danger); border-color: var(--ui-danger); background: var(--takeoff-surface); }
#p1-r3-projects .button.danger:hover { background: var(--ui-danger-bg); }
#p1-r3-projects :is(.p2-project-entry,#p5-project-outputs,.p5-output-list article) { border-color: var(--takeoff-line); }
#p1-r3-projects .p2-project-entry p { color: var(--takeoff-muted); }
#p1-r3-projects :focus-visible { outline-color: var(--takeoff-accent); }
.takeoff-footer { display: flex; align-items: center; justify-content: space-between; flex: none; gap: 18px; min-height: 38px; padding: 9px 28px; border-top: 1px solid var(--takeoff-line); color: var(--takeoff-muted); background: var(--takeoff-surface-raised); font-size: 12px; overflow-wrap: anywhere; }
.takeoff-footer > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.takeoff-workspace[data-workspace-view] .takeoff-table { font-size: 13px; }
.takeoff-workspace[data-workspace-view] .takeoff-table th { background: var(--takeoff-surface-raised); color: var(--takeoff-muted); }
.takeoff-workspace[data-workspace-view] .takeoff-table :is(th,td) { padding: 16px; border-color: var(--takeoff-line); vertical-align: middle; }
.takeoff-workspace[data-workspace-view] .takeoff-table-locate { color: var(--takeoff-ink); font-weight: 600; }
.takeoff-workspace[data-workspace-view] .takeoff-table-locate:hover:not(:disabled) { color: var(--takeoff-accent); }
.takeoff-workspace[data-workspace-view] .takeoff-data-list > button:hover { color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-workspace[data-workspace-view] :is(.takeoff-canvas-loading,.takeoff-empty) { color: var(--takeoff-muted); background: var(--takeoff-canvas-surface); }
.takeoff-workspace[data-workspace-view] .takeoff-result-error { color: var(--ui-danger); }
.takeoff-workspace[data-workspace-view] .takeoff-answer { color: var(--takeoff-ink); font-size: 13px; }
.takeoff-workspace[data-workspace-view] .takeoff-chat-input textarea { border-color: var(--ui-border-strong); color: var(--takeoff-ink); background: var(--takeoff-surface); }
.takeoff-screen-context { flex: none; color: var(--takeoff-muted); text-align: right; font-size: 12px; }
.takeoff-screen-context strong { display: block; margin-bottom: 9px; color: var(--takeoff-accent); font-size: 14px; font-weight: 600; }
.takeoff-screen-content .takeoff-side-section > h2 { margin: 0 0 10px; font-size: 23px; font-weight: 650; letter-spacing: -.02em; }
.takeoff-screen-content .takeoff-side-section > h3 { margin: 24px 0 10px; font-size: 17px; font-weight: 600; }
.takeoff-side-actions { display: grid; gap: 12px; margin: 23px 0; }
.takeoff-side-actions .button { width: 100%; }
.takeoff-role-badge { display: inline-block; padding: 5px 10px; border-radius: 5px; color: var(--takeoff-accent); background: var(--ui-selected); font-size: 12px; }
.takeoff-selected [data-takeoff-selected-details] > .takeoff-role-badge { margin-top: 22px; }
.takeoff-selected [data-takeoff-selected-details] > p { margin: 7px 0 20px; color: var(--takeoff-muted); font-size: 13px; }
.takeoff-text-action { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0; border: 0; color: var(--takeoff-accent); background: transparent; font-size: 13px; text-align: left; text-underline-offset: 4px; }
.takeoff-text-action:hover { text-decoration: underline; }
:is(.takeoff-chat-toggle,.takeoff-drawing-details-toggle) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 34px; padding: 0 8px; border: 0; border-radius: 4px; color: var(--takeoff-accent); background: transparent; font-size: 13px; font-weight: 600; white-space: nowrap; }
.takeoff-chat-toggle:is(:hover,[aria-expanded="true"]),.takeoff-drawing-details-toggle:is(:hover,[aria-expanded="false"]) { background: var(--ui-selected); }
:is(.takeoff-chat-toggle,.takeoff-drawing-details-toggle) .takeoff-icon { width: 16px; height: 16px; }
.takeoff-drawing-details-toggle[aria-expanded="false"] .takeoff-icon path:last-child { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }
.takeoff-footer .takeoff-chat-toggle { min-height: 25px; }
.takeoff-files-workspace { display: grid; grid-template-columns: minmax(0,1fr) clamp(310px,30vw,460px); height: 100%; min-height: 0; }
.takeoff-file-library { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 20px 24px; overflow: auto; }
.takeoff-file-library h3,.takeoff-file-preview h3 { margin: 0 0 20px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.takeoff-file-library > .takeoff-section-heading { flex: none; flex-wrap: wrap; }
.takeoff-file-library > .takeoff-section-heading h3 { margin: 0; font-size: 19px; }
.takeoff-file-import-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.takeoff-workspace[data-workspace-view] .takeoff-file-library .button { min-height: 34px; padding: 5px 10px; font-size: 12px; }
.takeoff-file-import-actions .button { display: inline-flex; align-items: center; gap: 5px; }
.takeoff-file-import-actions .takeoff-icon { width: 15px; height: 15px; }
.takeoff-file-organize-heading { display: flex; align-items: center; flex: none; flex-wrap: wrap; gap: 4px 10px; margin-top: 8px; }
.takeoff-file-organize-heading .takeoff-text-action { min-height: 34px; font-size: 12px; white-space: nowrap; }
.takeoff-file-organize-heading .takeoff-icon { width: 15px; height: 15px; }
.takeoff-folder-actions { display: flex; gap: 10px; margin-inline-start: auto; }
.takeoff-file-organize-heading .takeoff-text-action:disabled,.takeoff-folder-add:disabled,.takeoff-folder-toggle:disabled { opacity: .55; cursor: default; text-decoration: none; }
.takeoff-folder-compat,.takeoff-classify-status { margin: 6px 0 0; color: var(--takeoff-muted); font-size: 12px; overflow-wrap: anywhere; }
#takeoff-auto-scope { color: var(--takeoff-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.takeoff-workspace .takeoff-library-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.takeoff-library-action .takeoff-icon,.takeoff-library-danger .takeoff-icon { flex: none; width: 15px; height: 15px; }
.takeoff-workspace[data-workspace-view] .takeoff-library-danger { color: var(--ui-danger); }
.takeoff-workspace[data-workspace-view] .takeoff-library-danger:hover:not(:disabled) { color: var(--ui-danger); background: var(--ui-danger-bg); }
.takeoff-classify-result { display: flex; align-items: baseline; flex: none; flex-wrap: wrap; gap: 0 12px; }
.takeoff-classify-result .takeoff-text-action { min-height: 30px; font-size: 12px; }
.takeoff-classify-result .takeoff-icon { width: 14px; height: 14px; }
.takeoff-classify-result ul { flex: 1 0 100%; max-height: 100px; margin: 4px 0; padding-inline-start: 19px; overflow: auto; color: var(--ui-danger); font-size: 12px; overflow-wrap: anywhere; }
.takeoff-classify-result li + li { margin-top: 3px; }
.takeoff-folder-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; flex: none; gap: 8px 10px; margin-top: 10px; padding: 12px 0; border-block: 1px solid var(--takeoff-line); }
.takeoff-project-form { grid-template-columns: minmax(0,1fr) minmax(84px,auto); }
.takeoff-project-form .takeoff-folder-form-actions { grid-column: 1/-1; }
.takeoff-folder-location { display: grid; grid-column: 1/-1; gap: 4px; margin: 0; color: var(--takeoff-muted); font-size: 12px; }
.takeoff-folder-location strong { color: var(--takeoff-ink); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.takeoff-folder-form > label { display: grid; min-width: 0; gap: 4px; color: var(--takeoff-muted); font-size: 12px; }
.takeoff-folder-form :is(input,select),.takeoff-file-bulk select { width: 100%; min-width: 0; height: 34px; padding: 4px 7px; border: 1px solid var(--ui-border-strong); border-radius: 4px; color: var(--takeoff-ink); background: var(--takeoff-surface); font-size: 12px; }
.takeoff-folder-form-actions { display: flex; gap: 6px; }
.takeoff-folder-form-error { grid-column: 1/-1; margin: 0; color: var(--ui-danger); font-size: 12px; }
.takeoff-upload-report { flex: none; margin-top: 8px; color: var(--ui-success); font-size: 12px; }
.takeoff-upload-report > summary { padding-block: 5px; cursor: pointer; }
.takeoff-upload-report ul { display: grid; gap: 4px; max-height: 135px; margin: 4px 0; padding: 0; overflow: auto; list-style: none; }
.takeoff-upload-report li { overflow-wrap: anywhere; }
.takeoff-upload-report li > span { margin-right: 8px; font-weight: 600; }
.takeoff-upload-failed { color: var(--ui-danger); }
.takeoff-workspace-search { display: flex; align-items: center; gap: 9px; min-width: 0; min-height: 42px; margin: 20px 0; padding: 0 11px; border: 1px solid var(--ui-border-strong); border-radius: 5px; color: var(--takeoff-muted); background: var(--takeoff-surface); }
.takeoff-workspace-search:focus-within { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
.takeoff-workspace-search input { width: 100%; min-width: 0; min-height: 40px; padding: 8px 0; border: 0; color: var(--takeoff-ink); background: transparent; font-size: 13px; }
.takeoff-workspace-search input::placeholder { color: var(--takeoff-muted); opacity: 1; }
.takeoff-workspace-search input:focus-visible { outline: 0; }
.takeoff-file-library > .takeoff-workspace-search { flex: none; margin: 12px 0 8px; min-height: 36px; }
.takeoff-file-library > .takeoff-workspace-search input { min-height: 34px; padding-block: 5px; }
.takeoff-file-bulk { display: flex; align-items: center; flex: none; flex-wrap: wrap; gap: 5px 8px; padding-bottom: 8px; border-bottom: 1px solid var(--takeoff-line); color: var(--takeoff-muted); font-size: 12px; }
.takeoff-file-bulk select { flex: 1 1 105px; width: auto; min-width: 0; }
.takeoff-file-bulk > p { flex-basis: 100%; margin: 0; }
.takeoff-file-check-all { display: flex; align-items: center; gap: 6px; min-height: 34px; white-space: nowrap; }
.takeoff-file-library input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--takeoff-accent); cursor: pointer; }
.takeoff-file-list { --takeoff-branch-inset: 10px; flex: 1 0 100px; min-width: 0; min-height: 100px; overflow: auto; scrollbar-gutter: stable; }
.takeoff-folder-header { position: relative; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--takeoff-line); }
.takeoff-folder-toggle { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; min-height: 39px; padding: 5px 6px; border: 0; color: var(--takeoff-ink); background: transparent; text-align: start; }
.takeoff-folder-project > .takeoff-folder-header { background: var(--takeoff-surface-raised); }
.takeoff-folder-project > .takeoff-folder-header .takeoff-folder-label { font-size: 14px; }
.takeoff-folder-toggle:hover:not(:disabled) { background: var(--ui-selected); }
.takeoff-workspace[data-workspace-view] .takeoff-folder-toggle:focus-visible { outline-offset: -2px; }
.takeoff-folder-toggle > .takeoff-icon { flex: none; width: 16px; height: 16px; color: var(--takeoff-muted); }
.takeoff-folder-toggle > .takeoff-icon:first-child { width: 13px; height: 13px; }
.takeoff-folder-toggle[aria-expanded="false"] > .takeoff-icon:first-child { transform: rotate(-90deg); }
.takeoff-folder-name { display: grid; min-width: 0; gap: 2px; overflow-wrap: anywhere; }
.takeoff-folder-label { font-size: 13px; font-weight: 600; }
.takeoff-folder-context { color: var(--takeoff-muted); font-size: 11px; }
.takeoff-folder-count { margin-inline-start: auto; color: var(--takeoff-muted); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.takeoff-folder-add { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 34px; padding: 3px 6px; border: 0; border-radius: 4px; color: var(--takeoff-accent); background: transparent; font-size: 11px; white-space: nowrap; }
.takeoff-folder-add > .takeoff-icon { width: 15px; height: 15px; }
.takeoff-folder-add:hover:not(:disabled) { background: var(--ui-selected); }
.takeoff-folder-add.takeoff-library-danger { justify-content: center; min-width: 34px; }
.takeoff-folder-add.takeoff-library-danger:focus-visible { outline-offset: -2px; }
.takeoff-folder-contents { margin-inline-start: var(--takeoff-branch-inset); padding-inline-start: var(--takeoff-branch-inset); border-inline-start: 1px solid var(--ui-border-strong); }
.takeoff-folder-contents:not([data-takeoff-folder-depth-limit]) > .takeoff-folder > .takeoff-folder-header::before { position: absolute; inset-block-start: 50%; inset-inline-start: calc(-1 * var(--takeoff-branch-inset)); width: var(--takeoff-branch-inset); border-block-start: 1px solid var(--ui-border-strong); content: ""; }
.takeoff-folder-contents[data-takeoff-folder-depth-limit] { margin-inline-start: 0; padding-inline-start: 0; border-inline-start: 0; }
.takeoff-folder-empty { margin: 0; padding: 9px 12px; color: var(--takeoff-muted); font-size: 12px; }
.takeoff-file-entry { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; align-items: center; gap: 2px; border-bottom: 1px solid var(--takeoff-line); }
.takeoff-file-entry.selected { background: var(--ui-selected); }
.takeoff-file-entry > input { justify-self: center; }
.takeoff-file-row { display: grid; grid-template-columns: 19px minmax(0,1fr) auto; align-items: center; gap: 7px; width: 100%; min-height: 56px; padding: 8px 5px; border: 0; color: var(--takeoff-ink); background: transparent; text-align: left; }
.takeoff-file-row .takeoff-icon { color: var(--takeoff-muted); }
.takeoff-file-name { display: grid; min-width: 0; gap: 3px; }
.takeoff-file-row strong { min-width: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.takeoff-file-name small { color: var(--takeoff-muted); font-size: 10px; overflow-wrap: anywhere; }
.takeoff-file-state { color: var(--takeoff-muted); font-size: 11px; white-space: nowrap; }
.takeoff-file-row:hover,.takeoff-file-row.selected { color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-file-remove { justify-content: center; gap: 4px; min-height: 38px; padding: 0 7px; border-radius: 4px; font-size: 12px; white-space: nowrap; }
.takeoff-file-remove:disabled { opacity: .55; cursor: default; text-decoration: none; }
.takeoff-workspace[data-workspace-view] .takeoff-file-remove:focus-visible { outline-offset: -2px; }
.takeoff-file-preview { position: relative; min-width: 0; min-height: 0; padding: 24px; border-left: 1px solid var(--takeoff-line); background: var(--takeoff-surface); overflow: auto; }
.takeoff-file-preview :is(iframe,img) { display: block; width: 100%; height: 310px; margin-bottom: 10px; border: 1px solid var(--takeoff-line); background: var(--takeoff-canvas-surface); object-fit: contain; }
.takeoff-file-preview > .takeoff-empty { position: static; min-height: 260px; margin: 18px 0; padding: 24px; }
.takeoff-file-preview > h3:not(:first-child) { margin-top: 23px; font-size: 17px; overflow-wrap: anywhere; }
.takeoff-file-preview dl { margin: 17px 0; }
.takeoff-file-preview dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--takeoff-line); font-size: 13px; }
.takeoff-file-preview dt { color: var(--takeoff-muted); }
.takeoff-file-preview dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.takeoff-preview-heading { flex-wrap: wrap; margin-bottom: 12px; }
.takeoff-preview-heading h3 { margin: 0; }
.takeoff-preview-heading .takeoff-library-danger { font-size: 12px; }
.takeoff-library-confirm { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid var(--takeoff-line); border-radius: 8px; color: var(--takeoff-ink); background: var(--takeoff-surface); }
.takeoff-library-confirm::backdrop { background: var(--ui-scrim); }
.takeoff-library-confirm h2 { margin: 0 0 12px; font-size: 19px; }
.takeoff-library-target { max-height: 24dvh; margin: 0 0 12px; overflow: auto; font-weight: 600; overflow-wrap: anywhere; }
ul.takeoff-library-target { padding-inline-start: 21px; }
:is(#takeoff-library-confirm-note,#takeoff-session-confirm-note) { margin: 0; color: var(--takeoff-muted); font-size: 14px; }
.takeoff-library-confirm .takeoff-result-error:not([hidden]) { margin-top: 12px; overflow-wrap: anywhere; }
.takeoff-library-confirm footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.takeoff-workspace[data-workspace-view] .button.takeoff-library-destructive { border-color: var(--ui-danger); color: var(--ui-on-accent); background: var(--ui-danger); }
.takeoff-workspace[data-workspace-view] .button.takeoff-library-destructive:hover { background: color-mix(in srgb, var(--ui-danger) 88%, black); }
.takeoff-other-sessions { flex: none; margin-top: 12px; border-top: 1px solid var(--takeoff-line); }
.takeoff-other-sessions summary { padding-block: 12px; color: var(--takeoff-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.takeoff-other-sessions ul { max-height: 180px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.takeoff-other-sessions li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 4px; border-top: 1px solid var(--takeoff-line); font-size: 13px; overflow-wrap: anywhere; }
.takeoff-other-sessions li .button { flex: none; }
.takeoff-other-sessions li small { display: block; margin-top: 3px; color: var(--takeoff-muted); font-size: 12px; }
.takeoff-filter-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0; }
.takeoff-filter-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 37px; padding: 8px 13px; border: 0; border-radius: 5px; color: var(--takeoff-muted); background: var(--takeoff-surface-raised); font-size: 12px; }
.takeoff-filter-tabs button[aria-pressed="true"] { color: var(--takeoff-accent); background: var(--ui-selected); font-weight: 600; }
.takeoff-measure-tools { display: flex; flex-wrap: wrap; gap: 7px; margin: 23px 0 17px; }
.takeoff-measure-tools button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 10px; border: 1px solid var(--takeoff-line); border-radius: 5px; color: var(--takeoff-muted); background: var(--takeoff-surface-raised); font-size: 12px; }
.takeoff-measure-tools button[aria-pressed="true"],.takeoff-measure-tools button.active { color: var(--takeoff-accent); border-color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-measure-settings .takeoff-selected { padding-top: 0; }
.takeoff-measure-name { display: grid; gap: 6px; margin: 0 0 16px; }
.takeoff-measure-name > label { color: var(--takeoff-ink); font-size: 13px; font-weight: 600; }
.takeoff-measure-name > div { display: flex; align-items: stretch; gap: 8px; }
.takeoff-measure-name input { flex: 1; width: 0; min-width: 0; min-height: 38px; padding: 6px 8px; border: 1px solid var(--ui-border-strong); border-radius: 4px; background: var(--takeoff-surface); color: var(--takeoff-ink); font-size: 14px; }
.takeoff-measure-name input:focus-visible { border-color: var(--takeoff-accent); }
.takeoff-measure-name input[aria-invalid="true"] { border-color: var(--ui-danger); }
.takeoff-measure-name button { flex: none; white-space: nowrap; }
.takeoff-measure-name > p { margin: 0; overflow-wrap: anywhere; }
.takeoff-large-count { margin: 27px 0; color: var(--takeoff-accent); font-size: 45px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.takeoff-large-count span { display: block; margin-top: 8px; color: var(--takeoff-muted); font-size: 13px; }
.takeoff-ai-counts { display: grid; gap: 0; }
.takeoff-ai-counts > button { display: grid; grid-template-columns: 21px minmax(0,1fr) auto; align-items: center; gap: 11px; min-height: 47px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--takeoff-line); color: var(--takeoff-muted); background: transparent; font-size: 13px; text-align: left; }
.takeoff-ai-counts > button strong { color: var(--takeoff-ink); font-weight: 500; }
.takeoff-page-text { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--takeoff-line); }
.takeoff-page-text h3 { margin: 0 0 10px; font-size: 16px; }
.takeoff-page-text pre { max-height: 260px; overflow: auto; color: var(--takeoff-muted); font: 12px/1.7 "Microsoft JhengHei UI","Microsoft JhengHei","Segoe UI",sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.takeoff-ai-results form { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--takeoff-line); }
.takeoff-ai-results form > label { font-weight: 600; font-size: 15px; }
.takeoff-ai-results .takeoff-chat-input { grid-template-columns: minmax(0,1fr); margin-top: 12px; }
.takeoff-ai-results .takeoff-chat-input textarea { min-height: 100px; }
.takeoff-ai-results .takeoff-chat-input .button { justify-self: end; min-width: 130px; }
.takeoff-record-list article { padding: 20px 0; border-bottom: 1px solid var(--takeoff-line); }
.takeoff-record-list article h3 { margin: 12px 0 8px; font-size: 16px; }
.takeoff-record-list article p { color: var(--takeoff-muted); font-size: 12px; }
.takeoff-chat-drawer { display: grid; position: absolute; z-index: 3; inset: 0 0 0 auto; grid-template-rows: auto minmax(0,1fr) auto; width: var(--takeoff-details-width); border-left: 1px solid var(--takeoff-line); background: var(--takeoff-surface); overflow: auto; }
.takeoff-chat-drawer > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 4px 16px; border-bottom: 1px solid var(--takeoff-line); }
.takeoff-chat-drawer > header h3 { margin: 0; font-size: 16px; }
.takeoff-chat-drawer #takeoff-chat-close { flex: none; width: 36px; min-height: 36px; }
.takeoff-chat-drawer > form { min-width: 0; padding: 12px 16px; border-top: 1px solid var(--takeoff-line); background: var(--takeoff-surface-raised); }
.takeoff-chat-drawer form > label { font-size: 13px; font-weight: 600; }
.takeoff-chat-drawer .takeoff-chat-input { grid-template-columns: minmax(0,1fr); gap: 8px; margin-top: 6px; }
.takeoff-chat-drawer textarea { min-height: 52px; max-height: 104px; }
.takeoff-chat-drawer .takeoff-chat-input .button { justify-self: end; }
.takeoff-chat-input.takeoff-instruction-composer { grid-template-columns: minmax(0,1fr); }
.takeoff-instruction-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.takeoff-instruction-actions .button { min-height: 36px; min-width: 0; padding-inline: 10px; }
.takeoff-instruction-actions .takeoff-icon { width: 16px; height: 16px; flex: none; }
.takeoff-instruction-attachments { min-width: 0; max-height: 156px; overflow: auto; overscroll-behavior: contain; }
.takeoff-instruction-attachments ul { margin: 0; padding: 0; list-style: none; }
.takeoff-instruction-attachment { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px; padding-block: 5px; border-bottom: 1px solid var(--takeoff-line); }
.takeoff-instruction-attachment > div { min-width: 0; }
.takeoff-instruction-attachment.has-preview { grid-template-columns: 96px minmax(0,1fr) auto; gap: 9px; padding-block: 7px; }
.takeoff-instruction-thumbnail { display: grid; place-items: center; width: 96px; height: 72px; padding: 3px; border: 1px solid var(--takeoff-line); border-radius: 5px; background: var(--takeoff-canvas-surface); cursor: zoom-in; overflow: hidden; }
.takeoff-instruction-thumbnail:hover { border-color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-instruction-thumbnail:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
.takeoff-instruction-thumbnail img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.takeoff-instruction-filename { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--takeoff-ink); font-size: 12px; line-height: 1.5; }
.takeoff-instruction-attachment small { display: block; color: var(--takeoff-muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.takeoff-instruction-attachment.has-error small,.takeoff-instruction-attachment-notice { color: var(--ui-danger); }
.takeoff-instruction-attachment .takeoff-file-action { width: 36px; min-height: 36px; }
.takeoff-instruction-hint,.takeoff-instruction-attachment-notice { margin-block: 6px 0; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.takeoff-instruction-preview-dialog { width: min(1000px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 1px solid var(--takeoff-line); border-radius: 8px; color: var(--takeoff-ink); background: var(--takeoff-surface); overflow: hidden; }
.takeoff-instruction-preview-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr); }
.takeoff-instruction-preview-dialog::backdrop { background: var(--ui-scrim); }
.takeoff-instruction-preview-dialog > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 12px 16px; border-bottom: 1px solid var(--takeoff-line); }
.takeoff-instruction-preview-dialog h2 { min-width: 0; margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.takeoff-instruction-preview-dialog .takeoff-file-action { flex: none; width: 44px; min-height: 44px; color: var(--takeoff-muted); }
.takeoff-instruction-preview-dialog .takeoff-file-action:hover { color: var(--takeoff-accent); background: var(--ui-selected); }
.takeoff-instruction-preview-dialog :focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
.takeoff-instruction-preview-body { display: grid; place-items: center; min-width: 0; min-height: 0; padding: 16px; overflow: auto; background: var(--takeoff-canvas-surface); }
.takeoff-instruction-preview-body img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 152px); object-fit: contain; }
.takeoff-chat-result { min-width: 0; margin-top: 12px; }
.takeoff-chat-drawer .takeoff-chat-result { margin: 0; padding: 12px 16px; overflow-wrap: anywhere; overscroll-behavior: contain; }
.takeoff-chat-drawer .takeoff-chat-result:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: -3px; }
.takeoff-saved-areas { margin-block: 14px; padding-block: 12px; border-block: 1px solid var(--takeoff-line); min-width: 0; }
.takeoff-saved-areas-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.takeoff-saved-areas-heading h3 { margin: 0; color: var(--takeoff-ink); font-size: 14px; line-height: 1.5; }
.takeoff-saved-areas-heading > span { color: var(--takeoff-muted); font-size: 12px; }
.takeoff-saved-areas-subtotal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 6px 0 10px; color: var(--takeoff-muted); font-size: 12px; line-height: 1.5; }
.takeoff-saved-areas-subtotal strong { color: var(--takeoff-ink); font-variant-numeric: tabular-nums; }
.takeoff-saved-areas ul { margin: 0; padding: 0; list-style: none; }
.takeoff-saved-areas li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 12px; padding-block: 7px; border-top: 1px solid var(--takeoff-line); font-size: 13px; line-height: 1.5; }
.takeoff-saved-area-name { min-width: 0; overflow-wrap: anywhere; }
.takeoff-saved-area-name strong { font-weight: 500; }
.takeoff-saved-area-name small { display: block; color: var(--takeoff-muted); font-size: 11px; }
.takeoff-saved-area-value { text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.takeoff-saved-area-value small { display: block; color: var(--ui-warning); font-size: 11px; }
.takeoff-saved-areas > .takeoff-muted { margin: 7px 0 0; font-size: 11px; line-height: 1.5; }
@media (min-width: 771px) {
  .takeoff-screen-content:has(> .takeoff-chat-drawer:not([hidden])) > .takeoff-side { visibility: hidden; }
}
@media (max-width: 1180px) {
  .takeoff-workspace[data-workspace-view] .takeoff-layout.takeoff-body { grid-template-columns: 78px minmax(0,1fr); }
  .takeoff-rail { padding-inline: 4px; }
  .takeoff-rail button { min-height: 74px; font-size: 12px; }
  .takeoff-screen-heading:not(.takeoff-screen-heading-compact) { min-height: 88px; padding: 17px 22px; }
  .takeoff-screen-content { --takeoff-details-width: 320px; }
  .takeoff-screen-content .takeoff-side-section,.takeoff-screen-content .takeoff-side-section:first-child { padding: 20px; }
  .takeoff-file-library,.takeoff-file-preview { padding: 22px; }
}
@media (max-width: 900px) and (min-width: 771px) {
  .takeoff-screen-content { --takeoff-details-width: 286px; }
  .takeoff-screen-content .takeoff-side-section,.takeoff-screen-content .takeoff-side-section:first-child { padding: 17px; }
  .takeoff-screen-heading .takeoff-screen-meta { max-width: 30%; }
}
@media (max-width: 770px) {
  .takeoff-workspace[data-workspace-view] { min-height: 100dvh; }
  .takeoff-workspace[data-workspace-view] .takeoff-layout.takeoff-body { display: flex; flex-direction: column; flex: 1; }
  .takeoff-rail { flex-direction: row; gap: 4px; padding: 5px 8px; border-right: 0; border-bottom: 1px solid var(--takeoff-line); overflow-x: auto; }
  .takeoff-rail button { flex: 1; min-width: 55px; min-height: 58px; gap: 4px; padding: 6px 4px; font-size: 12px; }
  .takeoff-rail button span { white-space: normal; text-wrap: balance; }
  .takeoff-rail button .takeoff-icon { width: 19px; height: 19px; }
  .takeoff-rail-foot { display: none; }
  .takeoff-workarea { overflow: visible; }
  .takeoff-screen-heading:not(.takeoff-screen-heading-compact) { min-height: 86px; padding: 17px 16px; gap: 10px; }
  .takeoff-screen-heading:not(.takeoff-screen-heading-compact) h2 { font-size: 23px; }
  .takeoff-screen-heading p { font-size: 12px; }
  .takeoff-screen-heading .takeoff-screen-meta { display: none; }
  .takeoff-screen-context { display: none; }
  .takeoff-screen-heading-compact { gap: 8px; min-height: 48px; padding-inline: 12px; }
  .takeoff-screen-tabs { min-height: 47px; gap: 8px; }
  .takeoff-workbench-heading { flex-wrap: wrap; row-gap: 0; }
  .takeoff-workbench-heading .takeoff-screen-tabs { flex: 1 1 auto; }
  .takeoff-workbench-session { order: 1; flex: 1 0 100%; margin-block-end: 8px; }
  .takeoff-workbench-session select { min-height: 44px; font-size: 16px; }
  .takeoff-workspace[data-workspace-view] .takeoff-workbench-session .button { width: 44px; min-height: 44px; }
  .takeoff-chat-toggle, .takeoff-footer .takeoff-chat-toggle, .takeoff-drawing-details-toggle { min-height: 44px; }
  .takeoff-screen-content { display: flex; flex-direction: column; flex: none; overflow: visible; }
  .takeoff-screen-content .takeoff-main { display: flex; flex: none; }
  .takeoff-screen-content .takeoff-drawing { height: 54dvh; min-height: 330px; }
  .takeoff-screen-content .takeoff-canvas-host { margin: 10px 10px 0; }
  .takeoff-screen-content .takeoff-side { max-height: none; overflow: visible; border-left: 0; border-top: 1px solid var(--takeoff-line); }
  .takeoff-screen-content .takeoff-side-section,.takeoff-screen-content .takeoff-side-section:first-child { padding: 22px 18px; }
  .takeoff-screen-content .takeoff-selected h3 { font-size: 24px; }
  .takeoff-screen-content .takeoff-side-section:first-child > .takeoff-section-heading { min-height: 0; }
  .takeoff-workspace-panel { overflow: visible; }
  #takeoff-project-management-host { padding: 18px 16px 24px; overflow: visible; }
  #p1-r3-projects :is(.r3-toolbar,#p5-output-filter) :is(select,input:not([type="checkbox"])) { min-height: 44px; font-size: 16px; }
  .takeoff-files-workspace { grid-template-columns: minmax(0,1fr); height: auto; min-height: 100%; }
  .takeoff-file-library,.takeoff-file-preview { padding: 23px 18px; }
  .takeoff-folder-form :is(input,select) { min-height: 44px; font-size: 16px; }
  .takeoff-workspace[data-workspace-view] .takeoff-file-library :is(#takeoff-new-project,.takeoff-folder-form-actions .button) { min-height: 44px; }
  .takeoff-file-list { --takeoff-branch-inset: 6px; }
  .takeoff-workspace[data-workspace-view] .takeoff-file-library .takeoff-library-action,
  .takeoff-folder-add,.takeoff-file-remove { min-height: 44px; }
  .takeoff-folder-add.takeoff-library-danger { min-width: 44px; }
  .takeoff-file-preview { border-left: 0; border-top: 1px solid var(--takeoff-line); }
  .takeoff-file-row { grid-template-columns: 19px minmax(0,1fr); }
  .takeoff-file-row > .takeoff-file-state { grid-column: 2; }
  .takeoff-other-sessions summary,.takeoff-workspace[data-workspace-view] .takeoff-other-sessions .button { min-height: 44px; }
  .takeoff-workspace-search input { min-height: 44px; font-size: 16px; }
  .takeoff-workspace-search { min-height: 46px; }
  .takeoff-filter-tabs button,.takeoff-measure-tools button { min-height: 44px; }
  .takeoff-chat-drawer { position: fixed; inset: auto 0 0; width: 100%; height: min(48dvh, 420px); border-top: 1px solid var(--takeoff-line); border-left: 0; }
  .takeoff-chat-drawer #takeoff-chat-close { width: 44px; min-height: 44px; }
  .takeoff-chat-drawer > form { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .takeoff-chat-drawer textarea { max-height: min(104px, 22dvh); font-size: 16px; }
  .takeoff-instruction-actions .button,.takeoff-instruction-attachment .takeoff-file-action { min-height: 44px; }
  .takeoff-instruction-attachment .takeoff-file-action { width: 44px; }
  .takeoff-instruction-attachments { max-height: 112px; }
  .takeoff-footer { min-height: 44px; padding: 10px 16px; font-size: 11px; }
  .takeoff-workspace[data-workspace-view] .button { min-height: 44px; }
}
@media (max-width: 480px) {
  .takeoff-drawing-details-toggle { min-width: 44px; }
  .takeoff-drawing-details-toggle > span { display: none; }
}
@media (max-width: 460px) {
  .takeoff-screen-content .takeoff-drawing-heading { padding-inline: 12px; }
  .takeoff-screen-content .takeoff-rotate-action { min-width: 44px; }
  .takeoff-screen-content .takeoff-rotate-action > span { display: none; }
}
@media (max-width: 400px) {
  .takeoff-folder-add { justify-content: center; min-width: 44px; }
  .takeoff-folder-add:not(.takeoff-library-danger) > span { display: none; }
}
@media (max-width: 360px) {
  .takeoff-workspace[data-workspace-view="drawing"] .takeoff-screen-heading-compact { gap: 4px; padding-inline: 8px; }
  .takeoff-workspace[data-workspace-view="drawing"] .takeoff-screen-tabs { gap: 4px; }
  .takeoff-workspace[data-workspace-view="drawing"] .takeoff-screen-tabs button { padding-inline: 2px; }
}
@media (prefers-reduced-motion: no-preference) {
  .takeoff-workspace[data-workspace-view] :is(.takeoff-rail button,.button,.takeoff-screen-tabs button) { transition: color 120ms ease-out,background-color 120ms ease-out,border-color 120ms ease-out; }
}
