/* Shared workspace layer loaded after section styles to keep common screens consistent. */
:root{--table-font-size:12px;--table-meta-size:11px;--table-cell-padding:7px 10px;--table-row-height:48px;--control-height:34px;--control-radius:7px;--panel-radius:10px}
.ui-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
/* Form layout display rules must not override the native hidden state. */
.form-canvas [hidden],.record-detail [hidden]{display:none!important}
.form-canvas .form-section-head>span{margin-left:6px}
.record-term-grid.measure-term-grid{grid-template-columns:minmax(120px,.7fr) minmax(0,1.3fr)}
[data-theme="dark"] .record-term-grid.measure-term-grid{border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.08)}


.product-registry-page,.issues-page,.projects-page,.settings-page,.product-dashboard-page,
.entity-detail-page,.form-canvas,.record-detail{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text-primary)}

.product-registry-shell,.issues-registry-shell{
  width:100%;min-height:calc(100vh - 112px);overflow:hidden;
  border:1px solid var(--border-subtle);border-radius:10px;
  background:var(--surface-primary);box-shadow:none;
}
.product-registry-page .registry-page-head,.issues-page .registry-page-head{
  display:flex!important;min-height:76px;margin:0;padding:16px 20px;align-items:center!important;
  border-bottom:1px solid var(--border-subtle);background:var(--surface-primary);
}
.product-registry-page .registry-title-area,.issues-page .registry-title-area{display:flex;flex-direction:column;gap:0!important}
.product-registry-page .registry-title-area::before,.issues-page .registry-title-area::before,.issues-page .issues-registry-kicker{display:none!important}
.product-registry-page .registry-title-row,.issues-page .registry-title-row{display:flex;align-items:center;gap:10px!important}
.product-registry-page .registry-title,.issues-page .registry-title{
  color:var(--text-primary);font-size:24px;font-weight:500;line-height:1.12;letter-spacing:-.035em;
}
.product-registry-page .registry-subtitle,.issues-page .registry-subtitle{margin-top:5px;color:var(--text-muted);font-size:12px;line-height:17px}
.product-registry-page .registry-count-pill,.issues-page .registry-count-pill{
  min-height:25px;padding:0 9px;border:1px solid var(--border-strong);border-radius:999px;background:var(--surface-secondary);color:var(--text-secondary);font-size:11px;
}
.product-registry-page .registry-actions,.issues-page .registry-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.product-registry-page .btn-registry-primary,.product-registry-page .btn-registry-export,
.issues-page .btn-registry-primary,.issues-page .btn-registry-export{
  min-height:34px;height:34px;padding:0 12px;border-radius:7px;font-family:inherit;font-size:12px;font-weight:500;box-shadow:none;transform:none;
}
[data-theme="dark"] .product-registry-page .btn-registry-primary,
[data-theme="dark"] .issues-page .btn-registry-primary{border:1px solid #ececec!important;background:#ececec!important;color:#202020!important}
[data-theme="dark"] .product-registry-page .btn-registry-primary:hover,
[data-theme="dark"] .issues-page .btn-registry-primary:hover{border-color:#fff!important;background:#fff!important;color:#171717!important}
[data-theme="dark"] .product-registry-page .btn-registry-export,
[data-theme="dark"] .issues-page .btn-registry-export{border:1px solid var(--border-strong);background:var(--surface-secondary);color:var(--text-primary)}

.product-registry-page .registry-filters,.issues-page .registry-filters{
  display:flex!important;flex-direction:row!important;min-height:52px;margin:0!important;padding:9px 16px!important;gap:8px!important;
  align-items:center!important;flex-wrap:nowrap!important;border:0!important;border-bottom:1px solid var(--border-subtle)!important;
  border-radius:0!important;background:var(--surface-tertiary)!important;
}
.product-registry-page .filter-search-wrap,.issues-page .filter-search-wrap{width:auto!important;flex:1 1 260px!important;min-width:210px;max-width:390px!important;margin:0!important}
.product-registry-page .filter-controls-group,.issues-page .filter-controls-group{display:flex!important;width:auto!important;min-width:0;align-items:center!important;gap:6px!important;flex:0 1 auto!important;flex-wrap:nowrap!important;justify-content:flex-end!important;margin:0!important}
.product-registry-page .filter-search-input,.issues-page .filter-search-input,
.product-registry-page .toolbar .filter-search-input,.issues-page .toolbar .filter-search-input,
.product-registry-page .registry-filters .fc-select-trigger,.issues-page .registry-filters .fc-select-trigger,
.product-registry-page .issues-more-filters>summary,.issues-page .issues-more-filters>summary{
  height:32px!important;min-height:32px!important;border:1px solid var(--border-subtle)!important;border-radius:9px!important;
  background:var(--surface-secondary)!important;color:var(--text-secondary)!important;font-family:inherit!important;font-size:12px!important;font-weight:500!important;
}
.product-registry-page .registry-filters .fc-select-trigger,.issues-page .registry-filters .fc-select-trigger{padding:0 10px!important}
.product-registry-page .filter-search-input,.issues-page .filter-search-input{padding-left:34px!important;color:var(--text-primary)!important}
.product-registry-page .registry-filters .fc-select-trigger:hover,.issues-page .registry-filters .fc-select-trigger:hover,
.product-registry-page .issues-more-filters>summary:hover,.issues-page .issues-more-filters>summary:hover{border-color:var(--border-strong)!important;background:var(--surface-elevated)!important;color:var(--text-primary)!important}
.pep-filter{display:inline-flex!important;min-width:0;align-items:center!important;justify-content:center!important;flex-direction:row!important;margin:0!important;align-self:center!important;color:var(--text-secondary)!important;font-size:12px!important;line-height:1!important}
.pep-filter .fc-select{max-width:230px!important;margin:0!important}
.pep-filter .fc-select-trigger{width:auto!important;max-width:230px!important;margin:0!important}
.pep-filter .fc-select-label{max-width:190px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.issues-more-filters-popover{border-color:var(--border-strong);background:var(--surface-elevated);color:var(--text-primary);box-shadow:0 18px 48px rgba(0,0,0,.35)}

.product-registry-page .registry-nav-tabs{
  min-height:48px;margin:0;padding:7px 16px;display:flex;align-items:center;gap:6px;
  border-bottom:1px solid var(--border-subtle);background:var(--surface-tertiary);
}
.product-registry-page .registry-nav-tab{
  min-height:32px;padding:0 12px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--text-muted);
}
.product-registry-page .registry-nav-tab.active{
  border-color:var(--border-subtle);background:var(--surface-secondary);color:var(--text-primary);box-shadow:none;
}
.product-registry-page .org-group-section{
  margin:14px;overflow:hidden;border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface-primary);box-shadow:none;
}
.product-registry-page .org-group-header{padding:12px 16px;border-bottom:1px solid var(--border-subtle);background:var(--surface-secondary)}
.product-registry-page .org-group-title,.product-registry-page .org-title-link,.product-registry-page .org-title-text{color:var(--text-primary)}
.product-registry-page .org-group-meta{color:var(--text-muted)}
.product-registry-page .btn-org-add-part,.product-registry-page .btn-org-detail,
.product-registry-page .btn-part-edit,.product-registry-page .btn-part-copy-link{
  border-color:var(--border-strong);background:var(--surface-secondary);color:var(--text-primary);
}

.settings-page>.card,.settings-page>div>.card,.projects-page .project-card,.projects-page .new-project,
.form-canvas .form-section,.entity-detail-page>.page-head,.entity-detail-page .card,
.product-dashboard-page .fc-kpi-card,.product-dashboard-page .fc-dash-card,.product-dashboard-page .fc-widget-card,.product-dashboard-page .fc-overdue-card{
  border:1px solid var(--border-subtle);border-radius:10px;background:var(--surface-primary);color:var(--text-primary);box-shadow:none;
}
.settings-page input:not([type="checkbox"]):not([type="radio"]),.settings-page textarea,.settings-page select,
.form-canvas input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),.form-canvas textarea,.form-canvas select{
  border-color:var(--border-subtle)!important;background:var(--surface-secondary)!important;color:var(--text-primary)!important;
}
.settings-page input::placeholder,.settings-page textarea::placeholder,.form-canvas input::placeholder,.form-canvas textarea::placeholder{color:var(--text-muted)}
.form-canvas .form-page-title,.settings-page .page-head h1,.projects-page .page-head h1{color:var(--text-primary)}

@media(max-width:1180px){
  .product-registry-page .registry-page-head,.issues-page .registry-page-head{min-height:0;align-items:flex-start!important;padding:20px}
  .product-registry-page .registry-filters,.issues-page .registry-filters{padding:12px!important;flex-wrap:wrap!important}
  .product-registry-page .filter-search-wrap,.issues-page .filter-search-wrap{width:100%!important;max-width:none!important;flex:1 0 100%!important}
  .product-registry-page .filter-controls-group,.issues-page .filter-controls-group{width:100%!important;justify-content:flex-start!important;overflow:visible;flex:1 1 100%!important;flex-wrap:wrap!important;padding-bottom:2px}
  .product-registry-page .org-group-section{margin:12px}
}
@media(max-width:600px){
  .product-registry-shell,.issues-registry-shell{border-radius:12px}
  .product-registry-page .registry-title,.issues-page .registry-title{font-size:25px}
  .product-registry-page .registry-actions,.issues-page .registry-actions{width:100%;justify-content:flex-start}
  .product-registry-page .btn-registry-primary,.issues-page .btn-registry-primary{flex:1 1 auto;justify-content:center}
}

/* Shared table contract. Column widths and mobile cards remain domain-specific.
   Specificity intentionally beats legacy registry aliases during migration. */
html body table.app-table{width:100%!important;max-width:none!important;min-width:860px;table-layout:fixed!important;border-collapse:separate!important;border-spacing:0!important;margin:0!important;background:var(--surface-primary)!important;color:var(--text-primary);font-family:Inter,system-ui,sans-serif!important;font-size:var(--table-font-size)!important;text-align:left}
html body table.app-table thead,html body table.app-table thead tr{background:var(--surface-tertiary)!important;box-shadow:none!important}
html body table.app-table th{height:34px!important;padding:7px 10px!important;background:var(--surface-tertiary)!important;color:var(--text-secondary)!important;border:0!important;border-bottom:1px solid var(--border-subtle)!important;font:400 11px/15px Inter,system-ui,sans-serif!important;letter-spacing:0!important;text-transform:none!important;white-space:normal!important;overflow:visible!important;text-align:left;vertical-align:middle}
html body table.app-table thead th{position:sticky;top:0;z-index:3}
html body table.app-table tbody tr{height:var(--table-row-height)!important;background:transparent!important;box-shadow:none!important;cursor:default!important}
html body table.app-table tbody tr.rowlink{cursor:pointer!important}
html body table.app-table tbody tr:hover{background:var(--hover-bg)!important;box-shadow:none!important}
html body table.app-table td{height:var(--table-row-height)!important;padding:var(--table-cell-padding)!important;border:0!important;border-bottom:1px solid var(--border-subtle)!important;background:transparent!important;color:var(--text-primary)!important;font:400 var(--table-font-size)/17px Inter,system-ui,sans-serif!important;vertical-align:middle!important;white-space:normal!important;overflow-wrap:anywhere;overflow:hidden!important;text-overflow:ellipsis!important}
html body table.app-table :is(.issue-title-text,.receiver-name,.issue-code,.prescription-link,.created-date,.due-date-val,.amount-val){font:400 var(--table-font-size)/17px Inter,system-ui,sans-serif!important;color:inherit;letter-spacing:0}
html body table.app-table :is(.receiver-org,.created-time,.issue-category,.muted){font-size:var(--table-meta-size)!important;line-height:15px!important;color:var(--text-muted)}
html body table.app-table :is(.receiver-name,.receiver-org,.issue-title-text){white-space:normal!important;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
html body table.app-table :is(.due-date-val,.created-date,.amount-val,.issue-code,.prescription-link){white-space:nowrap!important;font-variant-numeric:tabular-nums;overflow:visible!important}
html body table.app-table :is(.th-fine-amount,.td-fine-amount){text-align:right}
html body table.app-table a:not(.btn){color:var(--text-primary);text-decoration:none}
html body table.app-table a:not(.btn):hover{text-decoration:underline;text-underline-offset:3px}
html body table.app-table :is(.btn,.btn-part-edit,.btn-part-remove,.btn-part-copy-link){min-height:30px!important;height:auto!important;border-radius:var(--control-radius)!important;padding:5px 9px!important;font:500 12px/18px Inter,system-ui,sans-serif!important;white-space:nowrap}
html body table.app-table .btn-part-edit{width:32px;padding:5px!important;display:inline-flex;align-items:center;justify-content:center}
html body table.app-table :is(.th-row-actions,.td-row-actions){width:52px!important;min-width:52px;padding-inline:7px!important;text-align:center}
.row-action-trigger{display:inline-grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--text-secondary);font:600 22px/1 var(--font-ui);cursor:pointer;transition:background .14s,border-color .14s,color .14s}
.row-action-trigger:hover,.row-action-trigger:focus-visible,.row-action-trigger:popover-open{background:var(--surface-secondary);border-color:var(--border-strong);color:var(--text-primary)}
html body .row-action-menu{position:fixed;inset:auto;min-width:176px;max-width:240px;margin:0;padding:5px;border:1px solid var(--border-strong);border-radius:9px;background:var(--surface-elevated);box-shadow:0 12px 34px #0003;color:var(--text-primary)}
html body .row-action-menu a,html body .row-action-menu button{display:block;width:100%;box-sizing:border-box;padding:9px 11px;border:0;border-radius:6px;background:transparent;color:var(--text-primary);font:500 12px/1.3 var(--font-ui);text-align:left;text-decoration:none;cursor:pointer}
html body .row-action-menu a:hover,html body .row-action-menu button:hover,html body .row-action-menu :is(a,button):focus-visible{background:var(--surface-secondary);text-decoration:none!important}
html body .row-action-menu form{margin:0}
html body .row-action-menu .row-action-danger{color:var(--danger)}
html body .row-action-menu .row-action-danger:hover,html body .row-action-menu .row-action-danger:focus-visible{background:var(--danger-soft)}
/* Inline table actions become full-width rows inside the popover. */
html body .row-action-menu :is(.row-actions-group,.party-rule-actions){display:grid!important;grid-template-columns:minmax(0,1fr);justify-content:stretch!important;justify-items:stretch;align-items:stretch;gap:2px;width:100%;min-width:0}
html body .row-action-menu :is(.row-actions-group,.party-rule-actions) form{width:100%;margin:0!important}
html body .row-action-menu :is(.row-actions-group,.party-rule-actions) :is(a,button){display:block!important;width:100%!important;min-height:34px!important;padding:8px 11px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--text-primary)!important;font:500 12px/1.3 var(--font-ui)!important;text-align:left!important;box-shadow:none!important}
html body .row-action-menu :is(.row-actions-group,.party-rule-actions) :is(a,button):hover{background:var(--surface-secondary)!important}
html body .row-action-menu :is(.row-actions-group,.party-rule-actions) form button{color:var(--danger)!important}
html body .registry-scroll-pane,html body .table-scroll,html body .table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
html body .registry-table-container{min-width:0;background:var(--surface-primary);padding:0 18px 18px}
html body .status-pill{display:inline-flex;align-items:center;gap:0;min-height:22px;height:auto;padding:2px 7px;border:1px solid color-mix(in srgb,currentColor 20%,transparent);border-radius:5px;background:color-mix(in srgb,currentColor 5%,var(--surface-primary))!important;font:500 11px/16px var(--font-ui);letter-spacing:0;white-space:nowrap;max-width:100%;box-shadow:none}
html body .due-overdue-tag{height:auto;min-height:20px;padding:2px 5px;border-radius:5px;font:500 10px/16px Inter,system-ui,sans-serif;white-space:nowrap}
html body .registry-filters .filter-controls-group>label:has(input[type=checkbox]){display:inline-flex;align-items:center;gap:6px;white-space:nowrap;flex:0 0 auto;font:400 12px/18px Inter,system-ui,sans-serif;margin:0}
html body .registry-filters .filter-controls-group>.fc-select,html body .registry-filters .filter-controls-group>.pep-filter,html body .registry-filters .filter-controls-group>details{flex:0 0 auto}
html body .registry-filters{flex-wrap:wrap!important}
html body .registry-filters .filter-controls-group{flex-wrap:wrap!important;justify-content:flex-start!important;flex:1 1 auto!important}
html body .registry-title{font-family:Inter,system-ui,sans-serif!important}
html body :is(.registry-empty,.empty){padding:32px 20px;text-align:center;color:var(--text-muted);font-size:13px;line-height:1.6}
html body :is(input[type=checkbox],input[type=radio]){width:16px;height:16px;flex-shrink:0;accent-color:var(--text-secondary);vertical-align:middle}
html body :is(.form,.form-canvas,.settings-page,.service-admin) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select,textarea){border:1px solid var(--border-strong);border-radius:var(--control-radius);background:var(--surface-secondary);color:var(--text-primary);font-family:inherit;font-size:13px}
html body :is(.form,.form-canvas,.settings-page,.service-admin) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),select){min-height:var(--control-height)}
html body :is(button,a,input,select,textarea,summary):focus-visible{outline:2px solid var(--text-secondary);outline-offset:3px}
html body :is(dialog,.modal-card){border:1px solid var(--border-strong);border-radius:var(--panel-radius);background:var(--surface-primary);color:var(--text-primary)}
html body :is(.page-head,.form-page-head) h1{font-family:Inter,system-ui,sans-serif;font-size:24px;line-height:1.25;letter-spacing:-.035em;color:var(--text-primary)}
html body :is(.card,.form-section){border-color:var(--border-subtle);border-radius:var(--panel-radius);background:var(--surface-primary);color:var(--text-primary)}
html body :is(.btn,.btn-registry-primary,.btn-registry-export,.btn-org-add-part,.btn-org-detail,.btn-part-remove,.btn-part-copy-link){border-radius:var(--control-radius);font-family:Inter,system-ui,sans-serif;font-size:13px;font-weight:500;line-height:18px;box-shadow:none}
html body :is(.btn-primary,.btn-registry-primary){background:var(--text-primary);color:var(--surface-primary);border-color:var(--text-primary)}
html body :is(.btn-danger,.btn-part-remove){background:var(--danger-soft);color:var(--danger);border:1px solid var(--danger)}
html body .btn-ghost{background:var(--surface-secondary);color:var(--text-primary);border:1px solid var(--border-strong)}
html body :is(.pagination,.pager){display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;padding:16px}
html body :is(.pagination,.pager) :is(a,button){min-width:32px;min-height:32px;padding:6px 10px;border:1px solid var(--border-strong);border-radius:var(--control-radius);background:var(--surface-secondary);color:var(--text-primary)}
.ui-form-inline{margin:0;display:inline}
.ui-text-strong{font-weight:500}
.ui-table-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}
html body table.app-table .row-actions-group{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;white-space:normal}
html body table.app-table.party-members-table{min-width:0}
html body table.app-table.party-responsibility-table{min-width:0}
html body .parties-page table.app-table{min-width:0!important}

/* Keep the next task visible before long record details on small screens. */
html body .record-rail-note a{color:var(--text-secondary);font-weight:600;text-decoration:underline;text-underline-offset:3px}
html body .measure-compose-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
html body .measure-compose-help{flex:none;color:var(--text-secondary);font-size:12px;font-weight:600;text-decoration:none}
html body .measure-compose-help:hover{text-decoration:underline;text-underline-offset:3px}

/* Long organization names must not determine the height of a registry row. */
html body .measure-registry-table .td-measure-party{overflow:hidden!important}
html body .measure-registry-table .measure-party-name{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:1;line-clamp:1;line-height:17px;overflow-wrap:anywhere}

/* Make help and the primary mobile creation action understandable without tooltips. */
html body .sidebar .sidebar-help-btn{width:auto;min-width:30px;padding:0 8px;gap:6px;font-size:11px;font-weight:600}
@media(max-width:780px){
 html body .record-workspace>.record-rail{order:-1!important}
 html body .record-control .record-action{order:1}
 html body .record-control .record-deadline{order:2}
 html body .measure-compose-head{align-items:flex-start}
 html body .measure-compose-help{padding-top:5px}
 html body .bottomnav .fab{width:auto!important;height:auto!important;min-height:44px;margin-top:0!important;border-radius:0!important;background:transparent!important;color:var(--text-muted)!important;box-shadow:none!important;display:flex!important}
 html body .bottomnav .fab-mark{display:grid;width:30px;height:30px;place-items:center;border-radius:50%;background:var(--accent);color:var(--text-inverse);font-size:19px;line-height:1}
}
@media(max-width:480px){html body .measure-compose-head{display:block}html body .measure-compose-help{display:inline-block;margin-top:7px}}
html body table.app-table :is(.th-created,.td-created,.th-fine-created,.td-fine-created){width:104px}
html body table.app-table :is(.th-prescription,.td-prescription){width:105px}
html body table.app-table :is(.th-due,.td-due){width:160px}
html body table.app-table :is(.th-fine-due,.td-fine-due){width:120px}
html body table.app-table :is(.th-tmpl-actions,.td-tmpl-actions){width:250px}
html body table.app-table :is(.th-fine-amount,.td-fine-amount){width:110px}
html body table.app-table :is(.btn-danger,.btn-part-remove){background:var(--danger-soft)!important;color:var(--danger)!important;border-color:var(--danger)!important}
html body .registry-filters.htmx-request{opacity:.65;transition:opacity .15s}
@media(max-width:780px){html body .issues-page .registry-scroll-pane{display:none}html body .registry-table-container{padding:0 10px 14px}html body .registry-page-head{flex-wrap:wrap;gap:16px}html body .filter-search-wrap{min-width:0!important}html body table.app-table{min-width:760px}}

/* Row actions stay reachable when a table needs horizontal navigation. */
html body table.app-table :is(.th-tmpl-norm,.td-tmpl-norm){width:auto}
html body table.app-table :is(.th-tmpl-actions,.td-tmpl-actions,.th-part-actions,.td-part-actions,.th-part-org-actions,.td-part-org-actions){position:sticky;right:0;background:var(--surface-primary)!important;z-index:1}

/* Tables without a dedicated mobile list become readable label/value cards. */
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:780px){
 html body table.app-table-card-mobile{display:block!important;min-width:0!important;width:100%!important;background:transparent!important}
 html body table.app-table-card-mobile thead{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
 html body table.app-table-card-mobile tbody{display:grid!important;gap:10px}
 html body table.app-table-card-mobile tbody tr{display:grid!important;height:auto!important;padding:12px 14px;border:1px solid var(--border-subtle)!important;border-radius:12px;background:var(--surface-primary)!important}
 html body table.app-table-card-mobile tbody td{position:static!important;display:grid!important;grid-template-columns:minmax(108px,.42fr) minmax(0,1fr);gap:12px;width:100%!important;height:auto!important;min-height:0!important;padding:7px 0!important;border:0!important;overflow:visible!important;text-overflow:clip!important;align-items:start}
 html body table.app-table-card-mobile tbody td::before{content:attr(data-label);color:var(--text-muted);font:600 11px/17px Inter,system-ui,sans-serif}
 html body table.app-table-card-mobile tbody td[data-label=""]{display:block!important}
 html body table.app-table-card-mobile tbody td[data-label=""]::before{display:none}
 html body table.app-table-card-mobile tbody td[data-label=""]>a,
 html body table.app-table-card-mobile tbody td[data-label=""]>small{display:block!important;white-space:normal!important;overflow-wrap:anywhere}
 html body table.app-table-card-mobile tbody td[data-label=""]>small{margin-top:5px;color:var(--text-muted)}
 html body table.app-table-card-mobile .row-actions-group{justify-content:flex-start!important}
 html body table.app-table-card-mobile :is(.td-tmpl-actions,.td-part-actions,.td-part-org-actions,.mobile-card-actions){display:block!important;margin-top:4px;padding-top:10px!important;border-top:1px solid var(--border-subtle)!important}
 html body table.app-table-card-mobile :is(.receiver-name,.receiver-org,.issue-title-text,.text-truncate){display:block!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;-webkit-line-clamp:unset!important}
 html body .registry-scroll-pane:has(>table.app-table-card-mobile){overflow:visible!important}
}

.measure-mobile-list{display:none}
@media(max-width:780px){
  html body .measure-desktop-list{display:none!important}
  html body .measure-mobile-list{display:grid;gap:8px}
  html body .measure-mobile-card{display:grid;grid-template-columns:58px minmax(0,1fr);gap:8px 10px;padding:14px;border:1px solid var(--border-subtle);border-radius:12px;background:var(--surface-primary);color:var(--text-primary);text-decoration:none}
  html body .measure-mobile-code{grid-column:1;grid-row:1/3;padding-top:2px;font-weight:500;font-size:12px;color:var(--text-secondary)}
  html body .measure-mobile-copy{grid-column:2;display:grid;gap:4px;min-width:0}
  html body .measure-mobile-copy b{font-size:13px;line-height:1.4;overflow-wrap:anywhere}
  html body .measure-mobile-copy small{color:var(--text-muted);font-size:10px;line-height:1.35}
  html body .measure-mobile-meta{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
  html body .measure-mobile-meta strong{white-space:nowrap;font-size:12px}
}

/* The toolbar is a single wrapping layout, never a nested multi-row flex item. */
html body .registry-filters .filter-controls-group{display:contents!important}
html body .registry-filters .filter-search-wrap{align-self:center!important}
html body .registry-filters .filter-controls-group>label:has(input[type=checkbox]){height:32px}
html body .registry-filters .pep-filter{height:32px}
@media(min-width:781px) and (max-width:1500px){
 html body .registry-filters .filter-search-wrap{flex:1 0 100%!important;max-width:none!important;width:100%!important}
}
/* Colgroups allocate exactly 100%; legacy px and percentage cell widths cannot add up. */
html body table.registry-fit{min-width:0!important;width:100%!important}
html body table.registry-fit th,html body table.registry-fit td{width:auto!important;padding-left:8px!important;padding-right:8px!important}
html body table.registry-fit .due-cell-wrap{flex-wrap:wrap;gap:3px}
html body table.registry-fit .created-date{font-size:12px!important}
html body table.registry-fit .doc-links-wrap{display:flex;flex-wrap:wrap;gap:4px;white-space:normal}
@media(min-width:781px) and (max-width:1100px){
 html body table.registry-fit{min-width:860px!important}
}

.table-top-scroll{overflow-x:scroll;overflow-y:hidden;height:16px;max-width:100%;scrollbar-color:var(--text-muted) var(--surface-tertiary);background:var(--surface-tertiary)}
.table-top-scroll[hidden]{display:none!important}
.table-top-scroll>div{height:1px}

html body .product-registry-page .registry-filters,html body .issues-page .registry-filters{flex-wrap:wrap!important;align-items:center!important}
html body table.registry-fit .status-pill,html body table.registry-fit .status-text{max-width:none!important;overflow:visible!important;text-overflow:clip!important}

html body table.registry-fit th{overflow-wrap:anywhere;hyphens:auto}

@media(min-width:781px){html body table.registry-fit .hide-m{display:table-cell!important}}
@media(min-width:781px) and (max-width:1599px){
 html body table.registry-fit :is(.th-presc-issues,.td-presc-issues,.th-presc-fine,.td-presc-fine,.th-presc-created,.td-presc-created){display:none!important}
 html body table.registry-fit :is(.th-presc-status,.td-presc-status){width:13%!important}
 html body table.registry-fit :is(.th-presc-code,.td-presc-code){width:11%!important}
 html body table.registry-fit :is(.th-presc-photo,.td-presc-photo){width:12%!important}
 html body table.registry-fit :is(.th-presc-due,.td-presc-due){width:14%!important}
 html body table.registry-fit :is(.th-presc-receiver,.td-presc-receiver){width:21%!important}
 html body table.registry-fit :is(.th-presc-doc,.td-presc-doc){width:29%!important}
}
@media(min-width:1600px){
 html body table.registry-fit :is(.th-presc-issues,.td-presc-issues,.th-presc-fine,.td-presc-fine,.th-presc-created,.td-presc-created){display:table-cell!important}
 html body table.registry-fit :is(.th-presc-status,.td-presc-status){width:10%!important}
 html body table.registry-fit :is(.th-presc-code,.td-presc-code){width:8%!important}
 html body table.registry-fit :is(.th-presc-issues,.td-presc-issues){width:10%!important}
 html body table.registry-fit :is(.th-presc-photo,.td-presc-photo){width:10%!important}
 html body table.registry-fit :is(.th-presc-due,.td-presc-due){width:11%!important}
 html body table.registry-fit :is(.th-presc-receiver,.td-presc-receiver){width:16%!important}
 html body table.registry-fit :is(.th-presc-fine,.td-presc-fine){width:7%!important}
 html body table.registry-fit :is(.th-presc-doc,.td-presc-doc){width:28%!important}
}
html body table.registry-fit :is(.th-presc-doc,.td-presc-doc){min-width:0}

html body .registry-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px 0 2px;color:var(--text-secondary);font-size:13px}
html body .registry-page-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;border:1px solid var(--border-strong);border-radius:7px;background:var(--surface-primary);color:var(--text-primary);font-weight:500;text-decoration:none;white-space:nowrap}
html body a.registry-page-btn:hover{background:var(--surface-secondary);border-color:var(--text-muted)}
html body .registry-page-btn.is-disabled{opacity:.45;cursor:not-allowed}
html body .registry-page-summary{display:grid;min-width:120px;text-align:center;line-height:1.35}
html body .registry-page-summary strong{color:var(--text-primary);font-weight:600}
html body .registry-page-summary small{color:var(--text-muted);font-size:11px}
@media(max-width:520px){html body .registry-pagination{justify-content:space-between;gap:7px}html body .registry-page-btn{min-height:40px;padding:8px 10px}html body .registry-page-summary{min-width:0;font-size:12px}}

/* Workspace rhythm shared with the product presentation. */
:root{--ui-fast:140ms;--ui-normal:200ms;--ui-ease:cubic-bezier(.2,.7,.2,1)}
html body .content{min-width:0}
html body .workspace-main .content{font-family:var(--font-ui);font-size:13px;font-weight:400;line-height:1.5;letter-spacing:0}
html body .workspace-main .content :is(h2,h3){font-weight:500;letter-spacing:-.018em}
html body .workspace-main .content :is(b,strong){font-weight:500}
html body .workspace-main .content :is(p,li){line-height:1.55}
html body :is(.registry-page-head,.page-head,.form-page-head){gap:16px}
html body :is(.registry-title,.page-head h1,.form-page-title,.record-hero h1){font-weight:500;letter-spacing:-.035em}
html body :is(.btn,.btn-registry-primary,.btn-registry-export,.recipient-sign-link,button.fc-select-trigger){transition:background-color var(--ui-fast),border-color var(--ui-fast),color var(--ui-fast),box-shadow var(--ui-fast);transform:none}
html body :is(.btn,.btn-registry-primary,.btn-registry-export):active{filter:brightness(.94);transform:none}
html body table.app-table tbody tr{transition:background-color 120ms ease-out}
@media(prefers-reduced-motion:reduce){html body table.app-table tbody tr,html body :is(.btn,.btn-registry-primary,.btn-registry-export,button.fc-select-trigger){transition:none!important}}
html body :is(input,textarea,select){transition:border-color var(--ui-fast),box-shadow var(--ui-fast)}
html body :is(input,textarea,select):focus-visible{outline-offset:2px}
html body :is(.record-main,.record-control,.record-hero,.fc-dash-card,.fc-widget-card,.project-card){border-color:var(--border-subtle);box-shadow:none;background:var(--surface-primary)}
html body .record-rail .record-control{border:1px solid var(--border-subtle)}
html body .record-workspace{align-items:start}
html body :is(.record-hero,.record-section){padding:16px 18px}
html body :is(.recipient-detail-focus,.record-notice){border-radius:8px;padding:10px 14px}
html body .recipient-detail-focus{border-color:var(--border-subtle);background:var(--surface-secondary)}
html body .recipient-detail-focus .recipient-signature strong{font-size:13px}
html body .recipient-detail-focus .recipient-explanation{margin:0}
html body .registry-count-pill{display:inline-flex;align-items:center;justify-content:center;line-height:1.4}
html body .registry-filters :is(.filter-search-wrap,.fc-select,.pep-filter,.issues-more-filters){margin-block:0!important;align-self:center!important}
html body .registry-filters :is(input.filter-search-input,select.filter-select,.fc-select-trigger,summary){box-sizing:border-box;height:32px!important;min-height:32px!important}
html body .registry-filters .filter-search-wrap{display:flex;align-items:center}
html body .registry-filters .filter-search-wrap>input{margin:0!important;width:100%}
html body .registry-filters .filter-controls-group>label:has(input[type=checkbox]){gap:7px;line-height:18px!important;padding:0!important}
html body .registry-filters input[type=checkbox]{margin:0!important}
html body .table-top-scroll{border-radius:5px;scrollbar-width:auto}
html body .table-top-scroll:focus-visible{outline:2px solid var(--text-secondary);outline-offset:2px}
html body table.admin-users :is(th,td):nth-child(2){position:sticky;left:0;background:var(--surface-primary);z-index:2}
html body table.admin-users thead th:nth-child(2),html body table.app-table thead :is(.th-tmpl-actions,.th-part-actions,.th-part-org-actions){z-index:4}
html body :is(.form-section,.card,.record-section) :is(label,.field-label){line-height:1.5}
html body :is(.modal-card,dialog){box-shadow:0 24px 70px #0003}
html body dialog::backdrop{background:#0007}
html body .ui-file-feedback{display:block;font:400 12px/1.6 Inter,system-ui,sans-serif;color:var(--text-secondary);margin-top:6px;overflow-wrap:anywhere}
html body .ui-request-status{font:400 12px/1.5 Inter,system-ui,sans-serif;color:var(--text-secondary);padding:6px 18px;background:var(--surface-tertiary);border-bottom:1px solid var(--border-subtle)}
html body .ui-request-status[hidden]{display:none}
html body [aria-busy=true]{cursor:progress}
@media(prefers-reduced-motion:no-preference){
 html body details[open]>*:not(summary){animation:ui-disclose var(--ui-normal) var(--ui-ease)}
 html body dialog[open],html body .ui-content-updated{animation:ui-appear var(--ui-normal) var(--ui-ease)}
 html body .ui-file-feedback{animation:ui-disclose var(--ui-normal) var(--ui-ease)}
 html body .sidebar :is(.nav-item,a){transition:background-color var(--ui-fast),color var(--ui-fast)}
}
@keyframes ui-disclose{from{opacity:.4;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@keyframes ui-appear{from{opacity:.65}to{opacity:1}}
@media(max-width:780px){html body .registry-page-head{padding:16px!important}html body .registry-actions{gap:8px}html body .record-workspace{display:flex;flex-direction:column}html body .record-main,html body .record-rail{width:100%;min-width:0}html body .recipient-detail-focus{width:100%}html body .record-hero h1{font-size:21px}html body .registry-filters{gap:8px!important}}

@media(max-width:780px){
  html body .measure-registry-table thead{display:none}
  html body .measure-registry-table,html body .measure-registry-table tbody{display:block;width:100%}
  html body .measure-registry-table tr{display:grid;grid-template-columns:68px minmax(0,1fr) auto;gap:5px 10px;padding:15px 14px;border-bottom:1px solid var(--border-subtle)}
  html body .measure-registry-table td{display:block;min-width:0;padding:0!important;border:0!important;white-space:normal}
  html body .measure-registry-table td:nth-child(1){grid-column:1;grid-row:1/4;padding-top:2px!important}
  html body .measure-registry-table td:nth-child(2){grid-column:2/4;grid-row:1}
  html body .measure-registry-table td:nth-child(2) b{display:block;overflow-wrap:anywhere;font-size:13px;line-height:1.35}
  html body .measure-registry-table td:nth-child(2) small{display:block;margin-top:3px}
  html body .measure-registry-table td:nth-child(3){display:none}
  html body .measure-registry-table td:nth-child(4){grid-column:2;grid-row:2;font-weight:700}
  html body .measure-registry-table td:nth-child(5){grid-column:2;grid-row:3;color:var(--text-muted);font-size:11px}
  html body .measure-registry-table td:nth-child(5)::before{content:"Срок: "}
  html body .measure-registry-table td:nth-child(6){grid-column:3;grid-row:2/4;align-self:center;justify-self:end}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}html body *,html body *::before,html body *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Legacy detail/dashboard templates use the same typography and surface tokens. */
html body :is(.record-hero h1,.record-section-head h2,.record-control-head,.record-person b,.premium-dash-head h1,.premium-panel-head h2,.premium-metrics strong){color:var(--text-primary)}
html body :is(.record-overline,.record-crumbs,.premium-kicker,.premium-panel-head>div>span){color:var(--text-muted)}
html body .premium-dash-head h1{font-size:24px;line-height:1.25;letter-spacing:-.035em;margin:8px 0}
html body :is(.premium-summary,.premium-overdue,.premium-panel,.premium-widget){background:var(--surface-primary);border-color:var(--border-subtle);border-radius:10px;box-shadow:none}
html body .premium-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html body .premium-metrics>a{min-width:0;background:var(--surface-secondary);border-color:var(--border-subtle);padding:14px;border-radius:8px}
html body .premium-metrics :is(span,small){color:var(--text-secondary);white-space:normal;overflow:visible;line-height:1.5}
html body .premium-metrics strong{font-size:26px}
html body :is(.record-primary-action,.record-secondary-action,.execution-primary,.premium-period button){font-family:Inter,system-ui,sans-serif;font-size:13px}
html body .record-crumbs{line-height:1.6}
html body :is(.product-registry-shell,.issues-registry-shell){min-height:0;padding-bottom:12px}
html body .record-main{min-height:0}
@media(max-width:780px){html body .premium-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}html body .premium-dash-head h1{font-size:24px}}
html body .premium-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:120px;padding:22px;color:var(--text-secondary);font-size:13px;line-height:1.6}
html body .premium-empty i{font-style:normal;color:var(--success)}
html body .record-doc-copy b{color:var(--text-primary)}
html body .record-doc-actions :is(a,label){font:500 12px/1.5 Inter,system-ui,sans-serif;background:var(--surface-secondary);border-color:var(--border-strong);color:var(--text-primary);min-height:32px;padding:7px 10px;border-radius:7px}
html body .record-doc-icon{background:var(--surface-secondary);color:var(--text-secondary)}
html body .record-doc{border-color:var(--border-subtle)}

/* Subscription accounting uses the same neutral controls and compact cards. */
.subscription-page{max-width:1280px;margin:0 auto;min-width:0}
.subscription-page .card{padding:20px;margin:16px 0;min-width:0}
.subscription-page .form{display:grid;gap:16px}
.subscription-page label{display:grid;gap:6px;min-width:0}
.subscription-page :is(input:not([type=hidden]):not([type=checkbox]),select,textarea){width:100%;min-width:0;box-sizing:border-box}
.subscription-page .row2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.subscription-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:20px 0}
.subscription-toolbar input{flex:1 1 240px!important;width:auto!important}
.subscription-toolbar select{flex:0 1 240px;width:auto!important}
.subscription-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.subscription-summary>div{display:grid;gap:6px}
.subscription-note,.subscription-page small{color:var(--ui-text-muted)}
.subscription-error{padding:12px;border:1px solid var(--ui-danger,#c55);border-radius:8px}
.subscription-projects{display:grid;gap:10px;max-height:280px;overflow:auto;padding:12px 0}
.subscription-projects label{display:flex;align-items:center;gap:8px}
.subscription-page summary{cursor:pointer;padding:8px 0;font-weight:600}
.subscription-page details[open]>form{margin-top:16px}
.subscription-event{border-top:1px solid var(--ui-border,#555);padding:12px 0;overflow-wrap:anywhere}
.subscription-page .table-scroll{overflow:auto}
.subscription-page fieldset{min-width:0;border:1px solid var(--ui-border,#555);border-radius:8px;padding:12px}
.subscription-page .app-table{min-width:760px;width:100%}
@media(max-width:700px){.subscription-page .row2,.subscription-summary{grid-template-columns:1fr}.subscription-page .card{padding:14px}.subscription-page h1{overflow-wrap:anywhere}}

/* Audit 2026-09-24: one accessible control per custom select. The later
   form-field rules must not restore geometry on the native value carrier. */
html body select.fc-native-select-hidden,html body .registry-filters select.fc-native-select-hidden{position:absolute!important;width:1px!important;height:1px!important;min-width:0!important;min-height:0!important;margin:-1px!important;padding:0!important;border:0!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important;clip:rect(0,0,0,0)!important}

/* Compact issue registry: retain category context under the title instead of
   squeezing it into an unreadable 70px column on laptop widths. */
html body .issue-title-category{display:block;margin-top:2px;color:var(--text-muted);font:400 11px/15px Inter,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:781px) and (max-width:1499px){
 html body table.registry-fit :is(.th-category,.td-category,.th-prescription,.td-prescription,.th-created,.td-created){display:none!important}
 html body table.registry-fit :is(.th-status,.td-status){width:13%!important}
 html body table.registry-fit :is(.th-code,.td-code){width:7%!important}
 html body table.registry-fit :is(.th-title,.td-title){width:29%!important}
 html body table.registry-fit :is(.th-photo,.td-photo){width:12%!important}
 html body table.registry-fit :is(.th-due,.td-due){width:16%!important}
 html body table.registry-fit :is(.th-receiver,.td-receiver){width:23%!important}
}
@media(min-width:1500px){
 html body table.registry-fit :is(.th-status,.td-status){width:11%!important}
 html body table.registry-fit :is(.th-code,.td-code){width:7%!important}
 html body table.registry-fit :is(.th-title,.td-title){width:26%!important}
 html body table.registry-fit :is(.th-photo,.td-photo){width:11%!important}
 html body table.registry-fit :is(.th-due,.td-due){width:13%!important}
 html body table.registry-fit :is(.th-receiver,.td-receiver){width:23%!important}
 html body table.registry-fit :is(.th-prescription,.td-prescription){width:9%!important}
}

html body .registry-photo-stack{display:flex;align-items:center;gap:3px;height:28px;min-width:0;white-space:nowrap}
html body .registry-photo-thumb{position:relative;z-index:1;display:block;width:28px;height:28px;flex:0 0 28px;margin:0;border:1px solid var(--surface-primary);border-radius:3px;background:var(--surface-tertiary);box-shadow:0 1px 2px #0002;overflow:visible;transition:box-shadow 140ms ease}
html body .registry-photo-thumb img{display:block;width:100%;height:100%;border-radius:3px;object-fit:cover;object-position:center}
html body .registry-photo-thumb:hover,html body .registry-photo-thumb:focus-visible{z-index:12;outline:2px solid var(--border-focus);outline-offset:1px}
.registry-photo-hover{position:fixed;z-index:3000;pointer-events:none;width:200px;height:150px;padding:4px;border:1px solid var(--border-strong);border-radius:9px;background:var(--surface-primary);object-fit:contain;box-shadow:0 10px 30px #0004}
html body .registry-photo-thumb.is-gallery-only{display:none}
html body .registry-photo-more{position:relative;z-index:4;display:grid;place-items:center;min-width:25px;height:25px;margin-left:0;padding:0 4px;border:1px solid var(--border-strong);border-radius:6px;background:var(--surface-secondary);color:var(--text-secondary);font:600 10px/1 Inter,system-ui,sans-serif;cursor:pointer}
html body .registry-photo-more:hover,html body .registry-photo-more:focus-visible{z-index:9;background:var(--surface-primary);color:var(--text-primary);outline:2px solid var(--focus-ring,#8b6f47);outline-offset:1px}
@media(hover:none){html body .registry-photo-thumb{width:32px;flex-basis:32px}html body .registry-photo-thumb img{object-fit:cover}}
html body .registry-code-date{display:block;margin-top:2px;color:var(--text-muted);font-size:11px;line-height:15px;white-space:nowrap}
html body .issues-page table.registry-fit .td-title .issue-title-text{-webkit-line-clamp:1!important;white-space:nowrap!important;text-overflow:ellipsis}

.mobile-search-btn{display:none;border:0;background:transparent;color:var(--text-primary)}
@media(max-width:780px){
 html body .mobile-header-bar{gap:8px;height:56px}
 html body .mobile-header-bar .brand-name{margin-right:auto}
 html body .mobile-search-btn{display:inline-flex;width:44px;height:44px;flex:0 0 44px;align-items:center;justify-content:center;border-radius:9px;cursor:pointer}
 html body .mobile-search-btn:hover{background:var(--hover-bg)}
 html body .mobile-menu{display:inline-flex!important;width:44px;min-width:44px;height:44px;align-items:center;justify-content:center}
 html body .user-avatar-mobile{width:44px;height:44px}
 html body .bottomnav{height:62px;padding-bottom:env(safe-area-inset-bottom)}
 html body .bottomnav a{min-height:44px;justify-content:center}
 html body .bottomnav .fab{width:44px;height:44px;min-height:44px}
 html body :is(.btn-date-step,.date-chip,.btn-uploader-action,.btn-form-primary,.btn-form-secondary,.btn-form-ghost,.btn-form-cancel){min-height:44px!important}
 html body .btn-date-step{width:44px!important;height:44px!important}
 html body .date-input-wrap{height:48px}
 html body .registry-filters :is(input.filter-search-input,.fc-select-trigger,summary),html body .registry-actions :is(a,button){min-height:44px!important;height:44px!important}
}
/* Shared contract responsibility and linked document views. */
.responsibility-table-wrap { max-width:100%; overflow-x:auto; }
.responsibility-table { table-layout:fixed; width:100%; }
.responsibility-table td, .responsibility-table th { overflow-wrap:anywhere; white-space:normal; }
.responsibility-table small { display:block; margin-top:5px; color:var(--text-muted); }
#contract-responsibility { scroll-margin-top:24px; }
.form-field-group select { max-width:100%; }

/* Shared personal and contractual violation catalog. */
html body table.app-table.violation-catalog { width:100%; min-width:0; table-layout:fixed; }
.violation-catalog .catalog-title { width:40%; }
.violation-catalog .catalog-category { width:18%; }
.violation-catalog .catalog-basis { width:auto; }
.violation-catalog .catalog-actions { width:64px; }
.violation-catalog-contract .catalog-title { width:32%; }
.violation-catalog-contract .catalog-category { width:13%; }
.violation-catalog-contract .catalog-basis { width:22%; }
.violation-catalog-contract .catalog-sanction { width:auto; }
.violation-catalog-contract .catalog-actions { width:64px; }
html body table.app-table.violation-catalog td { white-space:normal; overflow-wrap:anywhere; vertical-align:top!important; }
.violation-catalog-title { font-weight:500; line-height:1.45; }
.violation-catalog-description, .violation-catalog td small { display:block; margin-top:4px; color:var(--text-muted); line-height:1.45; white-space:pre-line; }
.violation-catalog .issue-category { max-width:100%; white-space:normal; overflow-wrap:anywhere; }
.violation-catalog :is(.violation-catalog-title,.violation-catalog-description,.violation-catalog-norm,.issue-category) {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.violation-catalog .violation-catalog-description {-webkit-line-clamp:1}
.violation-catalog-party {display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.violation-catalog .row-actions-group { display:flex; flex-wrap:wrap; gap:6px; justify-content:flex-end; }
.violation-catalog .row-actions-group form { margin:0; }
.party-details { display:flex; flex-wrap:wrap; gap:16px 32px; }
.party-details > div { min-width:0; }
.party-details dt { color:var(--text-muted); }
.party-details dd { margin:4px 0 0; white-space:pre-wrap; overflow-wrap:anywhere; }

.violation-catalog .row-actions-group .btn { white-space:normal; text-align:center; }

.record-case-progress .record-section-head{margin-bottom:12px}
.record-case-progress p{margin:10px 0 0;color:var(--text-secondary);font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.record-case-steps{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.record-case-steps li{max-width:100%;padding:7px 10px;border:1px solid var(--border-subtle);border-radius:8px;color:var(--text-muted);font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.record-case-steps li.is-done{color:var(--text-primary);background:var(--surface-secondary)}
.record-case-steps li.is-current{color:var(--text-primary);border-color:var(--border-strong);background:var(--surface-secondary);font-weight:600}
@media(max-width:680px){.record-case-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.record-case-steps{grid-template-columns:1fr}}

/* Operational overview uses the same quiet surfaces and compact type scale. */
.workspace-work {margin:0 0 24px;padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface-primary)}
.workspace-work h2,.workspace-setup h2 {font-size:16px;font-weight:500;margin:0}
.workspace-work-list {display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;margin-top:12px}
.workspace-work-list>a {display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:8px;color:var(--text-primary);min-width:0}
.workspace-work-list>a:hover {background:var(--surface-tertiary)}
.workspace-work-list>a>span:first-child {flex:1;min-width:0;display:grid;gap:3px}
.workspace-work-list b {font-size:12px;font-weight:500}.workspace-work-list small {color:var(--text-muted);font-size:11px}
.workspace-work-list strong {font-size:18px;font-weight:500;font-variant-numeric:tabular-nums}
.workspace-setup {margin-bottom:18px}.workspace-setup-list {display:flex;flex-wrap:wrap;gap:16px;list-style:none;padding:0;margin:12px 0 0}
.workspace-setup-list li {display:flex;align-items:center;gap:8px;min-width:0}.workspace-setup-list span {display:grid;place-items:center;width:22px;height:22px;border:1px solid var(--border);border-radius:50%;font-size:11px}
.workspace-setup-list .is-done {color:var(--text-muted)}
.record-empty-section summary {font-size:12px;color:var(--text-muted);cursor:pointer}

.workspace-catalog-tabs {display:flex;gap:6px;padding:8px 18px;border-bottom:1px solid var(--border);flex-wrap:wrap}
.workspace-catalog-tabs a {padding:7px 10px;border-radius:6px;font-size:12px;color:var(--text-secondary)}
.workspace-catalog-tabs a.is-active {background:var(--surface-secondary);color:var(--text-primary)}

/* Intrinsic grid widths must not let a long option scroll the whole workspace. */
html body .fc-menu-scroll {grid-template-columns:minmax(0,1fr);min-width:0}
html body .fc-menu-item {min-width:0;max-width:100%;box-sizing:border-box}
html body :is(.fc-menu-label,.fc-menu-label-twoline,.fc-select-label) {min-width:0}
html[data-theme] body :is(.form-canvas .field>.fc-select,.settings-page .fc-select,.party-form-field .fc-select,.registry-filters .fc-select)>button.fc-select-trigger {
  background:var(--surface-secondary)!important;color:var(--text-primary)!important;border-color:var(--border-subtle)!important;
}
html[data-theme] body :is(.form-canvas .field>.fc-select,.settings-page .fc-select,.party-form-field .fc-select,.registry-filters .fc-select)>button.fc-select-trigger:hover {background:var(--surface-tertiary)!important}
