/* 白基調・上部タブ型。外部フォント・画像は使わない */
:root {
  --ink: #1c2230; --muted: #5b6472; --line: #dfe4ea; --bg: #f6f7f9; --card: #fff;
  --accent: #2c5fa8; --accent-soft: #e8f0fb;
  --s1: #1f63c6; --s1-bg: #e6effc; --s2: #1d8a4e; --s2-bg: #e3f4ea; --s3: #6b7280; --s3-bg: #f1f2f4;
  --warn: #9a5b00; --warn-bg: #fdf3e1; --hl: #fff8db; --hdr: 120px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 8px; }
h1 { font-size: 19px; margin: 0; }
h2 { font-size: 16px; margin: 20px 0 10px; }
h3 { font-size: 15px; margin: 16px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }

/* ヘッダー・タブ・バナー */
.top { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.top-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 20px 4px; }
.brand { font-weight: 700; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; }
.brand-sub { color: var(--muted); font-weight: 500; font-size: 13px; }
.tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.tabs { display: flex; gap: 4px; padding: 0 16px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 10px 12px; border-bottom: 3px solid transparent; color: var(--muted); cursor: pointer; white-space: nowrap; font-weight: 600; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-count { margin-left: 6px; font-size: 11px; background: #d93a3a; color: #fff; border-radius: 999px; padding: 0 6px; }
.tab-count:empty { display: none; }
.banner { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 6px 20px; background: var(--warn-bg); color: var(--warn); font-size: 12.5px; font-weight: 600; border-top: 1px solid #f1dfbd; }
.banner span::before { content: "● "; }

/* デモ操作パネル */
.demo-toggle { border: 1px dashed var(--accent); background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 5px 10px; cursor: pointer; font-weight: 600; white-space: nowrap; font-size: 13px; }
.demo-panel { position: absolute; right: 12px; top: 100%; width: min(440px, calc(100vw - 24px)); max-height: calc(100vh - var(--hdr) - 12px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 30, 50, .18); padding: 12px; z-index: 60; }
.demo-head { display: flex; flex-direction: column; margin-bottom: 8px; }
.demo-head .muted { font-size: 12px; }
.demo-scenarios { display: grid; gap: 6px; }
.scn { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.scn:hover { background: var(--accent-soft); }
.scn-id { font-weight: 700; color: var(--accent); font-size: 12.5px; }
.scn-label { flex: 1 1 140px; }
.pri { font-size: 11px; color: var(--muted); }
.demo-check { display: flex; gap: 6px; align-items: center; margin: 10px 0; font-size: 13.5px; }
.demo-actions { display: flex; gap: 8px; margin-bottom: 6px; }

/* バッジ（STEP1=青／STEP2=緑／対象外=灰色の破線＋別途） */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 6px; white-space: nowrap; vertical-align: middle; line-height: 1.7; }
.b1 { background: var(--s1-bg); color: var(--s1); border: 1px solid #b9d0f3; }
.b2 { background: var(--s2-bg); color: var(--s2); border: 1px solid #b4dec5; }
.b3 { background: var(--s3-bg); color: var(--s3); border: 1px dashed #9aa1ab; }
.b3 em { font-style: normal; background: var(--s3); color: #fff; border-radius: 4px; padding: 0 4px; font-size: 10px; }
.sid { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: #3b4556; border-radius: 4px; padding: 0 6px; margin-right: 6px; vertical-align: middle; line-height: 1.7; }

/* 共通部品 */
main { max-width: 1180px; margin: 0 auto; padding: 18px 20px 120px; }
.view { display: none; } .view.active { display: block; }
.screen-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 4px 0 8px; }
.btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 7px 12px; cursor: pointer; font-weight: 600; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.ghost { background: none; }
.btn.ask { background: #fff; border: 1.5px solid var(--accent); color: var(--accent); }
.btn:disabled { opacity: .55; cursor: default; }
.small-btn { padding: 4px 10px; font-size: 13px; }
.link-btn { border: 0; background: none; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 2px 4px; font-size: 13px; }
.icon-btn { border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--muted); padding: 0 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.price-notice { font-size: 12px; color: var(--warn); background: var(--warn-bg); border-radius: 4px; padding: 3px 8px; margin: 8px 0; font-weight: 600; }
.price { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f2633; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; max-width: calc(100vw - 32px); font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* C0 サイトのワイヤーフレーム */
.site { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 12px; }
.wf { background: #eceef1; border: 1px solid #d5d9df; border-radius: 4px; color: #7a828e; padding: 8px 10px; font-size: 13px; }
.site-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.wf-logo { font-weight: 700; color: #59616c; }
.wf-nav { display: flex; flex-wrap: wrap; gap: 6px; }
.wf-nav .wf { padding: 4px 8px; font-size: 12px; }
.wf-hero { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.wf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wf-card { height: 72px; display: flex; align-items: center; justify-content: center; text-align: center; }
.existing-box { border: 2px dashed #9aa1ab; border-radius: 8px; padding: 10px 12px; color: var(--muted); font-size: 13px; max-width: 420px; }
.existing-label { font-weight: 700; color: #59616c; margin-bottom: 4px; }

/* 右下の入口とチャット */
.launcher { position: fixed; right: 20px; bottom: 20px; z-index: 30; background: var(--accent); color: #fff; border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(44, 95, 168, .35); display: flex; flex-direction: column; align-items: center; line-height: 1.3; }
.launcher-sub { font-size: 10.5px; font-weight: 500; opacity: .9; }
body[data-tab="staff"] .launcher, body[data-tab="map"] .launcher, body[data-tab="staff"] .chat, body[data-tab="map"] .chat, body.chat-open .launcher { display: none; }
.chat { position: fixed; right: 20px; bottom: 16px; z-index: 35; width: 420px; top: calc(var(--hdr) + 12px); max-height: 820px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px rgba(20, 30, 50, .22); display: flex; flex-direction: column; overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 12px; background: var(--accent); color: #fff; }
.chat-head .badge { border-color: transparent; }
.chat-title { font-weight: 700; font-size: 14px; }
.chat-head .sid { background: rgba(255,255,255,.25); }
.chat-head .icon-btn { color: #fff; }
.chat-ask { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; flex-wrap: wrap; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px; background: #f7f8fa; }
.chat-input { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; }
.chat-foot { display: flex; justify-content: center; gap: 12px; padding: 2px 8px 6px; flex-wrap: wrap; }
.msg { margin: 0 0 12px; display: flex; flex-direction: column; }
.msg.user { align-items: flex-end; }
.msg.user .bubble { background: var(--accent); color: #fff; border-color: var(--accent); max-width: 85%; }
.msg-tag { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; display: flex; flex-wrap: wrap; align-items: center; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; max-width: 100%; overflow-wrap: anywhere; }
.bubble p:last-child { margin-bottom: 0; }
.typing .bubble { color: var(--muted); font-size: 13px; width: max-content; }
.ah-note { margin-top: 6px; background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 6px 8px; font-size: 13px; font-weight: 600; }
.examples, .choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-btn { border: 1px solid #b9d0f3; background: var(--s1-bg); color: var(--s1); border-radius: 999px; padding: 4px 10px; cursor: pointer; font-size: 13px; text-align: left; }
.chip-btn.chosen { background: var(--accent); color: #fff; }
.chip-btn:disabled:not(.chosen) { opacity: .5; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.chip { font-size: 11px; border-radius: 4px; padding: 1px 6px; background: #eef0f3; color: #3b4556; border: 1px solid #d5d9df; }
.chip-calc, .chip-cite, .chip-tool { background: #fff4e5; border-color: #f0d4a8; color: #8a4d00; }
.chip-human { background: #fde8e8; border-color: #f3c0c0; color: #a12b2b; }
.sources { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.src-btn { border: 1px solid var(--line); background: #fff; border-radius: 4px; font-size: 12px; padding: 2px 8px; cursor: pointer; color: var(--accent); }
.src-panel { margin-top: 6px; border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 6px 10px; font-size: 13px; border-radius: 0 6px 6px 0; }
.src-kind { font-size: 11px; color: var(--muted); }
.ai-not { background: #fff4e5; color: #8a4d00; border: 1px solid #f0d4a8; border-radius: 6px; padding: 6px 8px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.cond { background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.cond-title { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.cond dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; font-size: 13px; }
.cond dt { color: var(--muted); }
.cond dd { margin: 0; }
.ptable { width: 100%; border-collapse: collapse; font-size: 13px; margin: 6px 0; }
.ptable th, .ptable td { border-bottom: 1px solid var(--line); padding: 5px 4px; text-align: right; white-space: nowrap; }
.ptable th:first-child, .ptable td:first-child, .ptable th:nth-child(2), .ptable td:nth-child(2) { text-align: left; }
.ptable th { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ptable tr.focus td { background: var(--hl); font-weight: 700; }
.origin { font-size: 12px; color: var(--muted); }
details { margin: 6px 0; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 13.5px; }
.breakdown { font-size: 13px; padding-left: 20px; margin: 6px 0; }
.recalc-grid { display: grid; gap: 6px; margin-top: 6px; }
.recalc-grid label, .preview-row label { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.recalc-grid select, .recalc-grid input, .preview-row select { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: #fff; color: var(--ink); min-width: 0; max-width: 100%; }
.preview-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin-top: 8px; }
.reorder { display: grid; gap: 8px; }
.opt-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 1px solid #b9d0f3; background: #fff; border-radius: 8px; padding: 8px 10px; text-align: left; cursor: pointer; }
.opt-card .badge { margin-left: 0; }
.opt-card.out { border: 2px dashed #9aa1ab; background: var(--s3-bg); color: var(--s3); }
.cands { padding-left: 20px; margin: 6px 0; }
.cands li { margin-bottom: 8px; }
.cands p { margin: 2px 0 0; font-size: 13px; }
.fit { margin-left: 6px; font-size: 11px; border-radius: 4px; padding: 0 6px; font-weight: 700; }
.fit.ok { background: var(--s2-bg); color: var(--s2); }
.fit.ng { background: #fde8e8; color: #a12b2b; }
.hform { display: grid; gap: 6px; margin-top: 6px; }
.hform label { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.hform input[type=text], .hform input[type=email], .hform textarea { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; color: var(--ink); background: #fff; width: 100%; }
.hform label.consent { flex-direction: row; align-items: center; gap: 6px; color: var(--ink); font-size: 13.5px; font-weight: 600; }
.req { align-self: flex-start; display: inline-block; margin-left: 6px; font-size: 10px; background: #d93a3a; color: #fff; border-radius: 3px; padding: 0 4px; }
.note { font-size: 12.5px; background: #f1f2f4; border-radius: 6px; padding: 5px 8px; margin: 0; }
.consent-text { font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: #fafbfc; }
.err { color: #c02626; font-weight: 600; font-size: 13px; margin: 0; }
.msg.done .bubble { border-color: #b4dec5; background: #f3fbf6; }

/* モーダル（見積書プレビュー） */
.modal { position: fixed; inset: 0; background: rgba(15, 20, 30, .45); z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 24px 12px; overflow-y: auto; }
.modal[hidden] { display: none; }
.modal-box { background: #fff; border-radius: 10px; width: 100%; max-width: 720px; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 14px; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.qdoc { position: relative; overflow: hidden; border: 1px solid var(--line); padding: 18px; background: #fff; }
.qdoc h2 { text-align: center; letter-spacing: .4em; margin: 0 0 12px; font-size: 20px; }
.wm { position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%) rotate(-24deg); font-size: 96px; font-weight: 800; color: rgba(217, 58, 58, .14); letter-spacing: .1em; pointer-events: none; white-space: nowrap; }
.q-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.q-to { font-size: 17px; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 2px; align-self: flex-start; }
.q-meta { display: grid; grid-template-columns: auto auto; gap: 0 10px; margin: 0; font-size: 13px; }
.q-meta dd { margin: 0; }
.q-from { text-align: right; font-size: 13px; margin: 6px 0; }
.q-total { font-size: 15px; border: 1px solid var(--line); padding: 6px 10px; margin: 8px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.q-total strong { font-size: 19px; }
.qtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.qtable th, .qtable td { border: 1px solid var(--line); padding: 5px 6px; }
.qtable td:last-child, .qtable th:last-child { text-align: right; white-space: nowrap; }
.qtable td:nth-child(2) { white-space: nowrap; }
.qtable tfoot td { background: #fafbfc; }
.qtable tr.sum td { font-weight: 700; }
.q-remarks { font-size: 12.5px; margin-top: 8px; }

/* 担当者の画面 */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.subtab { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 5px 10px; cursor: pointer; font-size: 13.5px; display: flex; align-items: center; }
.subtab.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.subtab .cnt { margin-left: 6px; background: #3b4556; color: #fff; border-radius: 999px; font-size: 11px; padding: 0 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.card .n { font-size: 26px; font-weight: 700; line-height: 1.2; }
.card .u { font-size: 13px; margin-left: 2px; color: var(--muted); }
.card .l { font-weight: 600; font-size: 13.5px; }
.delta { display: inline-block; margin-top: 4px; font-size: 11.5px; background: var(--hl); border-radius: 4px; padding: 0 6px; color: #7a5a00; font-weight: 700; }
.stack { display: flex; height: 18px; border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.seg-answered { background: #5b8fd8; } .seg-quoteOnly { background: #58b383; } .seg-handoff { background: #e0a23c; } .seg-ended { background: #b8bec7; }
.legend { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.table th, .table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13.5px; vertical-align: top; }
.table th { background: #fafbfc; font-size: 12.5px; color: var(--muted); }
.table tr.hl td { background: var(--hl); }
.table select { border: 1px solid var(--line); border-radius: 4px; padding: 3px 4px; background: #fff; max-width: 100%; }
.sum { margin: 4px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--muted); }
.tag-ah, .tag-new { display: inline-block; margin-left: 6px; font-size: 10.5px; border-radius: 3px; padding: 0 5px; font-weight: 700; }
.tag-ah { background: #ede9fe; color: #5b3fb5; }
.tag-new { background: #d93a3a; color: #fff; }
.detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-width: 0; }
.panel.wide { grid-column: 1 / -1; }
.panel h2 { margin-top: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); white-space: nowrap; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.guided { padding-left: 18px; margin: 0; font-size: 13.5px; }
.transcript div { font-size: 13.5px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.who { display: inline-block; min-width: 50px; font-size: 11px; font-weight: 700; color: var(--muted); margin-right: 6px; }
.warn { background: var(--warn-bg); color: var(--warn); font-weight: 700; padding: 6px 10px; border-radius: 6px; }
.reply { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 8px; font-size: 13.5px; }
.back { margin-bottom: 4px; padding-left: 0; }
.out-btn { border: 1.5px dashed #9aa1ab; background: var(--s3-bg); color: var(--s3); font-size: 12.5px; padding: 3px 8px; }
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 6px; }
.stage { background: #fff; border: 1px solid #b9d0f3; border-radius: 8px; padding: 8px 12px; min-width: 120px; }
.stage.result { border-color: #e0a23c; }
.st-name { font-size: 12.5px; color: var(--muted); }
.st-n { font-weight: 700; font-size: 17px; }
.stage.result .st-n { font-size: 14px; }
.unset { font-weight: 700; color: #7a5a00; background: var(--hl); border-radius: 4px; padding: 0 6px; display: inline-block; margin-top: 2px; }
.arrow { align-self: center; color: var(--muted); font-weight: 700; }
.out-box { margin-top: 12px; border: 2px dashed #9aa1ab; background: var(--s3-bg); color: #4b5260; border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.out-box .badge { margin: 0 8px 0 0; }
.out-box p { margin: 4px 0 0; }
.log { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.log li { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.log li.hl { background: var(--hl); }
.log-at { font-size: 12px; color: var(--muted); }
.log-out { margin-left: 8px; font-weight: 700; color: var(--ink); }
.legend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lg { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-size: 13.5px; }
.lg .badge { margin-left: 0; }
.lg p { margin: 6px 0 0; }

/* スマホ */
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .top-row { padding: 8px 12px 2px; }
  .brand-sub { display: none; }
  .tabs { padding: 0 6px; }
  .tab { padding: 9px 8px; font-size: 14px; }
  .banner { padding: 5px 12px; font-size: 11.5px; }
  main { padding: 12px 12px 110px; }
  .wf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf-hero { height: 100px; }
  .chat { left: 0; right: 0; bottom: 0; width: auto; top: var(--hdr); border-radius: 0; max-height: none; }
  .launcher { right: 12px; bottom: 12px; }
  .detail, .legend-grid { grid-template-columns: 1fr; }
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .rtable td { border: 0; padding: 3px 10px; }
  .rtable td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); font-weight: 600; }
  .flow { flex-direction: column; }
  .arrow { transform: rotate(90deg); }
  .wm { font-size: 60px; }
  .qdoc { padding: 12px; }
}
