/* ===== デザイントークン ===== */
:root {
  --bg: #f6f7fb;
  --panel: #ffffff;
  --panel-2: #f1f3f9;
  --text: #171a2b;
  --muted: #5f6680;
  --line: #e3e6ef;
  --accent: #4f46e5;
  --accent-2: #0ea5a4;
  --accent-soft: #eef0ff;
  --grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #0ea5a4 100%);
  --ok: #059669;
  --ng: #dc2626;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 26, 43, .04), 0 8px 24px rgba(23, 26, 43, .06);
  --shadow-lg: 0 2px 4px rgba(23, 26, 43, .04), 0 16px 40px rgba(79, 70, 229, .12);
  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-num: "Inter", "Noto Sans JP", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1020;
    --panel: #171a2e;
    --panel-2: #1e2238;
    --text: #e8eaf6;
    --muted: #9aa0bd;
    --line: #2a2f4a;
    --accent: #8b85ff;
    --accent-2: #2dd4bf;
    --accent-soft: #23264a;
    --ok: #34d399;
    --ng: #f87171;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

/* ===== ヘッダー ===== */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: .04em;
}
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--grad); color: #fff; font-family: var(--font-num); font-weight: 800; font-size: 1rem;
  box-shadow: 0 4px 12px rgba(79, 70, 229, .35);
}
.site-nav {
  display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none;
  max-width: 100%;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  white-space: nowrap; color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--panel-2); color: var(--text); }
.site-nav a[aria-current] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
@media (max-width: 640px) {
  .site-nav { margin-left: 0; width: 100%; flex-wrap: wrap; overflow: visible; }
  .site-nav a { padding: 4px 10px; font-size: .82rem; }
}

/* ===== ヒーロー ===== */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 520px; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 40%, rgba(124, 58, 237, .16), transparent 70%),
    radial-gradient(35% 45% at 80% 30%, rgba(14, 165, 164, .16), transparent 70%),
    radial-gradient(30% 40% at 55% 70%, rgba(79, 70, 229, .12), transparent 70%);
}
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 36px 16px 24px; }
.eyebrow {
  display: inline-block; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .08em;
}
.hero h1 {
  margin: 0; font-size: clamp(1.5rem, 4.2vw, 2.6rem); line-height: 1.3; font-weight: 800; letter-spacing: .03em;
}
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.hero-lead { margin: 10px 0 0; color: var(--muted); font-size: 1.02rem; max-width: 46em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.badges li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line);
}
.badges li::before { content: "✓"; color: var(--accent-2); font-weight: 800; }

/* ===== 共通カード ===== */
.card, .editor fieldset, .result, .guide, .lead, .example, .guide-list li, .cta {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ===== 請求書メーカー ===== */
.layout {
  max-width: 1200px; margin: 0 auto; padding: 8px 16px 24px;
  display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 24px; align-items: start;
}
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); } }

.editor fieldset { margin: 0 0 16px; padding: 14px 18px 18px; }
.editor legend {
  float: left; width: 100%; padding: 0; margin-bottom: 4px;
  font-weight: 800; font-size: .95rem; display: flex; align-items: center; gap: 8px;
}
.editor legend::before { content: ""; width: 4px; height: 1.1em; border-radius: 4px; background: var(--grad); }
.editor legend + * { clear: both; }
.editor label { display: block; margin-top: 12px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.editor label.check {
  display: flex; gap: 10px; align-items: center; color: var(--text); font-weight: 500; font-size: .9rem;
  padding: 10px 12px; border-radius: var(--radius-sm); background: var(--panel-2);
}
.editor label.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.editor input, .editor select, .editor textarea, .editor button {
  font: inherit; font-size: .95rem; font-weight: 400; color: var(--text);
  background: var(--panel-2); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 12px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.editor input:hover, .editor select:hover, .editor textarea:hover { border-color: var(--line); }
.editor input:focus, .editor select:focus, .editor textarea:focus {
  outline: none; background: var(--panel); border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.editor label > input:not([type=checkbox]), .editor label > select, .editor label > textarea {
  display: block; width: 100%; margin-top: 4px;
}
.editor input[type=number] { font-family: var(--font-num); }
.editor button {
  cursor: pointer; background: var(--panel); border: 1px solid var(--line); font-weight: 600; font-size: .88rem;
}
.editor button:hover { border-color: var(--accent); color: var(--accent); }
.editor button.primary {
  background: var(--grad); border: 0; color: #fff; font-weight: 700; font-size: .95rem;
  padding: 12px 20px; box-shadow: 0 6px 18px rgba(79, 70, 229, .35);
}
.editor button.primary:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
#addItem { width: 100%; border-style: dashed; color: var(--accent); background: transparent; }
.msg { display: block; min-height: 1.2em; font-size: .8rem; margin-top: 4px; }
.msg.ok { color: var(--ok); }
.msg.ng { color: var(--ng); }

.item {
  display: grid; grid-template-columns: 64px 56px minmax(0, 1fr) 92px 36px; gap: 6px;
  margin: 10px 0; padding: 10px; border-radius: var(--radius-sm); background: var(--panel-2);
}
.item .name { grid-column: 1 / -1; }
.item input, .item select { width: 100%; min-width: 0; padding: 8px; background: var(--panel); border-color: var(--line); }
.item .del { padding: 0; color: var(--muted); }
.item .del:hover { color: var(--ng); border-color: var(--ng); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .primary { flex: 1 1 100%; }
.file-btn {
  display: inline-flex !important; align-items: center; margin: 0 !important;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); color: var(--text) !important; cursor: pointer; font-size: .88rem !important; font-weight: 600 !important;
}
.file-btn:hover { border-color: var(--accent); color: var(--accent) !important; }
.editor .file-btn > input[type=file] { display: none; }
.ad-slot:empty { display: none; }
.ad-slot { margin-top: 16px; }

/* 帳票プレビュー（印刷時もこの見た目。常に白地） */
.preview-wrap { overflow-x: auto; position: sticky; top: 76px; }
.sheet {
  background: #fff; color: #111; width: 210mm; min-height: 297mm; margin: 0 auto; padding: 16mm 14mm;
  border-radius: 6px; box-shadow: var(--shadow-lg); font-size: 10.5pt; letter-spacing: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}
.sheet p { margin: 2px 0; }
.sheet .small { font-size: 9pt; color: #333; }
.doc-title { text-align: center; letter-spacing: .5em; font-size: 20pt; margin: 0 0 8px; }
.meta { text-align: right; font-size: 9.5pt; }
.parties { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }
.client { flex: 1.2; }
.issuer { flex: 1; text-align: right; }
.client-name { font-size: 14pt; border-bottom: 1px solid #111; padding-bottom: 2px; margin-bottom: 6px !important; }
.issuer-name { font-weight: 700; font-size: 11.5pt; }
.grand {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 3px double #111; margin: 18px 0 6px; padding: 4px 2px; max-width: 60%;
}
.grand strong { font-size: 18pt; }
.due-line { font-size: 10pt; }
.sheet table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.lines th, .lines td { border: 1px solid #999; padding: 4px 6px; }
.lines thead th { background: #eef0f3; font-weight: 600; font-size: 9.5pt; }
.lines .empty { text-align: center; color: #888; }
.totals { width: 60% !important; margin-left: auto; }
.totals th, .totals td { border-bottom: 1px solid #ccc; padding: 4px 6px; font-weight: normal; text-align: left; }
.totals tr.strong th, .totals tr.strong td { font-weight: 700; border-bottom: 2px solid #111; }
.r { text-align: right !important; white-space: nowrap; }
.box { border: 1px solid #999; padding: 6px 10px; margin-top: 12px; }
.box h3 { font-size: 10pt; margin: 0 0 2px; }

/* ===== 解説セクション（ツールページ下部） ===== */
.guide { padding: 8px 24px 20px; margin: 8px auto 24px; margin-inline: max(16px, calc((100% - 1168px) / 2)); }
.guide h2 { font-size: 1.12rem; margin: 1.4em 0 .5em; }
.guide ol, .guide ul { padding-left: 1.4em; }

/* ===== 単機能ツール ===== */
.tool {
  max-width: 1200px; margin: 0 auto; padding: 8px 16px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start;
}
@media (max-width: 760px) { .tool { grid-template-columns: minmax(0, 1fr); } }
.tool .editor fieldset { margin: 0; }
.result { padding: 20px 24px; position: relative; overflow: hidden; }
.result::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.result dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; margin: 0; align-items: baseline; }
.result dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.result dd { margin: 0; text-align: right; font-size: 1.25rem; font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.result dt:last-of-type { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text); }
.result dd.big {
  grid-column: 1 / -1; margin-top: -10px; line-height: 1.2;
  font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== 解説記事 ===== */
.article { max-width: 780px; margin: 0 auto; padding: 8px 16px 40px; font-size: 1.02rem; line-height: 1.95; }
.article > article > h1 { font-size: clamp(1.5rem, 3.6vw, 2rem); line-height: 1.45; margin: 28px 0 6px; font-weight: 800; }
.article h2 {
  font-size: 1.28rem; margin: 2.4em 0 .8em; padding: 0 0 0 14px; position: relative; line-height: 1.5;
}
.article h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 5px; border-radius: 4px; background: var(--grad); }
.article h3 { font-size: 1.08rem; margin: 1.8em 0 .5em; }
.article-date { color: var(--muted); font-size: .88rem; margin: 0; font-family: var(--font-num); }
.lead { padding: 16px 20px; margin: 20px 0; border-left: 0; position: relative; overflow: hidden; }
.lead::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad); }
.article-table {
  width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.2em 0; font-size: .94rem;
  display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.article-table th, .article-table td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article-table tr:last-child td { border-bottom: 0; }
.article-table th { background: var(--accent-soft); color: var(--text); white-space: nowrap; font-weight: 700; }
.article-table td { background: var(--panel); }
.example { padding: 12px 20px; margin: 1.2em 0; box-shadow: none; background: var(--panel-2); border-style: dashed; }
.example p { margin: .3em 0; }
.example code, .article code {
  overflow-wrap: anywhere; font-size: .9em; background: var(--accent-soft); padding: 2px 6px; border-radius: 6px;
}
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding: 6px 0 6px 32px; position: relative; border-bottom: 1px dashed var(--line); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 8px; width: 22px; height: 22px; border-radius: 6px;
  display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: #fff; background: var(--grad);
}
.note { color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2.4em; }
.cta {
  padding: 24px; margin: 2.4em 0; text-align: center; border: 0; color: #fff;
  background: var(--grad); box-shadow: var(--shadow-lg);
}
.cta p { margin: 0 0 14px; }
.cta-btn {
  display: inline-block; background: #fff; color: #4f46e5 !important; text-decoration: none; font-weight: 800;
  padding: 12px 32px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .15); transition: transform .15s;
}
.cta-btn:hover { transform: translateY(-2px); }
.related h2 { margin-top: 1.6em; }
.related ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.related li a {
  display: block; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--panel);
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; color: var(--text); transition: border-color .15s, transform .15s;
}
.related li a::after { content: " →"; color: var(--accent); }
.related li a:hover { border-color: var(--accent); transform: translateX(2px); }

/* ガイド一覧 */
.guide-list { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 8px; }
.guide-list li { padding: 18px 20px; margin: 0; transition: transform .15s, box-shadow .15s; }
.guide-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.guide-list a { text-decoration: none; color: var(--text); font-size: 1.05rem; }
.guide-list a:hover { color: var(--accent); }
.guide-list p { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.7; }
.tool-cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tool-cards a {
  display: block; height: 100%; padding: 18px 20px; border-radius: var(--radius); background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .15s, box-shadow .15s;
}
.tool-cards a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tool-cards strong { display: block; margin-bottom: 4px; }
.tool-cards span { color: var(--muted); font-size: .88rem; line-height: 1.6; display: block; }

/* ===== フッター ===== */
.site-footer { margin-top: 32px; border-top: 1px solid var(--line); background: var(--panel); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 28px 16px; display: flex; flex-wrap: wrap; gap: 16px 32px;
  align-items: center; justify-content: space-between; font-size: .88rem;
}
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; }
.footer-inner nav a:hover { color: var(--accent); }
.footer-inner small { color: var(--muted); width: 100%; font-family: var(--font-num); }

/* 応援リンク */
.support a { color: var(--accent); }

@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .no-print { display: none !important; }
  .layout { display: block; padding: 0; max-width: none; }
  .preview-wrap { position: static; }
  .sheet { box-shadow: none; border-radius: 0; width: auto; min-height: auto; zoom: 1 !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ===== 改善（市場調査を反映） ===== */
/* iOS でフォーカス時に拡大されないよう入力欄は16px以上 */
.editor input, .editor select, .editor textarea { font-size: 1rem; min-height: 44px; }
.item input, .item select { min-height: 40px; }
/* スマホではヒーローを詰めて、ツールを最初の画面に近づける */
@media (max-width: 640px) {
  .hero-inner { padding: 18px 16px 10px; }
  .eyebrow { display: none; }
  .hero p.hero-lead { font-size: .9rem; margin-top: 6px; }
  .badges { margin-top: 10px; gap: 6px; }
  .badges li { padding: 3px 10px; font-size: .76rem; }
  .badges li:nth-child(n+4) { display: none; }
}
/* 計算結果のコピー・計算式 */
.result-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
.copy-btn {
  font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; color: var(--accent);
  background: var(--accent-soft); border: 0; border-radius: 999px; padding: 8px 16px; min-height: 40px;
}
.copy-btn:hover { filter: brightness(.97); }
.formula { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.formula summary { cursor: pointer; font-weight: 600; color: var(--text); }
.formula p { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--panel-2); font-family: var(--font-num); line-height: 1.7; }
/* よくある質問 */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; position: relative; padding-right: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 0; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }
.related-inline { padding-left: 1.2em; }
.updated { color: var(--muted); font-size: .82rem; margin-top: 1.6em; }
/* 広告枠：操作ボタンから離し、ラベルを付ける */
.ad-slot { max-width: 1168px; margin: 24px auto; padding: 0 16px; }
.ad-slot:not(:empty)::before { content: "広告"; display: block; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 640px) {
  .topbar { position: static; }
  .preview-wrap { position: static; }
}
.stamp-msg { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, #f59e0b 14%, var(--panel)); border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent); font-size: .88rem; }
.stamp-msg a { font-weight: 700; margin-left: 4px; }
.reason, .judge { margin: 14px 0 0; font-size: .9rem; line-height: 1.7; color: var(--muted); }
.judge { padding: 10px 12px; border-radius: var(--radius-sm); font-weight: 600; }
.judge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--panel)); }
.judge.ng { color: var(--ng); background: color-mix(in srgb, var(--ng) 10%, var(--panel)); }
/* 消費税の納付額比較 */
.result-title { margin: 0 0 12px; font-weight: 800; }
.methods { display: grid; gap: 8px; }
.method { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid transparent; }
.method .m-name { font-weight: 700; }
.method .m-name em { font-style: normal; font-size: .72rem; font-weight: 800; color: #fff; background: var(--grad); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.method .m-value { font-family: var(--font-num); font-weight: 800; font-size: 1.15rem; text-align: right; }
.method .m-note { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.method.best { border-color: var(--accent); background: var(--accent-soft); }
.method.na { opacity: .55; }
.method.na .m-value { font-size: .9rem; font-weight: 600; }
.judge.warn { color: #b45309; background: color-mix(in srgb, #f59e0b 14%, var(--panel)); }
@media (prefers-color-scheme: dark) { .judge.warn { color: #fbbf24; } }
.editor label.check input { min-height: 0; padding: 0; }
/* お問い合わせ */
.form-link { margin: 20px 0; }
.form-link .cta-btn { background: var(--grad); color: #fff !important; }
.form-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.form-embed iframe { display: block; width: 100%; height: 1100px; border: 0; }
.hint-text { margin: 4px 0 0; font-size: .78rem; color: var(--muted); }
/* アフィリエイト（PR）枠：ツールの操作部分から離して、控えめに置く */
.pr-box { position: relative; margin: 2em 0; padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.pr-label { position: absolute; top: -9px; left: 14px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--muted); background: var(--panel); border: 1px solid var(--line); }
.pr-title { margin: 0 0 4px; font-weight: 700; }
.pr-text { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }
.pr-link { margin: 0; }
.pr-link a { font-weight: 700; color: var(--accent); }
.pr-link img { position: absolute; width: 1px; height: 1px; }
#breakdown { margin-top: 16px; font-size: .85rem; }
#breakdown td, #breakdown th { white-space: nowrap; padding: 8px 6px; }
#breakdown td:nth-child(2) { white-space: normal; }
#breakdown td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.methods-cell { display: grid; gap: 8px; margin-top: 8px; font-size: .95rem; }
.methods-cell .m-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--panel-2); }
.methods-cell .m-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.methods-cell .m-row span { font-family: var(--font-body, inherit); font-weight: 500; }
#schedule { margin-top: 16px; font-size: .85rem; }
#schedule caption { text-align: left; font-weight: 700; padding: 0 0 8px; }
#schedule td, #schedule th { padding: 8px 4px; }
#schedule td:first-child { white-space: nowrap; }
#schedule td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
#schedule small { display: block; color: var(--muted); font-size: .78rem; }
