/* 4.4.4. One responsive boundary (1024px) for the sidebar and its JS controller.
   Do not conceal overflow globally: wide data keeps a local, keyboard-scrollable region.
   Keep these rules screen-only so document/PDF and print geometry stay unchanged. */
@media screen {
 body.ft444-responsive { --ft444-sidebar-width:clamp(232px,18.4vw,264px); --ft444-safe-bottom:env(safe-area-inset-bottom,0px); }
 body.ft444-responsive :where(img,video) { max-width:100%; }
 body.ft444-responsive :where(input,select,textarea,button) { box-sizing:border-box; }
 body.ft444-responsive .ft444-scroll-region { max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch; }
 body.ft444-responsive .ft444-scroll-region:focus-visible { outline:2px solid #175ca7;outline-offset:3px; }
 body.ft444-responsive .ft444-scroll-hint { margin:6px 0 12px;font:400 .85rem/1.5 system-ui;color:#53657a; }
 body.ft444-responsive .ft444-scroll-hint[hidden] { display:none!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace { --ft411-sidebar-width:var(--ft444-sidebar-width); }
 body.ft444-responsive.ftaps-app.ftaps-workspace :is(.ftaps-main,.ftaps-content,.ft443-editor-root,.ft440-card,.staff-card,.ftm-panel,fieldset,.ft440-table-wrap) { min-width:0!important;box-sizing:border-box; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-sidebar { width:var(--ft444-sidebar-width)!important;max-height:calc(var(--ft444-window-height,100vh) - var(--wp-admin--admin-bar--height,0px));padding-bottom:var(--ft444-safe-bottom);overscroll-behavior:contain; }
 body.ft444-responsive.ftaps-app.ftaps-workspace main.ftaps-main { width:calc(100% - var(--ft444-sidebar-width))!important;max-width:calc(100% - var(--ft444-sidebar-width))!important;margin-left:var(--ft444-sidebar-width)!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace.ft440-wide main.ftaps-main { width:100%!important;max-width:100%!important;margin-left:0!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar { display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;gap:10px!important;height:auto!important;min-height:68px!important;padding:10px clamp(12px,2vw,28px)!important;align-items:center; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar>.ftaps-search { grid-column:1;grid-row:1;min-width:0!important;max-width:100%!important;width:100%!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar>.ftaps-icon-button { grid-column:2;grid-row:1; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar>.ftaps-profile { grid-column:3;grid-row:1;min-width:44px;max-width:270px; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-search input { min-width:0!important;max-width:100%;font-size:16px!important;min-height:44px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace :is(.ftaps-menu-button,.ftaps-icon-button,.ftaps-profile) { min-height:44px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-content { padding:clamp(14px,2vw,30px)!important;padding-bottom:calc(30px + var(--ft444-safe-bottom))!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft440-workspace-tools.ft444-options { display:flex!important;flex-wrap:wrap!important;align-items:center;gap:10px!important;min-width:0; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-options>.ft440-row { flex:1 1 auto;width:auto!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-option-panel { display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:12px 20px;flex-basis:100%;min-width:0;max-width:100%; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-option-panel[hidden] { display:none!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-option-panel>.ft440-row { display:flex;flex-wrap:wrap;gap:8px;min-width:0;max-width:100%; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-option-panel .ft422-display-tools { display:flex!important;flex-wrap:wrap!important;align-items:end;gap:10px!important;margin:0!important;min-width:0;max-width:100%; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-options-toggle { min-height:44px!important;white-space:normal!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-options-toggle[hidden] { display:none!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft422-dashboard-options { max-width:calc(100vw - 24px)!important;max-height:calc(var(--ft444-window-height,100vh) - 100px)!important;overflow:auto!important;overscroll-behavior:contain; }
 body.ft444-responsive.ftaps-app.ftaps-workspace :is(.ftaps-page-head,.ft443-page-header,.ftm-card-head,.ftag-list-heading,.ft440-table-footer,.ft440-table-toolbar,.staff-actions,.ft444-pagination) { min-width:0;gap:12px;flex-wrap:wrap; }
 body.ft444-responsive.ftaps-app.ftaps-workspace :is(.ftaps-head-actions,.staff-actions,.ft440-row,.ft443-page-actions,.ft440-table-toolbar)>* { min-width:0;max-width:100%; }
 body.ft444-responsive.ftaps-app.ftaps-workspace :is(.ftaps-content,dialog) :is(.btn,.ft440-button,button[type=submit],.ftaps-primary,.ftaps-secondary) { min-height:44px!important;line-height:1.4!important;height:auto!important;white-space:normal!important;overflow-wrap:anywhere; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-active-editor :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea) { width:100%;min-width:0!important;max-width:100%!important;min-height:44px!important;font-size:16px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace :is(input,select,textarea,button,a[href]) { scroll-margin-block:90px; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-active-editor select[multiple] { height:auto!important;min-height:140px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-active-editor textarea { resize:vertical!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-active-editor input[type=file] { overflow:hidden; }
 /* Menus are positioned against the actually visible viewport, including a keyboard. */
 body.ft444-responsive.ftaps-app.ftaps-workspace :is(.ftaps-popover,.ftaps-search-results) { position:fixed!important;left:var(--ft444-panel-left,12px)!important;right:auto!important;top:var(--ft444-panel-top,76px)!important;width:var(--ft444-panel-width,calc(100vw - 24px))!important;min-width:0!important;max-width:calc(100vw - 24px)!important;max-height:var(--ft444-panel-height,calc(100vh - 90px))!important;overflow:auto!important;overscroll-behavior:contain;box-sizing:border-box; }
 body.ft444-responsive.ftaps-app.ftaps-workspace :is(.ft429-row-menu,.ft440-actions-menu) { max-height:calc(var(--ft444-window-height,100vh) - 24px)!important;overflow-y:auto!important;max-width:calc(100vw - 24px)!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace.ft440-enhanced dialog.ft440-dialog[open],body.ft444-responsive.ftaps-app.ftaps-workspace.ft440-enhanced dialog.ft440-legacy-dialog[open] { max-height:calc(var(--ft444-window-height,100vh) - 24px)!important;min-height:0!important;box-sizing:border-box!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace dialog[open] :is(.ft440-dialog-body,.ftaps-confirm-body) { min-height:0!important;overflow:auto!important;overscroll-behavior:contain; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft440-dialog-foot:empty { display:none!important; }
 /* Card mode follows the available table container, not a guessed device name.
    Original rows, checkboxes and action buttons are not cloned or removed. */
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table { display:block!important;table-layout:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;border:0!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>colgroup { display:none!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>tbody { display:block!important;width:100%!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>thead { display:block!important;position:static!important;width:auto!important;height:auto!important;clip-path:none!important;overflow:visible!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>thead>tr { display:block!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>thead>tr>th { display:none!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>thead>tr>th:is(.ft440-check-cell,.ft430-check-cell) { display:flex!important;align-items:center;gap:10px;min-height:44px;position:static!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>tbody>tr:is(.ft440-record,.ft434-record):not([hidden]):not(.ft440-row-hidden) { display:block!important;box-sizing:border-box!important;width:auto!important;min-width:0!important;max-width:100%!important;margin:8px!important;padding:6px!important;border:1px solid #dbe3ed!important;border-radius:12px!important;background:#fff!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>tbody>tr>:is(td,th) { display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;padding:10px!important;text-align:left!important;line-height:1.5!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>tbody>tr>td::before { content:attr(data-ft434-label)!important;display:block!important;position:static!important;float:none!important;max-width:none!important;width:auto!important;margin:0 0 4px;padding:0!important;font-size:12px!important;line-height:1.4!important;color:#52647a;font-weight:600; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>tbody>tr>td[data-ft440-label]::before { content:attr(data-ft440-label)!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>tbody>tr>td:is(.ft440-check-cell,.ft430-check-cell,.ft429-actions-cell) { display:flex!important;align-items:center!important;gap:12px!important;justify-content:space-between; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>tbody>tr>td:is(.ft440-check-cell,.ft430-check-cell)::before { content:'Seleziona'!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table>tbody>tr>:is(td,th)>:is(.ft440-action-trigger,.ft429-row-trigger) { position:static!important;min-height:44px!important;min-width:44px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table tr:is([hidden],.ft440-row-hidden),body.ft444-responsive.ftaps-app.ftaps-workspace table.ft444-card-table tr>:is([hidden],.ft440-column-hidden) { display:none!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft421-event-tabs { flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-inline:contain;padding:3px 2px 8px; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft421-event-tabs>a { flex:0 0 auto;max-width:240px;min-height:44px; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-archive :is(.staff-card,.ftag-instructions,.form-grid) { min-width:0;overflow-wrap:anywhere; }
}
@media screen and (max-width:1024px) {
 body.ft444-responsive.ftaps-app.ftaps-workspace main.ftaps-main { width:100%!important;max-width:100%!important;margin:0!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-sidebar { width:min(300px,calc(100vw - 44px))!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar { grid-template-columns:44px minmax(0,1fr) 44px auto!important;gap:6px!important;padding:8px 10px!important;min-height:60px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar>.ftaps-menu-button { grid-column:1;grid-row:1; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar>.ftaps-search { grid-column:2; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar>.ftaps-icon-button { grid-column:3; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar>.ftaps-profile { grid-column:4; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar>.ftaps-profile span { display:none!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft440-workspace-tools.ft444-options { padding:10px 12px!important;margin-bottom:16px; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-option-panel>.ft440-row { flex:1 1 100%; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-option-panel>.ft440-row>* { flex:1 1 130px; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-option-panel .ft422-display-tools { width:100%; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-option-panel .ft422-dashboard-menu { flex:1 1 160px; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-option-panel .ft422-dashboard-options { position:static!important;width:100%!important;max-height:55vh!important;max-height:55dvh!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-option-panel .ft422-size-label { flex:1 1 110px; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-desktop-only { display:none!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace:not(.ft-assistant-open) .ft444-text-entry .ft-ai-widget:not([data-ft4414-inline]) { display:none!important; }
}
@media screen and (max-width:600px) {
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-content { padding:12px!important;padding-bottom:calc(76px + var(--ft444-safe-bottom))!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-editor-root { padding:14px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-page-header h1,body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-page-head h1 { font-size:clamp(24px,6.8vw,30px)!important;line-height:1.2!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-active-editor .ft411-fields>.ft411-field { flex:1 1 100%!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-active-editor :is(.form-grid,.ftm-form-grid,.oq-calendar-form-grid) { grid-template-columns:minmax(0,1fr)!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-active-editor :is(.full,.ft411-full) { grid-column:1 / -1!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft440-table-toolbar>:is(.ft440-row,label) { flex-basis:100%;width:100%; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft440-table-toolbar .ft440-row { gap:8px;flex-wrap:wrap; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft440-table-toolbar .ft440-row>.ft440-button { flex:1 1 110px; }
 body.ft444-responsive.ftaps-app.ftaps-workspace :is(.ft440-table-toolbar select,.ft444-archive select,.ft444-archive input) { min-width:0!important;max-width:100%;min-height:44px!important;font-size:16px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-page-actions { padding-bottom:calc(10px + var(--ft444-safe-bottom))!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-pagination>a { flex:1 1 110px; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-pagination>span { flex:1 1 100%; }
 /* Public forms use the same one-column/large-control fallback; no design changes to print. */
 body.ft444-responsive:not(.ftaps-app) :is(.form-grid,.oq-form-grid,.oq-calendar-form-grid) { grid-template-columns:minmax(0,1fr)!important;min-width:0; }
 body.ft444-responsive:not(.ftaps-app) :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]),select,textarea) { min-width:0!important;max-width:100%!important;font-size:16px!important; }
 body.ft444-responsive:not(.ftaps-app) :is(.btn,button[type=submit]) { max-width:100%;white-space:normal;min-height:44px; }
 body.ft444-responsive:not(.ftaps-app) :is(h1,h2,h3,p,label,a) { overflow-wrap:anywhere; }
}
@media screen and (max-width:400px) {
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-profile>svg { display:none!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-profile { padding:0!important;min-width:36px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar { grid-template-columns:40px minmax(0,1fr) 40px 36px!important;gap:4px!important;padding-inline:8px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-search { padding-inline:6px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft440-workspace-tools .ft440-version { font-size:10px!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft444-options-toggle { font-size:12px!important;padding-inline:9px!important; }
}
@media screen and (max-height:500px) {
 body.ft444-responsive.ftaps-app.ftaps-workspace .ftaps-topbar { position:relative!important;top:auto!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace .ft443-page-actions { position:static!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace dialog[open] :is(.ft440-dialog-head,.ft440-dialog-foot) { padding-block:8px!important; }
}
@media screen {
 body.ft444-responsive.ftaps-app.ftaps-workspace.ft444-keyboard .ft443-page-actions { position:static!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace.ft444-text-entry:not(.ft-assistant-open) .ft-ai-widget:not([data-ft4414-inline]) { visibility:hidden!important; }
 body.ft444-responsive.ftaps-app.ftaps-workspace.ft444-keyboard .ftaps-topbar { position:relative!important; }
}
@media (prefers-reduced-motion:reduce) { body.ft444-responsive * { scroll-behavior:auto!important; } }

/* 4.4.7 — compact, content-sized fields; one pass and original DOM order. */
@media screen {
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-regular-form .ft444-form-grid {
  display:flex!important;flex-flow:row wrap!important;align-items:flex-start!important;
  gap:12px 16px!important;width:100%!important;max-width:100%!important;min-width:0!important;
  grid-template-columns:none!important;margin:0!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid>.ft411-field,
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid>.ft444-form-field {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:5px!important;
  flex:1 1 var(--ft447-basis,13.5rem)!important;width:auto!important;min-width:0!important;
  max-width:100%!important;margin:0!important;grid-column:auto!important;align-self:auto!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid> :is(.ft444-field-wide,[data-ft447-kind=full],.full,.ft411-full) {
  flex:1 1 100%!important;width:100%!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid>.ft411-field[data-ft447-kind=check] {
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:8px!important;
  min-height:44px!important;align-self:flex-end!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid>.ft411-field[data-ft447-kind=check] :is(input[type=checkbox],input[type=radio]) {
  flex:0 0 auto!important;width:18px!important;height:18px!important;min-height:18px!important;margin:0!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid>.ft444-form-field>.ft444-field-caption {
  display:block!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important;
  line-height:1.35!important;font-weight:600;white-space:normal!important;overflow-wrap:anywhere;word-break:normal!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftaps-content form.ft444-regular-form .ft444-form-grid>.ft444-form-field :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]),select,textarea) {
  width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;margin:0!important;
  min-height:44px!important;font:inherit;font-size:16px!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftaps-content form.ft444-regular-form .ft444-form-grid>.ft444-form-field :is(input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=submit]):not([type=button]):not([type=file]),select:not([multiple])) {height:44px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid> :is(h2,h3,h4,p,fieldset,.ftm-check-grid,.ftm-permission-grid) {flex-basis:100%!important;max-width:100%;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid>input[type=hidden],
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid>br {display:none!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft447-duplicate-heading {display:none!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft427-line-form [data-ft427-balance] {padding:10px 12px;border:1px solid #cfdfea;border-radius:10px;background:#f2f7fa;line-height:1.45;font-size:14px;}
 /* A filter card is not a five-column grid of unrelated headings/controls/buttons. */
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftaps-content form:is(.ft447-filter-form,.ftadv-filter-form,.ftuniform-filters) {
  display:flex!important;flex-flow:row wrap!important;align-items:flex-end!important;gap:12px 16px!important;
  grid-template-columns:none!important;padding:16px!important;width:100%!important;max-width:100%!important;min-width:0!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft447-filter-form> :is(h2,h3,h4,.eyebrow,p,header,legend),
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftadv-filter-form>.ft447-filter-heading {
  flex:0 0 100%!important;width:100%!important;max-width:100%!important;margin:0!important;line-height:1.35!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft447-filter-form>.ft447-filter-heading {font-size:17px!important;font-weight:650!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft447-filter-form>.ft444-form-grid {flex:1 1 100%!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft447-filter-form.ft447-filter-short>.ft444-form-grid {flex:1 1 25rem!important;width:auto!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft447-filter-form>.ft447-filter-actions {
  display:flex!important;flex-flow:row wrap!important;align-items:center!important;justify-content:flex-start!important;
  flex:0 1 100%!important;gap:8px!important;width:auto!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft447-filter-form.ft447-filter-short>.ft447-filter-actions {flex-basis:auto!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft447-filter-form>.ft447-filter-actions :is(a,button) {
  flex:0 1 auto!important;width:auto!important;max-width:100%!important;min-width:0!important;min-height:44px!important;
  white-space:normal!important;overflow-wrap:anywhere;line-height:1.35!important;box-sizing:border-box!important;
 }
 /* Shared spacing: keep hierarchy and controls, not empty padding and duplicate captions. */
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftaps-content :is(.staff-card,.ftm-panel,.ft440-card) {padding:16px!important;margin-bottom:16px!important;min-width:0;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft443-editor-root {padding:18px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace :is(.ft443-page-header,.ftaps-page-head) {padding-bottom:12px!important;margin-bottom:12px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft443-page-header .ft443-page-help {margin:6px 0 0!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft440-workspace-tools {padding:10px 14px!important;margin-bottom:16px!important;gap:8px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftaps-content :is(.staff-card,.ftm-panel,.ft440-card)>:is(h2,h3,h4) {margin:0 0 10px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftaps-content :is(.staff-card,.ftm-panel,.ft440-card)>.eyebrow {margin:0 0 5px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftm-kpis {display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr))!important;gap:12px!important;margin:12px 0 16px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftm-kpi {min-height:0!important;padding:14px!important;gap:4px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftm-kpi>span {min-height:0!important;white-space:normal!important;line-height:1.35!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftm-kpi>strong {font-size:24px!important;line-height:1.2!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft440-draft-banner {gap:8px!important;padding:10px 12px!important;margin:0 0 14px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft443-page-actions {padding:10px 14px!important;margin-top:12px!important;gap:8px!important;}
 /* Card-table labels consume their intrinsic width, not a permanently empty left third. */
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace table.ft444-card-table tr.ft440-record>td:not(.ft440-check-cell) {grid-template-columns:fit-content(34%) minmax(0,1fr)!important;gap:8px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace table.ft444-card-table tr.ft440-record>td[data-ft440-label=""] {grid-template-columns:minmax(0,1fr)!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace table.ft444-card-table tr.ft440-record>td[data-ft440-label=""]::before {display:none!important;}
}
@media screen and (max-width:560px) {
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-regular-form .ft444-form-grid {gap:12px!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid> :is(.ft411-field,.ft444-form-field) {flex-basis:100%!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft447-filter-form.ft447-filter-short>.ft444-form-grid {flex-basis:100%!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftaps-content :is(.staff-card,.ftm-panel,.ft440-card,.ft443-editor-root) {padding:12px!important;}
}

@media screen {
 body.ft444-responsive.ftaps-app .ft444-duplicate-title { display:none!important; }
 body.ft444-responsive.ftaps-app .ftaps-skip:not(:focus) { position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;padding:0!important;margin:-1px!important; }
 body.ft444-responsive.ftaps-app .ftaps-skip:focus { position:fixed!important;top:8px!important;left:8px!important;transform:none!important;z-index:100001!important; }
}

@media screen {
 /* Short operational notes share a row; explicit full-width/rich editors still keep their layout. */
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid>.ft411-field:is([data-ft447-kind=note],[data-ft447-kind=memo]) {flex:1 1 var(--ft447-basis,25rem)!important;width:auto!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid>.ft411-field:is([data-ft447-kind=note],[data-ft447-kind=memo]) textarea {min-height:76px!important;resize:vertical;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-regular-form>.ft444-form-grid+.ft444-form-grid {margin-top:12px!important;}
}
@media screen and (max-width:560px) {
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ft444-form-grid>.ft411-field:is([data-ft447-kind=note],[data-ft447-kind=memo]) {flex-basis:100%!important;}
}

@media screen {
 /* Compact inventory navigation: labels must not run into adjacent commands. */
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftinv-quick-actions {
  display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr))!important;
  gap:8px!important;align-items:stretch!important;width:100%!important;margin:12px 0!important;overflow:visible!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftinv-quick-actions>a {
  display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;
  min-width:0!important;max-width:100%!important;width:auto!important;align-self:stretch!important;min-height:48px!important;padding:9px 10px!important;
  background:#fff;border:1px solid #d6e2ed;border-radius:9px;color:#25455e;text-decoration:none!important;
 }
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftinv-quick-actions>a:is(.is-current,:hover,:focus-visible) {border-color:#2d719a;background:#f0f7fb;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftinv-tab-number {display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:#e8f1f8;font-size:12px;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftinv-tab-copy {display:flex!important;flex-direction:column!important;gap:3px;min-width:0;white-space:normal!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftinv-tab-copy strong {font-size:14px;line-height:1.3;overflow-wrap:anywhere;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftinv-tab-copy small {font-size:12px;line-height:1.35;color:#526980;overflow-wrap:anywhere;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftinv-workspace-heading {margin:10px 0!important;padding:0!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftinv-workspace-heading :is(h3,p) {margin:4px 0!important;}
 body.ft444-responsive.ft447-space.ftaps-app.ftaps-workspace .ftinv-workspace-status {display:none!important;}
}
