.filing-approval-detail-page {
  position: relative;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 52px;
  padding: 0 14px;
  overflow: hidden;
  background: #f1f3f7;
  color: #303133;
  font-size: 13px;
}

.fad-hero {
  min-height: 66px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 10px 8px;
  color: #fff;
  background: linear-gradient(100deg, var(--ui-primary, #b8202b) 0%, #82d2cb 100%);
  border-radius: 0 0 6px 6px;
}

.fad-hero h1 {
  max-width: min(980px, 76vw);
  margin: 0 0 7px;
  overflow: hidden;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0;
}

.fad-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.fad-tags span { display: inline-flex; align-items: center; min-height: 20px; padding: 1px 7px; color: #fff; border-radius: 2px; line-height: 18px; }
.fad-tags .code { background: var(--ui-primary, #b8202b); }
.fad-tags .formal { background: #49c62e; }
.fad-tags .contract { background: #f0a000; }
.fad-tags .receipt { background: #36ba61; }
.fad-tags .workflow { background: var(--ui-muted, #716a70); }
.fad-tags .workflow.success { background: #32af58; }
.fad-tags .workflow.process { background: #e49816; }
.fad-tags .workflow.error { background: #dc5b67; }

.fad-hero-close {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
}
.fad-hero-close:hover { background: rgba(255, 255, 255, .14); }
.fad-hero-close:active { transform: translateY(1px); }

.fad-scroll { min-height: 0; overflow: auto; padding: 20px 0; scrollbar-gutter: stable; }
.fad-layout { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(300px, 1fr); gap: 20px; align-items: stretch; }
.fad-left { min-width: 0; display: grid; align-content: start; gap: 20px; }

.fad-section,
.fad-approval {
  min-width: 0;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
}

.fad-section > header,
.fad-approval > header {
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 6px;
  border-bottom: 1px solid #e6e8ed;
  border-left: 2px solid var(--ui-primary, #b8202b);
}

.fad-section h2,
.fad-approval h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.fad-section-body { padding: 11px 12px 16px; }
.fad-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin: 0; }
.fad-field { min-width: 0; min-height: 33px; display: grid; grid-template-columns: 126px minmax(0, 1fr); align-items: start; margin: 0; padding: 8px 0; }
.fad-field.full { grid-column: 1 / -1; }
.fad-field dt { color: #111; font-weight: 400; }
.fad-field dd { min-width: 0; margin: 0; color: #111; overflow-wrap: anywhere; }
.fad-field.party { margin: 0 -12px; padding: 8px 12px; background: var(--ui-primary-soft, #fbeaec); }
.fad-field.party.muted { background: var(--ui-primary-pale, #fff7f8); }
.fad-field.documents { display: grid; grid-template-columns: 126px minmax(0, 1fr); }
.fad-empty-value { color: var(--ui-muted, #716a70); }

.fad-documents { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.fad-documents li { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 150px; align-items: center; gap: 6px; min-height: 36px; padding: 6px 9px; background: #f4f6fa; }
.fad-documents strong { min-width: 0; overflow: hidden; color: var(--ui-accent-ink, #a21c27); font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.fad-documents button { height: 24px; display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; color: #fff; background: var(--ui-primary, #b8202b); border: 0; border-radius: 3px; cursor: pointer; }
.fad-documents time { color: #111; text-align: right; }

.fad-approval { position: sticky; top: 0; align-self: start; min-height: calc(100vh - 220px); }
.fad-timeline { margin: 0; padding: 12px 10px 20px 27px; list-style: none; }
.fad-timeline-node { position: relative; min-height: 94px; padding: 0 0 18px 10px; border-left: 2px solid var(--ui-primary-line, #efd0d5); }
.fad-timeline-node.last { min-height: 32px; padding-bottom: 0; border-left-color: transparent; }
.fad-timeline-node > i { position: absolute; left: -8px; top: 1px; width: 14px; height: 14px; border: 2px solid var(--ui-primary-line, #efd0d5); border-radius: 50%; background: var(--ui-primary, #b8202b); }
.fad-timeline-node.success > i::after { content: ''; position: absolute; left: 3px; top: 1px; width: 4px; height: 7px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.fad-timeline-node.process > i { border-color: #e7a02d; background: #fff; box-shadow: inset 0 0 0 3px #e7a02d; }
.fad-timeline-node.wait > i { border-color: var(--ui-primary-line, #efd0d5); background: #fff; }
.fad-timeline-node.error > i { border-color: #df6170; background: #df6170; }
.fad-timeline-node h3 { margin: 0 0 8px; font-size: 13px; font-weight: 400; line-height: 16px; }
.fad-timeline-node.success.last h3 { color: #42b835; }
.fad-timeline-node.process.last h3 { color: #dc921b; }
.fad-timeline-node.error.last h3 { color: #d94e60; }
.fad-approval-card { display: grid; gap: 14px; margin-right: 0; padding: 15px 14px; background: #f2f4f8; border-radius: 8px; }
.fad-approval-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fad-approval-card > div:not(.fad-approval-pairs),
.fad-approval-pairs > div { display: grid; gap: 3px; }
.fad-approval-card span { color: var(--ui-muted, #716a70); }
.fad-approval-card strong { color: #111; font-weight: 400; overflow-wrap: anywhere; }

.fad-footer { display: flex; align-items: center; justify-content: center; gap: 40px; }
.fad-decision-actions,
.fad-footer-secondary { display: flex; align-items: center; gap: 10px; }
.fad-footer button,
.fad-modal footer button,
.fad-error button { min-width: 120px; height: 34px; padding: 0 18px; color: var(--ui-muted, #716a70); background: var(--ui-primary-soft, #fbeaec); border: 0; border-radius: 8px; cursor: pointer; }
.fad-footer .fad-decision-approve { color: #fff; background: #3d9c69; }
.fad-footer .fad-decision-reject { color: #fff; background: #d45b63; }
.fad-footer button:disabled,
.fad-modal button:disabled { cursor: wait; opacity: .6; }
.fad-footer button.primary,
.fad-modal footer button,
.fad-error button.primary { color: #fff; background: var(--ui-primary, #b8202b); }
.fad-footer button:active,
.fad-modal button:active,
.fad-error button:active { transform: translateY(1px); }

.fad-modal-backdrop { position: fixed; z-index: 1800; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(45, 41, 45, .46); }
.fad-modal { width: min(980px, 96vw); max-height: min(760px, 92vh); display: grid; grid-template-rows: 48px minmax(0, 1fr) 54px; overflow: hidden; background: #fff; border-radius: 6px; box-shadow: 0 18px 48px rgba(56, 36, 42, .22); }
.fad-modal > header { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid #e4e8ee; }
.fad-modal > header h2 { margin: 0; font-size: 16px; font-weight: 500; }
.fad-modal > header button { width: 34px; height: 34px; background: transparent; border: 0; cursor: pointer; }
.fad-modal > main { overflow: auto; padding: 18px; }
.fad-modal > footer { display: flex; align-items: center; justify-content: center; border-top: 1px solid #e4e8ee; }
.fad-decision-modal { width: min(560px, 94vw); }
.fad-decision-field { display: grid; gap: 8px; color: var(--ui-muted, #716a70); }
.fad-decision-field textarea { min-height: 130px; resize: vertical; padding: 10px; border: 1px solid var(--ui-primary-line, #efd0d5); border-radius: 5px; outline: none; font: inherit; }
.fad-decision-field textarea:focus { border-color: var(--ui-primary, #b8202b); box-shadow: 0 0 0 3px rgba(56, 36, 42, .14); }
.fad-decision-error { margin: 10px 0 0; color: #c63d4b; }
.fad-report-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.fad-report-parties > div { display: grid; gap: 5px; padding: 12px; background: #f3f6fa; }
.fad-report-parties span { color: var(--ui-muted, #716a70); }
.fad-report-parties strong { font-weight: 500; }
.fad-report-table { overflow: auto; border: 1px solid var(--ui-primary-line, #efd0d5); }
.fad-report-table table { width: 100%; min-width: 720px; border-collapse: collapse; }
.fad-report-table th,
.fad-report-table td { height: 38px; padding: 6px 10px; border-right: 1px solid var(--ui-primary-line, #efd0d5); border-bottom: 1px solid var(--ui-primary-line, #efd0d5); text-align: left; }
.fad-report-table th { background: var(--ui-primary-soft, #fbeaec); font-weight: 500; }
.fad-report-table p { margin: 0; padding: 34px; color: var(--ui-muted, #716a70); text-align: center; }
.fad-report-principles { margin-top: 18px; }
.fad-report-principles h3 { font-size: 14px; }
.fad-report-principles ol { margin: 0; padding-left: 22px; line-height: 1.8; }

.fad-loading { grid-template-rows: 66px minmax(0, 1fr); }
.fad-loading-hero,
.fad-loading-grid span { background: linear-gradient(90deg, #e5eaf0 25%, #f4f7fa 45%, #e5eaf0 65%); background-size: 240% 100%; animation: fad-shimmer 1.2s linear infinite; }
.fad-loading-hero { border-radius: 0 0 6px 6px; }
.fad-loading-grid { display: grid; grid-template-columns: 2.3fr 1fr; gap: 20px; padding: 20px 0; }
.fad-loading-grid > div,
.fad-loading-grid > aside { display: grid; align-content: start; gap: 20px; }
.fad-loading-grid span { display: block; height: 170px; border-radius: 5px; }
.fad-loading-grid aside span:first-child { height: 480px; }
.fad-loading-grid aside span:last-child { display: none; }
.fad-error { place-items: center; padding: 24px; }
.fad-error section { width: min(440px, 100%); padding: 28px; background: #fff; border-radius: 6px; text-align: center; }
.fad-error h1 { margin: 0 0 10px; font-size: 18px; }
.fad-error p { color: var(--ui-muted, #716a70); }
.fad-error section > div { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }

@keyframes fad-shimmer { to { background-position: -240% 0; } }

@media (prefers-reduced-motion: reduce) {
  .fad-loading-hero,
  .fad-loading-grid span { animation: none; }
}

@media (max-width: 900px) {
  .filing-approval-detail-page { height: calc(100dvh - 106px); padding: 0 8px; }
  .fad-hero { min-height: 76px; }
  .fad-hero h1 { max-width: calc(100vw - 88px); font-size: 15px; }
  .fad-scroll { padding: 12px 0; }
  .fad-layout,
  .fad-loading-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fad-left { gap: 12px; }
  .fad-approval { position: static; min-height: 0; }
  .fad-grid { grid-template-columns: minmax(0, 1fr); }
  .fad-field { grid-template-columns: 112px minmax(0, 1fr); grid-column: 1 / -1; }
  .fad-field.party { margin: 0 -12px; }
  .fad-field.documents { grid-template-columns: 112px minmax(0, 1fr); }
  .fad-documents li { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .fad-documents time { display: none; }
  .fad-footer { gap: 12px; flex-wrap: wrap; }
  .fad-decision-actions,
  .fad-footer-secondary { gap: 8px; }
  .fad-footer button { min-width: 108px; }
  .fad-modal-backdrop { padding: 10px; }
  .fad-report-parties { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .fad-tags { gap: 4px; }
  .fad-tags span { padding-inline: 5px; }
  .fad-section-body { padding-inline: 10px; }
  .fad-field { grid-template-columns: 104px minmax(0, 1fr); }
  .fad-field.party { margin-inline: -10px; padding-inline: 10px; }
  .fad-approval-pairs { grid-template-columns: 1fr; }
}

/* Approval detail refresh: align the legacy detail surface with the VIS shell. */
.filing-approval-detail-page,
.filing-approval-detail-page * {
  box-sizing: border-box;
}

.filing-approval-detail-page {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 16px 22px 0;
  background: rgba(250, 248, 249, .95);
  color: var(--v2-ink);
}

.fad-hero {
  min-height: 92px;
  align-items: center;
  padding: 16px 18px 15px 20px;
  color: var(--v2-ink);
  background: #fff;
  border: 1px solid var(--v2-line);
  border-top: 3px solid var(--ui-primary);
  border-radius: 10px;
  box-shadow: var(--v2-shadow);
}

.fad-hero > div:first-child { min-width: 0; }
.fad-hero > div:first-child::before {
  content: '\5BA1\6279\5DE5\4F5C\53F0  /  \9879\76EE\7ACB\9879';
  display: block;
  margin-bottom: 4px;
  color: var(--ui-accent-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.fad-hero h1 {
  max-width: min(920px, 72vw);
  margin: 0 0 10px;
  color: var(--v2-ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
}

.fad-tags { gap: 6px; }
.fad-tags span {
  min-height: 24px;
  padding: 2px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
}
.fad-tags .code { color: var(--ui-accent-ink); background: var(--ui-primary-soft); border-color: #efc9ce; }
.fad-tags .formal { color: #2e7654; background: #edf7f0; border-color: #c8e6d2; }
.fad-tags .contract { color: #8a5d1c; background: #fff6e5; border-color: #efddb3; }
.fad-tags .receipt { color: #2e7654; background: #edf7f0; border-color: #c8e6d2; }
.fad-tags .workflow { color: var(--v2-muted); background: #f6f4f5; border-color: var(--v2-line); }
.fad-tags .workflow.success { color: #2e7654; background: #edf7f0; border-color: #c8e6d2; }
.fad-tags .workflow.process { color: #8a5d1c; background: #fff6e5; border-color: #efddb3; }
.fad-tags .workflow.error { color: var(--ui-accent-ink); background: var(--ui-primary-soft); border-color: #efc9ce; }

.fad-hero-close {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  color: var(--v2-muted);
  border: 1px solid var(--v2-line);
  border-radius: 8px;
  background: #fff;
}
.fad-hero-close:hover { color: var(--ui-accent-ink); background: var(--ui-primary-soft); border-color: #efc9ce; }

.fad-scroll {
  padding: 16px 0 18px;
  scrollbar-gutter: stable;
}
.fad-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, .9fr);
  gap: 16px;
  align-items: start;
}
.fad-left { gap: 16px; }

.fad-section,
.fad-approval {
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: 10px;
  box-shadow: var(--v2-shadow);
}

.fad-section > header,
.fad-approval > header {
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--v2-line-soft);
  border-left: 3px solid var(--ui-primary);
  background: #fff;
}
.fad-section h2,
.fad-approval h2 {
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 700;
}
.fad-section-body { padding: 8px 16px 16px; }
.fad-grid { column-gap: 14px; }
.fad-field {
  min-height: 48px;
  grid-template-columns: 106px minmax(0, 1fr);
  padding: 11px 10px;
  border-bottom: 1px solid #f0ecee;
}
.fad-field dt { color: var(--v2-muted); font-size: 12px; font-weight: 600; }
.fad-field dd { color: var(--v2-ink); font-size: 13px; font-weight: 500; line-height: 1.55; }
.fad-field.party,
.fad-field.party.muted {
  margin: 0;
  padding: 11px 10px;
  border-bottom: 1px solid #f0ecee;
  border-radius: 6px;
}
.fad-field.party { background: #fff6f7; }
.fad-field.party.muted { background: #f8f6f7; }
.fad-field.documents { grid-template-columns: 106px minmax(0, 1fr); }
.fad-empty-value { color: #9b9298; font-weight: 400; }

.fad-documents { gap: 8px; }
.fad-documents li {
  min-height: 42px;
  padding: 7px 10px;
  gap: 8px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 7px;
  background: #faf8f9;
}
.fad-documents strong { color: var(--ui-accent-ink); font-weight: 600; }
.fad-documents button {
  height: 28px;
  padding: 0 10px;
  color: var(--ui-accent-ink);
  background: var(--ui-primary-soft);
  border: 1px solid #efc9ce;
  border-radius: 6px;
}
.fad-documents button:hover { color: #fff; background: var(--ui-primary); border-color: var(--ui-primary); }
.fad-documents time { color: var(--v2-muted); font-size: 11px; }

.fad-approval {
  position: sticky;
  top: 0;
  min-height: 0;
  max-height: none;
  overflow: hidden;
}
.fad-timeline { padding: 20px 18px 22px 34px; }
.fad-timeline-node {
  min-height: 98px;
  padding: 0 0 20px 14px;
  border-left: 2px solid #ead8db;
}
.fad-timeline-node > i {
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border: 3px solid #d6c2c7;
  background: #fff;
}
.fad-timeline-node.success { border-left-color: #c8e6d2; }
.fad-timeline-node.success > i { border-color: #3e8a62; background: #3e8a62; }
.fad-timeline-node.process { border-left-color: #efc9ce; }
.fad-timeline-node.process > i { border-color: var(--ui-primary); box-shadow: inset 0 0 0 3px var(--ui-primary); }
.fad-timeline-node.error { border-left-color: #efc9ce; }
.fad-timeline-node.error > i { border-color: var(--ui-primary); background: var(--ui-primary); }
.fad-timeline-node h3 { margin-bottom: 9px; color: var(--v2-ink); font-size: 13px; font-weight: 700; }
.fad-timeline-node.success.last h3 { color: #2e7654; }
.fad-timeline-node.process.last h3 { color: #8a5d1c; }
.fad-timeline-node.error.last h3 { color: var(--ui-accent-ink); }
.fad-approval-card {
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--v2-line-soft);
  border-radius: 8px;
  background: #faf8f9;
}
.fad-approval-pairs { gap: 12px; }
.fad-approval-card span { color: var(--v2-muted); font-size: 11px; }
.fad-approval-card strong { color: var(--v2-ink); font-size: 13px; font-weight: 600; }

.fad-footer {
  min-height: 68px;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 -22px;
  padding: 10px 22px;
  border-top: 1px solid var(--v2-line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -5px 16px rgba(56, 36, 42, .06);
}
.fad-decision-actions { margin-right: auto; }
.fad-footer-secondary { gap: 8px; }
.fad-footer button,
.fad-modal footer button,
.fad-error button {
  min-width: 104px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--v2-line);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
}
.fad-footer .fad-decision-approve { color: #fff; background: #3e8a62; border-color: #3e8a62; }
.fad-footer .fad-decision-approve:hover { background: #32734f; border-color: #32734f; }
.fad-footer .fad-decision-reject { color: #fff; background: var(--ui-primary); border-color: var(--ui-primary); }
.fad-footer .fad-decision-reject:hover { background: var(--ui-primary-hover); border-color: var(--ui-primary-hover); }
.fad-footer button.primary,
.fad-modal footer button,
.fad-error button.primary { color: #fff; background: var(--ui-primary); border-color: var(--ui-primary); }
.fad-footer button.primary:hover,
.fad-modal footer button:hover,
.fad-error button.primary:hover { background: var(--ui-primary-hover); border-color: var(--ui-primary-hover); }
.fad-footer-secondary button:not(.primary),
.fad-modal footer button:not(.primary),
.fad-error button:not(.primary) { color: var(--v2-ink-soft); background: #fff; }
.fad-footer-secondary button:not(.primary):hover,
.fad-modal footer button:not(.primary):hover,
.fad-error button:not(.primary):hover { color: var(--ui-accent-ink); background: var(--ui-primary-soft); border-color: #efc9ce; }

.fad-modal-backdrop { background: rgba(45, 41, 45, .42); backdrop-filter: blur(3px); }
.fad-modal {
  border: 1px solid var(--v2-line);
  border-top: 3px solid var(--ui-primary);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(56, 36, 42, .2);
}
.fad-modal > header { border-bottom-color: var(--v2-line-soft); }
.fad-modal > header h2 { color: var(--v2-ink); font-weight: 700; }
.fad-modal > main { background: #fff; }
.fad-decision-field { color: var(--v2-muted); font-weight: 600; }
.fad-decision-field textarea { border-color: var(--v2-line); border-radius: 7px; background: #faf8f9; }
.fad-decision-field textarea:focus { border-color: var(--ui-primary); box-shadow: 0 0 0 3px var(--ui-primary-soft); }
.fad-report-parties > div { border: 1px solid var(--v2-line-soft); border-radius: 7px; background: #faf8f9; }
.fad-report-table { border-color: var(--v2-line); border-radius: 7px; }
.fad-report-table th { background: #f7f2f4; color: var(--v2-ink); }
.fad-report-table th,
.fad-report-table td { border-color: var(--v2-line-soft); }

.fad-loading-hero,
.fad-loading-grid span { background: linear-gradient(90deg, #f0eaed 25%, #faf8f9 45%, #f0eaed 65%); }
.fad-error section { border: 1px solid var(--v2-line); border-top: 3px solid var(--ui-primary); border-radius: 10px; box-shadow: var(--v2-shadow); }
.fad-error h1 { color: var(--v2-ink); font-weight: 700; }
.fad-error p { color: var(--v2-muted); }

@media (max-width: 900px) {
  .filing-approval-detail-page { padding: 10px 12px 0; }
  .fad-hero { min-height: 86px; padding: 14px; }
  .fad-hero h1 { max-width: calc(100vw - 92px); font-size: 18px; }
  .fad-scroll { padding: 12px 0 14px; }
  .fad-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .fad-left { gap: 12px; }
  .fad-approval { position: static; }
  .fad-footer { margin: 0 -12px; padding: 10px 12px; flex-wrap: wrap; }
  .fad-decision-actions { width: 100%; margin-right: 0; }
  .fad-decision-actions button,
  .fad-footer-secondary button { flex: 1 1 0; min-width: 0; }
  .fad-footer-secondary { width: 100%; }
}

@media (max-width: 560px) {
  .fad-hero { align-items: flex-start; }
  .fad-hero > div:first-child::before { letter-spacing: .08em; }
  .fad-hero h1 { max-width: calc(100vw - 84px); font-size: 17px; }
  .fad-tags { gap: 4px; }
  .fad-tags span { padding-inline: 7px; }
  .fad-section-body { padding: 6px 10px 12px; }
  .fad-grid { grid-template-columns: minmax(0, 1fr); }
  .fad-field,
  .fad-field.documents { grid-template-columns: 96px minmax(0, 1fr); grid-column: 1 / -1; padding-inline: 6px; }
  .fad-field.party,
  .fad-field.party.muted { margin-inline: 0; padding-inline: 6px; }
  .fad-documents li { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .fad-documents time { display: none; }
  .fad-approval-pairs { grid-template-columns: 1fr; }
}

.fad-documents li { grid-template-columns: 18px minmax(0, 1fr) auto; }
.fad-documents .fad-document-name {
  display: block;
  min-width: 0;
  height: auto;
  min-height: 28px;
  padding: 0;
  color: var(--ui-accent-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 600;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
}
.fad-documents .fad-document-name:hover { color: var(--ui-primary); background: transparent; text-decoration: underline; }
.fad-document-actions { display: flex; gap: 4px; }
.fad-document-actions button { width: 32px; height: 32px; justify-content: center; padding: 0; }
.fad-document-meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 12px; color: var(--v2-muted); font-size: 11px; }
.fad-document-meta time { display: block; text-align: left; }
.fad-preview-modal {
  width: min(1120px, 96vw);
  height: min(850px, 92vh);
  max-height: 92dvh;
  grid-template-rows: 72px minmax(0, 1fr) 58px;
}
.fad-preview-modal > header > div { min-width: 0; }
.fad-preview-modal > header p { margin: 4px 0 0; color: var(--v2-muted); font-size: 12px; overflow-wrap: anywhere; }
.fad-preview-modal > header button { flex: 0 0 34px; }
.fad-preview-modal > main { min-height: 0; padding: 0; background: #f5f3f4; }
.fad-preview-modal iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.fad-preview-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.fad-preview-modal > footer { gap: 8px; padding: 8px 12px; }
.fad-preview-modal footer button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 80px; }
.fad-preview-open { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--ui-accent-ink); border: 1px solid var(--v2-line); border-radius: 7px; }
.fad-preview-open:hover { background: var(--ui-primary-soft); }
.fad-preview-status { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; color: var(--v2-muted); text-align: center; }
.fad-preview-status strong { color: var(--v2-ink); font-size: 15px; }
.fad-preview-status p { max-width: 560px; margin: 0; overflow-wrap: anywhere; }
.fad-preview-status > i { font-size: 32px; color: var(--ui-primary); }
@media (max-width: 560px) {
  .fad-field.documents { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fad-preview-backdrop { padding: 0; }
  .fad-preview-modal { width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; border-radius: 0; grid-template-rows: auto minmax(0, 1fr) auto; }
  .fad-preview-modal > header { min-height: 72px; gap: 12px; padding: 12px; }
  .fad-preview-modal > footer { min-height: 58px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}
