/* Reference CRUD patterns. Reuse these classes with page-specific ViewModels. */
.breadcrumbs { min-width: 0; overflow: hidden; }
.breadcrumbs [aria-current] { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb-parent { color: var(--secondary); }
.breadcrumb-parent:hover { text-decoration: underline; }
.crud-heading { margin-bottom: 28px; }
.crud-heading > .button-primary { flex-shrink: 0; }
.crud-heading .button-primary .icon { width: 17px; height: 17px; }
.button-primary:hover { color: var(--button-text); }
.button-primary:disabled, .icon-button:disabled { cursor: not-allowed; opacity: .4; }
.crud-notice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 24px; border: 1px solid var(--semantic-success-line); border-radius: 9px; background: var(--semantic-success-bg); font-size: 14px; }
.crud-notice p { flex: 1; overflow-wrap: anywhere; }
.notice-symbol { display: grid; place-items: center; width: 26px; height: 26px; background: var(--semantic-success-strong); color: #fff; border-radius: 50%; flex-shrink: 0; }
.notice-symbol .icon { width: 15px; height: 15px; }
.crud-notice .icon-button { width: 28px; height: 28px; }
.crud-notice .icon-button:hover { color: var(--semantic-success); background: transparent; }
.directory-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); padding: 23px 0; margin-bottom: 30px; }
.directory-summary > div { display: flex; align-items: center; gap: 15px; padding: 0 26px; }
.directory-summary > div:first-child { padding-left: 0; }
.directory-summary > div + div { border-left: 1px solid var(--line); }
.summary-icon { display: grid; place-items: center; flex-shrink: 0; width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--secondary); }
.summary-icon .icon { width: 19px; height: 19px; }
.summary-success .summary-icon { color: var(--semantic-success); border-color: var(--semantic-success-line); background: var(--semantic-success-bg); }
.summary-warning .summary-icon { color: var(--semantic-warning); border-color: var(--semantic-warning-line); background: var(--semantic-warning-bg); }
.summary-info .summary-icon { color: var(--semantic-info); border-color: var(--semantic-info-line); background: var(--semantic-info-bg); }
.summary-success .summary-label { color: var(--semantic-success); }
.summary-warning .summary-label { color: var(--semantic-warning); }
.summary-info .summary-label { color: var(--semantic-info); }
.summary-label { display: block; font-size: 12px; color: var(--secondary); }
.directory-summary strong { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; font-size: 28px; letter-spacing: -.05em; line-height: 1.4; font-weight: 550; }
.directory-summary strong > span { font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.directory-layout { display: grid; grid-template-columns: minmax(0, 1fr) 242px; gap: 28px; align-items: start; }
.record-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.record-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 24px; gap: 20px; }
.record-panel-heading h2 { display: flex; align-items: center; gap: 9px; font-size: 16px; letter-spacing: -.02em; font-weight: 600; }
.record-panel-heading p { margin-top: 6px; font-size: 13px; color: var(--secondary); line-height: 1.6; }
.record-panel-heading > .icon { color: var(--muted); width: 19px; height: 19px; }
.count-badge { background: var(--subtle); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 11px; font-weight: 500; color: var(--secondary); }
.record-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0 24px 17px; }
.record-search { display: flex; flex: 1 1 210px; align-items: center; border: 1px solid var(--strong-line); border-radius: 6px; padding-left: 11px; gap: 8px; min-width: 0; background: var(--surface); }
.record-search .icon { width: 16px; height: 16px; color: var(--muted); }
.record-search input { width: 100%; min-width: 0; background: transparent; color: var(--ink); border: 0; padding: 10px 10px 10px 0; font-size: 13px; outline: none; }
.record-search:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.record-search input::placeholder { color: var(--muted); }
.filter-controls { display: flex; gap: 8px; }
.record-select { min-height: 39px; padding: 8px 32px 8px 11px; border: 1px solid var(--strong-line); border-radius: 6px; background-color: var(--surface); color: var(--secondary); font: 13px var(--font); appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23787c84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
.filter-submit { min-height: 39px; padding: 8px 12px; font-size: 13px; }
.directory-sort { flex: 1 0 100%; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.directory-sort label { color: var(--muted); font-size: 12px; }
.directory-sort .record-select { padding: 5px 22px 5px 6px; min-height: 28px; border: 0; background-color: transparent; background-position: right 2px center; background-size: 14px; font-size: 12px; }
.filter-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 24px; background: var(--subtle); border-top: 1px solid var(--line); font-size: 12px; color: var(--secondary); }
.filter-summary a { display: inline-flex; align-items: center; gap: 5px; text-decoration: underline; text-underline-offset: 3px; }
.filter-summary .icon { width: 12px; height: 12px; }
.record-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.record-table thead { background: var(--subtle); border-block: 1px solid var(--line); }
.record-table th { font-weight: 500; color: var(--secondary); font-size: 11px; letter-spacing: .015em; padding: 12px 13px; white-space: nowrap; }
.record-table td { padding: 20px 13px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.record-table th:first-child, .record-table td:first-child { padding-left: 24px; }
.record-table th:last-child, .record-table td:last-child { padding-right: 20px; }
.record-table tbody tr:last-child td { border-bottom: 0; }
.record-table tbody tr:hover { background: var(--subtle); }
.member-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.record-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.member-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--subtle); color: var(--ink); font-size: 13px; font-weight: 500; flex-shrink: 0; }
.member-name-email { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.record-name-detail { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.member-name-email strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; max-width: 240px; }
.record-name-detail strong { display: block; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; max-width: 270px; }
.member-name-email > span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; max-width: 240px; }
.record-name-detail > span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; max-width: 270px; }
.member-identity:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.record-identity:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.self-tag { display: inline-block; color: var(--muted); margin-left: 5px; font-size: 11px; font-weight: 400; letter-spacing: 0; }
.role-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 11px; font-weight: 500; white-space: nowrap; color: var(--secondary); background: var(--surface); }
.role-badge .icon { width: 12px; height: 12px; }
.member-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.status-active { color: var(--semantic-success); }
.status-inactive { color: var(--muted); }
.status-inactive .status-dot { background: transparent; border: 1px solid currentColor; width: 6px; height: 6px; }
.date-column { color: var(--muted); font-size: 12px; white-space: nowrap; }
.member-actions { width: 48px; text-align: right; }
.record-actions { width: 48px; text-align: right; }
.member-actions .icon-button { width: 30px; height: 32px; }
.record-actions .icon-button { width: 30px; height: 32px; }
.record-dropdown { --bs-dropdown-bg: var(--surface); --bs-dropdown-border-color: var(--line); --bs-dropdown-link-color: var(--ink); --bs-dropdown-link-hover-bg: var(--subtle); --bs-dropdown-link-hover-color: var(--ink); --bs-dropdown-link-active-bg: var(--ink); --bs-dropdown-link-active-color: var(--surface); --bs-dropdown-divider-bg: var(--line); box-shadow: var(--shadow); padding: 6px; min-width: 192px; border-radius: 9px; }
.record-dropdown .dropdown-item, .record-dropdown .dropdown-item-text { display: flex; gap: 9px; align-items: center; padding: 10px; border-radius: 5px; font-size: 13px; }
.record-dropdown .icon { width: 16px; height: 16px; }
.record-dropdown .dropdown-protected { font-size: 11px; color: var(--muted); }
.record-dropdown .dropdown-danger { color: var(--semantic-danger); }
.record-dropdown .dropdown-danger:hover, .record-dropdown .dropdown-danger:focus { color: var(--semantic-danger); background: var(--semantic-danger-bg); }
.record-dropdown .dropdown-divider { margin: 4px 3px; }
.record-pagination { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 21px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.record-pagination nav { display: flex; align-items: center; gap: 8px; }
.record-pagination .icon-button { width: 28px; height: 28px; }
.record-pagination .icon { width: 14px; height: 14px; }
.directory-guide { padding: 8px 0; }
.guide-heading { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: var(--text-compact); font-weight: 600; letter-spacing: .1em; }
.guide-heading .icon { width: 14px; height: 14px; }
.directory-guide h2, .editor-guide h2 { font-size: 23px; letter-spacing: -.045em; line-height: 1.3; font-weight: 500; margin: 19px 0 13px; }
.directory-guide > p, .editor-guide > p { font-size: 13px; line-height: 1.8; color: var(--secondary); }
.role-guide-list { margin-top: 26px; }
.role-guide-list > div { display: flex; gap: 10px; padding: 17px 0; border-top: 1px solid var(--line); }
.role-guide-icon { padding-top: 2px; color: var(--secondary); }
.role-guide-icon .icon { width: 16px; height: 16px; }
.role-guide-list h3 { font-size: 13px; font-weight: 600; }
.role-guide-list p { font-size: 12px; line-height: 1.8; color: var(--muted); margin-top: 5px; }
.guide-footnote { display: flex; align-items: flex-start; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 13px; margin-top: 8px; background: var(--subtle); }
.guide-footnote p { font-size: 11px; color: var(--secondary); line-height: 1.7; }
.guide-footnote .icon { width: 13px; height: 13px; margin-top: 2px; color: var(--muted); }
.crud-demo-note { display: flex; align-items: flex-start; gap: 7px; margin-top: 22px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.crud-demo-note .icon { width: 13px; height: 13px; margin-top: 2px; color: var(--semantic-info); }
.record-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 58px 24px; border-top: 1px solid var(--line); }
.record-empty h3 { font-size: 18px; letter-spacing: -.03em; font-weight: 500; }
.record-empty p { font-size: 13px; color: var(--secondary); margin: 10px 0 20px; }
.record-back { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; margin: 0 0 24px; }
.record-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.record-back .icon { width: 15px; height: 15px; }
.record-editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 34px; align-items: start; }
.account-editor-layout { max-width: 980px; }
.record-editor { min-width: 0; }
.form-section + .form-section { margin-top: 20px; }
.form-section-heading { display: flex; align-items: flex-start; gap: 13px; padding: 23px 24px; border-bottom: 1px solid var(--line); }
.step-label { font-size: 11px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.form-section-heading h2 { font-size: 15px; font-weight: 600; }
.form-section-heading p { font-size: 13px; color: var(--secondary); margin-top: 6px; line-height: 1.6; }
.form-section-body { padding: 24px; }
.form-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.record-editor .field-group { margin-bottom: 0; }
.record-editor .field-group > label { display: flex; align-items: center; justify-content: space-between; gap: 5px; font-size: 13px; }
.required-label, .optional-label { font-size: var(--text-compact); color: var(--muted); font-weight: 400; margin-left: 7px; }
.field-help { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 8px; }
.field-help-row { display: flex; justify-content: space-between; gap: 16px; }
.record-textarea { min-height: 110px; resize: vertical; line-height: 1.8; }
.record-editor .field-error { padding: 4px 0; font-size: 12px; }
.record-editor .input-validation-error { border-color: var(--semantic-danger); box-shadow: inset 3px 0 0 var(--semantic-danger); }
.role-fieldset { padding: 0; margin: 0; border: 0; }
.role-fieldset legend { float: none; width: auto; font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.role-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.role-option { position: relative; display: block; cursor: pointer; }
.role-option > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-option-content { display: block; height: 100%; border: 1px solid var(--strong-line); border-radius: 8px; padding: 16px 13px; background: var(--surface); }
.role-option-heading { display: flex; align-items: center; gap: 7px; padding-right: 15px; font-size: 13px; }
.role-option-heading strong { font-weight: 500; }
.role-option-heading .icon { width: 15px; height: 15px; }
.role-option-content > span:last-child { display: block; font-size: 11px; color: var(--muted); margin-top: 13px; line-height: 1.6; }
.radio-indicator { position: absolute; top: 17px; right: 12px; width: 12px; height: 12px; border: 1px solid var(--strong-line); border-radius: 50%; }
.role-option input:checked ~ .role-option-content { border-color: var(--ink); background: var(--subtle); box-shadow: 0 0 0 1px var(--ink); }
.role-option input:checked ~ .radio-indicator { background: var(--ink); border: 3px solid var(--surface); outline: 1px solid var(--ink); }
.role-option input:focus-visible ~ .role-option-content { outline: 2px solid var(--ink); outline-offset: 4px; }
.status-setting { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.status-setting label { font-size: 13px; font-weight: 500; }
.status-setting p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.access-switch { position: relative; display: inline-flex; align-items: center; height: 36px; cursor: pointer; flex-shrink: 0; }
.access-switch input { opacity: 0; position: absolute; width: 1px; height: 1px; }
.switch-track { display: block; width: 36px; height: 21px; border: 1px solid var(--strong-line); border-radius: 30px; background: var(--hover); }
.switch-track::before { content: ''; display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); margin: 2px; box-shadow: 0 1px 2px #0002; transition: transform .15s; }
.access-switch input:checked + .switch-track { background: var(--semantic-success-strong); border-color: var(--semantic-success-strong); }
.access-switch input:checked + .switch-track::before { transform: translateX(14px); }
.access-switch input:focus-visible + .switch-track { outline: 2px solid var(--ink); outline-offset: 4px; }
.self-protection { display: flex; gap: 12px; padding: 16px; border: 1px solid var(--semantic-info-line); border-radius: 8px; background: var(--semantic-info-bg); }
.self-protection > .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--semantic-info); }
.self-protection strong { font-size: 13px; font-weight: 500; }
.self-protection p { margin-top: 6px; font-size: 12px; color: var(--secondary); line-height: 1.7; }
.record-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; }
.record-form-actions > span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.record-form-actions > span .icon { width: 12px; height: 12px; }
.record-form-actions > div { display: flex; gap: 10px; }
.record-form-actions .button-primary .icon { width: 17px; height: 17px; }
.editor-guide { padding: 6px 0; }
.editor-guidance-item, .access-explanation { display: flex; gap: 11px; margin-top: 26px; }
.editor-guidance-item > .icon, .access-explanation > .icon { width: 17px; height: 17px; color: var(--secondary); margin-top: 1px; }
.access-explanation.semantic-success > .icon { color: var(--semantic-success); }
.access-explanation.semantic-warning > .icon { color: var(--semantic-warning); }
.editor-guidance-item h3, .access-explanation h3 { font-size: 13px; font-weight: 500; }
.editor-guidance-item p, .access-explanation p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 7px; }
.editor-guide .crud-demo-note { font-size: 11px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 17px; }
.crud-form-errors { display: flex; gap: 12px; padding: 17px; border: 1px solid var(--semantic-danger-line); border-left: 3px solid var(--semantic-danger); border-radius: 8px; background: var(--semantic-danger-bg); margin-bottom: 20px; font-size: 13px; }
.crud-form-errors h2 { font-size: 14px; font-weight: 600; margin-bottom: 9px; }
.crud-form-errors > .icon { width: 19px; height: 19px; color: var(--semantic-danger); flex-shrink: 0; }
.crud-form-errors ul { padding-left: 17px; margin: 0; }
.crud-form-errors li + li { margin-top: 4px; }
.crud-form-errors.warning-message { border-color: var(--semantic-warning-line); border-left-color: var(--semantic-warning); background: var(--semantic-warning-bg); }
.crud-form-errors.warning-message > .icon { color: var(--semantic-warning); }
.crud-form-errors a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.conflict-recovery { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.conflict-recovery p { font-size: 12px; color: var(--secondary); }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 31px; }
.profile-identity { display: flex; gap: 19px; align-items: center; min-width: 0; }
.profile-identity > div { min-width: 0; }
.profile-avatar { width: 70px; height: 70px; border-radius: 18px; font-size: 25px; }
.profile-heading h1 { font-size: 32px; font-weight: 600; letter-spacing: -.05em; margin: 8px 0 6px; overflow-wrap: anywhere; }
.profile-identity p:last-child { font-size: 14px; color: var(--secondary); overflow-wrap: anywhere; }
.profile-heading > a { flex-shrink: 0; }
.profile-heading > a .icon { width: 16px; height: 16px; }
.profile-sections { min-width: 0; }
.profile-sections > .record-section-action { display: flex; width: max-content; max-width: 100%; margin-bottom: 20px; }
.profile-sections > section + section { margin-top: 20px; }
.record-properties { margin: 0; padding: 0 24px 10px; }
.record-properties > div { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 20px; padding: 17px 0; border-top: 1px solid var(--line); }
.record-properties dt { font-size: 13px; color: var(--secondary); font-weight: 400; }
.record-properties dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.quiet-label { font-size: 11px; color: var(--muted); }
.member-notes, .empty-notes { font-size: 14px; line-height: 1.8; padding: 0 24px 24px; overflow-wrap: anywhere; white-space: pre-wrap; }
.empty-notes { color: var(--muted); font-size: 13px; }
.removal-section { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.removal-section h2 { font-size: 13px; font-weight: 600; }
.removal-section p { margin-top: 7px; font-size: 12px; color: var(--secondary); line-height: 1.7; }
.removal-section > a { flex-shrink: 0; font-size: 12px; min-height: 38px; padding: 8px 12px; }
.removal-section .icon { width: 14px; height: 14px; }
.removal-section.removal-risk h2 { color: var(--semantic-danger); }
.protected-label { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.removal-confirmation { max-width: 565px; padding: 36px; margin: 25px auto 60px; }
.removal-symbol { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--subtle); margin-bottom: 25px; }
.danger-confirmation .removal-symbol { color: var(--semantic-danger); border-color: var(--semantic-danger-line); background: var(--semantic-danger-bg); }
.removal-confirmation h1 { font-size: 28px; font-weight: 600; letter-spacing: -.045em; line-height: 1.3; margin: 12px 0; overflow-wrap: anywhere; }
.removal-description { font-size: 14px; line-height: 1.8; color: var(--secondary); }
.removal-identity { display: flex; align-items: center; gap: 12px; padding: 20px 0; margin: 24px 0; border-block: 1px solid var(--line); }
.removal-identity > div { flex: 1; min-width: 0; }
.removal-identity strong { font-size: 14px; display: block; overflow-wrap: anywhere; }
.removal-identity div > span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.confirmation-actions { display: flex; justify-content: flex-end; gap: 12px; }
.confirmation-actions .icon { width: 16px; height: 16px; }
.removal-confirmation .crud-demo-note { text-align: center; display: block; margin-top: 23px; }
.missing-member { margin-top: 30px; }
.missing-member h1 { font-size: 28px; margin-top: 14px; letter-spacing: -.04em; }

/* Market connection slice. */
.connection-state { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; white-space: nowrap; }
.connection-state.state-connected { color: var(--semantic-success); }
.connection-state.state-demo { color: var(--semantic-info); }
.connection-state.state-degraded { color: var(--semantic-warning); }
.connection-state.state-disconnected { color: var(--semantic-danger); }
.connection-state.state-disabled { color: var(--muted); }
.connection-state.state-disabled .status-dot, .connection-state.state-disconnected .status-dot { background: transparent; border: 1px solid currentColor; width: 7px; height: 7px; }
.connection-state.state-degraded .status-dot { width: 8px; height: 2px; border-radius: 0; }
.environment-badge { display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--secondary); background: var(--surface); font-size: 11px; font-weight: 500; white-space: nowrap; }
.capability-count { color: var(--secondary); font-size: 12px; white-space: nowrap; }
.access-mode-label { display: block; color: var(--ink); font-size: 13px; font-weight: 550; white-space: nowrap; }
.access-mode-label + .capability-count { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.connection-form-select { width: 100%; min-height: 45px; font-size: 14px; padding-right: 32px; }
.fixed-connection-boundary { display: grid; grid-template-columns: 1fr auto; align-content: start; gap: 5px 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); }
.fixed-connection-boundary .quiet-label, .fixed-connection-boundary p { grid-column: 1 / -1; }
.fixed-connection-boundary strong { font-size: 14px; font-weight: 600; }
.fixed-connection-boundary p { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.access-profile-fieldset { margin: 0; padding: 0; border: 0; }
.access-profile-fieldset legend { float: none; width: auto; margin-bottom: 13px; font-size: 14px; font-weight: 550; }
.access-profile-group { display: grid; grid-template-columns: 1fr; gap: 12px; }
.access-profile-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; border: 1px solid var(--strong-line); border-radius: 9px; background: var(--surface); cursor: pointer; }
.access-profile-option:has(input:checked) { border-color: var(--semantic-info); background: var(--semantic-info-bg); box-shadow: 0 0 0 1px var(--semantic-info); }
.access-profile-option input { width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--semantic-info); }
.access-profile-content { display: block; min-width: 0; }
.access-profile-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.access-profile-heading > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.access-profile-heading .icon { width: 16px; height: 16px; color: var(--semantic-info); flex-shrink: 0; }
.access-profile-heading strong { font-size: 14px; font-weight: 600; }
.access-profile-heading > small { color: var(--muted); font-size: var(--text-compact); font-weight: 650; letter-spacing: .05em; white-space: nowrap; }
.access-profile-description { display: block; margin-top: 9px; color: var(--secondary); font-size: 13px; line-height: 1.6; }
.derived-capability-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.derived-capability-list > span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--secondary); font-size: 11px; }
.derived-capability-list .icon { width: 11px; height: 11px; color: var(--semantic-success); }
.access-profile-fieldset > .field-help { display: flex; align-items: flex-start; gap: 6px; margin-top: 12px; }
.access-profile-fieldset > .field-help .icon { width: 13px; height: 13px; margin-top: 2px; color: var(--semantic-info); flex-shrink: 0; }
.connection-authentication { margin-top: 24px; padding: 18px; border: 1px solid var(--strong-line); border-radius: 9px; background: var(--subtle); }
.authentication-heading { display: flex; align-items: flex-start; gap: 12px; }
.authentication-heading > span { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 1px solid var(--semantic-info-line); border-radius: 8px; background: var(--semantic-info-bg); color: var(--semantic-info); }
.authentication-heading .icon { width: 16px; height: 16px; }
.authentication-heading h3 { font-size: 15px; font-weight: 600; }
.authentication-heading p { margin-top: 5px; color: var(--secondary); font-size: 13px; line-height: 1.6; }
.authentication-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.authentication-fields[data-wallet-authentication] { grid-template-columns: 1fr; }
.authentication-current { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--semantic-success-line); border-radius: 7px; background: var(--semantic-success-bg); color: var(--semantic-success); font-size: 12px; }
.authentication-current .icon { width: 14px; height: 14px; }
.authentication-current strong { margin-left: auto; color: var(--ink); font-weight: 550; }
.authentication-preserve { grid-column: 1 / -1; margin-top: -3px; }
.connection-enabled-setting { margin-top: 24px; }
.capability-fieldset { margin: 0; padding: 0; border: 0; }
.capability-fieldset legend { float: none; width: auto; margin-bottom: 13px; font-size: 13px; font-weight: 500; }
.capability-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.capability-option { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 11px; align-items: start; padding: 14px; border: 1px solid var(--strong-line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.capability-option:has(input:checked) { border-color: var(--ink); background: var(--subtle); box-shadow: 0 0 0 1px var(--ink); }
.capability-option input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ink); }
.capability-option-content { min-width: 0; }
.capability-option-content > span { display: flex; align-items: center; gap: 7px; }
.capability-option-content .icon { width: 15px; height: 15px; }
.capability-option-content strong { font-size: 13px; font-weight: 550; }
.capability-option-content small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.connection-toggle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); }
.connection-toggle-grid .status-setting { margin: 0; padding: 0; border: 0; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; padding: 0 24px 18px; }
.capability-grid > div { display: flex; align-items: flex-start; gap: 10px; padding: 15px 0; border-top: 1px solid var(--line); }
.capability-grid .icon { width: 17px; height: 17px; color: var(--secondary); margin-top: 1px; }
.capability-grid strong { display: block; font-size: 13px; font-weight: 550; }
.capability-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.connection-metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.connection-metrics-grid > div { min-width: 0; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.connection-metrics-grid > div:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); }
.connection-metrics-grid > div > span:first-child { display: block; color: var(--muted); font-size: 11px; }
.connection-metrics-grid strong { display: block; margin-top: 7px; font-size: 13px; font-weight: 550; overflow-wrap: anywhere; }
.connection-metrics-grid strong small { color: var(--muted); font-size: 11px; font-weight: 400; }
.connection-operation-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 20px; }
.connection-operation-actions form { display: contents; }
.connection-operation-actions .icon { width: 16px; height: 16px; }
.connection-history-link { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 20px; border-top: 1px solid #6f2632; background: #4b111c; color: #fff; }
.connection-history-link strong, .connection-history-link small { display: block; }
.connection-history-link strong { font-size: 12px; font-weight: 600; }
.connection-history-link small { margin-top: 3px; color: #e4c4ca; font-size: 11px; }
.connection-history-link a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.connection-history-link a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.connection-history-link a .icon { width: 13px; height: 13px; }
.history-source-heading { margin-bottom: 22px; }
.history-source-guidance { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; padding: 18px 20px; border: 1px solid var(--semantic-info-line); border-radius: var(--radius); background: var(--semantic-info-bg); }
.history-source-guidance > span { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 7px; background: var(--surface); color: var(--semantic-info); }
.history-source-guidance .icon { width: 16px; height: 16px; }
.history-source-guidance h2 { font-size: 14px; font-weight: 600; }
.history-source-guidance p { margin-top: 5px; color: var(--secondary); font-size: 12px; line-height: 1.65; }
.history-source-summary { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(100px, .5fr)); margin-bottom: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.history-source-summary > div { min-width: 0; padding: 15px 18px; }
.history-source-summary > div + div { border-left: 1px solid var(--line); }
.history-source-summary span, .history-source-summary strong { display: block; }
.history-source-summary span { color: var(--muted); font-size: 11px; }
.history-source-summary strong { margin-top: 5px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.history-source-list { display: grid; gap: 14px; }
.history-source-card { overflow: hidden; }
.history-source-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 20px; }
.history-source-card h2 { margin-top: 4px; font-size: 18px; font-weight: 600; }
.history-source-card code { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.history-source-state { display: inline-flex; align-items: center; gap: 7px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--secondary); font-size: 11px; white-space: nowrap; }
.history-source-state > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.history-source-state.state-retrying { border-color: var(--semantic-warning-line); background: var(--semantic-warning-bg); color: var(--semantic-warning); }
.history-source-state.state-excluded { color: var(--muted); }
.history-source-card dl { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(190px, .8fr) minmax(0, 2fr); margin: 0; border-top: 1px solid var(--line); }
.history-source-card dl > div { min-width: 0; padding: 16px 20px; }
.history-source-card dl > div + div { border-left: 1px solid var(--line); }
.history-source-card dt { color: var(--muted); font-size: 11px; font-weight: 400; }
.history-source-card dd { margin: 5px 0 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.history-source-card dd small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.history-source-hint { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 12px 20px; border-top: 1px solid var(--semantic-info-line); background: var(--semantic-info-bg); color: var(--secondary); font-size: 11px; line-height: 1.6; }
.history-source-hint .icon { width: 14px; height: 14px; margin-top: 1px; flex-shrink: 0; color: var(--semantic-info); }
.history-source-action { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--subtle); }
.history-source-action strong, .history-source-action small { display: block; }
.history-source-action strong { font-size: 12px; font-weight: 600; }
.history-source-action small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.history-source-action form { flex-shrink: 0; }
.history-source-action button { min-height: 38px; padding: 8px 13px; font-size: 12px; }
.history-source-action button .icon { width: 14px; height: 14px; }
.history-source-confirm { display: block; }
.history-source-confirm summary { display: inline-flex; align-items: center; gap: 7px; width: fit-content; min-height: 38px; padding: 8px 13px; cursor: pointer; font-size: 12px; font-weight: 600; list-style: none; }
.history-source-confirm summary::-webkit-details-marker { display: none; }
.history-source-confirm summary .icon { width: 13px; height: 13px; }
.history-source-confirm summary .icon:last-child { margin-left: 2px; }
.history-source-confirm[open] summary .icon:last-child { transform: rotate(180deg); }
.history-source-confirm > div { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 12px; }
.history-source-confirm p { max-width: 720px; color: var(--secondary); font-size: 11px; line-height: 1.65; }
.history-source-empty { display: flex; align-items: flex-start; gap: 14px; padding: 24px; }
.history-source-empty > .icon { width: 20px; height: 20px; color: var(--semantic-success); }
.history-source-empty h2 { font-size: 15px; font-weight: 600; }
.history-source-empty p { margin-top: 5px; color: var(--secondary); font-size: 12px; }
.lineage-flow { display: grid; gap: 9px; margin-top: 24px; }
.lineage-flow > div { padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.lineage-flow > .icon { justify-self: center; width: 14px; height: 14px; transform: rotate(90deg); color: var(--muted); }
.lineage-flow span { display: block; color: var(--muted); font-size: var(--text-compact); }
.lineage-flow strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 550; }

/* Instruments: normalized identity with provider-native provenance. */
.instrument-page-heading > .button-secondary { flex-shrink: 0; }
.instrument-page-heading > .button-secondary .icon { width: 16px; height: 16px; }
.instrument-filter-controls .record-select { max-width: 145px; }
.instrument-avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--semantic-info-line); border-radius: 10px; background: var(--semantic-info-bg); color: var(--semantic-info); }
.instrument-avatar .icon { width: 18px; height: 18px; }
.record-name-detail small { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; color: var(--secondary); font-size: 11px; }
.record-name-detail small em { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-style: normal; font-size: var(--text-compact); }
.instrument-current-value { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; }
.instrument-value-source { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.movement-value { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; white-space: nowrap; }
.value-positive { color: var(--semantic-success); }
.value-negative { color: var(--semantic-danger); }
.value-neutral { color: var(--secondary); }
.source-count { display: inline-grid; place-items: center; min-width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); font-weight: 600; }
.instrument-status, .data-state-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 11px; font-weight: 550; white-space: nowrap; }
.instrument-status > span, .data-state-badge > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.instrument-status.state-active, .data-state-badge.state-live, .data-freshness.state-live { color: var(--semantic-success); }
.instrument-status.state-paused, .data-state-badge.state-delayed, .data-freshness.state-delayed { color: var(--semantic-warning); }
.instrument-status.state-closed, .data-state-badge.state-unavailable, .data-freshness.state-unavailable { color: var(--muted); }
.data-state-badge.state-stale, .data-freshness.state-stale { color: var(--semantic-danger); }
.data-freshness { display: block; margin-top: 5px; font-size: var(--text-compact); white-space: nowrap; }

.instrument-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 25px; }
.instrument-detail-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.instrument-detail-avatar { width: 58px; height: 58px; border-radius: 14px; }
.instrument-detail-avatar .icon { width: 25px; height: 25px; }
.instrument-detail-heading h1 { margin-top: 4px; font-size: 34px; letter-spacing: -.055em; font-weight: 550; }
.instrument-detail-identity > div > p:last-child { margin-top: 4px; color: var(--secondary); font-size: 13px; }
.instrument-heading-value { text-align: right; }
.instrument-heading-value > span, .instrument-primary-value > span, .provider-market-value > span, .live-current-value > span, .history-value-summary span:first-child { display: block; color: var(--muted); font-size: 11px; }
.instrument-heading-value strong { display: block; margin-top: 4px; font-size: 25px; letter-spacing: -.035em; font-weight: 550; }
.instrument-heading-value small { display: block; margin-top: 3px; font-size: 12px; }
.instrument-tabs { display: flex; gap: 3px; margin-bottom: 25px; padding: 4px; overflow-x: auto; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); scrollbar-width: none; }
.instrument-tabs::-webkit-scrollbar { display: none; }
.instrument-tabs a { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; flex: 1 0 auto; padding: 8px 15px; border-radius: 6px; color: var(--secondary); font-size: 12px; font-weight: 500; white-space: nowrap; }
.instrument-tabs a:hover { background: var(--subtle); color: var(--ink); }
.instrument-tabs a.active { background: var(--ink); color: var(--surface); }
.instrument-tab-content { min-width: 0; }
.instrument-overview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .75fr); gap: 20px; align-items: start; }
.instrument-overview-main { display: grid; gap: 20px; min-width: 0; }
.instrument-value-panel { overflow: hidden; }
.instrument-primary-value { padding: 4px 24px 25px; }
.instrument-primary-value strong { display: block; margin-top: 7px; font-size: 33px; font-weight: 550; letter-spacing: -.045em; }
.instrument-primary-value small { display: block; margin-top: 3px; font-size: 12px; }
.instrument-metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.instrument-metric-grid > div { padding: 17px 24px; border-bottom: 1px solid var(--line); }
.instrument-metric-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
.instrument-metric-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.instrument-metric-grid span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.instrument-metric-grid strong { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; }
.term-help { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); font-size: var(--text-compact); line-height: 1; }
.term-help:hover, .term-help:focus { border-color: var(--ink); color: var(--ink); outline: none; }
.term-help:focus-visible { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.term-help[data-tooltip]::before, .term-help[data-tooltip]::after { position: absolute; left: 50%; z-index: 300; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s ease, transform .12s ease; }
.term-help[data-tooltip]::before { content: ''; bottom: calc(100% + 4px); width: 8px; height: 8px; background: #171717; transform: translate(-50%, 4px) rotate(45deg); }
.term-help[data-tooltip]::after { content: attr(data-tooltip); bottom: calc(100% + 8px); width: max-content; max-width: min(250px, calc(100vw - 32px)); padding: 8px 10px; border-radius: 6px; background: #171717; color: #fff; box-shadow: 0 8px 24px #0003; font: 500 11px/1.5 var(--font); letter-spacing: 0; text-align: left; text-transform: none; white-space: normal; transform: translate(-50%, 4px); }
.term-help[data-tooltip]:hover::before, .term-help[data-tooltip]:hover::after, .term-help[data-tooltip]:focus::before, .term-help[data-tooltip]:focus::after { opacity: 1; visibility: visible; transform: translate(-50%, 0) rotate(45deg); }
.term-help[data-tooltip]:hover::after, .term-help[data-tooltip]:focus::after { transform: translate(-50%, 0); }
.instrument-description { padding: 17px 24px 22px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 13px; line-height: 1.7; }
.term-list { border-top: 1px solid var(--line); }
.term-list details + details { border-top: 1px solid var(--line); }
.term-list summary, .raw-payload summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 20px; cursor: pointer; color: var(--ink); font-size: 13px; font-weight: 550; list-style: none; }
.term-list summary::-webkit-details-marker, .raw-payload summary::-webkit-details-marker { display: none; }
.term-list summary .icon, .raw-payload summary .icon { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.term-list details[open] summary .icon, .raw-payload[open] summary .icon { transform: rotate(180deg); }
.term-list details p { padding: 0 20px 18px; color: var(--secondary); font-size: 12px; line-height: 1.75; }

.markets-intro-panel { margin-bottom: 18px; }
.provider-market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.provider-market-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.provider-market-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 21px; border-bottom: 1px solid var(--line); }
.provider-market-card > header > div { display: flex; align-items: center; gap: 11px; min-width: 0; }
.provider-mark { display: grid; place-items: center; width: 35px; height: 35px; flex-shrink: 0; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 600; }
.provider-market-card h2 { font-size: 14px; font-weight: 600; }
.provider-market-card header p { margin-top: 3px; color: var(--muted); font-size: 11px; }
.provider-market-value { padding: 21px; }
.provider-market-value strong { display: block; margin-top: 5px; font-size: 25px; letter-spacing: -.04em; font-weight: 550; }
.provider-market-value small { display: block; margin-top: 4px; font-size: 11px; }
.provider-market-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.provider-market-card dl > div { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.provider-market-card dl > div:nth-child(even) { border-left: 1px solid var(--line); }
.provider-market-card dt { color: var(--muted); font-size: var(--text-compact); font-weight: 400; }
.provider-market-card dd { margin-top: 5px; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.provider-market-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; color: var(--muted); font-size: var(--text-compact); }
.provider-market-card footer span { display: flex; align-items: center; gap: 5px; }
.provider-market-card footer .icon { width: 12px; height: 12px; }
.instrument-info-callout { display: flex; align-items: flex-start; gap: 13px; margin-top: 18px; padding: 17px 19px; border: 1px solid var(--semantic-info-line); border-radius: 9px; background: var(--semantic-info-bg); }
.instrument-info-callout > .icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--semantic-info); }
.instrument-info-callout h2 { font-size: 13px; font-weight: 600; }
.instrument-info-callout p { margin-top: 4px; color: var(--secondary); font-size: 12px; line-height: 1.7; }

.live-status-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; padding: 13px 16px; border: 1px solid var(--semantic-success-line); border-radius: 9px; background: var(--semantic-success-bg); }
.live-status-strip > div { display: flex; align-items: center; gap: 10px; }
.live-status-strip strong { display: block; color: var(--semantic-success); font-size: 12px; font-weight: 600; }
.live-status-strip span { color: var(--secondary); font-size: 11px; }
.live-status-strip > span { white-space: nowrap; }
.live-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--semantic-success); box-shadow: 0 0 0 4px var(--semantic-success-line); }
.live-pulse.state-delayed { background: var(--semantic-warning); box-shadow: 0 0 0 4px var(--semantic-warning-line); }
.live-layout { display: grid; grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr); gap: 18px; align-items: start; }
.live-current-value { padding: 7px 24px 24px; }
.live-current-value strong { display: block; margin-top: 6px; font-size: 32px; letter-spacing: -.045em; font-weight: 550; }
.live-current-value small { display: block; margin-top: 4px; font-size: 12px; }
.live-quote-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.live-quote-sides > div { padding: 18px 20px; }
.live-quote-sides > div + div { border-left: 1px solid var(--line); }
.live-quote-sides span { color: var(--muted); font-size: var(--text-compact); }
.live-quote-sides strong { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; }
.live-context { display: flex; gap: 8px; padding: 15px 20px; border-top: 1px solid var(--semantic-info-line); background: var(--semantic-info-bg); color: var(--secondary); font-size: 11px; line-height: 1.65; }
.live-context .icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--semantic-info); }
.market-event-list { margin: 0; padding: 0 22px 7px; list-style: none; }
.market-event-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.event-icon { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); color: var(--secondary); }
.event-icon .icon { width: 15px; height: 15px; }
.event-pricemove { color: var(--semantic-info); border-color: var(--semantic-info-line); background: var(--semantic-info-bg); }
.event-trade { color: var(--semantic-success); border-color: var(--semantic-success-line); background: var(--semantic-success-bg); }
.market-event-list li > div > span { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.market-event-list strong { font-size: 12px; font-weight: 600; }
.market-event-list em { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: var(--text-compact); font-style: normal; text-transform: uppercase; letter-spacing: .05em; }
.market-event-list p { margin-top: 4px; color: var(--secondary); font-size: 11px; line-height: 1.6; }
.market-event-list small { display: block; margin-top: 7px; color: var(--muted); font-size: var(--text-compact); }

.history-panel { overflow: hidden; }
.history-heading nav { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 6px; }
.history-heading nav a { padding: 5px 8px; border-radius: 4px; color: var(--muted); font-size: var(--text-compact); font-weight: 550; }
.history-heading nav a.active { background: var(--ink); color: var(--surface); }
.history-value-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 0 24px 8px; }
.history-value-summary strong { display: block; margin-top: 4px; font-size: 29px; letter-spacing: -.04em; font-weight: 550; }
.instrument-chart { margin: 0; padding: 15px 24px 20px; color: var(--semantic-info); }
.instrument-chart svg { display: block; width: 100%; height: 250px; overflow: visible; border-bottom: 1px solid var(--line); }
.chart-area { fill: url(#instrument-chart-fill); stroke: none; }
.chart-line { fill: none; stroke: currentColor; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.instrument-chart figcaption { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: var(--text-compact); }
.history-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.history-stat-grid > div { padding: 16px 20px; }
.history-stat-grid > div + div { border-left: 1px solid var(--line); }
.history-stat-grid span { color: var(--muted); font-size: var(--text-compact); }
.history-stat-grid strong { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }

.source-provenance-panel { overflow: hidden; }
.provenance-flow { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr); align-items: center; gap: 10px; padding: 3px 24px 24px; }
.provenance-flow > div { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); }
.provenance-flow > .icon { width: 16px; height: 16px; justify-self: center; color: var(--muted); }
.provenance-flow span { color: var(--muted); font-size: var(--text-compact); }
.provenance-flow strong, .provenance-flow small { display: block; margin-top: 4px; }
.provenance-flow strong { font-size: 13px; font-weight: 600; }
.provenance-flow small { color: var(--secondary); font-size: var(--text-compact); overflow-wrap: anywhere; }
.source-listing-stack { display: grid; gap: 18px; margin-top: 18px; }
.source-listing-panel { overflow: hidden; }
.source-metadata { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.source-metadata > div { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.source-metadata > div + div { border-left: 1px solid var(--line); }
.source-metadata dt { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: var(--text-compact); font-weight: 400; text-transform: capitalize; }
.source-metadata dd { margin-top: 5px; font-size: 12px; font-weight: 550; overflow-wrap: anywhere; }
.raw-payload { border-bottom: 1px solid var(--line); }
.raw-payload[open] summary { border-bottom: 1px solid var(--line); }
.raw-payload > div { padding: 18px 20px; background: var(--subtle); }
.raw-payload p { margin-bottom: 12px; color: var(--secondary); font-size: 11px; line-height: 1.65; }
.raw-payload pre { margin: 0; padding: 14px; overflow-x: auto; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font: 11px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.source-listing-footer { display: flex; justify-content: space-between; gap: 15px; padding: 13px 20px; color: var(--muted); font-size: var(--text-compact); }
/* Watchlists: human monitoring intent and time-bounded AI discoveries. */
.watchlist-boundary-callout, .discovery-boundary-callout { display: flex; align-items: flex-start; gap: 12px; margin: -8px 0 27px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 9px; background: var(--subtle); }
.watchlist-boundary-callout > .icon, .discovery-boundary-callout > .icon { width: 18px; height: 18px; margin-top: 1px; flex-shrink: 0; color: var(--semantic-info); }
.watchlist-boundary-callout strong, .discovery-boundary-callout strong { font-size: 13px; font-weight: 600; }
.watchlist-boundary-callout p, .discovery-boundary-callout p { margin-top: 4px; color: var(--secondary); font-size: 12px; line-height: 1.65; }
.discovery-boundary-callout { border-color: var(--semantic-info-line); background: var(--semantic-info-bg); }
.watch-reason-cell { max-width: 300px; }
.watch-reason-cell p { display: -webkit-box; overflow: hidden; color: var(--secondary); font-size: 12px; line-height: 1.6; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.watch-priority, .ai-classification, .discovery-state { display: inline-flex; align-items: center; width: fit-content; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--secondary); font-size: var(--text-compact); font-weight: 600; white-space: nowrap; }
.watch-priority.priority-high { border-color: var(--semantic-warning-line); background: var(--semantic-warning-bg); color: var(--semantic-warning); }
.watch-priority.priority-low { color: var(--muted); }
.watch-meaning { display: block; max-width: 160px; margin-top: 5px; color: var(--muted); font-size: var(--text-supporting); line-height: 1.5; }
.watch-contributor { display: block; font-size: 12px; font-weight: 550; }
.watch-status { display: inline-flex; align-items: center; gap: 6px; color: var(--semantic-success); font-size: 11px; white-space: nowrap; }
.watch-status > span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.watch-status.status-paused { color: var(--muted); }
.watch-status.status-paused > span { background: transparent; border: 1px solid currentColor; }
.watch-instrument-select { width: 100%; min-height: 44px; }
.selected-instrument { display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); }
.selected-instrument > div { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.selected-instrument strong { font-size: 13px; font-weight: 600; }
.selected-instrument span { color: var(--muted); font-size: 11px; }
.read-only-field { display: flex; align-items: center; gap: 8px; min-height: 43px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); font-size: 13px; }
.read-only-field .icon { width: 15px; height: 15px; color: var(--semantic-info); }
.watch-reason-grid { margin-top: 23px; }
.watch-reason-field { margin-top: 23px; }
.watch-detail-heading .profile-avatar { border-radius: 12px; }
.profile-heading-actions { display: flex; align-items: center; gap: 9px; }
.profile-heading-actions form { margin: 0; }
.watch-detail-reason { padding: 2px 24px 24px; }
.watch-detail-reason p { padding: 17px; border-left: 3px solid var(--ink); background: var(--subtle); color: var(--secondary); font-size: 14px; line-height: 1.8; }
.watch-snapshot h2 { margin-bottom: 5px; font-size: 26px; }
.watch-snapshot > p { margin-top: 0; font-size: 12px; }
.instrument-heading-actions { display: flex; align-items: center; gap: 18px; }
.instrument-heading-actions .button-primary, .instrument-heading-actions .button-secondary { flex-shrink: 0; }
.instrument-discovery-callout { margin: 0 0 18px; }
.instrument-discovery-callout a { text-decoration: underline; text-underline-offset: 3px; }

.discovery-directory { overflow: hidden; }
.discovery-filter-controls .record-select { max-width: 195px; }
.discovery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 18px 22px 22px; border-top: 1px solid var(--line); }
.discovery-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.discovery-card > header { padding: 17px 18px 13px; }
.discovery-origin { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.discovery-origin > span:first-child { display: flex; align-items: center; gap: 6px; color: var(--semantic-info); font-size: var(--text-compact); font-weight: 650; letter-spacing: .09em; }
.discovery-origin .icon { width: 12px; height: 12px; }
.discovery-state { background: var(--subtle); font-weight: 500; }
.discovery-state.state-readyforresearch { border-color: var(--semantic-info-line); background: var(--semantic-info-bg); color: var(--semantic-info); }
.discovery-state.state-dismissed, .discovery-state.state-expired { color: var(--muted); }
.discovery-state.state-keptonwatchlist { border-color: var(--semantic-success-line); background: var(--semantic-success-bg); color: var(--semantic-success); }
.discovery-identity { display: flex; align-items: center; gap: 11px; }
.discovery-identity > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.discovery-identity strong { font-size: var(--text-lead); font-weight: 600; }
.discovery-identity small { overflow: hidden; color: var(--muted); font-size: var(--text-supporting); text-overflow: ellipsis; white-space: nowrap; }
.discovery-identity:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.discovery-score-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 15px 18px; border-block: 1px solid var(--line); background: var(--subtle); }
.discovery-score-row > div > span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: var(--text-compact); }
.discovery-score-row > div > strong { display: block; margin-top: 4px; font-size: 23px; font-weight: 550; letter-spacing: -.04em; }
.discovery-score-row strong small { color: var(--muted); font-size: var(--text-compact); font-weight: 400; letter-spacing: 0; }
.ai-classification.classification-highinterest { border-color: var(--semantic-warning-line); background: var(--semantic-warning-bg); color: var(--semantic-warning); }
.ai-classification.classification-research { border-color: var(--semantic-info-line); background: var(--semantic-info-bg); color: var(--semantic-info); }
.discovery-reason { min-height: 82px; padding: 16px 18px; color: var(--secondary); font-size: var(--text-ui); line-height: 1.7; }
.discovery-signal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.discovery-signal-grid > div { min-width: 0; padding: 13px 17px; border-bottom: 1px solid var(--line); }
.discovery-signal-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
.discovery-signal-grid dt { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: var(--text-compact); font-weight: 400; }
.discovery-signal-grid dd { margin-top: 5px; font-size: var(--text-ui); font-weight: 600; }
.discovery-card > footer { display: grid; grid-template-columns: 1fr 1.4fr 30px; align-items: center; gap: 10px; margin-top: auto; padding: 14px 17px; }
.discovery-card > footer > div { min-width: 0; }
.discovery-card > footer span, .discovery-card > footer small { display: block; color: var(--muted); font-size: var(--text-compact); }
.discovery-card > footer strong { display: block; overflow: hidden; margin: 3px 0; font-size: var(--text-supporting); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.discovery-learning-strip { display: grid; grid-template-columns: 1fr 20px 1fr 20px 1fr; align-items: center; gap: 16px; margin-top: 22px; padding: 20px 22px; border-block: 1px solid var(--line); }
.discovery-learning-strip > .icon { width: 15px; height: 15px; color: var(--muted); }
.discovery-learning-strip > div { display: grid; grid-template-columns: 22px 1fr; column-gap: 8px; }
.discovery-learning-strip .step-label { grid-row: 1 / 3; }
.discovery-learning-strip strong { font-size: var(--text-ui); font-weight: 600; }
.discovery-learning-strip p { margin-top: 4px; color: var(--muted); font-size: var(--text-supporting); line-height: 1.65; }

.discovery-avatar { border-color: var(--semantic-info-line); background: var(--semantic-info-bg); color: var(--semantic-info); }
.discovery-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 25px; align-items: start; }
.discovery-detail-main { display: grid; gap: 18px; min-width: 0; }
.discovery-detail-reason { padding: 0 24px 23px; }
.discovery-detail-reason > p { font-size: var(--text-lead); line-height: 1.75; letter-spacing: -.01em; }
.discovery-detail-reason > div { display: flex; gap: 9px; margin-top: 16px; padding: 13px; border: 1px solid var(--line); border-radius: 7px; background: var(--subtle); color: var(--secondary); font-size: var(--text-supporting); line-height: 1.65; }
.discovery-detail-reason .icon { width: 14px; height: 14px; flex-shrink: 0; color: var(--semantic-info); }
.discovery-score-explanation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.discovery-score-explanation > div { padding: 19px 22px; }
.discovery-score-explanation > div + div { border-left: 1px solid var(--line); }
.discovery-score-explanation span { color: var(--muted); font-size: var(--text-compact); }
.discovery-score-explanation strong { display: block; margin: 4px 0 7px; font-size: 25px; font-weight: 550; letter-spacing: -.04em; }
.discovery-score-explanation strong small { color: var(--muted); font-size: var(--text-compact); font-weight: 400; }
.discovery-score-explanation p { color: var(--secondary); font-size: var(--text-supporting); line-height: 1.65; }
.discovery-detail-signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.discovery-detail-signals > div { padding: 18px 21px; border-bottom: 1px solid var(--line); }
.discovery-detail-signals > div:nth-child(even) { border-left: 1px solid var(--line); }
.discovery-detail-signals dt { color: var(--muted); font-size: var(--text-compact); font-weight: 400; }
.discovery-detail-signals dd { margin-top: 6px; font-size: 17px; font-weight: 600; }
.discovery-detail-signals small { display: block; margin-top: 5px; color: var(--secondary); font-size: var(--text-supporting); line-height: 1.6; }
.discovery-decision-panel { padding: 5px 0; }
.discovery-decision-panel h2 { margin: 18px 0 12px; font-size: 22px; font-weight: 500; line-height: 1.35; letter-spacing: -.04em; }
.discovery-decision-panel > p { color: var(--secondary); font-size: var(--text-ui); line-height: 1.75; }
.decision-button { width: 100%; margin-top: 11px; }
.decision-state { display: flex; gap: 10px; margin-top: 22px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--subtle); }
.decision-state.semantic-success { border-color: var(--semantic-success-line); background: var(--semantic-success-bg); }
.decision-state > .icon { width: 16px; height: 16px; flex-shrink: 0; }
.decision-state.semantic-success > .icon { color: var(--semantic-success); }
.decision-state strong { font-size: var(--text-ui); font-weight: 600; }
.decision-state p { margin-top: 5px; color: var(--secondary); font-size: var(--text-supporting); line-height: 1.6; }

.missing-member { padding: 44px; }
.missing-member .empty-symbol { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 11px; background: var(--subtle); }
.missing-member .page-description { margin-bottom: 24px; }
@media (max-width: 1279.98px) {
    .directory-layout { grid-template-columns: minmax(0, 1fr); }
    .directory-guide { padding: 24px 0; border-top: 1px solid var(--line); }
    .directory-guide h2 br { display: none; }
    .role-guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
    .guide-footnote { max-width: 400px; }
    .directory-summary > div { padding-inline: 18px; gap: 11px; }
    .summary-icon { width: 36px; height: 36px; }
    .directory-summary strong > span { display: none; }
    .record-editor-layout { grid-template-columns: minmax(0, 1fr) 205px; gap: 24px; }
    .form-field-grid { grid-template-columns: 1fr; }
    .role-options { grid-template-columns: 1fr; }
    .role-option-content { display: flex; align-items: center; gap: 15px; padding: 16px 36px 16px 14px; }
    .role-option-content > span:last-child { margin-top: 0; }
    .radio-indicator { top: 20px; }
    .role-option-heading { min-width: 81px; }
    .discovery-detail-layout { grid-template-columns: minmax(0, 1fr) 225px; }
}
@media (max-width: 991.98px) {
    .record-editor-layout { grid-template-columns: 1fr; }
    .editor-guide { padding: 25px 0; border-top: 1px solid var(--line); }
    .editor-guide h2 br { display: none; }
    .form-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .role-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .role-option-content { display: block; padding: 16px 13px; }
    .role-option-content > span:last-child { margin-top: 13px; }
    .radio-indicator { top: 17px; }
    .record-form-actions { position: sticky; bottom: 0; background: var(--canvas); border-top: 1px solid var(--line); z-index: 5; padding: 16px 0; }
    .discovery-detail-layout { grid-template-columns: 1fr; }
    .discovery-decision-panel { padding: 24px 0; border-top: 1px solid var(--line); }
    .discovery-decision-panel h2 br { display: none; }
}
@media (max-width: 767.98px) {
    .crud-heading { align-items: flex-start; }
    .crud-heading h1 { font-size: 28px; }
    .crud-heading > .button-primary { min-height: 40px; font-size: 13px; padding: 9px 12px; gap: 7px; }
    .directory-summary { padding: 19px 0; gap: 12px; margin-bottom: 24px; }
    .directory-summary > div { padding: 0 10px; gap: 0; }
    .summary-icon { display: none; }
    .summary-label { font-size: 11px; }
    .directory-summary strong { font-size: 25px; margin-top: 4px; }
    .record-toolbar { padding: 0 18px 16px; }
    .record-search { flex-basis: 100%; }
    .record-search input { font-size: 16px; }
    .filter-controls { width: 100%; }
    .filter-controls .record-select { min-width: 0; flex: 1; padding-right: 30px; }
    .record-select { min-height: 40px; }
    .record-panel-heading { padding: 21px 18px; }
    .record-panel-heading p { max-width: 260px; }
    :is(.members-table, .connections-table, .instruments-table, .watchlist-table) { display: block; }
    :is(.members-table, .connections-table, .instruments-table, .watchlist-table) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    :is(.members-table, .connections-table, .instruments-table, .watchlist-table) tbody { display: grid; padding: 0 18px 18px; gap: 12px; }
    :is(.members-table, .connections-table, .instruments-table, .watchlist-table) tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 17px 15px; }
    :is(.members-table, .connections-table, .instruments-table, .watchlist-table) td, :is(.members-table, .connections-table, .instruments-table, .watchlist-table) td:first-child, :is(.members-table, .connections-table, .instruments-table, .watchlist-table) td:last-child { padding: 0; border: 0; }
    .member-identity-cell, .connection-identity-cell, .instrument-identity-cell { grid-column: 1 / -1; padding-right: 25px !important; }
    .member-name-email strong { font-size: 13px; }
    .member-name-email > span { font-size: 12px; }
    :is(.members-table, .connections-table, .instruments-table, .watchlist-table) td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); margin-bottom: 7px; }
    .members-table .member-actions, .connections-table .record-actions, .instruments-table .record-actions, .watchlist-table .record-actions { position: absolute; right: 8px; top: 16px; width: auto; }
    .member-actions .icon-button { width: 36px; height: 36px; }
    .record-actions .icon-button { width: 36px; height: 36px; }
    :is(.members-table, .connections-table, .instruments-table, .watchlist-table) .date-column { display: none; }
    .record-pagination { padding-inline: 16px; font-size: 11px; }
    .record-pagination nav { gap: 3px; }
    .filter-summary { padding-inline: 18px; }
    .role-guide-list { grid-template-columns: 1fr; gap: 0; }
    .directory-guide h2 { font-size: 23px; }
    .role-guide-list p { font-size: 12px; }
    .guide-heading { font-size: var(--text-compact); }
    .guide-footnote { max-width: none; }
    .form-section-heading { padding: 20px 18px; }
    .form-section-body { padding: 20px 18px; }
    .form-field-grid { grid-template-columns: 1fr; }
    .role-options { grid-template-columns: 1fr; gap: 12px; }
    .role-option-content { display: flex; align-items: center; gap: 10px; padding: 16px 36px 16px 12px; }
    .role-option-content > span:last-child { margin: 0; font-size: 12px; }
    .role-option-heading { min-width: 78px; padding-right: 0; }
    .radio-indicator { top: 20px; }
    .record-form-actions > span { display: none; }
    .record-form-actions > div { width: 100%; }
    .record-form-actions .button-primary { flex: 1; }
    .record-form-actions { bottom: 0; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    .field-help, .required-label, .optional-label { font-size: 12px; }
    .access-switch { height: 44px; }
    .profile-heading { align-items: flex-start; flex-direction: column; gap: 21px; }
    .profile-avatar { width: 55px; height: 55px; font-size: 20px; border-radius: 13px; }
    .profile-heading h1 { font-size: 28px; }
    .profile-identity { gap: 14px; }
    .profile-identity p:last-child { font-size: 13px; }
    .profile-heading > a { width: 100%; }
    .record-properties { padding-inline: 18px; }
    .record-properties > div { grid-template-columns: 1fr; gap: 9px; padding: 16px 0; }
    .record-properties dd { font-size: 14px; }
    .member-notes, .empty-notes { padding-inline: 18px; }
    .removal-section { flex-direction: column; align-items: flex-start; }
    .removal-confirmation { padding: 25px 21px; margin-top: 0; }
    .removal-confirmation h1 { font-size: 25px; }
    .removal-identity { flex-wrap: wrap; }
    .confirmation-actions { flex-direction: column-reverse; }
    .confirmation-actions > * { width: 100%; }
    .crud-notice { padding: 11px; font-size: 13px; }
    .conflict-recovery { align-items: flex-start; flex-direction: column; }
    .access-profile-group, .authentication-fields, .capability-options, .connection-toggle-grid, .capability-grid { grid-template-columns: 1fr; }
    .connection-toggle-grid { gap: 18px; }
    .connection-toggle-grid .status-setting + .status-setting { padding-top: 18px; border-top: 1px solid var(--line); }
    .connection-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .connection-metrics-grid > div:not(:nth-child(3n + 1)) { border-left: 0; }
    .connection-metrics-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
    .connection-operation-actions { flex-direction: column; }
    .connection-operation-actions button { width: 100%; }
    .history-source-card dl { grid-template-columns: 1fr 1fr; }
    .history-source-card dl > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
    .connection-profile-heading .profile-identity { align-items: flex-start; }
    .instrument-overview-grid, .live-layout { grid-template-columns: 1fr; }
    .provider-market-grid { grid-template-columns: 1fr; }
    .provenance-flow { grid-template-columns: 1fr; }
    .provenance-flow > .icon { transform: rotate(90deg); }
    .source-metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .source-metadata > div:nth-child(odd) { border-left: 0; }
    .instrument-chart svg { height: 210px; }
    .missing-member { padding: 30px 22px; }
    .profile-heading-actions { width: 100%; }
    .profile-heading-actions > *, .profile-heading-actions form > button { flex: 1; }
    .watch-reason-cell { grid-column: 1 / -1; max-width: none; }
    .watch-reason-cell p { -webkit-line-clamp: 3; }
    .discovery-grid { grid-template-columns: 1fr; padding-inline: 18px; }
    .discovery-reason { min-height: 0; }
    .discovery-learning-strip { grid-template-columns: 1fr; }
    .discovery-learning-strip > .icon { justify-self: center; transform: rotate(90deg); }
    .discovery-detail-signals { grid-template-columns: 1fr; }
    .discovery-detail-signals > div:nth-child(even) { border-left: 0; }
}
@media (max-width: 479.98px) {
    .breadcrumb-parent { display: none; }
    .crud-heading { flex-direction: column; gap: 20px; }
    .crud-heading > .button-primary { width: 100%; min-height: 44px; }
    .directory-summary { gap: 0; }
    .directory-summary > div { padding-inline: 12px; }
    .summary-label { font-size: 11px; }
    .directory-summary strong { font-size: 24px; }
    .record-panel-heading h2 { font-size: 14px; }
    .record-panel-heading > .icon { display: none; }
    .role-option-heading { min-width: 70px; }
    .role-option-heading .icon { display: none; }
    .connection-metrics-grid { grid-template-columns: 1fr; }
    .connection-metrics-grid > div:nth-child(even) { border-left: 0; }
    .connection-history-link, .history-source-card > header, .history-source-action, .history-source-confirm > div { align-items: flex-start; flex-direction: column; }
    .connection-history-link a, .history-source-action form, .history-source-action button { width: 100%; }
    .history-source-summary { grid-template-columns: 1fr 1fr; }
    .history-source-summary > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
    .history-source-summary > div:nth-child(2) { border-left: 0; }
    .history-source-card dl { grid-template-columns: 1fr; }
    .history-source-card dl > div + div, .history-source-card dl > div:nth-child(3) { grid-column: auto; border-top: 1px solid var(--line); border-left: 0; }
    .instrument-page-heading > .button-secondary { width: 100%; }
    .instrument-detail-heading { align-items: flex-start; flex-direction: column; }
    .instrument-heading-value { width: 100%; padding-top: 17px; border-top: 1px solid var(--line); text-align: left; }
    .instrument-tabs { margin-inline: -4px; }
    .instrument-metric-grid, .live-quote-sides { grid-template-columns: 1fr; }
    .instrument-metric-grid > div, .instrument-metric-grid > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
    .instrument-metric-grid > div:last-child { border-bottom: 0; }
    .instrument-metric-grid > div:nth-child(even), .live-quote-sides > div + div { border-left: 0; }
    .live-quote-sides > div + div { border-top: 1px solid var(--line); }
    .provider-market-card dl { grid-template-columns: 1fr; }
    .provider-market-card dl > div:nth-child(even) { border-left: 0; }
    .provider-market-card footer, .live-status-strip, .source-listing-footer { align-items: flex-start; flex-direction: column; }
    .history-heading { align-items: flex-start; flex-direction: column; }
    .history-value-summary { align-items: flex-start; flex-direction: column; }
    .history-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .history-stat-grid > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
    .history-stat-grid > div:nth-child(4) { border-top: 1px solid var(--line); }
    .source-metadata { grid-template-columns: 1fr; }
    .source-metadata > div + div { border-left: 0; }
    .watchlist-boundary-callout, .discovery-boundary-callout { margin-top: 0; }
    .profile-heading-actions { flex-direction: column; align-items: stretch; }
    .profile-heading-actions form, .profile-heading-actions form > button { width: 100%; }
    .instrument-heading-actions { width: 100%; align-items: stretch; flex-direction: column; }
    .instrument-heading-actions .instrument-heading-value { width: 100%; }
    .instrument-heading-actions > a { width: 100%; }
    .selected-instrument { align-items: flex-start; flex-wrap: wrap; }
    .selected-instrument .quiet-label { margin-left: 50px; }
    .discovery-page-heading > .button-secondary { width: 100%; }
    .discovery-score-explanation { grid-template-columns: 1fr; }
    .discovery-score-explanation > div + div { border-top: 1px solid var(--line); border-left: 0; }
    .discovery-card > footer { grid-template-columns: 1fr 30px; }
    .discovery-card > footer > div:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .switch-track::before { transition: none; } }
