/* CUTWORX workspace presentation. Geometry, physical units and export state are unchanged. */
:root {
  --bg: #111315;
  --surface: #1a1d20;
  --surface-raised: #24282c;
  --surface-inset: #141719;
  --border: #444a50;
  --border-soft: #30353a;
  --text: #f2f3f4;
  --muted: #bec4ca;
  --subtle: #9ba4ad;
  --accent: #ff8589;
  --accent-strong: #bd303b;
  --accent-wash: #332125;
  --precision-cyan: #a9c2cf;
  --canvas: #edf0f2;
  --radius: 6px;
}
html { scroll-behavior: auto; }
body { font-size: 13px; background: var(--bg); letter-spacing: .005em; }
button, .cad-export-button, .canvas-tool { border-radius: 5px; }
button { background: var(--accent-strong); color: #fff; font-weight: 600; }
button:enabled:hover { background: #d4404b; }
button:active:enabled { transform: none; }
button:disabled { opacity: .48; }
button.secondary { background: #24282c; border-color: #4a5158; color: var(--text); }
button.secondary:enabled:hover { background: #30363b; border-color: #727d87; }
button.quiet:enabled:hover { background: #272c31; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible { outline: 2px solid #ff989b; outline-offset: 3px; }
input:not([type=checkbox],[type=range],[type=file]), select {
  background: #121518; border-color: #525a62; border-radius: 4px; color: #f2f4f5;
}
input:hover:enabled, select:hover:enabled { border-color: #929da7; }
input[type=checkbox] { background: #121518; border-color: #828c96; border-radius: 3px; }
input[type=checkbox]:checked { background: #bd303b; border-color: #dc6570; }
input[type=checkbox]:checked::after { border-color: #fff; }
input[type=range] { accent-color: #d4515b; }
label { color: #c5cbd1; }
.eyebrow { letter-spacing: .11em; color: #a3adb6; }
.icon, .precision-icon { width: 19px; height: 19px; }
.app-header { height: 64px; padding: 0 24px; gap: 22px; background: #171a1d; border-bottom: 1px solid #343a40; }
.identity { gap: 9px; }
.identity img { width: 31px; height: 31px; }
.brand { font-size: 20px; letter-spacing: .055em; }
.brand > span { color: #aeb6be; font-size: 7px; letter-spacing: .18em; }
.product-heading { gap: 12px; padding-left: 22px; border-color: #3a4148; }
.product-heading h1 { font-size: 15px; font-weight: 600; }
.product-heading h1 span { color: #bec5cb; }
.build-tag { color: #bec6cd; background: #23282d; border-color: #505860; font-size: 10px; }
.header-actions { gap: 5px; }
.header-actions button { font-size: 11px; min-height: 38px; }
.header-actions .asset-catalog-link { color: #bec5cb; border-color: transparent; border-radius: 4px; font-size: 11px; }
.header-actions .asset-catalog-link:hover { background: #282e33; border-color: #48515a; }
.asset-catalog-link .precision-icon { width: 18px; height: 18px; }
.header-divider, .toolbar-divider { background: #41484f; }
.module-nav { min-height: 54px; height: auto; padding: 0 24px; background: #1a1d21; border-bottom: 1px solid #41474e; }
.module-tabs { gap: 5px; align-self: stretch; }
.module-tabs > button { position: relative; min-height: 54px; padding: 10px 22px; gap: 9px; font-size: 13px; color: #b7c0c8; border: 0; border-radius: 0; }
.module-tabs > button .icon { width: 19px; height: 19px; }
.module-tabs > button:hover { background: #252a2f; }
.module-tabs > button[aria-selected=true], .module-tabs > #cadTab[aria-selected=true] {
  color: #fff; background: #292d32; border-color: transparent; box-shadow: inset 0 -3px #e25b65;
}
.module-tabs > button[aria-selected=true] .icon { color: #ff9298; }
.module-note { color: #a9b2bb; font-size: 10px; }
.module-note .icon { color: #b3c0cb; width: 15px; height: 15px; }
.session-strip { height: 34px; background: #141719; padding-inline: 24px; border-color: #31373c; }
.session-file #sessionState, .session-file .icon { color: #aeb9c2; }
.session-file { min-width: 0; }
.privacy-note { color: #aeb9c2; }
#cutpathPanel .studio-layout { display: grid; grid-template-columns: 306px minmax(0,1fr); gap: 16px; padding: 16px 24px 24px; }
#cutpathPanel .controls { border: 1px solid #3a4148; border-radius: 6px; background: #1b1e22; }
#cutpathPanel .controls-heading { padding: 18px 18px 8px; }
#cutpathPanel .controls-heading h2 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
#cutpathPanel .control-section { padding: 15px 18px; border-color: #353b41; }
#cutpathPanel .section-heading { min-height: 23px; margin-bottom: 11px; }
#cutpathPanel .section-heading h3 { gap: 9px; font-size: 12px; font-weight: 650; letter-spacing: .025em; }
.section-heading h3 .icon, .cad-section-head h3 .icon { width: 19px; height: 19px; color: #c4cdd5; }
.micro-badge, .cad-pill { color: #c5cdd4; background: #242a30; border-color: #545e68; border-radius: 4px; }
.micro-badge.accent { color: #ffc1c5; background: #302326; border-color: #8c4e55; }
#cutpathPanel .upload { min-height: 64px; padding: 13px; background: #252b30; border: 1px solid #69737e; border-radius: 5px; box-shadow: none; }
.upload > .icon:first-child { width: 22px; height: 22px; color: #e5ebef; }
.upload strong { font-size: 13px; }
.upload small { color: #bbc4cd; }
.upload:hover:enabled { background: #30373e; border-color: #d6dfe6; }
#cutpathPanel .supported { color: #aab5bf; font-size: 9px; gap: 8px; margin: 9px 0; }
#cutpathPanel .supported .file-limit { color: #aab5bf; }
#cutpathPanel label { font-size: 11px; margin-top: 10px; }
#cutpathPanel input:not([type=range],[type=checkbox],[type=file]), #cutpathPanel select { min-height: 38px; height: 38px; }
#cutpathPanel .source-info { color: #b7c1ca; font-size: 11px; line-height: 1.55; }
#cutpathPanel .simple-note { font-size: 11px; color: #b8c2cb; line-height: 1.55; }
#cutpathPanel .check { font-size: 11px; min-height: 28px; }
#cutpathPanel .check input { width: 17px; height: 17px; }
#cutpathPanel .simple-smoothing output { color: #f4acb2; }
#cutpathPanel #autoSmooth { accent-color: #d4515b; }
#cutpathPanel .generate-dock { box-shadow: none; }
#cutpathPanel #generate { color: #fff; background: #bd303b; border: 1px solid #d55a63; box-shadow: none; min-height: 43px; }
#cutpathPanel #generate:enabled:hover { background: #d4404b; }
#cutpathPanel .export-pair button { background: #282f35; border-color: #626d78; color: #f3f5f6; border-radius: 5px; }
#cutpathPanel .export-pair button:enabled:hover { background: #363e46; border-color: #a5b2be; }
.export-pair .icon { color: #cbd4dc; }
#cutpathPanel #advancedTools { color: #bec7ce; min-height: 37px; border: 1px solid #434c55; border-radius: 4px; }
#cutpathPanel .workspace { background: transparent; padding: 0; gap: 11px; order: 0; }
.workspace-toolbar { min-height: 42px; }
.workspace-heading h2 { font-size: 14px; font-weight: 600; letter-spacing: 0; }
.workspace-heading p { color: #b9c3cc; font-size: 11px; }
.canvas-signal { box-shadow: none; border-radius: 2px; width: 7px; height: 7px; margin-left: 0; }
.has-result .canvas-signal, .is-stale .canvas-signal { box-shadow: none; }
.actions .icon-button, .actions .compact { min-height: 35px; }
.actions .icon { width: 17px; height: 17px; }
#cutpathPanel .canvas-wrap { height: calc(100dvh - 267px); min-height: 460px; border: 1px solid #616b75; border-radius: 6px; box-shadow: none; }
.canvas-topline { padding: 13px 16px; }
.canvas-caption { letter-spacing: .09em; font-size: 9px; }
body:not(.has-image) .canvas-topline { color: #4f5b65; }
body:not(.has-image) .canvas-unit { color: #3d4a54; background: #f8fafb; border-color: #a5b0b9; }
#empty { padding: 46px 32px 40px; color: #263039; background-color: #edf0f2; background-image: linear-gradient(#53627309 1px,transparent 1px),linear-gradient(90deg,#53627309 1px,transparent 1px); background-size: 24px 24px; }
#cutpathPanel #empty .workspace-start { display: grid; grid-template-columns: 1fr; width: min(100%,570px); max-width: 570px; height: auto; max-height: none; gap: 15px; padding: 0; margin: 0 auto; }
#cutpathPanel #empty .workspace-art { display: block; width: min(100%,360px); height: 183px; margin: 0 auto; }
#empty .workspace-art img { width: 100%; height: calc(100% - 18px); object-fit: contain; }
#empty .workspace-start-copy { text-align: center; }
#empty .workspace-start h3, #cutpathPanel .workspace-start-copy h3 { color: #242e37; font-size: clamp(22px,2.2vw,28px); font-weight: 600; letter-spacing: -.035em; line-height: 1.25; }
#empty .workspace-start-copy > p { color: #52616d; font-size: 13px; line-height: 1.6; margin: 11px 0 18px; }
#empty .empty-actions { justify-content: center; gap: 9px; }
#empty .empty-actions > button:first-child { color: #fff; background: #ac2530; border: 1px solid #98212a; border-radius: 5px; min-height: 42px; box-shadow: none; }
#empty .empty-actions > button:first-child:hover { background: #c63440; }
#empty .empty-actions > .empty-sample { padding: 10px 15px; color: #33434f; background: #f9fafb; border: 1px solid #9ca9b4; border-radius: 5px; min-height: 42px; }
#empty .empty-actions > .empty-sample:hover { background: #dfe6eb; border-color: #647483; }
#empty .empty-footnote { color: #566470; font-size: 10px; margin-top: 15px; }
.workspace-study-label { display: block; margin: 6px 0 0; color: #65717c; font-size: 9px; line-height: 12px; letter-spacing: .11em; text-transform: uppercase; }
.timeline, .inspector { background: #1b2025; border: 1px solid #444e57; border-radius: 5px; }
.timeline label, .timeline #frameValue, .inspector-heading h3 { color: #bbc6d0; }
.inspector-heading .eyebrow { color: #ef9ba3; }
.status-panel { background: #1d2925; border-color: #485c53; border-radius: 5px; }
#status { color: #d7e7df; }
.status-panel[data-error=true] { background: #352426; border-color: #986069; }
.status-panel[data-error=true] #status { color: #ffd7dc; }
.method-symbol { background: #292c31; border-color: #5d6670; color: #d9e0e6; box-shadow: none; border-radius: 5px; }
.workflow-nav a { background: #22262b; border-color: #515a64; }
.workflow-nav a[aria-current=step] { color: #ffc6cb; background: #35282c; border-color: #b96872; }
.details-body { animation: none; }
.cad-panel { --cad-teal: #b9cbd7; padding: 23px 24px 28px; }
.cad-heading, .opt-heading { align-items: center; }
.cad-heading h2, .opt-heading h2 { font-size: 25px; font-weight: 600; line-height: 1.3; letter-spacing: -.03em; }
.cad-heading .eyebrow, .opt-heading .eyebrow { display: block; color: #a8b5bf; font-size: 9px; margin-bottom: 6px; letter-spacing: .12em; }
.cad-heading p, .opt-heading p { color: #bbc5ce; font-size: 12px; margin-top: 6px; }
.cad-file-actions button, .opt-actions button { min-height: 39px; font-size: 11px; }
.cad-source-bar { background: #1c2126; border-color: #444e57; border-radius: 5px; }
.cad-source-bar #cadSourceSummary, .cad-privacy { color: #b6c2cc; }
.cad-layout { grid-template-columns: minmax(0,1fr) 326px; gap: 16px; }
.cad-toolbar h3 { font-size: 13px; }
.cad-toolbar > div > span { color: #b0bcc6; }
.cad-canvas { border-radius: 6px; border-color: #5b6873; background-color: #171e24; background-image: linear-gradient(#bac6cf06 1px,transparent 1px),linear-gradient(90deg,#bac6cf06 1px,transparent 1px); }
.cad-empty { background: #171e24; }
.cad-empty .workspace-start { max-width: 490px; width: 100%; }
.cad-study { display: block; width: min(100%,290px); height: 138px; margin: 0 auto 18px; }
.cad-empty h3 { color: #edf2f5; font-size: 25px; font-weight: 600; }
.cad-empty p { color: #bac8d3; }
.cad-empty-note { color: #abbcc9; font-size: 10px; }
.cad-empty-actions button.secondary { border-color: #738593; }
.cad-canvas-top { color: #afc1ce; letter-spacing: .075em; }
.cad-canvas-top > span:last-child { background: #202c36; border-color: #687d8e; color: #d2dce4; }
.cad-zoom { background: #202c36; border-color: #667a8b; border-radius: 5px; }
.cad-inspector, .cad-sidebar { background: #1c2126; border-color: #434e58; border-radius: 6px; }
.cad-inspector { padding: 16px; }
.cad-side-section { padding: 17px; }
.cad-section-head .eyebrow { color: #aabdc9; font-size: 9px; }
.cad-section-head h3 { font-size: 13px; }
.cad-side-section + .cad-side-section, .cad-side-details { border-color: #444e57; }
.cad-small-note, .cad-layer-list .cad-muted, .cad-muted { color: #b9c6d0; }
.cad-layer-row { color: #d2dbe2; }
.cad-layer-row > small { color: #bbc6d0; }
.cad-scale-readout { background: #202c29; border-color: #4c6559; color: #d2e2d9; border-radius: 4px; }
.cad-export-button { background: #29343d; border-color: #758797; }
.cad-export-button strong { color: #f5f7f8; }
.cad-export-button small { color: #c5d3dd; }
.cad-export-button:enabled:hover { background: #364550; border-color: #a0b3c2; }
.cad-side-details summary { color: #cfdae2; }
.cad-coordinate-grid > div { background: #182127; border-color: #4a5d6d; border-radius: 4px; }
.cad-coordinate-grid dt { color: #b4c5d2; }
#optimizerPanel { padding: 23px 24px 28px; max-width: none; }
.opt-heading { margin-bottom: 14px; }
.opt-layout { grid-template-columns: 306px minmax(0,1fr); gap: 16px; margin-top: 16px; }
.opt-controls { max-height: none; overflow: visible; background: #1b1f23; border: 1px solid #454f58; border-radius: 6px; padding: 18px; }
.opt-controls h3 { font-size: 14px; margin: 0 0 15px; }
.opt-controls label { font-size: 11px; }
.opt-controls .check { min-height: 29px; line-height: 1.5; }
.opt-controls input:not([type=checkbox]), .opt-controls select, .opt-controls textarea { background: #12181d; border-color: #596773; border-radius: 4px; }
.opt-controls textarea { min-height: 100px; }
.opt-controls details { margin-top: 18px; padding-top: 13px; border-top: 1px solid #47515a; }
.opt-controls summary { color: #d6dfe6; line-height: 1.5; cursor: pointer; font-size: 12px; }
.opt-stage { position: static; }
.opt-note { color: #bbc7d0; }
.opt-compare { gap: 14px; }
.opt-compare > div { min-width: 0; }
.opt-compare h3 { margin: 0; padding: 12px 15px; background: #242c33; border: 1px solid #667480; border-bottom: 0; border-radius: 5px 5px 0 0; font-size: 12px; font-weight: 600; }
.opt-frame { border-color: #667480; border-radius: 0 0 5px 5px; height: clamp(320px,53dvh,650px); background: #f3f5f6; }
.opt-frame:empty { background-color: #edf0f2; background-image: linear-gradient(#53627309 1px,transparent 1px),linear-gradient(90deg,#53627309 1px,transparent 1px); background-size: 24px 24px; }
.opt-frame:empty::before { content: "Open a PDF or DXF to inspect its vectors"; display: block; max-width: 240px; padding: 80px 24px 12px; text-align: center; font-size: 12px; line-height: 1.65; color: #4d5e6c; background: url('/assets/workspace/curve-study.svg') center 0 / 148px 72px no-repeat; }
#optAfter:empty::before { content: "Preview optimization to compare the candidate"; }
.opt-status { background: #1c2a24; border-color: #496355; border-radius: 5px; color: #dce9e1; }
.opt-status[data-error=true] { background: #352326; border-color: #9b656e; color: #ffdade; }
.opt-result { color: #d0dbe4; background: #20282f; border: 1px solid #414e59; border-radius: 5px; }
.opt-stage details { padding: 12px 14px; border: 1px solid #4b5863; border-radius: 5px; background: #1c2329; }
.opt-stage summary { cursor: pointer; font-size: 12px; }
.opt-stage pre { color: #c7d4de; line-height: 1.65; }
.opt-export-controls { border-color: #556574; background: #1b252e; }
.opt-export-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.opt-stage .opt-export-buttons button { width: 100%; min-height: 44px; margin: 0; font-size: 12px; line-height: 1.4; }
.processing-log { margin: 0 24px 24px; border-color: #424c55; border-radius: 5px; color: #b7c2cb; background: #191e23; }
.processing-log summary { font-size: 12px; color: #cbd5dd; }
.processing-log textarea { background: #12181d; color: #cedae3; border-color: #566775; }
dialog { border-radius: 6px; border-color: #59646f; background: #1d2329; }
.dialog-heading { border-color: #47515b; }
.guide-section > .icon { color: #ee9aa4; }
.empty-state *, .cad-empty *, .small-mark, .method-symbol { animation: none !important; }
@media (min-width: 1600px) {
  #cutpathPanel .studio-layout, .opt-layout { grid-template-columns: 330px minmax(0,1fr); }
  #cutpathPanel #empty .workspace-art { width: 390px; height: 198px; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .product-heading .build-tag { display: none; }
  .app-header { padding-inline: 18px; gap: 17px; }
  .product-heading { padding-left: 17px; }
  .module-nav { padding-inline: 18px; }
  .module-tabs > button { padding-inline: 17px; }
  .module-note { display: none; }
  #cutpathPanel .studio-layout, .opt-layout { grid-template-columns: 284px minmax(0,1fr); gap: 14px; }
  #cutpathPanel .studio-layout, .cad-panel, #optimizerPanel { padding-inline: 18px; }
  .cad-layout { grid-template-columns: minmax(0,1fr) 296px; }
  .cad-file-actions { gap: 5px; }
  .cad-file-actions button { padding-inline: 10px; }
}
@media (max-width: 920px) {
  /* Export scope and reference options form a sequence, including tablet widths. */
  .cad-side-section:nth-child(3) { display: block; grid-column: 1 / -1; }
  .cad-side-section:nth-child(3) .cad-export-buttons { margin-top: 14px; }
}
@media (max-width: 900px) {
  .app-header { padding-inline: 16px; gap: 14px; }
  .product-heading { padding-left: 14px; }
  .module-note { display: none; }
  .module-nav { padding-inline: 16px; }
  .module-tabs > button { padding-inline: 14px; }
  #cutpathPanel .studio-layout { display: grid; grid-template-columns: 272px minmax(0,1fr); padding: 14px 16px 20px; gap: 13px; }
  #cutpathPanel .controls-heading, #cutpathPanel .control-section { padding-inline: 15px; }
  #cutpathPanel .workspace { width: auto; }
  #cutpathPanel .canvas-wrap { height: calc(100dvh - 257px); min-height: 435px; }
  #empty { padding-inline: 21px; }
  #cutpathPanel #empty .workspace-art { width: min(100%,285px); height: 155px; }
  #empty .workspace-start h3 { font-size: 23px; }
  #empty .workspace-start-copy > p { font-size: 12px; }
  .cad-panel, #optimizerPanel { padding: 19px 16px 24px; }
  .cad-heading, .opt-heading { align-items: flex-start; }
  .cad-layout { display: flex; flex-direction: column; }
  .cad-sidebar { max-height: none; }
  .opt-heading { flex-direction: column; gap: 14px; }
  .opt-layout { grid-template-columns: 268px minmax(0,1fr); gap: 14px; }
  .opt-compare { grid-template-columns: 1fr; }
  .opt-frame { height: 300px; }
  .opt-controls { padding: 15px; }
  .processing-log { margin-inline: 16px; }
}
@media (max-width: 650px) {
  body { padding-bottom: 0; }
  .app-header { height: auto; min-height: 61px; padding: 10px 12px; gap: 8px; }
  .identity { gap: 7px; }
  .identity img { width: 28px; height: 28px; }
  .brand { font-size: 18px; }
  .brand > span { font-size: 6px; }
  .product-heading { display: none; }
  .header-actions { gap: 3px; }
  .header-actions button { width: 34px; min-height: 38px; padding: 7px; }
  .header-actions .asset-catalog-link { width: 34px; min-height: 38px; padding: 7px; }
  .header-actions .icon, .asset-catalog-link .precision-icon { width: 17px; height: 17px; }
  .module-nav { padding: 0 8px; }
  .module-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); width: 100%; gap: 2px; }
  .module-tabs > button { min-height: 58px; padding: 9px 5px; gap: 5px; font-size: 11px; line-height: 1.3; white-space: normal; flex-direction: column; text-align: center; }
  .module-tabs > button .icon { width: 17px; height: 17px; }
  .session-strip { padding-inline: 12px; height: 34px; gap: 8px; }
  .session-file { gap: 6px; }
  #sessionName { max-width: 36vw; }
  .privacy-note { font-size: 9px; }
  #cutpathPanel .studio-layout { display: flex; flex-direction: column; padding: 12px; gap: 15px; }
  #cutpathPanel .controls { width: 100%; }
  #cutpathPanel .controls-heading { padding: 16px 16px 7px; }
  #cutpathPanel .control-section { padding: 14px 16px; }
  #cutpathPanel .workspace { width: 100%; padding: 0; gap: 9px; order: 2; }
  #cutpathPanel .control-scroll { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #cutpathPanel .control-section { min-width: 0; }
  #cutpathPanel label, #cutpathPanel .check { font-size: 12px; }
  #cutpathPanel input:not([type=range],[type=checkbox],[type=file]), #cutpathPanel select { min-height: 43px; height: 43px; font-size: 16px; }
  #cutpathPanel .check { min-height: 33px; line-height: 1.55; }
  #cutpathPanel #boundary-section { border-right-color: #404a53; }
  #cutpathPanel #generate { min-height: 45px; font-size: 13px; }
  #cutpathPanel .export-pair button { min-height: 46px; }
  #cutpathPanel .canvas-wrap, body.cutpath-advanced #cutpathPanel .canvas-wrap,
  body:not(.has-image) #cutpathPanel #drop { height: 460px; min-height: 460px; }
  #cutpathPanel #empty .workspace-art { width: min(100%,280px); height: 149px; }
  #empty { padding: 40px 20px 35px; }
  #empty .workspace-start-copy > p { font-size: 12px; }
  #empty .workspace-start h3, #cutpathPanel .workspace-start-copy h3 { font-size: 24px; }
  #empty .empty-actions > button { min-height: 44px; }
  #empty .empty-footnote { font-size: 10px; line-height: 1.6; }
  .workspace-study-label { font-size: 8px; }
  .workspace-toolbar { flex-wrap: wrap; gap: 8px; }
  .workspace-heading h2 { font-size: 13px; }
  .workspace-heading p { font-size: 10px; }
  .actions .icon-button, .actions .compact { width: 32px; min-height: 37px; }
  .cad-panel, #optimizerPanel { padding: 18px 12px 24px; }
  .cad-heading h2, .opt-heading h2 { font-size: 24px; }
  .cad-file-actions, .opt-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; max-width: none; gap: 7px; }
  .cad-file-actions #cadOpen { grid-column: 1 / -1; width: 100%; }
  .cad-file-actions button, .opt-actions button { min-height: 43px; font-size: 11px; }
  .cad-source-bar { padding: 12px; }
  .cad-canvas, .cad-panel[data-loaded=true] .cad-canvas { height: 410px; }
  .cad-empty { padding: 45px 17px; }
  .cad-study { width: min(100%,240px); height: 109px; margin-bottom: 17px; }
  .cad-empty h3 { font-size: 23px; }
  .cad-empty p { font-size: 12px; }
  .cad-empty-note { font-size: 10px; }
  .cad-empty-actions { gap: 7px; }
  .cad-empty-actions button { min-height: 43px; }
  .cad-side-section, .cad-inspector { padding: 16px; }
  .cad-view-actions { flex-wrap: wrap; }
  .opt-layout { grid-template-columns: 1fr; }
  .opt-controls { padding: 17px; }
  .opt-controls input:not([type=checkbox]), .opt-controls select, .opt-controls textarea { font-size: 16px; min-height: 43px; }
  .opt-controls label, .opt-controls .check { font-size: 12px; }
  .opt-controls .check { min-height: 34px; }
  .opt-controls button { min-height: 43px; }
  .opt-frame { height: 320px; }
  .opt-status, .opt-result { font-size: 12px; }
  .processing-log { margin: 0 12px 20px; }
  body.focus-mode #cutpathPanel .canvas-wrap { height: calc(100dvh - 230px); min-height: 360px; }
}
@media (max-width: 370px) {
  .identity img { width: 25px; height: 25px; }
  .brand { font-size: 16px; }
  .header-actions { gap: 1px; }
  .header-actions button, .header-actions .asset-catalog-link { width: 30px; padding: 6px; }
  .module-tabs > button { font-size: 10px; }
  #cutpathPanel .controls-heading, #cutpathPanel .control-section { padding-inline: 13px; }
  #cutpathPanel #generate .generate-icon, #cutpathPanel #generate > .icon { display: none; }
  #empty .empty-actions { gap: 7px; }
  #empty .empty-actions > button { padding-inline: 11px; font-size: 11px; }
  .privacy-note > span { display: none; }
}
