:root {
  --navy: #102545;
  --navy-2: #18365e;
  --ink: #172033;
  --muted: #667085;
  --line: #d9e0e8;
  --line-strong: #b9c5d3;
  --surface: #ffffff;
  --background: #f4f6f8;
  --green: #167b63;
  --green-soft: #e8f4ef;
  --blue: #137fbd;
  --blue-soft: #e6f2f9;
  --amber: #b26a12;
  --amber-soft: #fff4df;
  --red: #bd3d44;
  --red-soft: #fdebec;
  --shadow: 0 14px 40px rgba(16, 37, 69, 0.09);
  --radius: 6px;
}

* { box-sizing: border-box; }

.toolbar.asset-toolbar { align-items: end; grid-template-columns: minmax(230px, 1fr) minmax(270px, 1.2fr) auto auto; }
.asset-toolbar > div { min-width: 0; }
.asset-toolbar select { max-width: 100%; }
@media (max-width: 1100px) { .toolbar.asset-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .toolbar.asset-toolbar { grid-template-columns: minmax(0, 1fr); } }
#asset-data-status { color: var(--muted); line-height: 1.5; }
#asset-data-content .detail-list { margin-bottom: 24px; }
#asset-data-content dd { overflow-wrap: anywhere; }
#asset-assignment-feedback, #invite-feedback { overflow-wrap: anywhere; }


html { background: var(--background); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.hidden { display: none !important; }

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(420px, 1.25fr);
  background: var(--surface);
}

.login-brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 42px;
  color: #fff;
  background: var(--navy);
}

.login-brand img, .brand img { width: 42px; height: 42px; border-radius: 8px; }
.login-brand strong, .brand strong { display: block; font-size: 23px; line-height: 1.05; }
.login-brand span, .brand span { display: block; margin-top: 3px; font-size: 13px; color: #b9d6ea; }

.login-panel {
  align-self: center;
  width: min(440px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: 31px; line-height: 1.2; }
h2 { margin-bottom: 0; font-size: 20px; line-height: 1.25; }
.login-copy { color: var(--muted); margin-bottom: 28px; line-height: 1.55; }

label { display: block; margin: 18px 0 7px; color: #344054; font-size: 14px; font-weight: 650; }
input, select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}
input:focus, select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(19, 127, 189, 0.13); }

.primary-button, .secondary-button, .text-button, .icon-button {
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
}
.primary-button { background: var(--navy); color: #fff; padding: 12px 18px; }
.primary-button:hover { background: var(--navy-2); }
.primary-button:disabled { opacity: 0.6; cursor: wait; }
.primary-button.full { width: 100%; margin-top: 24px; min-height: 48px; }
.secondary-button { border: 1px solid var(--line-strong); background: #fff; color: var(--navy); padding: 9px 12px; }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); }
.text-button { background: transparent; color: #d6e2ee; padding: 8px 0; text-align: left; }
.text-button:hover { color: #fff; }
.icon-button { width: 42px; height: 42px; color: #fff; background: rgba(255,255,255,0.08); font-size: 21px; }
.mobile-action { border: 1px solid rgba(255,255,255,0.24); border-radius: var(--radius); padding: 8px 10px; color: #fff; background: transparent; font-size: 12px; font-weight: 700; }
.login-foot { margin: 24px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.login-panel .text-button { color: var(--muted); margin-top: 12px; }
.mobile-header > a { color: white; font-size: 13px; }

.notice, .global-error {
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 14px;
}
.error, .global-error { border: 1px solid #efb9bd; background: var(--red-soft); color: #8e252d; }
.notice.success { border: 1px solid #a9d8c8; background: var(--green-soft); color: #145d4c; }

.loading-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  background: var(--background);
  font-weight: 650;
}

.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: 238px;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  color: #fff;
  padding: 25px 18px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 25px; }
.brand strong { font-size: 19px; }
.sidebar nav { display: grid; gap: 5px; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  padding: 8px 10px;
  background: transparent;
  color: #c8d3df;
  text-align: left;
  font-weight: 630;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-item.active { color: #fff; background: #1b416e; }
.nav-mark {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255,255,255,0.23);
  border-radius: 50%;
  color: #9dd6c3;
  font-size: 11px;
  font-weight: 800;
}
.sidebar-bottom { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.12); padding: 19px 8px 0; }
.data-source { display: flex; align-items: center; gap: 10px; }
.data-source small { display: block; color: #8fa3b9; font-size: 10px; }
.data-source strong { display: block; margin-top: 3px; font-size: 12px; color: #eaf0f5; }
.status-dot { flex: 0 0 auto; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.status-dot.good { background: #2eb98c; box-shadow: 0 0 0 4px rgba(46,185,140,0.13); }
.status-dot.pending { background: #e3a244; box-shadow: 0 0 0 4px rgba(227,162,68,0.13); }
.status-dot.bad { background: #dd5c64; box-shadow: 0 0 0 4px rgba(221,92,100,0.13); }
.sidebar .text-button { margin-top: 18px; }

.main-content { margin-left: 238px; padding: 30px clamp(24px, 4vw, 58px) 70px; }
.content-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 25px; }
.content-header h1 { margin: 0; font-size: 28px; }
.customer-identity { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; }
.customer-identity span { color: var(--muted); font-size: 12px; }
.customer-identity strong { margin-top: 3px; }

.mobile-header, .mobile-nav { display: none; }
.page { display: none; }
.page.active { display: block; }

.connection-banner {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #ead2aa;
  border-left: 4px solid #d6922e;
  border-radius: var(--radius);
  padding: 11px 15px;
  background: var(--amber-soft);
  color: #71450f;
  font-size: 13px;
}
.connection-banner > div { display: flex; align-items: center; gap: 10px; }
.connection-banner.good { border-color: #a9d8c8; border-left-color: var(--green); background: var(--green-soft); color: #145d4c; }
.connection-banner.bad { border-color: #efb9bd; border-left-color: var(--red); background: var(--red-soft); color: #8e252d; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 30px; }
.kpi-card {
  min-width: 0;
  min-height: 136px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
  background: var(--surface);
}
.kpi-card.export { border-top-color: var(--blue); }
.kpi-card.power { border-top-color: #6f65a7; }
.kpi-card.cost { border-top-color: var(--amber); }
.kpi-card > span { color: var(--muted); font-size: 13px; }
.kpi-card > strong { display: block; margin: 13px 0 8px; font-size: 28px; line-height: 1; white-space: nowrap; }
.kpi-card > strong small { font-size: 14px; color: var(--muted); }
.kpi-card > strong.compact-kpi { font-size: 19px; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; }
.kpi-card em { display: block; min-height: 16px; color: #7a8493; font-size: 11px; font-style: normal; line-height: 1.35; }

.chart-section, .table-section, .plain-section, .contract-header, .contract-grid {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.chart-section, .table-section, .plain-section { padding: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 10px; }
.chart { width: 100%; height: 320px; }
.chart.extra-large { height: 440px; }
.split-section { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 16px; margin-top: 16px; }
.plain-section { min-height: 210px; }
.meter-summary { display: grid; margin-top: 13px; }
.meter-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.5fr) auto; align-items: center; gap: 15px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 13px; }
.meter-row:first-child { border-top: 0; }
.meter-row span { color: var(--muted); overflow-wrap: anywhere; }
.status-label, .status-pill, .count-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 25px;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}
.status-label.pending { background: var(--amber-soft); color: var(--amber); }
.status-label.bad { background: var(--red-soft); color: var(--red); }
.detail-list { margin: 13px 0 0; }
.detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; text-align: right; font-weight: 700; }

.toolbar {
  display: grid;
  grid-template-columns: 110px minmax(170px, 250px) 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.toolbar label { margin: 0; }
.toolbar select { min-height: 40px; }
.segmented { justify-self: end; display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; }
.segmented button { min-height: 38px; border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--muted); padding: 8px 12px; font-size: 12px; font-weight: 700; }
.segmented button:first-child { border-left: 0; }
.segmented button.active { background: var(--navy); color: #fff; }
.summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.summary-strip > div { padding: 14px 16px; border-left: 1px solid var(--line); }
.summary-strip > div:first-child { border-left: 0; }
.summary-strip span { display: block; color: var(--muted); font-size: 11px; }
.summary-strip strong { display: block; margin-top: 5px; font-size: 16px; }
.table-section { margin-top: 14px; padding-bottom: 8px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 11px 12px; border-bottom: 1px solid var(--line-strong); color: var(--muted); font-size: 11px; text-align: left; white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
.empty-cell { padding: 34px 12px; color: var(--muted); text-align: center; }
.count-badge { background: var(--blue-soft); color: var(--blue); }

.contract-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.contract-grid > div { min-height: 110px; padding: 20px 22px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.contract-grid > div:nth-child(3n+1) { border-left: 0; }
.contract-grid > div:nth-child(-n+3) { border-top: 0; }
.contract-grid dt { color: var(--muted); font-size: 12px; }
.contract-grid dd { margin: 9px 0 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.info-band { margin-top: 16px; padding: 18px 20px; border-left: 4px solid var(--blue); background: var(--blue-soft); color: #244b63; }
.info-band p { margin: 5px 0 0; font-size: 13px; line-height: 1.5; }

.action-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  background: var(--surface);
}
.action-band h2 { margin-bottom: 0; }
.button-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.section-copy { max-width: 760px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.compact-button { padding: 6px 9px; font-size: 12px; }
.mono { max-width: 680px; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.truncate-cell { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.billing-generator { align-items: flex-end; }
.billing-test-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.billing-test-form > div { min-width: 0; }
.billing-test-form input, .billing-test-form select { width: 100%; min-width: 0; }
.billing-test-actions { display: flex; align-items: flex-end; gap: 10px; }
#billing-test-result { margin-top: 20px; }
#billing-test-summary dd { overflow-wrap: anywhere; min-width: 0; }
#billing-test-section .section-heading { flex-wrap: wrap; }
#billing-test-section h3 { margin: 0; }
#billing-test-section .icon-button { flex: 0 0 42px; width: 42px; height: 42px; }
#vpp-test-runs td:nth-child(2), #vpp-snapshots-table td:nth-child(2) { white-space: nowrap; }
.inline-form {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  align-items: end;
  gap: 10px;
  min-width: min(100%, 650px);
}
.inline-form label { margin: 0 0 6px; font-size: 11px; }
.inline-form input, .inline-form select { min-height: 40px; }
.inline-form .primary-button { min-height: 40px; white-space: nowrap; }
.billing-detail { margin-top: 14px; }
.accounting-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 0;
  margin-top: 14px;
}
.accounting-section h2 { margin-bottom: 0; }
.integration-actions, .billing-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.billing-actions { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
button:disabled { cursor: not-allowed; opacity: 0.48; }
.blocker-list { display: grid; gap: 8px; margin: 14px 0; }
.blocker { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-left: 4px solid var(--red); padding: 10px 12px; background: var(--red-soft); color: #8e252d; font-size: 12px; }
.blocker span { color: #a44a51; text-align: right; }
.compact-details { margin-top: 16px; }
tfoot th { padding: 14px 12px; border-top: 2px solid var(--line-strong); color: var(--ink); font-size: 13px; }
tfoot th:last-child { text-align: left; }

.readiness-intro { min-height: 0; margin-bottom: 14px; }
.readiness-list { border: 1px solid var(--line); background: var(--surface); }
.readiness-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.readiness-row:first-child { border-top: 0; }
.readiness-row strong { display: block; font-size: 14px; }
.readiness-row small { display: block; margin-top: 4px; color: var(--muted); }

.admin-dialog {
  width: min(650px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.admin-dialog::backdrop { background: rgba(8, 20, 38, 0.58); }
.dialog-close-form { position: absolute; top: 12px; right: 12px; }
.icon-button.light { color: var(--muted); background: var(--background); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.full-field { grid-column: 1 / -1; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }

@media (max-width: 1260px) {
  .billing-generator { display: block; }
  .billing-generator .inline-form { margin-top: 18px; }
}

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 100px 1fr; }
  .segmented { justify-self: start; }
  .toolbar .secondary-button { justify-self: end; }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .login-screen { display: block; min-height: 100vh; }
  .login-brand { min-height: 145px; padding: 28px 24px; }
  .login-panel { width: calc(100% - 40px); padding: 32px 0; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 20px 15px 30px; }
  .mobile-header { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 10px 16px; background: var(--navy); }
  .mobile-header .brand { padding: 0; color: #fff; }
  .mobile-header .brand img { width: 38px; height: 38px; }
  .mobile-header .brand strong { font-size: 17px; }
  .content-header { align-items: flex-end; margin-bottom: 17px; }
  .content-header h1 { font-size: 24px; }
  .customer-identity { max-width: 45%; font-size: 12px; text-align: right; }
  .mobile-nav {
    position: fixed;
    z-index: 20;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(72px, 1fr);
    overflow-x: auto;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.97);
  }
  .mobile-nav button { min-width: 0; min-height: 56px; border: 0; border-top: 3px solid transparent; background: transparent; color: var(--muted); font-size: 10px; font-weight: 750; }
  .mobile-nav button.active { border-top-color: var(--green); color: var(--navy); }
  .connection-banner { align-items: flex-start; flex-direction: column; gap: 6px; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
  .kpi-card { min-height: 120px; padding: 14px 12px; }
  .kpi-card > strong { font-size: 22px; }
  .split-section { grid-template-columns: 1fr; }
  .chart-section, .table-section, .plain-section { padding: 15px 12px; }
  .chart { height: 310px; }
  .chart.extra-large { height: 390px; }
  .section-heading { align-items: flex-start; }
  .toolbar { grid-template-columns: 1fr; padding: 13px; }
  .toolbar label { display: none; }
  .segmented { width: 100%; overflow-x: auto; }
  .segmented button { flex: 1 0 auto; padding: 8px 10px; }
  .toolbar .secondary-button { justify-self: stretch; }
  .summary-strip { grid-template-columns: repeat(2, 1fr); }
  .summary-strip > div { border-top: 1px solid var(--line); }
  .summary-strip > div:nth-child(-n+2) { border-top: 0; }
  .summary-strip > div:nth-child(odd) { border-left: 0; }
  .contract-header { align-items: flex-start; }
  .contract-grid { grid-template-columns: 1fr 1fr; }
  .contract-grid > div, .contract-grid > div:nth-child(3n+1) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .contract-grid > div:nth-child(odd) { border-left: 0; }
  .contract-grid > div:nth-child(-n+2) { border-top: 0; }
  .meter-row { grid-template-columns: 1fr auto; }
  .meter-row span { grid-column: 1 / -1; }
  .admin-mobile-nav { grid-template-columns: none; grid-auto-columns: minmax(78px, 1fr); }
  .action-band { align-items: stretch; flex-direction: column; }
  .accounting-section { align-items: stretch; flex-direction: column; }
  .integration-actions, .billing-actions { align-items: stretch; flex-direction: column; }
  .integration-actions button, .billing-actions button { width: 100%; }
  .button-row { justify-content: stretch; }
  .button-row button { flex: 1 1 130px; }
  .inline-form { min-width: 0; grid-template-columns: 1fr; }
  .inline-form .primary-button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
  .admin-dialog { padding: 24px 18px; }
  .blocker { align-items: flex-start; flex-direction: column; gap: 3px; }
  .blocker span { text-align: left; }
  .readiness-row { grid-template-columns: 12px minmax(0, 1fr); }
  .readiness-row .status-label { grid-column: 2; }
}

@media (max-width: 410px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 104px; }
  .contract-grid { grid-template-columns: 1fr; }
  .contract-grid > div, .contract-grid > div:nth-child(odd), .contract-grid > div:nth-child(-n+2) { border-left: 0; border-top: 1px solid var(--line); }
  .contract-grid > div:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
/* Registry tables keep detailed evidence wrapped inside their own cells. */
.registry-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 0; }
.table-button { color: var(--blue); background: transparent; border: 0; padding: 6px 8px; font-weight: 600; }
.table-button:hover { background: var(--blue-soft); }
.registry-detail { max-width: 320px; white-space: normal; overflow-wrap: anywhere; padding: 8px 0; }
.registry-error { color: #b42318; overflow-wrap: anywhere; min-height: 20px; }
.admin-dialog [hidden] { display: none; }
.registry-error:empty { margin: 0; min-height: 0; }
.inbox-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.inbox-filters label { margin: 0; }
.inbox-filters select { width: auto; max-width: 100%; min-height: 40px; }
.inbox-filters span { color: var(--muted); font-size: 12px; }
#inbox-table td { max-width: 300px; overflow-wrap: anywhere; }
#inbox-section table, #transport-section table { min-width: 760px; }
#transport-section summary { cursor: pointer; padding: 16px 0; }
#transport-counts { color: var(--muted); line-height: 1.6; }
#inbox-table .status-label { white-space: nowrap; }
#inbox-details { overflow-wrap: anywhere; }
#inbox-details dl { display: grid; gap: 6px; }
#inbox-details dd { margin: 0 0 10px; }
#inbox-details ol { padding-left: 20px; }
#inbox-details li { margin-bottom: 10px; }
.admin-dialog textarea { width: 100%; min-height: 90px; font: inherit; border: 1px solid var(--line-strong); border-radius: 6px; padding: 10px; resize: vertical; }
.interval-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 16px; }
.interval-form .interval-scope-field { grid-column: 1 / -1; }
.interval-form input, .interval-form select { min-width: 0; }
.interval-form .button-row { grid-column: 1 / -1; justify-content: flex-start; }
.interval-section, .registry-section { background: transparent; border: 0; border-radius: 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
#interval-scope-label { margin: 8px 0 0; overflow-wrap: anywhere; }
.brs-plan { padding: 16px 0; border-block: 1px solid var(--line); margin: 16px 0; overflow-wrap: anywhere; }
.brs-plan h3 { font-size: 16px; margin: 0 0 12px; }
.brs-dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 16px; font-size: 13px; }
.brs-dates dd { margin: 0; }
.brs-issues, .brs-events { padding-left: 20px; font-size: 13px; }
.brs-issues li, .brs-events li { margin-bottom: 8px; overflow-wrap: anywhere; }
.check-row { display: flex; align-items: center; gap: 8px; }
.check-row input[type=checkbox] { width: 18px; height: 18px; margin: 0; }
#process-test-feedback { font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 600px) { .interval-form { grid-template-columns: minmax(0, 1fr); } }
