/* CUTWORX Precision UI v1. Presentation only; drawing and export geometry stay independent. */
:root {
  --bg: #0c1118;
  --surface: #151d27;
  --surface-raised: #1e2935;
  --surface-inset: #101821;
  --border: #3c4d5e;
  --border-soft: #2a3745;
  --text: #f1f5f7;
  --muted: #b4c1ce;
  --subtle: #94a7b9;
  --accent: #ffac77;
  --accent-strong: #ff914d;
  --accent-wash: #35261f;
  --precision-cyan: #72cfda;
  --radius: 10px;
}
body { font-size: 13px; }
button { border-radius: 7px; }
button:disabled { opacity: .48; }
button.secondary { background: #1b2733; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline-color: #ffd0b0; }
.precision-icon { width: 24px; height: 24px; }
.app-header { height: 68px; background: #101720; border-bottom-color: #2c3946; gap: 24px; }
.identity img { width: 36px; height: 36px; }
.brand { letter-spacing: .045em; font-size: 21px; }
.brand > span { color: #aab9c8; }
.product-heading h1 { font-size: 17px; }
.build-tag { color: #dfbc9f; border-color: #604633; background: #2c231e; font-size: 10px; }
.header-actions { gap: 6px; }
.header-actions button { font-size: 12px; min-height: 40px; }
.header-actions .asset-catalog-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border: 1px solid #475b6d; border-radius: 7px; padding: 7px 11px; color: #dae6ec; font-size: 11px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.asset-catalog-link:hover { background: #22323e; border-color: #72cfda; }
.asset-catalog-link .precision-icon { width: 24px; height: 24px; }
.module-nav { height: 57px; padding: 7px 24px; background: #131c26; border-bottom: 1px solid #354351; align-items: center; }
.module-tabs { gap: 8px; align-self: stretch; }
.module-tabs > button { min-height: 42px; padding: 8px 18px; border: 1px solid transparent; border-radius: 7px; color: #b9c7d4; gap: 10px; font-size: 13px; }
.module-tabs > button .icon { width: 24px; height: 24px; }
.module-tabs > button[aria-selected=true] { background: #33271f; border-color: #90603d; color: #ffd0ad; box-shadow: inset 3px 0 #ff914d; }
.module-tabs > button:hover { background: #25323f; }
.module-tabs > #cadTab[aria-selected=true] { background: #1c3038; border-color: #497984; color: #b3eef2; box-shadow: inset 3px 0 #72cfda; }
.module-note { display: flex; align-items: center; gap: 8px; color: #a4b4c4; font-size: 11px; }
.module-note .icon { width: 17px; height: 17px; color: #72cfda; }
.session-strip { height: 34px; background: #0f171f; padding-inline: 25px; border-bottom-color: #283440; font-size: 11px; }
.session-file #sessionState { color: #a9bccc; }
.session-file .icon { color: #9eb3c4; }
#cutpathPanel .studio-layout { height: calc(100dvh - 159px); min-height: 650px; grid-template-columns: 316px minmax(0,1fr); }
.controls { background: #151e28; border-right-color: #34434f; }
.controls-heading { padding: 19px 21px 13px; }
.controls-heading h2 { font-size: 22px; letter-spacing: -.035em; }
.controls-heading .eyebrow { color: #a7bbc9; font-size: 10px; }
.small-mark { width: 39px; height: 39px; border-color: #765136; border-radius: 8px; }
.small-mark .icon { width: 27px; height: 27px; }
.workflow-nav { padding: 0 20px 16px; gap: 4px; }
.workflow-nav a { font-size: 11px; padding: 7px 9px; border: 1px solid #354451; border-radius: 5px; background: #111a23; }
.workflow-nav a[aria-current=step] { background: #35271f; border-color: #a5714c; color: #ffd0af; }
.control-scroll { scrollbar-color: #567183 #111a23; scroll-padding: 14px; }
.control-section { padding: 19px 21px; border-top-color: #30404e; }
.section-heading { margin-bottom: 12px; }
.section-heading h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; }
.section-heading h3 .icon { width: 24px; height: 24px; color: #e1e9ed; }
.micro-badge { font-size: 10px; padding: 3px 7px; color: #b0c2cf; border-color: #4a5b68; }
.micro-badge.accent { color: #ffc19b; border-color: #865b3d; }
.upload { min-height: 79px; background: #1c2934; border-style: solid; border-color: #775640; box-shadow: inset 3px 0 #ff914d; padding: 15px; }
.upload strong { font-size: 14px; }
.upload small { font-size: 11px; color: #b8c5cf; line-height: 1.45; }
.upload > .icon:first-child { width: 27px; height: 27px; }
.supported { font-size: 9px; color: #aabbca; gap: 8px; flex-wrap: wrap; }
.supported .file-limit { font-size: 9px; color: #a7bac9; }
.sample-link { font-size: 11px !important; min-height: 32px !important; color: #a4d9df !important; }
.sample-link .icon { width: 19px; height: 19px; }
.has-image .sample-link { font-size: 11px !important; }
label { font-size: 11px; color: #b6c7d4; line-height: 1.5; }
input:not([type=checkbox],[type=range],[type=file]), select { min-height: 40px; font-size: 13px; border-color: #4b6173; background: #101923; }
input:disabled, select:disabled { opacity: .62; }
.unit { font-size: 10px; color: #b0c2cf; }
.hint, .source-info, .method-description { font-size: 11px; line-height: 1.65; color: #b3c1ce; }
.height-readout > span { font-size: 10px; }
.height-readout strong { font-size: 18px; }
.height-readout small { font-size: 11px; }
.check { font-size: 11px; gap: 9px; min-height: 30px; }
.check input { width: 17px; height: 17px; }
.advanced-details { margin-top: 12px; border-color: #30404e; }
.advanced-details summary { min-height: 42px; font-size: 11px; line-height: 1.5; padding: 11px 0 5px; }
.advanced-details summary > .icon:first-child { width: 21px; height: 21px; }
.advanced-details summary > .icon:last-child { width: 11px; height: 11px; }
.details-body .hint, .control-section > .hint:last-child { font-size: 10.5px; line-height: 1.65; }
.details-body .full { font-size: 11px; min-height: 38px; }
.method-symbol { width: 50px; height: 60px; border-color: #80553a; }
.method-symbol .icon { width: 31px; height: 31px; }
.method-select select { font-size: 13px; }
.method-description { margin: 10px 0 14px; min-height: 0; }
.topology-check { font-size: 11px; color: #e0bd9f; }
.export-pair button { min-height: 68px; padding: 12px 10px; background: #1b2b37; border-color: #526879; }
.export-pair button span strong { font-size: 14px; }
.export-pair button span small { font-size: 10px; color: #bdcdd8; }
.export-pair .icon { width: 23px; height: 23px; }
.export-pair .icon:last-child { width: 13px; height: 13px; }
.generate-dock { padding: 15px 20px 12px; border-top-color: #52606a; background: #17222c; }
.generate-dock > button:first-child { min-height: 48px; font-size: 13px; background: #ff914d; color: #23170e; }
.dock-note { font-size: 10px; color: #b2c2cd; }
.workspace { padding: 20px 23px 17px; background: #0f1720; gap: 12px; }
.workspace-heading h2 { font-size: 15px; }
.workspace-heading p { color: #aec2d1; font-size: 11px; }
.actions .icon-button, .actions .compact { min-height: 40px; }
.actions .icon { width: 19px; height: 19px; }
.canvas-wrap { border-color: #4b6274; background: #e6eaf0; box-shadow: 0 12px 30px #03090e33; }
.canvas-topline { padding: 14px 17px; }
.canvas-caption { font-size: 10px; letter-spacing: .1em; }
.canvas-unit { font-size: 10px; }
body:not(.has-image) .canvas-topline { color: #a1bbcb; }
body:not(.has-image) .canvas-unit { background: #182a35; color: #c5d6df; border-color: #4b6477; }
/* Import prompts share typography; the Cut-Path artwork has its own bounded layout. */
.empty-state { padding: 48px 24px 36px; text-align: center; color: #eff4f7; background: #111d28; }
.workspace-start { width: min(100%,380px); margin: auto; }
.empty-state .workspace-start h3 { color: #f0f5f8; font-size: 24px; line-height: 1.25; letter-spacing: -.025em; font-weight: 600; margin: 0; opacity: 1; animation: none; transform: none; }
.workspace-start > p { color: #b9cad6; font-size: 12px; line-height: 1.7; margin: 12px 0 20px; }
.empty-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; opacity: 1; animation: none !important; transform: none; }
.empty-actions > button:first-child { min-height: 43px; font-size: 12px; padding: 12px 15px; box-shadow: none; background: #ff914d; }
.empty-actions > .empty-sample { font-size: 11px; color: #d2e3ed; min-height: 43px; }
.empty-actions > .empty-sample:hover { color: #ffc69f; }
.workspace-start .empty-footnote { display: block; margin: 16px 0 0; color: #a3b8c9; font-size: 10px; line-height: 1.6; }
#empty { padding: 36px 24px 28px; }
#empty .workspace-start { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(230px,1fr); align-items: center; gap: 18px; width: min(100%,780px); height: 100%; max-height: 220px; min-height: 0; margin: 0; }
#empty .workspace-art { width: 100%; height: 100%; min-width: 0; min-height: 0; pointer-events: none; user-select: none; }
#empty .workspace-art picture, #empty .workspace-art img { display: block; width: 100%; height: 100%; min-height: 0; }
#empty .workspace-art img { object-fit: contain; object-position: center; }
#empty .workspace-start-copy { min-width: 0; text-align: left; }
#empty .workspace-start h3 { font-size: clamp(20px,1.6vw,25px); }
#empty .workspace-start-copy > p { color: #b9cad6; font-size: 12px; line-height: 1.7; margin: 10px 0 16px; }
#empty .empty-actions { justify-content: flex-start; }
#empty .empty-footnote { margin-top: 12px; }
.timeline { background: #17232d; border-color: #344957; padding: 8px 12px; min-height: 44px; }
.timeline label { color: #c2d4e1; font-size: 11px; }
.timeline #frameValue { color: #a9bece; font-size: 10px; }
.timeline #play { font-size: 11px; }
.inspector { background: #17232e; border-color: #3b5060; padding: 13px 15px; }
.inspector-heading h3 { font-size: 12px; color: #c9dbe5; }
.inspector-heading .eyebrow { color: #ffc398; font-size: 9px; }
.editbar label { font-size: 11px; }
.editbar input, .editbar select { min-height: 38px; }
.editbar button, #smooth { font-size: 11px; }
.edithelp { color: #aebfce; font-size: 10px; line-height: 1.65; }
.status-panel { background: #172b25; border-color: #3b6153; padding: 10px 13px; }
#status { font-size: 11px; color: #d7eae1; }
.status-panel[data-error=true] { background: #382920; border-color: #9b6443; }
.status-panel[data-error=true] #status { color: #ffd0b0; }

/* CAD retains its own drawing, edit, scale and export states. */
.cad-panel { --cad-teal: #8fd9db; padding: 20px 25px 28px; }
.cad-heading { margin-bottom: 16px; }
.cad-heading h2 { font-size: 27px; letter-spacing: -.035em; }
.cad-heading .eyebrow { color: #94ced5; font-size: 10px; }
.cad-heading p { font-size: 12px; color: #b5c7d4; }
.cad-file-actions button { font-size: 12px; min-height: 42px; }
.cad-source-bar { min-height: 41px; border-radius: 8px; background: #17232e; border-color: #3a5060; font-size: 11px; }
.cad-source-bar #cadSourceSummary { color: #acc2d1; }
.cad-privacy { font-size: 10px; color: #b0c5d1; }
.cad-layout { grid-template-columns: minmax(0,1fr) 332px; gap: 20px; padding-top: 17px; }
.cad-toolbar { min-height: 42px; }
.cad-toolbar h3 { font-size: 14px; }
.cad-toolbar > div > span { color: #b0c9d7; font-size: 11px; }
.cad-view-actions button { min-height: 38px; font-size: 11px; }
.cad-view-actions .icon-button { width: 38px; }
.cad-view-actions .icon { width: 20px; height: 20px; }
.cad-canvas { height: clamp(400px,calc(100dvh - 342px),850px); border-color: #506b80; background-color: #11202b; background-image: linear-gradient(#789bb908 1px,transparent 1px),linear-gradient(90deg,#789bb908 1px,transparent 1px); background-size: 32px 32px; }
.cad-canvas-top { color: #abc3d4; font-size: 10px; letter-spacing: .08em; }
.cad-canvas-top > span:last-child { font-size: 10px; border-color: #517087; color: #cce3ec; }
.cad-view-bottom #cadCursor { font-size: 11px; color: #b3cfdf; }
.cad-zoom { border-color: #5b798d; }
.cad-zoom button { width: 34px; min-height: 34px; }
.cad-zoom output { font-size: 11px; }
.cad-empty { padding: 48px 24px; background: #12212d; }
.cad-empty .eyebrow { color: #93d2da; font-size: 10px; }
.cad-empty h3 { color: #edf5f9; font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; margin: 0; opacity: 1; animation: none; }
.cad-empty p { color: #bdd0de; font-size: 12px; line-height: 1.7; margin: 12px 0 18px; }
.cad-empty-actions { justify-content: center; flex-wrap: wrap; }
.cad-empty-actions button { font-size: 12px; min-height: 43px; }
.cad-empty-note { display: block; font-size: 10px; color: #a8c0d1; margin-top: 16px; }
.cad-canvas-help { align-items: center; }
.cad-canvas-help > span { font-size: 10px; color: #adc4d3; line-height: 1.55; }
.cad-canvas-help > button { font-size: 11px; color: #c9e3ed; }
.cad-inspector { background: #17232e; border-color: #3c5465; padding: 17px; }
.cad-section-head h3 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cad-section-head h3 .icon { width: 25px; height: 25px; }
.cad-section-head .eyebrow { font-size: 9px; color: #91cbd2; }
.cad-inspector label { font-size: 11px; }
.cad-coordinate-grid > div { background: #10202b; border-color: #3d5b70; }
.cad-coordinate-grid dt { font-size: 10px; color: #b0c5d3; }
.cad-coordinate-grid dd { font-size: 13px; }
.cad-entity-details, .cad-entity-details .cad-muted { font-size: 11px; }
.cad-entity-details .cad-small-note { font-size: 11px; }
.cad-pill { color: #c8dfeb; border-color: #5c788c; font-size: 10px; padding: 4px 7px; }
.cad-sidebar { background: #162430; border-color: #3c5668; border-radius: 9px; }
.cad-side-section { padding: 17px; }
.cad-side-section + .cad-side-section { border-color: #3c5364; }
.cad-side-section label { font-size: 11px; }
.cad-small-note, .cad-layer-list .cad-muted { font-size: 11px; line-height: 1.65; color: #b2c9d8; }
.cad-layer-list { margin-top: 12px; max-height: 176px; }
.cad-layer-row { min-height: 35px; font-size: 12px; color: #d2e1eb; }
.cad-layer-row input { width: 17px; height: 17px; }
.cad-layer-row > small { color: #abc2d3; font-size: 11px; }
.cad-export-summary { color: #c3d9e5; font-size: 11px; }
.cad-scale-readout { font-size: 11px; background: #142c29; border-color: #3e665b; color: #d0e9df; padding: 11px; }
.cad-export-buttons { gap: 9px; }
.cad-export-button { min-height: 62px; border-color: #658499; background: #213a48; }
.cad-export-button strong { font-size: 15px; }
.cad-export-button small { font-size: 11px; color: #bfd8e7; }
.cad-side-details { border-color: #3c5364; }
.cad-side-details summary { min-height: 49px; padding: 13px 17px; font-size: 11px; color: #c4d9e6; }
.cad-count { font-size: 10px; }
.cad-guide p { font-size: 11px; line-height: 1.7; }
.cad-status { font-size: 11px; line-height: 1.65; }
.cad-muted { color: #b0c8d8; }
@media (min-width: 921px) {
  .cad-sidebar { position: static; max-height: none; min-height: 0; overflow: visible; }
  .cad-side-details > .cad-detail-body { max-height: none; overflow: visible; }
}
@media (min-width: 1600px) {
  #cutpathPanel .studio-layout { grid-template-columns: 338px minmax(0,1fr); }
  .control-section { padding-inline: 24px; }
}
@media (min-width: 921px) and (max-width: 1180px) {
  #cutpathPanel .studio-layout { grid-template-columns: 292px minmax(0,1fr); }
  .app-header { gap: 18px; padding-inline: 18px; }
  .header-actions .asset-catalog-link { width: 38px; padding: 6px; }
  .asset-catalog-link span { display: none; }
  .workspace { padding-inline: 16px; }
  .empty-state { padding: 37px 22px 20px; }
  .cad-layout { grid-template-columns: minmax(0,1fr) 304px; gap: 16px; }
}
@media (min-width: 921px) and (max-height: 840px) {
  #cutpathPanel .studio-layout { min-height: 605px; }
  .workspace { gap: 9px; padding-top: 15px; }
  .empty-state { padding-top: 32px; padding-bottom: 16px; }
  .inspector { padding: 10px 13px; }
}
@media (max-width: 920px) {
  .app-header { height: 65px; padding: 0 16px; gap: 14px; }
  .brand { font-size: 18px; }
  .identity img { width: 33px; height: 33px; }
  .product-heading h1 { font-size: 14px; }
  .header-actions button { width: 37px; min-height: 38px; }
  .header-actions .asset-catalog-link { width: 37px; height: 38px; padding: 5px; }
  .asset-catalog-link span { display: none; }
  .module-nav { height: 56px; padding: 7px 15px; }
  .module-note { font-size: 10px; }
  .module-tabs > button { min-height: 41px; font-size: 12px; padding: 7px 13px; }
  #cutpathPanel .studio-layout { height: auto; min-height: 0; display: flex; grid-template-columns: 1fr; }
  .workspace { padding: 17px 16px; gap: 11px; }
  .canvas-wrap { height: 420px; }
  .control-scroll { overflow: visible; }
  .controls-heading { padding: 18px 22px 13px; }
  .controls-heading h2 { font-size: 22px; }
  .workflow-nav { justify-content: flex-start; gap: 9px; padding-inline: 22px; }
  .workflow-nav a { padding: 8px 14px; font-size: 12px; }
  .control-section { padding: 20px 22px; }
  .generate-dock { padding: 14px 22px; }
  .cad-panel { padding: 19px 16px 25px; }
  .cad-layout { display: flex; }
  .cad-source-bar { flex-wrap: wrap; }
  .cad-source-bar #cadSourceSummary { font-size: 10px; }
  .cad-canvas { height: 450px; }
  .cad-heading p { font-size: 11px; }
  .cad-file-actions button { font-size: 11px; }
  .cad-sidebar { max-height: none; width: 100%; }
  .cad-side-details > .cad-detail-body { max-height: none; overflow: visible; }
  .cad-side-section { padding: 17px; }
  .cad-canvas-help > span { font-size: 10px; }
}
@media (max-width: 600px) {
  body { padding-bottom: 86px; }
  .app-header { height: 65px; padding: 0 12px; gap: 8px; }
  .identity { gap: 7px; }
  .identity img { width: 30px; height: 30px; }
  .brand { font-size: 17px; }
  .brand > span { font-size: 7px; letter-spacing: .12em; }
  .header-actions { gap: 2px; }
  .header-actions button { width: 32px; min-height: 39px; padding: 7px; }
  .header-actions .icon { width: 17px; height: 17px; }
  .header-actions .asset-catalog-link { width: 33px; padding: 4px; min-height: 39px; }
  .asset-catalog-link .precision-icon { width: 23px; height: 23px; }
  .module-nav { height: 57px; padding: 7px 11px; }
  .module-tabs { gap: 7px; }
  .module-tabs > button { min-height: 42px; font-size: 12px; gap: 7px; padding: 8px; }
  .module-tabs .icon { width: 22px; height: 22px; }
  .module-note { display: none; }
  .session-strip { height: 34px; padding: 0 13px; font-size: 10px; gap: 8px; }
  .session-file #sessionState { font-size: 9px; }
  .session-file { gap: 6px; }
  #sessionName { max-width: 34vw; }
  .workspace { padding: 13px 11px; gap: 10px; }
  .workspace-heading h2 { font-size: 12px; }
  .workspace-heading p { font-size: 10px; line-height: 1.5; }
  .workspace-toolbar { min-height: 42px; gap: 6px; align-items: center; }
  .workspace-heading { gap: 7px; }
  .canvas-signal { margin-top: 5px; }
  .actions { gap: 3px; }
  .actions .icon-button, .actions .compact { min-height: 34px; width: 31px; padding: 6px; }
  .actions .icon { width: 17px; height: 17px; }
  .canvas-wrap { height: 350px; min-height: 0; border-radius: 9px; }
  .has-image .canvas-wrap { height: 370px; }
  .canvas-topline { padding: 12px; }
  .canvas-caption { font-size: 8px; }
  .canvas-unit { font-size: 9px; }
  .empty-state { padding: 43px 18px 32px; }
  .empty-state .workspace-start h3 { font-size: 22px; }
  .workspace-start > p { font-size: 11px; margin: 12px 0 18px; }
  .workspace-start .empty-footnote { font-size: 9px; }
  .empty-actions { justify-content: center; gap: 12px; }
  .empty-actions > button:first-child { font-size: 11px; padding: 11px 13px; min-height: 42px; }
  .empty-actions > .empty-sample { font-size: 11px; min-height: 42px; }
  body:not(.has-image) #drop { height: 430px; min-height: 430px; }
  #empty { padding: 38px 14px 28px; }
  #empty .workspace-start { grid-template-columns: minmax(0,1fr); gap: 6px; height: auto; max-height: none; }
  #empty .workspace-art { height: 150px; }
  #empty .workspace-start-copy { text-align: center; }
  #empty .workspace-start h3 { font-size: 22px; }
  #empty .workspace-start-copy > p { font-size: 11px; margin: 10px 0 14px; }
  #empty .empty-actions { justify-content: center; }
  .timeline { min-height: 43px; padding: 7px 9px; gap: 8px; }
  .timeline label { font-size: 10px; }
  .timeline #frameValue { font-size: 9px; min-width: 61px; }
  .timeline #play { font-size: 10px; min-height: 31px; }
  .inspector { padding: 12px; }
  .inspector-heading h3 { font-size: 11px; }
  .inspector-heading .eyebrow { font-size: 9px; }
  .inspector-heading button { font-size: 11px; min-height: 35px; }
  .editbar input, .editbar select { font-size: 16px; min-height: 42px; }
  .editbar #apply, .editbar #pin { min-height: 40px; }
  .edithelp { font-size: 10px; }
  #status { font-size: 11px; line-height: 1.55; }
  .controls-heading { padding: 17px 18px 12px; }
  .controls-heading h2 { font-size: 22px; }
  .controls-heading .eyebrow { font-size: 9px; }
  .workflow-nav { padding: 0 17px 15px; justify-content: space-between; gap: 5px; }
  .workflow-nav a { padding: 9px 12px; font-size: 12px; }
  .control-section, #export-section { padding: 20px 18px; }
  .section-heading h3 { font-size: 14px; }
  .control-section input:not([type=checkbox],[type=range],[type=file]), .control-section select { min-height: 44px; font-size: 16px; }
  .supported, .supported .file-limit { font-size: 10px; }
  .source-info { font-size: 12px; }
  label, .check, .advanced-details summary, .method-description { font-size: 12px; }
  .advanced-details summary { min-height: 46px; }
  .advanced-details summary > .icon:first-child { width: 23px; height: 23px; }
  .check { min-height: 35px; }
  .check input { width: 19px; height: 19px; }
  .control-section > .hint:last-child, .details-body .hint { font-size: 11px; }
  .generate-dock { padding: 13px 16px max(13px,env(safe-area-inset-bottom)); }
  .generate-dock > button:first-child { min-height: 47px; font-size: 14px; }
  .cad-panel { padding: 17px 11px 22px; }
  .cad-heading { gap: 14px; }
  .cad-heading .eyebrow { font-size: 9px; }
  .cad-heading h2 { font-size: 26px; }
  .cad-heading p { font-size: 12px; line-height: 1.65; }
  .cad-file-actions { gap: 6px; }
  .cad-file-actions button { min-height: 44px; padding: 9px 6px; font-size: 11px; }
  .cad-source-bar { padding: 10px; gap: 7px; }
  .cad-source-bar strong { font-size: 11px; }
  .cad-source-bar #cadSourceSummary { font-size: 10px; }
  .cad-privacy { font-size: 10px; max-width: none; text-align: left; }
  .cad-layout { padding-top: 14px; }
  .cad-toolbar { flex-wrap: wrap; gap: 9px; }
  .cad-toolbar > div:first-child { flex: 1 0 100%; }
  .cad-toolbar h3 { font-size: 13px; }
  .cad-toolbar > div > span { max-width: none; font-size: 11px; }
  .cad-view-actions { width: 100%; justify-content: flex-end; gap: 6px; }
  .cad-view-actions button { min-height: 40px; }
  .cad-view-actions .cad-previous { margin-right: auto; width: auto; padding-inline: 10px; font-size: 11px; }
  .cad-previous span { display: inline; }
  .cad-view-actions .icon-button { width: 39px; }
  .cad-view-actions #cadFit { font-size: 12px; }
  .cad-view-actions #cadFit .icon { display: inline; }
  .cad-canvas { height: 350px; }
  .cad-panel[data-loaded=true] .cad-canvas { height: 350px; }
  .cad-canvas-top { top: 12px; left: 12px; right: 12px; font-size: 8px; gap: 8px; }
  .cad-canvas-top > span:last-child { font-size: 9px; }
  .cad-empty { padding: 36px 16px 48px; }
  .cad-empty .eyebrow { font-size: 9px; }
  .cad-empty h3 { font-size: 22px; line-height: 1.25; margin: 0; }
  .cad-empty p { font-size: 11px; line-height: 1.6; margin: 11px 0 15px; }
  .cad-empty-actions { gap: 9px; }
  .cad-empty-actions button { font-size: 11px; min-height: 41px; padding: 10px 12px; }
  .cad-empty-note { font-size: 9px; margin-top: 10px; }
  .cad-canvas-help { flex-wrap: wrap; align-items: flex-start; gap: 5px; }
  .cad-canvas-help > span { font-size: 10px; max-width: none; width: 100%; }
  .cad-canvas-help > button { font-size: 11px; max-width: none; }
  .cad-inspector { padding: 15px; }
  .cad-section-head h3 { font-size: 14px; }
  .cad-section-head .eyebrow { font-size: 9px; }
  .cad-section-head h3 .icon { width: 24px; height: 24px; }
  .cad-inspector label, .cad-side-section label { font-size: 12px; }
  .cad-inspector input, .cad-inspector select, .cad-sidebar input:not([type=checkbox]), .cad-sidebar select { font-size: 16px; min-height: 44px; }
  .cad-small-note, .cad-entity-details, .cad-guide p, .cad-layer-list .cad-muted { font-size: 11px; }
  .cad-layer-row { min-height: 40px; font-size: 12px; }
  .cad-layer-row input { width: 18px; height: 18px; }
  .cad-side-section { padding: 17px; }
  .cad-side-details summary { font-size: 12px; min-height: 50px; }
  .cad-status { font-size: 11px; }
  .focus-mode .canvas-wrap { height: calc(100dvh - 215px); min-height: 360px; }
}
@media (max-width: 360px) {
  .app-header { padding-inline: 9px; gap: 5px; }
  .identity img { width: 26px; height: 26px; }
  .brand { font-size: 15px; }
  .brand > span { font-size: 6px; }
  .header-actions { gap: 1px; }
  .header-actions button { width: 28px; padding: 5px; }
  .header-actions .asset-catalog-link { width: 28px; padding: 3px; }
  .module-tabs > button { font-size: 11px; padding-inline: 7px; }
  .module-tabs { gap: 5px; }
  .module-tabs .icon { width: 20px; height: 20px; }
  .workspace-heading p { max-width: 130px; font-size: 9px; }
  .actions .icon-button, .actions .compact { width: 28px; }
  .empty-state { padding-inline: 13px; }
  .empty-actions { gap: 9px; }
  .empty-actions > button:first-child { padding-inline: 10px; }
  .empty-actions > .empty-sample { font-size: 10px; }
  .cad-view-actions { gap: 4px; }
  .cad-view-actions .cad-previous { padding-inline: 7px; }
  .cad-view-actions .icon-button { width: 35px; }
  .cad-file-actions button { font-size: 10px; }
  .cad-empty h3 { font-size: 21px; }
}


body.focus-mode #cutpathPanel .studio-layout { grid-template-columns: minmax(0,1fr); }
