/* TxTrace 共通スタイル */
:root {
  --accent: #1D4ED8;
  --ink: #111827;
  --muted: #4B5563;
  --line: #E5E7EB;
  --bg: #F4F5F7;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Noto Sans JP', system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
input, select, button { font: inherit; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- トップ（ライト） ---------- */
body.home { background: #F8FAFC; color: var(--ink); }
body.home a { color: var(--accent); }
body.home a:hover { color: #1E3A8A; }
.home-wrap {
  min-height: 100vh; display: flex; flex-direction: column;
  background-image:
    radial-gradient(ellipse 720px 420px at 50% 0%, #DBEAFE 0%, rgba(219,234,254,0) 100%),
    linear-gradient(180deg, #EFF6FF 0%, #F8FAFC 55%);
}
.home-header {
  width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.home-header .left { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.home-logo { display: flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; }
.home-logo svg { padding: 4px; box-sizing: content-box; background: var(--accent); border-radius: 8px; }
.home-logo span { font-size: 20px; font-weight: 900; letter-spacing: 0.04em; }
.home-header .sep { width: 1px; height: 20px; background: #CBD5E1; }
.home-header nav { display: flex; flex-wrap: wrap; gap: 4px; }
.home-header nav a { color: var(--muted) !important; text-decoration: none; padding: 10px 12px; font-size: 14px; }
.home-header nav a:hover { color: var(--accent) !important; }
.lang-btn {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); cursor: pointer;
}
.lang-btn:hover { color: var(--accent); border-color: #BFDBFE; }
.home-main {
  flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 120px 24px 140px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.home-main h1 { margin: 0; font-size: clamp(32px, 5vw, 58px); font-weight: 900; line-height: 1.25; letter-spacing: 0.01em; color: #0F172A; }
.home-main h1 .accent { color: var(--accent); }
.home-main .lead { margin: 0; font-size: 20px; font-weight: 500; color: var(--muted); }
.search {
  margin-top: 44px; width: 100%; max-width: 720px; display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px; padding: 4px 4px 4px 28px;
  border: 1px solid #CBD5E1; box-shadow: 0 10px 30px -12px rgba(29,78,216,.35);
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(29,78,216,.15), 0 10px 30px -12px rgba(29,78,216,.35); }
.search input { flex: 1; min-width: 0; height: 52px; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 18px; }
.search input::placeholder { color: #6B7280; }
.search button {
  flex: none; width: 80px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
}
.search button:hover { background: #1E40AF; }
.search-error { margin: 0; min-height: 1.4em; font-size: 13px; color: #B91C1C; }
.home-main .note { margin: 0; font-size: 13px; color: #64748B; }
@media (max-width: 560px) {
  .home-main { padding: 72px 16px 96px; }
  .home-main .lead { font-size: 16px; }
  .search { padding-left: 18px; }
  .search input { font-size: 15px; }
  .search button { width: 60px; }
}

/* ---------- アプリ画面（ライト） ---------- */
body.app { background: var(--bg); color: var(--ink); }
body.app a { color: var(--accent); }
body.app a:hover { color: #1E3A8A; }
.app-header { color: #F8FAFC; background: #000; }
.app-header .inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: #F8FAFC !important; text-decoration: none; }
.brand .name { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; }
.brand .sub { font-size: 13px; color: #CBD5E1; }
.app-header nav { display: flex; flex-wrap: wrap; gap: 4px; }
.app-header nav a { color: #CBD5E1 !important; text-decoration: none; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.app-header nav a:hover { color: #fff !important; background: #111827; }
.app-header nav a[aria-current="page"] { color: #fff !important; background: #1E293B; }

.app-main { max-width: 1280px; margin: 0 auto; padding: 36px 24px 64px; display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head .titles { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.step { margin: 0; font-size: 13px; font-weight: 500; color: var(--accent); letter-spacing: 0.06em; }
.page-head h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.3; }
.page-head .meta { margin: 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px;
  border-radius: 8px; text-decoration: none; font-size: 14px; font-weight: 500; cursor: pointer;
}
.btn-outline { border: 1px solid #D1D5DB; background: #fff; color: var(--ink) !important; }
.btn-outline:hover { background: #F9FAFB; }
.btn-primary { border: 0; background: var(--accent); color: #fff !important; font-weight: 700; padding: 0 20px; }
.btn-primary:hover { background: #1E40AF; }
.btn-lg { height: 48px; font-size: 15px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.card-pad { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.card h2 { margin: 0; font-size: 17px; font-weight: 700; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.stat { padding: 18px 20px; }
.stat .label { margin: 0; font-size: 13px; color: var(--muted); }
.stat .value { margin: 4px 0 0; font-size: 26px; font-weight: 700; }
.stat .value small { font-size: 14px; font-weight: 500; color: var(--muted); }
.stat .value.warn, .stat .value.warn small { color: #B45309; }

.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #374151; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; border: 1px solid; }

/* 資金フロー図 */
.flow-scroll { overflow-x: auto; border: 1px solid #F1F5F9; border-radius: 10px; background: #FAFAFB; }
.flow {
  min-width: 1120px; padding: 28px 24px; display: grid;
  grid-template-columns: 180px 40px 180px 40px 190px 40px 190px 40px 1fr; align-items: center; row-gap: 20px;
}
.node { border: 1.5px solid; border-radius: 10px; padding: 12px 14px; }
.node .k { margin: 0; font-size: 12px; font-weight: 700; }
.node .addr { margin: 2px 0 0; font-family: var(--mono); font-size: 13px; }
.node .v { margin: 6px 0 0; font-size: 13px; }
.node.victim { background: #DBEAFE; border-color: #1D4ED8; }
.node.victim .k, .node.victim .v { color: #1E3A8A; }
.node.scam { background: #FEE2E2; border-color: #B91C1C; }
.node.scam .k, .node.scam .v { color: #991B1B; }
.node.relay { background: #F3F4F6; border-color: #6B7280; }
.node.relay .k { color: #374151; }
.node.exch { background: #FEF3C7; border: 2px solid #B45309; }
.node.exch .k, .node.exch .amt { color: #92400E; }
.node.idle { background: #fff; border-style: dashed; border-color: #6B7280; }
.node.idle .k, .node.idle .amt { color: #374151; }
.node.split { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.node .amt { margin: 0; font-size: 18px; font-weight: 700; white-space: nowrap; }
.arrow { text-align: center; color: #6B7280; font-size: 22px; }
.arrow.faint { color: #9CA3AF; }

.split-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.col-wide { flex: 999 1 640px; min-width: 0; }
.col-side { flex: 1 1 340px; min-width: 0; }

/* 取引経過 */
.tx-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.tx-head span { font-size: 13px; color: var(--muted); }
.tx-group { margin: 4px 0 0; font-size: 16px; font-weight: 700; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.tx {
  margin: 0; display: grid; grid-template-columns: 140px minmax(0, 1fr); column-gap: 16px; row-gap: 8px;
  align-items: baseline; padding: 16px 0;
}
.tx:first-of-type { padding-top: 6px; }
.tx + .tx { border-top: 1px solid var(--line); }
.tx dt { font-size: 14px; color: var(--muted); }
.tx dt.txid { font-weight: 700; color: var(--accent); }
.tx dd { margin: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; }
.tx dd.amount { font-family: inherit; font-size: 14px; font-weight: 700; }
.tx dd.amount span { font-weight: 400; color: var(--muted); }
.tx dd.dest { font-weight: 500; }
.tx dd.dest.scam { color: #991B1B; }
.copy {
  margin-left: 6px; padding: 0 6px; height: 22px; font-size: 11px; vertical-align: middle;
  border: 1px solid #D1D5DB; border-radius: 4px; background: #fff; color: var(--muted); cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
}
.copy:hover { background: #F3F4F6; }
@media (max-width: 560px) { .tx { grid-template-columns: 1fr; row-gap: 2px; } .tx dd { margin-bottom: 8px; } }

/* 最終到達先 */
.dest-card { border: 1px solid #FDE68A; background: #FFFBEB; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.dest-card.idle { border: 1px dashed #9CA3AF; background: transparent; }
.dest-card .top { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; }
.dest-card .top .amt { color: #92400E; }
.dest-card.idle .top .amt { color: inherit; }
.dest-card p { margin: 0; font-size: 13px; color: var(--muted); }
.conf-high { color: #166534; font-weight: 500; }
.conf-mid { color: #92400E; font-weight: 500; }
.fine { margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- レポート ---------- */
.form { flex: 1 1 320px; min-width: 0; padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .form legend { font-size: 14px; font-weight: 500; }
.field select, .field input[type=text] {
  height: 44px; padding: 0 12px; border: 1px solid #D1D5DB; border-radius: 8px; background: #fff; color: var(--ink);
}
.form fieldset { margin: 0; border: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.form legend { padding: 0 0 6px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.form .buttons { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }

.preview { flex: 999 1 620px; min-width: 0; background: var(--line); border-radius: 12px; padding: 28px; display: flex; justify-content: center; }
.paper {
  width: 100%; max-width: 760px; background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,0.12), 0 8px 24px rgba(15,23,42,0.08);
  padding: 56px 60px; font-family: 'Noto Serif JP', serif; font-size: 14px; line-height: 1.9; color: var(--ink);
  display: flex; flex-direction: column; gap: 22px;
}
.paper .doc-meta { display: flex; justify-content: space-between; gap: 16px; font-family: 'Noto Sans JP', sans-serif; font-size: 12px; color: var(--muted); }
.paper .doc-title { text-align: center; border-bottom: 2px solid var(--ink); padding-bottom: 14px; }
.paper .doc-title h2 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: 0.08em; }
.paper .doc-title p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.paper h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.paper .codebox { margin: 8px 0 0; font-family: var(--mono); font-size: 12px; background: #F9FAFB; border: 1px solid var(--line); padding: 8px 10px; overflow-wrap: anywhere; }
.paper table { width: 100%; border-collapse: collapse; font-size: 13px; }
.paper th, .paper td { border: 1px solid #9CA3AF; padding: 6px 10px; text-align: left; vertical-align: top; }
.paper th { font-weight: 500; background: #F3F4F6; width: 40%; }
.paper .tx-list { display: flex; flex-direction: column; gap: 14px; }
.paper .tx-list h3 { margin: 0; }
.paper .tx-list > p { margin: 0; font-size: 15px; font-weight: 700; }
.paper dl { margin: 0; display: grid; grid-template-columns: 9em minmax(0, 1fr); column-gap: 12px; row-gap: 2px; font-size: 13px; }
.paper dd { margin: 0; overflow-wrap: anywhere; }
.mini-flow {
  border: 1px solid #D1D5DB; padding: 14px; font-family: 'Noto Sans JP', sans-serif; font-size: 12px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: center; text-align: center;
}
.mini-flow .b { padding: 6px; border: 1px solid; }
.mini-flow .stack { display: flex; flex-direction: column; gap: 6px; }
.paper .caption { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.paper ol.url-list { margin: 0; padding-left: 1.4em; font-size: 12px; overflow-wrap: anywhere; }
.paper p { margin: 0; }
.paper .page-no { border-top: 1px solid #D1D5DB; padding-top: 12px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 640px) {
  .preview { padding: 12px; }
  .paper { padding: 28px 20px; }
  .paper dl { grid-template-columns: 1fr; }
  .mini-flow { grid-template-columns: 1fr 1fr; }
}

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111827; color: #fff;
  padding: 10px 16px; border-radius: 8px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: 1; }

@media print {
  body.app { background: #fff; }
  .app-header, .page-head, .form { display: none !important; }
  .app-main { padding: 0; }
  .preview { padding: 0; background: #fff; }
  .paper { box-shadow: none; padding: 0; max-width: none; }
  .paper .page-no { display: none; }
}

/* ---------- 動的な画面の追加スタイル ---------- */
[hidden] { display: none !important; }
.muted { margin: 0; color: var(--muted); font-size: 13px; }
.hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:hover { color: #1E3A8A; }

/* トップ：チェーン選択・最近の案件 */
.choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.choices button { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid #BFDBFE; background: #fff; color: var(--accent); font-weight: 500; cursor: pointer; }
.choices button:hover { background: #EFF6FF; }
.home-main .note.warn { color: #B45309; background: #FEF3C7; border-radius: 8px; padding: 8px 14px; max-width: 720px; }
.search button:disabled { opacity: .6; cursor: progress; }

/* トップ：検索中のローディング */
.loading {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(248,250,252,.9); backdrop-filter: blur(4px);
}
.loading[hidden] { display: none; }
.loading-box { width: 100%; max-width: 440px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.spinner {
  width: 48px; height: 48px; margin-bottom: 12px; border-radius: 50%;
  border: 4px solid #DBEAFE; border-top-color: var(--accent); animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { margin: 0; font-size: 20px; font-weight: 700; color: #0F172A; }
.loading-detail { margin: 0; font-size: 14px; color: var(--muted); }
.loading-input { margin: 0; max-width: 100%; font-size: 12px; color: #64748B; overflow-wrap: anywhere; }
.loading-time { margin: 0; min-height: 1.4em; font-size: 13px; color: #64748B; }
.loading-cancel {
  margin-top: 12px; height: 40px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.loading-cancel:hover { background: #F1F5F9; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.recent {
  margin-top: 36px; width: 100%; max-width: 720px; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.recent h2 { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.recent ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.recent li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.recent li a { font-family: var(--mono); }
.recent li span { color: #64748B; font-size: 13px; flex: 1; }
.recent li.empty { color: #94A3B8; }
.recent .link-btn { color: #64748B; }
.recent .link-btn:hover { color: #B91C1C; }
.recent-actions { margin: 10px 0 0; font-size: 13px; }
.recent-actions .link-btn { color: var(--accent); }
.recent-actions .link-btn:hover { color: #1E3A8A; }

/* 追跡結果：進捗・お知らせ */
.status-bar { padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.status-bar p { margin: 0; font-size: 14px; font-weight: 500; }
.progress { height: 6px; background: #E5E7EB; border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.notice { padding: 14px 20px; font-size: 14px; border-color: #FDE68A; background: #FFFBEB; }
.stat .value { line-height: 1.3; }

/* 起点の選択 */
.table-scroll { overflow-x: auto; }
.picker-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.picker-table th, .picker-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.picker-table th { color: var(--muted); font-weight: 500; }
.picker-table input { width: 18px; height: 18px; accent-color: var(--accent); }

/* フロー図 */
.flow-scroll svg { display: block; }
.flow-scroll .fnode { cursor: pointer; }
.flow-scroll .fnode:hover rect { filter: brightness(0.97); }
.empty-flow { margin: 0; padding: 28px 24px; color: var(--muted); font-size: 14px; }

/* 取引経過（分岐の深さを左の余白で表す） */
.tx-item { margin-left: calc(var(--d, 0) * 14px); padding-left: calc(min(var(--d, 0), 1) * 12px); border-left: calc(min(var(--d, 0), 1) * 2px) solid #E5E7EB; }
.tx-item + .tx-item { border-top: 1px solid var(--line); }
.tx-item.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: #DBEAFE; } to { background: transparent; } }
.tx dd .tag { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-family: 'Noto Sans JP', sans-serif; font-size: 12px; }
.tx dd.amount .traced { display: block; font-size: 13px; color: #92400E; }
.tx-foot { display: flex; flex-direction: column; gap: 6px; padding: 0 0 14px; }
.tx-foot:empty { display: none; }
.badge { align-self: flex-start; padding: 1px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge.guess { background: #FEF3C7; color: #92400E; }
.badge.manual { background: #DBEAFE; color: #1E3A8A; }
.badge.pending { background: #F3F4F6; color: #374151; }
.ends { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.ends .end { padding: 6px 10px; border-radius: 6px; }
.ends .exch { background: #FFFBEB; border: 1px solid #FDE68A; }
.ends .idle { border: 1px dashed #9CA3AF; }
.ends .stop { background: #F9FAFB; border: 1px solid var(--line); color: #374151; }
.tx-acts { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* 右カラム */
.side-stack { display: flex; flex-direction: column; gap: 24px; }
#dest { display: flex; flex-direction: column; gap: 14px; }
.dest-card.stop { border: 1px solid var(--line); background: #F9FAFB; }
.dest-card ul { margin: 0; padding-left: 1.2em; font-size: 13px; color: var(--muted); }
.conf-low { color: #B91C1C; font-weight: 500; }
.adjust { gap: 16px; }
.adjust .field input[type=text], .adjust .grid2 input {
  height: 40px; padding: 0 10px; border: 1px solid #D1D5DB; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
.adjust .field label { font-size: 14px; font-weight: 500; }
.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline input { flex: 1 1 160px; }
.settings summary { cursor: pointer; font-size: 14px; font-weight: 500; }
.settings form { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2 label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.hint-list { margin: 0; padding-left: 1.2em; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }

/* レポートのプレビュー */
.paper .doc-sec { display: flex; flex-direction: column; gap: 10px; }
.paper .sub { margin: 6px 0 0; font-size: 15px; font-weight: 700; padding-bottom: 4px; border-bottom: 1.5px solid var(--ink); }
.paper table.grid th { width: auto; }
.paper table.grid td { font-size: 12px; }
.paper td { overflow-wrap: anywhere; }
.paper .doc-flow { border: 1px solid #D1D5DB; overflow-x: auto; }
.paper .doc-flow svg { display: block; max-width: 100%; height: auto; }
.paper .tx-list dl { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.paper dd { font-family: var(--mono); font-size: 12px; }
.paper .note-box { margin: 0; padding: 12px 14px 12px 2em; background: #FFFBEB; border: 1px solid #FDE68A; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } .tx-item { margin-left: 0; } }
@media print { .notice { display: none !important; } .paper .doc-flow { border: 0; } }
