@import url('./registration-layouts.css');
@import url('./central-dashboard.css');
/* Production uses the approved reference system; additions cover live data and media. */
/* Initial connection screen is independent of the two-column login layout. */
.app-boot-loading{display:grid;place-items:center;min-height:100vh;min-height:100dvh;width:100%;padding:24px;text-align:center}
.app-boot-card{width:min(480px,100%);min-width:0;padding:36px 24px;border:1px solid #ffffffb3;border-radius:24px;background:var(--surface,#fff);box-shadow:var(--shadow,0 12px 36px -20px #31466966)}
.app-boot-card h1{margin:0;font-size:24px;line-height:1.35;color:var(--ink,#102b58);text-align:center}
.app-boot-status{display:flex;align-items:center;justify-content:center;gap:10px;margin:14px 0 0;font-size:13px;line-height:1.6;color:var(--muted,#637da6);text-align:center}
.app-boot-status>span:last-child{min-width:0}
.app-boot-spinner{display:block;flex:0 0 18px;width:18px;height:18px;border:2px solid var(--line,#dbe6f6);border-top-color:var(--brand,#246bfe);border-radius:50%;animation:app-boot-spin .85s linear infinite}
@keyframes app-boot-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.app-boot-loading{padding:16px}.app-boot-card{padding:30px 20px}.app-boot-card h1{font-size:22px}}
@media(prefers-reduced-motion:reduce){.app-boot-spinner{animation:none}}
.production .app-sidebar{top:16px}.production .mobile-backdrop.visible{inset:0}.production .auth-shell{min-height:100vh}.production .prototype{min-height:100vh}.production .product-topbar .session-label{font-size:10px;color:var(--muted)}
.production .app-content{min-height:calc(100vh - 160px)}.live-filter{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:20px}.live-filter .field{flex:1;min-width:160px}.live-filter input{min-width:0}.document-control{border:1px dashed var(--line);padding:18px;border-radius:14px;display:grid;gap:12px}.document-control input[type=file]{max-width:100%;font-size:12px}.file-state{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.media-preview{display:block;width:100%;max-height:390px;object-fit:contain;border-radius:18px;background:#e5ebf3}.camera-preview{width:100%;aspect-ratio:4/3;max-height:400px;object-fit:cover;border-radius:18px;background:#122545}.evidence-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field input[type=color]{height:46px;padding:5px}.field textarea{width:100%;min-height:100px;border:1px solid #cbd8eb;border-radius:10px;background:#ffffffb8;padding:12px;font:inherit}.inline-error{margin:0 0 20px}.loading-state{padding:60px 20px;text-align:center;color:var(--muted)}.loading-ring{width:32px;height:32px;border:3px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:live-spin 1s linear infinite;margin:0 auto 18px}.record-links{display:flex;gap:12px;align-items:center}.auth-environments{margin-top:20px;justify-content:center}.auth-environments a{font-size:11px}.permission-scroll{overflow-x:auto}.permission-scroll table{min-width:700px}.contact-repeat{display:grid;gap:14px}.repeat-row{border:1px solid var(--line);border-radius:12px;padding:16px}.live-tabs{margin-bottom:24px}.live-tabs a{white-space:nowrap}.client-signature-actions{margin-top:20px}.signature-progress{display:flex;align-items:center;gap:12px}.signature-progress .loading-ring{width:20px;height:20px;margin:0}.readonly-list{display:grid;gap:12px}.readonly-list li{list-style:none}.table-scroll td{overflow-wrap:anywhere}.product-topbar .btn{min-height:32px;padding:5px 10px;font-size:10px}.auth-card .field input{width:100%}.modal-body .form-grid{margin-top:15px}.color-preview{height:80px;border:1px solid var(--line);border-radius:14px}.mobile-menu:focus-visible{outline-offset:4px}.status-note{font-size:11px;color:var(--muted);margin-top:12px}.entry-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.entry-grid .btn{min-height:70px}.signed-evidence{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.readonly-section{margin-top:20px}.badge.warning{white-space:normal}.production .tenant-brand-image{object-fit:contain}.production .side-profile{overflow-wrap:anywhere}.production .side-profile>span{min-width:0}.production .btn.danger{background:#ae3449;color:white}.production .app-sidebar nav{overflow-y:auto;min-height:0}.production .app-sidebar{overflow-y:auto}.form-action-error{margin-top:15px}.permission-categories{display:flex;flex-wrap:wrap;gap:10px}.data-warning{margin-bottom:20px}@keyframes live-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){.evidence-grid{grid-template-columns:1fr}.entry-grid{grid-template-columns:1fr}.production .product-topbar .session-label{display:none}.production .app-sidebar{top:10px}.live-filter .field{width:100%}.product-topbar .tenant-context{font-size:10px}.production .auth-story h1{margin-top:28px}.production .tenant-brand-image{max-width:170px}.permission-scroll table{min-width:610px}}
@media(prefers-reduced-motion:reduce){.loading-ring{animation-duration:2s}}

.production [hidden]{display:none!important}
.btn[aria-busy=true]{opacity:.8}.btn[aria-busy=true]:before{content:'';width:14px;height:14px;flex:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:live-spin .8s linear infinite}
.registry-menu>summary{list-style:none}.registry-menu>summary::-webkit-details-marker{display:none}.registry-menu[open]>summary>svg:last-child{transform:rotate(90deg)}
.live-filter{align-items:flex-end}.client-broker-card>.between>.row{flex:1;min-width:0;flex-wrap:nowrap}.client-broker-card>.between>.row>div{min-width:0}
@media(max-width:600px){.client-broker-card>.between>.badge{display:none}}

#regulation-settings-form fieldset{border:0;padding:0;margin:0;min-width:0}

.regulation-module .between{flex-wrap:wrap}.regulation-module .table-scroll table:has(th:nth-child(4)){min-width:740px}.regulation-module .table-scroll .badge{white-space:nowrap}

.regulation-calendar-row{display:flex;justify-content:space-between;gap:20px;padding:16px;border:1px solid var(--line);border-radius:14px}.regulation-calendar-row>div:first-child{min-width:0}.regulation-overdue{border-left:4px solid #b42318}.regulation-today{border-left:4px solid #b7791f}.regulation-calendar-row .badge{white-space:nowrap}@media(max-width:600px){.regulation-calendar-row{flex-direction:column;gap:12px}.regulation-dashboard .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Regulatory information stays readable alongside status and document evidence. */
.regulation-module { --regulation-blue: #285d9b; --regulation-teal: #176e65; min-width: 0; }
.regulation-module .card { border-color: color-mix(in srgb, var(--brand) 12%, white); background: linear-gradient(145deg, #fff, #f9fbff); }
.regulation-module .card-heading { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.regulation-module .card-heading h2 { color: var(--navy); }
.regulation-module .live-filter { padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--brand-soft) 32%, #fff); }
.regulation-module .table-scroll { margin-inline: 0; width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.regulation-module .table-scroll th { padding: 13px 16px; background: color-mix(in srgb, var(--brand-soft) 55%, #fff); color: #466188; font-size: 10px; letter-spacing: .15px; }
.regulation-module .table-scroll td { padding: 17px 16px; font-size: 12px; vertical-align: top; border-bottom-color: #e9eef7; }
.regulation-module .table-scroll td > strong { display: block; max-width: 32rem; white-space: normal; line-height: 1.55; color: var(--navy); }
.regulation-module .table-scroll td > p { margin-top: 5px; }
.regulation-module .table-scroll tbody tr:last-child td { border-bottom: 0; }
.regulation-module .table-scroll tbody tr:hover { background: #f6f9ff; }
.regulation-module .table-scroll td:last-child:has(.selection-control), .regulation-actions-field { min-width: 168px; width: 190px; }
.regulation-module .table-scroll td:last-child > .field { min-width: 168px; }
.regulation-module .table-scroll .selection-trigger { min-height: 40px; font-size: 11px; border-radius: 10px; }
.regulation-module .table-scroll .selection-trigger-icon { width: 26px; height: 26px; border-radius: 7px; }
.regulation-actions-field > .field > label, .regulation-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.regulation-module .regulation-notifications-table table:has(th:nth-child(4)) { min-width: 980px; table-layout: fixed; }
.regulation-notifications-table th:first-child { width: 26%; }
.regulation-notifications-table td:first-child { min-width: 170px; }
.regulation-notifications-table th:nth-child(2) { width: 20%; }
.regulation-notifications-table td:nth-child(3) { min-width: 154px; }
.regulation-notifications-table td:nth-child(4), .regulation-notifications-table td:nth-child(5) { min-width: 109px; font-variant-numeric: tabular-nums; }
.regulation-notifications-table td:nth-child(4) { min-width: 220px; }
.regulation-module .regulation-notifications-table td:last-child:has(.selection-control), .regulation-notifications-table .regulation-actions-field { min-width: 148px; width: 160px; }
.regulation-notification-identifiers { margin: 0; display: grid; gap: 11px; }
.regulation-notification-identifiers dt { color: var(--muted); font-size: 10px; font-weight: 500; margin-bottom: 3px; }
.regulation-notification-identifiers dd { margin: 0; font-size: 12px; color: var(--navy); font-variant-numeric: tabular-nums; overflow-wrap: normal; }
.regulation-response-label { display: block; font-size: 12px; font-weight: 650; line-height: 1.55; }
.regulation-response-label.danger { color: #af2c42; }
.regulation-response-label.success { color: #1d7155; }
.regulation-response-label.warning { color: #885a1c; }
.regulation-notifications-table .regulation-view-label { display: block; line-height: 1.55; font-size: 12px; }
.regulation-view-label.viewed { color: #42638b; }
.regulation-view-label.unviewed { color: #885a1c; }
.regulation-response-link { display: inline-flex; flex-direction: column; gap: 4px; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; line-height: 1.5; }
.regulation-response-link span { font-size: 10px; }
.regulation-response-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 3px; }
.regulation-module .table-scroll .btn { min-height: 34px; padding: 8px 11px; font-size: 11px; }
.regulation-module .table-scroll .btn.ghost { background: color-mix(in srgb, var(--brand-soft) 42%, white); border-color: color-mix(in srgb, var(--brand) 14%, var(--line)); }
.regulation-notification-summary { max-width: 38rem; white-space: normal; overflow-wrap: anywhere; color: #465c7a; font-size: 12px; line-height: 1.75; }
td .regulation-notification-summary { min-width: 260px; margin-block: 9px 5px; }
blockquote.regulation-notification-summary { margin: 0; padding: 13px 16px; border-left: 3px solid color-mix(in srgb, var(--brand) 55%, white); border-radius: 0 10px 10px 0; background: #f2f6fd; }
.regulation-status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.regulation-status-grid > * { min-width: 0; padding: 17px; border: 1px solid #dce6f3; border-top: 3px solid #7093c2; border-radius: 12px; background: #f7faff; }
.regulation-status-grid > * > strong { color: #496181; font-size: 11px; }
.regulation-status-grid .margin-top { margin-top: 10px; }
.regulation-status-grid .small { line-height: 1.65; }
.regulation-status-grid .badge { white-space: normal; }
.regulation-status-grid > *:has(.badge.success) { border-top-color: #429889; background: #f4fbf8; }
.regulation-status-grid > *:has(.badge.warning) { border-top-color: #c99644; background: #fffbf2; }
.regulation-status-grid > *:has(.badge.danger) { border-top-color: #c96b77; background: #fff7f8; }
:is(.regulation-module, .regulation-receipt-verification, .regulation-status-grid) .badge { border: 1px solid #d6e1f0; border-radius: 7px; padding: 6px 9px; line-height: 1.35; font-weight: 600; color: #4a6388; background: #eff4fb; }
:is(.regulation-module, .regulation-receipt-verification, .regulation-status-grid) .badge.info { color: #2d5d96; background: #eaf2ff; border-color: #cbdcf5; }
:is(.regulation-module, .regulation-receipt-verification, .regulation-status-grid) .badge.success { color: #216b59; background: #eaf7f0; border-color: #c2e4d6; }
:is(.regulation-module, .regulation-receipt-verification, .regulation-status-grid) .badge.warning { color: #885a1c; background: #fff5df; border-color: #efdab0; }
:is(.regulation-module, .regulation-receipt-verification, .regulation-status-grid) .badge.danger { color: #a3374b; background: #fff0f3; border-color: #efc9d0; }
.regulation-document-list { min-width: 0; display: grid; gap: 12px; }
.regulation-document-list .table-scroll { border-color: #cddfe4; }
.regulation-document-list .table-scroll th { color: #396870; background: #f0f8f8; }
.regulation-document-list .table-scroll td { vertical-align: middle; }
.regulation-document-list .table-scroll td:first-child { min-width: 230px; white-space: normal; }
.regulation-document-list .table-scroll td:nth-child(2) { min-width: 210px; max-width: 29rem; white-space: normal; }
.regulation-document-list .signed-evidence { color: #566984; line-height: 1.7; overflow-wrap: anywhere; word-break: break-word; }
.regulation-document-list a.btn { color: #176e65; border-color: #c2ded7; background: #eef9f5; }
.regulation-receipt-verification { padding: 22px; border: 1px solid #d0e0f2; border-left: 4px solid #7093c2; border-radius: 14px; background: linear-gradient(145deg, #f6faff, #fff); }
.regulation-receipt-verification > .badge { margin: 0 7px 7px 0; }
.regulation-receipt-verification:has(> .badge.success) { border-left-color: #429889; }
.regulation-receipt-verification:has(> .badge.warning) { border-left-color: #c99644; }
.regulation-receipt-verification h3 { color: #29496e; font-size: 13px; }
.regulation-receipt-verification .summary { gap: 19px 24px; }
.regulation-receipt-verification .summary dt { font-size: 11px; color: #627894; }
.regulation-receipt-verification .summary dd { font-size: 12px; color: #19385f; font-variant-numeric: tabular-nums; }
.regulation-calendar-row { background: #fff; box-shadow: 0 3px 12px #19385f05; }
.regulation-calendar-row.regulation-overdue { background: #fff8f8; }
.regulation-calendar-row.regulation-today { background: #fffcf4; }
@media (hover: hover) and (pointer: fine) {
  .production .btn.danger:where(:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"])):hover { background: #952b3d; }
  .regulation-module .table-scroll .btn.ghost:where(:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"])):hover { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 42%, var(--line)); }
  .regulation-document-list a.btn:where(:not([aria-disabled="true"]):not([aria-busy="true"])):hover { color: #10594f; background: #dff2eb; border-color: #78b9aa; }
}
@media (max-width: 1100px) {
  .regulation-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .regulation-module .live-filter { padding: 13px; gap: 14px; }
  .regulation-module .live-filter > .btn { flex: 1; }
  .regulation-status-grid { gap: 10px; }
  .regulation-status-grid > * { padding: 13px; }
  .regulation-receipt-verification { padding: 16px; }
  .regulation-receipt-verification .summary { grid-template-columns: 1fr; gap: 15px; }
  .regulation-receipt-verification .actions .btn { width: 100%; white-space: normal; }
  .regulation-module .table-scroll td, .regulation-module .table-scroll th { padding: 13px 12px; }
  td .regulation-notification-summary { min-width: 240px; }
  .regulation-document-list .table-scroll td:first-child { min-width: 210px; }
  .regulation-module .regulation-notifications-table { overflow: visible; border: 0; background: transparent; }
  .regulation-module .regulation-notifications-table table:has(th:nth-child(4)) { display: block; min-width: 0; }
  .regulation-notifications-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .regulation-notifications-table tbody { display: grid; gap: 14px; }
  .regulation-module .regulation-notifications-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 15px; gap: 18px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
  .regulation-module .regulation-notifications-table td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; }
  .regulation-notifications-table td::before { content: attr(data-label); display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 500; }
  .regulation-module .regulation-notifications-table td:is(:first-child, :nth-child(4), :last-child) { grid-column: 1 / -1; }
  .regulation-notifications-table td:nth-child(2)::before { display: none; }
  .regulation-notification-identifiers { gap: 9px; }
  .regulation-notification-identifiers dd { overflow-wrap: anywhere; }
  .regulation-module .regulation-notifications-table td:last-child:has(.selection-control), .regulation-notifications-table .regulation-actions-field { min-width: 0; width: 100%; }
}
@media (max-width: 380px) { .regulation-status-grid { grid-template-columns: 1fr; } }

/* Text-only selectors are opt-in for the electronic-process filters/actions. */
.regulation-module .selection-control-plain .selection-trigger { padding-inline: 12px; }
.regulation-module .selection-popup-plain .control-option { min-height: 40px; padding-inline: 12px; }

/* Long official subject names and signed filenames must fit the reply form. */
#regulation-petition-form .form-grid > *,
#regulation-petition-form .selection-control,
#regulation-petition-form .selection-trigger,
#regulation-petition-form .document-control { min-width: 0; max-width: 100%; }
#regulation-petition-form .selection-trigger-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#regulation-inline-documents { overflow-wrap: anywhere; }

/* Optional passkey enrollment immediately after a successful sign-in. */
.passkey-offer-icon{display:flex;align-items:center;justify-content:center;width:58px;height:58px;margin-bottom:22px;border-radius:18px;color:var(--brand);background:color-mix(in srgb,var(--brand) 10%,transparent)}
.auth-card.passkey-offer h1{font-size:30px;line-height:1.2;letter-spacing:-.8px;outline:none}
.auth-card.passkey-offer>p{line-height:1.7}
.passkey-offer-benefit{display:flex;align-items:flex-start;gap:13px;padding:18px;margin:24px 0;border:1px solid var(--line);border-radius:16px;background:color-mix(in srgb,var(--brand) 5%,transparent)}
.passkey-offer-benefit>span{color:var(--brand);flex-shrink:0}
.passkey-offer-benefit strong{font-size:13px;color:var(--ink)}
.auth-card .passkey-offer-benefit p{font-size:12px;line-height:1.6;margin:6px 0 0}
.auth-card .passkey-offer-hint{font-size:12px;margin-bottom:24px}
.passkey-offer-actions{display:grid;gap:12px}
.passkey-offer-actions .btn{width:100%;min-height:46px;white-space:normal}
.auth-card .passkey-offer-status{font-size:12px;margin:16px 0 0;color:var(--ink)}
.passkey-offer-status:empty{display:none}
.auth-card .passkey-offer-note{font-size:11px;line-height:1.6;text-align:center;margin:18px 0 0;color:var(--muted)}
@media(max-width:600px){.auth-card.passkey-offer h1{font-size:25px}.auth-shell:has(.passkey-offer) .auth-story>:is(h1,p,.auth-illustration){display:none}.auth-shell:has(.passkey-offer) .auth-story{margin-bottom:22px}}

.notification-title-category{margin-top:12px}
.notification-due-date{color:#af2c42;font-weight:400;line-height:1.6}
.notification-situation .badge{border-radius:12px;font-weight:500;white-space:normal;text-align:left;max-width:100%}
.notification-situation dd,.notification-response-stages{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px}
.notification-situation-note{white-space:normal;min-width:0;flex-basis:100%;margin:3px 0 0;font-size:10px;line-height:1.55}
.notification-process-group{display:flex;align-items:center;justify-content:space-between;gap:12px}
.notification-process-group>span{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.regulation-notifications-table .notification-process-heading th{border-top:1px solid var(--line);background:color-mix(in srgb,var(--brand-soft) 45%,white);padding:14px 16px;text-align:left}
.regulation-notifications-table tbody:first-of-type .notification-process-heading th{border-top:0}
.regulation-notifications-table .notification-process-members td:first-child{border-left:3px solid color-mix(in srgb,var(--brand) 25%,var(--line))}
.regulation-notifications-table tr[hidden]{display:none!important}
@media(max-width:700px){.regulation-notifications-table tbody{margin-bottom:14px}.regulation-module .regulation-notifications-table .notification-process-heading{display:block;padding:0;border:0}.notification-process-heading th{display:block;border-radius:13px}.notification-process-group{align-items:flex-start;flex-direction:column}.regulation-module .regulation-notifications-table .notification-process-members td:first-child{border-left:0}.regulation-module .regulation-notifications-table td:nth-child(2){grid-column:1/-1}.regulation-module .regulation-notifications-table td:nth-child(3){grid-column:1/-1}}
html[data-theme="dark"] .notification-due-date{color:#ff9bb0}
html[data-theme="dark"] .regulation-notifications-table .notification-process-heading th{background:var(--workspace-hover);color:var(--ink)}

.regulation-notifications-table thead th:nth-child(1){width:21%}
.regulation-notifications-table thead th:nth-child(2){width:19%}
.regulation-notifications-table thead th:nth-child(3){width:16%}
.regulation-notifications-table thead th:nth-child(4){width:25%}
.regulation-notifications-table thead th:nth-child(5){width:19%}
.regulation-module .regulation-notifications-table .notification-situation .badge{white-space:normal}

.regulation-notifications-table .regulation-actions-field{min-width:0;width:100%}

/* Numeric fields use direct entry throughout the application. */
input[type="number"]{-moz-appearance:textfield;appearance:textfield}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
