:root {
  font-family: Arial, 'Segoe UI', sans-serif;
  color: #233446;
  background: #f4f6f9;
  font-synthesis: none;
  --blue: #1565c0;
  --ink: #193148;
  --muted: #647589;
  --line: #e0e7ef;
  --pale: #edf4fc;
  --green: #256848;
  --red: #a83d3d;
  --orange: #995411;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--blue);
}
button,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #3e83cd;
}
button {
  transition: background 0.12s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button svg {
  width: 20px;
  height: 20px;
}
button {
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.2px;
}
h3 {
  font-size: 15px;
}
small {
  font-size: 13px;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.boot {
  padding: 60px;
  text-align: center;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.button {
  min-height: 44px;
  border-radius: 7px;
  padding: 11px 17px;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:hover:not(:disabled) {
  background: #0d54a2;
}
.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid #cbd6e2;
}
.secondary:hover:not(:disabled) {
  background: #f2f6fb;
}
.quiet {
  background: transparent;
  color: var(--muted);
}
.text-button {
  color: var(--blue);
  background: none;
  font-size: 14px;
  padding: 7px;
}
.icon-button {
  height: 36px;
  min-width: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #36546e;
  font-size: 21px;
  display: inline-grid;
  place-items: center;
}
.icon-button:hover:not(:disabled) {
  background: var(--pale);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.3px;
  font-weight: 700;
  text-transform: uppercase;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ccd7e2;
  border-radius: 7px;
  background: #fff;
  min-height: 44px;
  padding: 11px 12px;
  font-size: 15px;
  color: var(--ink);
  font-weight: 400;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6c7d8c;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}
.field select {
  padding-right: 28px;
}
.error {
  background: #fff0ef;
  border: 1px solid #efceca;
  color: #97342f;
  border-radius: 7px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
}
.success {
  background: #eef7f2;
  color: #205f42;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.status:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.waiting {
  color: #466681;
  background: #edf3f8;
}
.status.approved {
  color: #256848;
  background: #e9f5ed;
}
.status.recheck {
  color: #a75517;
  background: #fff1e5;
}
.warning-chip {
  color: #a34536;
  background: #fff0eb;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 11px;
  display: inline-block;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.badge {
  font-size: 11px;
  letter-spacing: 0.2px;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eef3f9;
  color: #526c85;
  font-weight: 600;
}
.demo-badge {
  color: #925911;
  background: #fff1d7;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(400px, 1fr) minmax(440px, 0.85fr);
}
.login-brand {
  background: #123b5d;
  color: #fff;
  padding: 46px 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-brand:after {
  content: '';
  position: absolute;
  right: -190px;
  bottom: -240px;
  width: 650px;
  height: 650px;
  border: 1px solid #2b5372;
  border-radius: 50%;
  box-shadow:
    0 0 0 70px #ffffff02,
    0 0 0 140px #ffffff02;
  pointer-events: none;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 13px;
}
.brand-lockup img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.brand-lockup strong {
  letter-spacing: 1px;
  font-size: 22px;
}
.brand-lockup span {
  display: block;
  font-size: 12px;
  opacity: 0.7;
  margin-top: 5px;
}
.login-story {
  position: relative;
  z-index: 1;
  margin: 60px 0;
}
.login-story .eyebrow {
  color: #9cbcd4;
}
.login-story h1 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.18;
  max-width: 470px;
  margin-top: 22px;
  letter-spacing: -1px;
}
.login-story p {
  color: #c0d2df;
  font-size: 17px;
  line-height: 1.7;
  max-width: 450px;
  margin-top: 22px;
}
.story-steps {
  display: flex;
  gap: 20px;
  margin-top: 42px;
}
.story-step {
  border-top: 1px solid #597287;
  padding-top: 13px;
  flex: 1;
  font-size: 13px;
  color: #ccdde9;
}
.story-step b {
  display: block;
  color: #95b6ce;
  font-size: 11px;
  margin-bottom: 8px;
}
.login-brand footer {
  color: #a5bfce;
  font-size: 12px;
  position: relative;
  z-index: 1;
}
.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 40px;
}
.login-card {
  width: 100%;
  max-width: 390px;
}
.login-card > .eyebrow {
  color: var(--blue);
  margin-bottom: 16px;
}
.login-card h2 {
  font-size: 28px;
}
.login-card > .muted {
  font-size: 15px;
  line-height: 1.6;
  margin: 11px 0 30px;
}
.login-card form {
  display: grid;
  gap: 19px;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 60px;
}
.password-toggle {
  position: absolute;
  right: 4px;
  top: 4px;
  height: 36px;
  font-size: 13px;
  background: #fff;
  color: #47647b;
  border-radius: 4px;
  width: 52px;
}
.login-card .button {
  width: 100%;
}
.login-card .error {
  margin-bottom: 16px;
}
.login-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 16px;
}
.demo-entry {
  border-top: 1px solid var(--line);
  margin-top: 29px;
  padding-top: 23px;
}
.demo-entry p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
  line-height: 1.6;
}
.login-footer {
  margin-top: 36px;
  font-size: 11px;
  color: #738392;
}
.app-topbar {
  height: 70px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  gap: 16px;
}
.app-topbar .brand-lockup img {
  width: 40px;
  height: 40px;
}
.app-topbar .brand-lockup strong {
  color: #244b6a;
  font-size: 19px;
  letter-spacing: 1px;
}
.app-topbar .brand-lockup span {
  color: var(--muted);
  font-size: 11px;
  opacity: 1;
}
.top-account {
  display: flex;
  align-items: center;
  gap: 11px;
}
.avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #eaf1f7;
  color: #47677f;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.account-copy {
  font-size: 13px;
  line-height: 1.5;
}
.account-copy small {
  display: block;
  font-size: 11px;
}
.app-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  min-height: calc(100dvh - 70px);
}
.sidebar {
  padding: 27px 12px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.sidebar .eyebrow {
  font-size: 10px;
  color: #7d8d9d;
  margin: 0 12px 12px;
}
.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  text-align: left;
  border-radius: 7px;
  background: none;
  color: #65798c;
  font-size: 13px;
  margin: 3px 0;
  min-height: 44px;
}
.nav-button.active {
  background: #eaf2fc;
  color: #1565c0;
  font-weight: 700;
}
.nav-symbol {
  font-size: 16px;
  display: inline-grid;
  place-items: center;
  width: 20px;
}
.nav-button .count {
  margin-left: auto;
  font-size: 11px;
  background: #fff8;
  padding: 2px 5px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.sidebar-bottom p {
  font-size: 10px;
  line-height: 1.6;
  color: #8493a0;
  padding: 12px;
}
.workspace {
  padding: 22px 25px 24px;
  min-width: 0;
}
.workspace-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.workspace-heading p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.cycle-label {
  font-size: 13px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 16px;
  overflow: hidden;
}
.summary {
  background: transparent;
  padding: 13px 18px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 15px;
  border-right: 1px solid var(--line);
  position: relative;
  color: var(--ink);
}
.summary:last-child {
  border: 0;
}
.summary.active:after {
  content: '';
  height: 3px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--blue);
}
.summary .number {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.7px;
  min-width: 31px;
}
.summary .summary-label {
  font-size: 13px;
  display: block;
}
.summary small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.summary-marker {
  width: 32px;
  height: 32px;
  background: #edf3f9;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #51718e;
  font-size: 16px;
}
.summary.approved .summary-marker {
  background: #edf6f0;
  color: #337853;
}
.summary.recheck .summary-marker {
  background: #fff3e9;
  color: #a55c22;
}
.filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(140px, 0.8fr));
  gap: 12px;
  margin-bottom: 14px;
}
.filters .field {
  font-size: 11px;
  gap: 6px;
  color: #617488;
}
.filters .field input,
.filters .field select {
  min-height: 39px;
  padding: 9px 11px;
  font-size: 13px;
}
.search-shell {
  position: relative;
}
.search-shell input {
  padding-left: 34px !important;
}
.search-symbol {
  position: absolute;
  left: 12px;
  top: 10px;
  color: #8a9caa;
  font-size: 17px;
}
.demo-banner {
  border: 1px solid #efdfbe;
  background: #fffaef;
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 11px;
  color: #806134;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.global-error {
  margin-bottom: 12px;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(390px, 1fr);
  gap: 17px;
  align-items: stretch;
}
.list-panel,
.detail-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 0;
  overflow: hidden;
  height: calc(100dvh - 324px);
  min-height: 430px;
  display: flex;
  flex-direction: column;
}
.list-heading {
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.list-heading h2 {
  font-size: 14px;
}
.list-heading small {
  font-size: 11px;
}
.list-scroll {
  overflow: auto;
  flex: 1;
}
.records {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
.records th {
  position: sticky;
  top: 0;
  background: #f9fbfd;
  padding: 11px 12px;
  font-size: 10px;
  color: #768899;
  letter-spacing: 0.1px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  z-index: 1;
  white-space: nowrap;
}
.records td {
  padding: 12px 10px;
  vertical-align: middle;
  border-bottom: 1px solid #edf1f5;
}
.records th:first-child,
.records td:first-child {
  padding-left: 16px;
}
.records tr.selected td {
  background: #edf5fd;
}
.records tr.selected td:first-child {
  box-shadow: inset 3px 0 var(--blue);
}
.records tr:hover td {
  background: #f5f9fd;
}
.records tr.selected:hover td {
  background: #edf5fd;
}
.record-button {
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  width: 100%;
  min-height: 33px;
}
.record-button small {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  color: #6d8193;
  font-weight: 400;
}
.reading-cell {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.reading-cell small {
  font-size: 10px;
  display: block;
  font-weight: 400;
  margin-top: 4px;
}
.usage-cell {
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.usage-cell small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
}
.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 13px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #748495;
  min-height: 52px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pagination .icon-button {
  height: 29px;
  min-width: 29px;
  font-size: 16px;
}
.empty {
  padding: 54px 24px;
  text-align: center;
  line-height: 1.65;
  color: var(--muted);
  font-size: 14px;
}
.empty b {
  display: block;
  color: #3e586e;
  font-size: 16px;
  margin-bottom: 7px;
}
.empty-symbol {
  font-size: 34px;
  color: #afbfcd;
  margin-bottom: 14px;
}
.skeleton {
  height: 12px;
  background: #edf2f6;
  border-radius: 4px;
  margin: 14px;
  width: 85%;
}
.skeleton.short {
  width: 55%;
}
.detail-heading {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.detail-heading h2 {
  font-size: 17px;
  line-height: 1.35;
}
.detail-heading p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
.detail-heading .status {
  margin-top: 2px;
}
.detail-tabs {
  padding: 0 15px;
  display: flex;
  gap: 21px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  min-height: 37px;
}
.detail-tab {
  font-size: 12px;
  font-weight: 600;
  padding: 10px 0 9px;
  color: #758799;
  background: transparent;
  border-bottom: 2px solid transparent;
}
.detail-tab.active {
  color: var(--blue);
  border-color: var(--blue);
}
.detail-scroll {
  overflow: auto;
  flex: 1;
  padding: 13px 15px;
  min-height: 0;
}
.evidence-alert {
  font-size: 11px;
  padding: 9px 10px;
  border: 1px solid #efd4c9;
  background: #fff5ef;
  border-radius: 6px;
  color: #9a4c30;
  line-height: 1.5;
  margin-bottom: 11px;
}
.evidence-alert b {
  display: block;
  margin-bottom: 2px;
}
.photo-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  margin-bottom: 7px;
  color: #6c8193;
}
.photo-switch {
  display: flex;
  gap: 2px;
  background: #f0f4f8;
  padding: 2px;
  border-radius: 5px;
}
.photo-switch button {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 4px;
  color: #6c7e8c;
  background: transparent;
}
.photo-switch button.active {
  background: #fff;
  color: #315673;
  box-shadow: 0 1px 2px #19314812;
}
.photo-viewport {
  height: clamp(190px, 25vh, 260px);
  background: #edf0f2;
  border: 1px solid #dfe5e9;
  border-radius: 7px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.photo-viewport img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.15s;
}
.photo-message {
  text-align: center;
  padding: 35px 22px;
  font-size: 13px;
  color: #687b8c;
  line-height: 1.6;
}
.photo-message b {
  display: block;
  margin-bottom: 6px;
  color: #425f77;
}
.photo-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0 12px;
}
.photo-tools .tool-buttons {
  display: flex;
  gap: 5px;
}
.photo-tools .icon-button {
  height: 28px;
  min-width: 30px;
  font-size: 16px;
}
.photo-tools small {
  font-size: 10px;
}
.meter-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.meter-value {
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}
.meter-value:last-child {
  border: 0;
}
.meter-value span {
  font-size: 10px;
  color: #7b8c9c;
  display: block;
  margin-bottom: 6px;
}
.meter-value strong {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
}
.meter-value.primary-value {
  background: #f2f7fd;
}
.meter-value.primary-value strong {
  color: var(--blue);
}
.meter-value small {
  font-size: 11px;
}
.comparison-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 1px;
  font-size: 11px;
  color: #6d8395;
  gap: 10px;
}
.comparison-note .variance {
  color: #a5542e;
  font-weight: 600;
}
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 16px;
  margin-bottom: 17px;
}
.info-item {
  min-width: 0;
}
.info-item dt {
  font-size: 11px;
  color: #7a8fa0;
  margin-bottom: 5px;
}
.info-item dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.info-item.wide {
  grid-column: 1/-1;
}
.history {
  margin-top: 15px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.history h3 {
  margin-bottom: 12px;
  font-size: 13px;
}
.history-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}
.history-table th,
.history-table td {
  text-align: left;
  padding: 8px 7px;
  border-bottom: 1px solid var(--line);
}
.history-table th {
  font-size: 10px;
  color: #7c8c99;
  background: #f7fafc;
  font-weight: 500;
}
.history-bars {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  height: 76px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}
.history-bar {
  flex: 1;
  text-align: center;
}
.history-bar i {
  display: block;
  background: #8db5da;
  max-width: 48px;
  min-height: 3px;
  margin: 0 auto 5px;
  border-radius: 3px 3px 0 0;
}
.history-bar small {
  font-size: 10px;
}
.audit-line {
  border-left: 2px solid #ccdceb;
  margin: 10px 0;
  padding: 0 0 0 11px;
  font-size: 12px;
  line-height: 1.5;
}
.audit-line b {
  font-size: 12px;
  display: block;
}
.audit-line small {
  font-size: 10px;
}
.decision-zone {
  border-top: 1px solid var(--line);
  padding: 11px 15px 12px;
  background: #fff;
  flex-shrink: 0;
}
.decision-zone .error,
.decision-zone .success {
  font-size: 11px;
  padding: 8px 10px;
  margin-bottom: 9px;
}
.decision-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11px;
  color: #728597;
}
.decision-options label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.decision-options input {
  accent-color: var(--blue);
}
.decision-buttons {
  display: flex;
  gap: 8px;
}
.decision-buttons .button {
  font-size: 12px;
  padding: 10px 12px;
  min-height: 40px;
}
.decision-buttons .primary {
  flex: 1;
}
.decision-form {
  display: grid;
  gap: 9px;
  padding-bottom: 11px;
}
.decision-form .field {
  font-size: 11px;
}
.decision-form .field select,
.decision-form .field textarea {
  font-size: 12px;
  padding: 8px 10px;
  min-height: 36px;
}
.decision-form textarea {
  height: 66px;
  min-height: 66px !important;
}
.decision-note {
  font-size: 11px;
  color: #708394;
  line-height: 1.5;
}
.mobile-back {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  width: min(92vw, 960px);
  max-height: 92dvh;
  color: var(--ink);
  box-shadow: 0 30px 90px #15375030;
}
dialog::backdrop {
  background: #112a40a6;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dialog-photo {
  height: 65dvh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf1f4;
  border-radius: 8px;
}
.dialog-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.dialog-tip {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 13px;
}
#help-dialog {
  max-width: 510px;
}
.help-list {
  font-size: 15px;
  line-height: 1.7;
  padding-left: 23px;
}
.help-list li {
  padding: 7px 0;
}
@media (min-width: 1600px) {
  .workspace {
    padding: 28px 36px;
  }
  .workbench {
    grid-template-columns: 1.1fr 1fr;
  }
  .records td {
    padding-top: 17px;
    padding-bottom: 17px;
  }
  .list-panel,
  .detail-panel {
    height: calc(100dvh - 344px);
  }
  .photo-viewport {
    height: clamp(250px, 30vh, 340px);
  }
}
@media (max-width: 1200px) {
  .app-layout {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .workspace {
    padding: 20px 18px;
  }
  .sidebar {
    padding-left: 7px;
    padding-right: 7px;
  }
  .nav-button {
    font-size: 11px;
  }
  .workbench {
    gap: 12px;
    grid-template-columns: minmax(330px, 1fr) minmax(350px, 1fr);
  }
  .filters {
    grid-template-columns: 1.4fr 0.9fr 0.9fr;
  }
  .filters .field:last-child {
    grid-column: 1/-1;
    display: none;
  }
  .records td {
    padding-left: 7px;
    padding-right: 7px;
  }
  .records .status {
    font-size: 10px;
  }
  .app-topbar {
    padding: 0 18px;
  }
  .account-copy {
    max-width: 150px;
  }
  .record-button {
    font-size: 12px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    display: none;
  }
  .app-layout {
    display: block;
  }
  .workspace {
    padding: 20px;
  }
  .workbench {
    grid-template-columns: 1fr;
  }
  .list-panel,
  .detail-panel {
    height: calc(100dvh - 300px);
    min-height: 460px;
  }
  .detail-panel {
    display: none;
  }
  .workbench.mobile-detail .list-panel {
    display: none;
  }
  .workbench.mobile-detail .detail-panel {
    display: flex;
  }
  .mobile-back {
    display: inline-flex;
    margin-right: 4px;
    font-size: 12px;
  }
  .photo-viewport {
    height: 240px;
  }
  .filters .field:last-child {
    display: flex;
    grid-column: auto;
  }
  .filters {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }
  .account-copy {
    max-width: none;
  }
  .login-brand {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 38px;
  }
}
@media (max-width: 700px) {
  .login-page {
    display: block;
  }
  .login-brand {
    padding: 25px 25px 30px;
    min-height: 180px;
  }
  .login-story {
    margin: 22px 0 0;
  }
  .login-story h1 {
    font-size: 27px;
    max-width: 350px;
    line-height: 1.2;
    margin-top: 9px;
  }
  .login-story p,
  .story-steps,
  .login-brand footer,
  .login-story .eyebrow {
    display: none;
  }
  .login-brand .brand-lockup img {
    width: 39px;
    height: 39px;
  }
  .login-form-side {
    padding: 30px 24px;
  }
  .login-card h2 {
    font-size: 24px;
  }
  .app-topbar {
    height: 62px;
    padding: 0 14px;
  }
  .app-topbar .brand-lockup {
    gap: 8px;
  }
  .app-topbar .brand-lockup img {
    width: 33px;
    height: 33px;
  }
  .app-topbar .brand-lockup strong {
    font-size: 15px;
  }
  .app-topbar .brand-lockup span {
    font-size: 9px;
  }
  .account-copy {
    display: none;
  }
  .top-account {
    gap: 6px;
  }
  .top-account .badge {
    display: none;
  }
  .top-account .avatar {
    display: none;
  }
  .top-account .text-button {
    font-size: 11px;
  }
  .workspace {
    padding: 17px 12px;
  }
  .workspace-heading {
    align-items: flex-start;
    margin-bottom: 14px;
  }
  .workspace-heading h1 {
    font-size: 23px;
  }
  .workspace-heading p {
    font-size: 11px;
    max-width: 220px;
    line-height: 1.5;
  }
  .cycle-label {
    font-size: 11px;
    padding: 7px 8px;
  }
  .summary {
    padding: 11px 9px;
    gap: 7px;
    display: block;
  }
  .summary-marker {
    display: none;
  }
  .summary .number {
    font-size: 24px;
    margin-bottom: 5px;
  }
  .summary .summary-label {
    font-size: 11px;
  }
  .summary small {
    font-size: 9px;
  }
  .summary-row {
    margin-bottom: 13px;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .filters .field:first-child {
    grid-column: 1/-1;
  }
  .filters .field:last-child {
    display: none;
  }
  .demo-banner {
    font-size: 10px;
    line-height: 1.4;
  }
  .demo-banner .text-button {
    font-size: 10px;
    white-space: nowrap;
  }
  .list-panel,
  .detail-panel {
    height: calc(100dvh - 348px);
    min-height: 420px;
    border-radius: 7px;
  }
  .records {
    min-width: 420px;
  }
  .records td {
    padding: 12px 8px;
  }
  .detail-heading h2 {
    font-size: 16px;
  }
  .detail-scroll {
    padding: 12px;
  }
  .photo-viewport {
    height: 210px;
  }
  .decision-zone {
    padding: 10px 12px;
  }
  .meter-value strong {
    font-size: 20px;
  }
  .photo-topline {
    font-size: 9px;
  }
  .list-footer {
    font-size: 10px;
  }
  .summary small {
    line-height: 1.4;
  }
  .decision-options {
    font-size: 10px;
  }
  .dialog-photo {
    height: 57dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.app-layout {
  height: calc(100dvh - 70px);
  min-height: 0;
}
.workspace {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.workbench {
  flex: 1;
  min-height: 0;
}
.list-panel,
.detail-panel {
  height: 100%;
  min-height: 0;
}
.global-error:empty,
#mode-banner:empty {
  display: none;
}
.detail-values {
  padding: 10px 15px 0;
  flex-shrink: 0;
}
.photo-viewport {
  height: 150px;
}
.demo-banner {
  padding: 6px 11px;
}
.demo-banner .text-button {
  font-size: 11px;
  padding: 3px 6px;
  line-height: 1.3;
}
.cycle-label select {
  border: 0;
  background: transparent;
  font-size: 13px;
  color: var(--ink);
  padding: 2px;
}
.record-button {
  font-size: 15px;
}
.reading-cell {
  font-size: 15px;
}
.usage-cell {
  font-size: 17px;
}
.records td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.records th {
  font-size: 12px;
}
.record-button small,
.reading-cell small,
.usage-cell small {
  font-size: 12px;
}
.details-grid dd {
  font-size: 15px;
}
.nav-button {
  font-size: 13px;
}
.evidence-alert {
  font-size: 12px;
  padding: 7px 9px;
}
.decision-buttons .button {
  font-size: 14px;
}
.decision-form .field select,
.decision-form .field textarea {
  font-size: 15px;
}
.decision-zone {
  padding-top: 9px;
  padding-bottom: 9px;
}
.history-table {
  font-size: 14px;
}
.audit-line {
  font-size: 14px;
}
.detail-tabs {
  min-height: 34px;
}
.detail-tab {
  font-size: 13px;
  padding: 8px 0;
}
.workspace-heading {
  margin-bottom: 15px;
}
.summary {
  padding: 11px 18px;
}
.summary .summary-label {
  font-size: 14px;
}
.filters .field input,
.filters .field select {
  font-size: 14px;
}
@media (max-width: 1000px) {
  .workbench {
    min-height: 350px;
  }
  .photo-viewport {
    height: 180px;
  }
}
@media (max-width: 700px) {
  .app-layout {
    height: calc(100dvh - 62px);
  }
  .workbench {
    min-height: 400px;
  }
  .summary {
    padding: 10px 9px;
  }
  .summary .summary-label {
    font-size: 11px;
  }
  .record-button {
    font-size: 15px;
  }
  .photo-viewport {
    height: 150px;
  }
}
.app-layout {
  grid-template-rows: minmax(0, 1fr);
}
.workspace {
  min-height: 0;
}
.workbench {
  overflow: hidden;
}
.list-panel,
.detail-panel {
  height: auto;
  min-height: 0;
}
@media (min-width: 1001px) and (max-height: 850px) {
  .workspace {
    padding-top: 18px;
  }
  .workspace-heading p {
    display: none;
  }
  .workspace-heading {
    margin-bottom: 13px;
  }
  .summary {
    padding: 9px 18px;
  }
  .summary-row {
    margin-bottom: 12px;
  }
  .filters {
    margin-bottom: 12px;
  }
  #mode-banner {
    display: none;
  }
  .photo-viewport {
    height: 170px;
  }
}
@media (max-width: 700px) {
  .app-layout {
    height: auto;
  }
  .workspace {
    height: auto;
    min-height: calc(100dvh - 62px);
  }
  .workspace > :not(.workbench) {
    flex-shrink: 0;
  }
  .summary small {
    display: none;
  }
  .workbench {
    height: 560px;
    min-height: 560px;
    flex: 0 0 560px;
  }
  .list-panel,
  .detail-panel {
    height: 560px;
  }
  .filters .field:last-child {
    display: flex;
    grid-column: 1/-1;
  }
  .account-copy {
    display: block;
    max-width: 90px;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .account-copy small {
    font-size: 9px;
  }
}

/* Correction and AI review share the existing NIWACO workspace. */
[hidden] {
  display: none !important;
}
.ai-queue-nav {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.nav-new {
  margin-left: auto;
  font-size: 10px;
  color: var(--blue);
}
#ai-controls:empty,
#ai-queue-mobile:empty {
  display: none;
}
.ai-queue-mobile {
  display: none;
}
.ai-filter-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.ai-filter-fields .field {
  font-size: 12px;
  gap: 5px;
}
.ai-filter-fields select {
  min-width: 0;
  min-height: 38px;
  font-size: 13px;
}
.ai-queue-counts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 0 12px;
}
.ai-queue-counts > span {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
.queue-count {
  background: transparent;
  color: #546b80;
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 12px;
}
.queue-count.active {
  color: var(--blue);
  background: #edf5fd;
  border-color: #b4cfe9;
}
.queue-count b {
  margin-left: 7px;
  font-variant-numeric: tabular-nums;
}
.record-ai-status {
  margin-top: 6px;
}
.training-badge {
  display: inline-flex;
  color: #687b8d;
  background: #f0f3f6;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}
.training-badge.verified {
  background: #edf7f0;
  color: #287348;
}
.training-badge.excluded,
.training-badge.revoked {
  background: #fff1e9;
  color: #9d4f28;
}
.ai-mismatch {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #a45b27;
}
.demo-scenario {
  font-size: 12px;
  line-height: 1.5;
  color: #79603a;
  padding: 8px 10px;
  background: #fffaed;
  border-left: 2px solid #d3b172;
  margin: 0 0 12px;
}
.correction-form,
.ai-review {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 14px;
}
.review-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.review-section-heading h3 {
  font-size: 18px;
  margin-top: 4px;
}
.review-section-heading .eyebrow {
  font-size: 10px;
}
.version-tag {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.review-hint {
  color: #64788b;
  font-size: 13px;
  line-height: 1.6;
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.review-hint.attention {
  color: #98602a;
}
.correction-values {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  align-items: center;
  gap: 16px;
  margin: 18px 0 8px;
}
.correction-values > div > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.correction-values strong {
  font-size: 27px;
  font-weight: 600;
}
.correction-values .field {
  font-size: 12px;
}
.correction-values input {
  font-size: 26px;
  font-family: ui-monospace, monospace;
}
.correction-form > .field,
.ai-exclusion .field {
  margin: 12px 0;
  font-size: 13px;
}
.correction-form textarea,
.ai-exclusion textarea {
  min-height: 76px;
  resize: vertical;
  font-size: 15px;
}
.review-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.review-form-actions .button,
.verify-button {
  min-height: 44px;
  font-size: 14px;
}
.ai-reading-comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
  gap: 10px;
}
.ai-reading-comparison span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.ai-reading-comparison b {
  font-size: 20px;
  font-weight: 600;
}
.ai-prediction-label {
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: space-between;
}
.ai-prediction-label span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.ai-digits {
  display: flex;
  gap: 7px;
}
.ai-digit {
  flex: 1;
  min-width: 0;
  border: 1px solid #dbe4ed;
  border-radius: 6px;
  text-align: center;
  padding: 7px 3px;
  background: #f8fafc;
  display: grid;
  gap: 5px;
}
.ai-digit small,
.ai-digit > span {
  font-size: 11px;
  color: #6a7e90;
}
.ai-digit b {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
}
.ai-digit.flagged {
  border-color: #d89a52;
  background: #fff8ee;
}
.ai-digit.flagged > span {
  color: #95551d;
}
.ai-label-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 11px;
}
.ai-label-heading .field {
  font-size: 12px;
}
.ai-label-heading select {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 13px;
}
.ai-final-output {
  display: block;
  font-size: 22px;
  letter-spacing: 2px;
  margin-top: 4px;
  text-align: right;
}
.ai-digits.editable .ai-digit {
  border-color: #bccfe1;
  background: white;
}
.ai-digit input {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  background: transparent;
  text-align: center;
  color: #154e7c;
  padding: 0;
  font:
    600 29px ui-monospace,
    monospace;
}
.ai-digit input:focus-visible {
  outline: 2px solid var(--blue);
  border-radius: 3px;
}
.ai-whole-label {
  margin: 12px 0;
  font-size: 12px;
  color: #63788b;
}
.ai-whole-label .field {
  margin-top: 10px;
}
.ai-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0;
}
.candidate-button {
  background: #edf4fa;
  color: #345e83;
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 12px;
}
.inspection-check {
  display: flex;
  gap: 9px;
  align-items: start;
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0 10px;
}
.inspection-check input {
  margin-top: 5px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--blue);
}
.verify-button {
  width: 100%;
}
.ai-exclusion {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.ai-exclusion summary,
.ai-whole-label summary,
.ai-audit summary {
  cursor: pointer;
  min-height: 28px;
}
.danger-outline {
  color: #a14b35;
  background: #fff;
  border: 1px solid #e5beb4;
}
.ai-delivery {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 18px;
}
.ai-delivery b {
  display: block;
  font-size: 14px;
  margin-top: 5px;
}
.ai-delivery p,
.ai-delivery small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
.ai-audit {
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}
.decision-buttons {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.decision-buttons .button {
  flex: 1;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 10px;
}
.detail-tabs {
  gap: 16px;
  overflow-x: auto;
  flex-shrink: 0;
}
.detail-tab {
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .ai-queue-mobile {
    display: block;
    margin: 0 0 10px;
  }
  .ai-queue-counts > span {
    display: none;
  }
  .ai-filter-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .ai-reading-comparison b {
    font-size: 18px;
  }
  .ai-reading-comparison span {
    font-size: 10px;
  }
  .ai-queue-counts {
    gap: 5px;
  }
  .queue-count {
    font-size: 11px;
    padding: 6px;
  }
  .ai-digit b {
    font-size: 24px;
  }
  .ai-digits {
    gap: 5px;
  }
  .correction-values {
    gap: 10px;
  }
  .decision-buttons .button {
    font-size: 12px;
  }
  .review-section-heading h3 {
    font-size: 17px;
  }
}
.ai-workspace #summary {
  display: none;
}
.ai-workspace .workbench {
  grid-template-columns: minmax(300px, 0.75fr) minmax(500px, 1.25fr);
}
.detail-panel {
  container-type: inline-size;
}
.ai-tab .detail-values,
.ai-tab .decision-options {
  display: none;
}
.ai-tab .ai-review {
  border: 0;
  margin: 0;
  padding: 0;
}
.ai-review-evidence {
  margin: 12px 0 16px;
}
.ai-review-evidence:empty {
  display: none;
}
.ai-review-evidence .comparison-note {
  display: none;
}
.ai-review-evidence .photo-viewport {
  height: 170px;
}
@container (min-width: 580px) {
  .ai-review-body {
    display: grid;
    grid-template-columns: minmax(190px, 0.85fr) minmax(250px, 1.15fr);
    gap: 18px;
    align-items: start;
  }
  .ai-review-evidence {
    position: sticky;
    top: 0;
  }
  .ai-review-evidence .photo-viewport {
    height: 220px;
  }
  .ai-review-evidence .photo-topline {
    flex-wrap: wrap;
    gap: 5px;
  }
  .ai-review-evidence .photo-tools {
    flex-wrap: wrap;
    gap: 6px;
  }
  .ai-label-editor .ai-prediction-label {
    margin-top: 12px;
  }
}
@media (max-width: 1000px) {
  .ai-workspace .workbench {
    grid-template-columns: 1fr;
  }
}
