.approval-page {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 14px;
  overflow: hidden;
  animation: fadeUp 220ms var(--ease) both;
}

.approval-detail {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.detail-scroll {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 4px;
  overflow: auto;
}

.detail-hero {
  display: grid;
  gap: 10px;
  padding: 18px 24px 18px;
  border: 1px solid #edf2f7;
  background: #fff;
  overflow: visible;
}

.progress-card {
  padding: 18px 22px 20px;
  border: 1px solid #edf2f7;
  background: #fff;
}

.hero-banner {
  display: grid;
  gap: 0;
}

.hero-banner-main {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 2fr);
  align-items: center;
  gap: 16px;
  min-height: 104px;
}

.applicant-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.portrait {
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

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

.applicant-copy {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.applicant-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.applicant-card h2 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.identity-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  background: var(--theme-primary-soft);
  border: 1px solid rgba(var(--theme-primary-rgb), .16);
  color: var(--theme-primary-active);
  font-size: 11px;
  font-weight: 800;
}

.applicant-profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 28px;
}

.applicant-profile-meta__org {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.applicant-profile-meta__role {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 0;
  min-width: 0;
}

.applicant-meta-item {
  min-width: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.applicant-profile-meta__role .applicant-meta-item + .applicant-meta-item {
  margin-left: 16px;
}

.applicant-profile-meta__role .applicant-meta-item + .applicant-meta-item::before {
  content: "/";
  position: absolute;
  left: -10px;
  color: #cbd5e1;
  font-size: 12px;
}

.applicant-meta-item--sub strong {
  font-weight: 750;
}

.applicant-meta-item em {
  font-style: normal;
  color: #64748b;
  flex-shrink: 0;
}

.applicant-meta-item strong {
  color: #0f172a;
  font-weight: 800;
}

.hero-fact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 0;
}

.hero-fact {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 92px;
  padding: 8px 22px;
  background: transparent;
  border-left: 1px solid #eaf0f6;
}

.hero-fact:first-child {
  border-left: 0;
}

.hero-fact-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.hero-fact-label i {
  font-size: 15px;
  color: #94a3b8;
}

.hero-fact strong {
  min-width: 0;
  max-width: 100%;
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.hero-fact:first-child strong {
  font-size: 15px;
}

.hero-fact strong.amount {
  font-size: 22px;
  font-weight: 900;
}

.hero-fact strong.status {
  color: #f97316;
}

.progress-block {
  padding-top: 0;
  border-top: 0;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.progress-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-size: 14px;
  font-weight: 850;
}

.progress-head h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--theme-primary);
  box-shadow: 0 0 0 4px var(--theme-focus-ring);
}

.progress-line {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--progress-columns, 5), minmax(118px, 1fr));
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 2px 2px;
}

.progress-step {
  position: relative;
  display: grid;
  grid-template-rows: 26px minmax(62px, auto);
  justify-items: center;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 0 6px;
  color: #94a3b8;
}

.progress-step::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  z-index: 0;
  height: 2px;
  background: #dbe4ee;
}

.progress-step::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  right: 0;
  z-index: 0;
  height: 2px;
  background: var(--theme-primary);
  opacity: 0;
}

.progress-step.done::after { opacity: 1; }
.progress-step.current::after {
  right: 50%;
  opacity: 1;
}

.progress-step:first-child::before,
.progress-step:first-child.done::after { left: 50%; }
.progress-step:first-child.current::after {
  left: 50%;
  right: 50%;
}
.progress-step:last-child::before,
.progress-step:last-child::after { right: 50%; }

.progress-step span {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
}

.current-progress-ring {
  position: absolute;
  inset: -4px;
  z-index: -1;
  border: 2px solid rgba(var(--theme-primary-rgb), .42);
  border-radius: 999px;
  pointer-events: none;
}

.progress-step.active span {
  background: var(--theme-primary-active);
  color: #fff;
}

.progress-step.current span {
  background: var(--theme-primary) !important;
  color: #fff !important;
  box-shadow: 0 0 0 4px var(--theme-focus-ring) !important;
  animation: breathe-dot 3.2s ease-in-out infinite !important;
  transform-origin: center !important;
}

@keyframes breathe-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(var(--theme-primary-rgb), .3), 0 0 0 4px var(--theme-focus-ring);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 4px 20px rgba(var(--theme-primary-rgb), .5), 0 0 0 10px rgba(var(--theme-primary-rgb), .08);
  }
}

.progress-step strong {
  color: #334155;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
}

.progress-step.current strong { color: var(--theme-primary-active); }

.progress-step-copy {
  width: 100%;
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 6px;
}

.progress-step-status {
  box-sizing: border-box;
  width: 100%;
  max-width: 136px;
  min-width: 0;
  min-height: 22px;
  display: block;
  padding: 0 9px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-step.done .progress-step-status {
  border-color: rgba(var(--theme-primary-rgb), .2);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.progress-step.current .progress-step-status {
  border-color: rgba(var(--theme-primary-rgb), .22);
  background: var(--theme-primary);
  color: #fff;
  box-shadow: 0 8px 18px var(--theme-primary-shadow);
}

.progress-step:not(.done):not(.current) .progress-step-status {
  background: #f8fafc;
  color: #94a3b8;
}

.progress-step.current small {
  color: var(--theme-primary-active);
}

.progress-step-meta {
  display: block;
  width: 100%;
  min-height: 16px;
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.progress-step.current .progress-step-meta {
  color: #475569;
}

.detail-grid {
  display: block;
  min-width: 0;
}

.detail-left {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.detail-card {
  min-width: 0;
  padding: 16px 18px;
}

.detail-card h3 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 16px;
  font-weight: 850;
}

.detail-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.detail-card-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-card-head h3 {
  margin-bottom: 4px;
}

.detail-card-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.5;
}

.detail-card-title-with-icon i {
  margin-top: 1px;
  color: #334155;
  font-size: 18px;
  line-height: 1;
}

.detail-card-head p {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.smart-entry-btn {
  min-width: 104px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  border: 1px solid #dbe4ee;
  border-radius: 4px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.smart-entry-btn.secondary {
  background: #fff;
  color: var(--theme-primary-active);
  border-color: rgba(var(--theme-primary-rgb), .24);
}

.smart-entry-btn:hover {
  border-color: rgba(var(--theme-primary-rgb), .36);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.detail-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 102px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 4px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
  font-size: 14px;
  font-weight: 900;
}

.detail-card textarea {
  width: 100%;
  min-height: 84px;
  resize: none;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
}

.detail-note {
  min-height: 84px;
  padding: 12px 14px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.detail-note.readonly {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.detail-note.readonly p {
  margin: 0;
  white-space: pre-wrap;
}

.related-application-facts {
  margin-top: 0;
}

.related-application-empty {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
}

.related-application-empty strong {
  color: #334155;
  font-size: 13px;
  font-weight: 850;
}

.related-application-empty p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

.detail-note-editor {
  display: grid;
  gap: 10px;
}

.detail-note-editor textarea {
  min-height: 92px;
  border-color: rgba(var(--theme-primary-rgb), .28);
  background: #fff;
}

.detail-note-editor textarea:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 3px var(--theme-focus-ring);
  outline: none;
}

.detail-note-editor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.detail-note-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 8px;
}

.application-leader-opinion {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 0 4px;
  border-top: 1px solid #e5edf5;
  background: #ffffff;
}

.application-leader-opinion-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #334155;
  font-size: 14px;
  line-height: 1.5;
}

.application-leader-opinion-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
}

.application-leader-opinion-head span i {
  color: #64748b;
  font-size: 17px;
  line-height: 1;
}

.application-leader-opinion-head strong {
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
}

.application-leader-opinion-timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 2px 0 0;
}

.application-leader-opinion-event {
  --leader-opinion-tone: #16a34a;
  position: relative;
  display: grid;
  grid-template-columns: 104px 28px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 16px;
}

.application-leader-opinion-event:last-child {
  padding-bottom: 0;
}

.application-leader-opinion-event-time {
  display: grid;
  gap: 3px;
  justify-items: end;
  padding-top: 1px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
}

.application-leader-opinion-event-time strong {
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.application-leader-opinion-event-time em {
  color: #94a3b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.application-leader-opinion-event-rail {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 1px;
}

.application-leader-opinion-event-rail::after {
  content: "";
  position: absolute;
  top: 24px;
  bottom: -16px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #e2e8f0;
}

.application-leader-opinion-event:last-child .application-leader-opinion-event-rail::after {
  display: none;
}

.application-leader-opinion-event.danger {
  --leader-opinion-tone: #dc2626;
}

.application-leader-opinion-event.success {
  --leader-opinion-tone: #16a34a;
}

.application-leader-opinion-event-status {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--leader-opinion-tone);
  border-radius: 999px;
  background: var(--leader-opinion-tone);
  color: #ffffff;
  box-shadow: 0 0 0 4px #ffffff;
}

.application-leader-opinion-event-status i {
  font-size: 13px;
  line-height: 1;
}

.application-leader-opinion-record {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 0 0 16px;
  border-bottom: 1px solid #edf2f7;
  background: #ffffff;
}

.application-leader-opinion-event:last-child .application-leader-opinion-record {
  padding-bottom: 0;
  border-bottom: 0;
}

.application-leader-opinion-record-head {
  display: grid;
  gap: 6px;
}

.application-leader-opinion-record-title {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.application-leader-opinion-record-title strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.application-leader-opinion-record-title::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--leader-opinion-tone);
}

.application-leader-opinion-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
}

.application-leader-opinion-record-meta div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.application-leader-opinion-record-meta dt,
.application-leader-opinion-record-meta dd {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.45;
}

.application-leader-opinion-record-meta dt {
  color: #94a3b8;
}

.application-leader-opinion-record-meta dd {
  color: #475569;
}

.application-leader-opinion-record p {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #edf2f7;
  border-radius: 4px;
  background: #f8fafc;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
}

.application-leader-opinion-event-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.application-leader-opinion-event-foot span {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

@media (max-width: 720px) {
  .application-leader-opinion {
    padding-top: 12px;
  }

  .application-leader-opinion-event {
    grid-template-columns: 76px 24px minmax(0, 1fr);
    gap: 8px;
  }

  .application-leader-opinion-event-status {
    width: 20px;
    height: 20px;
  }

  .application-leader-opinion-event-time strong {
    font-size: 12px;
  }

  .application-leader-opinion-event-time em {
    font-size: 11px;
  }
}

.detail-expense-table {
  --expense-editor-control-height: 34px;
  --expense-editor-control-line-height: 16px;
  --expense-editor-control-padding-y: calc((var(--expense-editor-control-height) - var(--expense-editor-control-line-height) - 2px) / 2);
  min-width: 0;
  overflow-x: auto;
}

.expense-recognition-banner {
  min-width: 760px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(var(--theme-primary-rgb), .20);
  border-radius: 4px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
  font-size: 12px;
  font-weight: 800;
}

.expense-recognition-banner i {
  font-size: 16px;
}

.standard-adjustment-banner {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.submit-progress-banner {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.detail-expense-table table {
  width: 100%;
  min-width: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.detail-expense-table th,
.detail-expense-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #edf2f7;
  color: #24324a;
  text-align: center;
  font-size: 12px;
  vertical-align: middle;
  white-space: normal;
}

.detail-expense-table th {
  position: static;
  background: #f7fafc;
  color: #64748b;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.detail-expense-table tbody tr:hover td {
  background: #fbfefd;
}

.detail-expense-table tbody tr.system-generated-row td {
  background: var(--success-soft);
  border-bottom-color: var(--success-line);
}

.detail-expense-table tbody tr.system-generated-row:hover td {
  background: var(--success-soft);
}

.detail-expense-table .col-time { width: 10%; }
.detail-expense-table .col-filled-at { width: 13%; }
.detail-expense-table .col-type { width: 14%; }
.detail-expense-table .col-desc { width: 15%; }
.detail-expense-table .col-amount { width: 9%; }
.detail-expense-table .col-attachment { width: 15%; }
.detail-expense-table .col-risk-note { width: 15%; }
.detail-expense-table .col-action { width: 9%; }

.expense-time {
  min-width: 0;
}

.expense-time-content {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.expense-time-value {
  min-width: 0;
}

.expense-risk-indicator,
.expense-risk-indicator-placeholder {
  width: 18px;
  height: 18px;
}

.expense-risk-indicator {
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  color: #dc2626;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.expense-risk-indicator:hover {
  color: #b91c1c;
}

.expense-risk-indicator:focus-visible {
  outline: 2px solid rgba(220, 38, 38, .28);
  outline-offset: 2px;
}

.cell-editor {
  display: grid;
  gap: 7px;
  justify-items: stretch;
}

.editor-stack {
  grid-template-columns: minmax(0, 1fr);
}

.editor-control,
.editor-select {
  width: 100%;
  min-width: 0;
  --el-component-size: var(--expense-editor-control-height) !important;
  --el-component-size-small: var(--expense-editor-control-height) !important;
  --el-input-height: var(--expense-editor-control-height) !important;
  box-sizing: border-box !important;
}

.editor-control:not(.risk-note-editor-input),
.editor-select {
  min-height: var(--expense-editor-control-height);
  height: var(--expense-editor-control-height);
}

.editor-select {
  padding: 0;
  border: 0;
  background: transparent;
}

.editor-date-picker.el-date-editor {
  --el-date-editor-width: 100%;
}

.editor-date-picker.editor-control :deep(.el-input__wrapper) {
  gap: 4px;
  padding: 0 7px !important;
}

.editor-date-picker.editor-control :deep(.el-input__prefix) {
  flex: 0 0 14px;
  width: 14px;
  min-width: 14px;
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.editor-date-picker.editor-control :deep(.el-input__prefix-inner) {
  width: 14px;
  font-size: 13px;
}

.editor-date-picker.editor-control :deep(.el-input__suffix) {
  display: none !important;
}

.editor-control :deep(.el-input__wrapper),
.editor-control :deep(.el-select__wrapper),
.editor-select :deep(.el-select__wrapper),
.editor-date-picker :deep(.el-input__wrapper) {
  box-sizing: border-box !important;
  padding: 0 10px !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px #d7e0ea inset !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.editor-control:focus-within :deep(.el-input__wrapper),
.editor-control:focus-within :deep(.el-select__wrapper),
.editor-select:focus-within :deep(.el-select__wrapper),
.editor-date-picker:focus-within :deep(.el-input__wrapper) {
  box-shadow: 0 0 0 1px var(--theme-primary) inset, 0 0 0 3px var(--theme-focus-ring);
}

.editor-control :deep(.el-input__inner),
.editor-select :deep(.el-select__selected-item),
.editor-select :deep(.el-select__placeholder),
.editor-date-picker :deep(.el-input__inner) {
  height: var(--expense-editor-control-line-height) !important;
  color: #0f172a;
  font-size: 12px;
  line-height: var(--expense-editor-control-line-height) !important;
}

.editor-control :deep(.el-input__prefix),
.editor-control :deep(.el-input__suffix),
.editor-date-picker :deep(.el-input__prefix),
.editor-date-picker :deep(.el-input__suffix) {
  display: inline-flex;
  align-items: center;
}

.editor-select :deep(.el-select__wrapper) {
  min-height: var(--expense-editor-control-height);
  height: var(--expense-editor-control-height);
}

.editor-amount-input :deep(.el-input__prefix) {
  min-height: var(--expense-editor-control-height);
  height: var(--expense-editor-control-height);
  color: #334155;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.editor-amount-input :deep(.el-input__prefix-inner) {
  display: inline-flex;
  align-items: center;
  height: var(--expense-editor-control-line-height);
  line-height: var(--expense-editor-control-line-height);
}

.editor-amount-input.editor-control {
  display: flex;
  align-items: center;
}

.risk-note-editor-input.editor-control {
  min-height: var(--expense-editor-control-height);
  height: var(--expense-editor-control-height);
}

.risk-note-editor-input.el-textarea {
  min-height: var(--expense-editor-control-height);
  height: var(--expense-editor-control-height);
}

.risk-note-editor-input :deep(.el-textarea__inner) {
  display: block !important;
  box-sizing: border-box !important;
  min-height: var(--expense-editor-control-height) !important;
  height: var(--expense-editor-control-height);
  line-height: var(--expense-editor-control-line-height) !important;
  max-height: calc(var(--expense-editor-control-height) + var(--expense-editor-control-line-height) * 2) !important;
  padding: var(--expense-editor-control-padding-y) 10px !important;
  border-radius: 4px !important;
  color: #0f172a !important;
  font-size: 12px !important;
  resize: none !important;
  overflow-y: hidden !important;
  box-shadow: 0 0 0 1px #d7e0ea inset !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

.risk-note-editor-input :deep(.el-textarea__inner:focus) {
  box-shadow: 0 0 0 1px var(--theme-primary) inset, 0 0 0 3px var(--theme-focus-ring);
}

/* 隐藏金额输入框的原生微调箭头 */
.editor-amount-input :deep(input::-webkit-outer-spin-button),
.editor-amount-input :deep(input::-webkit-inner-spin-button) {
  -webkit-appearance: none;
  margin: 0;
}
.editor-amount-input :deep(input[type=number]) {
  -moz-appearance: textfield;
}

.cell-editor > span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

.expense-time strong,
.expense-filled-at strong,
.expense-type strong,
.expense-desc strong,
.expense-amount strong {
  display: block;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
  text-align: center;
}

.expense-time span,
.expense-filled-at span,
.expense-type span,
.expense-desc span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.45;
  text-align: center;
}

.expense-amount strong {
  white-space: nowrap;
}

.expense-adjusted-amount {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.expense-original-amount {
  color: #b91c1c;
  font-size: 12px;
  font-weight: 760;
  text-decoration-line: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(185, 28, 28, .82);
  white-space: nowrap;
}

.expense-reimbursable-amount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #0f172a;
  font-size: 13px;
  font-weight: 880;
  white-space: nowrap;
}

.expense-reimbursable-label {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 5px;
  border-radius: 3px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 10px;
  font-weight: 850;
}

.expense-adjusted-amount em {
  color: #991b1b;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
  white-space: nowrap;
}

.expense-filled-at strong {
  font-size: 12px;
  white-space: nowrap;
}

.expense-desc,
.detail-expense-table .col-desc {
  text-align: left;
}

.expense-desc strong,
.expense-desc span,
.expense-risk p {
  text-align: left;
}

.expense-risk-note strong {
  display: block;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.expense-risk-note span {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.expense-risk-note .risk-note-missing {
  color: #b45309;
  font-weight: 750;
}

.over-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.over-tag.bad {
  background: #fff7ed;
  color: #ea580c;
}

.over-tag.system {
  background: var(--success-soft);
  color: var(--success-hover);
}

.expense-total-under-table {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--theme-primary-rgb), .22);
  border-radius: 4px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.expense-total-under-table span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.expense-total-under-table strong {
  color: var(--theme-primary-active);
  font-size: 17px;
  font-weight: 900;
}

.attachment-action-group {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.expense-attachment .attachment-hint {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.attachment-hint.compact {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-recognition {
  margin-top: 8px;
  text-align: left;
}

.attachment-recognition-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.attachment-recognition-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  background: #eff6ff;
  color: #1d4ed8;
}

.attachment-recognition-pill.type {
  background: #f8fafc;
  color: #334155;
}

.attachment-recognition-pill.pass {
  background: var(--success-soft);
  color: var(--success-hover);
}

.attachment-recognition-pill.medium {
  background: #fff7ed;
  color: #c2410c;
}

.attachment-recognition-pill.high {
  background: #fef2f2;
  color: #b91c1c;
}

.attachment-recognition-message {
  margin: 8px 0 0;
  color: #475569;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}

.attachment-recognition-fields {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #475569;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}

.icon-action,
.risk-inline-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
}

.icon-action {
  border: 1px solid #dbe4ee;
  background: #fff;
  color: #475569;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-action.upload {
  background: var(--theme-primary-soft);
  border-color: rgba(var(--theme-primary-rgb), .24);
  color: var(--theme-primary-active);
}

.icon-action.preview {
  background: #f8fafc;
  color: #2563eb;
}

.icon-action.danger {
  background: #fff5f5;
  color: #dc2626;
  border-color: rgba(239, 68, 68, .18);
}

.icon-action:hover:not(:disabled) {
  transform: translateY(-1px);
}

.inline-action {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dbe4ee;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
}

.inline-action.accent {
  border-color: rgba(var(--theme-primary-rgb), .24);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.inline-action.primary {
  border-color: var(--theme-primary);
  background: var(--theme-primary);
  color: #fff;
}

.inline-action.danger {
  border-color: rgba(239, 68, 68, .2);
  background: #fff5f5;
  color: #dc2626;
}

.inline-action:hover {
  border-color: rgba(var(--theme-primary-rgb), .36);
  color: var(--theme-primary-active);
}

.inline-action.primary:hover {
  border-color: var(--theme-primary-active);
  background: var(--theme-primary-active);
  color: #fff;
}

.inline-action.danger:hover {
  border-color: rgba(220, 38, 38, .3);
  background: #fee2e2;
  color: #b91c1c;
}

.expense-action-cell {
  min-width: 128px;
}

.system-row-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 4px;
  background: var(--success-soft);
  color: var(--success-hover);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.system-attachment-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 4px;
  background: var(--success-soft);
  color: var(--success-hover);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.row-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.detail-expense-table .row-action-group .inline-action {
  min-height: var(--expense-editor-control-height);
  height: var(--expense-editor-control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.risk-inline-tag {
  min-height: 24px;
  width: auto;
  padding: 0 8px;
  font-size: 11px;
  white-space: nowrap;
}

.risk-inline-tag.pass,
.risk-inline-tag.low { background: var(--success-soft); color: var(--success-hover); }
.risk-inline-tag.medium { background: #fff7ed; color: #ea580c; }
.risk-inline-tag.high { background: #fef2f2; color: #dc2626; }

.risk-headline {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
  text-align: left;
}

.expense-risk p {
  margin-top: 6px;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}

.risk-point-list {
  margin: 8px 0 0;
  padding-left: 16px;
  color: #475569;
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
}

.risk-suggestion {
  color: var(--success-hover);
  font-weight: 700;
}

.system-attachment-note.pending {
  border-color: rgba(var(--theme-primary-rgb), .20);
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
}

.empty-row-cell {
  padding: 22px 16px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  background: #fcfdfd;
}

.expense-upload-input {
  display: none;
}

.smart-entry-upload-panel {
  display: grid;
  gap: 12px;
}

.smart-entry-upload-picker {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(var(--theme-primary-rgb), .28);
  border-radius: 4px;
  background: #fff;
  color: var(--theme-primary-active);
  font-size: 13px;
  font-weight: 850;
}

.smart-entry-upload-picker:hover {
  background: var(--theme-primary-soft);
}

.smart-entry-upload-picker:disabled {
  cursor: not-allowed;
  opacity: .64;
}

.smart-entry-upload-file {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
}

.smart-entry-upload-file > i {
  color: var(--theme-primary-active);
  font-size: 24px;
}

.smart-entry-upload-file strong,
.smart-entry-upload-file span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.smart-entry-upload-file strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.smart-entry-upload-file span {
  margin-top: 3px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.smart-entry-upload-list {
  display: grid;
  gap: 2px;
  max-height: 84px;
  margin: 8px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.smart-entry-upload-list li {
  min-width: 0;
  overflow: hidden;
  color: #334155;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.smart-entry-upload-clear {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.attachment-preview-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.attachment-preview-card {
  width: min(1160px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(var(--theme-primary-rgb), .14);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 28px 56px rgba(15, 23, 42, .2);
}

.attachment-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.attachment-preview-toolbar {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.attachment-preview-nav,
.attachment-preview-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
  background: rgba(255, 255, 255, .9);
  color: #475569;
}

.attachment-preview-nav:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.attachment-preview-count {
  min-width: 48px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.attachment-preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--theme-primary-soft);
  color: var(--theme-primary-active);
  font-size: 12px;
  font-weight: 800;
}

.attachment-preview-head h4 {
  margin: 10px 0 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 800;
}

.attachment-preview-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  align-items: stretch;
  gap: 16px;
  overflow: hidden;
  background: transparent;
}

.attachment-source-pane,
.attachment-insight-pane {
  min-height: 0;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  background: #f8fafc;
}

.attachment-source-pane {
  display: grid;
  place-items: center;
}

.attachment-preview-image,
.attachment-preview-frame {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  object-fit: contain;
  background: #fff;
}

.attachment-insight-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 18px;
  overflow-y: auto;
  background: #fff;
}

.attachment-insight-head {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.attachment-insight-head span,
.attachment-insight-section span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.attachment-insight-head strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.attachment-insight-content {
  display: grid;
  align-content: start;
  gap: 14px;
  padding-top: 14px;
}

.attachment-insight-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.attachment-insight-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 4px;
  background: #f8fafc;
}

.attachment-insight-section ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
  color: #334155;
  font-size: 12px;
  line-height: 1.55;
}

.attachment-risk-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #fee2e2;
  border-radius: 4px;
  background: #fff7f7;
}

.attachment-risk-card.medium {
  border-color: #fed7aa;
  background: #fffaf2;
}

.attachment-risk-card strong {
  color: #991b1b;
  font-size: 12px;
  line-height: 1.45;
}

.attachment-risk-card.medium strong {
  color: #9a3412;
}

.attachment-risk-card p {
  margin: 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}

.attachment-preview-state {
  min-height: 320px;
  display: grid;
  place-items: center;
  gap: 10px;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.attachment-preview-state.compact {
  min-height: 180px;
  padding: 20px;
}

.attachment-preview-state i {
  font-size: 24px;
}

.attachment-preview-state.error {
  color: #dc2626;
}

.detail-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid #e5eaf0;
  background: transparent;
}

.detail-actions button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 760;
}

.detail-actions button:disabled,
.inline-action:disabled,
.icon-action:disabled {
  cursor: not-allowed;
  opacity: .58;
  box-shadow: none;
}

.back-action {
  min-width: 104px;
  border: 1px solid #d7e0ea;
  background: #fff;
  color: #475569;
}

.approval-action-group {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: auto;
}

.approve-action {
  min-width: 92px;
  border: 1px solid var(--success);
  background: var(--success);
  color: #fff;
  box-shadow: 0 4px 10px rgba(var(--success-rgb), .14);
}

.reject-action {
  min-width: 98px;
  border: 1px solid #fecaca;
  background: #fff;
  color: #ef4444;
}

.secondary-action {
  min-width: 98px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
}

.return-action {
  min-width: 98px;
  border: 1px solid #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.detail-action-hint {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

.submit-confirm-summary {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: #f8fafc;
}

.submit-confirm-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.submit-confirm-row strong {
  min-width: 0;
  color: #0f172a;
  font-weight: 780;
  text-align: right;
  word-break: break-word;
}

.risk-override-panel {
  display: grid;
  gap: 12px;
}

.risk-override-card-shell {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: stretch;
  gap: 6px;
}

.risk-override-side-nav {
  width: 28px;
  min-height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border: 1px solid #dbe3ee;
  border-radius: 4px;
  background: #f8fafc;
  color: #475569;
  font-size: 16px;
}

.risk-override-side-nav:not(:disabled):hover {
  border-color: #b8c5d6;
  background: #eef4fb;
  color: #1e293b;
}

.risk-override-side-nav:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.risk-override-index {
  display: inline-flex;
  justify-content: center;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.risk-override-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 4px;
  background: #fffafa;
}

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

.risk-override-card-head span {
  flex: 0 0 auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 850;
}

.risk-override-card-head strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.risk-override-card p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.6;
}

.risk-override-notes {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.risk-override-notes span {
  color: #64748b;
  font-size: 11px;
  font-weight: 850;
}

.risk-override-notes strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 780;
  line-height: 1.55;
}

.risk-override-guidance {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 4px;
  background: #eff6ff;
}

.risk-override-guidance strong {
  color: #1e40af;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
}

.risk-override-guidance span {
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

.validation-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.validation-section--risk .risk-advice-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.validation-section--risk .risk-advice-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, .9fr);
  align-items: start;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px 10px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.03);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.validation-section--risk .risk-advice-card.is-highlighted {
  border-color: #f59e0b;
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .20), 0 8px 18px rgba(15, 23, 42, .08);
  animation: risk-card-flash 1.2s ease-in-out 1;
}

@keyframes risk-card-flash {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .18), 0 8px 18px rgba(15, 23, 42, .08);
  }
  45% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, .30), 0 10px 22px rgba(15, 23, 42, .10);
  }
}

@media (prefers-reduced-motion: reduce) {
  .validation-section--risk .risk-advice-card.is-highlighted {
    animation: none;
  }
}

.validation-section--risk .risk-advice-card::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 7px;
  width: 3px;
  border-radius: 1px;
  background: #ef4444;
}

.validation-section--risk .risk-advice-card.medium {
  border-color: #f3e8d9;
  background: #fffcf7;
}

.validation-section--risk .risk-advice-card.medium::before {
  background: #f97316;
}

.validation-section--risk .risk-advice-card.low {
  border-color: #dbeafe;
  background: #f8fbff;
}

.validation-section--risk .risk-advice-card.low::before {
  background: #2563eb;
}

.risk-advice-card-main,
.risk-advice-compact-meta {
  min-width: 0;
}

.risk-advice-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.risk-advice-card-head span {
  flex: 0 0 auto;
  height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid #fecaca;
  border-radius: 2px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
}

.risk-advice-card.medium .risk-advice-card-head span {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #c2410c;
}

.risk-advice-card.low .risk-advice-card-head span {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.risk-advice-card-head strong {
  min-width: 0;
  color: #0f172a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-advice-point {
  display: -webkit-box;
  margin: 5px 0 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.risk-advice-compact-meta {
  display: grid;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid #e2e8f0;
}

.risk-advice-compact-meta span,
.risk-advice-compact-meta em {
  margin: 0;
  color: #334155;
  font-size: 11px;
  line-height: 1.5;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-advice-compact-meta span {
  color: #64748b;
}

@media (max-width: 1180px) {
  .validation-section--risk .risk-advice-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .risk-advice-compact-meta {
    padding-left: 0;
    border-left: 0;
  }
}
