/* ============================================================
   入札レーダー UI v2（便1・2026-10-22）
   - モック deliverables/ui_redesign_v2/assets/base2.css・pc.css の移植（墨と灰・蛍光ペンの行・方式の色の列）
   - 色の変数は `.v2` の中だけに効く（上のナビ・共通の帯・受信箱）。従来の画面（探す・進行中・統計・設定）の
     中身は style.css の色のまま（便3〜7 で作り直すまで混ぜない）
   - 方式の色はモックどおり: OC＝緑青／企画・総合＝青（総合は中抜き）／公募＝橙／価格＝無彩色／指名・随契＝輪郭／
     一般・不明＝点線。いつも文字のラベルと一緒に出す（色だけで区別させない）
   - 依存ゼロ・CDN なし・システムのフォント。ライト／ダークは OS に合わせる
   ============================================================ */

.v2 {
  color-scheme: light;
  --fs: 13.5px;
  --bg: #edf0f3;
  --surface: #ffffff;
  --surface-2: #f5f7f9;
  --surface-3: #eef1f4;
  --ink: #17202b;
  --ink-2: #4d5966;
  --muted: #66727f;
  --rule: #e1e5ea;
  --rule-2: #c9d0d8;
  --accent: #17202b;
  --accent-ink: #ffffff;
  --focus: #17202b;
  --hl: #fff3b8;
  --hl-bar: #d9a400;
  --sel: #eef3fb;
  --red: #c42b1c;
  --red-soft: #fbe9e6;
  --amber: #9a5b00;
  --amber-soft: #fbf0dc;
  --green: #0a7a5a;
  --link: #1d4f9f;
  --top-bg: #ffffff;
  --band-bg: #17202b;
  --band-ink: #f3f5f8;
  --band-muted: #a9b3bf;
  --m-oc: #0a7a5a;
  --m-oc-fg: #ffffff;
  --m-pro: #2360c0;
  --m-pro-fg: #ffffff;
  --m-pro-soft: #e1eafa;
  --m-pro-text: #1d4f9f;
  --m-pub: #b4530f;
  --m-pub-fg: #ffffff;
  --m-low-bg: #e4e7eb;
  --m-low-fg: #3b4450;
  --m-line: #9aa4af;
  --v2-font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;
  --v2-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pane-w: 560px;
  font-family: var(--v2-font);
  font-size: var(--fs);
  line-height: 1.6;
  color: var(--ink);
}
@media (prefers-color-scheme: dark) {
  .v2 {
    color-scheme: dark;
    --bg: #12171d;
    --surface: #1a2029;
    --surface-2: #212833;
    --surface-3: #262e3a;
    --ink: #e7ebf0;
    --ink-2: #aab4c0;
    --muted: #8a95a3;
    --rule: #2a323d;
    --rule-2: #3a4350;
    --accent: #e7ebf0;
    --accent-ink: #12171d;
    --focus: #e7ebf0;
    --hl: #3a3317;
    --hl-bar: #f2c230;
    --sel: #1f2a3a;
    --red: #ff8a73;
    --red-soft: #3a1f1b;
    --amber: #e0a33a;
    --amber-soft: #352a15;
    --green: #3fbf94;
    --link: #9cc0ff;
    --top-bg: #1a2029;
    --band-bg: #0d1116;
    --band-ink: #e7ebf0;
    --band-muted: #8a95a3;
    --m-oc: #239c76;
    --m-oc-fg: #0f151b;
    --m-pro: #4a86e8;
    --m-pro-fg: #0f151b;
    --m-pro-soft: #18294a;
    --m-pro-text: #9cc0ff;
    --m-pub: #d0702a;
    --m-pub-fg: #0f151b;
    --m-low-bg: #2a313b;
    --m-low-fg: #c3cbd5;
    --m-line: #5e6976;
  }
}

/* 受信箱のページだけ地の色を v2 にする（従来のページは style.css のまま） */
body.nr-page--inbox { background: #edf0f3; }
@media (prefers-color-scheme: dark) {
  body.nr-page--inbox { background: #12171d; }
}
.site-main--wide { max-width: none; padding: 0; }

.v2 *, .v2 *::before, .v2 *::after { box-sizing: border-box; }
.v2 h1, .v2 h2, .v2 h3, .v2 p { margin: 0; color: inherit; }
/* :where() で詳細度を 0 にする＝style.css の a {…} より後に読むので勝ち、部品のクラス（.vbtn など）にはいつも負ける */
:where(.v2) a { color: inherit; }
:where(.v2) a:hover { text-decoration: none; }
.v2 button, .v2 input, .v2 select, .v2 textarea { font: inherit; color: inherit; }
.v2 button { cursor: pointer; }
.v2 :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.v2 .tnum { font-variant-numeric: tabular-nums; }
.v2 .vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.v2 kbd {
  font-family: var(--v2-font); font-size: 10px; font-weight: 700; line-height: 1;
  padding: 2px 4px; border-radius: 3px; border: 1px solid currentColor; opacity: .6;
}
.v2-svg { width: 16px; height: 16px; flex: none; }
@media (prefers-reduced-motion: reduce) {
  .v2 *, .v2 *::before, .v2 *::after { transition: none !important; animation: none !important; }
}

/* ------------------------------------------------------------ 上のナビ（タブ） */
.nr-top {
  position: sticky; top: 0; z-index: 40;
  height: 50px;
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px;
  background: var(--top-bg);
  border-bottom: 1px solid var(--rule);
}
.nr-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap; color: var(--ink); }
.nr-brand__mark { width: 22px; height: 22px; flex: none; }
.nr-brand__name { font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.nr-nav { display: flex; gap: 2px; height: 100%; }
.nr-nav__item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 11px; height: 100%;
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.nr-nav__item:hover { color: var(--ink); }
.nr-nav__item[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nr-nav__count {
  font-size: 12px; font-weight: 700;
  min-width: 22px; text-align: center; padding: 0 6px; line-height: 18px;
  border-radius: 9px; background: var(--surface-2); color: var(--ink-2);
}
.nr-nav__item[aria-current="page"] .nr-nav__count { background: var(--ink); color: var(--surface); }
.nr-nav__due { font-size: 10.5px; font-weight: 800; color: var(--amber); border: 1px solid currentColor; border-radius: 9px; padding: 0 5px; line-height: 16px; white-space: nowrap; }
.nr-nav__due--over { color: var(--red); }
.nr-top__meta { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; min-width: 0; }
.nr-top__today b { color: var(--ink); }
.nr-top__extra { color: var(--muted); }
.nr-top__user { color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.nr-top__logout { margin: 0; display: inline; }
.nr-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 30px; height: 30px; padding: 0 7px;
  border: 1px solid var(--rule-2); border-radius: 6px; background: var(--surface);
  color: var(--ink-2); font-size: 12px; text-decoration: none;
}
.nr-iconbtn:hover { color: var(--ink); border-color: var(--ink-2); }
.nr-linkbtn { border: 0; background: none; padding: 0; color: var(--ink-2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.nr-linkbtn:hover { color: var(--ink); }

/* ------------------------------------------------------------ 共通の帯（期限と取得の警告・畳める） */
.nr-band {
  position: sticky; top: 50px; z-index: 39;
  min-height: 38px;
  display: flex; align-items: center; gap: 6px 12px;
  padding: 5px 18px;
  background: var(--band-bg); color: var(--band-ink);
  font-size: 12.5px; overflow-x: auto; scrollbar-width: none;
}
.nr-band::-webkit-scrollbar { display: none; }
.nr-band__toggle {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  border: 1px solid color-mix(in srgb, var(--band-ink) 30%, transparent);
  background: transparent; color: var(--band-ink); border-radius: 5px; height: 26px; padding: 0 8px; font-size: 11.5px; font-weight: 700;
}
.nr-band__toggle .v2-svg { width: 13px; height: 13px; }
.nr-band__toggle:hover { border-color: var(--band-ink); }
.nr-band__icon-closed { display: none; }
html.band-closed .nr-band__icon-open { display: none; }
html.band-closed .nr-band__icon-closed { display: inline-flex; }
.nr-band__full { display: flex; align-items: center; gap: 6px 10px; flex-wrap: nowrap; min-width: 0; }
html.band-closed .nr-band__full { display: none; }
.nr-band__sum { white-space: nowrap; color: var(--band-muted); display: none; }
html.band-closed .nr-band__sum { display: inline; }
.nr-band__sum b { color: var(--band-ink); }
.nr-band__over, .nr-band__sum .nr-band__over { color: #ff9b86; }
.nr-band__label { color: var(--band-muted); font-weight: 700; white-space: nowrap; font-size: 11.5px; letter-spacing: .04em; }
/* 便7: 「取得」の札と警告は押すと設定タブ（収集元・通知・沈める規則） */
a.nr-band__label--link { text-decoration: none; }
a.nr-band__label--link:hover { color: var(--band-ink); text-decoration: underline; text-underline-offset: 3px; }
.nr-band__sep { width: 1px; align-self: stretch; background: color-mix(in srgb, var(--band-ink) 18%, transparent); flex: none; }
.nr-chip {
  display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap;
  padding: 3px 9px; border-radius: 5px; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--band-ink) 22%, transparent);
  color: var(--band-ink);
}
a.nr-chip:hover { border-color: var(--band-ink); text-decoration: none; }
.nr-chip small { color: var(--band-muted); font-size: 11.5px; }
.nr-chip .rel { color: var(--band-ink); }
.nr-chip .rel.u-now, .nr-chip .rel.u-soon { color: #ff9b86; }
.nr-chip .rel.u-week { color: #f2c86a; }
.nr-chip--quiet { border-style: dashed; }
.nr-chip--over { border-color: #ff7a5f; background: rgba(255, 122, 95, .12); }
.nr-chip--over b { color: #ffb4a3; }
.nr-chip--alert { border-color: #ff9b86; color: #ffd0c6; }
.nr-chip--alert::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff7a5f; align-self: center; flex: none; }
.nr-chip--warn { border-color: #f2c86a; color: #f8e3b4; }
.nr-chip--warn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f2c86a; align-self: center; flex: none; }

/* ------------------------------------------------------------ ボタン・印 */
.vbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 12px; border-radius: 6px;
  border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink);
  font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; line-height: 1;
}
.vbtn:hover { border-color: var(--ink-2); }
.vbtn .v2-svg { width: 15px; height: 15px; }
.vbtn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vbtn--primary:hover { filter: brightness(1.12); border-color: var(--accent); }
.vbtn--quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
.vbtn--quiet:hover { background: var(--surface-2); border-color: transparent; color: var(--ink); }
.vbtn--skip:hover, .vbtn--skip[aria-pressed="true"] { border-color: var(--ink-2); background: var(--surface-2); }
.vbtn--consider:hover, .vbtn--consider[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.vbtn--apply:hover, .vbtn--apply[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.vbtn[aria-pressed="true"] { font-weight: 800; }
.vbtn[disabled], .vbtn.is-disabled { opacity: .45; cursor: not-allowed; }
.vstar {
  width: 30px; height: 30px; border-radius: 6px; border: 1px solid transparent;
  background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0;
}
.vstar .v2-svg { width: 17px; height: 17px; }
.vstar:hover { color: var(--ink); background: var(--surface-2); }
.vstar[aria-pressed="true"] { color: #c58a00; }
.vstar[aria-pressed="true"] .v2-svg { fill: currentColor; }

.v2 .tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 3px;
  font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap;
  border: 1px solid var(--rule-2); color: var(--ink-2); background: transparent;
}
.v2 .tag b { margin-left: 4px; }
.v2 .tag--new { border-color: var(--ink); color: var(--ink); }
.v2 .tag--kago { border-color: var(--ink-2); color: var(--ink); background: var(--surface-2); }
.v2 .tag--grade { border-color: var(--red); color: var(--red); }
.v2 .tag--reason { border-color: var(--rule-2); background: var(--surface-2); color: var(--ink-2); }

.mchip {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 7px; border-radius: 4px;
  font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1;
  border: 1px solid transparent;
}
.mchip--oc { background: var(--m-oc); color: var(--m-oc-fg); }
.mchip--pro { background: var(--m-pro); color: var(--m-pro-fg); }
.mchip--com { background: var(--m-pro-soft); color: var(--m-pro-text); border: 2px solid var(--m-pro); }
.mchip--pub { background: var(--m-pub); color: var(--m-pub-fg); }
.mchip--low { background: var(--m-low-bg); color: var(--m-low-fg); }
.mchip--gen { background: transparent; color: var(--m-low-fg); border: 1px dashed var(--m-line); }
.mchip--des, .mchip--neg { background: transparent; color: var(--ink-2); border-color: var(--m-line); }
.mchip--unk { background: transparent; color: var(--muted); border: 1px dashed var(--m-line); font-weight: 600; }

.mcell {
  align-self: stretch; margin: -7px 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1.1; text-align: center; gap: 1px;
}
.mcell b { font-weight: 800; letter-spacing: .02em; }
.mcell small { font-size: 10px; font-weight: 700; }
.mcell--oc { background: var(--m-oc); color: var(--m-oc-fg); }
.mcell--pro { background: var(--m-pro); color: var(--m-pro-fg); }
.mcell--com { background: var(--m-pro-soft); color: var(--m-pro-text); box-shadow: inset 0 0 0 2px var(--m-pro); }
.mcell--pub { background: var(--m-pub); color: var(--m-pub-fg); }
.mcell--low { background: var(--m-low-bg); color: var(--m-low-fg); }
.mcell--gen { color: var(--m-low-fg); box-shadow: inset 0 0 0 1px var(--m-line); background: var(--surface); }
.mcell--des, .mcell--neg { box-shadow: inset 0 0 0 1px var(--m-line); color: var(--ink-2); }
.mcell--unk { color: var(--muted); box-shadow: inset 0 0 0 1px var(--m-line); background: repeating-linear-gradient(135deg, transparent 0 4px, var(--surface-2) 4px 8px); }

.rel { display: inline-flex; align-items: baseline; gap: 1px; white-space: nowrap; color: var(--ink-2); }
.rel b { font-weight: 700; font-variant-numeric: tabular-nums; }
.rel small { font-size: .62em; font-weight: 600; }
.u-now, .u-soon { color: var(--red); }
.u-week { color: var(--amber); }
.u-later { color: var(--ink-2); }
.u-past, .u-none { color: var(--muted); }

.st {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px;
  font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid var(--rule-2);
  background: var(--surface); color: var(--ink-2);
}
.st--skipped { background: var(--surface-2); color: var(--muted); border-color: var(--rule); font-weight: 600; }
.st--considering { border-color: var(--amber); color: var(--amber); }
.st--applying { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.st--submitted { border-color: var(--ink); color: var(--ink); }
.st--none { border-style: dashed; color: var(--muted); }

/* ------------------------------------------------------------ 受信箱（進行表＋右の読む欄） */
.ib { display: grid; grid-template-columns: minmax(0, 1fr) var(--pane-w); align-items: start; background: var(--bg); min-height: calc(100vh - 88px); }
.ib__list { min-width: 0; padding: 14px 18px 120px 20px; }
.ib__pane {
  position: sticky; top: 88px; height: calc(100vh - 88px);
  background: var(--surface); border-left: 1px solid var(--rule-2); display: flex; flex-direction: column; min-width: 0;
}
.ib__pane > .rd { height: 100%; }
.ib-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; align-items: end; margin-bottom: 10px; }
.ib-count { display: flex; align-items: baseline; gap: 4px; grid-row: span 2; }
.ib-count__label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.ib-count__num { font-size: 46px; line-height: .95; font-weight: 700; letter-spacing: -.02em; }
.ib-count__unit { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.ib-facts { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: 13px; color: var(--ink-2); }
.ib-facts b { color: var(--ink); }
.ib-facts a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.ib-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0 4px; }
html:not(.has-js) .ib-tools { display: none; }
.v2-input {
  height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--rule-2); background: var(--surface);
  font-size: 13px; min-width: 0; width: 240px;
}
.v2-input:focus { outline: 2px solid var(--focus); outline-offset: 0; }
.ib-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule-2); border-radius: 6px; overflow: hidden; background: var(--surface); }
.ib-seg:empty { display: none; }
.ib-seg button { border: 0; background: none; height: 30px; padding: 0 10px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; border-left: 1px solid var(--rule); }
.ib-seg button:first-child { border-left: 0; }
.ib-seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.ib-seg button small { font-weight: 600; font-variant-numeric: tabular-nums; opacity: .8; }
.ib-tools__hint { font-size: 11.5px; color: var(--muted); }
.ib-tools__hint kbd { margin: 0 1px; }

.ib-sec { margin-top: 12px; }
.ib-sec__head {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 8px; background: var(--surface);
  border: 1px solid var(--rule-2); border-radius: 6px 6px 0 0;
}
.ib-sec[data-open="0"] .ib-sec__head { border-radius: 6px; }
html:not(.has-js) .ib-sec[data-open="0"] .ib-sec__head { border-radius: 6px 6px 0 0; }
.ib-sec--main .ib-sec__head { border-top: 3px solid var(--ink); }
.ib-sec__all input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.ib-sec__toggle { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; flex: none; }
.ib-sec__toggle .v2-svg { transition: transform .15s var(--ease); }
.ib-sec__toggle[aria-expanded="true"] .v2-svg { transform: rotate(90deg); }
.ib-sec__n { font-size: 15px; }
.ib-sec__lead { font-size: 12px; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1 1 0; }
.ib-sec__kinds { display: flex; gap: 4px; flex: none; }
.ib-sec__bulk { margin-left: auto; flex: none; height: 28px; }
.ib-sec__empty { padding: 16px 12px; color: var(--muted); background: var(--surface); }
.ib-rows { background: var(--surface); border: 1px solid var(--rule-2); border-top: 0; border-radius: 0 0 6px 6px; }
/* 畳んだ棚（JS が無い環境では畳まない＝全部見える） */
html.has-js .ib-sec[data-open="0"] .ib-rows { display: none; }

.ib-row {
  display: grid; grid-template-columns: 22px 86px 46px minmax(0, 1fr) 112px 150px; gap: 0 10px; align-items: center;
  min-height: 62px; padding: 7px 10px 7px 8px; border-top: 1px solid var(--rule); position: relative; outline: none;
}
.ib-row:first-child { border-top: 0; }
.ib-row--sunk { min-height: 52px; color: var(--ink-2); }
.ib-row:hover { background: var(--surface-2); }
.ib-row.is-sel { background: var(--sel); }
.ib-row.is-focus { background: var(--hl); box-shadow: inset 4px 0 0 var(--hl-bar); }
.ib-row.is-leaving { opacity: 0; transition: opacity .14s linear; }
.ib-row.is-busy { opacity: .55; pointer-events: none; }
.ib-row[hidden] { display: none; }
.ib-row__sel input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.ib-row__dl { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; min-width: 0; }
.ib-row__dl .rel { font-size: 20px; }
.dl__abs { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.dl__kind { font-size: 11px; font-weight: 700; color: var(--ink-2); }
.ib-row--sunk .rel, .ib-row--sunk .dl__kind, .ib-row--sunk .dl__abs { color: var(--muted); }
.ib-row__main { min-width: 0; position: relative; }
.ib-row__title { min-width: 0; font-weight: 700; font-size: 13.5px; line-height: 1.42; padding-right: 4px; }
.ib-row__tt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; word-break: break-word; text-decoration: none; color: var(--ink); }
.ib-row__tt:hover { text-decoration: underline; text-underline-offset: 3px; }
.ib-row--sunk .ib-row__tt { -webkit-line-clamp: 1; font-weight: 500; color: var(--ink-2); }
.ib-row__copy {
  position: absolute; right: 0; top: -2px; opacity: 0; border: 1px solid var(--rule-2); background: var(--surface); color: var(--ink-2);
  border-radius: 4px; height: 22px; padding: 0 7px; font-size: 11px; font-weight: 700;
  box-shadow: -10px 0 8px var(--surface);
}
.ib-row.is-focus .ib-row__copy { box-shadow: -10px 0 8px var(--hl); }
.ib-row:hover .ib-row__copy, .ib-row.is-focus .ib-row__copy, .ib-row__copy:focus-visible { opacity: 1; }
.ib-row__copy:hover { color: var(--ink); border-color: var(--ink-2); }
.ib-row__copy.is-copied { color: var(--green); border-color: var(--green); opacity: 1; }
.ib-row__meta { display: flex; align-items: center; gap: 4px 8px; margin-top: 2px; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ib-row__org { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; max-width: 42%; }
.ib-row__via { overflow: hidden; text-overflow: ellipsis; }
.ib-row__note { color: var(--amber); overflow: hidden; text-overflow: ellipsis; }
.ib-row__note a { text-decoration: underline; text-underline-offset: 2px; }
.ib-row__go .vbtn { height: 30px; padding: 0 8px; font-size: 12px; width: 100%; justify-content: flex-start; }
.ib-row__go .v2-svg { width: 14px; height: 14px; }
.ib-row__act { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.ib-row__act .vbtn { height: 30px; padding: 0 8px; font-size: 12.5px; }
.ib-form { margin: 0; display: inline-flex; }
.ib-foot { margin-top: 16px; font-size: 12.5px; color: var(--muted); display: grid; gap: 4px; }
.ib-foot__warn { color: var(--red); }
.ib-zero { margin-top: 12px; padding: 28px; text-align: center; background: var(--surface); border: 1px dashed var(--rule-2); border-radius: 8px; color: var(--ink-2); }
.ib-zero b { display: block; font-size: 18px; color: var(--ink); }
.ib-filtered-empty { padding: 12px; color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------------------ 読む欄（/bid/:id/pane の中身） */
.rd { display: flex; flex-direction: column; min-height: 0; }
.rd__bar { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-bottom: 1px solid var(--rule); flex: none; font-size: 12px; color: var(--muted); }
.rd__pos { margin-right: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd__scroll { overflow: auto; padding: 16px 20px 40px; flex: 1; min-height: 0; overscroll-behavior: contain; }
.rd__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rd__dl { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 6px; flex-wrap: wrap; }
.rd__dl .rel { font-size: 28px; line-height: 1; }
.rd__dlabs { font-weight: 700; font-size: 14px; }
.rd__dlkind { font-size: 12px; color: var(--ink-2); font-weight: 700; padding: 1px 6px; border: 1px solid var(--rule-2); border-radius: 3px; }
.rd__dlsrc { font-size: 12px; color: var(--muted); }
.rd__title { font-size: 19px; line-height: 1.45; font-weight: 700; letter-spacing: .01em; -webkit-user-select: text; user-select: text; word-break: break-word; }
.rd__title::selection { background: var(--hl); color: var(--ink); }
.rd__copy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; align-items: center; }
.rd__copy .vbtn { height: 30px; font-size: 12.5px; }
.rd__org { margin-top: 10px; font-weight: 700; font-size: 14px; }
.rd__meta { margin-top: 2px; font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.rd__meta a { text-decoration: underline; text-underline-offset: 3px; color: var(--link); }
.rd__judge { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.rd__judge .vbtn { height: 34px; padding: 0 12px; font-size: 13.5px; }
.rd__kv { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 6px 10px; margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: 8px; font-size: 13px; }
.rd__kv dt { color: var(--ink-2); font-weight: 700; font-size: 12px; }
.rd__kv dd { margin: 0; min-width: 0; word-break: break-word; }
.rd__none { color: var(--muted); }
.rd__h { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 18px 0 6px; display: flex; gap: 8px; align-items: baseline; }
.rd__h small { color: var(--muted); font-weight: 600; }
.rd .doc {
  font-size: 13px; line-height: 1.85; color: var(--ink-2); white-space: pre-wrap; word-break: break-word;
  padding: 12px 14px; border-left: 3px solid var(--rule-2); background: var(--surface-2); border-radius: 0 6px 6px 0;
}
.rd .doc a { color: var(--link); word-break: break-all; }
.rd__cut { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.rd__att { margin: 0; padding: 0 0 0 2px; list-style: none; display: grid; gap: 4px; font-size: 13px; }
.rd__att a { color: var(--link); word-break: break-all; }
.rd__atttext { margin-top: 8px; }
.rd__atttext summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); font-weight: 700; }
.rd__atttext .doc { max-height: 360px; overflow: auto; margin-top: 6px; }
.rd__memo { display: grid; gap: 6px; margin: 0; }
.rd__memo textarea { width: 100%; min-height: 72px; resize: vertical; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--rule-2); background: var(--surface); font-size: 13px; line-height: 1.55; }
.rd__memo .vbtn { justify-self: start; }
.rd .detail-grade { margin-top: 12px; }
.rd__close { display: none; }
.rd__empty { color: var(--muted); padding: 40px 24px; text-align: center; font-size: 13px; }
.rd__empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.rd--loading { opacity: .6; }

/* ------------------------------------------------------------ まとめて判定のバー・トースト・キー一覧 */
.nr-bulkbar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px;
  background: var(--ink); color: var(--surface); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(10, 15, 20, .28); max-width: calc(100vw - 24px); flex-wrap: wrap;
}
.nr-bulkbar[hidden] { display: none; }
.nr-bulkbar b { font-size: 16px; }
.nr-bulkbar .vbtn { background: transparent; color: var(--surface); border-color: color-mix(in srgb, var(--surface) 35%, transparent); }
.nr-bulkbar .vbtn--primary { background: var(--surface); color: var(--ink); border-color: var(--surface); }
.nr-toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 16px;
  background: var(--ink); color: var(--surface); border-radius: 10px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(10, 15, 20, .28); max-width: calc(100vw - 24px);
}
.nr-toast[hidden] { display: none; }
.nr-toast--error { background: var(--red); color: #fff; }
.nr-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nr-toast button {
  border: 1px solid color-mix(in srgb, var(--surface) 40%, transparent); background: transparent; color: inherit;
  border-radius: 6px; height: 30px; padding: 0 10px; font-weight: 700; font-size: 13px; white-space: nowrap; flex: none;
}
.nr-bulkbar:not([hidden]) ~ .nr-toast { bottom: 76px; }
dialog.nr-dlg {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); padding: 0;
  border: 1px solid var(--rule-2); border-radius: 12px; background: var(--surface); color: var(--ink);
  box-shadow: 0 24px 60px rgba(10, 15, 20, .3);
}
dialog.nr-dlg::backdrop { background: rgba(10, 15, 20, .35); }
.nr-dlg__head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--rule); }
.nr-dlg__head h2 { font-size: 16px; margin-right: auto; }
.nr-dlg__body { padding: 14px 18px 18px; overflow: auto; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); }
.nr-keys { display: grid; grid-template-columns: 140px 1fr; gap: 7px 14px; font-size: 14px; align-items: baseline; margin: 0; }
.nr-keys dt { text-align: right; }
.nr-keys dd { margin: 0; color: var(--ink-2); }
.nr-keys kbd { font-size: 12px; padding: 1px 6px; opacity: 1; border-color: var(--rule-2); background: var(--surface-2); }
.nr-keys__h { grid-column: 1 / 3; font-size: 12px; font-weight: 700; color: var(--muted); margin-top: 8px; }

/* ------------------------------------------------------------ 進行中（便3）: 段階の点・待ち・次の期限・進行中のカード
   進行中タブ（board.css）と読む画面（便2）の「進行中のカード」（src/tracking/card.tsx の PursuitCard）で共通 */
.stg { display: inline-flex; gap: 3px; align-items: center; }
.stg__d {
  width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal;
  font-size: 10.5px; font-weight: 800; border: 1.5px solid var(--ink-2); color: var(--ink-2); background: var(--surface); flex: none;
}
.stg__d--done { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.stg__d--skip { border-style: dashed; color: var(--muted); border-color: var(--muted); }
.stg__d--none { border-color: transparent; color: var(--rule-2); background: transparent; }
.stg__d--now { box-shadow: 0 0 0 3px var(--hl-bar); }
.wchip {
  display: inline-flex; align-items: center; justify-content: center; height: 22px; padding: 0 8px; border-radius: 11px;
  font-size: 11.5px; font-weight: 800; white-space: nowrap; border: 1px solid var(--rule-2); color: var(--ink-2);
}
.wchip--self { border-color: var(--ink); color: var(--ink); }
.wchip--other { border-color: var(--amber); color: var(--amber); }
.wchip--result { border-color: var(--m-pro); color: var(--m-pro-text); background: var(--m-pro-soft); }
.wchip--none { border-style: dashed; color: var(--muted); }
.pnext { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; min-width: 0; }
.pnext .rel { font-size: 20px; }
.pnext__over { color: var(--red); font-weight: 800; white-space: nowrap; }
.pnext__over b { font-size: 20px; font-variant-numeric: tabular-nums; }
.pnext__abs { font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.pnext__abs b { color: var(--ink); }
.pnext__kind { flex-basis: 100%; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnext__res { flex-basis: 100%; font-size: 11px; color: var(--m-pro-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnext__none { color: var(--muted); font-size: 12.5px; }
.pcard { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: 8px; background: var(--surface); min-width: 0; }
.pcard.is-over { border-color: var(--red); box-shadow: inset 4px 0 0 var(--red); }
.pcard__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.pcard__bar { width: 4px; height: 18px; border-radius: 2px; flex: none; }
.pcard__name { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__go { margin-left: auto; font-size: 12px; color: var(--link); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.pcard__todo { font-size: 13px; line-height: 1.5; word-break: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.pcard__todo span { display: block; font-size: 10.5px; font-weight: 800; color: var(--ink-2); }
.pcard__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.pcard__meta a { color: var(--link); }
/* 便5: 読む画面のカードも進行中タブと同じ部品（PursuitCard）にしたので足した印（参加資格の ×・未再検証）と、進行中でない枠 */
.pcard__flag { font-size: 10.5px; font-weight: 800; color: var(--red); border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; line-height: 16px; white-space: nowrap; }
.pnext__nv { font-size: 10.5px; font-weight: 800; color: var(--amber); border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; line-height: 16px; white-space: nowrap; align-self: center; }
.pcard__k { font-size: 10.5px; font-weight: 800; color: var(--surface); background: var(--muted); border-radius: 3px; padding: 1px 6px; flex: none; }
/* 状況の一言（しおりの一言・便2 のカードと同じ太さ）。長い時は3行で切る（全部は進行中で開く） */
.pcard__status { font-size: 13.5px; font-weight: 700; line-height: 1.55; word-break: break-word; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pcard--none { background: var(--surface-2); }
.pcard--none .pcard__todo { -webkit-line-clamp: unset; color: var(--ink-2); }

/* ------------------------------------------------------------ 幅で変える */
@media (max-width: 1500px) {
  .v2 { --pane-w: 500px; }
}
@media (max-width: 1360px) {
  .v2 { --pane-w: 450px; }
  .ib-row { grid-template-columns: 22px 80px 44px minmax(0, 1fr) 100px 146px; }
  .nr-top__user { display: none; }
}
/* 読む欄を一覧の右に並べる余裕が無い幅: 読む欄は右から出る（行を押した時だけ） */
@media (max-width: 1180px) {
  .ib { grid-template-columns: minmax(0, 1fr); }
  .ib__pane {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); height: 100vh; height: 100dvh; z-index: 55;
    box-shadow: -12px 0 40px rgba(10, 15, 20, .25); display: none;
  }
  .ib__pane.is-open { display: flex; }
  .ib__pane .rd__close { display: inline-flex; }
}
@media (max-width: 960px) {
  .nr-top__fetched, .nr-top__today { display: none; }
}
/* スマホ幅（768px 未満）の並びは便5 で public/sp.css に移した（案 B 仕分け台・ここには置かない） */
