:root {
  color-scheme: light;
  --bg: #eef7f1;
  --panel: #fbfefc;
  --ink: #18212f;
  --muted: #697587;
  --line: #d9e1ea;
  --accent: #176bff;
  --accent-dark: #0f56c8;
  --ok: #12805c;
  --warn: #b56a00;
  --danger: #c93535;
  --soft-blue: #e9f2ff;
  --soft-green: #e8f7ef;
  --soft-amber: #fff4df;
  --soft-red: #ffeded;
  --shadow: 0 14px 40px rgba(18, 32, 50, 0.12);
  --violet: #6f4bd8;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  padding-bottom: calc(74px + env(safe-area-inset-bottom));
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.robot-switch-nav {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  padding: 7px;
  border-radius: 8px;
  background: rgba(248, 253, 250, 0.94);
  box-shadow: 0 14px 34px rgba(20, 63, 48, 0.16), inset 0 0 0 1px rgba(190, 224, 207, 0.8);
  backdrop-filter: blur(12px);
}

.robot-switch-nav a {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #315b4a;
  font-size: 14px;
  font-weight: 950;
  text-decoration: none;
}

.robot-switch-nav a.active {
  background: linear-gradient(135deg, #1f8f64, #39ad7d);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 143, 100, 0.18);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  background:
    linear-gradient(160deg, rgba(22, 119, 255, 0.14), transparent 34%),
    linear-gradient(340deg, rgba(18, 128, 92, 0.14), transparent 38%),
    var(--bg);
}

.login-panel {
  width: min(100%, 430px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.brand-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand-row h1,
.top-bar h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.brand-row p,
.user-line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-form,
.filter-form {
  display: grid;
  gap: 14px;
}

.login-form label,
.textarea-label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.13);
}

.primary-button,
.ghost-button,
.icon-button {
  border: 0;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:active {
  background: var(--accent-dark);
}

.primary-button.small {
  min-height: 40px;
}

.ghost-button {
  background: #eef3f8;
  color: #263648;
}

.icon-button {
  width: 44px;
  padding: 0;
  background: #edf2f7;
  color: #263648;
  font-size: 24px;
}

.form-message,
.status-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.workbench-view {
  min-height: 100vh;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
  background: rgba(244, 246, 248, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.top-bar h1 {
  font-size: 22px;
}

.content {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 12px 12px 18px;
  display: grid;
  gap: 10px;
}

.summary-strip {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.summary-strip > div,
.summary-strip > button,
.tabs,
.filter-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-strip > div {
  padding: 12px;
  display: grid;
  gap: 2px;
}

.summary-strip strong {
  font-size: 22px;
  line-height: 1;
}

.summary-strip span {
  color: var(--muted);
  font-size: 12px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.tab-button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.tab-button.active {
  color: var(--accent);
  background: var(--soft-blue);
}

.filter-form {
  padding: 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.filter-actions,
.pager,
.sheet-actions,
.dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.status-message {
  color: var(--muted);
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 8px 24px rgba(20, 33, 50, 0.07);
  display: grid;
  gap: 12px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.person-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.report-no {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.tag {
  flex: none;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  background: #eef3f8;
  color: #44546a;
}

.tag.ok {
  background: var(--soft-green);
  color: var(--ok);
}

.tag.warn {
  background: var(--soft-amber);
  color: var(--warn);
}

.tag.danger {
  background: var(--soft-red);
  color: var(--danger);
}

.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.meta-item {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.meta-item span {
  color: var(--muted);
  font-size: 12px;
}

.meta-item strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.meta-item.is-empty {
  background: #f8fafc;
  border-style: dashed;
}

.meta-item.is-empty strong {
  color: #94a3b8;
  font-weight: 700;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-actions.read-only {
  grid-template-columns: 1fr;
}

.card-actions.read-only:has(button + button) {
  grid-template-columns: 1fr 1fr;
}

.empty-state {
  border: 1px dashed #b7c3d1;
  border-radius: 8px;
  padding: 28px 18px;
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--muted);
  background: #fff;
}

.empty-state strong {
  color: var(--ink);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13, 24, 38, 0.36);
}

.sheet-panel {
  position: absolute;
  inset: 0;
  width: min(100%, 760px);
  margin: 0 auto;
  max-height: none;
  background: var(--panel);
  border-radius: 0;
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(22px + env(safe-area-inset-bottom));
  overflow: auto;
  box-shadow: var(--shadow);
}

.sheet-header {
  position: sticky;
  top: calc(-14px - env(safe-area-inset-top));
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin: calc(-14px - env(safe-area-inset-top)) -14px 12px;
  padding: calc(14px + env(safe-area-inset-top)) 14px 12px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.sheet-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.sheet-header h2,
.action-dialog h2 {
  margin: 0;
  font-size: 20px;
}

.detail-body {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 2px;
}

.detail-section {
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,253,255,0.98));
  box-shadow: 0 8px 24px rgba(18, 32, 50, 0.06);
}

.detail-section h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 950;
}

.detail-section h3::before {
  content: "";
  width: 4px;
  height: 17px;
  border-radius: 99px;
  background: #176bff;
}

.hero-detail {
  border-color: #c9dcef;
  background:
    linear-gradient(135deg, rgba(232,244,255,0.95), rgba(255,255,255,0.98) 62%),
    #fff;
}

.status-detail h3::before {
  background: #12805c;
}

.detail-grid,
.compact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.highlight-card {
  min-width: 0;
  border: 1px solid #d7e2ef;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 5px;
  background: #f9fbfe;
}

.highlight-card span {
  color: var(--muted);
  font-size: 12px;
}

.highlight-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.highlight-card.ok {
  border-color: #bfe8d8;
  background: var(--soft-green);
}

.highlight-card.warn {
  border-color: #f2d8a8;
  background: var(--soft-amber);
}

.highlight-card.danger {
  border-color: #f1b8b8;
  background: var(--soft-red);
}

.readable-groups {
  display: grid;
  gap: 10px;
}

.readable-group {
  border: 1px solid #e3e9f0;
  border-radius: 8px;
  padding: 12px;
  background: #fbfcfe;
  display: grid;
  gap: 10px;
}

.readable-group h4 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.full-group {
  align-content: start;
}

.nested-groups {
  display: grid;
  gap: 8px;
  padding-left: 8px;
  border-left: 2px solid #e4eaf2;
}

.nested-groups .readable-group {
  background: #fff;
}

.collapsible-group,
.summary-fold-group,
.bill-detail-group {
  padding: 0;
  overflow: hidden;
}

.collapsible-group > summary,
.summary-fold-group > summary,
.bill-detail-group > summary,
.bill-item > summary {
  list-style: none;
  cursor: pointer;
}

.collapsible-group > summary::-webkit-details-marker,
.summary-fold-group > summary::-webkit-details-marker,
.bill-detail-group > summary::-webkit-details-marker,
.bill-item > summary::-webkit-details-marker {
  display: none;
}

.collapsible-group > summary,
.bill-detail-group > summary {
  min-height: 48px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid #e3e9f0;
}

.collapsible-group:not([open]) > summary,
.bill-detail-group:not([open]) > summary {
  border-bottom: 0;
}

.collapsible-group > summary span,
.bill-detail-group > summary span {
  font-weight: 800;
}

.collapsible-group > summary strong,
.bill-detail-group > summary strong {
  flex: none;
  color: var(--muted);
  font-size: 12px;
}

.collapsible-group > .compact-fields,
.collapsible-group > .nested-groups,
.collapsible-scroll {
  margin: 12px;
}

.collapsible-scroll {
  max-height: 58vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.collapsible-scroll > .compact-fields,
.collapsible-scroll > .nested-groups {
  margin: 0;
}

.bill-filter-bar {
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f6f9fc;
  border-bottom: 1px solid #e3e9f0;
}

.bill-filter-bar label {
  min-width: 0;
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.bill-filter-bar input,
.bill-filter-bar select {
  min-height: 38px;
  border-radius: 6px;
}

.bill-filter-count {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid #e3e9f0;
}

.bill-filter-count strong {
  color: var(--accent);
}

.bill-item-list {
  display: grid;
  max-height: calc(var(--bill-visible-rows, 5) * 58px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #fff;
}

.bill-detail-group:not([open]) {
  background: #fbfcfe;
}

.bill-detail-group:not([open]) > summary {
  min-height: 56px;
}

.bill-item {
  border-bottom: 1px solid #e9eef5;
  background: #fff;
}

.bill-item:last-child {
  border-bottom: 0;
}

.bill-item[hidden] {
  display: none;
}

.bill-item > summary {
  min-height: 58px;
  padding: 11px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.bill-item > summary span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.bill-item > summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.bill-item > summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.bill-item > summary b {
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.bill-item > .compact-fields {
  margin: 0 12px 12px;
  padding-top: 10px;
  border-top: 1px dashed #dfe7f0;
}

.muted-section {
  background: #fbfcfd;
}

.empty-readable {
  color: var(--muted);
  min-height: 88px;
  place-items: center;
}

.close-button {
  flex: none;
}

.action-dialog {
  width: min(92vw, 420px);
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

.action-dialog::backdrop {
  background: rgba(13, 24, 38, 0.36);
}

.action-dialog form {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.review-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.review-options label {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
}

@media (max-width: 390px) {
  .content {
    padding: 10px;
  }

  .filter-grid,
  .meta-grid,
  .detail-grid,
  .compact-fields,
  .highlight-grid,
  .bill-filter-bar {
    grid-template-columns: 1fr;
  }

  .summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  .summary-strip .ghost-button {
    grid-column: 1 / -1;
  }
}

.form-message.is-muted {
  color: var(--muted);
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Report reader polish */
.sheet-panel {
  background:
    radial-gradient(circle at 18% 0%, rgba(183, 232, 205, 0.48), transparent 34%),
    linear-gradient(180deg, #f3fbf6 0%, #edf6f0 48%, #eef5f8 100%);
  padding-left: 12px;
  padding-right: 12px;
}

.sheet-header {
  margin-left: -12px;
  margin-right: -12px;
  padding-left: 16px;
  padding-right: 12px;
  background: rgba(248, 253, 250, 0.95);
  box-shadow: 0 8px 24px rgba(28, 86, 64, 0.08);
}

.sheet-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 6px;
  padding: 0 9px;
  border-radius: 999px;
  background: #e6f7ed;
  color: #0f7551;
  font-weight: 800;
}

.sheet-header h2 {
  max-width: calc(100vw - 96px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 21px;
  line-height: 1.18;
}

.close-button {
  border: 1px solid #dde6f0;
  background: #fff;
  color: #334155;
  box-shadow: 0 6px 16px rgba(20, 33, 50, 0.08);
}

.detail-body {
  gap: 12px;
  padding-bottom: 8px;
}

.detail-section {
  border-color: #d7eade;
  background:
    linear-gradient(145deg, rgba(252, 255, 253, 0.96), rgba(243, 251, 247, 0.94));
  box-shadow: 0 8px 22px rgba(28, 86, 64, 0.055);
}

.detail-section h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
}

.detail-section h3::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: #18a36f;
}

.hero-detail {
  border-color: #cfeadc;
  background:
    linear-gradient(135deg, #eefaf3 0%, #fbfefd 58%),
    #fbfefc;
}

.status-detail h3::before {
  background: #12805c;
}

.summary-detail h3::before {
  background: #b56a00;
}

.insight-detail h3::before,
.full-report-section h3::before {
  background: #4d9f7a;
}

.detail-grid,
.compact-fields {
  gap: 8px;
}

.detail-grid .meta-item,
.compact-fields .meta-item {
  min-height: 54px;
  padding: 9px 10px;
  border: 1px solid #dfeee5;
  border-radius: 8px;
  background: #fbfefc;
}

.detail-grid .meta-item span,
.compact-fields .meta-item span {
  line-height: 1.2;
}

.detail-grid .meta-item strong,
.compact-fields .meta-item strong {
  line-height: 1.35;
}

.hero-detail .meta-item {
  background: #fff;
}

.highlight-grid {
  gap: 8px;
}

.highlight-card {
  min-height: 88px;
  padding: 13px;
  border-color: #dce7f3;
  background: #f7fbff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.highlight-card span {
  font-weight: 800;
}

.highlight-card strong {
  font-size: 17px;
}

.readable-groups {
  gap: 8px;
}

.readable-group {
  border-color: #e4ebf3;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 32, 50, 0.04);
}

.readable-group h4 {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 900;
}

.readable-group h4::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #94a3b8;
}

.nested-groups {
  gap: 8px;
  padding-left: 10px;
  border-left-color: #d8e2ee;
}

.collapsible-group,
.summary-fold-group,
.bill-detail-group {
  border-color: #dce5ef;
  background: #fff;
}

.collapsible-group > summary,
.summary-fold-group > summary,
.bill-detail-group > summary {
  min-height: 56px;
  padding: 0 12px 0 14px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.collapsible-group > summary::after,
.summary-fold-group > summary::after,
.bill-detail-group > summary::after,
.bill-item > summary::after {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.collapsible-group[open] > summary::after,
.summary-fold-group[open] > summary::after,
.bill-detail-group[open] > summary::after,
.bill-item[open] > summary::after {
  transform: rotate(225deg);
}

.collapsible-group > summary span,
.summary-fold-group > summary span,
.bill-detail-group > summary span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
  font-weight: 900;
}

.collapsible-group > summary strong,
.summary-fold-group > summary strong,
.bill-detail-group > summary strong {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #526171;
  font-weight: 900;
}

.summary-fold-group > .compact-fields {
  margin: 10px;
}

.collapsible-scroll {
  margin: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.bill-filter-bar {
  grid-template-columns: 1fr 1fr;
  padding: 10px;
  gap: 8px;
  background: #f8fafc;
}

.bill-filter-bar label {
  font-weight: 800;
}

.bill-filter-bar input,
.bill-filter-bar select {
  min-height: 40px;
  background: #fff;
  border-color: #dce5ef;
}

.bill-filter-count {
  background: #fff;
  color: #64748b;
  line-height: 1.4;
}

.bill-item-list {
  max-height: calc(var(--bill-visible-rows, 5) * 68px);
  background: #f8fafc;
}

.bill-item {
  margin: 8px 10px 0;
  border: 1px solid #e4ebf3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(18, 32, 50, 0.035);
}

.bill-item:last-child {
  margin-bottom: 10px;
  border-bottom: 1px solid #e4ebf3;
}

.bill-item > summary {
  min-height: 60px;
  padding: 10px 12px;
  grid-template-columns: minmax(0, 1fr) auto 10px;
  background: #fff;
}

.bill-item > summary strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}

.bill-item > summary em {
  line-height: 1.25;
}

.bill-item > summary b {
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
}

.bill-item > .compact-fields {
  margin: 0;
  padding: 10px;
  background: #fbfdff;
  border-top: 1px solid #e7edf4;
}

.bill-item > .compact-fields .meta-item {
  background: #fff;
}

.bill-detail-body {
  background:
    radial-gradient(circle at 12% 0%, rgba(182, 229, 202, 0.44), transparent 34%),
    linear-gradient(180deg, #f2fbf5 0%, #edf6f0 52%, #eef5f8 100%);
}

.repayment-section {
  border-color: #c6e6d4;
  background:
    linear-gradient(145deg, rgba(230, 248, 238, 0.98), rgba(250, 255, 252, 0.98) 52%),
    #fbfefc;
}

.repayment-section h3::before {
  background: #12805c;
}

.repayment-hero {
  border: 1px solid #bfe6cf;
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, #f1fbf5 0%, #fbfffd 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.repayment-hero div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.repayment-hero span,
.ability-card span,
.rent-calculator span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.repayment-hero strong {
  color: #0f172a;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 950;
}

.repayment-hero em,
.ability-card em {
  color: #64748b;
  font-size: 12px;
  line-height: 1.35;
  font-style: normal;
}

.repayment-hero b {
  padding: 8px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 17px;
  white-space: nowrap;
}

.repayment-hero b.ok {
  background: #e8f7ef;
  color: #0c6b4a;
}

.repayment-hero b.warn {
  background: #fff4df;
  color: #955300;
}

.repayment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ability-card {
  min-width: 0;
  min-height: 112px;
  border: 1px solid #d9ebdf;
  border-radius: 8px;
  padding: 12px;
  background: #fbfefc;
  display: grid;
  align-content: start;
  gap: 6px;
}

.ability-card strong {
  color: #132033;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.ability-card span,
.ability-card strong,
.ability-card em,
.repayment-hero span,
.repayment-hero strong,
.repayment-hero em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.ability-card.ok {
  border-color: #b8e7d1;
  background: #f1fbf5;
}

.ability-card.warn {
  border-color: #f1d8a8;
  background: #fffaf0;
}

.rent-calculator {
  border: 1px solid #d7eadf;
  border-radius: 8px;
  padding: 12px;
  background: #fbfefc;
  display: grid;
  gap: 10px;
}

.rent-calculator label {
  display: grid;
  gap: 6px;
}

.rent-calculator input {
  min-height: 42px;
  border-radius: 6px;
  border: 1px solid #d5e0ea;
  padding: 0 11px;
  background: #fbfdff;
}

.rent-result {
  border-radius: 8px;
  padding: 10px;
  background: #f6f9fc;
  color: #526171;
  font-size: 13px;
  line-height: 1.45;
}

.rent-result.ok {
  background: #e8f7ef;
  color: #0c6b4a;
}

.rent-result.warn {
  background: #fff4df;
  color: #955300;
}

.rent-result.danger {
  background: #ffeded;
  color: #b32828;
}

.bill-dashboard-section {
  display: grid;
  gap: 12px;
  border-color: #cfe0f4;
  background:
    linear-gradient(145deg, rgba(233,242,255,0.98), rgba(255,255,255,0.98) 56%),
    #fff;
}

.bill-dashboard-section h3::before {
  background: #176bff;
}

.bill-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bill-kpi {
  min-height: 84px;
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, #fff, #fbfdff);
  display: grid;
  align-content: space-between;
  gap: 5px;
  box-shadow: 0 6px 18px rgba(18, 32, 50, 0.045);
}

.bill-kpi span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.bill-kpi strong {
  min-width: 0;
  color: #122033;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.bill-kpi em {
  color: #8a98a9;
  font-size: 11px;
  font-style: normal;
}

.bill-chart-grid {
  display: grid;
  gap: 10px;
}

.bill-chart-card {
  border: 1px solid #d8e5f2;
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(180deg, #fff, #fbfdff);
  display: grid;
  gap: 12px;
  box-shadow: 0 6px 18px rgba(18, 32, 50, 0.04);
}

.bill-chart-card h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 950;
}

.bill-bars {
  display: grid;
  gap: 10px;
}

.bill-bars.compact {
  gap: 9px;
}

.bill-bar-row {
  display: grid;
  gap: 6px;
}

.bill-bar-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.bill-bar-head span {
  min-width: 0;
  color: #35445a;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bill-bar-head strong {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.bill-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.bill-bar-track i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: #176bff;
}

.bill-bar-row.income .bill-bar-track i {
  background: #12805c;
}

.bill-bar-row.wechat .bill-bar-track i {
  background: #15a36d;
}

.bill-bar-row.expense .bill-bar-track i {
  background: #d04747;
}

.bill-bar-row.other .bill-bar-track i {
  background: #b56a00;
}

.bill-bar-row.top .bill-bar-track i {
  background: #496b8f;
}

.bill-bar-row.salary .bill-bar-track i {
  background: #8b5cf6;
}

.bill-bar-row.bank .bill-bar-track i {
  background: #0f766e;
}

.bill-month-chart {
  height: 142px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  align-items: end;
  gap: 8px;
  padding-top: 8px;
}

.bill-month {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  justify-items: center;
}

.bill-month i {
  align-self: end;
  width: 100%;
  max-width: 28px;
  height: var(--h);
  min-height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: #176bff;
}

.bill-month span {
  max-width: 100%;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bill-flat-section {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.bill-flat-section > h3 {
  padding: 0 2px;
}

.bill-flat-panels {
  display: grid;
  gap: 10px;
}

.bill-flat-panels .bill-detail-group {
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(18, 32, 50, 0.04);
}

.bill-flat-panels .bill-detail-group > summary {
  min-height: 58px;
  background: #fff;
}

.bill-flat-panels .bill-filter-bar {
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #edf2f7;
}

.bill-flat-panels .bill-item-list {
  max-height: calc(var(--bill-visible-rows, 5) * 64px);
  padding: 2px 0 8px;
}

.bill-flat-panels .bill-item {
  margin: 6px 8px 0;
  box-shadow: none;
}

.bill-insight-section .readable-group,
.bill-flat-panels .bill-detail-group {
  background: #fff;
}

.empty-readable {
  border-style: dashed;
  box-shadow: none;
  text-align: center;
}


.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.mode-card {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 10px;
  text-align: left;
  display: grid;
  gap: 4px;
}

.mode-card strong {
  font-size: 15px;
}

.mode-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.mode-card.active {
  border-color: var(--accent);
  background: var(--soft-blue);
}

@media (max-width: 480px) {
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .sheet-panel {
    padding-left: 10px;
    padding-right: 10px;
  }

  .sheet-header {
    margin-left: -10px;
    margin-right: -10px;
  }

  .detail-section {
    padding: 12px;
  }

  .detail-grid,
  .compact-fields,
  .highlight-grid,
  .bill-filter-bar,
  .repayment-grid {
    grid-template-columns: 1fr;
  }

  .bill-kpi-grid,
  .bill-flat-panels .bill-filter-bar {
    grid-template-columns: 1fr;
  }

  .repayment-hero {
    grid-template-columns: 1fr;
  }

  .repayment-hero b {
    width: fit-content;
  }

  .highlight-card {
    min-height: 76px;
  }

  .top-bar h1 {
    font-size: 20px;
  }

  .summary-strip {
    gap: 8px;
  }

  .mode-card {
    min-height: 64px;
  }

  .sheet-header h2 {
    font-size: 19px;
  }
}

/* Workbench mobile refresh */
.workbench-view {
  background:
    radial-gradient(circle at 8% -8%, rgba(123, 211, 166, 0.38), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(130, 190, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #eef8f2 0%, #f6faf7 44%, #eef7f1 100%);
}

.top-bar {
  margin: 0;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  border-bottom: 1px solid rgba(180, 214, 194, 0.7);
  background:
    linear-gradient(135deg, rgba(240, 251, 245, 0.94), rgba(246, 251, 255, 0.9));
  box-shadow: 0 10px 26px rgba(30, 86, 62, 0.08);
}

.user-line {
  margin: 0 0 3px;
  color: #54806b;
  font-size: 12px;
  font-weight: 800;
}

.top-bar h1 {
  color: #11291d;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.top-bar .icon-button {
  width: 44px;
  min-height: 44px;
  border: 1px solid rgba(180, 214, 194, 0.72);
  border-radius: 8px;
  background: rgba(233, 247, 240, 0.9);
  color: #143a2a;
  box-shadow: 0 8px 18px rgba(30, 86, 62, 0.08);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(180, 214, 194, 0.72);
  border-radius: 8px;
  background: rgba(255,255,255,.72);
  color: #325b48;
  font-weight: 800;
}

.yicha-panel {
  background:
    radial-gradient(circle at 10% -8%, rgba(122, 211, 166, .32), transparent 32%),
    linear-gradient(180deg, #fbfefc 0%, #f2faf5 100%);
}

.yicha-form {
  padding: 16px;
  display: grid;
  gap: 13px;
}

.yicha-form label {
  display: grid;
  gap: 7px;
  color: #4d6f5e;
  font-size: 13px;
  font-weight: 800;
}

.yicha-status {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(180, 214, 194, 0.82);
  border-radius: 8px;
  background: rgba(237, 249, 242, .82);
  color: #244f3b;
  font-size: 13px;
  font-weight: 800;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
  align-items: center;
}

.captcha-button {
  height: 44px;
  padding: 0;
  border: 1px solid rgba(180, 214, 194, 0.88);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.captcha-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content {
  gap: 12px;
  padding: 12px 14px 22px;
}

.summary-strip {
  gap: 10px;
  grid-template-columns: 1fr 1fr 70px;
}

.summary-strip > div,
.summary-strip > button {
  min-height: 68px;
  border: 1px solid rgba(188, 218, 202, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(253, 255, 254, 0.96), rgba(238, 250, 243, 0.95));
  box-shadow: 0 10px 22px rgba(31, 89, 64, 0.07);
}

.summary-strip > div {
  padding: 14px 13px;
  align-content: center;
}

.summary-strip strong {
  color: #10291e;
  font-size: 26px;
  font-weight: 950;
}

.summary-strip span {
  color: #5d796a;
  font-weight: 750;
}

.summary-strip .ghost-button {
  color: #143a2a;
  font-weight: 900;
  background:
    linear-gradient(145deg, #edf9f2, #f8fffb);
}

.mode-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(188, 218, 202, 0.9);
  border-radius: 8px;
  background: rgba(250, 255, 252, 0.78);
  box-shadow: 0 10px 24px rgba(31, 89, 64, 0.06);
}

.mode-card {
  min-height: 82px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 13px 12px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.mode-card strong {
  color: #16291f;
  font-size: 16px;
  font-weight: 950;
}

.mode-card span {
  color: #607a6d;
  font-size: 12px;
}

.mode-card.active {
  border-color: #42b87b;
  background:
    linear-gradient(145deg, #e9f8ef 0%, #f7fffb 100%);
  box-shadow: 0 8px 18px rgba(23, 128, 92, 0.12);
}

.mode-card.active strong {
  color: #087047;
}

.filter-dropdown {
  border: 1px solid rgba(188, 218, 202, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(253, 255, 254, 0.98), rgba(240, 250, 245, 0.95));
  box-shadow: 0 12px 28px rgba(31, 89, 64, 0.07);
  overflow: hidden;
}

.filter-summary {
  min-height: 48px;
  padding: 10px 42px 10px 14px;
  display: grid;
  gap: 3px;
  align-content: center;
  position: relative;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.filter-summary::-webkit-details-marker {
  display: none;
}

.filter-summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #3d8d67;
  border-bottom: 2px solid #3d8d67;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.18s ease;
}

.filter-dropdown[open] .filter-summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.filter-summary span {
  color: #608071;
  font-size: 12px;
  font-weight: 800;
}

.filter-summary strong {
  color: #163b2a;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-dropdown[open] .filter-summary {
  border-bottom: 1px solid rgba(201, 226, 212, 0.9);
  background: rgba(235, 248, 241, 0.68);
}

.filter-form {
  padding: 12px 14px 14px;
}

.filter-grid {
  gap: 10px;
}

.filter-form input,
.filter-form select {
  min-height: 46px;
  border-color: #cfe5d8;
  border-radius: 8px;
  background: #fbfefc;
  color: #172b21;
  font-weight: 650;
}

.filter-form input::placeholder {
  color: #8ca096;
}

.filter-form input:focus,
.filter-form select:focus {
  border-color: #49b982;
  box-shadow: 0 0 0 3px rgba(35, 170, 111, 0.13);
}

.filter-actions {
  gap: 10px;
}

.filter-actions .primary-button,
.card-actions .primary-button {
  background:
    linear-gradient(135deg, #19a66f, #0f7f5a);
  box-shadow: 0 10px 18px rgba(18, 128, 92, 0.22);
}

.filter-actions .ghost-button,
.card-actions .ghost-button,
.pager .ghost-button {
  border: 1px solid #d6e8de;
  background: #eef7f2;
  color: #18382a;
}

.status-message {
  min-height: 12px;
  color: #628072;
}

.report-list {
  gap: 12px;
}

.report-card {
  position: relative;
  overflow: hidden;
  gap: 13px;
  border: 1px solid rgba(188, 218, 202, 0.92);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(254, 255, 254, 0.98), rgba(246, 253, 249, 0.97));
  box-shadow: 0 14px 30px rgba(29, 83, 61, 0.09);
}

.report-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #29aa73, #9adbb8);
}

.card-head {
  align-items: center;
}

.person-name {
  color: #10291e;
  font-size: 20px;
  font-weight: 950;
}

.report-no {
  margin-top: 3px;
  color: #678071;
  font-size: 11px;
  line-height: 1.35;
}

.tag {
  border: 1px solid rgba(188, 218, 202, 0.72);
  padding: 6px 9px;
  background: #eef7f2;
  color: #4f6b5c;
  font-weight: 900;
}

.tag.ok {
  border-color: #bfe8d1;
  background: #e7f8ee;
  color: #0e7a51;
}

.tag.warn {
  border-color: #ffe1a6;
  background: #fff5df;
  color: #a26400;
}

.tag.danger {
  border-color: #ffc7c7;
  background: #fff0f0;
  color: #b62b2b;
}

.report-card .meta-grid {
  gap: 10px 14px;
  padding: 2px 0 4px;
}

.report-card .meta-item {
  min-height: 42px;
  padding: 0;
  background: transparent;
}

.report-card .meta-item span {
  color: #789081;
  font-weight: 800;
  font-size: 11px;
}

.report-card .meta-item strong {
  color: #14291f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.28;
}

.report-card .meta-item.is-empty {
  display: none;
}

.card-actions {
  gap: 10px;
}

.card-actions .primary-button,
.card-actions .ghost-button {
  min-height: 48px;
  border-radius: 8px;
  font-weight: 900;
}

.card-actions .ghost-button {
  background:
    linear-gradient(145deg, #f5fbf8, #eef8f2);
}

.empty-state {
  border-color: #afd8c0;
  background:
    linear-gradient(145deg, #f7fffa, #eef8f2);
  color: #5f7e6f;
}

@media (max-width: 640px) {
  .content {
    padding-left: 14px;
    padding-right: 14px;
  }

  .summary-strip {
    grid-template-columns: 1fr 1fr 66px;
  }

  .summary-strip .ghost-button {
    grid-column: auto;
  }

  .mode-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .mode-card {
    min-height: 72px;
    padding: 10px 9px;
  }

  .mode-card span {
    font-size: 11px;
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .report-card {
    padding: 15px 14px 14px 16px;
  }
}

@media (max-width: 380px) {
  .summary-strip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 58px;
    gap: 7px;
  }

  .summary-strip .ghost-button {
    grid-column: auto;
    padding-left: 6px;
    padding-right: 6px;
    min-width: 0;
  }

  .filter-grid,
  .meta-grid {
    grid-template-columns: 1fr;
  }

  .mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 5px;
  }

  .mode-card {
    min-height: 68px;
    padding: 9px 7px;
  }

  .mode-card strong {
    font-size: 15px;
    line-height: 1.15;
  }

  .mode-card span {
    font-size: 10.5px;
    line-height: 1.25;
  }
}

/* Priority report readability */
.insight-detail {
  background:
    linear-gradient(150deg, rgba(238, 252, 244, 0.98), rgba(252, 255, 253, 0.98));
}

.insight-detail .readable-groups {
  gap: 14px;
}

.priority-group {
  padding: 13px;
  border-color: #bfe5d1;
  background:
    linear-gradient(145deg, #f8fffb, #effaf4);
}

.priority-group h4 {
  font-size: 17px;
  color: #123222;
}

.priority-fields {
  grid-template-columns: 1fr;
  gap: 12px;
}

.priority-fields .priority-item {
  position: relative;
  min-height: 118px;
  padding: 15px;
  border: 1px solid #cfe9d9;
  border-radius: 8px;
  background:
    linear-gradient(145deg, #ffffff, #f4fbf7);
  box-shadow: 0 8px 18px rgba(31, 89, 64, 0.06);
}

.priority-fields .priority-item:nth-child(2n) {
  background:
    linear-gradient(145deg, #f4fbff, #f8fffb);
}

.priority-fields .priority-item.warn {
  border-color: #f1d28d;
  background:
    linear-gradient(145deg, #fff9eb, #fffef9);
}

.priority-fields .priority-item.danger {
  border-color: #f1b3b3;
  background:
    linear-gradient(145deg, #fff1f1, #fffafa);
}

.priority-fields .priority-item span {
  color: #4c6859;
  font-size: 13px;
  font-weight: 950;
}

.priority-fields .priority-item strong,
.priority-value {
  color: #10291e;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 950;
}

.priority-lines {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
}

.priority-lines li {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(197, 223, 209, 0.8);
  display: block;
  font-size: 16px;
  line-height: 1.45;
  word-break: break-word;
}

.priority-fields .priority-item {
  align-items: stretch;
}

.priority-fields .priority-item > span {
  display: block;
  margin-bottom: 8px;
}

.rent-lines {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.rent-lines li {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(187, 219, 202, 0.7);
  line-height: 1.45;
}

.priority-fields .priority-item.danger strong,
.priority-fields .priority-item.danger .priority-value {
  color: #9e2424;
}

.priority-fields .priority-item.warn strong,
.priority-fields .priority-item.warn .priority-value {
  color: #7a4a00;
}

.jump-button {
  width: fit-content;
  min-height: 34px;
  margin-top: 6px;
  border: 1px solid #9bd9b8;
  border-radius: 8px;
  padding: 0 12px;
  background: #eaf8f0;
  color: #087047;
  font-size: 13px;
  font-weight: 900;
}

.full-report-section .readable-groups {
  gap: 10px;
}

.full-report-section .collapsible-group {
  padding: 0;
  overflow: hidden;
  border-color: #cae5d5;
  background: #fbfefc;
}

.full-report-section .collapsible-group > summary {
  min-height: 64px;
  padding: 0 14px;
  background:
    linear-gradient(145deg, #fbfefc, #f3fbf6);
}

.full-report-section .collapsible-group > summary span {
  font-size: 17px;
  font-weight: 950;
}

.full-report-section .collapsible-group > summary strong {
  background: #eef4f8;
  color: #526577;
}

.full-report-section .collapsible-group > summary strong:not(:empty) {
  font-weight: 950;
}

.full-report-section .collapsible-group:has(summary strong:not(:empty)) {
  scroll-margin-top: 86px;
}

.jump-focus {
  outline: 3px solid rgba(25, 166, 111, 0.45);
  box-shadow: 0 0 0 6px rgba(25, 166, 111, 0.12), 0 14px 30px rgba(31, 89, 64, 0.12);
}

.primary-button:disabled,
.ghost-button:disabled,
.card-actions button[disabled] {
  border: 1px solid #d6e0dc;
  background: #edf3f0;
  color: #8ba096;
  box-shadow: none;
  cursor: not-allowed;
}

.bill-filter-bar {
  grid-template-columns: 1fr 1fr;
}

.smooth-risk-section {
  background:
    linear-gradient(150deg, rgba(241, 252, 246, 0.96), rgba(249, 253, 251, 0.96));
}

.smooth-risk-section .readable-groups {
  display: none;
}

.smooth-risk-list {
  display: grid;
  gap: 8px;
}

.smooth-risk-item {
  position: relative;
  padding: 11px 10px 11px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
  border: 0;
  box-shadow: inset 3px 0 0 rgba(51, 160, 112, 0.42);
}

.smooth-risk-item.warn {
  box-shadow: inset 3px 0 0 rgba(221, 154, 42, 0.55);
}

.smooth-risk-item.danger {
  box-shadow: inset 3px 0 0 rgba(210, 76, 76, 0.58);
}

.smooth-risk-item span {
  display: block;
  color: #6b8677;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.smooth-risk-item strong {
  display: block;
  margin-top: 3px;
  color: #122b21;
  font-size: 15px;
  line-height: 1.35;
}

.smooth-risk-item p {
  margin: 5px 0 0;
  color: #415c50;
  font-size: 13px;
  line-height: 1.5;
}

.bill-detail-body .bill-insight-section .priority-group,
.bill-detail-body .bill-insight-section .summary-fold-group,
.bill-detail-body .bill-insight-section .priority-item {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.rent-capacity {
  background:
    linear-gradient(145deg, rgba(238, 250, 244, 0.98), rgba(251, 255, 253, 0.98));
  border-color: #bfe3cf;
  box-shadow: 0 10px 22px rgba(35, 111, 75, 0.08);
}

.rent-capacity-head {
  display: grid;
  gap: 6px;
}

.rent-capacity-head strong {
  color: #0f5136;
  font-size: 26px;
  line-height: 1.1;
}

.rent-capacity.danger .rent-capacity-head strong {
  color: #a83232;
}

.rent-lines {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
}

@media (max-width: 640px) {
  .priority-fields .priority-item {
    min-height: 116px;
  }

  .priority-fields .priority-item strong {
    font-size: 17px;
  }
}

/* Mobile audit reader upgrade */
.audit-reader {
  gap: 14px;
}

.detail-jump-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 8px 2px 6px;
  background:
    linear-gradient(180deg, rgba(242, 251, 246, 0.98), rgba(242, 251, 246, 0.86));
  backdrop-filter: blur(10px);
}

.detail-jump-nav button {
  border: 1px solid #cce6d7;
  border-radius: 8px;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.78);
  color: #18392b;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(39, 112, 78, 0.06);
}

.audit-reader .detail-section {
  scroll-margin-top: 62px;
}

.evidence-section {
  background:
    linear-gradient(180deg, rgba(251, 255, 253, 0.96), rgba(244, 251, 247, 0.96));
}

.evidence-section > h3 {
  font-size: 16px;
}

.evidence-group {
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 0 0 1px rgba(199, 226, 211, 0.86);
}

.evidence-group > summary {
  min-height: 58px;
  padding: 0 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 250, 245, 0.92));
}

.evidence-group > summary span {
  font-size: 16px;
  font-weight: 950;
  color: #123629;
}

.evidence-group > summary strong {
  border-radius: 999px;
  padding: 4px 8px;
  background: #e8f5ee;
  color: #24704f;
  font-weight: 950;
}

.evidence-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #dcece3;
  background: rgba(255, 255, 255, 0.72);
}

.collapsible-scroll > .evidence-list,
.collapsible-scroll > .evidence-nested {
  margin: 10px;
}

.evidence-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-bottom: 1px solid #edf3ef;
}

.evidence-row:last-child {
  border-bottom: 0;
}

.evidence-row:nth-child(2n) {
  background: rgba(245, 251, 248, 0.72);
}

.evidence-row span {
  color: #5f766b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.evidence-row strong {
  color: #14271f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.evidence-row.warn {
  background: #fff8ea;
}

.evidence-row.warn strong {
  color: #7a4a00;
}

.evidence-row.danger {
  background: #fff2f2;
}

.evidence-row.danger strong {
  color: #a32626;
}

.evidence-nested {
  gap: 8px;
}

.audit-bill-group {
  border: 0;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(202, 226, 214, 0.88);
}

.audit-bill-group > summary {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(240, 249, 245, 0.94));
}

.audit-bill-list {
  gap: 7px;
  padding: 8px;
  background: #f6fbf8;
}

.audit-bill-item {
  border: 1px solid #dcebe3;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.audit-bill-item > summary {
  min-height: 68px;
  padding: 12px;
  border-left: 4px solid #a8cfc0;
}

.audit-bill-item.income > summary {
  border-left-color: #1f9d67;
}

.audit-bill-item.expense > summary {
  border-left-color: #d28a27;
}

.bill-row-main,
.bill-row-side {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.bill-row-main strong {
  color: #132b22;
  font-size: 15px;
  line-height: 1.35;
}

.bill-row-main em {
  color: #6f8278;
  font-size: 12px;
  line-height: 1.35;
}

.bill-row-side {
  justify-items: end;
}

.bill-row-side b {
  color: #10291f;
  font-size: 15px;
  font-weight: 950;
  white-space: nowrap;
}

.bill-row-side i {
  border-radius: 999px;
  padding: 3px 7px;
  background: #eef7f2;
  color: #476756;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.audit-bill-item.income .bill-row-side b,
.audit-bill-item.income .bill-row-side i {
  color: #087046;
}

.audit-bill-item.expense .bill-row-side b,
.audit-bill-item.expense .bill-row-side i {
  color: #8a5500;
}

.bill-evidence-list {
  margin: 0;
  border-width: 1px 0 0;
  border-radius: 0;
}

.bill-evidence-list .evidence-row {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  padding: 9px 11px;
}

.bill-filter-count {
  color: #5f756b;
  font-weight: 800;
}

@media (max-width: 420px) {
  .detail-jump-nav {
    gap: 6px;
  }

  .detail-jump-nav button {
    min-height: 36px;
    padding: 0 6px;
    font-size: 12px;
  }

  .evidence-row,
  .bill-evidence-list .evidence-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .audit-bill-item > summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* Softer reader surfaces */
.audit-reader .detail-section {
  border-color: rgba(196, 225, 210, 0.72);
  box-shadow: 0 8px 22px rgba(35, 92, 67, 0.045);
}

.audit-reader .readable-group,
.audit-reader .summary-fold-group,
.audit-reader .collapsible-group,
.audit-reader .bill-detail-group,
.audit-reader .evidence-group,
.audit-reader .audit-bill-group {
  border: 0;
  box-shadow: none;
  background: transparent;
}

.audit-reader .collapsible-scroll {
  margin: 4px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  max-height: 62vh;
}

.audit-reader .nested-groups,
.audit-reader .evidence-nested {
  padding-left: 0;
  border-left: 0;
  gap: 8px;
}

.audit-reader .evidence-group > summary,
.audit-reader .audit-bill-group > summary {
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(252, 255, 253, 0.9), rgba(237, 249, 243, 0.86));
  box-shadow: inset 0 0 0 1px rgba(204, 229, 216, 0.74);
}

.audit-reader .evidence-list {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.audit-reader .evidence-row {
  margin: 0 2px;
  border-bottom: 1px solid rgba(219, 236, 226, 0.82);
  background: transparent;
}

.audit-reader .evidence-row:nth-child(2n) {
  background: rgba(246, 252, 249, 0.5);
}

.audit-reader .priority-group {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.audit-reader .priority-fields {
  gap: 10px;
}

.audit-reader .priority-fields .priority-item {
  border-width: 1px;
  box-shadow: 0 7px 18px rgba(42, 95, 69, 0.045);
}

.platform-upload-section {
  background:
    linear-gradient(145deg, rgba(240, 252, 246, 0.98), rgba(252, 255, 253, 0.98));
}

.platform-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.platform-upload-item {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 0 0 1px rgba(204, 228, 216, 0.8);
}

.platform-upload-item span {
  color: #5c7669;
  font-size: 12px;
  font-weight: 900;
}

.platform-upload-item strong {
  color: #17372a;
  font-size: 16px;
  line-height: 1.35;
}

.platform-upload-item em {
  color: #6b8176;
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.platform-upload-item.warn {
  background:
    linear-gradient(145deg, #fff8ea, #fffdf8);
  box-shadow: inset 0 0 0 1px rgba(239, 202, 132, 0.75);
}

.platform-upload-item.warn strong {
  color: #805000;
}

.platform-upload-item.ok strong {
  color: #087046;
}

.audit-reader .bill-flat-panels .bill-detail-group,
.audit-reader .bill-insight-section .readable-group {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.audit-reader .audit-bill-list {
  padding: 8px 2px 2px;
  background: transparent;
}

.audit-reader .audit-bill-item {
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(215, 233, 224, 0.88);
  background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 420px) {
  .platform-upload-grid {
    grid-template-columns: 1fr;
  }
}

/* Final audit polish */
.workbench-view {
  background:
    linear-gradient(180deg, #edf9f2 0%, #f6fbf8 42%, #f4f7fb 100%);
}

.top-bar {
  background:
    linear-gradient(135deg, rgba(18, 112, 76, 0.96), rgba(44, 143, 106, 0.94));
  color: #fff;
  border-bottom: 0;
  box-shadow: 0 10px 28px rgba(25, 98, 69, 0.22);
}

.top-bar .user-line {
  color: rgba(255, 255, 255, 0.78);
}

.summary-strip > div,
.summary-strip > button,
.filter-form,
.report-card {
  border-color: rgba(180, 220, 201, 0.84);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 250, 246, 0.92));
}

.mode-grid {
  position: sticky;
  top: 75px;
  z-index: 8;
  padding: 6px;
  border-radius: 8px;
  background: rgba(232, 247, 239, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 20px rgba(33, 103, 72, 0.12);
}

.mode-card {
  border-color: rgba(177, 214, 196, 0.92);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(238, 249, 243, 0.9));
}

.mode-card.active {
  color: #fff;
  border-color: transparent;
  background:
    linear-gradient(145deg, #159164, #3db17d);
  box-shadow: 0 10px 22px rgba(22, 145, 100, 0.22);
}

.mode-card.active span {
  color: rgba(255, 255, 255, 0.82);
}

.report-card {
  box-shadow: 0 12px 30px rgba(25, 88, 63, 0.09);
}

.sheet-panel {
  padding-top: 0;
  background:
    linear-gradient(180deg, #ecf8f1 0%, #f7fbf8 42%, #f4f7fb 100%);
}

.sheet-header {
  top: 0 !important;
  z-index: 40;
  min-height: 76px;
  margin-top: 0 !important;
  padding-top: calc(14px + env(safe-area-inset-top));
  background:
    linear-gradient(135deg, rgba(237, 250, 243, 0.98), rgba(255, 255, 255, 0.97));
  border-bottom: 1px solid rgba(192, 222, 207, 0.92);
  box-shadow: 0 10px 24px rgba(34, 99, 72, 0.13);
}

.detail-jump-nav {
  top: 76px;
  z-index: 35;
  margin: -4px -2px 2px;
  padding: 8px 2px 8px;
  border-bottom: 1px solid rgba(202, 226, 214, 0.7);
  background:
    linear-gradient(180deg, rgba(236, 248, 242, 0.98), rgba(246, 252, 249, 0.94));
}

.detail-jump-nav button {
  min-height: 42px;
  border: 0;
  background:
    linear-gradient(145deg, #ffffff, #e9f7ef);
  color: #123b2a;
  box-shadow: inset 0 0 0 1px rgba(183, 218, 200, 0.9), 0 6px 14px rgba(40, 108, 78, 0.08);
}

.audit-reader .detail-section {
  scroll-margin-top: 132px;
}

.priority-fields .priority-item {
  min-height: 112px;
  padding: 15px 14px;
  border-radius: 8px;
}

.priority-fields .priority-item > span {
  font-size: 14px;
}

.priority-value {
  font-size: 16px;
  line-height: 1.55;
}

.grouped-risk-list {
  gap: 10px;
}

.grouped-risk-item {
  padding: 13px 12px 13px 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(244, 251, 247, 0.72));
}

.grouped-risk-item dl {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
}

.grouped-risk-item dl div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  padding-top: 7px;
  border-top: 1px solid rgba(209, 229, 219, 0.86);
}

.grouped-risk-item dt {
  color: #6a8175;
  font-size: 12px;
  font-weight: 850;
}

.grouped-risk-item dd {
  margin: 0;
  color: #203d31;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.visual-bill-section {
  background:
    linear-gradient(150deg, rgba(235, 249, 242, 0.98), rgba(255, 253, 246, 0.94));
}

.bill-kpi {
  border: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(238, 249, 243, 0.9));
  box-shadow: inset 0 0 0 1px rgba(196, 225, 210, 0.86), 0 8px 18px rgba(35, 99, 70, 0.07);
}

.bill-kpi:nth-child(2) strong {
  color: #0d8053;
}

.bill-kpi:nth-child(3) strong {
  color: #a45d05;
}

.rich-chart-grid {
  gap: 12px;
}

.rich-chart-grid .bill-chart-card {
  border: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(247, 252, 249, 0.86));
  box-shadow: inset 0 0 0 1px rgba(200, 226, 214, 0.86), 0 10px 24px rgba(36, 101, 72, 0.075);
}

.donut-layout {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.bill-donut {
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  background:
    radial-gradient(circle, #fff 0 52%, transparent 53%),
    conic-gradient(var(--segments));
  box-shadow: inset 0 0 0 1px rgba(210, 228, 219, 0.92), 0 10px 22px rgba(38, 103, 74, 0.1);
}

.bill-donut strong {
  max-width: 86px;
  color: #17372a;
  font-size: 15px;
  line-height: 1.1;
  text-align: center;
  overflow-wrap: anywhere;
}

.bill-donut span {
  margin-top: 4px;
  color: #71887c;
  font-size: 11px;
  font-weight: 850;
}

.chart-legend {
  display: grid;
  gap: 9px;
}

.chart-legend div {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.chart-legend span {
  color: #5e756a;
  font-size: 12px;
  font-weight: 850;
}

.chart-legend strong {
  color: #17372a;
  font-size: 13px;
}

.vertical-meter-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-height: 160px;
  align-items: end;
}

.vertical-meter {
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
}

.vertical-meter > div {
  width: 100%;
  height: 104px;
  display: grid;
  align-items: end;
  padding: 7px;
  border-radius: 8px;
  background: rgba(235, 247, 241, 0.82);
}

.vertical-meter i {
  width: 100%;
  height: var(--h);
  min-height: 9px;
  border-radius: 7px;
  background:
    linear-gradient(180deg, #55c590, #159164);
}

.vertical-meter.wechat i {
  background:
    linear-gradient(180deg, #5cc8a5, #1a9e79);
}

.vertical-meter.salary i {
  background:
    linear-gradient(180deg, #f0bd68, #df8a27);
}

.vertical-meter strong {
  color: #14372a;
  font-size: 13px;
}

.vertical-meter span {
  color: #60796e;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
}

.bubble-list {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}

.bubble-item {
  flex: 0 0 112px;
  min-height: 128px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  text-align: center;
  scroll-snap-align: start;
}

.bubble-item b {
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(145deg, #5abf8b, #16865b);
  box-shadow: 0 10px 20px rgba(27, 128, 86, 0.18);
}

.bubble-item strong {
  width: 100%;
  color: #17372a;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.bubble-item span {
  color: #6c8177;
  font-size: 11px;
  font-weight: 850;
}

.monthly-line-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
}

.monthly-line {
  width: 100%;
  height: 92px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(233, 246, 240, 0.84), rgba(255, 255, 255, 0.38));
}

.monthly-line polyline {
  fill: none;
  stroke: #1b9465;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.monthly-dot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
  gap: 7px;
}

.monthly-dot-row span {
  min-width: 0;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.monthly-dot-row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1b9465;
}

.monthly-dot-row b,
.monthly-dot-row em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.monthly-dot-row b {
  color: #516b5f;
}

.monthly-dot-row em {
  color: #8b9a92;
  font-style: normal;
}

@media (max-width: 420px) {
  .mode-grid {
    top: 68px;
  }

  .sheet-header {
    min-height: 70px;
  }

  .detail-jump-nav {
    top: 70px;
  }

  .audit-reader .detail-section {
    scroll-margin-top: 126px;
  }

  .donut-layout {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .bill-donut {
    width: 112px;
  }

  .vertical-meter-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .vertical-meter strong {
    font-size: 12px;
  }

  .grouped-risk-item dl div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Mobile-first report structure */
.big-detail-body {
  gap: 14px;
}

.big-detail-body .hero-detail,
.big-detail-body .status-detail {
  border: 0;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 0 0 1px rgba(203, 226, 215, 0.72);
}

.big-detail-body .hero-detail .detail-grid,
.big-detail-body .status-detail .detail-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.priority-review-group {
  padding: 0;
  background: transparent;
}

.priority-review-group > h4 {
  margin: 0 2px 8px;
  color: #12382a;
  font-size: 18px;
}

.priority-review-list {
  display: grid;
  gap: 12px;
}

.priority-review-card {
  position: relative;
  display: grid;
  gap: 10px;
  min-height: 118px;
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(240, 249, 245, 0.9));
  box-shadow: inset 0 0 0 1px rgba(197, 224, 211, 0.9), 0 10px 22px rgba(36, 100, 72, 0.08);
}

.priority-review-card::before {
  content: "";
  position: absolute;
  inset: 12px auto 12px 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: #42a978;
}

.priority-review-card.warn::before {
  background: #d99425;
}

.priority-review-card.danger::before {
  background: #d64b4b;
}

.priority-review-card.ok::before {
  background: #24a36c;
}

.priority-review-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.priority-review-card header span {
  color: #102f24;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.25;
}

.priority-review-card header em {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(235, 246, 241, 0.95);
  color: #416858;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.priority-review-card.danger header em {
  background: #fff0ef;
  color: #ad2d2d;
}

.priority-review-card.warn header em {
  background: #fff7e8;
  color: #8b5700;
}

.priority-review-card .priority-value {
  color: #284339;
  font-size: 15px;
  line-height: 1.65;
}

.priority-review-card .priority-lines {
  margin-top: 0;
}

.priority-review-card .jump-button {
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #173b2d;
  color: #fff;
}

.evidence-section {
  border: 0;
  background:
    linear-gradient(180deg, rgba(251, 255, 253, 0.72), rgba(240, 249, 245, 0.72));
}

.evidence-section > h3 {
  margin-bottom: 2px;
  color: #12382a;
}

.evidence-group > summary {
  min-height: 52px;
  border-radius: 8px;
}

.readable-evidence-row {
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 0;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(212, 231, 222, 0.9);
}

.readable-evidence-row span {
  color: #658075;
  font-size: 12px;
  font-weight: 900;
}

.readable-evidence-row strong {
  color: #17372a;
  font-size: 16px;
  line-height: 1.48;
}

.readable-evidence-row em {
  color: #8a9a92;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.readable-evidence-row.warn {
  padding-left: 10px;
  background:
    linear-gradient(90deg, rgba(255, 246, 226, 0.92), rgba(255, 255, 255, 0));
}

.readable-evidence-row.danger {
  padding-left: 10px;
  background:
    linear-gradient(90deg, rgba(255, 235, 235, 0.95), rgba(255, 255, 255, 0));
}

@media (max-width: 420px) {
  .sheet-panel {
    padding-left: 10px;
    padding-right: 10px;
  }

  .detail-section {
    padding: 12px;
  }

  .big-detail-body .hero-detail .detail-grid,
  .big-detail-body .status-detail .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .priority-review-card {
    min-height: 108px;
    padding: 13px 12px 13px 14px;
  }

  .priority-review-card header span {
    font-size: 16px;
  }

  .priority-review-card header {
    grid-template-columns: 1fr;
  }

  .priority-review-card header em {
    justify-self: start;
  }

  .readable-evidence-row strong {
    font-size: 15px;
  }
}

/* Mobile audit reading layout, final overrides */
.priority-review-group {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.priority-review-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(226, 246, 236, 0.96), rgba(248, 253, 250, 0.96));
  box-shadow: inset 0 0 0 1px rgba(187, 222, 205, 0.84), 0 10px 24px rgba(33, 107, 76, 0.08);
}

.priority-review-title h4 {
  margin: 0;
  color: #12392b;
  font-size: 20px;
  line-height: 1.2;
}

.priority-review-title p {
  margin: 6px 0 0;
  color: #527264;
  font-size: 12px;
  line-height: 1.5;
}

.priority-review-title > strong {
  min-width: 48px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ffffff;
  color: #1b7f58;
  font-size: 13px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(187, 222, 205, 0.94);
}

.priority-bucket {
  display: grid;
  gap: 10px;
  padding: 12px 0 2px;
  border-top: 1px solid rgba(194, 219, 207, 0.86);
}

.priority-bucket:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.priority-bucket-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 0 2px;
}

.priority-bucket-head span {
  display: block;
  color: #15372b;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.priority-bucket-head em {
  display: block;
  margin-top: 4px;
  color: #698478;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.priority-bucket-head strong {
  min-width: 42px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf8f2;
  color: #247a58;
  font-size: 12px;
  text-align: center;
}

.priority-bucket.danger .priority-bucket-head strong {
  background: #fff0ed;
  color: #b23932;
}

.priority-bucket.warn .priority-bucket-head strong {
  background: #fff6df;
  color: #966300;
}

.priority-review-list {
  display: grid;
  gap: 9px;
}

.priority-review-card {
  min-height: auto;
  padding: 13px 13px 12px 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(205, 226, 216, 0.82);
}

.priority-review-card::before {
  inset: 11px auto 11px 0;
  width: 4px;
}

.priority-review-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.priority-review-card header span {
  color: #12352a;
  font-size: 17px;
  line-height: 1.25;
}

.priority-review-card header em {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff8f3;
  color: #3b7059;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.priority-review-card.danger {
  background: linear-gradient(135deg, rgba(255, 247, 245, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(245, 204, 198, 0.9);
}

.priority-review-card.warn {
  background: linear-gradient(135deg, rgba(255, 251, 239, 0.98), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(240, 220, 176, 0.9);
}

.priority-review-card.ok {
  background: linear-gradient(135deg, rgba(241, 251, 246, 0.98), rgba(255, 255, 255, 0.9));
}

.priority-review-card.danger header em {
  background: #ffecea;
  color: #af2f2a;
}

.priority-review-card.warn header em {
  background: #fff3d4;
  color: #8b5f00;
}

.priority-review-card .priority-value {
  color: #2c493d;
  font-size: 15px;
  line-height: 1.68;
}

.priority-lines {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.priority-lines li {
  position: relative;
  padding-left: 12px;
}

.priority-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #67b98d;
}

.priority-review-card .jump-button {
  justify-self: start;
  min-height: 34px;
  margin-top: 1px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #174232;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.readable-evidence-row {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 12px 2px;
  border: 0;
  border-bottom: 1px solid rgba(212, 231, 222, 0.9);
  background: transparent;
}

.readable-evidence-row span {
  color: #617d72;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.readable-evidence-row strong {
  color: #17372a;
  font-size: 16px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.readable-evidence-row em {
  color: #879990;
  font-size: 11px;
  font-style: normal;
  line-height: 1.42;
}

.readable-evidence-row.warn,
.readable-evidence-row.danger {
  padding-left: 11px;
  border-radius: 8px;
  border-bottom: 0;
}

.readable-evidence-row.warn {
  background: linear-gradient(90deg, rgba(255, 247, 225, 0.9), rgba(255, 255, 255, 0.28));
}

.readable-evidence-row.danger {
  background: linear-gradient(90deg, rgba(255, 236, 233, 0.94), rgba(255, 255, 255, 0.28));
}

.big-detail-body .insight-detail {
  background: linear-gradient(180deg, rgba(250, 255, 252, 0.82), rgba(237, 249, 243, 0.78));
}

@media (max-width: 420px) {
  .priority-review-title {
    grid-template-columns: 1fr;
  }

  .priority-review-title > strong {
    justify-self: start;
  }

  .priority-review-card header {
    grid-template-columns: 1fr;
  }

  .priority-review-card header em {
    justify-self: start;
  }

  .priority-bucket-head {
    grid-template-columns: 1fr;
  }

  .priority-bucket-head strong {
    justify-self: start;
  }
}

/* Softer audit priority surface */
.big-detail-body.audit-reader {
  background:
    linear-gradient(180deg, rgba(240, 250, 245, 0.72), rgba(250, 253, 251, 0.98));
}

.big-detail-body .insight-detail {
  padding: 12px 14px 16px;
  border: 0;
  background:
    linear-gradient(180deg, rgba(250, 255, 252, 0.88), rgba(239, 250, 244, 0.76));
  box-shadow: inset 0 0 0 1px rgba(210, 232, 222, 0.7);
}

.priority-review-title {
  padding: 13px 14px;
  background:
    linear-gradient(135deg, rgba(232, 248, 240, 0.98), rgba(250, 255, 252, 0.98));
  box-shadow: inset 0 0 0 1px rgba(197, 225, 211, 0.7);
}

.priority-review-title h4 {
  font-size: 19px;
}

.priority-bucket {
  gap: 8px;
  padding: 15px 0 0;
  border-top: 0;
}

.priority-bucket + .priority-bucket {
  margin-top: 3px;
}

.priority-bucket-head {
  position: relative;
  padding: 0 4px 0 13px;
}

.priority-bucket-head::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  background: #8fcfb1;
}

.priority-bucket.critical .priority-bucket-head::before {
  background: #d96565;
}

.priority-bucket.danger .priority-bucket-head::before {
  background: #e19a6d;
}

.priority-bucket.warn .priority-bucket-head::before {
  background: #dfba5e;
}

.priority-bucket-head span {
  font-size: 18px;
}

.priority-bucket-head em {
  color: #789187;
}

.priority-bucket-head strong {
  background: rgba(238, 248, 242, 0.92);
  color: #2d7c5e;
  box-shadow: inset 0 0 0 1px rgba(205, 229, 217, 0.74);
}

.priority-bucket.critical .priority-bucket-head strong {
  background: rgba(255, 241, 239, 0.94);
  color: #b84742;
  box-shadow: inset 0 0 0 1px rgba(244, 205, 200, 0.74);
}

.priority-bucket.danger .priority-bucket-head strong {
  background: rgba(255, 247, 241, 0.94);
  color: #b26336;
  box-shadow: inset 0 0 0 1px rgba(242, 216, 196, 0.72);
}

.priority-bucket.warn .priority-bucket-head strong {
  background: rgba(255, 250, 235, 0.95);
  color: #9b741b;
  box-shadow: inset 0 0 0 1px rgba(238, 223, 178, 0.72);
}

.priority-review-card {
  padding: 12px 12px 12px 13px;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(249, 253, 251, 0.9));
  box-shadow: inset 0 0 0 1px rgba(211, 231, 222, 0.72), 0 6px 16px rgba(39, 94, 70, 0.045);
}

.priority-review-card::before {
  display: none;
}

.priority-review-card.danger,
.priority-review-card.warn,
.priority-review-card.ok {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(251, 253, 251, 0.9));
}

.priority-bucket.critical .priority-review-card {
  box-shadow: inset 0 0 0 1px rgba(239, 197, 194, 0.78), 0 6px 16px rgba(130, 56, 52, 0.04);
}

.priority-bucket.danger .priority-review-card {
  box-shadow: inset 0 0 0 1px rgba(238, 216, 199, 0.78), 0 6px 16px rgba(129, 83, 49, 0.04);
}

.priority-bucket.warn .priority-review-card {
  box-shadow: inset 0 0 0 1px rgba(235, 222, 181, 0.78), 0 6px 16px rgba(128, 100, 34, 0.04);
}

.priority-review-card header span {
  font-size: 16px;
  color: #15372b;
}

.priority-review-card header em {
  background: rgba(239, 248, 243, 0.94);
  color: #477360;
}

.priority-review-card.danger header em {
  background: rgba(255, 240, 238, 0.9);
  color: #b04b45;
}

.priority-review-card.warn header em {
  background: rgba(255, 248, 228, 0.92);
  color: #906d18;
}

.priority-review-card .priority-value {
  margin-top: 2px;
}

.priority-lines {
  gap: 6px;
}

.priority-lines li {
  padding: 8px 10px 8px 13px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 0 0 1px rgba(205, 228, 217, 0.7);
}

.priority-lines li::before {
  left: 5px;
  top: 16px;
  width: 4px;
  height: 4px;
  background: #7cc8a0;
}

.priority-review-card .jump-button {
  min-height: 32px;
  background: #205a45;
  box-shadow: 0 6px 14px rgba(28, 91, 67, 0.12);
}

.priority-bucket.critical .jump-button {
  background: #8f4743;
  box-shadow: 0 6px 14px rgba(143, 71, 67, 0.12);
}

.priority-bucket.danger .jump-button {
  background: #8d5e3e;
  box-shadow: 0 6px 14px rgba(141, 94, 62, 0.12);
}

.priority-bucket.warn .jump-button {
  background: #8a711f;
  box-shadow: 0 6px 14px rgba(138, 113, 31, 0.1);
}

.detail-jump-nav button {
  background:
    linear-gradient(180deg, rgba(252, 255, 253, 0.96), rgba(238, 249, 243, 0.94));
  border-color: rgba(173, 217, 197, 0.74);
  color: #14382b;
  box-shadow: 0 6px 14px rgba(30, 99, 72, 0.055);
}

@media (max-width: 420px) {
  .big-detail-body .insight-detail {
    padding: 12px 12px 15px;
  }

  .priority-bucket-head {
    padding-left: 12px;
  }

  .priority-review-card {
    padding: 12px;
  }
}

/* Keep report detail cards adaptive on real mobile browsers. */
@media (max-width: 480px) {
  .detail-body .detail-grid,
  .detail-body .platform-upload-grid,
  .detail-body .repayment-grid,
  .detail-body .bill-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .detail-body .detail-grid .meta-item,
  .detail-body .platform-upload-item,
  .detail-body .ability-card,
  .detail-body .bill-kpi {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .detail-body .detail-grid .meta-item strong,
  .detail-body .platform-upload-item strong,
  .detail-body .ability-card strong,
  .detail-body .bill-kpi strong {
    font-size: clamp(14px, 3.8vw, 18px);
    line-height: 1.3;
  }
}

@media (max-width: 340px) {
  .detail-body .detail-grid,
  .detail-body .platform-upload-grid,
  .detail-body .repayment-grid,
  .detail-body .bill-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* Required audit blocks and interactive mobile charts */
.audit-alert-strip {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 128px;
  z-index: 30;
  margin: 0 -2px 2px;
}

.audit-alert-strip button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
  text-align: left;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  background: linear-gradient(135deg, #f05a5a, #cf3939);
  box-shadow: 0 10px 22px rgba(195, 54, 54, 0.22);
}

.audit-alert-strip button.warn {
  background: linear-gradient(135deg, #efa837, #d87b1f);
  box-shadow: 0 10px 22px rgba(185, 112, 29, 0.18);
}

.audit-alert-strip button.critical {
  background: linear-gradient(135deg, #df4242, #9f2727);
}

.audit-alert-strip.ok button {
  color: #15513a;
  background: linear-gradient(135deg, #e8f8ef, #f8fffb);
  box-shadow: inset 0 0 0 1px rgba(181, 219, 199, 0.86);
}

.audit-alert-strip span {
  align-self: stretch;
  display: grid;
  place-items: center;
  min-width: 48px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 950;
}

.audit-alert-strip strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.3;
}

.audit-alert-strip em {
  grid-column: 2;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.required-risk-section {
  background: linear-gradient(150deg, rgba(255, 252, 247, 0.98), rgba(241, 251, 246, 0.95));
}

.required-risk-list {
  display: grid;
  gap: 11px;
}

.required-risk-card {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(206, 228, 217, 0.86), 0 8px 18px rgba(39, 102, 74, 0.06);
}

.required-risk-card header {
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  background: linear-gradient(135deg, rgba(238, 249, 243, 0.96), rgba(255, 255, 255, 0.9));
}

.required-risk-card header span {
  color: #17382b;
  font-size: 16px;
  font-weight: 950;
}

.required-risk-card header strong {
  border-radius: 999px;
  padding: 5px 9px;
  color: #277356;
  background: #e8f6ef;
  font-size: 12px;
  font-weight: 950;
}

.required-risk-card.hit.warn header strong {
  color: #996411;
  background: #fff5d8;
}

.required-risk-card.hit.danger header strong,
.required-risk-card.hit.critical header strong {
  color: #ad3636;
  background: #ffe9e9;
}

.required-risk-card.empty p {
  margin: 0;
  padding: 0 12px 12px;
  color: #789087;
  font-size: 13px;
  font-weight: 800;
}

.audit-chart-stack {
  display: grid;
  gap: 12px;
}

.audit-line-chart,
.audit-mixed-chart {
  position: relative;
  padding: 13px 12px 12px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(242, 250, 246, 0.92));
  box-shadow: inset 0 0 0 1px rgba(203, 226, 215, 0.86), 0 8px 18px rgba(38, 96, 70, 0.055);
}

.audit-line-chart h4,
.audit-mixed-chart h4 {
  margin: 0 0 6px;
  color: #14382b;
  font-size: 16px;
}

.audit-line-chart p,
.audit-mixed-chart p {
  margin: 0 0 10px;
  color: #698276;
  font-size: 12px;
  line-height: 1.45;
}

.line-chart-box,
.mixed-chart-box {
  position: relative;
  height: 210px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(to top, rgba(208, 225, 216, 0.62) 1px, transparent 1px) 0 0 / 100% 25%,
    linear-gradient(180deg, rgba(235, 248, 242, 0.86), rgba(255, 255, 255, 0.66));
}

.line-chart-box svg,
.mixed-chart-box svg {
  position: absolute;
  inset: 14px 10px 34px;
  width: calc(100% - 20px);
  height: calc(100% - 48px);
  overflow: visible;
}

.line-chart-box polyline,
.mixed-chart-box polyline {
  fill: none;
  stroke: #e96c4d;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.mixed-chart-box polyline {
  stroke: #1f9b68;
}

.chart-points,
.monthly-bars {
  position: absolute;
  inset: 14px 10px 34px;
}

.chart-touch-point {
  position: absolute;
  width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #f07a56;
  box-shadow: 0 4px 10px rgba(190, 83, 55, 0.22);
}

.chart-touch-point span,
.chart-touch-point strong,
.monthly-touch-bar strong {
  display: none;
}

.chart-touch-point.active strong,
.chart-touch-point:focus strong,
.monthly-touch-bar.active strong,
.monthly-touch-bar:focus strong {
  display: block;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 4;
  width: max-content;
  max-width: 210px;
  transform: translateX(-50%);
  border-radius: 8px;
  padding: 8px 9px;
  color: #fff;
  background: rgba(35, 45, 42, 0.9);
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}

.chart-x-row {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  display: flex;
  justify-content: space-between;
  color: #6f8379;
  font-size: 11px;
  font-weight: 850;
}

.monthly-touch-bar {
  position: absolute;
  bottom: 0;
  width: 24px;
  height: 100%;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
}

.monthly-touch-bar i {
  position: absolute;
  bottom: 30px;
  width: 9px;
  min-height: 4px;
  border-radius: 5px 5px 0 0;
}

.monthly-touch-bar i.income {
  left: 2px;
  background: #ff8257;
}

.monthly-touch-bar i.expense {
  right: 2px;
  background: #7ec6ee;
}

.monthly-touch-bar span {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  color: #6f8379;
  font-size: 10px;
  font-weight: 850;
}

.bank-stat-list {
  display: grid;
  gap: 10px;
}

.bank-stat-list article,
.lease-risk-table article {
  display: grid;
  gap: 9px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(205, 228, 217, 0.78);
}

.bank-stat-list article > strong,
.lease-risk-table article > strong {
  color: #15382b;
  font-size: 16px;
}

.bank-stat-list article > span {
  color: #668176;
  font-size: 12px;
  font-weight: 850;
}

.bank-stat-list dl,
.lease-risk-table dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.bank-stat-list dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bank-stat-list dt,
.lease-risk-table dt {
  color: #758b81;
  font-size: 11px;
  font-weight: 850;
}

.bank-stat-list dd,
.lease-risk-table dd {
  margin: 0;
  color: #17382b;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.bank-stat-list button {
  justify-self: start;
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, #189265, #2fb17c);
  font-weight: 900;
}

.bank-detail-panel {
  margin-top: 10px;
  border-radius: 8px;
  background: rgba(238, 249, 243, 0.82);
}

.bank-detail-panel > summary {
  min-height: 44px;
  padding: 0 12px;
  color: #15382b;
  font-weight: 950;
  cursor: pointer;
}

.lease-platform-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.lease-platform-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  color: #9c3838;
  background: #ffecec;
  font-size: 12px;
  font-weight: 950;
}

.lease-risk-table {
  display: grid;
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 2px;
}

@media (max-width: 420px) {
  .audit-alert-strip {
    top: 118px;
  }

  .audit-alert-strip button {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .line-chart-box,
  .mixed-chart-box {
    height: 190px;
  }

  .bank-stat-list dl {
    grid-template-columns: 1fr;
  }
}

/* Web-page style report tables and non-sticky risk strips */
.audit-alert-strip {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

.section-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.section-title-row h3 {
  margin: 0;
}

.zoom-toggle {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(135deg, #168b62, #37ad79);
  font-weight: 950;
  box-shadow: 0 6px 14px rgba(31, 128, 88, 0.16);
}

.zoomable-report {
  position: relative;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  border-radius: 8px;
}

.zoomable-report.is-zoomed {
  margin: 0 -10px;
  max-height: 78vh;
  background: rgba(248, 254, 251, 0.98);
  box-shadow: inset 0 0 0 1px rgba(180, 216, 199, 0.9), 0 14px 34px rgba(28, 88, 63, 0.14);
}

.zoomable-report.is-zoomed .required-webtable-wrap,
.zoomable-report.is-zoomed .audit-chart-stack {
  min-width: 760px;
  transform: scale(1.18);
  transform-origin: left top;
  padding-right: 140px;
  padding-bottom: 110px;
}

.required-risk-section.webtable-section {
  background: linear-gradient(150deg, rgba(250, 255, 252, 0.98), rgba(242, 251, 246, 0.95));
}

.required-webtable-wrap {
  display: grid;
  gap: 12px;
}

.required-table-card {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(199, 225, 212, 0.88);
}

.required-table-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  background: #eaf5ef;
}

.required-table-card.warn header {
  background: #fff6dd;
}

.required-table-card.danger header,
.required-table-card.critical header {
  background: #ffeded;
}

.required-table-card header strong {
  color: #14382b;
  font-size: 16px;
}

.required-table-card header em {
  border-radius: 999px;
  padding: 5px 9px;
  color: #276f54;
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.mini-table-scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.web-report-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.web-report-table th,
.web-report-table td {
  border: 1px solid #d8e5df;
  padding: 9px 8px;
  color: #1c372d;
  line-height: 1.45;
  vertical-align: middle;
  word-break: break-word;
}

.web-report-table th {
  background: #dcecf5;
  color: #12364a;
  font-weight: 950;
  text-align: center;
}

.web-report-table tbody tr:nth-child(2n) td {
  background: #eef7fb;
}

.web-report-table tbody tr.warn td {
  background: #fff8e8;
}

.web-report-table tbody tr.danger td,
.web-report-table tbody tr.critical td {
  background: #fff0f0;
}

.web-report-table td span {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  border-radius: 5px;
  padding: 4px 6px;
  color: #fff;
  background: #ee5757;
  font-size: 11px;
  font-weight: 950;
}

.web-report-table tr.empty td {
  text-align: center;
  color: #71857b;
  background: #fbfefd;
}

.chart-zoom-shell.is-zoomed .audit-line-chart,
.chart-zoom-shell.is-zoomed .audit-mixed-chart {
  min-width: 720px;
}

.chart-zoom-shell.is-zoomed .line-chart-box,
.chart-zoom-shell.is-zoomed .mixed-chart-box {
  height: 300px;
}

.hourly-full {
  min-width: 520px;
}

.hour-labels {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  display: grid;
  grid-template-columns: repeat(24, minmax(16px, 1fr));
  color: #647c71;
  font-size: 9px;
  font-weight: 850;
  text-align: center;
}

.hour-labels span {
  min-width: 0;
}

.chart-x-row {
  display: none;
}

.bank-stat-section > .audit-bill-group {
  margin-top: 10px;
}

.compact-bank-list article {
  grid-template-columns: minmax(0, 1fr);
  padding: 11px;
}

.compact-bank-list article > strong {
  font-size: 15px;
}

.compact-bank-list dl {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 420px) {
  .zoomable-report.is-zoomed {
    max-height: 72vh;
  }

  .zoomable-report.is-zoomed .required-webtable-wrap,
  .zoomable-report.is-zoomed .audit-chart-stack {
    transform: scale(1.08);
  }

  .web-report-table {
    min-width: 720px;
  }

  .hourly-full {
    min-width: 620px;
  }

  .compact-bank-list dl {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Per-chart enlargement and web-like lease evidence */
.per-chart-stack {
  display: grid;
  gap: 12px;
}

.single-chart-shell {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 10px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(240, 250, 245, 0.9));
  box-shadow: inset 0 0 0 1px rgba(201, 226, 214, 0.82);
}

.single-chart-shell .chart-title-row {
  margin-bottom: 0;
}

.single-chart-shell .chart-title-row h4 {
  margin: 0;
  color: #15382b;
  font-size: 16px;
  font-weight: 950;
}

.single-chart-shell .chart-zoom-shell {
  border-radius: 8px;
}

.single-chart-shell .chart-zoom-shell.is-zoomed {
  margin: 0;
  max-height: 78vh;
  padding: 10px;
  background: #fbfffd;
  box-shadow: inset 0 0 0 1px rgba(146, 196, 171, 0.95), 0 18px 42px rgba(28, 88, 63, 0.2);
}

.single-chart-shell .chart-zoom-shell.is-zoomed .audit-line-chart,
.single-chart-shell .chart-zoom-shell.is-zoomed .audit-mixed-chart,
.single-chart-shell .chart-zoom-shell.is-zoomed .bill-chart-card {
  min-width: 720px;
}

.single-chart-shell .chart-zoom-shell.is-zoomed .line-chart-box,
.single-chart-shell .chart-zoom-shell.is-zoomed .mixed-chart-box {
  height: 320px;
}

.web-like-chart h4 {
  display: none;
}

.hourly-full {
  min-width: 600px;
}

.web-lease-section {
  background: linear-gradient(150deg, rgba(247, 253, 250, 0.98), rgba(255, 251, 244, 0.9));
}

.lease-web-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.lease-web-summary article {
  min-width: 0;
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(207, 226, 216, 0.88);
}

.lease-web-summary span {
  display: block;
  color: #637d72;
  font-size: 11px;
  font-weight: 850;
}

.lease-web-summary strong {
  display: block;
  margin-top: 4px;
  color: #15382b;
  font-size: 15px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.lease-web-list {
  max-height: none;
  overflow: visible;
}

.lease-store-detail {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(207, 226, 216, 0.86);
}

.lease-store-detail + .lease-store-detail {
  margin-top: 10px;
}

.lease-store-detail summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 11px 12px;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(232, 247, 239, 0.96), rgba(255, 249, 234, 0.85));
}

.lease-store-detail summary span {
  color: #14382b;
  font-size: 15px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.lease-store-detail summary strong {
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: #21966a;
  font-size: 12px;
}

.lease-store-detail summary em {
  grid-column: 1 / -1;
  color: #6c8177;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.lease-store-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
}

.lease-store-metrics b {
  border-radius: 8px;
  padding: 8px;
  color: #1f4034;
  background: rgba(239, 249, 244, 0.92);
  font-size: 12px;
  text-align: center;
}

.lease-detail-table {
  min-width: 780px;
}

.lease-detail-table th,
.lease-detail-table td {
  font-size: 11px;
}

.lease-risk-hints {
  display: grid;
  gap: 10px;
  margin: 10px 0;
}

.lease-risk-hints article {
  border-radius: 8px;
  padding: 11px;
  background: linear-gradient(145deg, rgba(255, 247, 236, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(237, 203, 156, 0.72);
}

.lease-risk-hints article.danger,
.lease-risk-hints article.critical {
  background: linear-gradient(145deg, rgba(255, 238, 238, 0.95), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 0 0 1px rgba(238, 181, 181, 0.8);
}

.lease-risk-hints header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.lease-risk-hints header span {
  color: #14382b;
  font-size: 15px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.lease-risk-hints header strong {
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: #d9534f;
  font-size: 11px;
}

.lease-risk-hints p {
  margin: 8px 0 0;
  color: #5f766b;
  font-size: 13px;
  line-height: 1.55;
}

.lease-risk-hints dl {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
}

.lease-risk-hints dl div {
  display: grid;
  grid-template-columns: minmax(92px, 0.5fr) minmax(0, 1fr);
  gap: 8px;
  border-radius: 7px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.lease-risk-hints dt {
  color: #71877d;
  font-size: 12px;
  font-weight: 850;
}

.lease-risk-hints dd {
  margin: 0;
  color: #17382b;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  .lease-web-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lease-web-summary article {
    padding: 8px 6px;
  }

  .lease-web-summary strong {
    font-size: 13px;
  }

  .single-chart-shell .chart-zoom-shell.is-zoomed .audit-line-chart,
  .single-chart-shell .chart-zoom-shell.is-zoomed .audit-mixed-chart,
  .single-chart-shell .chart-zoom-shell.is-zoomed .bill-chart-card {
    min-width: 760px;
  }

  .single-chart-shell .chart-zoom-shell.is-zoomed .line-chart-box,
  .single-chart-shell .chart-zoom-shell.is-zoomed .mixed-chart-box {
    height: 340px;
  }
}

/* Compact mobile big-data review */
.compact-alert-strip {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px !important;
  padding: 8px 10px !important;
  margin: 0 0 10px !important;
  background: transparent !important;
}

.compact-alert-strip button {
  min-width: 0;
  min-height: 58px;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 3px;
  align-content: start;
  border: 0;
  border-radius: 8px;
  padding: 9px 10px !important;
  text-align: left;
  box-shadow: 0 8px 18px rgba(116, 51, 42, 0.1);
}

.compact-alert-strip button.critical,
.compact-alert-strip button.danger {
  background: linear-gradient(135deg, #d93e42, #af2529) !important;
}

.compact-alert-strip button.warn {
  background: linear-gradient(135deg, #f5a930, #de7f16) !important;
}

.compact-alert-strip button span {
  justify-self: start;
  border-radius: 999px;
  padding: 2px 7px;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  font-size: 11px;
  font-weight: 950;
}

.compact-alert-strip button strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.compact-alert-strip button em {
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-required-section {
  background: linear-gradient(150deg, rgba(249, 255, 252, 0.98), rgba(239, 250, 244, 0.94));
}

.required-compact-list {
  display: grid;
  gap: 10px;
}

.required-panel-compact {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(198, 225, 211, 0.9), 0 8px 18px rgba(41, 95, 71, 0.06);
}

.required-panel-compact.empty {
  padding: 12px;
}

.required-panel-compact > summary,
.required-panel-compact.empty header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 11px 12px;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(232, 247, 239, 0.96), rgba(255, 251, 236, 0.88));
}

.required-panel-compact.danger > summary,
.required-panel-compact.critical > summary {
  background: linear-gradient(90deg, rgba(255, 235, 235, 0.96), rgba(255, 248, 231, 0.86));
}

.required-panel-compact.warn > summary {
  background: linear-gradient(90deg, rgba(255, 247, 221, 0.98), rgba(239, 250, 244, 0.88));
}

.required-panel-compact summary span,
.required-panel-compact.empty header span {
  color: #14382b;
  font-size: 17px;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.required-panel-compact summary strong,
.required-panel-compact.empty header strong {
  border-radius: 999px;
  padding: 4px 8px;
  color: #fff;
  background: #1f9b68;
  font-size: 12px;
  white-space: nowrap;
}

.required-panel-compact.danger summary strong,
.required-panel-compact.critical summary strong {
  background: #d9534f;
}

.required-panel-compact.warn summary strong {
  background: #d98a16;
}

.required-panel-compact.empty p {
  margin: 8px 0 0;
  color: #6d8379;
  font-size: 13px;
}

.required-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
}

.required-summary-card {
  min-width: 0;
  border-radius: 8px;
  padding: 10px;
  background: rgba(250, 255, 252, 0.96);
  box-shadow: inset 0 0 0 1px rgba(207, 228, 217, 0.86);
}

.required-summary-card.warn {
  background: rgba(255, 249, 232, 0.98);
  box-shadow: inset 0 0 0 1px rgba(239, 211, 159, 0.86);
}

.required-summary-card.danger,
.required-summary-card.critical {
  background: rgba(255, 242, 242, 0.98);
  box-shadow: inset 0 0 0 1px rgba(234, 185, 185, 0.88);
}

.required-summary-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.required-summary-card header span {
  color: #14382b;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.25;
}

.required-summary-card header strong {
  border-radius: 999px;
  padding: 3px 7px;
  color: #1c6f50;
  background: rgba(31, 155, 104, 0.12);
  font-size: 11px;
  white-space: nowrap;
}

.required-summary-card.danger header strong,
.required-summary-card.critical header strong {
  color: #b43637;
  background: rgba(217, 83, 79, 0.12);
}

.required-summary-card p {
  margin: 8px 0 0;
  color: #415c50;
  font-size: 13px;
  line-height: 1.5;
}

.required-summary-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.required-summary-card em {
  max-width: 100%;
  border-radius: 999px;
  padding: 3px 7px;
  color: #60776d;
  background: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.required-raw-detail {
  margin: 0 10px 10px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 0 0 1px rgba(210, 229, 220, 0.86);
}

.required-raw-detail > summary {
  padding: 9px 10px;
  color: #247157;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

@media (min-width: 560px) {
  .compact-alert-strip,
  .required-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .compact-alert-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px !important;
    padding: 7px 8px !important;
  }

  .compact-alert-strip button {
    min-height: 54px;
    padding: 8px !important;
  }

  .compact-alert-strip button strong {
    font-size: 12px;
  }

  .compact-alert-strip button em {
    font-size: 10px;
  }

  .required-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .required-summary-card {
    padding: 9px;
  }

  .required-summary-card header span {
    font-size: 14px;
  }

  .required-summary-card p {
    font-size: 12px;
  }
}

.judicial-case-section {
  background: linear-gradient(150deg, rgba(249, 253, 251, 0.98), rgba(239, 249, 244, 0.94));
  box-shadow: inset 0 0 0 1px rgba(198, 225, 211, 0.9), 0 10px 24px rgba(39, 91, 70, 0.06);
}

.judicial-case-section > summary {
  min-height: 52px;
  padding: 13px 14px;
  background: linear-gradient(90deg, rgba(226, 246, 236, 0.98), rgba(255, 247, 229, 0.9));
}

.judicial-case-section > summary span {
  color: #14382b;
  font-size: 17px;
  font-weight: 950;
}

.judicial-case-section > summary strong {
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  background: #d9534f;
  font-size: 12px;
  white-space: nowrap;
}

.judicial-case-list {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.judicial-case-card {
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: inset 0 0 0 1px rgba(209, 226, 218, 0.92), 0 8px 18px rgba(36, 90, 67, 0.06);
}

.judicial-case-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
  padding: 10px 11px;
  background: rgba(247, 252, 249, 0.98);
}

.judicial-case-card header span,
.judicial-case-card header em {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.judicial-case-card header span {
  color: #276b55;
  background: rgba(31, 155, 104, 0.12);
}

.judicial-case-card header strong {
  min-width: 0;
  color: #17382c;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.judicial-case-card header em {
  grid-column: 1 / -1;
  width: fit-content;
  color: #b43f3c;
  background: rgba(217, 83, 79, 0.12);
}

.judicial-case-grid,
.judicial-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  background: rgba(214, 230, 222, 0.75);
}

.judicial-case-grid div,
.judicial-extra-grid div {
  min-width: 0;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.95);
}

.judicial-case-grid div:nth-child(4n + 1),
.judicial-case-grid div:nth-child(4n + 2),
.judicial-extra-grid div:nth-child(4n + 1),
.judicial-extra-grid div:nth-child(4n + 2) {
  background: rgba(250, 255, 252, 0.98);
}

.judicial-case-grid dt,
.judicial-extra-grid dt {
  margin: 0 0 4px;
  color: #6b8177;
  font-size: 11px;
  font-weight: 850;
}

.judicial-case-grid dd,
.judicial-extra-grid dd {
  margin: 0;
  color: #18372c;
  font-size: 13px;
  font-weight: 820;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.judicial-case-grid div:nth-child(1),
.judicial-case-grid div:nth-child(3),
.judicial-case-grid div:nth-child(5),
.judicial-case-grid div:nth-child(9) {
  grid-column: 1 / -1;
}

.judicial-extra-grid {
  border-top: 1px solid rgba(214, 230, 222, 0.86);
}

.required-raw-compact {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
}

.required-raw-compact > p {
  margin: 0;
  color: #60776d;
  font-size: 12px;
  line-height: 1.5;
}

.required-raw-compact article {
  border-radius: 8px;
  padding: 9px;
  background: rgba(250, 255, 252, 0.96);
  box-shadow: inset 0 0 0 1px rgba(209, 226, 218, 0.88);
}

.required-raw-compact article.danger,
.required-raw-compact article.critical {
  background: rgba(255, 245, 243, 0.98);
  box-shadow: inset 0 0 0 1px rgba(239, 199, 194, 0.9);
}

.required-raw-compact article.warn {
  background: rgba(255, 251, 238, 0.98);
  box-shadow: inset 0 0 0 1px rgba(237, 218, 173, 0.9);
}

.required-raw-compact header {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}

.required-raw-compact header span {
  min-width: 0;
  color: #17382c;
  font-size: 13px;
  font-weight: 950;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.required-raw-compact header strong {
  flex: none;
  border-radius: 999px;
  padding: 3px 7px;
  color: #fff;
  background: #d98a16;
  font-size: 11px;
}

.required-raw-compact article.danger header strong,
.required-raw-compact article.critical header strong {
  background: #d9534f;
}

.required-raw-compact dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.required-raw-compact dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
}

.required-raw-compact dt {
  color: #6b8177;
  font-size: 12px;
  font-weight: 850;
}

.required-raw-compact dd {
  margin: 0;
  color: #243d34;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.compact-more-note {
  margin: 8px 0 0;
  border-radius: 8px;
  padding: 8px 10px;
  color: #60776d;
  background: rgba(239, 249, 244, 0.95);
  font-size: 12px;
}

@media (min-width: 560px) {
  .judicial-case-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mobile-case-list-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 0;
}

.mobile-case-list-title span {
  border-left: 3px solid #2c8d68;
  padding-left: 8px;
  color: #174133;
  font-size: 15px;
  font-weight: 950;
}

.mobile-case-list-title strong {
  border-radius: 999px;
  padding: 4px 9px;
  color: #b43f3c;
  background: rgba(217, 83, 79, 0.1);
  font-size: 12px;
}

.mobile-case-list {
  padding: 10px 12px 12px;
}

.mobile-case-card {
  border: 1px solid rgba(190, 224, 208, 0.95);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(247, 253, 250, 0.96));
}

.mobile-case-card header {
  border-bottom: 1px solid rgba(206, 228, 218, 0.9);
  background: linear-gradient(90deg, rgba(232, 247, 239, 0.96), rgba(255, 251, 238, 0.92));
}

.mobile-case-card .judicial-case-grid,
.mobile-case-card .judicial-extra-grid {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  background: transparent;
}

.mobile-case-card .judicial-case-grid div,
.mobile-case-card .judicial-extra-grid div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-bottom: 1px solid rgba(222, 235, 229, 0.86);
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.78);
}

.mobile-case-card .judicial-case-grid div:nth-child(odd),
.mobile-case-card .judicial-extra-grid div:nth-child(odd) {
  background: rgba(247, 253, 250, 0.9);
}

.mobile-case-card .judicial-case-grid div:nth-child(1),
.mobile-case-card .judicial-case-grid div:nth-child(3),
.mobile-case-card .judicial-case-grid div:nth-child(5),
.mobile-case-card .judicial-case-grid div:nth-child(9) {
  grid-column: auto;
}

.mobile-case-card dt {
  margin: 0;
  color: #5f766d;
  font-size: 12px;
  font-weight: 900;
}

.mobile-case-card dd {
  color: #17382c;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.required-case-panel .mobile-case-list-title {
  padding-top: 2px;
}

.required-case-panel .mobile-case-list {
  padding-top: 8px;
}

.single-required-grid,
.single-priority-list {
  grid-template-columns: 1fr !important;
}

.single-required-grid .required-summary-card {
  padding: 12px;
}

.single-required-grid .required-summary-card header {
  grid-template-columns: 1fr;
}

.single-required-grid .required-summary-card header strong {
  display: none;
}

.report-export-section {
  background: linear-gradient(150deg, rgba(247, 255, 251, 0.98), rgba(235, 249, 242, 0.94));
}

.report-export-mount {
  min-height: 150px;
}

.report-export-fallback,
.report-export-loading {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-items: start;
  border-radius: 10px;
  padding: 14px;
  color: #24483b;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(190, 224, 208, 0.9);
}

.report-export-fallback strong {
  display: block;
  margin-bottom: 3px;
  color: #14382b;
  font-size: 16px;
}

.report-export-fallback span,
.report-export-loading {
  color: #61796f;
  font-size: 13px;
  line-height: 1.5;
}

.report-export-preview {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(190, 224, 208, 0.92), 0 12px 24px rgba(33, 92, 66, 0.1);
}

.report-export-preview img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  background: #f5fbf7;
}

.report-export-preview span {
  display: block;
  padding: 10px 12px;
  color: #1b6f51;
  background: linear-gradient(90deg, rgba(232, 247, 239, 0.96), rgba(255, 251, 236, 0.92));
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.report-image-zoom {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(10, 24, 18, 0.92);
}

.report-image-zoom.hidden {
  display: none;
}

.report-image-zoom > div {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  padding: 52px 10px 24px;
}

.report-image-zoom img {
  display: block;
  width: min(980px, 100%);
  min-width: 360px;
  margin: 0 auto;
  background: #f5fbf7;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.36);
}

.report-image-close {
  position: fixed;
  top: calc(env(safe-area-inset-top) + 10px);
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 26px;
  line-height: 1;
}

body.report-image-open {
  overflow: hidden;
}

@media (max-width: 420px) {
  .report-export-preview img {
    max-height: 360px;
  }

  .report-image-zoom img {
    min-width: 720px;
  }
}

.compact-case-card {
  border-color: rgba(189, 221, 205, 0.88);
  box-shadow: 0 8px 18px rgba(36, 89, 64, 0.07);
}

.compact-case-card header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 44px;
  padding: 8px 10px;
}

.compact-case-card header strong {
  font-size: 14px;
  line-height: 1.25;
}

.compact-case-card header span,
.compact-case-card header em {
  padding: 3px 6px;
  font-size: 10px;
}

.compact-case-card .judicial-case-grid div,
.compact-case-card .judicial-extra-grid div {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 9px;
}

.compact-case-card dt {
  font-size: 11px;
}

.compact-case-card dd {
  font-size: 12px;
  line-height: 1.35;
}

.case-extra-fold {
  border-top: 1px solid rgba(213, 229, 221, 0.92);
}

.case-extra-fold > summary {
  padding: 8px 10px;
  color: #207456;
  background: rgba(239, 249, 244, 0.92);
  font-size: 12px;
  font-weight: 900;
}

.final-risk-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.final-risk-card {
  min-height: 82px;
  padding: 10px;
  border-radius: 8px;
}

.final-risk-card span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px 7px;
  font-size: 11px;
}

.final-risk-card strong {
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.25;
}

.final-risk-card p {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.final-risk-card dl {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.final-risk-card dl div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 6px;
}

.final-risk-card dt,
.final-risk-card dd {
  font-size: 11px;
  line-height: 1.35;
}

.chart-fullscreen-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #ffffff;
}

.chart-fullscreen-overlay.hidden {
  display: none;
}

.chart-fullscreen-overlay header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 12px 10px;
  background: #f4fbf7;
  box-shadow: 0 1px 0 rgba(197, 222, 211, 0.9);
}

.chart-fullscreen-overlay header strong {
  color: #12382b;
  font-size: 16px;
  font-weight: 950;
}

.chart-fullscreen-overlay header button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 13px;
  color: #fff;
  background: linear-gradient(135deg, #168b62, #2aa672);
  font-weight: 950;
}

.chart-fullscreen-body {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  padding: 12px;
}

.chart-fullscreen-body .is-fullscreen-clone {
  width: max-content;
  min-width: 980px;
  padding: 0;
  background: #fff;
}

.chart-fullscreen-body .audit-line-chart,
.chart-fullscreen-body .audit-mixed-chart {
  min-width: 960px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: none;
}

.chart-fullscreen-body .line-chart-box,
.chart-fullscreen-body .mixed-chart-box {
  height: 430px;
  background:
    linear-gradient(to top, rgba(210, 218, 226, 0.9) 1px, transparent 1px) 0 0 / 100% 20%,
    #fff;
}

.chart-fullscreen-body .line-chart-box polyline,
.chart-fullscreen-body .mixed-chart-box polyline {
  stroke-width: 2.2;
}

.chart-fullscreen-body .chart-touch-point {
  width: 14px;
  height: 14px;
}

.chart-fullscreen-body .hour-labels span,
.chart-fullscreen-body .chart-x-row span,
.chart-fullscreen-body .monthly-touch-bar span {
  color: #42566a;
  font-size: 12px;
}

.chart-fullscreen-body .monthly-touch-bar {
  width: 42px;
}

.chart-fullscreen-body .monthly-touch-bar i {
  width: 15px;
}

body.chart-fullscreen-open {
  overflow: hidden;
}

/* Final image preview and lease-risk mobile table pass. */
.report-export-actions {
  display: grid;
  gap: 10px;
}

.report-export-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.final-report-image-zoom {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #0d1713;
}

.final-report-image-zoom.hidden {
  display: none;
}

.final-report-image-zoom header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(env(safe-area-inset-top) + 10px) 12px 10px;
  color: #fff;
  background: rgba(13, 23, 19, 0.94);
  backdrop-filter: blur(8px);
}

.final-report-image-zoom header strong {
  font-size: 15px;
  font-weight: 950;
}

.final-report-image-zoom header div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.final-report-image-zoom .report-image-close {
  position: static;
  width: auto;
  height: 34px;
  border-radius: 8px;
  padding: 0 12px;
  background: linear-gradient(135deg, #1b9368, #2fb77e);
  font-size: 13px;
  font-weight: 950;
}

.report-image-scroll {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
  padding: 12px;
}

.report-image-scroll img {
  display: block;
  width: min(100%, 760px);
  min-width: 360px;
  max-width: none;
  margin: 0 auto;
  border-radius: 4px;
  background: #f5fbf7;
}

.final-lease-section {
  background: linear-gradient(180deg, #f4fbf7 0%, #ffffff 70%);
}

.final-lease-section .section-title-row span {
  color: #4c6e60;
  font-size: 12px;
  font-weight: 850;
}

.lease-summary-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.lease-summary-cards button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  border: 1px solid rgba(171, 213, 193, 0.9);
  border-radius: 8px;
  padding: 10px;
  color: #173a2e;
  text-align: left;
  background: linear-gradient(145deg, #ffffff, #eefaf3);
  box-shadow: 0 8px 18px rgba(42, 114, 80, 0.08);
}

.lease-summary-cards strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lease-summary-cards span,
.lease-summary-cards em {
  color: #527162;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.lease-hit-fold,
.lease-detail-fold {
  border: 1px solid rgba(185, 218, 202, 0.94);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
}

.lease-hit-fold {
  margin-bottom: 10px;
}

.lease-hit-fold > summary,
.lease-detail-fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  color: #173a2e;
  background: #eff9f4;
  font-size: 14px;
  font-weight: 950;
}

.lease-filter-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #fbfefd;
}

.lease-filter-bar label {
  display: grid;
  gap: 4px;
}

.lease-filter-bar span {
  color: #527162;
  font-size: 11px;
  font-weight: 900;
}

.lease-filter-bar select,
.lease-filter-bar input {
  min-width: 0;
  height: 34px;
  border: 1px solid #cfe4d8;
  border-radius: 7px;
  padding: 0 8px;
  color: #18392e;
  background: #fff;
  font-size: 12px;
}

.lease-filter-count {
  padding: 0 10px 9px;
  color: #577466;
  font-size: 12px;
  font-weight: 800;
}

.lease-table-scroll {
  max-height: calc(var(--lease-visible-rows, 5) * 44px + 42px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid rgba(210, 228, 219, 0.9);
}

.lease-detail-table {
  min-width: 840px;
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
}

.lease-detail-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 8px;
  color: #315144;
  text-align: left;
  background: #eef8f2;
  box-shadow: inset 0 -1px 0 #d9eadf;
}

.lease-detail-table td {
  max-width: 180px;
  padding: 9px 8px;
  border-bottom: 1px solid #edf3f0;
  color: #203d33;
  line-height: 1.35;
  vertical-align: top;
}

.lease-detail-table tbody tr:nth-child(even) td {
  background: #fbfefd;
}

.lease-detail-table td:nth-child(5) {
  max-width: 240px;
}

@media (max-width: 560px) {
  .report-export-button-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .report-export-button-row > * {
    justify-content: center;
    min-width: 0;
    padding-inline: 8px;
    font-size: 12px;
  }

  .lease-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lease-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .final-risk-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .final-risk-card {
    min-height: 84px;
    padding: 9px;
  }

  .final-risk-card dl {
    display: none;
  }

  .final-risk-card strong {
    font-size: 13px;
  }

  .compact-case-card .judicial-case-grid div,
  .compact-case-card .judicial-extra-grid div {
    grid-template-columns: 54px minmax(0, 1fr);
  }
}

/* TRUE PHYSICAL EOF big-report readable pass. */
.yzx-big-required {
  background: linear-gradient(180deg, #f2fbf6 0%, #ffffff 88%);
}

.yzx-big-required > h3 {
  margin-bottom: 10px;
}

.mobile-web-table {
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid rgba(191, 219, 204, 0.95);
  border-radius: 8px;
  background: #fff;
}

.mobile-web-table h4 {
  margin: 0;
  padding: 10px 12px;
  color: #137052;
  background: linear-gradient(90deg, rgba(226, 247, 236, 0.96), rgba(246, 252, 249, 0.96));
  font-size: 15px;
  font-weight: 950;
}

.mobile-web-table table {
  min-width: 760px;
}

.mobile-web-table .web-report-table th,
.mobile-web-table .web-report-table td {
  padding: 10px 8px;
  text-align: center;
  white-space: nowrap;
}

.risk-advice-table .web-report-table td:last-child {
  color: #df302f;
  font-weight: 900;
  white-space: normal;
  min-width: 180px;
}

.performance-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  color: #51685e;
  font-size: 12px;
  font-weight: 800;
  background: #fbfefd;
}

.performance-meta strong {
  padding: 3px 8px;
  border-radius: 999px;
  color: #17845e;
  background: #e6f7ed;
}

.panel-subtitle {
  margin: 0;
  padding: 8px 10px 0;
  color: #617a6d;
  font-size: 12px;
  font-weight: 800;
}

.big-fact-card {
  display: grid;
  gap: 5px;
  margin: 8px 10px;
  border: 1px solid rgba(210, 226, 218, 0.94);
  border-left: 4px solid #f0a63a;
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.92);
}

.big-fact-card.danger,
.big-fact-card.critical {
  border-left-color: #f06b72;
  background: linear-gradient(90deg, rgba(255, 247, 247, 0.98), rgba(255, 255, 255, 0.96));
}

.big-fact-card.warn {
  border-left-color: #f0a63a;
  background: linear-gradient(90deg, rgba(255, 250, 239, 0.98), rgba(255, 255, 255, 0.96));
}

.big-fact-card span {
  color: #60776b;
  font-size: 11px;
  font-weight: 900;
}

.big-fact-card strong {
  color: #152f25;
  font-size: 15px;
  line-height: 1.25;
}

.big-fact-card em {
  color: #61766c;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.risk-advice-note {
  display: block;
  margin-top: 5px;
  color: #d63838;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.35;
}

.yzx-alert-strip button {
  text-align: left;
}

.yzx-alert-strip button em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-export-preview img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  object-position: top center;
  background: #eef8f4;
}

.web-export-ready .report-export-preview {
  border: 1px solid rgba(30, 161, 110, 0.35);
  background: #f5fbf8;
}

@media (max-width: 560px) {
  .mobile-web-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-web-table table {
    min-width: 700px;
    font-size: 11px;
  }

  .mobile-web-table .web-report-table th,
  .mobile-web-table .web-report-table td {
    padding: 8px 6px;
  }

  .big-fact-card {
    margin: 7px 8px;
    padding: 8px 9px;
  }

  .big-fact-card strong {
    font-size: 14px;
  }

  .web-export-preview img {
    max-height: 420px;
  }
}

/* TRUE FINAL EOF anchor/table polish. */
.lease-apply-meta {
  display: grid;
  gap: 6px;
  padding: 10px;
  background: #fbfefd;
}

.lease-apply-meta div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed #d7e5de;
  padding: 7px 0;
}

.lease-apply-meta span {
  color: #60766c;
  font-size: 12px;
  font-weight: 850;
}

.lease-apply-meta strong {
  color: #f08a00;
  font-size: 13px;
  font-weight: 950;
}

.big-fact-list {
  display: grid;
  gap: 0;
  padding-bottom: 6px;
}

#auditOverdue.jump-focus,
#auditActiveLease.jump-focus,
#auditLeaseApply.jump-focus,
#auditHighRisk.jump-focus {
  outline: 3px solid rgba(18, 156, 107, 0.26);
  box-shadow: 0 0 0 7px rgba(18, 156, 107, 0.1);
}

.overdue-web-table + .overdue-web-table {
  margin-top: 10px;
}

.overdue-web-table .web-report-table th:first-child,
.lease-apply-web-table .web-report-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 112px;
  background: #eef7f2;
}

/* FINAL MOBILE RISK TABLE POLISH */
#auditOverdueRecords.jump-focus,
#auditPerformanceRecords.jump-focus,
#auditLeaseApplyTable.jump-focus {
  outline: 3px solid rgba(18, 156, 107, 0.34);
  box-shadow: 0 0 0 7px rgba(18, 156, 107, 0.12);
}

.yzx-big-required .required-compact-list {
  display: grid;
  gap: 12px;
}

.yzx-big-required .required-panel-compact {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(239, 253, 244, 0.78));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.yzx-big-required .required-panel-compact > summary {
  min-height: 46px;
  padding: 12px 14px;
  align-items: center;
}

.yzx-big-required .required-panel-compact > summary span {
  font-size: 16px;
  color: #102a24;
}

.yzx-big-required .panel-subtitle {
  margin: -2px 14px 10px;
  padding: 0;
  color: #5b6b62;
  font-size: 13px;
  line-height: 1.45;
}

.mobile-web-table {
  margin: 10px 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 118, 110, 0.12);
}

.mobile-web-table h4 {
  padding: 11px 12px 8px;
  font-size: 14px;
  color: #133b32;
  background: linear-gradient(90deg, rgba(220, 252, 231, 0.92), rgba(247, 254, 251, 0.96));
}

.mini-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-web-table .web-report-table {
  min-width: 520px;
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.mobile-web-table .web-report-table th,
.mobile-web-table .web-report-table td {
  padding: 9px 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  color: #24342f;
  white-space: nowrap;
}

.mobile-web-table .web-report-table thead th {
  background: rgba(220, 252, 231, 0.72);
  color: #0f5132;
  font-weight: 900;
}

.mobile-web-table .web-report-table th:first-child,
.mobile-web-table .web-report-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 112px;
  text-align: left;
  background: rgba(248, 253, 250, 0.98);
  font-weight: 900;
}

.mobile-web-table .web-report-table tr.danger th,
.mobile-web-table .web-report-table tr.danger td {
  color: #991b1b;
  background: rgba(254, 242, 242, 0.78);
}

.lease-apply-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 8px;
  padding: 0 10px 10px;
  background: transparent;
}

.lease-apply-meta div {
  display: block;
  border: 0;
  border-radius: 10px;
  padding: 8px;
  background: rgba(236, 253, 245, 0.92);
}

.lease-apply-meta span {
  display: block;
  color: #66766f;
  font-size: 11px;
}

.lease-apply-meta strong {
  display: block;
  margin-top: 4px;
  color: #12372f;
  font-size: 13px;
  word-break: break-word;
}

.audit-alert-strip.compact-alert-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audit-alert-strip.compact-alert-strip button {
  min-height: 72px;
  padding: 10px;
  border-radius: 12px;
}

.audit-alert-strip.compact-alert-strip button strong {
  font-size: 14px;
  line-height: 1.25;
}

.audit-alert-strip.compact-alert-strip button em {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

/* FINAL soft supplemental notes */
.priority-soft-notes {
  margin: 8px 10px 4px;
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 12px;
  padding: 9px 10px;
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.86), rgba(255, 251, 235, 0.58));
}

.priority-soft-notes span {
  display: block;
  margin-bottom: 6px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
}

.priority-soft-notes em {
  display: block;
  color: #3f564e;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.priority-bucket.other {
  display: none !important;
}

/* FINAL bill report compact risk and chart labels */
.yzx-compact-alerts {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 8px 10px !important;
}

.yzx-compact-alerts button {
  min-height: 56px !important;
  padding: 7px 8px !important;
  border-radius: 10px !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
}

.yzx-compact-alerts span {
  min-width: 34px !important;
  padding: 2px 6px !important;
  border-radius: 999px !important;
  font-size: 10px !important;
}

.yzx-compact-alerts strong {
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.yzx-compact-alerts em {
  grid-column: 2 !important;
  margin-top: 2px !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  -webkit-line-clamp: 2 !important;
}

.bill-risk-full-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bill-risk-full-card {
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.bill-risk-full-card > summary {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 9px;
  cursor: pointer;
}

.bill-risk-full-card > summary::-webkit-details-marker {
  display: none;
}

.bill-risk-full-card > summary span {
  width: fit-content;
}

.bill-risk-full-card > summary strong {
  font-size: 13px;
  line-height: 1.25;
}

.bill-risk-full-card > summary em {
  display: -webkit-box;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bill-risk-full-body {
  margin: 0 8px 8px;
  border-radius: 8px;
  padding: 8px;
  color: #1f342e;
  background: rgba(255, 255, 255, 0.92);
}

.bill-risk-full-body p {
  margin: 0 0 6px;
  color: #213b34;
  font-size: 12px;
  line-height: 1.45;
}

.bill-risk-full-body dl,
.bill-risk-full-body div {
  margin: 0;
}

.bill-risk-full-body dt {
  color: #64756e;
  font-size: 11px;
  font-weight: 900;
}

.bill-risk-full-body dd {
  margin: 3px 0 0;
  color: #102a24;
  font-size: 12px;
  line-height: 1.45;
}

.final-labelled-chart .line-chart-box,
.final-labelled-chart .mixed-chart-box {
  position: relative;
  padding-bottom: 34px;
}

.final-chart-point i,
.final-chart-point b,
.final-monthly-bar b {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  border-radius: 999px;
  padding: 1px 4px;
  color: #0f5132;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 5px rgba(16, 42, 36, 0.12);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}

.final-chart-point i {
  top: -18px;
}

.final-chart-point b {
  display: none;
}

.final-monthly-bar b {
  top: -18px;
}

.chart-inline-tip {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  z-index: 8;
  border-radius: 9px;
  padding: 6px 8px;
  color: #14372e;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 16px rgba(15, 42, 36, 0.11);
  font-size: 11px;
  line-height: 1.3;
}

.chart-touch-point.active i,
.monthly-touch-bar.active b {
  color: #fff;
  background: #159268;
}

.final-monthly-bar .surplus {
  width: 4px;
  border-radius: 999px 999px 0 0;
  background: #10a36f;
}

@media (max-width: 430px) {
  .bill-risk-full-list {
    grid-template-columns: 1fr 1fr;
  }

  .bill-risk-full-card > summary {
    min-height: 78px;
    padding: 8px;
  }
}

/* 20260602 mobile bill review compact risk and labelled charts override */
.yzx-mini-alerts {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 6px 10px 8px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.yzx-mini-alerts button {
  min-height: 44px !important;
  border: 1px solid rgba(220, 38, 38, 0.18) !important;
  border-radius: 10px !important;
  padding: 6px 7px !important;
  display: grid !important;
  grid-template-columns: auto 1fr !important;
  column-gap: 5px !important;
  align-items: start !important;
  background: linear-gradient(135deg, #fff7ed, #fff1f2) !important;
  color: #7f1d1d !important;
  box-shadow: 0 6px 14px rgba(127, 29, 29, 0.07) !important;
}

.yzx-mini-alerts button.warn {
  background: linear-gradient(135deg, #fffbeb, #fff7ed) !important;
  color: #78350f !important;
}

.yzx-mini-alerts button.ok {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa) !important;
  color: #065f46 !important;
}

.yzx-mini-alerts span {
  min-width: 26px !important;
  padding: 1px 5px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: rgba(220, 38, 38, 0.72) !important;
  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

.yzx-mini-alerts strong {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

.yzx-mini-alerts em {
  grid-column: 1 / -1 !important;
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
  margin: 1px 0 0 !important;
  color: rgba(127, 29, 29, 0.78) !important;
  font-size: 9px !important;
  font-style: normal !important;
  line-height: 1.25 !important;
}

.bill-risk-readable-list {
  display: grid;
  gap: 8px;
}

.bill-risk-readable-card {
  border: 1px solid rgba(15, 118, 110, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 244, 0.82));
  box-shadow: 0 8px 18px rgba(16, 42, 36, 0.06);
}

.bill-risk-readable-card.danger,
.bill-risk-readable-card.critical {
  border-color: rgba(220, 38, 38, 0.18);
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}

.bill-risk-readable-card.warn {
  border-color: rgba(217, 119, 6, 0.18);
  background: linear-gradient(135deg, #fffbeb, #f0fdfa);
}

.bill-risk-readable-card > summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 8px;
  padding: 9px 10px;
  cursor: pointer;
  list-style: none;
}

.bill-risk-readable-card > summary::-webkit-details-marker {
  display: none;
}

.bill-risk-readable-card > summary span {
  align-self: start;
  border-radius: 999px;
  padding: 2px 7px;
  color: #fff;
  background: #0f766e;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.45;
}

.bill-risk-readable-card.danger > summary span,
.bill-risk-readable-card.critical > summary span {
  background: #dc2626;
}

.bill-risk-readable-card.warn > summary span {
  background: #d97706;
}

.bill-risk-readable-card > summary strong {
  color: #102a24;
  font-size: 14px;
  line-height: 1.3;
}

.bill-risk-readable-card > summary em {
  grid-column: 1 / -1;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #4b635a;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.bill-risk-readable-card dl {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0 10px 10px;
}

.bill-risk-readable-card dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px dashed rgba(15, 118, 110, 0.12);
}

.bill-risk-readable-card dt {
  color: #6b7f77;
  font-size: 11px;
  font-weight: 900;
}

.bill-risk-readable-card dd {
  margin: 0;
  color: #102a24;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.yzx-labelled-chart .line-chart-box,
.yzx-labelled-chart .mixed-chart-box {
  position: relative;
  min-height: 180px;
  padding: 18px 4px 38px;
}

.yzx-labelled-chart .hour-labels {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(24, minmax(10px, 1fr));
  gap: 0;
}

.yzx-labelled-chart .hour-labels span {
  color: #64756e;
  font-size: 8px;
  text-align: center;
}

.final-chart-point i,
.final-chart-point b,
.final-monthly-bar b {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  border-radius: 999px;
  padding: 1px 4px;
  color: #0f5132;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 5px rgba(16, 42, 36, 0.12);
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
  pointer-events: none;
}

.final-chart-point i {
  top: -18px;
}

.final-chart-point b {
  display: none;
}

.final-monthly-bar b {
  top: -19px;
}

.final-monthly-bar .surplus {
  width: 4px;
  border-radius: 999px 999px 0 0;
  background: #10a36f;
}

.yzx-labelled-chart .chart-inline-tip {
  position: absolute !important;
  left: 8px !important;
  right: 8px !important;
  top: auto !important;
  bottom: 4px !important;
  z-index: 8 !important;
  border-radius: 9px !important;
  padding: 6px 8px !important;
  color: #14372e !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 5px 16px rgba(15, 42, 36, 0.11) !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.chart-touch-point.active i,
.monthly-touch-bar.active b {
  color: #fff !important;
  background: #159268 !important;
}

.chart-fullscreen-body .yzx-labelled-chart .line-chart-box,
.chart-fullscreen-body .yzx-labelled-chart .mixed-chart-box {
  min-width: 760px;
  min-height: 420px;
}

@media (max-width: 380px) {
  .yzx-mini-alerts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 20260603 review usability pass */
.yzx-risk-v2-list {
  gap: 9px;
}

.yzx-risk-v2-card {
  border-radius: 10px;
}

.yzx-risk-v2-card > summary {
  padding: 10px 11px;
}

.yzx-risk-v2-card > summary strong {
  font-size: 15px;
}

.yzx-risk-v2-card > summary em {
  -webkit-line-clamp: unset;
  color: #334e45;
  font-size: 12px;
}

.yzx-risk-v2-card dl div {
  grid-template-columns: 82px 1fr;
  padding: 8px 0;
}

.yzx-risk-v2-card dt {
  color: #4b635a;
}

.yzx-risk-v2-card dd {
  color: #12261f;
  font-weight: 700;
}

.yzx-chart-v2-stack .single-chart-shell {
  overflow: hidden;
}

.yzx-hour-chart .line-chart-box,
.yzx-month-chart .mixed-chart-box {
  min-height: 188px;
  padding-bottom: 28px;
}

.yzx-hour-chart .hour-labels {
  bottom: 8px;
}

.yzx-hour-chart .hour-labels span {
  font-size: 8px;
  color: #8a9b94;
}

.yzx-hour-point i {
  top: -16px;
  padding: 1px 3px;
  font-size: 8px;
}

.yzx-chart-tip {
  position: static !important;
  margin: 8px 8px 0 !important;
  border: 1px solid rgba(15, 118, 110, 0.12) !important;
  border-radius: 8px !important;
  padding: 7px 8px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #14372e !important;
  box-shadow: none !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.yzx-month-chart-box {
  min-width: 100%;
  overflow-x: auto;
}

.yzx-month-chart .monthly-bars {
  min-width: max(100%, 520px);
  height: 172px;
  padding: 24px 8px 24px;
}

.yzx-month-bar {
  min-width: 40px;
  position: relative;
}

.yzx-month-bar b {
  top: -22px;
  font-size: 9px;
}

.yzx-month-bar b.negative {
  color: #b91c1c;
}

.yzx-month-bar b.positive {
  color: #0f766e;
}

.yzx-month-bar span {
  font-size: 10px;
}

.yzx-month-table-wrap {
  margin-top: 10px;
  overflow-x: auto;
}

.yzx-month-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.82);
}

.yzx-month-table th,
.yzx-month-table td {
  border-bottom: 1px solid rgba(15, 118, 110, 0.1);
  padding: 7px 8px;
  text-align: right;
  white-space: nowrap;
}

.yzx-month-table th:first-child,
.yzx-month-table td:first-child {
  text-align: left;
}

.yzx-month-table .positive {
  color: #047857;
  font-weight: 900;
}

.yzx-month-table .negative {
  color: #b91c1c;
  font-weight: 900;
}

.jump-focus {
  outline: 2px solid rgba(239, 68, 68, 0.6);
  outline-offset: 2px;
}

.yzx-labelled-chart .yzx-chart-tip,
.final-labelled-chart .yzx-chart-tip,
.single-chart-shell .chart-zoom-shell .yzx-chart-tip {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  margin: 8px 8px 0 !important;
  transform: none !important;
}

/* 20260603 TRUE EOF mobile audit final chart/risk polish */
.yzx-risk-final-list {
  gap: 8px !important;
}
.yzx-risk-final-card {
  border: 1px solid rgba(213, 231, 223, 0.95) !important;
  border-radius: 9px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,252,249,0.92)) !important;
  box-shadow: 0 6px 16px rgba(20, 62, 45, 0.06) !important;
}
.yzx-risk-final-card.danger {
  border-left: 4px solid #ef4444 !important;
}
.yzx-risk-final-card.warn {
  border-left: 4px solid #f59e0b !important;
}
.yzx-risk-final-card > summary {
  gap: 5px !important;
  padding: 9px 10px !important;
}
.yzx-risk-final-card > summary span {
  font-size: 11px !important;
}
.yzx-risk-final-card > summary strong {
  color: #102a24 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
}
.yzx-risk-final-card > summary em {
  display: block !important;
  color: #35554a !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.yzx-risk-final-card dl {
  padding: 0 10px 9px !important;
}
.yzx-risk-final-card dl div {
  grid-template-columns: 76px minmax(0, 1fr) !important;
  padding: 6px 0 !important;
}
.yzx-hour-final .line-chart-box {
  padding-bottom: 34px !important;
}
.yzx-hour-final .hour-labels {
  bottom: 7px !important;
}
.yzx-hour-final .chart-points {
  bottom: 28px !important;
}
.yzx-hour-final .yzx-chart-tip,
.yzx-month-final .yzx-chart-tip,
.yzx-labelled-chart .yzx-chart-tip,
.final-labelled-chart .yzx-chart-tip,
.single-chart-shell .chart-zoom-shell .yzx-chart-tip {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  display: block !important;
  margin: 8px 8px 0 !important;
  transform: none !important;
  z-index: auto !important;
}
.yzx-month-final .mixed-chart-box {
  min-height: 205px !important;
  overflow-x: auto !important;
}
.yzx-month-final .monthly-bars {
  min-width: max(100%, 560px) !important;
}
.yzx-month-final .yzx-month-table-wrap {
  border-radius: 9px !important;
  border: 1px solid rgba(15, 118, 110, 0.12) !important;
  background: rgba(255,255,255,0.82) !important;
}
/* 20260603 big-report identity consistency pass */
.identity-panel .identity-check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px 4px;
}
.identity-panel .identity-check-grid > div {
  min-width: 0;
  border-radius: 12px;
  padding: 10px 8px;
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(16, 185, 129, 0.16);
}
.identity-panel .identity-check-grid span,
.identity-source-list span {
  display: block;
  color: #60776b;
  font-size: 11px;
  line-height: 1.35;
}
.identity-panel .identity-check-grid strong {
  display: block;
  margin-top: 3px;
  color: #14382b;
  font-size: 18px;
  line-height: 1.15;
}
.identity-panel.warn .identity-check-grid > div:first-child strong {
  color: #b45309;
}
.identity-source-list {
  display: grid;
  gap: 7px;
  padding: 0 12px 12px;
}
.identity-source-list > div {
  display: grid;
  gap: 3px;
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.07);
}
.identity-source-list strong {
  color: #17362b;
  font-size: 13px;
  line-height: 1.45;
  word-break: break-word;
}
.identity-source-note {
  margin: 0 12px 12px;
  color: #60776b;
  font-size: 12px;
  line-height: 1.55;
}
/* 20260603 monthly chart v8: aligned columns and selected month highlight */
.yzx-month-v8 .mixed-chart-box,
.yzx-month-v8.yzx-month-final .mixed-chart-box {
  min-height: 190px !important;
  height: auto !important;
  overflow-x: auto !important;
  padding: 0 !important;
}
.yzx-month-v8 .monthly-bars,
.yzx-month-v8.yzx-month-final .monthly-bars {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: repeat(var(--month-count, 12), minmax(42px, 1fr)) !important;
  align-items: stretch !important;
  gap: 2px !important;
  min-width: max(100%, 560px) !important;
  height: 168px !important;
  padding: 8px 8px 6px !important;
  background:
    linear-gradient(to top, rgba(180, 205, 193, 0.42) 1px, transparent 1px) 0 34px / 100% 31px,
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(247,252,249,0.68));
}
.yzx-month-v8 .yzx-month-bar,
.yzx-month-v8 .monthly-touch-bar,
.chart-fullscreen-body .yzx-month-v8 .yzx-month-bar {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
  min-width: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: 22px minmax(0, 1fr) 26px !important;
  justify-items: center !important;
  align-items: stretch !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  padding: 0 2px !important;
  z-index: 1 !important;
}
.yzx-month-v8 .yzx-month-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: -1;
}
.yzx-month-v8 .yzx-month-bar.active::before,
.yzx-month-v8 .yzx-month-bar:focus-visible::before {
  background: rgba(125, 211, 252, 0.26) !important;
  border-color: rgba(56, 189, 248, 0.46) !important;
}
.yzx-month-v8 .yzx-month-bar b,
.yzx-month-v8 .final-monthly-bar b,
.chart-fullscreen-body .yzx-month-v8 .final-monthly-bar b {
  position: static !important;
  transform: none !important;
  place-self: center !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 1px 3px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,0.88) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
  font-size: 8px !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  z-index: 2 !important;
}
.yzx-month-v8 .yzx-month-bar.active b {
  color: #075985 !important;
  background: rgba(224, 242, 254, 0.98) !important;
}
.yzx-month-v8 .month-bar-area {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(2, 8px) !important;
  justify-content: center !important;
  align-items: end !important;
  gap: 5px !important;
  width: 100% !important;
  min-height: 0 !important;
  padding: 4px 0 0 !important;
}
.yzx-month-v8 .monthly-touch-bar i,
.yzx-month-v8 .yzx-month-bar i,
.chart-fullscreen-body .yzx-month-v8 .monthly-touch-bar i {
  position: static !important;
  align-self: end !important;
  width: 8px !important;
  min-height: 4px !important;
  border-radius: 5px 5px 0 0 !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.08) !important;
}
.yzx-month-v8 .monthly-touch-bar i.income,
.yzx-month-v8 .yzx-month-bar i.income {
  background: #ff7a59 !important;
}
.yzx-month-v8 .monthly-touch-bar i.expense,
.yzx-month-v8 .yzx-month-bar i.expense {
  background: #73c8ee !important;
}
.yzx-month-v8 .yzx-month-bar span,
.yzx-month-v8 .monthly-touch-bar span,
.chart-fullscreen-body .yzx-month-v8 .monthly-touch-bar span {
  position: static !important;
  transform: none !important;
  align-self: center !important;
  color: #5e746a !important;
  font-size: 9px !important;
  line-height: 1.05 !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: keep-all !important;
}
.yzx-month-v8 .yzx-month-bar.active span {
  color: #075985 !important;
  font-weight: 900 !important;
}
.chart-fullscreen-body .yzx-month-v8 .monthly-bars {
  min-width: 860px !important;
  height: 360px !important;
  grid-template-columns: repeat(var(--month-count, 12), minmax(64px, 1fr)) !important;
  padding: 16px 18px 10px !important;
}
.chart-fullscreen-body .yzx-month-v8 .yzx-month-bar {
  grid-template-rows: 34px minmax(0, 1fr) 34px !important;
}
.chart-fullscreen-body .yzx-month-v8 .month-bar-area {
  grid-template-columns: repeat(2, 16px) !important;
  gap: 8px !important;
}
.chart-fullscreen-body .yzx-month-v8 .monthly-touch-bar i {
  width: 16px !important;
}
.chart-fullscreen-body .yzx-month-v8 .final-monthly-bar b {
  font-size: 11px !important;
  padding: 3px 6px !important;
}
/* 20260603 UI v9: soft workbench theme aligned with yzx-cloud-bot */
:root {
  --bg: #f1f5f2;
  --panel: rgba(255, 255, 255, 0.94);
  --ink: #17231d;
  --muted: #65746d;
  --line: rgba(199, 217, 207, 0.78);
  --accent: #20986f;
  --accent-dark: #147a57;
  --ok: #13805d;
  --warn: #b87511;
  --danger: #c94a43;
  --soft-blue: #eaf4ff;
  --soft-green: #e8f7ef;
  --soft-amber: #fff4df;
  --soft-red: #fff0ef;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow: 0 14px 36px rgba(21, 54, 40, 0.10);
  --shadow-sm: 0 6px 18px rgba(21, 54, 40, 0.07);
}
html {
  font-size: 15px;
  background: var(--bg);
}
body {
  background:
    linear-gradient(160deg, rgba(32, 152, 111, 0.10), transparent 32%),
    linear-gradient(340deg, rgba(91, 110, 232, 0.06), transparent 36%),
    var(--bg) !important;
  color: var(--ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button,
input,
select,
textarea {
  font-family: inherit !important;
}
.workbench-view {
  background: transparent !important;
}
.top-bar {
  background: rgba(248, 252, 249, 0.86) !important;
  border-bottom: 1px solid rgba(198, 218, 207, 0.72) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8), 0 8px 22px rgba(27, 65, 48, 0.06) !important;
  backdrop-filter: blur(18px) saturate(1.12) !important;
}
.top-bar h1,
.brand-row h1 {
  color: #11271f !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}
.user-line,
.brand-row p {
  color: #5f766a !important;
  font-weight: 650 !important;
}
.top-actions {
  gap: 8px !important;
}
.content {
  width: min(100%, 860px) !important;
  padding: 12px 12px 22px !important;
  gap: 12px !important;
}
.summary-strip {
  gap: 8px !important;
}
.summary-strip > div,
.summary-strip > button,
.filter-dropdown,
.filter-form,
.report-card,
.detail-section,
.single-chart-shell,
.audit-alert-strip,
.required-panel-compact,
.readable-group,
.bill-detail-group,
.bill-risk-readable-card,
.bill-risk-full-card,
.ability-card,
.bill-kpi,
.platform-upload-item,
.mobile-web-table,
.rent-calculator,
.yzx-month-table-wrap {
  border: 1px solid rgba(199, 217, 207, 0.72) !important;
  border-radius: 14px !important;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(248,252,249,0.88)) !important;
  box-shadow: 0 8px 22px rgba(21, 54, 40, 0.07) !important;
}
.summary-strip > div {
  padding: 12px 13px !important;
}
.summary-strip strong {
  color: #123529 !important;
  font-weight: 850 !important;
}
.summary-strip span,
.meta-item span,
.detail-section span,
.bill-kpi span,
.ability-card span {
  color: #61756d !important;
}
.primary-button,
.ghost-button,
.icon-button,
.text-button,
.zoom-toggle,
.captcha-button,
.chart-fullscreen-overlay header button,
.report-image-close,
.report-image-tool {
  min-height: 42px !important;
  border-radius: 12px !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease !important;
}
.primary-button,
.zoom-toggle {
  background: linear-gradient(135deg, #1f9b72, #35b486) !important;
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(31, 155, 114, 0.22) !important;
}
.ghost-button,
.text-button,
.icon-button,
.captcha-button {
  border: 1px solid rgba(195, 217, 206, 0.82) !important;
  background: rgba(255,255,255,0.74) !important;
  color: #254438 !important;
  box-shadow: 0 5px 14px rgba(21, 54, 40, 0.06) !important;
}
.primary-button:active,
.ghost-button:active,
.icon-button:active,
.text-button:active,
.mode-card:active,
.report-card:active {
  transform: scale(0.985) !important;
}
button:disabled,
button[aria-disabled="true"] {
  color: #9aa9a2 !important;
  background: rgba(238, 244, 241, 0.76) !important;
  box-shadow: none !important;
  opacity: 0.78 !important;
}
.mode-grid {
  gap: 8px !important;
}
.mode-card {
  min-height: 76px !important;
  border: 1px solid rgba(198, 218, 207, 0.82) !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: 0 7px 18px rgba(21, 54, 40, 0.06) !important;
  backdrop-filter: blur(10px) !important;
}
.mode-card strong {
  color: #173a2e !important;
  font-size: 16px !important;
  font-weight: 820 !important;
}
.mode-card span {
  color: #66776f !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}
.mode-card.active {
  background: linear-gradient(135deg, #20986f, #39b786) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 28px rgba(32, 152, 111, 0.24) !important;
}
.mode-card.active strong,
.mode-card.active span {
  color: #fff !important;
}
.report-list {
  gap: 12px !important;
}
.report-card {
  padding: 16px !important;
  gap: 13px !important;
  border-left: 4px solid rgba(32, 152, 111, 0.72) !important;
}
.card-head {
  align-items: center !important;
}
.person-name {
  color: #132f25 !important;
  font-size: 19px !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}
.report-no {
  margin-top: 4px !important;
  color: #7a8a83 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}
.tag {
  border: 1px solid rgba(203, 213, 225, 0.75) !important;
  border-radius: 999px !important;
  padding: 5px 10px !important;
  font-weight: 780 !important;
  box-shadow: none !important;
}
.tag.ok {
  color: #0f7b59 !important;
  background: #e7f8ef !important;
  border-color: rgba(39, 174, 96, 0.24) !important;
}
.tag.warn {
  color: #b87511 !important;
  background: #fff6df !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}
.tag.danger {
  color: #bf3d36 !important;
  background: #fff0ef !important;
  border-color: rgba(239, 68, 68, 0.22) !important;
}
.meta-grid,
.detail-grid,
.compact-fields,
.highlight-grid,
.repayment-grid,
.bill-kpi-grid,
.platform-upload-grid {
  gap: 9px !important;
}
.meta-item,
.detail-grid .meta-item,
.compact-fields .meta-item {
  min-height: 52px !important;
  border: 1px solid rgba(213, 226, 220, 0.72) !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  background: rgba(255, 255, 255, 0.62) !important;
}
.meta-item strong {
  color: #1d352c !important;
  font-size: 14px !important;
  font-weight: 760 !important;
  line-height: 1.35 !important;
}
.meta-item.is-empty {
  opacity: 0.72 !important;
  background: rgba(244, 248, 246, 0.70) !important;
}
.card-actions {
  gap: 10px !important;
}
.filter-dropdown {
  overflow: hidden !important;
}
.filter-summary {
  min-height: 48px !important;
  padding: 12px 14px !important;
}
input,
select,
textarea {
  border-radius: 12px !important;
  border-color: rgba(194, 215, 205, 0.86) !important;
  background: rgba(255,255,255,0.86) !important;
  color: #17231d !important;
  font-weight: 600 !important;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(32, 152, 111, 0.72) !important;
  box-shadow: 0 0 0 3px rgba(32, 152, 111, 0.13) !important;
}
.sheet-backdrop {
  background: rgba(17, 35, 29, 0.28) !important;
  backdrop-filter: blur(5px) !important;
}
.sheet-panel {
  background:
    linear-gradient(160deg, rgba(32, 152, 111, 0.10), transparent 36%),
    linear-gradient(340deg, rgba(91, 110, 232, 0.05), transparent 38%),
    #f4f8f5 !important;
  box-shadow: 0 -18px 42px rgba(18, 41, 31, 0.16) !important;
}
.sheet-header {
  background: rgba(248,252,249,0.90) !important;
  border-bottom: 1px solid rgba(198, 218, 207, 0.72) !important;
  backdrop-filter: blur(18px) !important;
}
.sheet-kicker {
  color: #20986f !important;
  font-weight: 800 !important;
}
.sheet-header h2 {
  color: #122c23 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}
.close-button {
  color: #27473b !important;
  background: rgba(255,255,255,0.82) !important;
}
.detail-body {
  gap: 12px !important;
  padding: 2px 2px 88px !important;
}
.detail-section {
  padding: 14px !important;
}
.detail-section h3,
.single-chart-shell h3,
.required-panel-compact summary span {
  color: #123529 !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}
.detail-section h3::before {
  background: linear-gradient(180deg, #20986f, #59c99a) !important;
}
.audit-alert-strip,
.yzx-mini-alerts,
.yzx-compact-alerts {
  gap: 7px !important;
}
.audit-alert,
.compact-alert,
.yzx-mini-alerts .audit-alert {
  border-radius: 13px !important;
  border: 1px solid rgba(199, 217, 207, 0.72) !important;
  box-shadow: 0 7px 18px rgba(21, 54, 40, 0.06) !important;
}
.required-panel-compact {
  overflow: hidden !important;
}
.required-panel-compact > summary {
  border-radius: 14px 14px 0 0 !important;
  background: rgba(255,255,255,0.70) !important;
}
.required-panel-compact.warn > summary {
  background: linear-gradient(90deg, rgba(255, 249, 231, 0.98), rgba(248, 252, 249, 0.92)) !important;
}
.required-panel-compact.danger > summary,
.required-panel-compact.critical > summary {
  background: linear-gradient(90deg, rgba(255, 240, 239, 0.98), rgba(255, 249, 231, 0.90)) !important;
}
.required-panel-compact summary strong {
  box-shadow: none !important;
  font-weight: 780 !important;
}
.mobile-web-table,
.audit-line-chart,
.audit-mixed-chart,
.bill-chart-card {
  border-radius: 14px !important;
  background: rgba(255,255,255,0.86) !important;
}
.web-report-table,
.yzx-month-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.web-report-table th,
.web-report-table td,
.yzx-month-table th,
.yzx-month-table td {
  border-color: rgba(202, 220, 211, 0.62) !important;
  font-weight: 650 !important;
}
.web-report-table thead th,
.yzx-month-table th {
  background: rgba(232, 247, 239, 0.88) !important;
  color: #174736 !important;
}
.chart-inline-tip,
.yzx-chart-tip {
  border-radius: 12px !important;
  background: rgba(255,255,255,0.90) !important;
  border-color: rgba(199, 217, 207, 0.72) !important;
  color: #24483b !important;
}
.robot-switch-nav {
  left: 50% !important;
  right: auto !important;
  width: min(360px, calc(100vw - 24px)) !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255,255,255,0.78) !important;
  background: rgba(255,255,255,0.88) !important;
  box-shadow: 0 14px 36px rgba(20, 34, 55, 0.16) !important;
  transform: translateX(-50%) !important;
  backdrop-filter: blur(14px) saturate(1.08) !important;
}
.robot-switch-nav a {
  border-radius: 13px !important;
  font-weight: 760 !important;
}
.robot-switch-nav a.active {
  background: linear-gradient(135deg, #20986f, #39b786) !important;
  box-shadow: 0 8px 18px rgba(32, 152, 111, 0.22) !important;
}
.empty-state {
  border-radius: 14px !important;
  border-color: rgba(199, 217, 207, 0.82) !important;
  background: rgba(255,255,255,0.78) !important;
}
.login-view {
  background:
    linear-gradient(160deg, rgba(32, 152, 111, 0.14), transparent 34%),
    linear-gradient(340deg, rgba(91, 110, 232, 0.08), transparent 38%),
    #f1f5f2 !important;
}
.login-panel,
.yicha-panel {
  border-radius: 18px !important;
  border-color: rgba(199, 217, 207, 0.82) !important;
  background: rgba(255,255,255,0.92) !important;
  box-shadow: 0 20px 46px rgba(21, 54, 40, 0.13) !important;
}
.brand-mark {
  border-radius: 14px !important;
  background: linear-gradient(135deg, #20986f, #39b786) !important;
  box-shadow: 0 10px 22px rgba(32, 152, 111, 0.22) !important;
}
@media (max-width: 430px) {
  .content {
    padding: 10px 10px 20px !important;
  }
  .mode-card {
    min-height: 72px !important;
    padding: 11px 9px !important;
  }
  .report-card {
    padding: 14px !important;
  }
  .person-name {
    font-size: 18px !important;
  }
  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .meta-item {
    min-height: 50px !important;
    padding: 8px 9px !important;
  }
  .card-actions.read-only:has(button + button) {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}