/* Classic workbench presentation over the production DOM. Business semantics remain in app.js. */
:root {
  --bg: #f3f6fb;
  --surface: #fff;
  --text: #21324a;
  --title: #203a61;
  --muted: #596f8b;
  --primary: #2463da;
  --primary-hover: #184cae;
  --line: #e0e7f0;
  --soft: #edf4ff;
  --radius: 12px;
  --shadow: 0 3px 14px #19355e0a;
  --page-gutter: clamp(16px, 2.5vw, 48px);
  --page-block-padding: 28px;
  --header-height: 132px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
body {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1 {
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.4;
}
h2 {
  font-size: 19px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline-color: #1658cf;
}
.topbar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand account" "navigation navigation";
  align-items: center;
  gap: 0;
  height: auto;
  min-height: var(--header-height);
  padding: 0 var(--page-gutter);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.topbar > .brand {
  grid-area: brand;
  justify-self: start;
}
.brand.site-brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  width: auto;
  height: 76px;
  max-width: 100%;
}
.site-brand .brand-logo {
  display: block;
  width: 174px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}
.site-brand .brand-caption {
  display: block;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: #526985;
  letter-spacing: 0.03em;
  line-height: 1.7;
}
.topbar .user-block {
  grid-area: account;
  justify-self: end;
  min-width: 0;
  gap: 10px;
}
.primary-navigation {
  grid-area: navigation;
  display: flex;
  align-self: stretch;
  align-items: stretch;
  justify-content: flex-start;
  gap: 12px;
  width: auto;
  min-width: 0;
  height: 55px;
  margin: 0 calc(-1 * var(--page-gutter));
  padding: 0 var(--page-gutter);
  border-top: 1px solid #edf1f6;
  overflow-x: auto;
  scrollbar-width: thin;
}
.primary-navigation .topnav {
  position: relative;
  flex: 0 0 auto;
  min-width: 130px;
  min-height: 54px;
  padding: 0 24px;
  justify-content: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 550;
  color: #53657d;
  border-bottom: 3px solid transparent;
}
.primary-navigation .topnav.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.primary-navigation .topnav:hover {
  background: #f7faff;
}
.primary-navigation .topnav .icon {
  width: 19px;
  height: 19px;
}
.avatar,
.user-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #d2def0;
  border-radius: 50%;
  background: #eaf1fc;
  color: #184cae;
  font-size: 14px;
  font-weight: 600;
}
.user-name {
  max-width: 150px;
  color: #405575;
  font-size: 13px;
}
.btn {
  min-height: 38px;
  border-color: #d7e0ed;
  border-radius: 7px;
  padding: 8px 14px;
  color: #405673;
  background: #fff;
  font-size: 13px;
  font-weight: 550;
}
.btn:hover:not(:disabled) {
  background: #edf4ff;
  border-color: #adc9f0;
  color: #184cae;
}
.btn.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 5px #2463da1f;
}
.btn.primary.payment-confirmation-pending:disabled {
  filter: grayscale(1);
  box-shadow: none;
}
.btn.primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.btn.danger {
  color: var(--danger);
}
.btn.danger-solid {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}
.btn.danger-solid:hover:not(:disabled) {
  background: #961e27;
  border-color: #961e27;
  color: #fff;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}
.btn.icon-only {
  min-width: 38px;
  padding: 8px;
}
.layout {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: var(--page-block-padding) var(--page-gutter) 36px;
}
.page-heading {
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.page-heading p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
}
.heading-actions {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.heading-actions .date {
  color: #596f8b;
  font-size: 12px;
}
.actions {
  gap: 9px;
}
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.list-layout,
.settlement-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 20px;
  min-width: 0;
  min-height: 0;
}
.list-main,
.settlement-list-main {
  min-width: 0;
}
.list-main > .card {
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
}
.list-main > .card > .table-wrap {
  flex: 0 1 auto;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.stats .stat {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 87px;
  padding: 15px 14px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}
.stats .stat:last-child {
  border-right: 0;
}
.stats .stat[class*="status-"]:not(.status-total) {
  border-top: 0;
}
.stats .stat.selected {
  background: #edf4ff;
  box-shadow: inset 0 -3px var(--primary);
}
.stats .stat:hover {
  background: #f7faff;
}
.stats .stat .stat-icon {
  order: 2;
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  border-radius: 5px;
  background: transparent;
}
.stats .stat .stat-icon .icon {
  width: 17px;
  height: 17px;
}
.stat-content {
  min-width: 0;
}
.stat-label {
  display: block;
  color: #596f8b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}
.stat-value {
  display: block;
  margin-top: 6px;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.tabs {
  min-width: 0;
  border-color: var(--line);
  gap: 16px;
  scrollbar-width: thin;
}
.tab {
  min-height: 52px;
  padding: 14px 8px 11px;
  color: #596f8b;
  font-size: 13px;
  font-weight: 500;
  border-bottom-width: 2px;
}
.tab.active {
  color: var(--primary);
  font-weight: 600;
}
.scope-tabs {
  min-height: 54px;
  padding: 0 20px;
  gap: 24px;
}
.scope-tabs .tab {
  font-size: 13px;
  padding-inline: 2px;
}
.renewal-tabs {
  padding: 0 18px;
  background: #fbfcff;
}
.view-description {
  color: var(--muted);
  font-size: 12px;
  padding: 10px 20px;
}
.filter-bar,
.filter-bar.single-line,
.settlement-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  padding: 14px 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  border-bottom: 1px solid #e9eef5;
  background: #fff;
  scrollbar-width: thin;
}
.filter-bar.single-line > *,
.settlement-filter-bar > * {
  flex-shrink: 0;
}
.filter-bar.single-line > .search-wrap {
  flex: 1 0 195px;
  max-width: none;
}
.filter-bar.single-line > .date-filter {
  flex: 0 0 156px;
}
.filter-bar.single-line .date-trigger {
  position: relative;
  height: 40px;
  min-height: 40px;
  padding: 3px 30px 3px 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  color: #2e4769;
  background-color: #fbfcfe;
}
.filter-bar.single-line {
  --filter-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2 4 4 4 4-4' fill='none' stroke='%232e4769' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.filter-bar.single-line select {
  appearance: none;
  -webkit-appearance: none;
  height: 40px;
  padding-right: 30px;
  background-image: var(--filter-chevron);
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
}
.filter-bar.single-line .date-trigger > .date-trigger-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background: var(--filter-chevron) center / 12px 12px no-repeat;
}
.filter-bar.single-line .date-trigger small {
  font-size: 10px;
  line-height: 12px;
}
.filter-bar.single-line .date-trigger.applied {
  background-color: #f1f7ff;
}
.filter-bar.single-line > .sort-controls {
  flex-wrap: nowrap;
}
input,
select,
textarea {
  min-width: 0;
  min-height: 39px;
  border-color: #d5dfec;
  border-radius: 6px;
  background: #fff;
  color: #2e4769;
  font-size: 13px;
}
input::placeholder,
textarea::placeholder {
  color: #596f8b;
  opacity: 1;
}
.filter-bar input,
.filter-bar select,
.settlement-filter-bar input,
.settlement-filter-bar select {
  min-height: 40px;
  background: #fbfcfe;
}
.date-trigger small {
  color: #596f8b;
}
.date-panel {
  border-color: #d1def0;
  border-radius: 10px;
  box-shadow: 0 12px 40px #24436926;
}
.table-wrap,
.settlement-table-wrap {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.policy-table {
  min-width: 1020px;
  table-layout: fixed;
  font-size: 13px;
}
.policy-table th,
.settlement-table th {
  height: 44px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5ebf3;
  background: #f8faff;
  color: #596f8b;
  font-size: 12px;
  font-weight: 550;
}
.policy-table td,
.settlement-table td {
  padding: 15px 14px;
  border-bottom: 1px solid #edf1f6;
  color: #415a78;
  font-size: 13px;
}
.policy-table td:first-child,
.policy-table th:first-child,
.settlement-table td:first-child,
.settlement-table th:first-child {
  padding-left: 20px;
}
.policy-row:hover,
.settlement-table tbody tr:hover {
  background: #f7faff;
}
.policy-row.selected,
.settlement-table tbody tr.selected {
  background: #edf4ff;
}
.text-button {
  color: var(--primary);
  font-size: 13px;
  font-weight: 550;
}
.subline {
  margin-top: 4px;
  color: #596f8b;
  font-size: 12px;
}
.badge {
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.6;
}
.badge::before {
  width: 4px;
  height: 4px;
}
.pager {
  min-height: 60px;
  padding: 13px 18px;
  flex-wrap: wrap;
  gap: 12px;
  color: #596f8b;
  font-size: 12px;
  background: #fff;
}
.pager-controls {
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.pager-controls .btn,
.pager-controls select {
  min-height: 34px;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
}
.page-current {
  color: #5474a1;
  font-size: 12px;
}
.summary {
  position: sticky;
  top: 20px;
  align-self: start;
  min-width: 0;
  padding: 20px;
  border-color: #d4e0ef;
}
.summary:has(> .empty:only-child) {
  min-height: 265px;
  align-self: start;
}
.summary .section-heading {
  margin-bottom: 16px;
}
.summary .section-heading h2,
.summary .section-heading h3 {
  font-size: 15px;
  font-weight: 600;
}
.summary .product {
  color: #263f61;
  font-size: 20px;
  font-weight: 600;
}
.summary .insurer {
  color: #596f8b;
  font-size: 13px;
}
.policy-identity {
  gap: 10px;
  margin: 15px 0 10px;
  flex-wrap: wrap;
}
.policy-identity .number {
  color: #466485;
  font-size: 13px;
}
.amount-pair {
  margin: 18px 0;
  padding: 17px 16px;
  border: 1px solid #dbe8fa;
  border-radius: 9px;
  background: #f0f6ff;
}
.amount-pair dt {
  color: #596f8b;
  font-size: 12px;
}
.amount-pair dd {
  margin-top: 6px;
  color: #245da9;
  font-size: 26px;
  font-weight: 650;
}
.summary .tabs {
  gap: 0;
  justify-content: space-between;
}
.summary .tab {
  min-height: 45px;
  padding: 10px 7px;
  font-size: 12px;
}
.summary-body {
  padding-top: 22px;
}
.summary-fields,
.summary-supplemental-fields,
.settlement-summary .summary-fields,
.settlement-summary .summary-supplemental-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
}
.summary-field,
.settlement-summary .summary-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  font-size: 13px;
}
.summary-field dt {
  white-space: normal;
  color: #596f8b;
  font-size: 12px;
}
.summary-field dd,
.settlement-summary .summary-field dd {
  min-width: 0;
  text-align: left;
  color: #385173;
  font-size: 13px;
}
.summary-supplemental-fields {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.timeline-item {
  border-color: #d8e4f5;
}
.timeline-time {
  color: #596f8b;
  font-size: 12px;
}
.timeline-content {
  color: #405b7d;
  font-size: 13px;
}
.timeline-result {
  font-size: 12px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  font-size: 13px;
}
.breadcrumb {
  font-size: 13px;
  color: #596f8b;
  margin-bottom: 17px;
}
.detail-heading .actions {
  flex-wrap: wrap;
}
.detail-stats {
  padding: 0;
  overflow: hidden;
  margin-bottom: 20px;
}
.detail-stat {
  padding: 21px 25px;
}
.detail-stat dt {
  color: #596f8b;
  font-size: 13px;
}
.detail-stat dd {
  margin-top: 8px;
  color: #254970;
  font-size: 25px;
  font-weight: 650;
}
.detail-tabs {
  margin-bottom: 20px;
}
.detail-tabs .tab {
  padding: 14px 18px 12px;
  font-size: 14px;
}
.detail-content {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
}
.detail-main {
  min-width: 0;
  padding: 25px 27px;
}
.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 32px;
  margin: 6px 0 25px;
}
.field-row {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border-bottom: 0;
}
.field-row dt {
  color: #596f8b;
  font-size: 12px;
}
.field-row dd {
  color: #385173;
  font-size: 14px;
}
.side-card {
  padding: 21px 23px;
}
.side-card .field-grid {
  gap: 18px;
}
.side-card .field-row {
  gap: 5px;
}
.notes {
  background: #f7f9fd;
  border: 1px solid #e7edf6;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.85;
}
.resource-item {
  padding: 19px 20px;
  border-color: var(--line);
  border-radius: 10px;
}
.attachment-row {
  min-width: 0;
}
.attachment-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
.metadata {
  color: #596f8b;
  font-size: 12px;
  line-height: 1.75;
}
.person-detail {
  margin-top: 28px;
  padding-top: 24px;
}
.person-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* Overview presents live totals and chart data; no decorative metric substitution. */
.overview-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}
.overview-main {
  gap: 20px;
}
.overview-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.overview-kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
  min-height: 147px;
  padding: 20px 18px 17px;
  overflow: hidden;
}
.overview-kpi::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 3px;
  height: 24px;
  background: #a8c2ed;
  border-radius: 0 3px 3px 0;
}
.overview-kpi:first-child::before {
  background: var(--primary);
}
.overview-kpi-icon {
  position: absolute;
  right: 15px;
  top: 19px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 0;
  background: transparent;
  color: #7e9bc4;
}
.overview-kpi-icon .icon {
  width: 19px;
  height: 19px;
}
.overview-kpi > div {
  width: 100%;
}
.overview-kpi h2 {
  padding-right: 24px;
  color: #596f8b;
  font-size: 12px;
  line-height: 1.6;
}
.overview-kpi-value {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 13px 0 7px;
}
.overview-kpi-value strong {
  display: block;
  max-width: 100%;
  color: #203a61;
  font-size: clamp(23px, 2vw, 31px);
  font-weight: 650;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.overview-kpi-value > span {
  margin-left: 0;
  font-size: 11px;
}
.overview-caption {
  font-size: 12px;
  color: #596f8b;
}
.overview-chart-card {
  padding: 22px;
}
.overview-chart-head h2 {
  font-size: 16px;
}
.overview-chart-head p {
  font-size: 12px;
}
.overview-lower {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.overview-status-layout {
  justify-content: center;
  gap: 20px;
}
.overview-donut {
  max-width: 170px;
}
.overview-status-legend {
  font-size: 12px;
}
.overview-status-legend > div {
  padding: 7px 0;
}
.overview-data {
  font-size: 12px;
}
.overview-method {
  padding: 0 2px;
  color: #596f8b;
  font-size: 12px;
}
.overview-events {
  padding: 20px;
}
.overview-events-heading {
  margin-bottom: 17px;
}
.overview-events-heading h2 {
  font-size: 15px;
}
.overview-events-heading h2 .icon {
  width: 18px;
  height: 18px;
}
.overview-event-filters {
  gap: 4px;
  margin: 15px 0 5px;
  padding: 4px;
  border-radius: 7px;
  background: #f1f5fa;
}
.overview-event-filter {
  min-height: 31px;
  padding: 5px 9px;
  font-size: 12px;
  border-radius: 5px;
}
.overview-event-filter.active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 1px 3px #1a417010;
}
.overview-event {
  gap: 11px;
  padding: 17px 0;
}
.overview-event-icon {
  width: 33px;
  height: 33px;
  border-radius: 9px;
}
.overview-event-title strong {
  font-size: 13px;
  font-weight: 600;
}
.overview-event-main p,
.overview-event-main time {
  font-size: 12px;
}
.overview-event-pager {
  flex-wrap: wrap;
  padding-top: 16px;
  gap: 8px;
  font-size: 12px;
}
.overview-event-pager > div {
  gap: 5px;
}
/* Settlement: preserve direction, year, status badges, exact backend decimals and selection controls. */
.settlement-period-tabs {
  width: fit-content;
  max-width: 100%;
  margin: -4px 0 20px;
  padding: 4px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #eaf0f8;
}
.settlement-period-tabs .tab {
  min-height: 36px;
  padding: 7px 17px;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
}
.settlement-period-tabs .tab.active {
  background: #fff;
  box-shadow: 0 1px 4px #1e426e1a;
}
.settlement-detail-years {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.settlement-detail-years .tab {
  min-height: 44px;
  cursor: pointer;
}
.settlement-year-unavailable {
  padding: 64px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 16px;
}
@media (max-width: 600px) {
  .settlement-detail-years {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .settlement-detail-years .tab {
    width: 100%;
    padding: 8px;
  }
}
.settlement-stats {
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  margin-bottom: 20px;
}
.settlement-stats .stat {
  min-height: 96px;
  padding: 17px 19px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 13px;
}
.settlement-stats .stat:last-child {
  border-right: 0;
}
.settlement-stats .stat.selected {
  background: #edf4ff;
  box-shadow: inset 0 -3px var(--primary);
}
.settlement-stats .stat-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.settlement-stats .stat-icon .icon {
  width: 20px;
  height: 20px;
}
.settlement-stats .stat-value {
  font-size: 27px;
}
.settlement-stat-note {
  font-size: 11px;
  margin-top: 4px;
}
.settlement-side-tabs {
  padding: 0 18px;
  gap: 24px;
}
.settlement-side-tabs .tab {
  padding-inline: 3px;
}
.settlement-list-help {
  margin: 0;
  padding: 13px 18px;
  color: #596f8b;
  font-size: 12px;
  line-height: 1.8;
}
.settlement-scroll-hint {
  color: #596f8b;
  padding-inline: 18px;
}
.settlement-export-toolbar {
  padding: 11px 18px;
  background: #f1f7ff;
  border-bottom: 1px solid #d8e7fb;
  color: #526d90;
  font-size: 12px;
  gap: 12px;
}
.settlement-export-toolbar .btn {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 12px;
}
.settlement-badge {
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1.6;
}
.settlement-badge .icon {
  width: 13px;
  height: 13px;
}
.settlement-summary {
  padding: 20px;
}
.settlement-summary .settlement-summary-tabs {
  margin-top: 20px;
}
.settlement-summary .settlement-summary-tabs .tab {
  min-height: 45px;
  padding: 10px 4px;
  font-size: 12px;
}
.settlement-detail-panel {
  padding: 25px 27px;
}
.settlement-expected {
  padding: 21px 22px;
  background: #f5f9ff;
  border-color: #dfeafa;
  border-radius: 10px;
}
.settlement-expected-fields,
.settlement-record-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px 25px;
}
.settlement-four-fields dt {
  color: #596f8b;
  font-size: 12px;
}
.settlement-four-fields dd {
  margin-top: 8px;
  color: #31578a;
  font-size: 19px;
}
.settlement-totals {
  gap: 14px;
}
.settlement-totals > div {
  padding: 14px;
  border: 1px solid #e2eaf5;
  border-radius: 7px;
  background: #f8faff;
}
.settlement-totals span {
  font-size: 12px;
}
.settlement-totals strong {
  font-size: 22px;
  font-weight: 600;
  color: #31578a;
}
.settlement-summary .settlement-totals > div {
  padding: 10px;
}
.settlement-summary .settlement-totals strong {
  font-size: 17px;
}
.settlement-summary .settlement-expected-fields,
.settlement-summary .settlement-record-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}
.settlement-record {
  padding: 20px;
  border-radius: 9px;
}
.commission-table-wrap {
  border: 1px solid var(--line);
  border-radius: 7px;
}
.commission-table {
  font-size: 12px;
}
.commission-table th {
  background: #f6f9fd;
  color: #596f8b;
  font-weight: 500;
}
.commission-table th,
.commission-table td {
  padding: 11px 8px;
}
.settlement-rules {
  padding: 12px 0;
  font-size: 12px;
  color: #596f8b;
}
/* Existing editing forms remain native dialogs with their real validation and write flows. */
dialog {
  width: min(840px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  max-height: 92dvh;
  border: 1px solid #dce5f3;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 24px 90px #152f5538;
}
dialog::backdrop {
  background: #162b4e66;
  backdrop-filter: blur(4px);
}
.dialog-header {
  padding: 22px 27px 19px;
  background: #fcfdff;
  border-bottom-color: #e7edf7;
}
.dialog-header h2 {
  font-size: 21px;
}
.dialog-body {
  max-height: calc(92dvh - 160px);
  padding: 24px 27px;
}
.dialog-description {
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.8;
}
.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}
.form-field {
  gap: 8px;
}
.form-field > label {
  color: #405774;
  font-size: 13px;
}
.form-field input,
.form-field select,
.form-field textarea {
  min-height: 44px;
  background: #fcfdff;
  border-color: #d7e1f0;
  font-size: 14px;
}
.form-section {
  margin-bottom: 27px;
}
.form-section legend {
  margin-bottom: 17px;
  font-size: 15px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #fff;
  border-color: #4d87df;
}
.form-field textarea.compact-offer {
  resize: none;
}
.field-help {
  color: #596f8b;
  font-size: 12px;
  line-height: 1.8;
}
.dialog-footer {
  gap: 10px;
  padding: 17px 27px;
  background: #fcfdff;
  border-top-color: #e5edf7;
}
.dialog-footer .btn {
  min-height: 42px;
}
.error-box {
  border-radius: 7px;
  font-size: 13px;
}
.toast {
  background: #fff;
  border: 1px solid #c7dbf7;
  color: #345a8a;
  border-radius: 10px;
  box-shadow: 0 8px 30px #2347781f;
  font-size: 13px;
}
/* Account dropdown and change-password additions owned by app.js. */
.account-menu-wrap {
  position: relative;
  min-width: 0;
}
.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #405575;
}
.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  border-color: #dce7f6;
  background: #f2f7ff;
}
.account-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.account-trigger > svg {
  width: 14px;
  height: 14px;
  color: #7b91af;
}
.account-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 70;
  width: 235px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  border: 1px solid #dce5f3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 35px #29476e26;
}
.account-dropdown[hidden] {
  display: none;
}
.account-dropdown > button,
.account-dropdown > a {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #536b8a;
  font-size: 13px;
  text-align: left;
}
.account-dropdown > button:hover,
.account-dropdown > a:hover {
  color: var(--primary);
  background: #f0f6ff;
}
.account-identity {
  margin-bottom: 5px;
  padding: 12px 12px 15px;
  border-bottom: 1px solid #eaf0f8;
  overflow-wrap: anywhere;
}
.account-identity strong {
  display: block;
  color: #3d5679;
  font-size: 13px;
  font-weight: 600;
}
.account-identity small {
  display: block;
  margin-top: 5px;
  color: #596f8b;
  font-size: 12px;
}
.account-dropdown .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}
#change-password-form .form-grid {
  grid-template-columns: minmax(0, 1fr);
}
#change-password-form > .form-field {
  margin: 19px 0;
}
/* Authentication uses the same real session and account flows as the workbench. */
.auth-page.classic-login-page {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  min-height: 100dvh;
  padding: 0;
  background: radial-gradient(
    ellipse at 8% 45%,
    #eaf2ff 0,
    #f5f8fd 48%,
    #f8faff 100%
  );
}
.classic-login-brand.site-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 23px;
  width: min(1180px, calc(100% - 96px));
  min-height: 108px;
  max-width: none;
  margin: 0 auto;
  padding: 22px 0;
}
.classic-login-brand.site-brand .brand-logo {
  width: 185px;
  height: 62px;
}
.classic-login-brand.site-brand .brand-caption {
  padding-left: 23px;
  border-color: #cddbef;
  color: #596f8b;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.classic-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 426px);
  align-items: center;
  gap: clamp(48px, 7vw, 105px);
  flex: 1;
  width: min(1120px, calc(100% - 96px));
  min-width: 0;
  margin: 0 auto;
  padding: 38px 0 62px;
}
.classic-login-story {
  min-width: 0;
  padding-bottom: 8px;
}
.classic-login-page .eyebrow {
  margin: 0 0 15px;
  color: #496e9d;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  line-height: 1.5;
}
.classic-login-story h1 {
  max-width: 520px;
  margin: 0;
  color: #1d3c6b;
  font-size: clamp(32px, 3.3vw, 44px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.43;
  text-wrap: balance;
}
.classic-login-intro {
  max-width: 440px;
  margin: 20px 0 30px;
  color: #596f8b;
  font-size: 15px;
  line-height: 1.9;
}
.classic-login-preview {
  width: 100%;
  max-width: 482px;
  padding: 21px 22px 15px;
  overflow: hidden;
  border: 1px solid #d8e5f7;
  border-radius: 13px;
  background: #ffffffde;
  box-shadow:
    0 15px 42px #345f9e0b,
    0 3px 7px #345f9e04;
}
.classic-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid #edf2f9;
  color: #4f6990;
  font-size: 12px;
}
.classic-preview-head strong {
  font-weight: 600;
}
.classic-preview-head small {
  color: #596f8b;
  font-size: 11px;
}
.classic-preview-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 0 15px;
}
.classic-preview-steps span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #56759e;
  font-size: 12px;
  white-space: nowrap;
}
.classic-preview-steps .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #5484c9;
}
.classic-login-preview > svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 115px;
  margin: 7px 0 14px;
}
.classic-preview-footer {
  padding-top: 13px;
  border-top: 1px solid #edf2f9;
  color: #596f8b;
  font-size: 11px;
  line-height: 1.7;
}
.classic-login-tagline {
  margin: 24px 0 0;
  color: #596f8b;
  font-size: 12px;
  line-height: 1.6;
}
.classic-login-page .auth-card {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 36px 36px 32px;
  border: 1px solid #dde6f3;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 16px 50px #264c850b,
    0 2px 5px #264c8503;
}
.classic-login-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin-bottom: 22px;
  border: 1px solid #dbe8fb;
  border-radius: 11px;
  color: #2463da;
  background: #f0f6ff;
}
.classic-login-mark .icon {
  width: 23px;
  height: 23px;
}
.classic-login-page .auth-card .eyebrow {
  margin-bottom: 8px;
  color: #596f8b;
  font-size: 10px;
  letter-spacing: 0.12em;
}
.classic-login-page .auth-card h2 {
  margin: 0 0 10px;
  color: #243d60;
  font-size: 25px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.classic-login-page .auth-card .subtitle {
  margin: 0 0 29px;
  color: #596f8b;
  font-size: 13px;
  line-height: 1.8;
}
#login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
}
#login-form .form-field {
  gap: 8px;
}
#login-form label {
  margin: 0;
  color: #405774;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.6;
}
#login-form input,
#change-password-form input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d7e1f0;
  border-radius: 7px;
  background: #fcfdff;
  color: #2a456a;
  font-size: 14px;
  line-height: 23px;
  box-shadow: none;
}
#login-form input::placeholder,
#change-password-form input::placeholder {
  color: #596f8b;
  opacity: 1;
}
#login-form input:focus,
#change-password-form input:focus {
  border-color: #4380de;
  background: #fff;
  box-shadow: 0 0 0 3px #2463da12;
}
#login-form input:focus-visible,
#change-password-form input:focus-visible {
  outline: 2px solid #2463da;
  outline-offset: 2px;
  box-shadow: none;
}
.password-input {
  position: relative;
  min-width: 0;
  width: 100%;
}
#login-form .password-input input,
#change-password-form .password-input input {
  padding-right: 52px;
}
.password-visibility {
  position: absolute;
  top: 50%;
  right: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #667f9e;
  cursor: pointer;
}
.password-visibility:hover {
  background: #edf4ff;
  color: var(--primary);
}
.password-visibility .icon {
  width: 19px;
  height: 19px;
}
#login-form .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  margin: 5px 0 0;
  padding: 12px 16px;
  border-radius: 7px;
  font-size: 14px;
}
#login-form .primary .icon {
  width: 18px;
  height: 18px;
}
#login-error {
  margin: 0;
}
.account-status {
  margin: -6px 0 23px;
  padding: 12px 14px;
  border: 1px solid #dce8f8;
  border-radius: 7px;
  background: #f1f7ff;
  color: #405f86;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.account-status[hidden] {
  display: none;
}
.classic-login-footer {
  width: calc(100% - 96px);
  margin: auto auto 0;
  padding: 20px 0 24px;
  border-top: 1px solid #e5ecf7;
  color: #596f8b;
  text-align: center;
  font-size: 11px;
  line-height: 1.9;
}
#account-dialog {
  width: min(480px, calc(100vw - 40px));
}
#account-dialog .dialog-header .btn,
#account-dialog .dialog-footer .btn {
  min-height: 44px;
}
#account-dialog .dialog-header .btn {
  min-width: 44px;
}
.account-security-note {
  margin: 0 0 25px;
  padding: 14px 15px;
  border: 1px solid #e3ecf8;
  border-radius: 8px;
  background: #f5f9ff;
  color: #596f8b;
  font-size: 12px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.account-security-note strong {
  color: #405f86;
  font-weight: 600;
}
#change-password-form .account-password-fields {
  gap: 22px;
}
#change-password-form .field-help {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 6px;
  background: #f7f9fd;
  color: #596f8b;
  font-size: 12px;
  line-height: 1.8;
}
#change-password-form .field-error {
  margin: 0;
  color: #b13545;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#change-password-form .field-error:empty {
  display: none;
}
#change-password-form [aria-invalid="true"] {
  border-color: #c65b68;
  background: #fffafb;
}
#change-password-form button[hidden] {
  display: none;
}
@media (min-width: 761px) and (max-width: 1000px) {
  .classic-login-brand.site-brand {
    width: calc(100% - 64px);
  }
  .classic-login-layout {
    width: calc(100% - 64px);
    grid-template-columns: minmax(0, 1fr) minmax(330px, 0.95fr);
    gap: 36px;
  }
  .classic-login-page .auth-card {
    padding: 30px 27px 29px;
  }
  .classic-login-story h1 {
    font-size: 32px;
  }
  .classic-login-intro {
    font-size: 14px;
  }
  .classic-login-preview {
    padding: 18px 17px 14px;
  }
  .classic-preview-steps {
    gap: 8px;
  }
  .classic-preview-steps span {
    gap: 3px;
    font-size: 11px;
  }
}
@media (min-width: 1700px) {
  .list-layout,
  .settlement-list-layout {
    grid-template-columns: minmax(0, 1fr) clamp(360px, 25vw, 500px);
    gap: 24px;
  }
  .overview-layout {
    grid-template-columns: minmax(0, 1fr) 400px;
  }
  .stats .stat {
    padding: 18px 20px;
  }
}
@media (max-width: 1250px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .stats .stat:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .stats .stat:nth-child(3) {
    border-right: 0;
  }
  .overview-lower {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .list-layout,
  .settlement-list-layout,
  .detail-content,
  .overview-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .list-main > .card {
    min-height: 0;
  }
  .summary {
    position: static;
  }
  .summary:has(> .empty:only-child) {
    min-height: 200px;
  }
  .overview-lower {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-kpi {
    flex-direction: column;
  }
  .stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .stats .stat:nth-child(-n + 3) {
    border-bottom: 0;
  }
  .stats .stat:nth-child(3) {
    border-right: 1px solid var(--line);
  }
  .side-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .side-stack > :last-child {
    grid-column: 1 / -1;
  }
  .summary .summary-fields,
  .summary .summary-supplemental-fields {
    gap: 22px 28px;
  }
}
@media (max-width: 760px) {
  :root {
    --header-height: 121px;
    --page-gutter: 16px;
    --page-block-padding: 22px;
  }
  .topbar {
    min-height: 121px;
    padding-top: 0;
    gap: 0;
  }
  .brand.site-brand {
    height: 68px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
  }
  .site-brand .brand-logo {
    width: 146px;
    height: 44px;
  }
  .site-brand .brand-caption {
    margin-left: 6px;
    padding-left: 0;
    border: 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
  }
  .primary-navigation {
    height: 52px;
    gap: 5px;
    justify-content: flex-start;
    overflow-x: auto;
  }
  .primary-navigation .topnav {
    flex: 0 0 auto;
    min-width: max-content;
    min-height: 52px;
    padding: 0 8px;
    gap: 7px;
    font-size: 14px;
    white-space: nowrap;
  }
  .primary-navigation .topnav .icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
  }
  .user-name,
  .account-name {
    display: none;
  }
  .account-trigger {
    min-width: 44px;
    padding: 4px;
    gap: 4px;
  }
  .account-trigger > svg {
    display: none;
  }
  .user-block {
    gap: 7px;
  }
  .user-block .btn {
    padding-inline: 8px;
  }
  .account-dropdown {
    width: 234px;
    max-width: calc(100vw - 28px);
  }
  .account-dropdown > button {
    min-height: 47px;
    font-size: 14px;
  }
  .classic-login-brand.site-brand {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 103px;
    margin: 0;
    padding: 21px 25px 17px;
    gap: 1px;
  }
  .classic-login-brand.site-brand .brand-logo {
    width: 161px;
    height: 49px;
  }
  .classic-login-brand.site-brand .brand-caption {
    margin-left: 5px;
    padding-left: 0;
    border: 0;
    color: #596f8b;
    font-size: 11px;
    line-height: 1.7;
    letter-spacing: 0.09em;
  }
  .classic-login-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 560px;
    gap: 0;
    padding: 21px 20px 37px;
  }
  .classic-login-story {
    display: none;
  }
  .classic-login-page .auth-card {
    padding: 27px 23px 25px;
    border-color: #e1e9f5;
    border-radius: 14px;
    box-shadow: 0 8px 25px #345f9806;
  }
  .classic-login-mark {
    width: 43px;
    height: 43px;
    margin-bottom: 20px;
    border-radius: 10px;
  }
  .classic-login-page .auth-card h2 {
    margin-bottom: 10px;
    font-size: 26px;
  }
  .classic-login-page .auth-card .subtitle {
    margin-bottom: 27px;
  }
  #login-form .form-field {
    gap: 9px;
  }
  #login-form label {
    font-size: 14px;
  }
  #login-form input,
  #change-password-form input {
    min-height: 49px;
    padding: 12px 13px;
    font-size: 16px;
    line-height: 23px;
  }
  #login-form .primary {
    font-size: 15px;
  }
  .classic-login-footer {
    width: calc(100% - 40px);
    padding: 17px 0 calc(18px + env(safe-area-inset-bottom));
    font-size: 10px;
  }
  #account-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: 560px;
    max-height: 94dvh;
    margin: auto auto 0;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
  }
  #account-dialog .dialog-header {
    padding: 20px 21px 17px;
  }
  #account-dialog .dialog-header h2 {
    font-size: 23px;
  }
  #account-dialog .dialog-body {
    padding: 22px 21px 23px;
    max-height: calc(94dvh - 171px);
  }
  #account-dialog .dialog-footer {
    padding: 16px 21px calc(19px + env(safe-area-inset-bottom));
  }
  #account-dialog .dialog-footer .btn {
    flex: 1;
    min-height: 46px;
    font-size: 14px;
  }
  #change-password-form .account-password-fields {
    gap: 21px;
  }
  .account-security-note {
    margin-bottom: 24px;
    padding: 14px;
  }
  .layout {
    padding-bottom: 28px;
  }
  h1 {
    font-size: 24px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .page-heading > :first-child {
    min-width: 0;
  }
  .page-heading p {
    font-size: 13px;
  }
  .heading-actions {
    gap: 8px;
  }
  .heading-actions .date {
    font-size: 11px;
  }
  .btn,
  .btn.small,
  .btn.icon-only {
    min-height: 44px;
  }
  .btn.icon-only {
    min-width: 44px;
  }
  .heading-actions .btn {
    font-size: 12px;
    padding-inline: 11px;
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 17px;
  }
  .stats .stat {
    min-height: 85px;
    padding: 13px 14px;
  }
  .stats .stat:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line);
  }
  .stats .stat:nth-child(3) {
    border-right: 0;
  }
  .stat-label {
    font-size: 12px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stats .stat .stat-icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
  .stats .stat .stat-icon .icon {
    width: 15px;
    height: 15px;
  }
  .scope-tabs {
    padding: 0 16px;
    gap: 23px;
  }
  .scope-tabs .tab,
  .tab {
    min-height: 50px;
    font-size: 14px;
  }
  .filter-bar,
  .filter-bar.single-line,
  .settlement-filter-bar {
    padding: 13px 14px;
  }
  .filter-bar input,
  .filter-bar select,
  .settlement-filter-bar input,
  .settlement-filter-bar select {
    min-height: 44px;
    font-size: 14px;
  }
  .filter-bar.single-line > .search-wrap {
    flex: 0 0 185px;
  }
  .filter-bar.single-line > .date-filter {
    flex: 0 0 156px;
  }
  .filter-bar.single-line .date-trigger {
    height: 44px;
    min-height: 44px;
    font-size: 14px;
  }
  .filter-bar.single-line select {
    height: 44px;
  }
  .policy-table {
    min-width: 1020px;
  }
  .policy-table td,
  .settlement-table td {
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .pager {
    padding: 13px 12px;
    gap: 9px;
    font-size: 12px;
  }
  .pager-controls {
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    gap: 5px;
  }
  .pager-controls .btn,
  .pager-controls select {
    min-height: 44px;
    font-size: 12px;
    padding-inline: 9px;
  }
  .summary,
  .settlement-summary {
    padding: 21px 19px;
  }
  .summary .product {
    font-size: 20px;
  }
  .summary .tabs {
    gap: 2px;
    justify-content: space-between;
  }
  .summary .tab {
    min-height: 47px;
    padding: 11px 7px;
    font-size: 13px;
  }
  .summary .summary-fields,
  .summary .summary-supplemental-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 18px;
  }
  .summary-field dt {
    font-size: 12px;
  }
  .summary-field dd,
  .settlement-summary .summary-field dd {
    font-size: 14px;
  }
  .amount-pair dd {
    font-size: 28px;
  }
  .detail-heading .actions {
    width: auto;
    gap: 7px;
  }
  .detail-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-stat {
    padding: 17px 18px;
  }
  .detail-stat dd {
    font-size: 23px;
  }
  .detail-main {
    padding: 23px 20px;
  }
  .field-grid,
  .detail-main .field-grid,
  .person-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 18px;
  }
  .field-row {
    display: flex;
    flex-direction: column;
  }
  .field-row dt {
    font-size: 12px;
  }
  .field-row dd {
    font-size: 14px;
  }
  .side-stack {
    grid-template-columns: minmax(0, 1fr);
  }
  .side-card {
    padding: 20px;
  }
  .resource-item {
    padding: 18px;
  }
  .resource-item .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-heading {
    flex-direction: column;
    align-items: stretch;
  }
  .overview-month-controls {
    justify-content: space-between;
  }
  .overview-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .overview-kpi {
    padding: 18px 15px;
    min-height: 143px;
  }
  .overview-kpi-icon {
    right: 13px;
    top: 19px;
    width: 18px;
    height: 18px;
  }
  .overview-kpi h2 {
    font-size: 12px;
  }
  .overview-kpi-value strong {
    font-size: 26px;
  }
  .overview-kpi:last-child .overview-kpi-value strong {
    font-size: 23px;
  }
  .overview-kpi-value > span {
    font-size: 11px;
  }
  .overview-lower {
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-chart-card,
  .overview-events {
    padding: 19px 17px;
  }
  .overview-chart-card h2,
  .overview-events-heading h2 {
    font-size: 16px;
  }
  .overview-event-filter {
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
  }
  .overview-event-title strong {
    font-size: 14px;
  }
  .overview-event-main p {
    font-size: 13px;
  }
  .overview-event-main time {
    font-size: 12px;
  }
  .overview-event-pager .btn {
    min-width: 44px;
  }
  .settlement-period-tabs {
    padding: 4px;
    gap: 4px;
  }
  .settlement-period-tabs .tab {
    min-height: 44px;
    padding: 9px 13px;
    font-size: 12px;
  }
  .settlement-stats .stat {
    padding: 15px 12px;
    min-height: 98px;
    gap: 8px;
  }
  .settlement-stats .stat-icon {
    display: none;
  }
  .settlement-stats .stat-value {
    font-size: 25px;
  }
  .settlement-stat-note {
    font-size: 11px;
  }
  .settlement-export-toolbar {
    padding: 11px 14px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .settlement-export-toolbar .btn {
    min-height: 44px;
  }
  .settlement-list-help {
    padding: 12px 15px;
    font-size: 12px;
  }
  .settlement-detail-panel {
    padding: 22px 19px;
  }
  .settlement-top-totals {
    padding: 18px;
  }
  .settlement-expected {
    padding: 18px 16px;
  }
  .settlement-expected-fields,
  .settlement-record-fields,
  .settlement-four-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 17px;
  }
  .settlement-four-fields dd {
    font-size: 18px;
  }
  .settlement-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .settlement-totals > div {
    padding: 12px;
  }
  .settlement-totals strong {
    font-size: 19px;
  }
  .settlement-record {
    padding: 17px;
  }
  .settlement-commission-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
  }
  dialog {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: 94dvh;
    border-radius: 14px;
  }
  .dialog-header {
    padding: 19px 19px 16px;
  }
  .dialog-header h2 {
    font-size: 21px;
  }
  .dialog-header .btn {
    min-width: 44px;
  }
  .dialog-body {
    padding: 22px 19px;
    max-height: calc(94dvh - 168px);
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 21px;
  }
  .form-field > label {
    font-size: 14px;
  }
  .form-field input,
  .form-field select,
  .form-field textarea {
    min-height: 47px;
    font-size: 16px;
  }
  .dialog-footer {
    padding: 16px 19px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .dialog-footer .btn {
    min-height: 44px;
  }
  .dirty-note {
    width: 100%;
    font-size: 12px;
  }
  .toast {
    bottom: 20px;
    font-size: 13px;
    padding: 12px 17px;
  }
}
@media (max-width: 360px) {
  :root {
    --page-gutter: 12px;
  }
  .site-brand .brand-logo {
    width: 136px;
  }
  .primary-navigation .topnav {
    padding-inline: 5px;
    gap: 5px;
    font-size: 13px;
  }
  .stats .stat {
    padding: 12px 10px;
  }
  .stats .stat .stat-icon {
    display: none;
  }
  .overview-kpi {
    padding: 16px 12px;
  }
  .pager-controls {
    gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.workflow-fields .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.workflow-fields .form-field.full {
  grid-column: auto;
}
.workflow-fields .appointment-header-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.appointment-other-fields {
  margin-top: 22px;
}
.workflow-status-fields {
  margin-top: 22px;
}
.workflow-status-fields[hidden] {
  display: none;
}
.workflow-fields [data-field="invalidation_note"] {
  grid-column: 1 / -1;
}
.dialog-footer .workflow-cancel {
  margin-right: auto;
}
.workflow-cancel + .dirty-note {
  flex: initial;
  margin-right: 8px;
}
.signing-confirm-message {
  margin: 24px 0 4px;
  font-size: 16px;
  color: #203c64;
}
@media (max-width: 560px) {
  .workflow-fields .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dialog-footer:has(.workflow-cancel) {
    flex-wrap: wrap;
  }
  .workflow-cancel + .dirty-note {
    order: -1;
    flex-basis: 100%;
  }
}

/* Shared preview metrics and policy section spacing. */
.policy-summary .insurer {
  margin-top: 8px;
}
.summary .summary-premium-metrics {
  grid-template-columns: minmax(0, 1fr) 72px;
  align-items: start;
  gap: 24px;
  margin: 24px 0;
  padding: 20px 16px;
}
.summary-premium-metrics > div {
  min-width: 0;
}
.summary-premium-metrics > div + div {
  border-left: 0;
  padding-left: 0;
}
.summary-premium-metrics dt {
  line-height: 1.5;
}
.summary .summary-premium-metrics dd {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.policy-summary .summary-body {
  padding-top: 24px;
}
.policy-summary .summary-fields,
.policy-summary .summary-supplemental-fields {
  gap: 24px 20px;
}
.policy-summary .summary-field {
  gap: 8px;
}
.policy-summary .summary-supplemental-fields {
  margin: 24px 0;
  padding-top: 24px;
}

/* Optional policy markers stay beside the status in lists and previews. */
.policy-status-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
}
.policy-status-badges > .badge {
  flex: 0 1 auto;
  min-width: 0;
}
.policy-flag {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 1px solid;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.policy-flag-prepaid {
  color: #0c6b40;
  border-color: #78bd94;
  background: #effaf3;
}
.policy-flag-professional {
  color: #b4232e;
  border-color: #df8892;
  background: #fff1f2;
}

/* Shared authenticated-page watermark and status-bar date. */
.user-watermark {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0.10;
  background-repeat: repeat;
  background-size: 560px 360px;
}
.topbar .user-block {
  gap: 24px;
}
.topbar-date {
  flex: 0 0 auto;
  color: #596f8b;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .topbar .user-block { gap: 8px; }
}
@media (max-width: 380px) {
  .topbar .user-block { gap: 4px; }
  .topbar-date { font-size: 11px; }
}

.policy-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.policy-list-toolbar .scope-tabs {
  flex: 1 1 auto;
  padding: 0;
  border-bottom: 0;
}
.policy-list-toolbar > .btn {
  flex: 0 0 auto;
}
@media (max-width: 760px) {
  .policy-list-toolbar { padding: 0 12px; gap: 8px; }
  .policy-list-toolbar .scope-tabs { gap: 12px; }
  .policy-list-toolbar .scope-tabs .tab { font-size: 12px; padding-inline: 0; }
  .policy-list-toolbar > .btn { font-size: 12px; padding-inline: 8px; gap: 5px; }
  .policy-list-toolbar > .btn .icon { width: 14px; height: 14px; }
}
@media (max-width: 380px) {
  .policy-list-toolbar { padding-inline: 10px; }
  .policy-list-toolbar .scope-tabs { gap: 8px; }
}

.settlement-period-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.settlement-period-toolbar .settlement-period-tabs {
  display: flex;
  margin: 0;
  min-width: 0;
  overflow-x: auto;
}
.settlement-period-toolbar .settlement-period-tabs .tab {
  flex: 0 0 auto;
}
.settlement-period-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.settlement-period-actions > .btn {
  flex: 0 0 auto;
  height: 36px;
  min-height: 36px;
}
.settlement-all-table {
  min-width: 1310px;
}
.settlement-all-table th:nth-child(1) { width: 140px; }
.settlement-all-table th:nth-child(2) { width: 110px; }
.settlement-all-table th:nth-child(3) { width: 100px; }
.settlement-all-table th:nth-child(4) { width: 110px; }
.settlement-all-table th:nth-child(5) { width: 210px; }
.settlement-all-table th:nth-child(6) { width: 150px; }
.settlement-all-table th:nth-child(7) { width: 155px; }
.settlement-all-table th:nth-child(8),
.settlement-all-table th:nth-child(9) { width: 115px; }
@media (max-width: 760px) {
  .settlement-period-toolbar { gap: 8px; margin-bottom: 17px; flex-wrap: wrap; }
  .settlement-period-toolbar .settlement-period-tabs { flex: 1 1 100%; width: 100%; }
  .settlement-period-actions { margin-left: auto; gap: 8px; }
  .settlement-period-actions > .btn { padding-inline: 9px; font-size: 12px; height: 44px; min-height: 44px; }
}

.settlement-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.settlement-stats .status-yellow .stat-value { color: #916400; }
@media (max-width: 760px) {
  .settlement-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settlement-stats .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .settlement-stats .stat:nth-child(2) { border-right: 0; }
}

.settlement-batch-actions { justify-content: flex-end; flex-wrap: wrap; }
.settlement-reconciled { color: #245bb8; background: #eaf2ff; border-color: #d1e2fc; }
.settlement-record-pending { border-color: #cbdff8; }
.settlement-record-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.settlement-record-footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-top: 18px; }
.settlement-record-footer .metadata { margin: 0; flex: 1; }
.settlement-record-footer .btn { flex: 0 0 auto; }
dialog:has(.settlement-reconciliation-grid),
dialog:has(.settlement-confirmation-groups) { width: min(1120px, calc(100vw - 32px)); max-width: none; }
.settlement-reconciliation-grid { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.settlement-reconciliation-head,
.settlement-reconciliation-row { display: grid; grid-template-columns: minmax(180px, 1.7fr) minmax(90px, .8fr) minmax(100px, .9fr) minmax(100px, .9fr) minmax(140px, 1.1fr); gap: 16px; align-items: center; padding: 17px 20px; }
.settlement-reconciliation-head { color: #596f8b; font-size: 12px; background: #f4f8fd; border-bottom: 1px solid var(--line); }
.settlement-reconciliation-row + .settlement-reconciliation-row { border-top: 1px solid var(--line); }
.settlement-reconciliation-row > * { min-width: 0; }
.reconciliation-policy { display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; color: #596f8b; font-size: 13px; }
.reconciliation-policy strong { color: #244d82; font-size: 14px; }
.reconciliation-policy .subline { margin: 0; }
.reconciliation-premium { color: #31578a; font-variant-numeric: tabular-nums; }
.settlement-reconciliation-row .form-field { margin: 0; }
.settlement-reconciliation-row input { width: 100%; min-width: 0; }
.reconciliation-unit-input { position: relative; }
.reconciliation-unit-input input { padding-right: 28px; }
.reconciliation-unit-input > span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.reconciliation-mobile-label { display: none; }
.reconciliation-amount output { color: #31578a; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.settlement-confirmation-group { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.settlement-confirmation-group + .settlement-confirmation-group { margin-top: 18px; }
.settlement-confirmation-group > header { padding: 16px 18px; background: #f4f8fd; }
.settlement-confirmation-group h3 { margin: 0 0 5px; font-size: 15px; }
.settlement-confirmation-group > header > span { font-size: 13px; color: #596f8b; }
.settlement-confirmation-table-wrap { overflow-x: auto; }
.settlement-confirmation-table { width: 100%; min-width: 640px; font-size: 13px; }
.settlement-confirmation-table th { font-size: 12px; color: #596f8b; font-weight: 500; }
.settlement-confirmation-table td, .settlement-confirmation-table th { padding: 12px; text-align: left; white-space: nowrap; }
.settlement-confirmation-table td { border-top: 1px solid var(--line); }
.settlement-confirmation-table th:first-child,
.settlement-confirmation-table td:first-child { width: 56px; text-align: center; padding: 4px; }
dialog:has(.statement-import) { width: min(1120px, calc(100vw - 32px)); max-width: none; }
.statement-dropzone { padding: 20px; border: 1px dashed #91acd0; border-radius: 9px; background: #f7faff; }
.statement-dropzone.drag-active { border-color: #2872d4; background: #eaf2ff; }
.statement-dropzone input { max-width: 100%; }
.statement-dropzone > label { display: block; margin-bottom: 10px; color: #244d82; font-weight: 600; }
.statement-dropzone .field-help { margin-bottom: 0; }
#statement-import-status, [data-import-summary] { color: #596f8b; font-size: 13px; overflow-wrap: anywhere; }
#statement-import-error:empty, .statement-import-problems:empty, .statement-import-warning:empty { display: none; }
.statement-import-rows { display: grid; gap: 18px; }
.statement-import-row { border: 1px solid var(--line); border-radius: 10px; min-width: 0; overflow: hidden; }
.statement-import-row > header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; background: #f4f8fd; border-bottom: 1px solid var(--line); }
.statement-import-select { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; color: #244d82; font-size: 14px; }
.statement-import-select input { width: 18px; height: 18px; margin: 0; }
.statement-import-source { color: #596f8b; font-size: 12px; overflow-wrap: anywhere; }
.statement-import-row > header > button { margin-left: auto; }
.statement-import-badge { padding: 4px 8px; font-size: 12px; color: #196342; background: #e7f5ed; border-radius: 5px; }
.statement-import-badge.needs-review { color: #87520e; background: #fff2d8; }
.statement-import-match { padding: 18px 20px 0; }
.statement-import-match label, .statement-import-label { display: block; font-size: 12px; color: #596f8b; margin-bottom: 8px; }
.statement-import-match select { width: 100%; min-width: 0; }
.statement-import-fields { align-items: start; }
.statement-import-fields .form-field label { min-height: 36px; }
.statement-import-comparison { display: grid; grid-template-columns: minmax(180px,1fr) minmax(180px,1fr); align-items: center; gap: 20px; margin: 0 20px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.statement-import-comparison .form-field { margin: 0; min-width: 0; }
.statement-import-comparison input { width: 100%; }
.statement-import-comparison output { color: #31578a; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.statement-import-problems, .statement-import-warning, .statement-import-original { margin: 10px 20px 16px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.statement-import-problems { color: #a13838; }
.statement-import-warning, .statement-import-notes { color: #87520e; }
.statement-import-notes { font-size: 13px; margin-bottom: 16px; }
.statement-import-original summary { color: #596f8b; cursor: pointer; }
.statement-import-original pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 180px; overflow: auto; }
.statement-import-row input[aria-invalid="true"] { border-color: #bb5c5c; }
@media (max-width: 760px) {
  .statement-import-row > header { gap: 8px; padding: 10px 14px; }
  .statement-import-match { padding: 16px 18px 0; }
  .statement-import-fields .form-field label { min-height: 0; }
  .statement-import-comparison { grid-template-columns: minmax(0,1fr); margin-inline: 18px; gap: 14px; }
}
@media (max-width: 760px) {
  .settlement-reconciliation-head { display: none; }
  .settlement-reconciliation-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; padding: 18px; align-items: start; }
  .reconciliation-policy, .reconciliation-amount { grid-column: 1 / -1; }
  .reconciliation-mobile-label { display: block; color: #596f8b; font-size: 12px; margin-bottom: 7px; }
  .reconciliation-policy { gap: 5px; }
  .reconciliation-amount { border-top: 1px solid var(--line); padding-top: 14px; }
  .reconciliation-amount output { font-size: 18px; }
  .settlement-record-footer { align-items: center; }
}
@media (max-width: 600px) {
  .settlement-stats .stat:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .settlement-stats .stat:nth-child(even) { border-right: 0; }
  .settlement-stats .stat:last-child { grid-column: 1 / -1; }
  .settlement-batch-actions { width: 100%; }
  .settlement-batch-actions .btn { flex: 1; justify-content: center; }
}

/* Keep the supplemental detail fields readable on narrow screens. */
@media (max-width: 600px) {
  .detail-main .policy-supplemental-fields,
  .settlement-info .policy-supplemental-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Account duties are descriptive; each module has its own explicit access mode. */
.module-readonly {
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid #dbe6f5;
  border-radius: 7px;
  background: #f6f9fe;
  color: #526b8b;
  font-size: 12px;
}
.organization-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 400px);
  align-items: start;
  gap: 24px;
}
.organization-members,
.organization-editor {
  min-width: 0;
  overflow: hidden;
}
.organization-members > .section-heading,
.organization-editor > .section-heading {
  padding: 22px 24px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}
.organization-page h2 { font-size: 17px; }
.organization-page .section-heading .muted { font-size: 12px; }
.organization-table-wrap { overflow-x: auto; }
.organization-table { width: 100%; min-width: 540px; table-layout: auto; }
.organization-table th,
.organization-table td { padding: 17px 20px; vertical-align: middle; }
.organization-table th { color: var(--muted); font-size: 12px; font-weight: 500; }
.organization-table th:first-child { min-width: 130px; }
.organization-table th:last-child { width: 104px; }
.organization-table strong { color: var(--title); font-size: 14px; }
.organization-table .selected { background: #f0f6ff; }
.organization-table .text-button { min-height: 44px; white-space: nowrap; }
.organization-table .subline { margin-top: 5px; }
.organization-access-list { display: flex; flex-wrap: wrap; gap: 6px; max-width: 360px; }
.organization-access-list > span,
.organization-readonly,
.organization-pending {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 5px;
  background: #f0f3f7;
  color: #53667d;
  font-size: 11px;
  white-space: nowrap;
}
.organization-access-list > .organization-write { background: #e9f1ff; color: #2158ab; }
.organization-pending { margin-top: 7px; color: #835d16; background: #fff5db; }
.organization-editor form { padding: 24px; }
.organization-editor .form-grid { gap: 18px 16px; }
.organization-editor input[readonly],
.organization-editor select:disabled { color: #52637a; background: #f5f7fa; }
.organization-permission-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 27px 0 12px; }
.organization-permission-heading h3 { margin: 0; font-size: 14px; }
.organization-permission-heading .muted { font-size: 11px; }
.organization-permissions { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.organization-permissions th,
.organization-permissions td { padding: 0; text-align: center; height: 50px; border-bottom: 1px solid var(--line); }
.organization-permissions th:first-child { width: 34%; text-align: left; padding-left: 12px; font-size: 12px; }
.organization-permissions thead th { height: 40px; color: var(--muted); background: #f5f8fc; font-size: 11px; font-weight: 500; }
.organization-permissions tbody th { color: var(--title); font-weight: 500; }
.organization-permissions tbody tr:last-child > * { border-bottom: 0; }
.organization-choice { display: flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; cursor: pointer; }
.organization-choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.organization-choice:has(input:disabled) { cursor: default; }
.organization-choice input:disabled { cursor: default; opacity: .5; }
.organization-disabled { background: #fafbfd; }
.organization-needs-mode { background: #fffaf0; }
.organization-footnote { color: var(--muted); font-size: 11px; line-height: 1.8; margin: 12px 0 0; }
.organization-members > .organization-footnote { margin: 0; padding: 16px 24px; border-top: 1px solid var(--line); }
.organization-initial-password { margin: 20px 0 0; padding: 11px 13px; color: #456587; font-size: 12px; line-height: 1.8; border-radius: 7px; background: #f2f7ff; }
.organization-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.organization-form-actions > .actions { margin-left: auto; }
.organization-form-actions .btn { min-height: 44px; padding-inline: 12px; font-size: 12px; }
#organization-feedback { color: #226c4c; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
#organization-feedback:empty { display: none; }
.organization-load-error { padding: 28px; }
.forced-password-page { display: flex; flex-direction: column; justify-content: center; gap: 28px; padding-block: 36px; }
.forced-password-page > .site-brand { display: flex; align-items: center; justify-content: center; gap: 18px; width: min(480px, 100%); }
.forced-password-card { width: min(480px, 100%); overflow: hidden; }
.forced-password-card .dialog-body { max-height: none; overflow: visible; }
.forced-password-card .dialog-header h2 { font-size: 20px; }
.forced-password-card .dialog-footer .btn { min-height: 44px; }
@media (max-width: 1100px) {
  .organization-layout { grid-template-columns: minmax(0, 1fr); }
  .organization-editor .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .organization-editor .form-field.full { grid-column: auto; }
  .organization-permissions { max-width: 600px; }
}
@media (max-width: 600px) {
  .organization-page > .page-heading { display: flex; flex-direction: row; align-items: center; }
  .organization-page > .page-heading h1 { font-size: 22px; }
  .organization-page > .page-heading .actions { gap: 6px; }
  .organization-page > .page-heading .btn { min-height: 44px; padding-inline: 10px; }
  .organization-layout { gap: 18px; }
  .organization-members > .section-heading,
  .organization-editor > .section-heading { padding: 18px 16px; }
  .organization-members > .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .organization-editor form { padding: 18px 16px; }
  .organization-editor .form-grid { grid-template-columns: minmax(0, 1fr); }
  .organization-permission-heading { flex-wrap: wrap; gap: 6px; }
  .organization-form-actions { gap: 8px; }
  .organization-form-actions .btn { padding-inline: 10px; }
  .forced-password-page { padding: 24px 16px; gap: 22px; }
  .forced-password-page .brand-logo { width: 144px; height: 48px; }
  .forced-password-page .brand-caption { padding-left: 12px; font-size: 11px; }
  .forced-password-card .dialog-header,
  .forced-password-card .dialog-body,
  .forced-password-card .dialog-footer { padding-inline: 20px; }
}
