/* Application composition of kit patterns. Shared kit files are synchronized, never overridden here. */
.app-work-facts { display:flex; flex-wrap:wrap; gap:10px 20px; align-items:center; color:var(--kit-muted); margin-bottom:16px; font-size:13px; }
.app-work-facts b { margin-right:6px; color:var(--kit-ink); }
.app-work-fields { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; min-width:0; }
.app-work-fields > * { min-width:0; }

.app-work-form .fld-grid { grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr)); }
.app-work-form .fld textarea { height:auto; min-height:96px; }
form:has([data-app-form]) { container-type:inline-size; container-name:workspace-form; }
@container workspace-form (max-width:800px) { .app-work-form > .ui-form-layout { grid-template-columns:minmax(0,1fr); } .app-work-form .ui-form-readiness { position:static; } }
.ui-count, .ui-section > span { background:var(--kit-subtle); color:var(--kit-ink); }
/* Application-owned legacy fields use the same text tokens as kit inputs. */
:is(.app-work-form .fld input,.ss-input,.lib-fld input,.ui-scan input)::placeholder { color:var(--kit-muted)!important; opacity:1; }
.app-work-form .text-tiny { color:var(--kit-muted); }
.ui-note code { color:inherit; background:var(--kit-subtle); }
/* Desktop column widths must not clip the kit mobile record cards. */
@media(max-width:640px) {
 :is(.items-table,.cat-table,.rd-table).ui-registry-table--compact td { width:auto; min-width:0; max-width:100%; overflow:visible; text-overflow:clip; }
 .items-table.ui-registry-table--compact .cell-input { max-width:100%; }
 .items-table.ui-registry-table--compact .col-chk input { width:20px; height:20px; accent-color:var(--kit-blue-ink0); }
}
