:root {
  color-scheme: light;
  --color-bg: #f4f7f7;
  --color-surface: #ffffff;
  --color-surface-muted: #eef4f3;
  --color-text: #132421;
  --color-muted: #657370;
  --color-border: #d6e0df;
  --color-border-strong: #b7c6c4;
  --color-primary: #0f5f55;
  --color-primary-hover: #0a463f;
  --color-danger-bg: #fff4ed;
  --color-danger-text: #8f2f11;
  --color-danger-border: #f0b79e;
  --color-success-bg: #edf8f4;
  --color-success-text: #0f513f;
  --color-success-border: #a8d9c6;
  --shadow-sticky: 0 1px 0 rgba(15, 40, 36, 0.04);
  --radius-sm: 4px;
  --radius-md: 6px;
  --row-height: 30px;
  --index-width: 52px;
  --subject-width: 260px;
  --amount-width: 190px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

button {
  letter-spacing: 0;
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.app-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 88px);
  min-height: 0;
  overflow: hidden;
}

.app-main {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0 auto;
  max-width: 1280px;
  min-height: 0;
  overflow: hidden;
  padding: 16px 18px 18px;
  width: 100%;
}

.result-main {
  overflow: auto;
  overflow-x: hidden;
  padding-bottom: 24px;
}

.analysis-main {
  background: #ecebe4;
  display: block;
  max-width: none;
  overflow: auto;
  overflow-x: hidden;
  padding: 56px 24px;
}

.body-case-switcher {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 95, 85, 0.16);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(15, 95, 85, 0.08);
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 24px;
  max-width: max-content;
  padding: 8px 10px 8px 18px;
}

.body-case-switcher__label {
  color: var(--color-text);
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.body-case-switcher__options {
  display: flex;
  gap: 6px;
}

.body-case-switcher__option {
  align-items: center;
  background: #eaf4f2;
  border: 1px solid rgba(15, 95, 85, 0.14);
  border-radius: 999px;
  color: var(--color-primary);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  min-height: 38px;
  padding: 0 16px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.body-case-switcher__option:hover,
.body-case-switcher__option.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.analysis-main--preview {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  overflow: hidden;
  padding: 16px 18px 18px;
}

.upload-card {
  background: #ffffff;
  border: 1px solid rgba(209, 208, 200, 0.8);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  margin: 0 auto;
  max-width: 896px;
  padding: 40px;
  width: 100%;
}

.personal-diagnosis {
  margin: 0 auto;
  max-width: 720px;
  width: 100%;
}

.personal-income-gate {
  background: #ffffff;
  border: 1px solid rgba(209, 208, 200, 0.86);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  display: grid;
  gap: 26px;
  margin: 0 auto;
  max-width: 720px;
  padding: 40px;
  width: 100%;
}

.personal-income-gate__header {
  display: grid;
  gap: 10px;
}

.personal-income-gate__header h1 {
  color: var(--color-text);
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.personal-income-gate__header p {
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

.personal-income-gate__actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personal-income-option {
  background: #f8fbfa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.personal-income-option:hover {
  border-color: rgba(15, 95, 85, 0.42);
  box-shadow: 0 12px 26px rgba(15, 95, 85, 0.12);
  transform: translateY(-2px);
}

.personal-income-option strong {
  color: var(--color-primary);
  font-size: 20px;
  line-height: 1.35;
}

.personal-income-option span {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.55;
}

.personal-diagnosis__stage {
  background: #ffffff;
  border: 1px solid rgba(209, 208, 200, 0.86);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: min(620px, calc(100vh - 220px));
  overflow: hidden;
}

.personal-diagnosis__stage[hidden] {
  display: none;
}

.personal-diagnosis__back {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--color-muted);
  cursor: pointer;
  display: inline-flex;
  font-size: 28px;
  font-weight: 700;
  height: 58px;
  justify-content: center;
  margin-left: 18px;
  margin-top: 8px;
  width: 48px;
}

.personal-diagnosis__back:not(:disabled):hover {
  color: var(--color-primary);
}

.personal-diagnosis__back:disabled {
  opacity: 0.25;
  pointer-events: none;
}

.personal-diagnosis__body {
  min-height: 0;
  overflow-y: auto;
  padding: 24px 40px 28px;
}

.personal-diagnosis__eyebrow {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 900;
  margin: 0 0 14px;
}

.personal-diagnosis__body h1 {
  color: var(--color-text);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 28px;
  word-break: keep-all;
}

.personal-diagnosis__body h1 strong {
  color: var(--color-primary);
  font-weight: 900;
}

.personal-diagnosis__body h2 {
  color: var(--color-text);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 30px 0 14px;
  word-break: keep-all;
}

.personal-diagnosis__body p,
.personal-diagnosis__lead {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  margin: 0 0 24px;
}

.personal-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.personal-choice-grid--four {
  max-width: 220px;
}

.personal-choice-grid--three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.personal-choice-grid--compact {
  max-width: 220px;
}

.personal-choice {
  align-items: center;
  background: var(--color-surface-muted);
  border: 1px solid #cbd8d6;
  border-radius: var(--radius-md);
  color: #243b3a;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  min-width: 96px;
  padding: 0 18px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.personal-choice:hover,
.personal-choice.is-selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-1px);
}

.personal-followup {
  margin-top: 34px;
}

.personal-followup > p {
  font-size: 13px;
  line-height: 1.45;
  margin: -10px 0 16px;
}

.personal-info-box,
.personal-warning {
  background: #f7fbfa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: #31504c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
  margin: 0 0 26px;
  padding: 16px 18px;
}

.personal-info-box strong,
.personal-warning strong {
  color: var(--color-text);
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.personal-info-box p,
.personal-warning p {
  color: inherit;
  font-size: 15px;
  line-height: 1.65;
  margin: 0;
}

.personal-info-box ul {
  margin: 0;
  padding-left: 18px;
}

.personal-warning {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-border);
  color: var(--color-danger-text);
}

.personal-warning strong {
  color: var(--color-danger-text);
}

.personal-range {
  display: grid;
  gap: 10px;
  margin: 26px 0 34px;
}

.personal-range output {
  align-self: center;
  background: var(--color-primary);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  justify-self: center;
  min-width: 44px;
  padding: 3px 10px;
  text-align: center;
}

.personal-range input[type="range"] {
  accent-color: var(--color-primary);
  width: 100%;
}

.personal-range__ticks {
  color: var(--color-muted);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
}

.personal-money-field {
  display: grid;
  gap: 10px;
  margin: 18px 0 42px;
}

.personal-money-field span {
  align-self: center;
  background: var(--color-success-bg);
  border-radius: 999px;
  color: var(--color-success-text);
  font-size: 13px;
  font-weight: 900;
  justify-self: end;
  padding: 5px 12px;
}

.personal-money-field input {
  border: 0;
  border-bottom: 2px solid var(--color-border-strong);
  color: var(--color-text);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 900;
  outline: none;
  padding: 10px 0 12px;
  text-align: right;
  width: 100%;
}

.personal-money-field input::placeholder {
  color: #aab8b5;
}

.personal-money-field small {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}

.personal-region-card {
  align-items: center;
  background: #f7fbfa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 14px;
  padding: 22px;
  text-align: left;
  width: 100%;
}

.personal-region-card span,
.personal-region-grid span {
  color: var(--color-primary);
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 8px;
}

.personal-region-card strong,
.personal-region-grid strong {
  color: var(--color-text);
  font-size: 17px;
  font-weight: 900;
}

.personal-region-card em {
  background: var(--color-primary);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-style: normal;
  font-weight: 900;
  padding: 10px 14px;
}

.personal-region-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.personal-region-grid > div {
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 18px;
  text-align: center;
}

.personal-checkbox-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.personal-checkbox-grid label {
  align-items: center;
  background: var(--color-surface-muted);
  border: 1px solid #cbd8d6;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 72px;
  padding: 10px;
}

.personal-checkbox-grid label:has(input:checked) {
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
}

.personal-checkbox-grid input {
  accent-color: var(--color-primary);
  height: 20px;
  width: 20px;
}

.personal-checkbox-grid span {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 800;
}

.personal-next {
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-md);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  justify-self: end;
  margin: 0 40px 32px;
  min-height: 42px;
  padding: 0 28px;
  width: auto;
}

.personal-next:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.personal-report-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: none;
  display: grid;
  justify-items: center;
  margin-bottom: 22px;
  padding: 26px;
  text-align: center;
}

.personal-report-card__emoji {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 16px;
}

.personal-report-card strong {
  color: var(--color-text);
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.personal-report-card p {
  margin: 0;
}

.personal-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 22px;
}

.personal-summary-grid div {
  background: var(--color-surface-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.personal-summary-grid dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

.personal-summary-grid dd {
  color: var(--color-text);
  font-size: 17px;
  font-weight: 900;
  margin: 0;
}

.personal-report-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.upload-card__intro {
  margin-bottom: 24px;
}

.upload-card__eyebrow {
  color: var(--color-primary);
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.upload-card__intro h1 {
  color: var(--color-text);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  margin: 0 0 10px;
}

.upload-card__intro p {
  color: var(--color-muted);
  font-size: 15px;
  margin: 0;
}

.case-type-switcher {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 28px;
}

.case-type-switcher__item {
  background: #f8fbfa;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-muted);
  display: block;
  min-width: 0;
  padding: 16px;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.case-type-switcher__item:hover,
.case-type-switcher__item.is-active {
  background: #ffffff;
  border-color: rgba(15, 95, 85, 0.45);
  box-shadow: 0 10px 26px rgba(15, 95, 85, 0.1);
  transform: translateY(-1px);
}

.case-type-switcher__item strong {
  color: var(--color-text);
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.case-type-switcher__item span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  word-break: keep-all;
}

.upload-type-summary,
.account-type-summary {
  align-items: center;
  background: #f7fbfa;
  border: 1px solid rgba(15, 95, 85, 0.18);
  border-radius: 12px;
  color: var(--color-muted);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 24px;
  padding: 14px 16px;
}

.upload-type-summary span,
.account-type-summary span {
  font-size: 13px;
  font-weight: 800;
}

.upload-type-summary strong,
.account-type-summary strong {
  color: var(--color-primary);
  font-size: 15px;
  font-weight: 900;
}

.drop-upload-form {
  display: grid;
  gap: 20px;
}

.upload-drop-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-field {
  min-width: 0;
}

.upload-field__label {
  color: #1a1a1a;
  display: block;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 14px;
}

.drop-zone {
  align-items: center;
  background: #ffffff;
  border: 2px dashed #d1d0c8;
  border-radius: 16px;
  color: #6b6b6b;
  cursor: pointer;
  display: flex;
  justify-content: center;
  min-height: 214px;
  min-width: 0;
  padding: 30px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging,
.drop-zone.has-file {
  background: #f8f7f3;
  border-color: #2d2d2d;
}

.drop-zone.is-dragging {
  transform: scale(1.02);
}

.drop-zone input {
  display: none;
}

.drop-zone__idle,
.drop-zone__selected {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.drop-zone__icon {
  align-items: center;
  background: #ecebe4;
  border-radius: 999px;
  color: #6b6b6b;
  display: inline-flex;
  height: 52px;
  justify-content: center;
  margin-bottom: 14px;
  width: 52px;
}

.drop-zone__icon--selected {
  background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
  color: #ffffff;
}

.drop-zone__icon svg {
  height: 26px;
  width: 26px;
}

.drop-zone strong {
  color: #1a1a1a;
  display: block;
  font-size: 16px;
  font-weight: 700;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: keep-all;
}

.drop-zone__idle > span:last-child,
.drop-zone__selected > span:last-child {
  color: #6b6b6b;
  font-size: 12px;
  margin-top: 4px;
}

.upload-error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-radius: 16px;
  color: #c53030;
  font-weight: 700;
  padding: 16px 18px;
}

.upload-error[hidden],
.upload-progress[hidden],
.drop-zone__idle[hidden],
.drop-zone__selected[hidden] {
  display: none;
}

.account-main {
  background: #ecebe4;
  display: block;
  max-width: none;
  overflow: auto;
  overflow-x: hidden;
  padding: 56px 24px;
}

.account-card,
.history-panel,
.mypage-header {
  background: var(--color-surface);
  border: 1px solid rgba(209, 208, 200, 0.86);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  margin: 0 auto;
  max-width: 880px;
  padding: 28px;
  width: 100%;
}

.account-card--narrow {
  max-width: 520px;
}

.account-main--wide .history-panel,
.account-main--wide .mypage-header {
  max-width: 1080px;
}

.account-card__header,
.history-panel__header {
  margin-bottom: 22px;
}

.account-card__header h1,
.mypage-header h1,
.history-panel__header h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.account-card__header p,
.mypage-header p,
.history-panel__header p,
.account-note {
  color: var(--color-muted);
  font-size: 13px;
  margin: 0;
}

.account-form {
  display: grid;
  gap: 18px;
}

.account-form__grid {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field span {
  color: var(--color-text);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.checkbox-field {
  align-items: flex-start;
  color: var(--color-muted);
  display: inline-flex;
  font-size: 13px;
  gap: 8px;
  line-height: 1.45;
}

.checkbox-field input {
  margin-top: 2px;
}

.account-actions,
.history-item__actions,
.mypage-header {
  align-items: center;
  display: flex;
  gap: 10px;
}

.account-actions {
  justify-content: flex-end;
}

.account-subsection,
.account-support-entry,
.account-danger-zone {
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 16px;
}

.account-support-entry {
  background: #f8fbfa;
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
  max-width: 880px;
  width: 100%;
}

.account-subsection h2,
.account-support-entry h2,
.account-danger-zone h2 {
  font-size: 16px;
  margin: 0 0 6px;
}

.account-subsection p,
.account-support-entry p,
.account-danger-zone p {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.account-danger-zone {
  background: #fffaf7;
  border-color: #efd0c4;
}

.status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  margin-left: 6px;
  padding: 3px 7px;
  vertical-align: middle;
}

.status-badge.is-verified {
  background: #dff3eb;
  color: #0f6f5f;
}

.status-badge.is-unverified {
  background: #fff2cf;
  color: #8a5b00;
}

.mypage-header {
  justify-content: space-between;
  margin-bottom: 16px;
}

.mypage-profile-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 10px 0 0;
}

.mypage-profile-summary div {
  align-items: baseline;
  display: inline-flex;
  gap: 5px;
}

.mypage-profile-summary dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.mypage-profile-summary dd {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.mypage-header__actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

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

.history-item {
  align-items: start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 152px;
  padding: 16px;
}

.history-item__date {
  color: var(--color-muted);
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
}

.history-item h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.history-item h3 small {
  color: var(--color-muted);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
}

.history-item__actions {
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
  justify-content: flex-start;
}

.history-item__actions form {
  margin: 0;
  width: 100%;
}

.history-item__actions .button {
  font-size: 14px;
  width: 100%;
}

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

.history-item__action-row .button {
  font-size: 13px;
}

.history-title-form {
  margin: 0;
}

.history-title-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 17px;
  font-weight: 800;
  height: 32px;
  max-width: 520px;
  padding: 0 6px;
  width: 100%;
}

.history-title-input:hover {
  background: #f8fbfa;
  border-color: var(--color-border);
}

.history-title-input:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  outline: 2px solid rgba(15, 95, 85, 0.14);
}

.history-title-input::placeholder {
  color: #8a9996;
  font-weight: 700;
}

.history-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.history-summary__chip {
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 6px 10px;
}

.history-summary__chip strong {
  color: var(--color-text);
}

.history-summary__chip.is-positive {
  background: #dff3eb;
  border-color: #a8dbc9;
  color: #0f6f5f;
}

.history-summary__chip.is-negative {
  background: #fde9e1;
  border-color: #f0b9a8;
  color: #a83d24;
}

.history-summary__chip.is-warning {
  background: #fff2cf;
  border-color: #e8cc86;
  color: #8a5b00;
}

.history-summary__chip.is-neutral {
  background: #e9eeee;
  border-color: #c6d0ce;
  color: #52615f;
}

.support-workspace {
  display: grid;
  gap: 16px;
}

.support-document-tabs {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0;
  padding-bottom: 10px;
}

.support-document-tab {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-width: 116px;
}

.support-document-tab span {
  background: rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
}

.support-document-tab.is-active span {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.support-document-tab.is-disabled {
  cursor: default;
  opacity: 0.72;
}

.support-document-panel {
  display: grid;
  gap: 18px;
}

.support-document-panel.is-hidden {
  display: none;
}

.support-document-hero {
  align-items: stretch;
  background: linear-gradient(135deg, #f7fbfa 0%, #ffffff 58%, #f5f1e8 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 280px;
  padding: 22px;
}

.support-document-eyebrow {
  color: var(--color-primary);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
}

.support-document-hero h3 {
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0 0 10px;
}

.support-document-hero p,
.support-document-status p {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.support-document-status {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(197, 214, 211, 0.9);
  border-radius: var(--radius-md);
  display: grid;
  gap: 6px;
  padding: 16px;
}

.support-document-status span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.support-document-status strong {
  color: var(--color-primary);
  font-size: 17px;
  line-height: 1.35;
}

.support-document-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-document-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.support-document-card h4 {
  font-size: 16px;
  margin: 0 0 12px;
}

.support-document-card ul {
  color: #334945;
  display: grid;
  font-size: 13px;
  gap: 8px;
  line-height: 1.45;
  margin: 0;
  padding-left: 18px;
}

.support-document-flow {
  background: #f7faf9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px;
}

.support-document-flow div {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9e5e2;
  border-radius: var(--radius-sm);
  display: flex;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
}

.support-document-flow strong {
  align-items: center;
  background: var(--color-primary);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 26px;
  font-size: 13px;
  height: 26px;
  justify-content: center;
}

.support-document-flow span {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
}

.support-document-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.button:disabled,
.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.button:disabled:hover {
  box-shadow: none;
}

.button-primary:disabled:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.empty-state {
  align-items: center;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 36px 16px;
  text-align: center;
}

.empty-state h3 {
  margin: 0;
}

.empty-state p {
  color: var(--color-muted);
  font-size: 13px;
  margin: 0;
}

.admin-header,
.admin-panel,
.admin-stat-card {
  background: var(--color-surface);
  border: 1px solid rgba(209, 208, 200, 0.86);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.admin-header,
.admin-panel {
  margin: 0 auto 16px;
  max-width: 1180px;
  padding: 24px;
  width: 100%;
}

.admin-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-eyebrow {
  color: var(--color-primary);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.admin-header h1,
.admin-panel__header h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.admin-header p,
.admin-panel__header p {
  color: var(--color-muted);
  font-size: 13px;
  margin: 0;
}

.admin-header__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.admin-header__actions form {
  margin: 0;
}

.admin-stat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 auto 16px;
  max-width: 1180px;
}

.admin-stat-card {
  padding: 16px;
}

.admin-stat-card span {
  color: var(--color-muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-stat-card strong {
  color: var(--color-text);
  display: block;
  font-size: 24px;
  line-height: 1;
}

.admin-panel__header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.admin-case-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 124px;
  padding: 16px;
}

.admin-case-card__meta {
  align-items: center;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 6px;
  margin-bottom: 8px;
}

.admin-case-card h3 {
  font-size: 18px;
  margin: 0;
}

.admin-case-card h3 small {
  color: var(--color-muted);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-left: 8px;
}

.admin-case-card__actions {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-contact-line,
.admin-detail-list {
  display: grid;
  gap: 8px 14px;
  margin: 12px 0 0;
}

.admin-contact-line {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-contact-line div,
.admin-detail-list div {
  min-width: 0;
}

.admin-contact-line dt,
.admin-detail-list dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-contact-line dd,
.admin-detail-list dd {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.admin-number-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.admin-number-strip span {
  background: #f4f8f7;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.admin-status {
  border: 1px solid var(--color-border);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  padding: 5px 9px;
}

.admin-status.is-positive {
  background: #dff3eb;
  border-color: #a8dbc9;
  color: #0f6f5f;
}

.admin-status.is-negative {
  background: #fde9e1;
  border-color: #f0b9a8;
  color: #a83d24;
}

.admin-status.is-warning {
  background: #fff2cf;
  border-color: #e8cc86;
  color: #8a5b00;
}

.admin-status.is-neutral {
  background: #e9eeee;
  border-color: #c6d0ce;
  color: #52615f;
}

.admin-detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  margin: 0 auto;
  max-width: 1180px;
}

.admin-detail-grid .admin-panel {
  margin-bottom: 0;
}

.admin-detail-list {
  grid-template-columns: 1fr;
}

.admin-memo-input {
  min-height: 180px;
  resize: vertical;
}

.admin-summary-grid {
  margin-top: 16px;
}

.admin-file-list {
  color: var(--color-text);
  display: grid;
  font-size: 13px;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.admin-file-list strong {
  margin-right: 8px;
}

.admin-table-frame {
  max-height: none;
  overflow: auto;
}

.admin-table {
  min-width: 980px;
}

.admin-settings-form {
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
}

.admin-settings-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-setting-field {
  background: #f8fbfa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.admin-setting-field__label {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 900;
}

.admin-setting-field__control {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-setting-field__control > span {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 900;
}

.admin-setting-field__note {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.55;
}

.admin-settings-footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-settings-footer strong {
  color: var(--color-text);
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.admin-settings-footer p {
  color: var(--color-muted);
  font-size: 13px;
  margin: 0;
}

.admin-settings-snapshot {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-settings-snapshot__group {
  background: #f8fbfa;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.admin-settings-snapshot__group > strong {
  color: var(--color-text);
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}

.admin-settings-snapshot__group dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

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

.admin-settings-snapshot__group dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-settings-snapshot__group dd {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 900;
  margin: 0;
}

.consultation-account-note {
  background: #f4f8f7;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-muted);
  font-size: 13px;
  margin: 12px 0 0;
  padding: 10px 12px;
}

.consultation-account-note a {
  color: var(--color-primary);
  font-weight: 800;
  text-decoration: none;
}

.upload-progress {
  align-items: center;
  background: linear-gradient(135deg, #f8f7f3, #ecebe4);
  border: 1px solid #d1d0c8;
  border-radius: 16px;
  color: #2d2d2d;
  display: flex;
  font-weight: 700;
  gap: 14px;
  padding: 16px 18px;
}

.upload-spinner {
  animation: upload-spin 800ms linear infinite;
  border: 2px solid #d1d0c8;
  border-radius: 999px;
  border-top-color: #2d2d2d;
  flex: 0 0 auto;
  height: 24px;
  width: 24px;
}

.upload-help {
  color: #6b6b6b;
  font-size: 13px;
  line-height: 1.6;
  margin: -4px 0 0;
}

.upload-submit {
  background: linear-gradient(90deg, #2d2d2d, #1a1a1a);
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  font-size: 15px;
  height: 48px;
  width: 100%;
}

.upload-submit:hover {
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.16);
}

.upload-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

@keyframes upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  height: 40px;
  justify-content: center;
  padding: 0 18px;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.button-secondary {
  background: var(--color-surface-muted);
  border-color: #cbd8d6;
  color: #243b3a;
}

.button-secondary:hover {
  background: #e3ecea;
}

.button-kakao {
  background: #fee500;
  border-color: rgba(172, 144, 0, 0.32);
  color: #231f20;
}

.button-kakao:hover {
  background: #f5dc00;
  border-color: rgba(143, 119, 0, 0.42);
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.56;
  pointer-events: none;
}

.button-danger {
  background: #fff7f4;
  border-color: #e3b5a8;
  color: #8f2f11;
}

.button-danger:hover {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-border);
  color: var(--color-danger-text);
}

.button-compact {
  flex: 0 0 auto;
  font-size: 12px;
  height: 30px;
  min-width: auto;
  padding: 0 10px;
}

.notice {
  border-radius: var(--radius-md);
  flex: 0 0 auto;
  margin-bottom: 16px;
  padding: 12px 14px;
}

.notice-error {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
  color: var(--color-danger-text);
}

.notice-success {
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success-text);
}

.toast-stack {
  display: grid;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
  z-index: 20;
}

.toast {
  animation: toast-in 180ms ease-out, toast-out 240ms ease-in 4.2s forwards;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 36px rgba(15, 36, 33, 0.18);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  padding: 14px 16px;
}

.toast-success {
  background: #ffffff;
  border: 1px solid var(--color-success-border);
  color: var(--color-success-text);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(8px);
    visibility: hidden;
  }
}

.workflow-panel {
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex: 0 0 auto;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 14px;
  min-width: 0;
  padding: 12px 14px;
}

.workflow-panel__meta {
  align-items: center;
  color: var(--color-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
  justify-content: flex-end;
}

.workflow-panel__meta strong {
  color: var(--color-text);
}

.workflow-panel__type {
  background: #eef5f3;
  border: 1px solid #cadbd7;
  border-radius: 999px;
  color: #0f5f55;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 10px;
}

.workflow-panel__download {
  min-height: 34px;
  padding: 0 12px;
}

.summary-grid {
  align-items: stretch;
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 14px;
}

.summary-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 0;
  padding: 12px 14px;
}

.summary-card__label {
  color: var(--color-muted);
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}

.summary-card strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-infographic {
  display: grid;
  flex: 0 0 auto;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 14px;
}

.result-visual-panel {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  min-width: 0;
  padding: 16px;
}

.result-visual-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
  min-width: 0;
}

.result-visual-header h3 {
  font-size: 15px;
  margin: 0;
}

.result-visual-header p {
  color: var(--color-muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 4px 0 0;
}

.result-status-pill {
  background: #e9f6f1;
  border: 1px solid #a8d9c6;
  border-radius: 999px;
  color: #0f513f;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.result-status-pill.is-negative {
  background: #fff4ed;
  border-color: #f0b79e;
  color: #8f2f11;
}

.value-bar-list,
.coverage-list {
  display: grid;
  gap: 12px;
}

.value-bar-label,
.coverage-label {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 6px;
  min-width: 0;
}

.value-bar-label span,
.coverage-label span {
  color: #314042;
  font-size: 12px;
  font-weight: 800;
}

.value-bar-label strong,
.coverage-label strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.value-bar-track,
.coverage-track {
  background: #edf2f2;
  border-radius: 999px;
  height: 14px;
  overflow: hidden;
}

.coverage-track {
  height: 10px;
}

.value-bar-fill,
.coverage-fill {
  border-radius: inherit;
  display: block;
  height: 100%;
}

.value-bar-fill {
  width: var(--bar-width);
}

.coverage-fill {
  width: var(--coverage-width);
}

.value-bar-row.is-liquidation .value-bar-fill,
.coverage-row.is-liquidation .coverage-fill {
  background: #2b7bbb;
}

.value-bar-row.is-going .value-bar-fill,
.coverage-row.is-going .coverage-fill {
  background: var(--color-primary);
}

.value-bar-row.is-debt .value-bar-fill {
  background: #d4a62f;
}

.value-bar-row.is-negative .value-bar-fill {
  background: repeating-linear-gradient(
    135deg,
    #b5472b 0,
    #b5472b 6px,
    #d9876f 6px,
    #d9876f 12px
  );
}

.tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-button {
  background: #e8eeee;
  border: 1px solid #cbd5d5;
  border-radius: var(--radius-md);
  color: #314042;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 14px;
  height: 38px;
  max-width: 260px;
  overflow: hidden;
  padding: 0 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-button.is-active {
  background: #163832;
  border-color: #163832;
  color: #ffffff;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.section-header {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 6px;
}

.section-header h2 {
  font-size: 17px;
  margin: 0;
}

.title-with-help {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  position: relative;
}

.info-tooltip {
  display: inline-flex;
  flex: 0 0 auto;
  line-height: 1;
  position: relative;
  vertical-align: middle;
  z-index: 8;
}

.info-tooltip.is-open,
.info-tooltip.is-pinned {
  z-index: 2147483000;
}

.info-tooltip__trigger {
  align-items: center;
  background: #e8eeee;
  border: 1px solid #b8c8c6;
  border-radius: 999px;
  color: #24413d;
  cursor: help;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  height: 18px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 18px;
}

.info-tooltip__trigger:hover,
.info-tooltip__trigger:focus {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  outline: none;
}

.info-tooltip__content {
  background: #ffffff;
  border: 1px solid #b7c6c4;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 34px rgba(19, 36, 33, 0.18);
  color: var(--color-text);
  display: none;
  font-size: 12px;
  font-weight: 400;
  left: var(--tooltip-left, 12px);
  line-height: 1.55;
  max-height: calc(100vh - 24px);
  max-width: calc(100vw - 40px);
  overflow: auto;
  pointer-events: none;
  padding: 12px 14px;
  position: fixed;
  text-align: left;
  top: var(--tooltip-top, 12px);
  transform: none;
  width: var(--tooltip-width, min(440px, calc(100vw - 24px)));
  z-index: 2147483001;
}

.info-tooltip.is-open .info-tooltip__content,
.info-tooltip.is-pinned .info-tooltip__content {
  display: block;
}

.info-tooltip__content::before {
  background: #ffffff;
  border-left: 1px solid #b7c6c4;
  border-top: 1px solid #b7c6c4;
  content: "";
  height: 10px;
  left: var(--tooltip-arrow-left, 14px);
  position: absolute;
  top: -6px;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
}

.info-tooltip.is-above .info-tooltip__content::before {
  border: 0;
  border-bottom: 1px solid #b7c6c4;
  border-right: 1px solid #b7c6c4;
  bottom: -6px;
  top: auto;
}

.info-tooltip__content strong {
  display: block;
  font-size: 12.5px;
  font-weight: 900;
  margin-bottom: 7px;
  text-align: left;
}

.tooltip-list {
  display: grid;
  gap: 4px;
  text-align: left;
}

.tooltip-list > span {
  display: block;
  padding-left: 11px;
  position: relative;
  text-align: left;
}

.tooltip-list > span::before {
  background: var(--color-primary);
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  top: 0.72em;
  width: 4px;
}

.table-heading-help {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
}

.row-label-help {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  min-width: 0;
}

.section-header p {
  color: var(--color-muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.table-frame {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.financial-frame {
  display: grid;
  gap: 8px;
  max-height: none;
  padding: 12px;
}

.debt-frame {
  display: grid;
  gap: 8px;
  max-height: none;
  padding: 12px;
}

.income-frame {
  display: grid;
  gap: 18px;
  max-height: none;
  padding: 12px;
}

.collateral-frame {
  display: grid;
  gap: 18px;
  max-height: none;
  padding: 12px;
}

.result-frame {
  display: grid;
  gap: 18px;
  flex: 0 0 auto;
  max-height: none;
  overflow: visible;
  padding: 12px;
}

.spreadsheet-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
  table-layout: fixed;
  width: auto;
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  table-layout: fixed;
  width: 100%;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  height: 38px;
  padding: 5px 8px;
  vertical-align: middle;
}

.data-table thead th {
  background: #edf2f2;
  color: #405054;
  font-weight: 800;
  text-align: center;
}

.financial-frame .financial-table thead {
  background: #edf2f2;
  position: relative;
  z-index: 7;
}

.financial-frame .financial-table thead th {
  background: #edf2f2;
  background-clip: padding-box;
  box-shadow: 0 1px 0 var(--color-border), 0 -12px 0 #edf2f2;
  position: sticky;
  top: 0;
  z-index: 8;
}

.financial-table {
  min-width: 860px;
}

.debt-table {
  min-width: 760px;
}

.income-table {
  min-width: 1120px;
}

.collateral-table {
  min-width: 920px;
}

.rent-table {
  min-width: 760px;
}

.result-table {
  min-width: 0;
}

.worksheet-review-table {
  min-width: 1680px;
}

.worksheet-review-table .col-row {
  width: 64px;
}

.worksheet-review-table .col-account {
  width: 260px;
}

.worksheet-review-table th:not(.col-row):not(.col-account),
.worksheet-review-table td:not(.row-number-cell):not(.account-cell) {
  width: 110px;
}

.financial-table .col-account {
  width: 38%;
}

.financial-table .col-amount,
.debt-table .col-amount {
  width: 20.666%;
}

.debt-table .col-account {
  width: 50%;
}

.debt-table .col-count {
  width: 22%;
}

.debt-table .col-amount {
  width: 28%;
}

.income-table .col-account {
  width: 24%;
}

.income-table .col-amount,
.income-table .col-rate {
  width: 15.2%;
}

.collateral-table .col-account {
  width: 40%;
}

.collateral-table .col-amount {
  width: 30%;
}

.rent-table .col-account,
.rent-table .col-amount {
  width: 50%;
}

.result-table .col-account {
  width: 40%;
}

.result-table .col-amount {
  width: 20%;
}

.fee-table .col-count {
  width: 16%;
}

.debt-effect-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 10px 34px rgba(14, 61, 52, 0.08);
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 20px;
}

.debt-effect-card h3 {
  color: #0f513f;
  font-size: 28px;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.debt-effect-card p {
  color: var(--color-muted);
  font-size: 13px;
  margin: 0;
}

.debt-effect-header {
  align-items: end;
  border-bottom: 1px solid #e3ecea;
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
}

.debt-effect-header__unit {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.debt-effect-overview {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 270px;
}

.debt-effect-total {
  border: 1px solid #dce7e4;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  overflow: hidden;
}

.debt-effect-total__label {
  align-items: center;
  background: linear-gradient(180deg, #f7faf9, #eef5f3);
  border-right: 1px solid #dce7e4;
  color: #17373c;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  font-weight: 900;
  justify-content: center;
  line-height: 1.35;
  text-align: center;
}

.debt-effect-total__label span {
  color: #32575b;
  font-size: 15px;
}

.debt-effect-total__bars {
  display: grid;
}

.debt-effect-total-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 76px minmax(0, 1fr) 112px;
  padding: 18px 14px;
}

.debt-effect-total-row + .debt-effect-total-row {
  border-top: 1px solid #e3ecea;
}

.debt-effect-total-row > strong {
  color: #0f513f;
  font-size: 20px;
  line-height: 1.2;
}

.debt-effect-total-row > strong span {
  color: #32575b;
  font-size: 13px;
}

.debt-effect-total-row.is-liquidation > strong {
  color: #17405e;
}

.debt-effect-row-meta {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 7px;
}

.debt-effect-row-meta span {
  color: #172c2f;
  font-size: 13px;
  font-weight: 800;
}

.debt-effect-row-meta em {
  color: var(--color-primary);
  font-style: normal;
  margin-left: 4px;
}

.debt-effect-bar,
.debt-effect-mini__bar {
  background: #edf1f0;
  border-radius: 8px;
  display: flex;
  height: 44px;
  overflow: hidden;
}

.debt-effect-bar__paid,
.debt-effect-mini__paid {
  background: linear-gradient(90deg, #43a866, #0f7a46);
  min-width: 0;
}

.debt-effect-total-row.is-liquidation .debt-effect-bar__paid,
.debt-effect-mini:not(.is-going) .debt-effect-mini__paid {
  background: linear-gradient(90deg, #59b577, #27914e);
}

.debt-effect-bar__unpaid,
.debt-effect-mini__unpaid {
  background: linear-gradient(90deg, #f1f2f1, #dedfdf);
  min-width: 0;
}

.debt-effect-total-row__debt {
  color: #17373c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  text-align: right;
}

.debt-effect-highlight {
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #f6fbf9);
  border: 1px solid #cfe5dc;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.debt-effect-highlight__icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 72px;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  width: 72px;
}

.debt-effect-highlight__icon img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.debt-effect-highlight strong {
  color: #0f513f;
  font-size: 15px;
}

.debt-effect-highlight em {
  color: #0b7a41;
  font-size: 26px;
  font-style: normal;
  font-weight: 900;
  margin-top: 8px;
}

.debt-effect-highlight.is-negative .debt-effect-highlight__icon {
  filter: saturate(0.75);
}

.debt-effect-highlight.is-negative em,
.debt-effect-highlight.is-negative strong {
  color: #a63c25;
}

.debt-effect-highlight p {
  font-size: 12px;
  line-height: 1.45;
  margin-top: 10px;
}

.debt-effect-metrics {
  border: 1px solid #dce7e4;
  border-radius: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.debt-effect-metric {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
  padding: 16px 22px;
}

.debt-effect-metric + .debt-effect-metric {
  border-left: 1px solid #dce7e4;
}

.debt-effect-metric__icon {
  align-items: center;
  background: #f6fbf9;
  border: 1px solid #dce7e4;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(15, 122, 70, 0.08);
  display: inline-flex;
  flex: 0 0 auto;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 58px;
}

.debt-effect-metric__icon::before,
.debt-effect-metric__icon::after {
  display: none;
}

.debt-effect-metric__icon img {
  display: block;
  height: 50px;
  object-fit: contain;
  width: 50px;
}

.debt-effect-metric__icon.is-liquidation {
  background: #f5f8fb;
}

.debt-effect-metric__icon.is-going {
  background: #f4fbf8;
}

.debt-effect-metric span {
  color: #314042;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 5px;
}

.debt-effect-metric strong {
  color: #0f513f;
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.debt-effect-detail {
  border: 1px solid #dce7e4;
  border-radius: 14px;
  overflow: hidden;
}

.debt-effect-detail__header,
.debt-effect-detail__row {
  display: grid;
  grid-template-columns: 210px 150px minmax(220px, 1fr) minmax(220px, 1fr) 110px;
}

.debt-effect-detail__header {
  background: #eef5f3;
  color: #17373c;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.debt-effect-detail__header span {
  border-left: 1px solid #dce7e4;
  padding: 11px 10px;
}

.debt-effect-detail__header span:first-child {
  border-left: 0;
}

.debt-effect-detail__row {
  align-items: center;
  background: #fff;
}

.debt-effect-detail__row + .debt-effect-detail__row {
  border-top: 1px solid #e3ecea;
}

.debt-effect-detail__row > * {
  border-left: 1px solid #e3ecea;
  min-width: 0;
  padding: 12px 10px;
}

.debt-effect-detail__row > *:first-child {
  border-left: 0;
}

.debt-effect-group {
  align-items: center;
  display: flex;
  gap: 10px;
}

.debt-effect-group span {
  align-items: center;
  background: #29945f;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.debt-effect-group strong {
  color: #17373c;
  font-size: 13px;
  line-height: 1.35;
}

.debt-effect-amount {
  color: #17373c;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.debt-effect-mini {
  display: grid;
  gap: 6px;
}

.debt-effect-mini__bar {
  height: 34px;
}

.debt-effect-mini__numbers {
  align-items: baseline;
  color: #314042;
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
}

.debt-effect-mini__numbers em {
  color: #0f7a46;
  font-style: normal;
}

.debt-effect-diff {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.debt-effect-diff.is-positive {
  color: #0b7a41;
}

.debt-effect-diff.is-negative {
  color: #c52d2d;
}

.debt-effect-diff.is-neutral {
  color: #314042;
}

.debt-effect-detail__row.is-total {
  background: #f7faf9;
  font-weight: 900;
}

.debt-effect-message {
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfa 100%);
  border: 1px solid #9fd7bd;
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 14px 18px;
}

.debt-effect-message__icon {
  align-items: center;
  background: #f3fbf7;
  border: 1px solid #cfe9dc;
  border-radius: 999px;
  display: inline-flex;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 58px;
}

.debt-effect-message__icon img {
  display: block;
  height: 48px;
  object-fit: contain;
  width: 48px;
}

.debt-effect-message strong {
  color: #0f6f4c;
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.debt-effect-message p {
  color: #24383b;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}

.debt-effect-legend {
  align-items: center;
  border: 1px solid #dce7e4;
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 12px 14px;
}

.debt-effect-legend span {
  align-items: center;
  color: #314042;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
}

.debt-effect-legend i {
  display: inline-block;
  height: 12px;
  width: 22px;
}

.debt-effect-legend .is-paid {
  background: #27914e;
}

.debt-effect-legend .is-unpaid {
  background: #dedfdf;
}

.debt-effect-legend .is-reference {
  background: repeating-linear-gradient(90deg, #97adc7 0, #97adc7 6px, transparent 6px, transparent 10px);
  height: 2px;
  width: 38px;
}

.asset-summary-layout {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.asset-summary-table-scroll {
  min-width: 0;
  overflow-x: auto;
}

.asset-summary-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.asset-summary-table .col-account {
  width: 25%;
}

.asset-summary-table .col-amount {
  width: 25%;
}

.asset-summary-table th,
.asset-summary-table td {
  padding-left: 8px;
  padding-right: 8px;
}

.asset-summary-table .account-cell,
.asset-summary-table .amount-cell {
  white-space: nowrap;
}

.asset-summary-table .amount-cell {
  font-size: 12px;
}

.asset-summary-table .row-heading-data .amount-cell {
  font-size: 13px;
}

.asset-summary-visual {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 249, 0.98)),
    radial-gradient(circle at 88% 8%, rgba(31, 117, 104, 0.12), transparent 32%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
}

.asset-summary-bars {
  align-content: center;
  min-height: 153px;
  padding: 14px 16px;
}

.asset-bar-list {
  display: grid;
  gap: 15px;
  height: 100%;
}

.asset-bar-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 78px minmax(0, 1fr);
}

.asset-bar-label {
  align-items: center;
  color: var(--color-text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
  white-space: nowrap;
}

.asset-bar-label::before {
  border-radius: 999px;
  content: "";
  height: 9px;
  width: 9px;
}

.asset-bar-track {
  background: #edf3f1;
  border: 1px solid rgba(18, 48, 43, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(28, 52, 49, 0.08);
  display: block;
  height: 20px;
  min-width: 0;
  overflow: hidden;
}

.asset-bar-fill {
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 10px;
  width: var(--bar-width);
}

.asset-bar-row.is-statement .asset-bar-label::before,
.asset-bar-row.is-statement .asset-bar-fill {
  background: linear-gradient(90deg, #f6df9d, #c79535);
}

.asset-bar-row.is-audit .asset-bar-label::before,
.asset-bar-row.is-audit .asset-bar-fill {
  background: linear-gradient(90deg, #a9ddd0, #0d7768);
}

.asset-bar-row.is-liquidation .asset-bar-label::before,
.asset-bar-row.is-liquidation .asset-bar-fill {
  background: linear-gradient(90deg, #dce5e3, #7e8f91);
}

.asset-summary-visual__header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.asset-summary-visual__header strong {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 900;
}

.asset-summary-visual__header span {
  color: var(--color-muted);
  font-size: 11px;
}

.asset-summary-visual__stack {
  background:
    linear-gradient(90deg, rgba(41, 78, 70, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(41, 78, 70, 0.05) 1px, transparent 1px),
    #fbfcfc;
  background-size: 28px 28px;
  border: 1px solid #dbe5e3;
  border-radius: 10px;
  display: grid;
  gap: 12px;
  overflow: visible;
  padding: 16px 22px 16px 16px;
  position: relative;
}

.asset-arrow-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(18, 48, 43, 0.08);
  border-radius: 8px 24px 24px 8px;
  box-shadow: 10px 14px 22px rgba(30, 50, 46, 0.12);
  color: var(--color-text);
  display: grid;
  gap: 12px;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  min-height: 84px;
  padding: 14px 26px 14px 16px;
  position: relative;
}

.asset-arrow-card::after {
  background: inherit;
  border-right: 1px solid rgba(18, 48, 43, 0.08);
  border-top: 1px solid rgba(18, 48, 43, 0.08);
  content: "";
  height: 44px;
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 44px;
  z-index: 0;
}

.asset-arrow-card > * {
  position: relative;
  z-index: 1;
}

.asset-arrow-card__icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.46);
  border-radius: 12px;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.asset-arrow-card__icon svg {
  height: 30px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 30px;
}

.asset-arrow-card__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.asset-arrow-card__body strong {
  font-size: 16px;
  font-weight: 900;
  line-height: 1.2;
}

.asset-arrow-card__body em {
  color: #637172;
  font-size: 13px;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-arrow-card__amount {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
}

.asset-arrow-card.is-statement {
  background: linear-gradient(135deg, #f7df9e, #d2a44a);
  color: #3f2f13;
}

.asset-arrow-card.is-audit {
  background: linear-gradient(135deg, #f5fbf8, #dcefe8);
  color: var(--color-primary);
}

.asset-arrow-card.is-liquidation {
  background: linear-gradient(135deg, #f8f9f9, #dde4e2);
  color: #3b4648;
}

.asset-arrow-card.is-audit .asset-arrow-card__icon {
  color: #116c5d;
}

.asset-arrow-card.is-liquidation .asset-arrow-card__icon {
  color: #4f5a5d;
}

.asset-arrow-card.is-statement .asset-arrow-card__body em {
  color: rgba(63, 47, 19, 0.72);
}

.asset-arrow-card.is-audit .asset-arrow-card__body em,
.asset-arrow-card.is-liquidation .asset-arrow-card__body em {
  color: #596769;
}

/* Legacy layer styles are kept as a fallback for older rendered markup. */
.asset-value-layer {
  align-items: center;
  border: 1px solid rgba(18, 48, 43, 0.18);
  border-radius: 16px;
  bottom: var(--asset-layer-bottom);
  box-shadow: 0 16px 34px rgba(17, 45, 41, 0.18);
  display: flex;
  flex-direction: column;
  height: var(--asset-layer-height);
  justify-content: center;
  left: 50%;
  min-width: 126px;
  padding: 14px;
  position: absolute;
  text-align: center;
  transform: translateX(-50%);
  width: var(--asset-layer-width);
  z-index: var(--asset-layer-z);
}

.asset-value-layer.is-statement {
  background: linear-gradient(135deg, #f4d78e, #c59638);
  color: #3f2f13;
}

.asset-value-layer.is-audit {
  background: linear-gradient(135deg, #2d8bd3, #0c6b97);
  color: #ffffff;
}

.asset-value-layer.is-liquidation {
  background: linear-gradient(135deg, #f5f7f7, #c9d2d0);
  color: #33413f;
}

.asset-summary-visual__legend {
  display: grid;
  gap: 6px;
}

.asset-summary-legend-item {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
  min-width: 0;
}

.asset-summary-legend-item span {
  align-items: center;
  color: var(--color-muted);
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
}

.asset-summary-legend-item span::before {
  border-radius: 999px;
  content: "";
  height: 8px;
  width: 8px;
}

.asset-summary-legend-item.is-statement span::before {
  background: #c59638;
}

.asset-summary-legend-item.is-audit span::before {
  background: #0c6b97;
}

.asset-summary-legend-item.is-liquidation span::before {
  background: #9aa9a6;
}

.asset-summary-legend-item strong {
  font-size: 12px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.debt-table .col-account {
  width: 58.668%;
}

.account-cell {
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.additional-asset-heading,
.additional-expense-heading,
.custom-asset-account-control,
.custom-expense-account-control {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.additional-asset-heading,
.additional-expense-heading {
  justify-content: space-between;
}

.custom-asset-account-control .input,
.custom-expense-account-control .input {
  min-width: 120px;
}

.custom-asset-row .account-cell,
.custom-asset-row .input-cell,
.custom-expense-row .account-cell,
.custom-expense-row .input-cell {
  background: #fff9e8;
}

.custom-asset-statement-cell {
  background: #f6fafa;
}

.muted-cell {
  display: block;
  min-height: 32px;
}

.amount-cell {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.input-cell {
  background: #ffffff;
}

.data-table .input-cell:has(.input),
.data-table .input-cell:has(.select) {
  background: #fff9e8;
}

.row-heading-data td {
  background: #f7faf9;
  color: #253b38;
  font-weight: 800;
}

.row-heading-data .amount-cell {
  color: #405754;
}

.spreadsheet-table th,
.spreadsheet-table td {
  border-bottom: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  height: var(--row-height);
  min-width: 0;
  padding: 3px 7px;
  vertical-align: middle;
}

.spreadsheet-table thead th {
  background: #edf2f2;
  color: #405054;
  font-weight: 700;
  text-align: center;
}

.corner-cell,
.row-heading {
  width: var(--index-width);
}

.row-heading {
  background: #edf2f2;
  color: #405054;
  font-weight: 700;
  text-align: center;
}

.cell {
  background: #ffffff;
  color: #253034;
  min-height: 24px;
  overflow-wrap: anywhere;
  text-align: left;
  text-indent: 0;
  white-space: nowrap;
}

.cell-subject {
  padding-left: 8px !important;
  text-align: left !important;
  text-indent: 0 !important;
}

.cell-number {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cell-date,
.cell-boolean {
  text-align: center;
}

.cell-error {
  color: #a21d1d;
  font-weight: 700;
}

.table-balance col:nth-child(1),
.table-income col:nth-child(1) {
  width: var(--index-width);
}

.table-balance col:nth-child(2),
.table-income col:nth-child(2) {
  width: var(--subject-width);
}

.table-balance col:nth-child(n + 3),
.table-income col:nth-child(n + 3) {
  width: auto;
}

.table-balance,
.table-income {
  min-width: 100%;
  width: 100%;
}

.empty-state {
  align-items: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 32px;
  text-align: center;
}

.empty-state h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.empty-state p {
  color: var(--color-muted);
  margin: 0;
}

.form-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.input,
.select {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  height: 38px;
  padding: 0 10px;
  width: 100%;
}

.select,
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23132421'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='m6%209%206%206%206-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  padding-right: 36px;
}

.data-table .input-cell .input,
.data-table .input-cell .select {
  background-color: #fffefa;
  border-color: #d7bf75;
}

.input-na {
  align-items: center;
  color: var(--color-muted);
  display: flex;
  font-weight: 800;
  justify-content: center;
  min-height: 38px;
}

.input:focus,
.select:focus {
  border-color: var(--color-primary);
  outline: 2px solid rgba(15, 95, 85, 0.14);
}

.numeric {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.action-row {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.sticky-action-bar {
  background: linear-gradient(180deg, rgba(244, 247, 247, 0), var(--color-bg) 24%);
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 10px;
  position: sticky;
  bottom: 0;
  z-index: 4;
}

.sticky-action-bar__inner {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(92px, 128px));
  justify-content: end;
}

.sticky-action-bar__inner .button {
  min-width: 0;
  width: 100%;
}

.stepper {
  align-items: center;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

form[data-financial-form],
form[data-debt-form],
form[data-income-form],
form[data-collateral-form] {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.financial-table-section,
.debt-table-section,
.income-table-section {
  min-width: 0;
}

.financial-table-section h3,
.debt-table-section h3,
.income-table-section h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.collateral-table-section {
  min-width: 0;
}

.collateral-table-section h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.result-section {
  min-width: 0;
}

.result-value-parent .account-cell,
.result-value-parent .amount-cell {
  font-weight: 800;
}

.result-value-child .account-cell {
  color: var(--color-muted);
  padding-left: 28px;
}

.result-value-child .account-cell span {
  display: inline-flex;
  gap: 6px;
}

.result-value-child .account-cell span::before {
  color: #7b8a8c;
  content: "-";
}

.asset-analysis-board {
  background:
    radial-gradient(circle at 50% 42%, rgba(11, 92, 74, 0.08) 0 1px, transparent 2px 235px, rgba(11, 92, 74, 0.14) 236px 238px, transparent 239px),
    radial-gradient(circle at 50% 42%, transparent 0 320px, rgba(38, 102, 185, 0.12) 321px 323px, transparent 324px),
    linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  display: grid;
  gap: 22px;
  overflow: hidden;
  padding: 26px;
  position: relative;
}

.asset-analysis-board::before {
  background-image:
    linear-gradient(rgba(14, 61, 52, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 61, 52, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.asset-analysis-board > * {
  position: relative;
  z-index: 1;
}

.asset-analysis-board__header {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.asset-analysis-board__header h3 {
  color: var(--color-primary);
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.asset-analysis-board__header p {
  color: #4a5d60;
  font-size: 14px;
  line-height: 1.55;
  margin: 8px 0 0;
}

.asset-analysis-insight {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #d9e4e2;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(21, 56, 51, 0.08);
  display: flex;
  gap: 12px;
  padding: 16px;
}

.asset-analysis-insight__icon {
  align-items: center;
  border: 2px solid var(--color-primary);
  border-radius: 999px;
  color: var(--color-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.asset-analysis-insight strong {
  color: var(--color-primary);
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.asset-analysis-insight p {
  color: #2f4245;
  font-size: 13px;
  margin: 0;
}

.asset-analysis-diagram {
  align-items: center;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 330px) minmax(180px, 1fr);
}

.asset-analysis-column {
  display: grid;
  gap: 26px;
}

.analysis-metric-card {
  --metric-color: #2467d1;
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid color-mix(in srgb, var(--metric-color) 35%, #ffffff);
  border-radius: 999px 999px 38px 38px;
  box-shadow: 0 16px 36px rgba(28, 62, 69, 0.1);
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 220px;
  padding: 28px 20px 22px;
  position: relative;
  text-align: center;
}

.analysis-metric-card.is-statement {
  --metric-color: #2467d1;
}

.analysis-metric-card.is-audit {
  --metric-color: #1f79ca;
}

.analysis-metric-card.is-liquidation {
  --metric-color: #bd7a0d;
}

.analysis-metric-card.is-going {
  --metric-color: #0b7356;
}

.analysis-metric-card__number {
  align-items: center;
  background: var(--metric-color);
  border: 5px solid #eaf3ff;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(21, 56, 51, 0.12);
  color: #ffffff;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  left: 50%;
  position: absolute;
  top: -24px;
  transform: translateX(-50%);
  width: 54px;
}

.analysis-metric-card__icon {
  align-items: center;
  color: var(--metric-color);
  display: inline-flex;
  font-size: 44px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
}

.analysis-metric-card.is-statement .analysis-metric-card__icon::before {
  content: "▤";
}

.analysis-metric-card.is-audit .analysis-metric-card__icon::before {
  content: "☑";
}

.analysis-metric-card.is-liquidation .analysis-metric-card__icon::before {
  content: "⚖";
}

.analysis-metric-card.is-going .analysis-metric-card__icon::before {
  content: "↗";
}

.analysis-metric-card strong {
  color: var(--metric-color);
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.analysis-metric-card em {
  color: var(--metric-color);
  display: block;
  font-size: 30px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  margin-top: 2px;
}

.analysis-metric-card span:not(.analysis-metric-card__number):not(.analysis-metric-card__icon) {
  color: #263b40;
  display: block;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}

.analysis-metric-card p {
  border-top: 1px solid rgba(34, 61, 66, 0.08);
  color: #536468;
  font-size: 13px;
  line-height: 1.5;
  margin: 8px -6px 0;
  padding-top: 12px;
}

.asset-analysis-center {
  display: grid;
  justify-items: center;
  position: relative;
}

.asset-analysis-center::before {
  border: 3px solid rgba(122, 137, 153, 0.45);
  border-left-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  height: 330px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  width: 330px;
}

.asset-analysis-center__ring {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 7px solid var(--color-primary);
  border-radius: 999px;
  box-shadow: 0 20px 45px rgba(21, 56, 51, 0.16);
  display: flex;
  flex-direction: column;
  height: 280px;
  justify-content: center;
  padding: 28px;
  position: relative;
  text-align: center;
  width: 280px;
  z-index: 1;
}

.asset-analysis-center__shield {
  align-items: center;
  background: linear-gradient(180deg, #0f7b5a, #0a5d45);
  border-radius: 18px 18px 24px 24px;
  color: #ffffff;
  display: inline-flex;
  font-size: 34px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  margin-bottom: 8px;
  width: 58px;
}

.asset-analysis-center__ring strong {
  color: var(--color-primary);
  font-size: 17px;
}

.asset-analysis-center__ring p {
  color: var(--color-primary);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.35;
  margin: 10px 0;
}

.asset-analysis-center__ring p span {
  color: #35484c;
  display: inline-block;
  font-size: 24px;
}

.asset-analysis-center__ring small {
  color: #536468;
  font-size: 13px;
  line-height: 1.45;
}

.asset-analysis-summary {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 18px 20px;
}

.asset-analysis-summary h4 {
  color: var(--color-primary);
  font-size: 18px;
  margin: 0 0 12px;
}

.asset-analysis-table-wrap {
  overflow-x: auto;
}

.asset-analysis-table {
  min-width: 760px;
}

.asset-analysis-table th,
.asset-analysis-table td {
  font-size: 13px;
  height: 46px;
}

.asset-analysis-table .amount-cell strong,
.asset-analysis-table .amount-cell span {
  display: block;
}

.asset-analysis-table .amount-cell span {
  color: #536468;
  font-size: 12px;
  font-weight: 500;
}

.analysis-row-dot {
  background: var(--row-color, var(--color-primary));
  border-radius: 999px;
  display: inline-block;
  height: 26px;
  margin-right: 10px;
  vertical-align: middle;
  width: 6px;
}

.asset-analysis-table tr.is-statement {
  --row-color: #2467d1;
}

.asset-analysis-table tr.is-audit {
  --row-color: #1f79ca;
}

.asset-analysis-table tr.is-liquidation {
  --row-color: #bd7a0d;
}

.asset-analysis-table tr.is-going {
  --row-color: #0b7356;
}

.asset-analysis-conclusion {
  align-items: center;
  background: linear-gradient(90deg, #f4fbf8, #ffffff);
  border: 1px solid #acd5c5;
  border-radius: 14px;
  display: flex;
  gap: 14px;
  padding: 16px 18px;
}

.asset-analysis-conclusion span {
  align-items: center;
  background: var(--color-primary);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 22px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.asset-analysis-conclusion p {
  color: #263b40;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}

.asset-analysis-board.asset-analysis-board--image {
  background: #ffffff;
  display: block;
  gap: 0;
  padding: 0;
}

.asset-analysis-board.asset-analysis-board--image::before {
  content: none;
}

.asset-analysis-board.asset-analysis-board--image > .asset-analysis-board__image {
  position: static;
  z-index: auto;
}

.asset-analysis-board__image {
  display: block;
  height: auto;
  width: 100%;
}

.asset-analysis-board__insight-text {
  background: #fafafa;
  color: #33454a;
  font-size: clamp(12px, 1.2vw, 17px);
  font-weight: 700;
  left: 74.8%;
  line-height: 1.34;
  margin: 0;
  min-height: 58px;
  padding: 2px 4px;
  position: absolute;
  top: 6.35%;
  width: 19.8%;
  z-index: 2;
}

.asset-analysis-board__center-overlay {
  align-items: center;
  background: transparent;
  color: var(--color-primary);
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 50%;
  height: 20%;
  padding: 0;
  position: absolute;
  text-align: center;
  top: 46%;
  transform: translate(-50%, -50%);
  width: 30%;
  z-index: 2;
}

.asset-analysis-board.asset-analysis-board--image > .asset-analysis-board__center-overlay {
  position: absolute;
  z-index: 2;
}

.asset-analysis-board__center-overlay p {
  color: var(--color-primary);
  font-size: clamp(17px, 1.9vw, 27px);
  font-weight: 900;
  line-height: 1.32;
  margin: 0;
  white-space: nowrap;
}

.asset-analysis-board__center-overlay p span {
  color: #283c40;
  display: inline-block;
  font-size: 0.82em;
  line-height: 1;
}

.asset-analysis-board__center-overlay small {
  color: #43575a;
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 700;
  line-height: 1.4;
  margin-top: 7px;
}

.asset-analysis-board__comparison {
  align-items: center;
  display: grid;
  gap: clamp(3px, 0.35vw, 6px);
  justify-items: center;
  width: 100%;
}

.asset-analysis-board__comparison-line {
  color: #2c4448;
  display: block;
  font-size: clamp(15px, 1.45vw, 21px);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.asset-analysis-board__comparison-line strong {
  font-weight: 900;
}

.asset-analysis-board__comparison-line.is-favorable {
  color: #c73a30;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
}

.asset-analysis-board__comparison-line.is-favorable strong {
  color: #c73a30;
}

.asset-analysis-board__comparison-line.is-liquidation.is-favorable {
  color: #c73a30;
}

.asset-analysis-board__comparison-mark {
  align-items: center;
  color: #203b3f;
  display: flex;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 900;
  height: clamp(16px, 1.45vw, 21px);
  justify-content: center;
  line-height: 1;
  width: 100%;
}

.asset-analysis-board__metric {
  --metric-color: #0b7356;
  background: transparent;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 0;
  position: absolute;
  text-align: left;
  transform: translateY(-50%);
  width: 20%;
  z-index: 2;
}

.asset-analysis-board__metric strong {
  color: var(--metric-color);
  display: block;
  font-size: clamp(20px, 2.6vw, 36px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  white-space: nowrap;
}

.asset-analysis-board__metric span {
  color: #314247;
  display: block;
  font-size: clamp(10px, 1.1vw, 16px);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.asset-analysis-board__metric.is-statement {
  --metric-color: #1f63c9;
  left: 17.7%;
  top: 27.9%;
}

.asset-analysis-board__metric.is-audit {
  --metric-color: #1f63c9;
  left: 78.4%;
  top: 27.9%;
}

.asset-analysis-board__metric.is-liquidation {
  --metric-color: #bd7a0d;
  left: 17.7%;
  top: 56.5%;
}

.asset-analysis-board__metric.is-going {
  --metric-color: #0b7356;
  left: 78.4%;
  top: 56.5%;
  width: 21.5%;
}

.asset-analysis-board__metric.is-going strong {
  font-size: clamp(18px, 2.2vw, 30px);
}

.asset-analysis-board__metric.is-going span {
  font-size: clamp(8px, 0.9vw, 12px);
}

.asset-analysis-board__table-amount {
  --metric-color: #0b7356;
  color: var(--metric-color);
  display: block;
  left: 27.7%;
  position: absolute;
  box-sizing: border-box;
  padding-right: clamp(8px, 1.1vw, 14px);
  text-align: right;
  transform: translateY(-50%);
  width: 20.5%;
  z-index: 2;
}

.asset-analysis-board__table-amount strong {
  display: block;
  font-size: clamp(11px, 1.05vw, 15px);
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.asset-analysis-board__table-amount.is-statement {
  --metric-color: #1f63c9;
  top: 80.4%;
}

.asset-analysis-board__table-amount.is-audit {
  --metric-color: #1f63c9;
  top: 85.4%;
}

.asset-analysis-board__table-amount.is-liquidation {
  --metric-color: #bd7a0d;
  top: 90.3%;
}

.asset-analysis-board__table-amount.is-going {
  --metric-color: #0b7356;
  top: 95.2%;
}

.consultation-gate {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.15fr);
  margin-top: 12px;
  padding: 22px;
}

.consultation-gate__copy {
  min-width: 0;
}

.consultation-gate__eyebrow {
  color: var(--color-primary);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.consultation-gate h3 {
  color: var(--color-text);
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.consultation-gate p {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 14px;
}

.consultation-gate ul {
  color: #2d4743;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  padding-left: 18px;
}

.consultation-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.consultation-form__grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.form-field span {
  color: #314042;
  font-size: 12px;
  font-weight: 800;
}

.textarea {
  min-height: 82px;
  padding-top: 10px;
  resize: vertical;
}

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

.consent-field {
  align-items: flex-start;
  color: var(--color-muted);
  display: flex;
  font-size: 12px;
  gap: 8px;
  line-height: 1.45;
}

.consent-field input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.consultation-form__actions,
.result-pane__header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.consultation-submit {
  justify-self: end;
}

.result-workbench {
  display: block;
  flex: 0 0 auto;
  gap: 12px;
  min-height: 0;
}

.result-pane {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.result-workbench > [data-result-panel] {
  display: none;
}

.result-workbench > [data-result-panel].is-active {
  display: block;
}

.result-pane__header {
  align-items: flex-end;
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  margin-bottom: 6px;
  min-width: 0;
}

.result-pane__header h3 {
  font-size: 15px;
  margin: 0;
}

.result-pane__header p {
  color: var(--color-muted);
  font-size: 12px;
  margin: 3px 0 0;
}

.step-button {
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0;
}

.worksheet-frame {
  flex: 0 0 auto;
  max-height: none;
  min-height: 0;
  overflow: auto;
}

.row-number-cell {
  background: #f7faf9;
  color: #405054;
  font-weight: 700;
  text-align: center;
}

.worksheet-row-section td {
  height: 34px;
}

.worksheet-row-section .account-cell {
  color: #253b38;
  font-weight: 800;
}

.worksheet-row-header .worksheet-value-cell,
.worksheet-row-note .worksheet-value-cell {
  color: #405054;
  text-align: left;
}

.result-section h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.fee-frame {
  gap: 14px;
}

.fee-estimate-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fee-formula {
  align-items: center;
  background: #f7faf9;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 12px 14px;
}

.fee-formula span {
  color: var(--color-muted);
  font-size: 13px;
}

.fee-formula strong {
  color: var(--color-text);
  font-size: 15px;
}

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

.diagnosis-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.diagnosis-item.is-positive {
  border-left-color: var(--color-primary);
}

.diagnosis-item.is-negative {
  border-left-color: #b5472b;
}

.diagnosis-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 5px;
}

.diagnosis-item p {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.result-placeholder {
  flex: 1 1 auto;
}

.step {
  align-items: center;
  background: #e8eeee;
  border: 1px solid #cbd5d5;
  border-radius: var(--radius-md);
  color: #314042;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  height: 34px;
  padding: 0 12px;
  text-decoration: none;
}

.step.is-complete {
  background: #edf8f4;
  border-color: #a8d9c6;
  color: #0f513f;
}

.step.is-active {
  background: #163832;
  border-color: #163832;
  color: #ffffff;
}

.step-check {
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.step:not(.is-active):hover {
  background: #dfe9e7;
  border-color: #bccdca;
}

.step.is-complete:not(.is-active):hover {
  background: #dff2eb;
  border-color: #8ecab3;
}

@media (max-width: 760px) {
  :root {
    --mobile-bottom-space: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .app-shell {
    height: calc(100vh - 72px);
  }

  .analysis-main {
    padding: 26px 16px var(--mobile-bottom-space);
  }

  .body-case-switcher {
    border-radius: 20px;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px;
    width: min(100%, 420px);
  }

  .body-case-switcher__label {
    font-size: 15px;
  }

  .body-case-switcher__options {
    flex: 1 1 100%;
    justify-content: center;
  }

  .body-case-switcher__option {
    flex: 1 1 0;
    justify-content: center;
    min-height: 36px;
    padding: 0 10px;
  }

  .analysis-main--preview {
    overflow: auto;
    overflow-x: hidden;
    padding: 14px 14px var(--mobile-bottom-space);
  }

  .upload-card {
    border-radius: 18px;
    padding: 22px 18px;
  }

  .personal-diagnosis {
    max-width: 520px;
  }

  .personal-income-gate {
    border-radius: 18px;
    gap: 20px;
    padding: 28px 22px;
  }

  .personal-income-gate__actions {
    grid-template-columns: 1fr;
  }

  .personal-income-option {
    min-height: 116px;
    padding: 18px;
  }

  .personal-diagnosis__stage {
    border-radius: 18px;
    min-height: min(620px, calc(100vh - 172px));
  }

  .personal-diagnosis__back {
    font-size: 26px;
    height: 52px;
    margin-left: 18px;
    width: 46px;
  }

  .personal-diagnosis__body {
    padding: 22px 28px 26px;
  }

  .personal-diagnosis__body h1 {
    font-size: clamp(22px, 6vw, 30px);
    line-height: 1.36;
    margin-bottom: 26px;
  }

  .personal-diagnosis__body h2 {
    font-size: clamp(18px, 4.8vw, 22px);
  }

  .personal-choice-grid--three,
  .personal-checkbox-grid,
  .personal-summary-grid {
    grid-template-columns: 1fr;
  }

  .personal-choice-grid--four {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 210px;
  }

  .personal-choice {
    font-size: 15px;
    min-height: 42px;
    min-width: 92px;
    padding: 0 18px;
  }

  .personal-region-grid {
    grid-template-columns: 1fr;
  }

  .personal-checkbox-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .personal-checkbox-grid label {
    min-height: 64px;
  }

  .personal-next {
    font-size: 15px;
    justify-self: stretch;
    margin: 0 28px 28px;
    min-height: 42px;
    width: auto;
  }

  .personal-report-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .upload-drop-grid {
    grid-template-columns: 1fr;
  }

  .case-type-switcher {
    grid-template-columns: 1fr;
  }

  .consultation-gate {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .consultation-form__grid {
    grid-template-columns: 1fr;
  }

  .consultation-form__actions,
  .result-pane__header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .consultation-form__actions .button,
  .result-pane__header-actions .button {
    width: 100%;
  }

  .account-main {
    padding: 24px 14px var(--mobile-bottom-space);
  }

  .account-card,
  .history-panel,
  .mypage-header,
  .admin-header,
  .admin-panel {
    padding: 18px;
  }

  .account-form__grid,
  .history-item,
  .support-document-hero,
  .support-document-grid,
  .admin-case-card,
  .admin-detail-grid,
  .admin-contact-line {
    grid-template-columns: 1fr;
  }

  .support-document-tabs {
    padding-bottom: 8px;
  }

  .support-document-tab {
    min-width: auto;
  }

  .support-document-hero {
    padding: 18px;
  }

  .support-document-hero h3 {
    font-size: 21px;
  }

  .support-document-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-document-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .support-document-actions .button {
    width: 100%;
  }

  .account-actions,
  .history-item__actions,
  .mypage-header,
  .admin-header,
  .admin-header__actions,
  .admin-panel__header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .admin-settings-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-settings-snapshot {
    grid-template-columns: 1fr;
  }

  .admin-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-subsection,
  .account-support-entry,
  .account-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .mypage-header__actions {
    flex-direction: column;
  }

  .history-item__actions form {
    width: 100%;
  }

  .consultation-submit {
    justify-self: stretch;
  }

  .drop-zone {
    min-height: 180px;
    padding: 24px;
  }

  .drop-zone strong {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .button {
    width: 100%;
  }

  .toast-stack {
    left: 50%;
    max-width: none;
    top: 50%;
    width: calc(100vw - 28px);
  }

  .app-main {
    padding: 14px 14px var(--mobile-bottom-space);
  }

  .app-main.analysis-main {
    padding: 26px 16px var(--mobile-bottom-space);
  }

  .app-main.analysis-main--preview {
    padding: 14px 14px var(--mobile-bottom-space);
  }

  .app-main.account-main {
    padding: 24px 14px var(--mobile-bottom-space);
  }

  .table-frame,
  .financial-table-section,
  .debt-table-section,
  .income-table-section,
  .collateral-table-section,
  .result-section,
  .asset-summary-table-scroll,
  .fee-frame .result-section {
    overflow-x: hidden;
    overflow-x: clip;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .table-frame {
    overflow-y: auto;
  }

  .financial-table-section,
  .debt-table-section,
  .income-table-section,
  .collateral-table-section {
    margin: 0 -2px;
    padding: 0 2px 4px;
  }

  .financial-table,
  .debt-table,
  .income-table,
  .collateral-table,
  .rent-table {
    font-size: clamp(7px, 2.15vw, 10px);
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .financial-table .col-account,
  .financial-table .col-amount,
  .debt-table .col-account,
  .debt-table .col-count,
  .debt-table .col-amount,
  .income-table .col-account,
  .income-table .col-amount,
  .income-table .col-rate,
  .collateral-table .col-account,
  .collateral-table .col-amount,
  .rent-table .col-account,
  .rent-table .col-amount {
    width: auto;
  }

  .financial-table .col-account {
    width: 37%;
  }

  .financial-table .col-amount {
    width: 21%;
  }

  .debt-table .col-account,
  .collateral-table .col-account {
    width: 42%;
  }

  .debt-table .col-count {
    width: 20%;
  }

  .debt-table .col-amount,
  .collateral-table .col-amount {
    width: 29%;
  }

  .income-table .col-account {
    width: 25%;
  }

  .income-table .col-amount,
  .income-table .col-rate {
    width: 15%;
  }

  .rent-table .col-account,
  .rent-table .col-amount {
    width: 50%;
  }

  .financial-table .account-cell,
  .debt-table .account-cell,
  .income-table .account-cell,
  .collateral-table .account-cell,
  .rent-table .account-cell {
    max-width: none;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .financial-table .input-cell,
  .financial-table .amount-cell,
  .debt-table .input-cell,
  .debt-table .amount-cell,
  .income-table .input-cell,
  .income-table .amount-cell,
  .collateral-table .input-cell,
  .collateral-table .amount-cell,
  .rent-table .account-cell,
  .rent-table .input-cell {
    min-width: 0;
  }

  .financial-table thead th,
  .debt-table thead th,
  .income-table thead th,
  .collateral-table thead th,
  .rent-table thead th,
  .financial-table td,
  .debt-table td,
  .income-table td,
  .collateral-table td,
  .rent-table td {
    height: auto;
    min-height: 24px;
    padding: 4px 3px;
  }

  .financial-table thead th,
  .debt-table thead th,
  .income-table thead th,
  .collateral-table thead th,
  .rent-table thead th {
    font-size: clamp(6px, 1.9vw, 9px);
    line-height: 1.25;
    white-space: normal;
  }

  .financial-table .amount-cell,
  .debt-table .amount-cell,
  .income-table .amount-cell,
  .collateral-table .amount-cell,
  .rent-table .amount-cell {
    font-size: clamp(6px, 1.9vw, 9px);
    line-height: 1.25;
    white-space: normal;
  }

  .data-table .input-cell .input,
  .data-table .input-cell .select,
  .custom-asset-account-control .input,
  .custom-expense-account-control .input {
    font-size: clamp(6px, 1.9vw, 9px);
    height: clamp(24px, 7vw, 30px);
    min-width: 0;
    padding: 3px 4px;
    width: 100%;
  }

  .data-table .input-cell .select,
  .select,
  select.input {
    background-position: right 5px center;
    background-size: 10px 10px;
    padding-right: 18px;
  }

  .additional-asset-heading,
  .additional-expense-heading,
  .custom-asset-account-control,
  .custom-expense-account-control {
    gap: 4px;
  }

  .custom-asset-account-control,
  .custom-expense-account-control {
    align-items: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .additional-asset-heading,
  .additional-expense-heading {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .data-table .button-compact {
    font-size: clamp(6px, 1.75vw, 8px);
    height: clamp(22px, 6.4vw, 28px);
    padding: 0 5px;
  }

  .table-heading-help,
  .row-label-help {
    gap: 3px;
  }

  .info-tooltip__trigger {
    height: clamp(12px, 3.5vw, 16px);
    width: clamp(12px, 3.5vw, 16px);
  }

  .result-main {
    padding-bottom: var(--mobile-bottom-space);
  }

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

  .result-infographic {
    grid-template-columns: 1fr;
  }

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

  .asset-analysis-board {
    gap: 18px;
    padding: 18px;
  }

  .asset-analysis-board__header {
    grid-template-columns: 1fr;
  }

  .asset-analysis-board__header h3 {
    font-size: 24px;
  }

  .asset-analysis-diagram {
    grid-template-columns: 1fr;
  }

  .asset-analysis-column {
    gap: 18px;
  }

  .asset-analysis-column:first-child {
    order: 1;
  }

  .asset-analysis-center {
    order: 2;
  }

  .asset-analysis-column:last-child {
    order: 3;
  }

  .analysis-metric-card {
    border-radius: 24px;
    min-height: 0;
    padding: 24px 16px 16px;
  }

  .analysis-metric-card em {
    font-size: 25px;
  }

  .asset-analysis-center::before {
    height: 230px;
    width: 230px;
  }

  .asset-analysis-center__ring {
    height: 220px;
    width: 220px;
  }

  .asset-analysis-center__ring p {
    font-size: 22px;
  }

  .asset-analysis-summary {
    padding: 14px;
  }

  .asset-analysis-conclusion {
    align-items: flex-start;
  }

  .asset-analysis-board__center-overlay {
    height: 20%;
    padding: 0;
    top: 46%;
    width: 30%;
  }

  .asset-analysis-board__insight-text {
    min-height: 20px;
    padding: 1px 2px;
    font-size: clamp(5px, 1.45vw, 8px);
    line-height: 1.25;
    left: 74.8%;
    top: 6.35%;
    width: 19.8%;
  }

  .asset-analysis-board__center-overlay p {
    font-size: clamp(9px, 2.45vw, 13px);
    line-height: 1.2;
    margin: 0;
  }

  .asset-analysis-board__center-overlay small {
    font-size: clamp(7px, 1.9vw, 10px);
    line-height: 1.25;
    margin-top: 4px;
  }

  .asset-analysis-board__comparison {
    gap: 2px;
  }

  .asset-analysis-board__comparison-line {
    font-size: clamp(8px, 2.1vw, 11px);
  }

  .asset-analysis-board__comparison-line.is-favorable {
    font-size: clamp(8px, 2.1vw, 11px);
  }

  .asset-analysis-board__comparison-mark {
    font-size: clamp(9px, 2.2vw, 11px);
    height: clamp(9px, 2vw, 11px);
  }

  .asset-analysis-board__metric {
    gap: 2px;
    padding: 0;
    width: 20%;
  }

  .asset-analysis-board__metric strong {
    font-size: clamp(10px, 3.25vw, 17px);
  }

  .asset-analysis-board__metric span {
    font-size: clamp(6px, 1.65vw, 9px);
  }

  .asset-analysis-board__metric.is-going {
    width: 22%;
  }

  .asset-analysis-board__metric.is-going strong {
    font-size: clamp(9px, 2.8vw, 15px);
  }

  .asset-analysis-board__metric.is-going span {
    font-size: clamp(6px, 1.65vw, 9px);
  }

  .asset-analysis-board__table-amount strong {
    font-size: clamp(4px, 1.35vw, 7px);
  }

  .asset-summary-section {
    overflow-x: visible;
  }

  .asset-summary-table-scroll {
    overflow-x: hidden;
    overflow-x: clip;
  }

  .asset-summary-table {
    min-width: 0;
    width: 100%;
  }

  .asset-summary-bars {
    min-height: 132px;
    padding: 12px;
  }

  .asset-bar-list {
    gap: 12px;
  }

  .asset-bar-row {
    gap: 9px;
    grid-template-columns: 72px minmax(150px, 1fr);
  }

  .asset-bar-track {
    height: 18px;
  }

  .asset-summary-visual__stack {
    gap: 10px;
    padding: 12px 18px 12px 12px;
  }

  .asset-arrow-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-height: 72px;
    padding: 12px 20px 12px 12px;
  }

  .asset-arrow-card::after {
    height: 36px;
    right: -11px;
    width: 36px;
  }

  .asset-arrow-card__icon {
    height: 38px;
    width: 38px;
  }

  .asset-arrow-card__icon svg {
    height: 24px;
    width: 24px;
  }

  .asset-arrow-card__body strong {
    font-size: 14px;
  }

  .asset-arrow-card__body em {
    font-size: 12px;
  }

  .asset-arrow-card__amount {
    font-size: 18px;
  }

  .result-frame {
    gap: 14px;
    padding: 10px;
  }

  .fee-frame {
    gap: 10px;
  }

  .fee-estimate-summary {
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fee-estimate-summary .summary-card {
    min-width: 0;
    padding: 9px 7px;
  }

  .fee-estimate-summary .summary-card__label {
    font-size: clamp(6px, 1.9vw, 9px);
    line-height: 1.25;
  }

  .fee-estimate-summary .summary-card strong {
    font-size: clamp(9px, 2.8vw, 13px);
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .fee-formula {
    align-items: center;
    gap: 4px 5px;
    padding: 8px;
  }

  .fee-formula span,
  .fee-formula strong,
  .fee-frame .account-note {
    font-size: clamp(6px, 1.9vw, 9px);
    line-height: 1.35;
  }

  .fee-frame .result-section {
    overflow-x: hidden;
    overflow-x: clip;
  }

  .fee-table {
    font-size: clamp(6px, 1.9vw, 9px);
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .fee-table .col-account {
    width: 34%;
  }

  .fee-table .col-count {
    width: 15%;
  }

  .fee-table .col-amount {
    width: 25.5%;
  }

  .fee-table thead th,
  .fee-table td {
    height: auto;
    min-height: 24px;
    padding: 4px 3px;
  }

  .fee-table thead th,
  .fee-table .account-cell,
  .fee-table .amount-cell {
    font-size: clamp(6px, 1.9vw, 9px);
    line-height: 1.25;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .result-section {
    margin: 0 -2px;
    overflow-x: hidden;
    overflow-x: clip;
    padding: 0 2px 4px;
  }

  .debt-effect-card {
    gap: 8px;
    overflow: hidden;
    padding: 14px;
  }

  .debt-effect-card h3 {
    font-size: clamp(17px, 5.3vw, 22px);
  }

  .debt-effect-header,
  .debt-effect-overview,
  .debt-effect-metrics,
  .debt-effect-message {
    min-width: 0;
  }

  .debt-effect-overview {
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) 30%;
  }

  .debt-effect-total {
    grid-template-columns: 22% minmax(0, 1fr);
  }

  .debt-effect-total__label {
    font-size: clamp(9px, 2.9vw, 12px);
  }

  .debt-effect-total-row {
    gap: 6px;
    grid-template-columns: 15% minmax(0, 1fr) 25%;
    padding: 9px 6px;
  }

  .debt-effect-total-row > strong {
    font-size: clamp(10px, 3.1vw, 13px);
  }

  .debt-effect-total-row > strong span,
  .debt-effect-total-row__debt {
    font-size: clamp(6px, 1.9vw, 8px);
  }

  .debt-effect-row-meta span {
    font-size: clamp(6px, 1.9vw, 8px);
  }

  .debt-effect-bar {
    height: clamp(20px, 6vw, 28px);
  }

  .debt-effect-highlight {
    padding: 8px 6px;
  }

  .debt-effect-highlight__icon {
    height: clamp(26px, 8vw, 36px);
    margin-bottom: 5px;
    width: clamp(26px, 8vw, 36px);
  }

  .debt-effect-highlight strong,
  .debt-effect-highlight p,
  .debt-effect-header__unit,
  .debt-effect-card p {
    font-size: clamp(6px, 1.9vw, 9px);
  }

  .debt-effect-highlight em {
    font-size: clamp(10px, 3.1vw, 14px);
  }

  .debt-effect-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .debt-effect-metric {
    gap: 6px;
    padding: 8px 6px;
  }

  .debt-effect-metric__icon {
    border-radius: 10px;
    height: clamp(26px, 8vw, 36px);
    width: clamp(26px, 8vw, 36px);
  }

  .debt-effect-metric__icon img {
    height: clamp(22px, 6.8vw, 30px);
    width: clamp(22px, 6.8vw, 30px);
  }

  .debt-effect-metric span {
    font-size: clamp(6px, 1.9vw, 8px);
    margin-bottom: 3px;
  }

  .debt-effect-metric strong {
    font-size: clamp(7px, 2.2vw, 10px);
  }

  .debt-effect-detail {
    min-width: 0;
  }

  .debt-effect-detail__header,
  .debt-effect-detail__row {
    grid-template-columns: 22% 16% 24% 24% 14%;
  }

  .debt-effect-detail__header span,
  .debt-effect-detail__row > * {
    padding: 7px 4px;
  }

  .debt-effect-detail__header,
  .debt-effect-group strong,
  .debt-effect-amount {
    font-size: clamp(6px, 1.9vw, 8px);
  }

  .debt-effect-group {
    gap: 4px;
  }

  .debt-effect-group span {
    font-size: clamp(5px, 1.55vw, 7px);
    height: clamp(14px, 4.2vw, 18px);
    width: clamp(14px, 4.2vw, 18px);
  }

  .debt-effect-mini {
    gap: 3px;
  }

  .debt-effect-mini__bar {
    height: clamp(13px, 4vw, 18px);
  }

  .debt-effect-mini__numbers {
    font-size: clamp(4px, 1.45vw, 6px);
    gap: 3px;
  }

  .debt-effect-diff {
    font-size: clamp(6px, 1.9vw, 8px);
  }

  .debt-effect-message {
    gap: 7px;
    grid-template-columns: clamp(28px, 8vw, 36px) minmax(0, 1fr);
    padding: 8px;
  }

  .debt-effect-message__icon {
    height: clamp(28px, 8vw, 36px);
    width: clamp(28px, 8vw, 36px);
  }

  .debt-effect-message__icon img {
    height: clamp(22px, 6.8vw, 30px);
    width: clamp(22px, 6.8vw, 30px);
  }

  .debt-effect-message strong {
    font-size: clamp(8px, 2.5vw, 11px);
  }

  .debt-effect-message p,
  .debt-effect-legend span {
    font-size: clamp(6px, 1.9vw, 8px);
  }

  .debt-effect-legend {
    gap: 8px;
    padding: 7px 8px;
  }

  .result-frame .data-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .result-table {
    min-width: 0;
  }

  .result-frame .col-account,
  .result-frame .col-amount,
  .result-frame .col-count,
  .result-frame .col-rate {
    width: auto;
  }

  .result-frame thead th,
  .result-frame .amount-cell {
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .result-frame .account-cell {
    max-width: 180px;
    min-width: 88px;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .result-frame .col-amount,
  .result-frame .col-count,
  .result-frame .amount-cell {
    min-width: 0;
  }

  .fee-frame .fee-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .fee-frame .fee-table .col-account {
    width: 34%;
  }

  .fee-frame .fee-table .col-count {
    width: 15%;
  }

  .fee-frame .fee-table .col-amount {
    width: 25.5%;
  }

  .fee-frame .fee-table .account-cell,
  .fee-frame .fee-table .amount-cell {
    max-width: none;
    min-width: 0;
    white-space: normal;
  }

  .result-visual-header {
    flex-direction: column;
  }

  .section-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .workflow-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .sticky-action-bar__inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .sticky-action-bar {
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }
}
