/* Shared live UI policy. Business pages and isolated component examples opt in.
   Incumbent styles stay in dbj-legacy so this source owns the policy
   without ID-specific patches or !important. Interaction and data stay in original scripts. */
.dbj-ui[data-dbj-system="candidate"] {
 font-size:16px;font-weight:400;line-height:24px;
 --dbj-action-size:14px;--dbj-action-weight:600;--dbj-action-line:20px;
 --dbj-field-size:16px;--dbj-field-weight:400;--dbj-field-line:24px;
 --dbj-label-size:12px;--dbj-label-weight:500;--dbj-label-line:20px;
 --dbj-control-height:44px;--dbj-pill-radius:999px;--dbj-card-radius:20px;--dbj-textarea-radius:12px;--dbj-popover-radius:16px;
 --dbj-control-gap:12px;--dbj-label-gap:8px;--dbj-form-row-gap:16px;--dbj-card-padding:24px;--dbj-section-gap:32px;
 --dbj-action-inline:18px;--dbj-field-inline:16px;--dbj-icon-gap:6px;--dbj-icon-size:20px;--dbj-icon-stroke:1.7;
 --dbj-error:#b42318;--dbj-chevron:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2312233f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
 /* Compatibility aliases for existing preview measurements; these are not extra policies. */
 --component-control-gap:var(--dbj-control-gap);--component-label-gap:var(--dbj-label-gap);--component-card-inset:var(--dbj-card-padding);--component-button-inline:var(--dbj-action-inline);--component-icon-gap:var(--dbj-icon-gap);
}
.dbj-ui[data-dbj-system="candidate"][data-demo-density="compact"] {
 --dbj-control-gap:8px;--dbj-label-gap:4px;--dbj-form-row-gap:12px;--dbj-card-padding:16px;--dbj-section-gap:24px;--dbj-action-inline:12px;--dbj-field-inline:12px;
}
.dbj-ui[data-dbj-system="candidate"] h1 {font-size:40px;font-weight:650;line-height:52px}
.dbj-ui[data-dbj-system="candidate"] h2 {font-size:20px;font-weight:650;line-height:28px}
.dbj-ui[data-dbj-system="candidate"] h3 {font-size:18px;font-weight:600;line-height:28px}
.dbj-ui[data-dbj-system="candidate"] .card-title h2 {font-size:18px;line-height:28px}
.dbj-ui[data-dbj-system="candidate"] :is(th,td) {font-size:14px;line-height:24px}
.dbj-ui[data-dbj-system="candidate"] th {font-size:13px;font-weight:600;line-height:20px}
/* Typography is explicit, including descendants of controls that contain labels. */
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="action"],[data-dbj-role="text-action"],[data-dbj-role="icon-action"],[data-dbj-role="tab"],[data-dbj-role="nav"],[data-dbj-role="filter"],[data-dbj-role="more"]) {
 font-family:inherit;font-size:var(--dbj-action-size);font-weight:var(--dbj-action-weight);line-height:var(--dbj-action-line);text-decoration:none;
 min-height:var(--dbj-control-height);box-sizing:border-box;color:var(--brand-ink);cursor:pointer;transition:color 150ms,background-color 150ms;
}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="action"],[data-dbj-role="tab"],[data-dbj-role="nav"],[data-dbj-role="filter"]) {
 display:inline-flex;align-items:center;justify-content:center;gap:var(--dbj-icon-gap);padding:11px var(--dbj-action-inline);border:1px solid transparent;border-radius:var(--dbj-pill-radius);background:transparent;box-shadow:none;
}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="action"],[data-dbj-role="filter"]) {border-color:var(--control-border);background:var(--card)}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="text-action"],[data-dbj-role="icon-action"],[data-dbj-role="more"]) {
 display:inline-flex;align-items:center;justify-content:center;gap:var(--dbj-icon-gap);padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="icon-action"],[data-dbj-role="more"]) {position:relative;width:44px;min-width:44px;height:44px;flex:none}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="icon-action"],[data-dbj-role="text-action"],[data-dbj-role="filter"],[data-dbj-role="more"]) svg {width:var(--dbj-icon-size);height:var(--dbj-icon-size);stroke-width:var(--dbj-icon-stroke);flex:none;vertical-align:middle}
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role="action"][data-dbj-priority="primary"],
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="nav"][aria-current="page"],[data-dbj-role="tab"][aria-selected="true"]) {background:var(--brand-ink);border-color:var(--brand-ink);color:var(--card)}
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role="action"].danger {color:var(--dbj-error);border-color:var(--dbj-error)}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="action"],[data-dbj-role="tab"],[data-dbj-role="nav"],[data-dbj-role="filter"]):hover:not(:disabled) {background:var(--brand-mist)}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="action"][data-dbj-priority="primary"],[data-dbj-role="nav"][aria-current="page"],[data-dbj-role="tab"][aria-selected="true"]):hover:not(:disabled) {background:var(--brand-ink-hover)}
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role="text-action"]:is(:hover,:focus-visible):not(:disabled) {color:var(--brand-ink-hover);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="action"],[data-dbj-role="tab"],[data-dbj-role="filter"]):active:not(:disabled) {border-color:var(--brand-ink)}
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role]:focus-visible {outline:2px solid var(--brand-ink);outline-offset:-2px;box-shadow:none}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="text-action"],[data-dbj-role="icon-action"],[data-dbj-role="more"]):focus-visible {outline:0;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="action"][data-dbj-priority="primary"],[data-dbj-role="nav"][aria-current="page"],[data-dbj-role="tab"][aria-selected="true"]):focus-visible {outline:0;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="action"],[data-dbj-role="tab"],[data-dbj-role="filter"]):disabled {opacity:1;color:var(--text-secondary);background:var(--surface);border-color:var(--border);cursor:not-allowed;text-decoration:none}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="icon-action"],[data-dbj-role="text-action"]):disabled {opacity:.5;background:transparent;cursor:not-allowed;text-decoration:none}
/* Status remains independent of visual density and text-action state. */
.dbj-ui[data-dbj-system="candidate"] .wish-heart {color:#65748a}
.dbj-ui[data-dbj-system="candidate"] .wish-heart[aria-pressed="true"] {color:#b42318}
.dbj-ui[data-dbj-system="candidate"] .wish-important[aria-pressed="true"]:is(:hover,:focus-visible),
.dbj-ui[data-dbj-system="candidate"] .wish-important[aria-pressed="true"] {color:var(--brand-warm)}
.dbj-ui[data-dbj-system="candidate"] .wish-visited-icons {gap:var(--dbj-icon-gap)}
.dbj-ui[data-dbj-system="candidate"] .wish-important-mark svg {width:20px;height:20px;stroke-width:1.7}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="icon-action"],[data-dbj-role="more"]):focus-visible::after {content:'';position:absolute;bottom:5px;left:13px;width:18px;height:2px;background:var(--brand-ink)}
/* All ordinary single-line fields, including selection triggers, use one shape. */
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="field"],[data-dbj-role="select"],[data-dbj-role="textarea"]) {
 font-family:inherit;font-size:var(--dbj-field-size);font-weight:var(--dbj-field-weight);line-height:var(--dbj-field-line);text-decoration:none;color:var(--brand-ink);
 min-height:44px;min-width:0;max-width:100%;padding:9px var(--dbj-field-inline);margin-top:0;border:1px solid var(--control-border);border-radius:var(--dbj-pill-radius);background:var(--card);box-shadow:none;box-sizing:border-box;
}
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role="select"] {appearance:none;padding-right:calc(var(--dbj-field-inline) + 16px + var(--dbj-icon-gap));background-image:var(--dbj-chevron);background-repeat:no-repeat;background-position:right var(--dbj-field-inline) center;background-size:16px 16px;text-align:left}
.dbj-ui[data-dbj-system="candidate"] .multi-trigger::after {content:none}
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role="textarea"] {border-radius:var(--dbj-textarea-radius);min-height:100px;padding:12px;resize:vertical;margin-block:var(--dbj-label-gap)}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="field"],[data-dbj-role="select"]):is(:read-only,:disabled):not(button):not(select) {background:var(--surface)}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="field"],[data-dbj-role="select"]):disabled {color:var(--text-secondary);background-color:var(--surface);opacity:1;cursor:not-allowed}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="field"],[data-dbj-role="select"],[data-dbj-role="textarea"])[aria-invalid="true"] {border-color:var(--dbj-error)}
.dbj-ui[data-dbj-system="candidate"] :is([data-dbj-role="field"],[data-dbj-role="select"],[data-dbj-role="textarea"])[aria-invalid="true"]:focus-visible {outline-color:var(--dbj-error)}
.dbj-ui[data-dbj-system="candidate"] .cphi-search input {padding-left:calc(var(--dbj-field-inline) + 20px + var(--dbj-icon-gap))}
.dbj-ui[data-dbj-system="candidate"] .cphi-search svg {left:var(--dbj-field-inline);top:50%;transform:translateY(-50%);width:20px;height:20px;stroke-width:1.7}
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role="check"] {width:18px;height:18px;min-height:18px;min-width:18px;padding:0;margin:0;accent-color:var(--brand-ink);flex:none}
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role="check"]:focus-visible {outline:0;box-shadow:none}
.dbj-ui[data-dbj-system="candidate"] .guides-label:has(input:focus-visible) {text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
/* Labels, rows and related actions keep native grid/flex composition. */
.dbj-ui[data-dbj-system="candidate"] :where(.multi-caption,label:not(.check-target):not(.visit-label):not(.multi-options label)) {font-size:var(--dbj-label-size);font-weight:var(--dbj-label-weight);line-height:var(--dbj-label-line);color:var(--text-secondary)}
.dbj-ui[data-dbj-system="candidate"] label:has(>[data-dbj-role="field"],>[data-dbj-role="select"],>[data-dbj-role="textarea"]) {display:flex;flex-direction:column;gap:var(--dbj-label-gap)}
.dbj-ui[data-dbj-system="candidate"] .multi-caption {margin-bottom:var(--dbj-label-gap)}
.dbj-ui[data-dbj-system="candidate"] :is(.toolbar,.editor-toolbar,.wish-note-actions,.cphi-card-actions,.mobile-sort,.search-unit,.preview-toolbar,.preview-actions) {gap:var(--dbj-control-gap)}
.dbj-ui[data-dbj-system="candidate"] .wish-note-actions {display:flex;align-items:center;flex-wrap:wrap}
.dbj-ui[data-dbj-system="candidate"] .wish-note-actions button+button {margin-left:0}
.dbj-ui[data-dbj-system="candidate"] :is(.grid,.formgroups) {gap:var(--dbj-form-row-gap)}
.dbj-ui[data-dbj-system="candidate"] .inputrow {gap:var(--dbj-control-gap);margin-bottom:var(--dbj-form-row-gap)}
.dbj-ui[data-dbj-system="candidate"] :is(.visit-label,.multi-options label) {min-height:44px;gap:var(--dbj-control-gap);align-items:center}
.dbj-ui[data-dbj-system="candidate"] .check-target {width:44px;height:44px;min-width:44px;min-height:44px}
.dbj-ui[data-dbj-system="candidate"] :is(.views,.wish-tabs) {gap:4px}
.dbj-ui[data-dbj-system="candidate"] .app-nav-tabs {gap:8px}
.dbj-ui[data-dbj-system="candidate"] :is(.card-title,.wish-visited-heading) {gap:var(--dbj-control-gap)}
/* Containers are rectangles with clear spacing, not capsules. */
.dbj-ui[data-dbj-system="candidate"] :is(.panel,.card,.wish-card,.dash-panel,.metric,.progress-card,.upload-panel,.download-card,.summary>div,.kpi) {padding:var(--dbj-card-padding);border-radius:var(--dbj-card-radius)}
.dbj-ui[data-dbj-system="candidate"] :is(.panel,.result-section,.dashboard,.charts,#exhibitorWorkspace,.method,#monthlyReport,#monthlyNhi,.page-head,.workspace-heading,.hero-shell) {margin-block:var(--dbj-section-gap)}
.dbj-ui[data-dbj-system="candidate"] :is(.summary,.metrics,.cards,.charts,#segments,.dashboard) {gap:var(--dbj-form-row-gap)}
.dbj-ui[data-dbj-system="candidate"] .summary {margin-block:var(--dbj-section-gap)}
.dbj-ui[data-dbj-system="candidate"] .card-title {margin-bottom:var(--dbj-form-row-gap)}
.dbj-ui[data-dbj-system="candidate"] :is(.cphi-more-panel,.multi-panel,dialog) {border-radius:var(--dbj-popover-radius);padding:16px}
.dbj-ui[data-dbj-system="candidate"] .multi-panel:not([hidden]) {display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:start;gap:var(--dbj-control-gap)}
.dbj-ui[data-dbj-system="candidate"] .multi-panel>:is(input,.multi-options) {grid-column:1 / -1}
.dbj-ui[data-dbj-system="candidate"] .multi-clear {justify-self:start;white-space:nowrap}
.dbj-ui[data-dbj-system="candidate"] .multi-done {float:none;justify-self:end;white-space:nowrap}
.dbj-ui[data-dbj-system="candidate"] dialog {padding:var(--dbj-card-padding)}
.dbj-ui[data-dbj-system="candidate"] :is(.table-wrap,.table-scroll,.scroll) {padding:0;border-radius:12px}
.dbj-ui[data-dbj-system="candidate"] .dashboard {display:grid;gap:var(--dbj-section-gap)}
.dbj-ui[data-dbj-system="candidate"] .dashboard>.dash-panel {margin:0;min-width:0}
.dbj-ui[data-dbj-system="candidate"] .wish-note {margin-top:var(--dbj-form-row-gap)}
.dbj-ui[data-dbj-system="candidate"] .wish-note-preview {margin-block:var(--dbj-label-gap)}
/* One reading surface for filters, result heading, records and pagination. */
.dbj-ui[data-dbj-system="candidate"] .cphi-workspace {border:1px solid var(--border);border-radius:20px;background:var(--card)}
.dbj-ui[data-dbj-system="candidate"] .cphi-workspace-toolbar {margin:0;padding:var(--dbj-card-padding);border:0;border-radius:0;background:transparent}
.dbj-ui[data-dbj-system="candidate"] .cphi-workspace-bar {gap:var(--dbj-control-gap)}
.dbj-ui[data-dbj-system="candidate"] .cphi-filter-body {top:calc(44px + var(--dbj-control-gap));padding:var(--dbj-card-padding)}
.dbj-ui[data-dbj-system="candidate"] .cphi-filter-body .advanced-grid {gap:var(--dbj-form-row-gap)}
.dbj-ui[data-dbj-system="candidate"] .cphi-filter-heading {gap:var(--dbj-control-gap);flex-wrap:wrap;justify-content:flex-start}
.dbj-ui[data-dbj-system="candidate"] .cphi-filter-heading strong {flex:1}
.dbj-ui[data-dbj-system="candidate"] .cphi-filter-heading button {margin-left:0}
.dbj-ui[data-dbj-system="candidate"] .cphi-workspace>.list-head {margin:0;padding:var(--dbj-control-gap) var(--dbj-card-padding);border-top:1px solid var(--border);border-radius:0;background:transparent}
.dbj-ui[data-dbj-system="candidate"] .cphi-workspace>.table-wrap {margin:0;padding:0;border:0;border-radius:0;background:transparent}
.dbj-ui[data-dbj-system="candidate"] .cphi-workspace>.paging {margin:0;padding:var(--dbj-card-padding);border-top:1px solid var(--border);gap:var(--dbj-control-gap)}
@media(min-width:601px) {
 .dbj-ui[data-dbj-system="candidate"] .cphi-workspace>.table-wrap :is(th,td):first-child {padding-left:var(--dbj-card-padding)}
 .dbj-ui[data-dbj-system="candidate"] .cphi-workspace>.table-wrap :is(th,td):last-child {padding-right:var(--dbj-card-padding)}
}
@media(max-width:600px) {
 .dbj-ui[data-dbj-system="candidate"] .cphi-workspace>.table-wrap tbody tr:not(.detail-row) {margin:0;padding:var(--dbj-card-padding);border:0;border-top:1px solid var(--border);border-radius:0;background:transparent}
 .dbj-ui[data-dbj-system="candidate"] .cphi-workspace>.table-wrap tbody tr.is-important:not(.detail-row) {outline:1px solid var(--brand-warm);outline-offset:-1px}
 .dbj-ui[data-dbj-system="candidate"] .cphi-workspace>.table-wrap td.more-cell {top:var(--dbj-card-padding);right:var(--dbj-card-padding)}
}
.dbj-ui[data-dbj-system="candidate"] .cphi-more>summary {padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.dbj-ui[data-dbj-system="candidate"] .cphi-card-actions .more-button {margin-left:auto}
/* Explicit shape/type exceptions: upload target, section disclosure, metric text and status chips. */
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role="upload"] {border-radius:20px;padding:16px;gap:var(--dbj-control-gap)}
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role="disclosure"] {min-height:44px;font-size:14px;font-weight:600;line-height:20px;padding:12px 0;border-radius:0;text-decoration:none}
.dbj-ui[data-dbj-system="candidate"] [data-dbj-role="metric"] {min-height:44px;padding:0;border:0;box-shadow:none;background:transparent}
.dbj-ui[data-dbj-system="candidate"] .inputrow label {font-size:0}
.dbj-ui[data-dbj-system="candidate"] .inputrow input {font-size:16px}
/* Spacing annotations read actual computed values; overlay only, never a layout spacer. */
.dbj-ui[data-dbj-guides="true"] [data-dbj-space]:not(.multi-panel) {position:relative}
.dbj-ui[data-dbj-guides="true"] [data-dbj-space]::after {content:attr(data-dbj-space-label);position:absolute;top:-9px;left:8px;z-index:40;padding:0 4px;border:1px solid var(--control-border);border-radius:4px;background:var(--card);color:var(--brand-ink);font:500 11px/18px -apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;pointer-events:none}
@media(max-width:1100px) {
 .dbj-ui[data-dbj-system="candidate"] .cphi-filter-body {top:calc(88px + var(--dbj-control-gap)*2)}
}
@media(max-width:760px) {
 .dbj-ui[data-dbj-system="candidate"] h1 {font-size:28px;line-height:36px}
 .dbj-ui[data-dbj-system="candidate"] .om-dropzone .mascot-action {display:none}
 .dbj-ui[data-dbj-system="candidate"] .card-title h2 {font-size:16px;line-height:24px}
 .dbj-ui[data-dbj-system="candidate"] {--dbj-card-padding:16px;--dbj-section-gap:24px}
 .dbj-ui[data-dbj-system="candidate"][data-demo-density="compact"] {--dbj-card-padding:12px;--dbj-section-gap:20px}
}
@media(max-width:600px) {
 .dbj-ui[data-dbj-system="candidate"] .cphi-filter-heading strong {flex-basis:100%}
 .dbj-ui[data-dbj-system="candidate"] #advanced>summary {padding:0;width:44px;height:44px}
 .dbj-ui[data-dbj-system="candidate"] .inputrow label {font-size:12px}
}
