/*
 * ご提案用デモ 画面のスタイル
 * 方針: 見積書作成サービス(web/css/app.css)の色を引き継ぐ。フラット・1pxの枠線・影なし(GitHub Primer の密度感)。
 * グラデーション・絵文字・装飾アイコン・無駄なアニメーションは使わない
 */
:root {
  --c-bg: #f3f5f8;
  --c-surface: #ffffff;
  --c-surface-2: #f6f8fa;
  --c-text: #1d2430;
  --c-text-2: #4a5361;
  --c-muted: #6b7482;
  --c-border: #d6dbe3;
  --c-border-2: #eef1f5;
  --c-primary: #1f5fa8;
  --c-primary-soft: #e6eef8;
  --c-navy: #16325c;
  --c-invoice: #1e8a5a;
  --c-invoice-dark: #0f5c3a;
  --c-invoice-soft: #f2f9f5;
  --c-receipt: #8a5a1e;
  --c-danger: #b42318;
  --c-danger-soft: #fdf1ef;
  --c-warn-bg: #fff3c4;
  --c-warn-text: #6b4e00;
  --c-info-soft: #fff6e0;
  --radius: 8px;
  --tab-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font); font-size: 15px; line-height: 1.55; }
h1, h2, h3, p { margin: 0; }
a { color: var(--c-primary); }
input, select, textarea, button { font: inherit; }
input, select, textarea { font-size: 16px; width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--c-border); border-radius: 6px; background: var(--c-surface); color: var(--c-text); min-height: 40px; }
input[readonly] { background: var(--c-surface-2); color: var(--c-text-2); }
textarea { resize: vertical; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--c-primary); outline-offset: 0; border-color: var(--c-primary); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--c-muted); font-size: 13px; }
.muted-dash { color: #aab2bf; }
.sub { display: block; font-size: 12px; color: var(--c-muted); font-weight: 400; }
.warn-text { color: var(--c-danger); font-weight: 700; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--c-border); border-radius: 6px; background: var(--c-surface); color: var(--c-text); cursor: pointer; white-space: nowrap; text-decoration: none; font-size: 15px; font-weight: 600; }
.btn:hover { border-color: #aab2bf; }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: #194f8c; border-color: #194f8c; }
.btn-outline { border-color: var(--c-primary); color: var(--c-primary); }
.btn-danger { background: var(--c-danger); border-color: var(--c-danger); color: #fff; }
.btn-danger-o { border-color: var(--c-danger); color: var(--c-danger); }
.btn-ghost { background: transparent; }
.btn-small { min-height: 36px; padding: 5px 11px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 17px; font-weight: 700; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }

/* ---------- ラベル(文字+色。色だけで区別しない) ---------- */
.lbl { display: inline-block; font-size: 12px; line-height: 1.35; padding: 2px 7px; border-radius: 4px; border: 1px solid transparent; white-space: nowrap; font-weight: 700; vertical-align: 1px; }
.st-mitsumori { background: #eceff3; color: #4a5361; border-color: #d6dbe3; }
.st-juchu { background: var(--c-primary-soft); color: var(--c-primary); border-color: #bcd0ea; }
.st-chakko { background: var(--c-navy); color: #fff; }
.st-kanko { background: var(--c-invoice); color: #fff; }
.st-seikyu { background: #fff; color: var(--c-invoice); border-color: var(--c-invoice); }
.st-nyukin { background: var(--c-invoice-dark); color: #fff; }
.st-cancel { background: #eceff3; color: var(--c-muted); text-decoration: line-through; }
.st-cancel-n { background: #eceff3; color: #4a5361; }
.st-wait, .st-check { background: var(--c-warn-bg); color: var(--c-warn-text); border-color: #ecd27a; }
.st-wait-n { background: #fff; color: #4a5361; border-color: #c4cbd6; }
.st-back { background: var(--c-danger-soft); color: var(--c-danger); border-color: #f0b4ac; }
.st-over { background: var(--c-danger); color: #fff; }
.st-plan { background: #fff; color: var(--c-muted); border: 1px dashed #aab2bf; }
.t-approve { background: var(--c-primary); color: #fff; }
.t-check { background: #eceff3; color: var(--c-text); border-color: #d6dbe3; }
.t-limit { background: var(--c-receipt); color: #fff; }
.t-warn { background: #fff; color: var(--c-danger); border-color: var(--c-danger); }
.src { display: inline-block; font-size: 11px; line-height: 1.4; padding: 0 5px; border: 1px solid #c4cbd6; color: var(--c-text-2); border-radius: 3px; font-weight: 600; background: #fff; vertical-align: 1px; white-space: nowrap; }

/* ---------- ヘッダー ---------- */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
.hdr-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 8px 20px; max-width: 1440px; margin: 0 auto; }
.brand { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.brand-sub { font-size: 12px; color: var(--c-muted); white-space: nowrap; }
.tag-demo { margin-left: 6px; font-size: 12px; font-weight: 700; color: var(--c-receipt); border: 1px solid var(--c-receipt); border-radius: 3px; padding: 0 6px; line-height: 1.5; align-self: center; }
.hdr-date { font-size: 14px; font-weight: 600; color: var(--c-text-2); white-space: nowrap; }
.hdr-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 10px; border: 1px solid var(--c-border); border-radius: 6px; color: var(--c-text); text-decoration: none; font-size: 13px; white-space: nowrap; }
.hdr-chip b { font-size: 15px; font-variant-numeric: tabular-nums; }
.chip-sub { color: var(--c-danger); font-size: 12px; font-weight: 700; }
.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.role-sel { display: inline-flex; align-items: center; gap: 6px; }
.role-sel span { font-size: 12.5px; color: var(--c-muted); font-weight: 600; white-space: nowrap; }
.role-sel select { width: auto; min-height: 36px; padding: 4px 8px; font-weight: 700; }
.notice { margin: 0; padding: 6px 20px; background: var(--c-info-soft); color: var(--c-warn-text); font-size: 12.5px; border-top: 1px solid #f0e2bd; text-align: center; }
.notice-a { font-weight: 700; }
.notice-b { display: inline-block; margin-left: .5em; }
.tabs { border-top: 1px solid var(--c-border-2); }
.tabs ul { list-style: none; margin: 0 auto; padding: 0 12px; display: flex; max-width: 1440px; }
.tabs a { display: block; padding: 10px 18px; color: var(--c-text-2); text-decoration: none; font-weight: 700; font-size: 15px; }
.tabs a:hover { color: var(--c-primary); }
.tabs a.on { color: var(--c-primary); box-shadow: inset 0 -3px 0 var(--c-primary); }
.mtools { display: none; }

/* ---------- 本文 ---------- */
.main { max-width: 1440px; margin: 0 auto; padding: 18px 20px 56px; }
.fold > summary { cursor: pointer; }
.fold[open] > summary { margin-bottom: 8px; }
.main-wide { max-width: 1440px; }
.ph { margin: 4px 0 14px; }
.ph-t { font-size: 22px; font-weight: 800; line-height: 1.35; }
.ph-s { margin-top: 2px; color: var(--c-muted); font-size: 13.5px; }
.crumb { font-size: 13px; color: var(--c-muted); margin-bottom: 4px; }
.sec { margin-top: 22px; }
.sec-h { font-size: 16px; font-weight: 800; margin: 0 0 8px; }
.sec-note { font-size: 12.5px; color: var(--c-muted); margin: -4px 0 8px; }
.sec-hrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.sec-hrow .sec-h { margin: 0; }
.subnav { margin: 0 0 14px; }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.subnav a { display: block; padding: 6px 12px; border: 1px solid var(--c-border); border-radius: 6px; background: var(--c-surface); color: var(--c-text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.subnav a.on { background: var(--c-primary-soft); border-color: var(--c-primary); color: var(--c-primary); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--c-border); border-radius: 6px; overflow: hidden; background: var(--c-surface); margin: 6px 0 12px; max-width: 100%; }
.seg-b { padding: 8px 16px; border: 0; border-right: 1px solid var(--c-border); background: none; font-weight: 700; color: var(--c-text-2); cursor: pointer; font-size: 14px; }
.seg-b:last-child { border-right: 0; }
.seg-b.on { background: var(--c-primary); color: #fff; }
.seg-b.dis { color: #aab2bf; cursor: default; }
.empty-note { background: var(--c-surface); border: 1px dashed var(--c-border); border-radius: var(--radius); padding: 14px; color: var(--c-muted); }
.next-line, .note-line { font-size: 13.5px; color: var(--c-text-2); margin: 12px 0; }
.warn-line { background: var(--c-danger-soft); color: var(--c-danger); padding: 8px 12px; border-radius: 6px; margin: 10px 0; font-weight: 600; }
.done-line { margin: 12px 0; font-weight: 600; }
.role-note { background: var(--c-surface-2); border: 1px dashed #c4cbd6; padding: 8px 12px; border-radius: 6px; font-size: 13.5px; color: var(--c-text-2); }
.count-note { font-size: 12.5px; color: var(--c-muted); margin: 0 0 6px; }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 2px 0; }

/* ---------- 表(狭い幅ではカード) ---------- */
.tbl-wrap { width: 100%; }
.tbl { width: 100%; border-collapse: collapse; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 13.5px; }
.tbl th { background: var(--c-surface-2); text-align: left; font-weight: 700; font-size: 12.5px; color: var(--c-text-2); padding: 8px 10px; border-bottom: 1px solid var(--c-border); vertical-align: bottom; }
.tbl td { padding: 8px 10px; border-top: 1px solid var(--c-border-2); vertical-align: top; overflow-wrap: anywhere; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tfoot td { background: var(--c-surface-2); border-top: 1px solid var(--c-border); font-weight: 600; }
.tbl tr.sel td { background: var(--c-primary-soft); }
.tbl tr.row-warn td { background: var(--c-danger-soft); }
.tbl tr.empty td { color: var(--c-muted); text-align: center; padding: 16px; }
.tbl-narrow { max-width: 420px; }
.tbl-jobs { font-size: 13px; }
.tbl-jobs td:nth-child(1) { min-width: 10em; }
.tbl-jobs td:nth-child(2) { min-width: 7.5em; }
.tbl-jobs td:nth-child(8), .tbl-jobs td:nth-child(9) { white-space: nowrap; }
.job-row { cursor: pointer; }
.job-row:hover td { background: #f8fafc; }
.job-row.sel:hover td { background: var(--c-primary-soft); }
.job-link { font-weight: 800; text-decoration: none; white-space: nowrap; }
.job-nm { display: block; font-size: 12.5px; color: var(--c-text); }

/* ---------- やること ---------- */
.todo { list-style: none; margin: 0; padding: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.todo-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) 150px 130px 64px; gap: 6px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--c-border-2); }
.todo-item:first-child { border-top: 0; }
.todo-item .lbl { justify-self: start; }
.todo-title { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.todo-amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.todo-due { font-size: 13px; color: var(--c-text-2); white-space: nowrap; }
.todo-lower { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.figs { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.fig-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 9px 14px; border-top: 1px solid var(--c-border-2); color: var(--c-text); text-decoration: none; }
.fig-row:first-child { border-top: 0; }
.fig-row:hover { background: #f8fafc; }
.fig-l { font-size: 13.5px; color: var(--c-text-2); font-weight: 600; }
.fig-v { font-weight: 800; font-size: 16px; text-align: right; margin-left: auto; }
.fig-sub { font-size: 12px; font-weight: 600; color: var(--c-muted); margin-left: 4px; }
.stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 20px; }
.stages li { position: relative; min-width: 0; }
.stages li:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 50%; width: 8px; height: 8px; border-top: 2px solid #9aa3af; border-right: 2px solid #9aa3af; transform: translateY(-50%) rotate(45deg); }
.stage { display: block; text-align: center; background: var(--c-surface); border: 1px solid var(--c-border); border-top-width: 4px; border-radius: 6px; padding: 8px 4px; text-decoration: none; color: var(--c-text); }
.stage:hover { background: #f8fafc; }
.stage-n { display: block; font-size: 24px; font-weight: 800; line-height: 1.2; }
.stage-l { display: block; font-size: 13px; font-weight: 700; color: var(--c-text-2); }
.st-mitsumori-b { border-top-color: #9aa3af; }
.st-juchu-b { border-top-color: var(--c-primary); }
.st-chakko-b { border-top-color: var(--c-navy); }
.st-kanko-b { border-top-color: var(--c-invoice); }
.st-seikyu-b { border-top-color: #7cc3a1; }
.st-nyukin-b { border-top-color: var(--c-invoice-dark); }
.btn-shoot { display: flex; width: 100%; max-width: 520px; min-height: 64px; align-items: center; justify-content: center; background: var(--c-primary); color: #fff; font-size: 19px; font-weight: 800; border-radius: 10px; border: 0; text-decoration: none; margin: 6px 0 16px; cursor: pointer; }
.btn-shoot:hover { background: #194f8c; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px; min-width: 0; }
.card-id { font-weight: 800; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-t { font-size: 16px; margin: 6px 0 4px; }
.card-m { color: var(--c-text-2); font-size: 13px; margin: 2px 0; }
.card-a { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.okline { margin-top: 18px; background: var(--c-invoice-soft); border: 1px solid #cfe6d9; padding: 10px 14px; border-radius: var(--radius); color: var(--c-invoice-dark); font-weight: 700; }

/* ---------- 工事一覧 ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 12px; }
.fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fld-l { font-size: 12.5px; color: var(--c-text-2); font-weight: 700; }
.filters .fld select { min-width: 150px; }
.grow { flex: 1 1 220px; }
.chk { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 600; cursor: pointer; }
.chk input { width: 18px; height: 18px; min-height: 0; }
.jobs-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.jobs-main { min-width: 0; }
.side-panel { display: none; }
.panel-empty { color: var(--c-text-2); }
.panel-t { font-size: 17px; margin: 4px 0 2px; }
.panel-h { font-size: 14px; margin: 14px 0 6px; }

/* ---------- 工事詳細 ---------- */
.job-head { margin-bottom: 10px; }
.job-id { font-weight: 800; display: flex; gap: 8px; align-items: center; }
.job-t { font-size: 22px; font-weight: 800; margin: 2px 0; line-height: 1.35; }
.job-meta { color: var(--c-text-2); font-weight: 600; }
.ov { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: 10px 0 6px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.ov-row { padding: 8px 12px; border-right: 1px solid var(--c-border-2); min-width: 0; }
.ov-row dt { font-size: 12px; color: var(--c-muted); font-weight: 600; }
.ov-row dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 26px; align-items: start; }
.flow-sum { position: sticky; top: 150px; }
.tl { list-style: none; margin: 0; padding: 4px 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.tl-item { position: relative; display: grid; grid-template-columns: 96px 16px minmax(0, 1fr); gap: 0 10px; padding: 9px 14px; }
.tl-item::before { content: ""; position: absolute; left: calc(14px + 96px + 10px + 7px); top: 0; bottom: 0; border-left: 2px solid #c4cbd6; }
.tl-item:first-child::before { top: 18px; }
.tl-item:last-child::before { bottom: calc(100% - 18px); }
.tl-plan::before { border-left-style: dashed; }
.tl-date { font-size: 13px; color: var(--c-text-2); padding-top: 1px; white-space: nowrap; }
.tl-dot { position: relative; z-index: 1; width: 12px; height: 12px; margin: 5px 0 0 2px; border-radius: 50%; background: var(--c-primary); border: 2px solid var(--c-primary); }
.tl-bill .tl-dot { background: var(--c-invoice); border-color: var(--c-invoice); }
.tl-dep .tl-dot { background: var(--c-invoice-dark); border-color: var(--c-invoice-dark); }
.tl-pay .tl-dot, .tl-deadline .tl-dot { background: var(--c-receipt); border-color: var(--c-receipt); }
.tl-start .tl-dot, .tl-end .tl-dot { background: var(--c-navy); border-color: var(--c-navy); }
.tl-plan .tl-dot { background: #fff; border-style: dashed; border-color: #9aa3af; }
.tl-body { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline; min-width: 0; }
.tl-title { font-weight: 700; overflow-wrap: anywhere; }
.tl-amt { font-weight: 700; }
.tl-st { font-size: 13px; color: var(--c-text-2); }
.tl-plan .tl-title, .tl-plan .tl-amt, .tl-plan .tl-date { color: var(--c-muted); }
.tl-mini { border: 0; padding: 0; }
.tl-mini .tl-item { grid-template-columns: 74px 16px minmax(0, 1fr); gap: 0 6px; padding: 6px 0; font-size: 13px; }
.tl-mini .tl-date { font-size: 11.5px; }
.tl-mini .tl-item::before { left: calc(74px + 6px + 7px); }
.sumbox { margin: 0; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2px 14px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--c-border-2); }
.sum-row:first-child { border-top: 0; }
.sum-row dt { font-size: 13px; color: var(--c-text-2); font-weight: 600; }
.sum-row dd { margin: 0 0 0 auto; font-weight: 800; text-align: right; }
.sumbox-c .sum-row { padding: 6px 0; }
.barcell { min-width: 170px; }
.bar { display: inline-block; width: 110px; height: 10px; background: var(--c-primary-soft); border-radius: 5px; overflow: hidden; vertical-align: middle; }
.bar span { display: block; height: 100%; background: var(--c-primary); }
.bar-over span { background: var(--c-danger); }
.bar-v { margin-left: 8px; font-weight: 700; }
.doclist { list-style: none; margin: 0; padding: 0 14px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.doclist li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--c-border-2); flex-wrap: wrap; }
.doclist li:first-child { border-top: 0; }
.doc-kind { font-size: 12px; font-weight: 700; color: var(--c-text-2); min-width: 4em; }
.doc-name { flex: 1 1 200px; min-width: 0; font-weight: 600; }
.doc-date { color: var(--c-muted); font-size: 13px; }
.doc-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.thumb { margin: 0; }
.thumb-box { width: 112px; height: 84px; border-radius: 6px; background: #e3e7ed; display: flex; align-items: center; justify-content: center; color: var(--c-text-2); font-weight: 700; }
.thumb-pdf .thumb-box { background: #fff; border: 1px solid var(--c-border); width: 66px; height: 84px; }
.thumb figcaption { font-size: 12px; color: var(--c-text-2); margin-top: 4px; }
.hist { list-style: none; margin: 0; padding: 0 14px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.hist li { display: grid; grid-template-columns: 52px 72px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-top: 1px solid var(--c-border-2); }
.hist li:first-child { border-top: 0; }
.hist-who { font-weight: 700; color: var(--c-text-2); }

/* ---------- 書類を作る・工事の登録 ---------- */
.sheet { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; }
.sheet-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 15px; }
.sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-bottom: 14px; }
.totalbar { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 28px; border-top: 2px solid var(--c-text); padding-top: 10px; margin-top: 12px; }
.totalbar div { display: flex; flex-direction: column; align-items: flex-end; }
.totalbar span { font-size: 12px; color: var(--c-muted); font-weight: 600; }
.totalbar b { font-size: 17px; }
.tb-total b { font-size: 21px; color: var(--c-primary); }
.convert { margin-top: 16px; padding: 16px; background: var(--c-surface); border: 2px solid var(--c-primary); border-radius: var(--radius); display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.convert .muted { flex: 1 1 260px; }
.convert.done { border-color: var(--c-invoice); }
.form { margin: 0; }
.fs { border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px 16px 16px; margin: 0 0 14px; background: var(--c-surface); min-width: 0; }
.fs legend { font-weight: 800; padding: 0 6px; }
.fs-quote { background: #eef1f5; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.fld-v { display: block; padding: 9px 12px; background: #e3e7ed; border-radius: 6px; font-weight: 700; overflow-wrap: anywhere; }
.from-q { display: inline-block; font-size: 11px; font-weight: 700; background: #fff; border: 1px solid #c4cbd6; border-radius: 3px; padding: 0 4px; margin-left: 4px; color: var(--c-text-2); }
.auto-box { background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-receipt); border-radius: 6px; padding: 10px 14px; margin: 10px 0; }
#plan-box { border-left-color: var(--c-primary); }
.auto-h { font-weight: 800; margin: 0 0 4px; }
.form-actions { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

/* ---------- お金 ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 12px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.strip div { padding: 9px 14px; border-right: 1px solid var(--c-border-2); min-width: 0; }
.strip dt { font-size: 12px; color: var(--c-muted); font-weight: 700; }
.strip dd { margin: 0; font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.inv { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); margin-top: 16px; overflow: hidden; max-width: 900px; }
.inv-ret .btn { justify-self: start; }
.check-grid, .sheet, .form, .remind, .rc-detail, .capture, .ai-ans, .acct-detail, .confirm-box { max-width: 1100px; }
.inv-h { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--c-border); background: var(--c-surface-2); font-weight: 700; }
.inv-h .muted { margin-left: auto; }
.inv-doc { padding: 14px 16px; }
.inv-to { display: inline-block; font-size: 18px; font-weight: 800; border-bottom: 1px solid var(--c-text); padding-bottom: 2px; margin-bottom: 8px; }
.inv-job { font-size: 13.5px; color: var(--c-text-2); margin-bottom: 10px; }
.inv-tot { margin: 10px 0 0; }
.inv-tot div { display: flex; justify-content: flex-end; gap: 24px; padding: 3px 0; }
.inv-tot dt { color: var(--c-text-2); font-size: 13.5px; }
.inv-tot dd { margin: 0; min-width: 120px; text-align: right; font-weight: 700; }
.inv-sum dd { font-size: 19px; color: var(--c-primary); }
.inv-meta { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--c-border); }
.inv-meta div { display: flex; gap: 12px; padding: 2px 0; flex-wrap: wrap; }
.inv-meta dt { color: var(--c-muted); font-size: 13px; min-width: 5em; }
.inv-meta dd { margin: 0; font-weight: 600; }
.inv-actions { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--c-border); flex-wrap: wrap; }
.inv-ret { padding: 12px 16px; background: var(--c-danger-soft); border-top: 1px solid #f0b4ac; display: grid; gap: 10px; }
.inv .role-note { margin: 0 16px 14px; }
.confirm-box { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px; }
.confirm-box .tbl-wrap { margin-top: 12px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 16px; margin: 0; }
.kv dt { font-size: 12px; color: var(--c-muted); font-weight: 700; }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.kv-1 { grid-template-columns: minmax(0, 1fr); gap: 0; }
.kv-1 div, .kv-2 div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-top: 1px solid var(--c-border-2); align-items: baseline; }
.kv-1 div:first-child { border-top: 0; }
.kv-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 4px 14px; }
.kv-1 dt, .kv-2 dt { font-size: 13px; color: var(--c-text-2); }
.matches { display: grid; gap: 10px; }
.match { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.m-done { background: var(--c-invoice-soft); border-color: #cfe6d9; }
.m-top { display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; }
.m-date { color: var(--c-text-2); font-weight: 700; }
.m-payer { font-weight: 800; flex: 1 1 160px; min-width: 0; overflow-wrap: anywhere; }
.m-amt { font-weight: 800; font-size: 17px; }
.m-cand { margin-top: 6px; overflow-wrap: anywhere; }
.m-why { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.m-conf { font-size: 13.5px; margin-left: 4px; }
.m-search { margin-top: 8px; background: var(--c-surface-2); border: 1px solid var(--c-border); padding: 8px 12px; border-radius: 6px; display: grid; gap: 4px; }
.match p { margin: 4px 0 0; }
.remind { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; }
.remind-text { font-size: 14.5px; background: #fbfcfd; }
.check-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 24px; align-items: start; }
.check-img { margin: 0; }
.check-img img { display: block; width: 100%; height: auto; border: 1px solid var(--c-border); background: #fff; }
.check-img figcaption { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.check-res { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.act-row { margin: 14px 0; }

/* ---------- 領収書 ---------- */
.capture { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; margin-top: 0; margin-bottom: 8px; }
.pick { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; border: 2px solid var(--c-border); background: #fff; padding: 10px 14px; border-radius: 8px; cursor: pointer; margin-top: 10px; font-weight: 700; }
.pick:hover { border-color: var(--c-primary); }
.pick img, .reading img { display: block; border: 1px solid var(--c-border); }
.reading { display: flex; gap: 16px; align-items: center; }
.reading-t { font-weight: 800; font-size: 17px; }
.rc-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: start; }
.rc-img { display: block; width: 100%; max-width: 180px; height: auto; border: 1px solid var(--c-border); background: #fff; }
.rc-detail { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; }
.radios { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.radios input { width: 18px; height: 18px; min-height: 0; }

/* ---------- 経営レポート ---------- */
.statement { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); }
.st-row { padding: 14px 18px; border-top: 1px solid var(--c-border-2); min-width: 0; }
.st-row:nth-child(-n+2) { border-top: 0; }
.st-row:nth-child(odd) { border-right: 1px solid var(--c-border-2); }
.st-l { font-size: 13.5px; color: var(--c-text-2); font-weight: 700; }
.st-v { font-size: 25px; font-weight: 800; margin-top: 2px; line-height: 1.3; overflow-wrap: anywhere; }
.st-n { font-size: 12px; color: var(--c-muted); margin-top: 2px; overflow-wrap: anywhere; }
.insights { margin: 0; padding: 10px 16px 10px 2.2em; background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-receipt); border-radius: 6px; }
.insights li { margin: 4px 0; font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--c-text-2); margin: 4px 0 8px; font-weight: 600; }
.sw { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; }
.sw-sub { background: var(--c-primary); }
.sw-oth { background: #9db7d9; }
.sw-gp { background: var(--c-invoice); }
.sw-fix { background: #9aa3af; }
.sw-bal { background: #fff; border: 2px solid var(--c-navy); }
.sw-line { height: 3px; vertical-align: 3px; background: var(--c-receipt); }
.chart { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 8px 0; min-height: 120px; overflow: hidden; }
.chart svg { display: block; max-width: 100%; height: auto; }
.ax-grid { stroke: #e3e7ed; stroke-width: 1; }
.ax-t { fill: var(--c-muted); font-size: 11px; font-family: var(--font); }
.ax-y { fill: var(--c-text); font-weight: 700; }
.b-sub { fill: var(--c-primary); }
.b-oth { fill: #9db7d9; }
.b-gp { fill: var(--c-invoice); }
.b-fix { fill: #9aa3af; }
.b-bal { fill: #fff; stroke: var(--c-navy); stroke-width: 2; }
.b-sel { fill: none; stroke: var(--c-text); stroke-width: 2; }
.hit { fill: transparent; }
.bar-g { cursor: pointer; outline: none; }
.bar-g.on .hit { fill: rgba(31, 95, 168, .07); }
.bar-g:focus-visible .hit { fill: rgba(31, 95, 168, .14); stroke: var(--c-primary); stroke-width: 1; }
.r-line { fill: none; stroke: var(--c-receipt); stroke-width: 2; }
.r-dot { fill: #fff; stroke: var(--c-receipt); stroke-width: 2; }

/* ---------- その他 ---------- */
.law-note { background: var(--c-info-soft); border-left: 4px solid var(--c-receipt); padding: 10px 14px; font-weight: 700; color: var(--c-warn-text); border-radius: 4px; margin-bottom: 12px; }
.fld-inline { max-width: 560px; }
.judge { background: var(--c-surface); border: 1px solid var(--c-border); border-left: 4px solid var(--c-receipt); border-radius: 6px; padding: 12px 16px; margin: 12px 0; display: grid; gap: 4px; }
.judge-off { border-left-color: #9aa3af; }
.draft { margin: 16px 0 0; }
.draft-sheet { position: relative; background: #eef1f5; border: 1px solid #c4cbd6; padding: 22px; max-width: 560px; min-height: 340px; overflow: hidden; }
.draft-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 92px; font-weight: 800; color: rgba(180, 35, 24, .14); transform: rotate(-18deg); pointer-events: none; }
.draft-t { font-weight: 800; text-align: center; margin-bottom: 12px; }
.draft-row { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 10px; border-bottom: 1px solid #c4cbd6; padding: 8px 0; min-height: 2.4em; font-size: 14px; }
.draft-row span:first-child { color: var(--c-text-2); font-weight: 700; }
.draft figcaption { font-size: 12px; color: var(--c-muted); margin-top: 4px; }
.ai-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-btns .btn { white-space: normal; text-align: left; }
.ai-form { display: flex; gap: 10px; align-items: flex-end; margin: 14px 0; flex-wrap: wrap; }
.ai-ans { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; }
.ai-ans .tbl-wrap { margin: 10px 0; }
.ai-q { color: var(--c-muted); font-size: 13px; margin-bottom: 4px; }
.ai-foot { font-size: 12.5px; color: var(--c-text-2); margin: 4px 0 0; }
.acct-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.acct-card { min-height: 72px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); font-size: 15px; font-weight: 800; text-align: left; padding: 14px; cursor: pointer; color: var(--c-text); }
.acct-card:hover { border-color: var(--c-primary); }
.acct-card.on { border: 2px solid var(--c-primary); background: var(--c-primary-soft); color: var(--c-primary); padding: 13px; }
.acct-detail { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; }
.plan { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.plan-step { background: var(--c-surface); border: 1px solid var(--c-border); border-top: 4px solid var(--c-primary); border-radius: 6px; padding: 14px 16px; }
.plan-step:nth-child(2) { border-top-color: var(--c-invoice); }
.plan-step:nth-child(3) { border-top-color: var(--c-receipt); }
.plan-n { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.plan-step ul { margin: 0; padding-left: 1.2em; }
.plan-step li { margin: 4px 0; font-weight: 600; }

/* ---------- 表紙・ログイン ---------- */
.solo-top { background: var(--c-surface); border-bottom: 1px solid var(--c-border); padding: 12px 24px; }
.cover { max-width: 1120px; margin: 0 auto; padding: 72px 24px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 48px; align-items: center; }
.cover-main { border-left: 6px solid var(--c-primary); padding-left: 30px; min-width: 0; }
.cover-kicker { color: var(--c-receipt); font-weight: 800; letter-spacing: .08em; font-size: 13px; }
.cover-h { font-size: clamp(30px, 5vw, 52px); line-height: 1.28; font-weight: 800; margin: 10px 0 18px; color: #10233f; }
.cover-sub { font-size: 18px; font-weight: 700; color: #34404f; }
.cover-note { color: var(--c-text-2); font-size: 14px; max-width: 38em; margin: 18px 0 28px; }
.cover-qr { text-align: center; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 16px; }
.cover-qr img { display: block; margin: 0 auto; }
.cover-qr-t { font-weight: 800; margin-top: 8px; }
.cover-qr-u { font-size: 11px; color: var(--c-muted); word-break: break-all; }
.login { padding: 40px 16px; }
.login-card { max-width: 480px; margin: 0 auto; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 10px; padding: 26px 22px; }
.login-co { font-weight: 800; color: var(--c-primary); }
.login-t { font-size: 22px; margin: 4px 0 16px; }
.login-q { font-weight: 800; margin: 18px 0 8px; }
.login-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.role-btn { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: 8px; background: #fff; cursor: pointer; text-align: left; min-height: 66px; color: var(--c-text); }
.role-btn:hover { border-color: var(--c-primary); background: var(--c-primary-soft); }
.role-btn-n { font-weight: 800; font-size: 17px; }
.role-btn-d { font-size: 12.5px; color: var(--c-muted); }

/* ---------- ダイアログ・お知らせ ---------- */
.dlg-back { position: fixed; inset: 0; background: rgba(20, 26, 36, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.dlg { background: #fff; border-radius: 10px; max-width: 540px; width: 100%; max-height: calc(100% - 32px); overflow: auto; padding: 20px; }
.dlg-t { font-size: 18px; margin: 0 0 10px; }
.dlg-b p { margin: 6px 0; }
.dlg-a { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.steps { list-style: none; margin: 0; padding: 0; }
.step-b { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 0 10px; text-align: left; padding: 7px 10px; border: 1px solid transparent; background: none; border-radius: 6px; cursor: pointer; color: var(--c-text); }
.step-b:hover { background: var(--c-bg); border-color: var(--c-border); }
.step-n { grid-row: span 2; font-weight: 800; color: var(--c-primary); font-size: 17px; }
.step-t { font-weight: 800; }
.step-r { display: inline-block; font-size: 11px; font-weight: 700; margin-left: 8px; padding: 0 5px; border: 1px solid #c4cbd6; border-radius: 3px; color: var(--c-text-2); vertical-align: 1px; }
.step-d { grid-column: 2; font-size: 12.5px; color: var(--c-muted); }
.toast { position: fixed; left: 16px; right: 16px; bottom: 24px; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); background: #1d2430; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 120; font-size: 14px; }

/* ---------- 広い画面: 右の詳細パネル ---------- */
@media (min-width: 1180px) {
  .jobs-wrap { grid-template-columns: minmax(0, 1fr) 320px; }
  .side-panel { display: block; position: sticky; top: 140px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
}

/* ---------- 中くらいの幅 ---------- */
@media (max-width: 1000px) {
  .todo-lower { grid-template-columns: minmax(0, 1fr); }
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .flow-sum { position: static; order: -1; }
  .check-grid { grid-template-columns: minmax(0, 1fr); }
  .check-img { max-width: 420px; }
}

/* ---------- スマホ(現場で見る想定) ---------- */
@media (max-width: 760px) {
  body { font-size: 15px; }
  .hdr { position: sticky; }
  .hdr-row { padding: 6px 12px; gap: 6px 10px; flex-wrap: nowrap; }
  .hdr-date, .hdr-chip, .hide-sm { display: none !important; }
  .brand-name { font-size: 16px; }
  .brand-sub { display: none; }
  .role-sel span { font-size: 12px; }
  .notice { padding: 4px 12px; font-size: 11.5px; text-align: left; line-height: 1.45; }
  .notice-b { display: block; margin-left: 0; }
  .tabs { position: fixed; inset: auto 0 0 0; z-index: 30; background: var(--c-surface); border-top: 1px solid var(--c-border); padding-bottom: var(--safe-b); }
  .tabs ul { padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .tabs a { display: flex; align-items: center; justify-content: center; min-height: var(--tab-h); padding: 6px 2px; font-size: 13.5px; text-align: center; }
  .tabs a.on { box-shadow: inset 0 3px 0 var(--c-primary); background: var(--c-primary-soft); }
  .main { padding: 10px 12px calc(var(--tab-h) + 40px + var(--safe-b)); }
  .mtools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
  .mtools-date { font-size: 13px; font-weight: 700; color: var(--c-text-2); margin-right: auto; }
  .ph-t { font-size: 20px; }
  .job-t { font-size: 19px; }

  /* 表 → カード */
  .tbl, .tbl thead, .tbl tbody, .tbl tfoot, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl { border: 0; background: none; }
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .tbl tr { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius); margin-bottom: 8px; padding: 6px 12px; }
  .tbl tfoot tr { background: var(--c-surface-2); }
  .tbl td, .tbl tfoot td { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 8px; padding: 5px 0; border: 0; background: none !important; text-align: left; white-space: normal; }
  .tbl .num { text-align: left; white-space: normal; }
  .tbl td::before { content: attr(data-label); color: var(--c-muted); font-size: 12px; font-weight: 700; }
  .tbl td:empty { display: none; }
  .tbl .cv { min-width: 0; }
  .tbl td:first-child .cv { font-weight: 700; }
  .tbl tr.sel { border-color: var(--c-primary); background: var(--c-primary-soft); }
  .tbl tr.row-warn { border-color: #f0b4ac; background: var(--c-danger-soft); }
  .tbl tr.empty td { display: block; text-align: center; }
  .tbl tr.empty td::before { content: none; }
  .tbl-narrow { max-width: none; }
  .barcell { min-width: 0; }
  .bar { width: 90px; }

  .todo-item { grid-template-columns: 50px minmax(0, 1fr) auto; grid-template-areas: "t title btn" ". amt btn" ". due btn"; gap: 2px 10px; padding: 10px 12px; }
  .todo-item .lbl { grid-area: t; }
  .todo-title { grid-area: title; }
  .todo-amt { grid-area: amt; text-align: left; }
  .todo-due { grid-area: due; }
  .todo-item .btn { grid-area: btn; }
  .todo-item .is-empty { display: none; }
  .tbl-jobs td:nth-child(1), .tbl-jobs td:nth-child(2) { min-width: 0; }
  .tbl-jobs td:nth-child(8), .tbl-jobs td:nth-child(9) { white-space: normal; }
  .stages { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; }
  .stages li:nth-child(3)::after { display: none; }
  .filters .fld select { min-width: 0; }
  .filters .fld { flex: 1 1 140px; }
  .ov { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-row { border-top: 1px solid var(--c-border-2); }
  .tl-item { grid-template-columns: 82px 16px minmax(0, 1fr); padding: 8px 10px; gap: 0 8px; }
  .tl-item::before { left: calc(10px + 82px + 8px + 7px); }
  .tl-date { font-size: 12px; }
  .sheet-grid { grid-template-columns: minmax(0, 1fr); }
  .totalbar { justify-content: space-between; }
  .kv-2 { grid-template-columns: minmax(0, 1fr); }
  .kv-1 div, .kv-2 div { grid-template-columns: 7.2em minmax(0, 1fr); }
  .statement { grid-template-columns: minmax(0, 1fr); }
  .st-row:nth-child(odd) { border-right: 0; }
  .st-row:nth-child(2) { border-top: 1px solid var(--c-border-2); }
  .st-v { font-size: 21px; }
  .rc-grid { grid-template-columns: minmax(0, 1fr); }
  .rc-img { max-width: 140px; }
  .plan { grid-template-columns: minmax(0, 1fr); }
  .cover { grid-template-columns: minmax(0, 1fr); padding: 36px 18px; gap: 24px; }
  .cover-main { border-left-width: 4px; padding-left: 16px; }
  .cover-sub { font-size: 16px; }
  .cover-qr { display: none; }
  .solo-top { padding: 10px 14px; }
  .login-roles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .draft-mark { font-size: 64px; }
  .draft-row { grid-template-columns: 7em minmax(0, 1fr); }
  .toast { bottom: calc(var(--tab-h) + 16px + var(--safe-b)); }
  .inv-tot dd { min-width: 0; }
  .ai-form .btn { width: 100%; }
}
