/* ─────────────────────────────────────────────────────────────
   Securiy — 画面 v1027(Figma 2026-10-27)
   淡いグレーの地に白いカード。左に浮いたサイドバー、丸いピルのボタン。
   ダークモードは OS の設定に従う(prefers-color-scheme)。
   ───────────────────────────────────────────────────────────── */
/* Revolut 版(Figma 2026-10-28):白・黒の地、影なし、ボタンは青(#494FDF)の丸いピル、二次ボタンは灰色の面。
   書体は IBM Plex Sans JP(数字は Inter)。ダークは中立の黒。値は data/figma-1028-jp の PNG から採った。 */
:root {
  color-scheme: light;
  --canvas: #f4f4f4;
  --paper: #ffffff;
  --ink: #191c1f;
  --ink-2: #191c1f;
  --muted: #505a63;
  --faint: #8d969e;
  --line: #ececf0;
  --line-strong: #e2e2e7;
  --soft: #f4f4f4;
  --box: #f4f4f4;
  --input: #ffffff;
  --accent: #494fdf;
  --accent-ink: #3a40c8;
  --fill: #494fdf;
  --accent-soft: #ecedfc;
  --accent-line: #d7d9f9;
  --on-accent: #ffffff;
  --btn2: #f4f4f4;
  --btn2-ink: #191c1f;
  --btn2-hover: #e9eaeb;
  --link: #191c1f;
  --crit: #e23b4a;
  --crit-bg: #fdecee;
  --crit-line: #f6c3c8;
  --ok: #00a87e;
  --ok-bg: #e2f6f0;
  --ok-line: #b6e6d8;
  --warn: #b25e09;
  --warn-bg: #fdf1e3;
  --code-bg: #191c1f;
  --code-ink: #e6e8ea;
  --code-add: #0f3a2e;
  --shadow: none;
  --shadow-lg: none;
  --radius: 20px;
  --font: "IBM Plex Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  --num: "Inter", "IBM Plex Sans JP", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --canvas: #000000; --paper: #16181a; --ink: #ffffff; --ink-2: #ffffff; --muted: #a6a9ad; --faint: #7d8186;
    --line: #242628; --line-strong: #2c2e31; --soft: #222427; --box: #222427; --input: #16181a;
    --accent: #7b80f5; --accent-ink: #7b80f5; --accent-soft: #1d1f45; --accent-line: #292b5b; --on-accent: #ffffff;
    --btn2: #222427; --btn2-ink: #ffffff; --btn2-hover: #2a2c2f; --link: #ffffff;
    --crit: #ff5c69; --crit-bg: #3a1519; --crit-line: #531e23; --ok: #1fc79a; --ok-bg: #0f3a2e; --ok-line: #145c47;
    --warn: #f0a35e; --warn-bg: #3d2a14; --code-bg: #0a0a0a; --code-add: #0f3a2e;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #000000; --paper: #16181a; --ink: #ffffff; --ink-2: #ffffff; --muted: #a6a9ad; --faint: #7d8186;
  --line: #242628; --line-strong: #2c2e31; --soft: #222427; --box: #222427; --input: #16181a;
  --accent: #7b80f5; --accent-ink: #7b80f5; --accent-soft: #1d1f45; --accent-line: #292b5b; --on-accent: #ffffff;
  --btn2: #222427; --btn2-ink: #ffffff; --btn2-hover: #2a2c2f; --link: #ffffff;
  --crit: #ff5c69; --crit-bg: #3a1519; --crit-line: #531e23; --ok: #1fc79a; --ok-bg: #0f3a2e; --ok-line: #145c47;
  --warn: #f0a35e; --warn-bg: #3d2a14; --code-bg: #0a0a0a; --code-add: #0f3a2e;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; font-weight: 500; letter-spacing: 0; }
h2 { font-size: 16px; font-weight: 700; }
h3 { font-size: 14px; font-weight: 700; }
a { color: var(--link); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono, code { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.t-bad { color: var(--crit); }
.t-ok { color: var(--ok); }
.t-warn { color: var(--warn); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.grow { flex: 1; min-width: 0; }

/* ── ボタン:丸いピル ── */
.btn { font: inherit; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--btn2); color: var(--btn2-ink);
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s; line-height: 1; }
.btn:hover { background: var(--btn2-hover); }
.btn.pri { background: var(--fill); color: var(--on-accent); }
.btn.pri:hover { background: #3a40c8; }
.btn:disabled, .btn.disabled { opacity: .45; cursor: default; pointer-events: none; }
.btn.sm { height: 33px; padding: 0 14px; font-size: 12px; }
.btn.lg { height: 44px; padding: 0 22px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.gray { color: var(--btn2-ink); }
.btn.gray:hover { background: var(--soft); }
.btn.danger { background: var(--crit-bg); color: var(--crit); }
.btn.danger:hover { background: var(--crit-line); }
.btn.link, .link { border: 0; background: none; color: var(--link); padding: 0 6px; height: auto; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn.link:hover, .link:hover { text-decoration: underline; background: none; }
.btn svg.i { width: 16px; height: 16px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--paper); color: var(--ink); display: grid; place-items: center; cursor: pointer; position: relative; box-shadow: var(--shadow); }
.icon-btn:hover { background: var(--soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── 入力 ── */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.hint { font-size: 12px; font-weight: 400; color: var(--muted); }
input.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, select, textarea.input { font: inherit; font-size: 14px; font-weight: 400; color: var(--ink);
  background-color: var(--input); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 16px; height: 48px; min-width: 0; width: 100%; }
textarea.input, .field textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
select { appearance: none; padding-right: 32px; cursor: pointer;
  background: var(--input) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b86' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[readonly] { background: var(--box) !important; color: var(--muted); }
select.sm { height: 34px; font-size: 13px; width: auto; }
label.check { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 400; cursor: pointer; }
label.check.between { justify-content: space-between; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; color-scheme: light; flex: none; margin: 0; }  /* Figma はライト・ダークとも標準の青 */
.radio-cards { display: flex; flex-direction: column; gap: 8px; font-weight: 400; }
.radio-cards.inline { flex-direction: row; flex-wrap: wrap; }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: var(--paper); font-weight: 400; }
.radio-cards.inline .radio-card { flex: 1 1 140px; }
.radio-card b { display: block; font-size: 14px; font-weight: 600; }
.radio-card small { display: block; font-size: 12px; color: var(--muted); }
.radio-card:has(input:checked) { border-color: var(--ink); background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card:has(input:disabled) { opacity: .5; cursor: default; }
.search-pill { position: relative; display: flex; align-items: center; }
.search-pill svg.i { position: absolute; left: 14px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-pill input { height: 40px; border-radius: 999px; padding-left: 40px; background: var(--paper); border: 1px solid var(--line-strong); font: inherit; font-size: 14px; color: var(--ink); width: 100%; }
.search-pill kbd { position: absolute; right: 12px; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--box); border: 1px solid var(--line-strong); border-radius: 6px; padding: 0 6px; line-height: 18px; }
.toggle { display: inline-flex; gap: 4px; }
.toggle button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 999px; padding: 4px 13px; cursor: pointer; }
.toggle button.on { background: var(--fill); border-color: var(--fill); color: var(--on-accent); }
.lang-toggle { display: inline-flex; gap: 4px; }
.lang-toggle button { font: inherit; font-size: 13px; border: 1px solid var(--line); background: var(--paper); color: var(--ink-2); border-radius: 999px; padding: 4px 13px; cursor: pointer; }
.lang-toggle button.on { background: var(--fill); border-color: var(--fill); color: var(--on-accent); }

/* ── カード ── */
.card { background: var(--paper); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; box-shadow: var(--shadow); }
.card.tight { padding: 14px 16px; }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card__head h2, .ic-h { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.ic-h svg.i { color: var(--accent); }
.card.alert-line { box-shadow: inset 0 0 0 2px var(--crit); }
.card.ok-line { box-shadow: inset 0 0 0 2px var(--ok); }
.box { background: var(--box); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.box.ok { background: var(--ok-bg); }
.box.bad { background: var(--crit-bg); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px; margin: 0; font-size: 13px; align-items: baseline; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
/* スマホの英語:長い見出し(「Lower severity than the threshold」など)で左の列が広がり、右の値(リポジトリ名など)が
   1〜2 語ずつ折り返さないように、見出しの列を 4 割までにする。日本語は今のまま(見出しを細かく折り返さない)。
   :where で詳細度を .kv と同じにし、幅を決めた .kv-dom・.reg-card .kv は上書きしない */
@media (max-width: 560px) { :where(html[lang="en"]) .kv { grid-template-columns: fit-content(40%) minmax(0, 1fr); gap: 6px 16px; }
  html[lang="en"] .kv dd .pill { white-space: normal; max-width: 100%; } }  /* 下の .kv dd .pill { nowrap } より強い */
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.grid-main { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-main.wide-side { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.empty { color: var(--muted); padding: 28px 16px; text-align: center; font-size: 13px; display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ── バッジ ── */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 6px; white-space: nowrap; line-height: 1.6; background: var(--soft); color: var(--ink-2); }
.pill.sev-critical { background: var(--crit-bg); color: var(--crit); }
.pill.sev-high { background: var(--soft); color: var(--crit); }
.pill.blue { background: var(--accent-soft); color: var(--accent); }
.pill.green { background: var(--ok-bg); color: var(--ok); }
.pill.red { background: var(--crit-bg); color: var(--crit); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e0554a; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.count:empty { display: none; }
.dot-badge { position: absolute; top: -6px; right: -6px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; letter-spacing: -.02em; }
.avatar.blue { background: var(--accent); color: var(--on-accent); font-size: 13px; }
.avatars { display: inline-flex; flex-wrap: wrap; }
.avatars .avatar { width: 26px; height: 26px; font-size: 9px; margin-left: -6px; box-shadow: 0 0 0 2px var(--paper); }
.avatars .avatar:first-child { margin-left: 0; }

/* ── ログイン前・はじめの設定:中央のカード ── */
.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 32px 16px; gap: 16px; }
.auth-card { width: min(440px, 100%); background: var(--paper); border-radius: 20px; padding: 28px 28px 30px; display: flex; flex-direction: column; gap: 16px; box-shadow: none; }
.auth-card.wide { width: min(560px, 100%); }
.auth-card.mid { width: min(520px, 100%); }
.auth-card.wider { width: min(640px, 100%); }
.auth-center { display: flex; justify-content: center; padding: 6px 0; }
.su-exists { border: 1px solid var(--line); padding: 14px; gap: 8px; font-size: 13px; }
.su-exists b { font-size: 14px; }
.su-exists > span { color: var(--ink-2); }
.su-exists .btn { margin-top: 2px; }
.auth-card .field input.mono { font-family: var(--mono); }
.auth-card .field input.ob-domain { height: 48px; }
.auth-card .field .toggle button { font-weight: 400; }
.ob-actions { gap: 20px; }
.ob-actions .btn.pri { padding: 0 18px; }
.auth-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auth-card__head .brand-logo { height: 36px; }
.auth-card > .illust { margin-top: 6px; }
.auth-card > .sso-btn + .sso-btn { margin-top: -8px; }
.auth-card h1 { font-size: 22px; }
.auth-card .sub { color: var(--muted); font-size: 13px; }
.auth-card form { display: flex; flex-direction: column; gap: 16px; }
.brand-logo { height: 30px; display: block; }
.brand-logo.dk { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo.lt { display: none; } :root:not([data-theme="light"]) .brand-logo.dk { display: block; } }
:root[data-theme="dark"] .brand-logo.lt { display: none; }
:root[data-theme="dark"] .brand-logo.dk { display: block; }
.illust { display: block; margin: 0 auto; width: 140px; height: auto; }
.sso-btn { gap: 10px; }
.sso-btn .gl { width: 22px; height: 22px; border-radius: 6px; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-alt { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.devlink { font-size: 12px; background: var(--warn-bg); color: var(--warn); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.choice { border-radius: 14px; padding: 22px 20px 20px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); box-shadow: 0 2px 12px rgba(15, 31, 61, .07); }
.choice-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.choice .ic { color: var(--accent); display: inline-grid; place-items: center; }
.choice .ic svg { width: 16px; height: 16px; }
:root[data-theme="dark"] .choice { box-shadow: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .choice { box-shadow: none; } }
.choice .btn { margin-top: 2px; }
.company-pick { display: flex; flex-direction: column; gap: 8px; }
.company-pick button { font: inherit; text-align: left; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 14px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 26px; }
.company-pick button:hover { border-color: var(--accent); background: var(--accent-soft); }
.company-pick b { display: block; }
.company-pick button > span { font-size: 12px; color: var(--muted); }
.invite-rows { display: flex; flex-direction: column; gap: 16px; }
.invite-rows .r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.invite-rows .r select { width: auto; min-width: 102px; }
.auth-card select, dialog.modal select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230f1f3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E"); background-position: right 8px center; background-size: 12px 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-card select, :root:not([data-theme="light"]) dialog.modal select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23eaf0fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] .auth-card select, :root[data-theme="dark"] dialog.modal select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23eaf0fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E"); }

/* ── アプリの外枠:左に浮いたサイドバー ── */
.shell { display: grid; grid-template-columns: 189px minmax(0, 1fr); min-height: 100vh; }
html[lang="en"] .shell { grid-template-columns: 172px minmax(0, 1fr); }  /* Figma の英語版はサイドバーが 160px */
.side { position: sticky; top: 0; height: 100vh; padding: 12px 0 12px 12px; z-index: 20; }
.side__in { height: 100%; background: var(--paper); border-radius: var(--radius); padding: 20px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: visible; box-shadow: var(--shadow); position: relative; }
.side .brand { padding: 4px 8px 6px; display: block; }
.side .brand .brand-logo { height: 28px; }
.company-btn { display: flex; align-items: center; gap: 8px; width: 100%; font: inherit; font-size: 13px; text-align: left; border: 0; background: var(--box); color: var(--ink); border-radius: 12px; padding: 9px 10px; cursor: pointer; }
.company-btn .tag { font-size: 10px; font-weight: 700; color: #fff; background: var(--fill); border-radius: 5px; padding: 1px 4px; }
.company-btn .nm { flex: 1; min-width: 0; white-space: nowrap; }
.company-btn svg.i { width: 14px; height: 14px; color: var(--muted); }
.company-menu { position: absolute; z-index: 30; left: 14px; right: 14px; top: 104px; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.company-menu button { width: 100%; font: inherit; font-size: 13px; text-align: left; border: 0; background: none; color: var(--ink); border-radius: 8px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; }
.company-menu button:hover { background: var(--soft); }
.company-menu button.on { background: var(--accent-soft); }
.company-menu small { color: var(--muted); font-size: 11px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__label { font-size: 12px; font-weight: 400; color: var(--faint); padding: 14px 8px 5px; }
.nav__group { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 8px 10px 8px 20px; border-radius: 8px; white-space: nowrap; color: var(--ink); text-decoration: none; font-size: 14px; position: relative; }
.nav a::before { content: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a::before { background: var(--line); } }
:root[data-theme="dark"] .nav a::before { background: var(--line); }
.nav a.on::before { display: none; }
.nav a svg.i { width: 17px; height: 17px; color: var(--muted); }
.nav a:hover { background: var(--soft); }
.nav a.on { background: var(--fill); color: var(--on-accent); }
.nav a.on svg.i { color: var(--on-accent); }
.nav a .count { margin-left: auto; }
.nav a.on::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--on-accent); margin-left: auto; }
.nav a.on:has(.count:not(:empty))::after { display: none; }
.credit-box { margin-top: auto; background: var(--box); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.credit-box .l { font-size: 12px; color: var(--muted); }
.credit-box b { font-size: 18px; white-space: nowrap; font-family: var(--num); }
.credit-box b small { font-size: 13px; font-weight: 400; color: var(--muted); }
.credit-box.low b { color: var(--crit); }
.side .logout { width: 100%; justify-content: flex-start; gap: 10px; }
.side .logout { justify-content: center; }
.side .logout .chev { margin-left: 0; }
.side .spacer { margin-top: auto; }

.main { min-width: 0; display: flex; flex-direction: column; padding: 0 24px 40px; }
.top { display: flex; align-items: center; gap: 12px; padding: 28px 0 18px; position: relative; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex: 1; min-width: 0; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--ink); }
.crumbs b { color: var(--ink); font-weight: 600; }
.crumbs svg.i { width: 14px; height: 14px; }
.crumbs .sep { color: var(--faint); }
.user-chip { display: flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; border: 0; background: var(--paper); color: var(--ink); border-radius: 12px; padding: 6px 10px 6px 6px; cursor: pointer; box-shadow: var(--shadow); }
.user-chip .avatar { width: 28px; height: 28px; }
.menu-btn { display: none !important; }
.strip { border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; background: var(--warn-bg); color: var(--warn); }
.strip.danger { background: var(--crit-bg); color: var(--crit); }
.strip.info { background: var(--accent-soft); color: var(--accent); }
.alert { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-radius: 12px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.alert.error { background: var(--crit-bg); color: var(--crit); }
.alert.info { background: var(--accent-soft); color: var(--ink); }
.alert.ok { background: var(--ok-bg); color: var(--ok); }
.view { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.page-head .eyebrow { font-size: 12px; color: var(--muted); display: block; margin-bottom: 2px; }
.page-head .eyebrow a { color: var(--accent); text-decoration: none; }
.page-head .lead { color: var(--ink-2); font-size: 13px; margin-top: 8px; }
.page-head .tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .tools .search-pill { width: 280px; }
.page-head .badges { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.ev-head .page-head { align-items: flex-start; }
.issue-grid { max-width: 1140px; }
.issue-grid .box { border: 1px solid var(--line); }
.issue-grid .box .row { flex-wrap: nowrap; }
.issue-grid .box.bad { border-color: var(--crit-line); }
.issue-grid .box.ok { border: 1px solid var(--ok-line); }
.issue-grid .box.ok b { font-size: 13px; }
.issue-grid .box.ok .small { font-size: 13px; }
.grid-main.wide-side.issue-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 376px); }  /* Figma: 左 748px・右 376px */
@media (max-width: 1100px) { .grid-main.wide-side.issue-grid { grid-template-columns: minmax(0, 1fr); } }
.issue-grid .next-open .btn { padding: 0 18px; }  /* Figma: 修正する 90px・保留 64px → 右 376px で「誤検知」が2行目に回る */
#dpReason { min-height: 0; height: 67px; }  /* 対応不要・誤検知の理由(Figma 67px) */
.ev-body .repro.ok > span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 22px; }  /* 3. 直した後 の補足行(Figma は上に間があり、少し大きい) */
.ev-body { max-width: 1140px; display: flex; flex-direction: column; gap: 16px; }
.ev-head .page-head .tools { margin-top: 14px; }
.last-check { font-size: 12px; color: var(--muted); }
.section-h { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.section-h h2 { font-size: 16px; }
.section-h span { font-size: 12px; color: var(--muted); }

/* タブ(設定) */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { display: inline-flex; align-items: center; padding: 10px 14px; color: var(--ink-2); text-decoration: none; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--accent); }
.tabs a.on { color: var(--accent); font-weight: 700; border-bottom-color: var(--accent); }

/* 絞り込みのチップ */
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip { font: inherit; font-size: 13px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: 999px; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
a.chip { text-decoration: none; }
.chip b { font-weight: 400; color: var(--muted); }
.chip:hover { background: var(--btn2-hover); }
.chip.on { background: var(--fill); border-color: var(--fill); color: var(--on-accent); }
.chip.on b { color: var(--on-accent); opacity: .8; }
select.chip { width: auto; max-width: 170px; height: 34px; border-radius: 999px; padding: 0 30px 0 14px; font-size: 13px; background-position: right 10px center; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* 指標 */
.kpi { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; box-shadow: var(--shadow); min-width: 0; }
a.kpi:hover { box-shadow: inset 0 0 0 1px var(--accent-line); }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi .v { font-size: 28px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; font-family: var(--num); }
.kpi .v small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi .v.t-ok { color: var(--ok); }
.kpi .v.t-bad { color: var(--crit); }

/* 表 */
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; background: var(--box); border-bottom: 0; }
thead th:first-child { border-radius: 8px 0 0 8px; }
thead th:last-child { border-radius: 0 8px 8px 0; }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
/* 表のセルの .nowrap(日時など)は表の折り返しの規則より強く(AI の出来事の日時が短い行に折れない)。
   カードの表(1100px 以下)では、先頭(全幅)以外は下の .cardtbl の規則でふつうに折る */
.tbl td.nowrap { white-space: nowrap; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--box); }
tr.sel td { background: var(--accent-soft); }
.person { display: flex; gap: 10px; align-items: center; min-width: 0; }
.person > div { min-width: 0; }
.person b { font-weight: 500; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.person small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.list-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.list-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-row .body b { font-weight: 600; }

/* 段階(登録・テスト・はじめの設定) */
.steps-pills { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.steps-pills .st { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps-pills .st .n { width: 22px; height: 22px; border-radius: 50%; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
.steps-pills .st.cur { box-shadow: inset 0 0 0 1px var(--accent); border-color: var(--accent); font-weight: 600; }
.steps-pills .st.cur .n { background: var(--accent); color: var(--on-accent); }
.steps-pills .st.done { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.steps-pills .st.done .n { background: var(--ok); color: #fff; }
.steps-pills .st .n svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
a.st { text-decoration: none; }

/* セキュリティサイクル */
.cycle { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; }
.cycle .arr { align-self: center; color: var(--muted); }
.cycle .c { flex: 1 1 0; min-width: 118px; background: var(--box); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.cycle .c .n { font-size: 11px; color: var(--muted); }
.cycle .c b { font-size: 13px; }
.cycle .c span { color: var(--muted); }
.cycle .c.cur { background: var(--accent-soft); }
.cycle .c.cur .n { background: var(--accent); color: var(--on-accent); border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; }
.cycle .c.cur span, .cycle .c.cur b { color: var(--accent); }
.cycle .c.soon { background: transparent; border: 1px dashed var(--line-strong); }
.cycle.chipsmode .c { flex: none; min-width: 0; flex-direction: row; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 12px 5px 6px; }
.cycle.chipsmode .c .n { background: var(--paper); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-size: 10px; }
.cycle.chipsmode .c.cur .n { background: var(--accent); color: var(--on-accent); }
.flow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.flow span { background: var(--box); border-radius: 999px; padding: 4px 10px; }
.flow span.ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.flow i { font-style: normal; color: var(--muted); }

/* 健全度 */
.health { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.ring { position: relative; width: 132px; height: 132px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .v { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .v b { font-size: 38px; line-height: 1; font-family: var(--num); }
.ring .v span { font-size: 11px; color: var(--muted); }
.ring.sm { width: 104px; height: 104px; }
.ring.sm .v b { font-size: 30px; }
.bars { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.bars .b { display: grid; grid-template-columns: 1fr 100px 64px; gap: 10px; align-items: center; }
.bars .b .t { height: 7px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.bars .b .t i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bars .b .t i.g { background: var(--ok); }
.bars .b .t i.r { background: var(--crit); }
.bars .b .n { font-family: var(--mono); font-size: 12px; text-align: right; }
.segbar { display: flex; gap: 6px; }
.segbar i { width: 28px; height: 5px; border-radius: 3px; background: var(--soft); }
.segbar i.on { background: var(--ok); }
.meter { height: 7px; border-radius: 4px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.meter i.g { background: var(--ok); }

/* 記録(時間の流れ) */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.timeline li { display: grid; grid-template-columns: 56px 12px 1fr; gap: 8px; align-items: baseline; }
.timeline time { color: var(--muted); font-size: 12px; }
.timeline .d { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); align-self: center; }

/* コード(修正案の差分) */
pre.code { margin: 0; background: var(--code-bg); color: var(--code-ink); border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 12px; line-height: 1.7; overflow-x: auto; white-space: pre; }
pre.code .add { display: block; background: var(--code-add); color: #9ff0c3; margin: 0 -16px; padding: 0 16px; }
pre.code .del { display: block; }
.repro { background: var(--box); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.repro b { display: block; color: var(--crit); font-family: var(--mono); font-size: 13px; margin-top: 4px; }
.repro.ok { background: var(--ok-bg); border-color: var(--ok-line); }
.repro.ok b { color: var(--ok); }

/* ボード(問題) */
.board { display: grid; grid-template-columns: repeat(7, minmax(168px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.lane { background: var(--soft); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; }
.lane__h { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 0; font-size: 13px; font-weight: 700; }
.lane__h .n { min-width: 22px; height: 22px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; font-size: 11px; font-weight: 500; }
.lane.ok .lane__h > span:first-child { color: var(--ok); }
/* 検証ボードの 4 つの状態(問題/再テスト/直った/対応しない。F3):パソコンでは列の上にまとめて、スマホ・タブレットでは見ている列の上に */
.board-state { padding: 0 4px 6px; border-bottom: 2px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.lane__state { display: none; }
.icard { background: var(--paper); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); font-size: 13px; box-shadow: var(--shadow); }
.icard:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.icard .k { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.icard b { font-weight: 600; line-height: 1.5; }
.icard .where { font-family: var(--mono); font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.icard .st { font-size: 12px; color: var(--muted); }
.icard .st.g { color: var(--ok); }

/* 対応事項:種類ごとのまとまり */
.fgroup__h { display: flex; align-items: center; gap: 12px; background: var(--soft); padding: 10px 12px; border-radius: 12px; margin-top: 6px; }
.fgroup__h b { flex: 1; font-weight: 700; }
.fitem { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 10px; }
.fitem:hover { background: var(--box); }
.fitem.sel { background: var(--accent-soft); }
.fitem .body { flex: 1; min-width: 0; }
.fitem .body b { font-weight: 500; display: block; }
.fitem .body small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.fitem .body small .mono { margin-right: 8px; }
.fitem .acts { display: flex; gap: 4px; align-items: center; }
.bulkbar { position: sticky; top: 8px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #494fdf; color: #fff; border-radius: 14px; padding: 10px 14px; }
.bulkbar .btn { background: rgba(255, 255, 255, .08); border: 0; color: inherit; }
.bulkbar .btn.pri { background: #fff; color: #494fdf; }
.bulkbar .btn.end { background: transparent; }
.fitem__go { border: 0; background: none; color: var(--faint); padding: 4px; display: inline-grid; place-items: center; cursor: pointer; }
.fitem__go svg { width: 14px; height: 14px; }
.bulkbar .end { margin-left: auto; }
body.bare .shell { grid-template-columns: minmax(0, 1fr); }
body.bare .side, body.bare .main > .top, body.bare .main > .strip, body.bare .main > .alert { display: none !important; }
body.bare .main { padding: 0 0 40px; }
.vendor-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 8px 16px; background: var(--ink); color: var(--paper); font-size: 13px; }
.vendor-bar .btn { background: transparent; border-color: currentColor; color: inherit; }
.vendor-wrap { width: min(1078px, calc(100% - 32px)); margin: 0 auto; padding-top: 6px; display: flex; flex-direction: column; gap: 16px; }
.vendor-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.vendor-title { font-size: 19px; }
.vendor-form { max-width: 320px; }
@media (max-width: 760px) { .vendor-grid { grid-template-columns: minmax(0, 1fr); } }

/* 右のドロワー(詳細) */
.drawer-back { position: fixed; inset: 0; z-index: 40; }
.drawer { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper); box-shadow: var(--shadow-lg); padding: 20px 20px 32px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; animation: slidein .18s ease-out; }
@keyframes slidein { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer__close { position: absolute; top: 14px; right: 14px; border: 0; background: none; color: var(--accent); cursor: pointer; padding: 4px; }
.drawer h2 { font-size: 18px; padding-right: 30px; }
.drawer .empty-side { color: var(--muted); }
/* 広い画面ではドロワーをページに重ねず、本文をドロワーの左に寄せる(Figma どおり) */
@media (min-width: 1281px) {  /* 詳細を横に並べるのは広い画面だけ(1280px 以下は重ねて表示。一覧が細くなりすぎない) */
  .drawer { width: 424px; }
  body.has-drawer .drawer-back { display: none; }
  body.has-drawer .main > :not(.top) { margin-right: 426px; }
  body.has-drawer .page-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  body.has-drawer .fsplit { grid-template-columns: minmax(0, 1fr); }
  body.has-drawer .fpanel { display: none; }
  body.has-drawer .ftools__q { margin-left: 0; }
}
.danger-zone { border: 1px solid var(--crit); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.danger-zone b { color: var(--crit); font-size: 13px; }
.danger-zone span { font-size: 12px; color: var(--muted); flex: 1; }

/* ダイアログ */
dialog.modal { width: min(560px, calc(100vw - 24px)); border: 0; border-radius: 18px; padding: 22px 24px; background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); max-height: calc(100vh - 40px); overflow-y: auto; }
dialog.modal.wide { width: min(680px, calc(100vw - 24px)); }
dialog.modal.m520 { width: min(520px, calc(100vw - 24px)); }
dialog.modal.m520 .box { border: 1px solid var(--line); }
dialog.modal.m520 .radio-card:has(input:checked) { box-shadow: inset 0 0 0 1px var(--ink); }
dialog.modal.foot-line .modal__f { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
dialog.modal::backdrop { background: rgba(0, 0, 0, .52); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) dialog.modal::backdrop { background: rgba(0, 0, 0, .6); } }
:root[data-theme="dark"] dialog.modal::backdrop { background: rgba(0, 0, 0, .6); }
.modal__h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal__h h2 { font-size: 18px; flex: 1; }
.modal__h svg.i { color: var(--accent); }
.modal__h.bad h2 { color: var(--crit); }
.modal__b { display: flex; flex-direction: column; gap: 14px; }
.modal__f { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.modal__f .msg { margin-right: auto; font-size: 12px; color: var(--crit); }
.mail { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; background: var(--paper); }
.mail .from { font-size: 12px; color: var(--muted); }
.mail .subj { font-weight: 700; }
/* 依頼メールのプレビュー:メールの HTML は色を直書きしているので、画面ではトークンの色にそろえる(ダークでも読める) */
.mail .mail-body .m { color: var(--ink) !important; font-family: var(--font) !important; max-width: none !important; font-size: 14px !important; }
.mail .mail-body .m-took { color: var(--muted) !important; }
.mail .mail-body .m-steps { padding-left: 0 !important; list-style-position: inside; }
.mail .mail-body .m-btn { cursor: default; background: transparent !important; border: 1px solid var(--accent) !important; color: var(--accent) !important; }
.mail .mail-body .m-btn.m-pri { background: var(--fill) !important; color: var(--on-accent) !important; }
/* 対応事項:状態チップのあとに区切り線、絞り込みは中身の幅の小さなピル */
.fdiv { width: 1px; height: 22px; background: var(--line-strong); margin: 0 2px; }
select.chip.fpick { field-sizing: content; min-width: 0; max-width: 220px; padding: 0 24px 0 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3E%3Cpath d='M1 2.5h6L4 6z' fill='%238a97ad'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 8px; }
.t-acc { color: var(--accent); margin-left: 8px; }
.pill-btn { border: 0; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.pill-btn:hover { color: var(--accent); }
select.snooze-sel { border: 0; background-color: transparent; color: var(--accent); padding: 0 8px; height: 30px;
  background-image: none; font-weight: 600; }
select.snooze-sel:focus { box-shadow: none; }
.mail pre { white-space: pre-wrap; font-family: var(--font); margin: 0; font-size: 13px; }

/* メニュー(・・・) */
.pop { position: relative; display: inline-block; }
.pop__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; display: flex; gap: 6px; flex-wrap: wrap; width: max-content; max-width: 360px; }
.dots { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.dots:hover { background: var(--soft); }

/* 連携のカード */
.integ-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.integ { background: var(--paper); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.integ__h { display: flex; align-items: center; gap: 10px; }
.integ__h .lg { width: 36px; height: 36px; border-radius: 10px; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.integ__h b { flex: 1; }
/* 連携カード:アイコンは左の列、見出し・説明・ボタンはその右(Figma) */
.integ { position: relative; padding-left: 72px; gap: 8px; }
.integ__h .lg { position: absolute; left: 18px; top: 18px; }
.integ__h { min-height: 24px; }
.dom-row > .mono { width: 300px; flex: none; overflow: hidden; text-overflow: ellipsis; }
dialog.modal.scope-modal .tbl td { padding: 7px 8px; font-size: 13px; }
.dom-row .dom-st { display: inline-flex; align-items: center; gap: 6px; }
/* ドメイン行:Figma は行の間隔 38px・文字は行の上にそろえる・最後の行の下にも線 */
.list-row.dom-row { padding: 9px 0 8px; align-items: flex-start; line-height: 20px; }
.list-row.dom-row + .list-row.dom-row { margin-top: -12px; }
.list-row.dom-row:last-child { border-bottom: 1px solid var(--line); }
.dom-row .dom-st { min-height: 20px; }
/* スマホ幅(QA-1031-003):ドメイン名を 1 行目、状態とボタンを 2 行目へ。ボタンが画面の外に出ないように */
@media (max-width: 560px) {
  .list-row.dom-row { flex-wrap: wrap; row-gap: 6px; }
  .dom-row > .mono { width: auto; flex: 1 1 100%; min-width: 0; }
  .list-row.dom-row + .list-row.dom-row { margin-top: 0; }
}
.integ p { font-size: 13px; color: var(--muted); }
.integ .row { margin-top: auto; }

/* 通知(ベル) */
.notif { position: absolute; z-index: 35; right: 0; top: 74px; width: min(380px, calc(100vw - 32px)); background: var(--paper); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; max-height: 70vh; overflow-y: auto; }
.notif a, .notif div.it { display: flex; gap: 10px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 13px; }
.notif a:hover { background: var(--soft); }
.notif .unread { background: var(--accent-soft); }
.notif time { color: var(--muted); font-size: 11px; white-space: nowrap; margin-left: auto; }
.notif .h { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; font-weight: 700; }

/* 全体の検索 */
.cmdk-list { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; }
.cmdk-list a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14px; }
.cmdk-list a small { color: var(--muted); margin-left: auto; font-size: 12px; }
.cmdk-list a.on, .cmdk-list a:hover { background: var(--accent-soft); }

/* 画面一覧 */
.shell.bare { grid-template-columns: minmax(0, 1fr); }
.shell.bare .side, .shell.bare .top, .shell.bare .strip, .shell.bare .main > .alert { display: none !important; }
.screens-page { width: min(1176px, 100%); margin: 0 auto; padding: 18px 0 24px; display: flex; flex-direction: column; }
.screens-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.screens-head h1 { font-size: 22px; }
.screens-lead { color: var(--muted); font-size: 13px; margin: 20px 0 20px; }
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.screens .card { gap: 0; padding: 19px 20px 9px; }
.screens .card h2 { font-size: 16px; margin-bottom: 5px; gap: 8px; }
.screens .card h2 svg.i { width: 16px; height: 16px; }
.screens .card a { display: block; font-size: 14px; text-decoration: none; padding: 11px 0 11px; line-height: 21px; }

/* そのほか */
.copyrow { display: flex; gap: 8px; align-items: stretch; }
.copyrow code { flex: 1; min-width: 0; background: var(--box); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; font-size: 12px; white-space: pre-wrap; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slots button { font: inherit; font-size: 13px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.slots button.on { background: var(--fill); border-color: var(--fill); color: var(--on-accent); }
.req-tag { font-size: 11px; font-weight: 600; color: var(--crit); background: var(--crit-bg); border-radius: 4px; padding: 0 5px; }
.opt-tag { font-size: 12px; color: var(--muted); font-weight: 400; }
.sub-row { display: grid; grid-template-columns: minmax(0, 59%) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 10px 5px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.sub-row > div:nth-child(2) { align-self: start; padding-top: 1px; }
.sub-row .small { font-size: 12px; line-height: 1.35; }
.sub-row:last-child { border-bottom: 0; }
.sub-row .acts { display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.sub-row b { font-weight: 700; }
.howto summary { cursor: pointer; font-weight: 600; font-size: 13px; padding: 6px 0; }
.howto[open] summary { color: var(--accent); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot-note { font-size: 12px; color: var(--muted); }
.check-matrix td:not(:first-child), .check-matrix th:not(:first-child) { text-align: center; width: 90px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--paper); border-radius: 12px; padding: 10px 16px; font-size: 13px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; min-width: min(240px, calc(100vw - 32px)); max-width: calc(100vw - 32px); }
.toast .btn { background: transparent; color: inherit; border-color: currentColor; height: 28px; }

/* ── レスポンシブ ── */
@media (max-width: 1280px) {
  .board { grid-template-columns: repeat(7, 220px); }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main, .grid-main.wide-side { grid-template-columns: minmax(0, 1fr); }
  .integ-grid, .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell, html[lang="en"] .shell { grid-template-columns: minmax(0, 1fr); }  /* 英語のサイドバー幅(上)より強く */
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; padding: 8px; transform: translateX(-110%); transition: transform .2s; z-index: 50; }
  .side.open { transform: none; }
  .side-back { position: fixed; inset: 0; z-index: 49; background: rgba(15, 31, 61, .4); }
  .menu-btn { display: grid !important; }
  .main { padding: 0 16px 32px; }
  .top { padding: 14px 0 12px; }
  .crumbs { visibility: hidden; }
  .grid2, .grid3, .integ-grid, .choice2 { grid-template-columns: minmax(0, 1fr); }
  .health { grid-template-columns: auto 1fr; }
  .health > .illust { display: none; }
  .steps-pills { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head .tools, .page-head .tools .search-pill { width: 100%; }
  .sub-row { grid-template-columns: minmax(0, 1fr) auto; }
  .sub-row .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .user-chip .nm { display: none; }
}
@media (max-width: 560px) {
  h1 { font-size: 21px; }
  .kpi { padding: 14px; }
  .kpi .v { font-size: 24px; }
  .card { padding: 16px; }
  .auth-card { padding: 22px 18px; }
  .screens { grid-template-columns: minmax(0, 1fr); }
  .fitem { flex-wrap: wrap; }
  .fitem .acts { width: 100%; justify-content: flex-end; }
  .bars .b { grid-template-columns: 1fr 80px 40px; }
  th, td { padding: 10px 8px; }
  .health { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .invite-rows .r { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .side, .top, .bulkbar { display: none !important; } .shell { display: block; } }

/* r3: 継続テスト */
.runs-tbl td { padding: 10px 10px; font-size: 13px; }
.runs-tbl td:first-child { width: 64px; }
.runs-tbl td:nth-child(2) { width: 130px; white-space: nowrap; }
.runs-tbl tbody tr:last-child td { border-bottom: 1px solid var(--line); }
label.check.cont-opt { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cont-cap { margin-top: 14px; }
.cont-cap select { width: 100%; }

/* r3: レポート */
.reports-page { max-width: 1140px; }
.rep-month { padding: 10px 10px; border-bottom: 1px solid var(--line); }

/* home (no apps yet) — Figma r5c02 */
.home-empty { max-width: 1140px; display: flex; flex-direction: column; gap: 16px; }
.home-empty .home-empty-first { max-width: 720px; }

/* app registration step 3 (test scope) — Figma r5c03/r5c04 */
.sc-form > * { max-width: 640px; width: 100%; }
.sc-form { gap: 16px; }
.sc-form .field input.mono:not([type=radio]) { font-family: var(--mono); }
.sc-form .sc-prod { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
dialog.agree-modal ul { font-size: 13px; }

/* r3: 設定 › 連携する */
.set-integ { max-width: 1140px; }
.integ.integ-side { flex-direction: row; align-items: flex-start; gap: 14px; padding: 16px 18px; }
.integ-side > .lg { width: 40px; height: 40px; border-radius: 10px; background: var(--soft); color: var(--ink-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.integ-side .integ__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.integ-side .integ__h { min-height: 24px; }
.integ-side .row { margin-top: 4px; gap: 10px; }

/* settings › company — Figma r5c08 */
.co-form > * { max-width: 640px; width: 100%; }
.co-form .co-domain { font-weight: 400; }

/* row 1 (home, app list, app registration, test running, issues) — Figma r1c01–r1c10 */
.page-head.top { align-items: flex-start; }
.next-acts { gap: 0; }
.next-acts > h2 { margin-bottom: 6px; }
.next-acts .list-row { padding: 9px 0; }
.pill.src { border-radius: 999px; font-weight: 400; font-size: 11px; color: var(--muted); }
.app-tbl { width: fit-content; max-width: 100%; padding: 8px; }
.app-tbl th { padding: 7px 14px; }
.app-tbl td { padding: 8px 14px; vertical-align: top; line-height: 1.45; }
.app-tbl td.r { padding-left: 28px; }
.app-tbl td.r .btn + .btn { margin-left: 4px; }
.reg-card > * { max-width: 640px; width: 100%; }
.reg-card > .row { max-width: none; }
.reg-subs .sub-row { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr) 160px; align-items: start; padding: 6px 10px; line-height: 1.45; }
.reg-subs .sub-row .acts { align-self: center; }
.reg-subs .sub-row .small { font-size: 12px; }
.reg5 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

/* settings › members — Figma r5c09 */
.mem-card { max-width: 1140px; width: 100%; }
.join-row { display: flex; align-items: center; gap: 12px; }
.join-row .jn { width: 200px; flex: none; }
.join-row .grow { flex: 1; }
/* row 7 — Figma r7c01–r7c10 */
dialog.modal:focus { outline: none; }
.kv.kv-dom { grid-template-columns: 80px 1fr; }
.roster-card { max-width: 84%; }
.roster-file { position: relative; overflow: hidden; align-self: flex-start; cursor: pointer; font-size: 14px; color: var(--ink); }
.roster-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.roster-map { display: flex; flex-direction: column; gap: 12px; }
.roster-map .field select { width: 70%; }
.roster-kpis .kpi { box-shadow: none; border: 1px solid var(--line); }
/* Figma r7c02: ファイル名の下は約 35px あけてからボタン。r7c03/r7c04: 表の行は約 37–38px 間隔 */
.roster-card .roster-file { margin-bottom: 25px; }
.roster-card .tbl th, .roster-card .tbl td { padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 760px) { .roster-card { max-width: none; } .roster-map .field select { width: 100%; } }
.contact-grid { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.ann-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.ann-card .ann-illust { width: 140px; height: 100px; grid-row: span 2; align-self: start; }
.ann-card__f { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; align-self: end; }
/* Figma r7c09: 対応事項の一覧はグループの間をあけず 1 枚の続いた一覧(間 4px)、見出し行 46px、ボタンは高さ 26px・11px */
#fList { gap: 4px; }
#fList .fgroup__h { margin-top: 0; min-height: 46px; }
#fList .btn.sm { height: 26px; min-height: 26px; font-size: 11px; padding: 0 10px; }
/* Figma r7c07/r7c08: IDの設定の 3 枚のカードは同じ高さ */
.idcfg-grid { align-items: stretch; }
/* Figma r7c05/r7c06: バッジと「文面を見て送る」はイラストの下、カードの下端に */
.ann-card .ann-illust { grid-row: 1; grid-column: 2; margin-top: 8px; }
.ann-card .ann-card__t { grid-row: 1; grid-column: 1; }
.ann-card .ann-card__f { grid-column: 1 / -1; }
.empty-box { background: var(--box); border-radius: 14px; padding: 32px 16px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* r3: 設定 › 通知 */
.nf-card { max-width: 1140px; padding: 12px; }
.nf-tbl td, .nf-tbl th { padding-top: 10px; padding-bottom: 10px; }
.check-matrix.nf-tbl td:not(:first-child), .check-matrix.nf-tbl th:not(:first-child) { width: 200px; }
.check-matrix.nf-tbl td.sp, .check-matrix.nf-tbl th.sp { width: 70px; }
.nf-tbl tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.stack-start { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* r3: 設定 › プラン */
.plan-grid { max-width: 1140px; align-items: stretch; }
.inv-row.row { display: grid; grid-template-columns: 128px 100px auto; justify-content: start; align-items: center; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.ftools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ftools .toolbar { flex: 0 1 auto; }
.ftools__q { width: 240px; max-width: 100%; margin-left: auto; }
.ftools select.chip { padding-right: 26px; }
.fsplit { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.fpanel { position: sticky; top: 8px; }
.bulkbar__n { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; }
@media (max-width: 1000px) { .fsplit { grid-template-columns: minmax(0, 1fr); } .fpanel { display: none; } }
.apmenu { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.apmenu__row { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.apmenu__x { border: 0; background: none; color: var(--accent); cursor: pointer; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; }
.apmenu__x svg.i { width: 14px; height: 14px; }
.steps-pills.reg-steps { grid-auto-columns: minmax(0, 220px); }
/* ID をはじめる(v1027 r8c02–r8c04) */
.setup-card { max-width: 820px; }
.setup-dom { justify-content: flex-start; }
.setup-dom > .mono { width: 240px; flex: none; }
.setup-opts { display: flex; flex-direction: column; gap: 8px; }
.setup-opts .radio-card { flex-direction: column; align-items: flex-start; gap: 30px; text-align: left; padding: 14px 12px 16px; width: 100%; color: var(--ink); font: inherit; }
.setup-mail { gap: 8px; }
.setup-mail span:not(.from) { font-size: 13px; line-height: 1.6; }
.reg-card .kv { grid-template-columns: 80px 1fr; gap: 8px 28px; }

/* r3: 設定 › 操作履歴 */
.log-card { max-width: 1140px; padding: 12px; }
.log-card td, .log-card th { padding-top: 8px; padding-bottom: 8px; }
.log-card td:first-child, .log-card th:first-child { width: 168px; }
.log-card td:nth-child(2), .log-card th:nth-child(2) { width: 232px; }
.log-card tbody tr:last-child td { border-bottom: 1px solid var(--line); }

/* r3: 抜き打ちテスト */
.sp-w { max-width: 1140px; width: 100%; }
.list-row.sp-asset { padding: 8px 8px; }
.list-row.sp-asset:last-child { border-bottom: 1px solid var(--line); }
.icard .k .pill { font-family: var(--font); }
.icard .where { font-family: var(--font); font-size: 12px; }
.rules-tbl td, .rules-tbl th { padding-top: 8px; padding-bottom: 8px; }
.rules-tbl tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.reg-subs { gap: 0; }
.reg-subs > .meter { margin: 12px 0 6px; }
.reg-subs > .foot-note { margin-top: 12px; }
.list-row.join-row:last-child { border-bottom: 1px solid var(--line); }
.mem-card:has(> .tbl) { padding: 8px 8px 4px; }
.mem-card .tbl td { padding-top: 8px; padding-bottom: 8px; }

/* overview › 今週の更新 — Figma r5c10 */
.list-row.wk-row { border-bottom: 0; padding: 5px 0; }
.wk-row .body.small { font-size: 13px; }
/* 提出のダイアログ(v1027 r8c06):ファイルは文字のない選択エリア。押すとファイルを選べる */
.sb-file .sb-drop { position: relative; display: block; min-height: 40px; cursor: pointer; }
.sb-file .sb-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.sb-file .sb-drop .small { display: block; padding-top: 8px; }
/* アプリ登録 ステップ4・5(v1027 r8c08–r8c10):カードはステッパーの幅まで */
.reg-subs, .reg5 { max-width: 1138px; }
#apRows td.r .dots { margin-left: auto; }
/* Figma r7c10: 外部アプリの表はセルを上ぞろえ、行は詰める(1 行の行で約 51px) */
#apRows td { vertical-align: top; padding-top: 8px; padding-bottom: 8px; }
/* r7c10: 外部アプリの表(Figma: チップは 11px、灰色・緑のチップは標準の太さ、1 行の高さ 50px) */
#apRows .pill { font-size: 11px; line-height: 16px; padding: 2px 6px; }
#apRows .pill:not(.red):not(.sev-critical) { font-weight: 400; }
#apRows .person b, #apRows .person small { line-height: 17px; }
/* 人以外の ID(NHI v2.0-a):取得状況の帯は接続ごとに横に並べる(取れなかったものは 0 件ではなく状態で出す) */
.cov-band { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 4px 0 12px; }
.cov-band .cov { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.cov-band .cov b { font-weight: 600; }
/* テストの準備 › 提出物(v1027 r8c05):行の間はあけない */
.prep-subs { gap: 0; }
.prep-subs > .meter { margin: 12px 0 6px; }
.prep-subs > .foot-note { margin-top: 12px; }

/* lead: お知らせの本文は段落を同じ間隔で(Figma r7c06) */
.mail .mail-paras { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
/* lead: 数のバッジは重要度の赤(ライト #D92D20 / ダーク #FF6B5F) */
.count { background: var(--crit); }
/* lead: セキュリティサイクル(Figma r1c01):カードは同じ幅、近日公開の段は番号を丸で囲み、題名はグレーで細字 */
.cycle:not(.chipsmode) .c { flex: 1 1 0; min-width: 0; }
.cycle:not(.chipsmode) .c b { white-space: nowrap; }
.cycle .c.soon .n { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; font-size: 10px; }
.cycle .c.soon b { color: var(--muted); font-weight: 400; }

/* lead: パンくず(Figma):区切りは灰色の > を広めの間隔で。ホームだけのときは灰色の通常の太さ */
.crumbs .sep { display: inline-flex; color: var(--muted); margin: 0 4px; }
.crumbs .sep svg.i { width: 12px; height: 12px; stroke-width: 2; }
.crumbs .home-only { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
/* lead: ダークの対応事項のまとまりの見出しは紺(Figma) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fgroup__h { background: var(--box); } }
:root[data-theme="dark"] .fgroup__h { background: var(--box); }
/* lead: 入力欄の右下のつまみは出さない(Figma) */
textarea.input, .field textarea { resize: none; }
/* lead: 対応事項の一覧のチェックは、ダークでは暗い箱(Figma r6c02–r6c07)。ほかの画面は白い箱のまま */
.fitem input[type=checkbox], .fgroup__h input[type=checkbox], .bulkbar input[type=checkbox] { color-scheme: inherit; accent-color: #494fdf; }
/* 対応事項:Figma のチップ寸法(高さ32・12px・左右12px・間隔8px)で 1 行に収める */
#fChips { gap: 8px; }
#fChips .chip { height: 32px; font-size: 12px; padding: 0 12px; gap: 5px; }
#fChips select.chip.fpick { padding: 0 20px 0 12px; background-position: right 9px center; background-size: 7px; }
#fChips .fdiv { margin: 0; }
/* 対応事項ドロワーの見出しは Figma どおり 16px */
.drawer h2.fd-title { font-size: 16px; }
/* ×は上のバッジ行にあるので見出しの右余白は不要(Figma r6c06 英語は 1 行に収まる) */
.drawer h2.fd-title { padding-right: 0; }
/* 対応事項でドロワーを開いたとき、一覧カードとドロワーの間は Figma どおり約 48px(r6c04) */
@media (min-width: 1281px) { body.has-drawer .main:has(.fsplit) > :not(.top) { margin-right: 450px; } }

/* ID をはじめる:4 ステップのバーは Figma どおり右端を 64px 手前で止める */
.steps-pills.id-setup-steps { grid-auto-columns: minmax(0, 278px); gap: 9px; }
/* ドメイン行:ドメインは少し字下げ、「つなぐと確認」は行幅の約 45% の位置に灰色の細字で */
.setup-dom { padding: 8px 0 8px 10px; gap: 0; }
.setup-dom > .mono { width: 46%; font-size: 13px; }
.setup-dom .pill:not(.green) { color: var(--muted); font-weight: 400; font-size: 11px; border-radius: 999px; }
html[lang="en"] .setup-dom > .mono { width: 34%; }  /* Figma 英語版は「Verified when connected」が行幅の約 34% の位置 */
/* lead: （デモ）ボタンの再生マークは塗り(Figma) */
svg.i.fill, .btn svg.i use[href="#i-play"] { fill: currentColor; }

/* lead: 提出物・準備の状況の状態は丸いピル、細字(Figma r8c05–r8c10) */
.sub-row .pill, .reg5 .pill, .prep-st .pill { border-radius: 999px; font-weight: 400; padding: 1px 10px; }
/* lead: ダークの対応事項の一覧のチェック:紺の箱に細い枠(Figma r6c02–r6c07) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) :is(.fitem, .fgroup__h, .bulkbar) input[type=checkbox] { appearance: none; width: 16px; height: 16px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line-strong); display: inline-grid; place-items: center; cursor: pointer; }
  :root:not([data-theme="light"]) :is(.fitem, .fgroup__h, .bulkbar) input[type=checkbox]:checked { background: #494fdf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.2 3 3 6-6.4'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: #494fdf; }
}
:root[data-theme="dark"] :is(.fitem, .fgroup__h, .bulkbar) input[type=checkbox] { appearance: none; width: 16px; height: 16px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line-strong); }
:root[data-theme="dark"] :is(.fitem, .fgroup__h, .bulkbar) input[type=checkbox]:checked { background: #494fdf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.2 3 3 6-6.4'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: #494fdf; }

/* lead: ✓ は細いチェックのアイコン+空白(Figma) */
.ck { display: inline-flex; align-items: center; gap: 5px; }
.ck > svg.i { width: 14px; height: 14px; stroke-width: 2; }

/* lead: 選択欄の ▾ はどの画面も太く濃い(Figma。ダークでは白) */
select:not(.chip):not(.snooze-sel) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%230f1f3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E"); background-size: 12px 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) select:not(.chip):not(.snooze-sel) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23eaf0fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] select:not(.chip):not(.snooze-sel) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23eaf0fa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1.5 1.5 4.5 4.5 4.5-4.5'/%3E%3C/svg%3E"); }
/* lead: 申込書の箇条書きは小さい灰色の・、行の間を広く(Figma r5c04) */
dialog.agree-modal ul { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 4px; line-height: 21px; }
dialog.agree-modal ul li::before { content: "•"; color: var(--muted); margin-right: 8px; }
/* lead: 近日公開の段の題名は灰色の中太(Figma r5c07) */
.cycle .c.soon b { font-weight: 600; }
.card__head .cyc-note { display: inline-flex; align-items: center; gap: 4px; }
.card__head .cyc-note svg.i { width: 13px; height: 13px; }
/* lead: 小さい顔(Figma r5c10「優先対応」は約 20px) */
.avatar.sm { width: 20px; height: 20px; font-size: 9px; }
/* fx10 (r2c01/c07/c08/c09/c10): 修正する・本番に反映した・対応不要 の各モーダル、証拠、委託先の画面 */
dialog.modal.fx-modal .radio-card { align-items: flex-start; }
dialog.modal.fx-modal .radio-card input { margin-top: 3px; }
dialog.modal #dyDay { height: 45px; }
dialog.modal .dy-prod { margin-top: 14px; }
dialog.modal select:not(.chip):not(.sm) { padding-left: 16px; }
.ev-body .grid3 { align-items: stretch; }
.vendor-form textarea { min-height: 65px; height: 65px; }
/* r2c10: Figma はラベルと入力欄の間 7px、F-104 とアプリ名の間 約10px、見出しとカードは 6〜10px 上 */
.vendor-form .field { gap: 7px; }
.vendor-app { margin-left: 6px; }
.vendor-form [data-vmsg]:empty { display: none; }
.vendor-wrap { padding-top: 0; gap: 12px; }
/* fx10 (r8c03): Google Workspace をつなぐ の権限の表(Figma: mono 13px、行 37px、ラベル列は折り返す) */
dialog.modal.gw-modal .tbl td { padding: 9px 10px; font-size: 13px; line-height: 18px; }
dialog.modal.gw-modal .tbl td.mono { font-size: 13.4px; white-space: nowrap; width: 1%; }
/* r7c08: ワンクリック操作を有効にする の権限の表(Figma: 行 53px、ラベル列 約232px、mono 13px は上ぞろえ、最後の行の下にも線) */
dialog.modal.en-modal .tbl td { padding: 10px 10px 9px; font-size: 13px; line-height: 17px; vertical-align: top; }
dialog.modal.en-modal .tbl td:first-child { width: 232px; padding-left: 11px; padding-right: 21px; }
dialog.modal.en-modal .tbl td.mono { font-size: 13px; white-space: nowrap; }
dialog.modal.en-modal .tbl tbody tr:last-child td { border-bottom: 1px solid var(--line); }
/* fx10 (r8c08): 日本語の提出物リストは状態の列が左寄り(Figma: 行の左から約 524px)。英語はそのまま */
html:not([lang="en"]) .reg-subs .sub-row { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr) 160px; }

/* UX: 継続テストの画面だけサイドバーを広くしていた(Figma r3c01 が広い版)が、ページを移るたびに幅が変わるので、どの画面も同じ幅にする */

/* lead: サイクルの番号は中太、現在・近日以外は小さい丸の上(Figma r5c07) */
.cycle .c .n { font-weight: 600; }
.cycle:not(.chipsmode) .c:not(.cur):not(.soon) .n { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
/* lead: 申込書の箇条書きの位置(Figma r5c04:・は 9px 左、文字は・の 10px 後) */
dialog.agree-modal ul { margin: 0 0 0 7px; }
dialog.agree-modal ul li::before { margin-right: 5px; }
/* lead: サイドバーのアイコンは Figma と同じ約 20px(文字の位置は 72px のまま) */
.nav a svg.i { width: 18px; height: 18px; stroke-width: 1.6; }
.nav a { gap: 8px; }

/* Revolut 版:絞り込みのチップは枠なし・太字、段階のピルは枠なし(現在は薄い青) */
.chip { border: 0; background: transparent; font-weight: 600; }
.chip.on { background: var(--fill); color: var(--on-accent); }
select.chip { background-color: transparent; }
.steps-pills .st { border: 0; background: var(--box); }
.steps-pills .st.cur { box-shadow: none; background: var(--accent-soft); color: var(--accent); }
.steps-pills .st.done { border: 0; }
.toggle button, .lang-toggle button { border: 0; background: var(--btn2); color: var(--btn2-ink); font-weight: 600; }
.icon-btn, .user-chip { box-shadow: none; }
/* 対応事項のドロワー:許可している外部アプリ(Revolut 版 r9c01) */
.grant-list { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.grant { display: flex; gap: 12px; padding: 14px 12px; align-items: flex-start; }
.grant + .grant { border-top: 1px solid var(--line-strong); }
.grant .body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.grant .body small { color: var(--muted); font-size: 12px; }
.grant__h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.grant__h b { font-weight: 500; }
.grant .row { gap: 4px; flex-wrap: wrap; }
.pill.line { background: transparent; border: 1px solid var(--line-strong); color: var(--ink); }
.pill.line.red { border-color: var(--crit); color: var(--crit); background: transparent; }
.fitem.sel .fitem__go { color: var(--accent); }
.drawer .fd-why h3 { margin: 0; }
.drawer .fd-why p { margin: 6px 0 0; }
.drawer .fd-acts { margin-top: auto; border-top: 1px solid var(--line-strong); padding-top: 16px; display: grid; gap: 10px; }
/* ── Revolut 版の受入確認(1 回目)で見つかった共通の違い ── */
h1 { font-size: 30px; font-weight: 500; }
h2, .card__head h2, .ic-h { font-size: 18px; font-weight: 500; }
.modal__h h2 { font-size: 20px; font-weight: 500; }
.drawer h2.fd-title { font-size: 18px; font-weight: 500; }
/* 表の見出し:地の色なし、下に線だけ */
th { background: none; border-bottom: 1px solid var(--line); }
thead th:first-child, thead th:last-child { border-radius: 0; }
/* ピル・チップは丸く、細め */
.pill { border-radius: 999px; font-weight: 500; padding: 1px 10px; }
/* 「← 問題」のような戻るリンク:太字・下線・文字色 */
.page-head .eyebrow a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* 設定などのタブ:選択中は太字(ダークは灰色のピル)、下線と区切り線なし */
.tabs { border-bottom: 0; gap: 4px; }
.tabs a { border-bottom: 0; margin-bottom: 0; border-radius: 999px; padding: 8px 14px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); font-weight: 700; border-bottom: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs a.on { background: var(--btn2); } }
:root[data-theme="dark"] .tabs a.on { background: var(--btn2); }
/* 検索欄:枠も地もなく、アイコンと文字だけ */
.search-pill input { background: transparent; border: 0; }
/* ドロワー:角の丸いカード、閉じる・スヌーズは文字色 */
.drawer { top: 8px; right: 8px; bottom: 8px; border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: none; }
.drawer__close { color: var(--ink); }
.drawer .snooze-sel { color: var(--ink); text-decoration: underline; }
.drawer .kv { border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding: 12px 0; }
/* デモの操作:白地に破線の枠 */
.btn.gray { background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); }
/* 一括操作のバー:枠つきの白いピル */
.bulkbar .btn { background: transparent; border: 1px solid rgba(255, 255, 255, .6); }
.bulkbar .btn.pri { border-color: #fff; }
.bulkbar .btn.end { border: 1px solid rgba(255, 255, 255, .6); }
/* 大きな数字は中太 */
.kpi .v { font-weight: 500; }
/* サイドバーの選択中は丸いピル */
.nav a { border-radius: 999px; }
/* 灰色・緑の箱に枠なし(問題の詳細・確認方法・ダイアログの中) */
.issue-grid .box, .issue-grid .box.ok, .repro, dialog.modal.m520 .box { border: 0; }
/* 修正案の追加行の緑はコードの箱の内側に収める */
pre.code .add { margin: 0 -6px; padding: 0 6px; border-radius: 4px; }
/* はじめの選択肢のカードは影なし */
.choice { box-shadow: none; }
/* メールの見本:枠なし、二つ目のボタンは灰色の面 */
.mail { border: 0; padding: 4px 0; }
.mail .mail-body .m-btn { background: var(--btn2) !important; border: 0 !important; color: var(--btn2-ink) !important; font-weight: 600; }
.mail .mail-body .m-btn.m-pri { background: var(--fill) !important; color: #fff !important; }
/* 問題のボード:ライトでは列の地を地色より一段濃く(Figma #ededef) */
.lane { background: #ededef; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lane { background: var(--soft); } }
:root[data-theme="dark"] .lane { background: var(--soft); }
/* 言語の切り替えは高さ約 36px */
.lang-toggle button { padding: 7px 16px; font-size: 14px; }
/* キックオフの日時:灰色の面・太字、選んだものは青 */
.slots button { border: 0; background: var(--btn2); color: var(--btn2-ink); font-weight: 600; padding: 8px 16px; }
.slots button.on { background: var(--fill); color: #fff; }
/* デモの操作の ▶ は青 */
.btn.gray svg.i { color: var(--accent); }
/* ログイン・登録のカード、画面一覧、申込書のリンクは青 */
:is(.auth-card a:not(.btn), .screens a:not(.btn), .agree-modal a:not(.btn), a[target="_blank"]:not(.btn)) { color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.auth-card a:not(.btn), .screens a:not(.btn), .agree-modal a:not(.btn), a[target="_blank"]:not(.btn)) { color: var(--accent-ink); } }
:root[data-theme="dark"] :is(.auth-card a:not(.btn), .screens a:not(.btn), .agree-modal a:not(.btn), a[target="_blank"]:not(.btn)) { color: var(--accent-ink); }
/* ダイアログ:幅 520px、角を大きく */
dialog.modal { width: min(520px, calc(100vw - 24px)); border-radius: 24px; }
/* 危険な外部アプリ:危険度は灰色の地に赤い字、危険な権限は薄い赤の面 */
.grant__h .pill.red { background: var(--btn2); color: var(--crit); }
.pill.line.red { background: var(--crit-bg); border-color: var(--crit-bg); }
/* ドロワーの担当・期限の値は普通の太さ */
.drawer .kv dd, .drawer .kv .pill { font-weight: 400; }
/* 危険な操作の枠は薄い赤の面 */
.danger-zone { border: 0; background: var(--crit-bg); }
/* 「…」は灰色の丸 */
.dots { border: 0; background: var(--btn2); color: var(--btn2-ink); }
/* 提出物の行は高さ約 63px、名前は中太 */
.sub-row { padding: 12px 10px 11px; }
.sub-row b { font-weight: 500; }
/* ログイン・登録のカードは内側を広く */
.auth-card { padding: 36px; }
/* ステップの番号は灰色の丸(ライトでも見えるように) */
.steps-pills .st .n { background: var(--line-strong); }
/* ダークの今のステップは明るい紫 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps-pills .st.cur { color: var(--accent-ink); } :root:not([data-theme="light"]) .steps-pills .st.cur .n { background: var(--accent-ink); } }
:root[data-theme="dark"] .steps-pills .st.cur { color: var(--accent-ink); }
:root[data-theme="dark"] .steps-pills .st.cur .n { background: var(--accent-ink); }
/* ID 一覧:名前は下線つき、検索は枠つき */
#idRows .person b { text-decoration: underline; text-underline-offset: 3px; }
#idRows .person b .pill { text-decoration: none; }
.search-pill:has(#idQ) input { background: var(--paper); border: 1px solid var(--line-strong); }
/* 人の詳細のドロワーは画面の端まで(角の丸いカードは対応事項の詳細だけ) */
.drawer:not(:has(.fd-title)) { top: 0; right: 0; bottom: 0; border-radius: 0; border: 0; border-left: 1px solid var(--line-strong); }
.drawer:not(:has(.fd-title)) .kv { border: 0; padding: 0; }
/* 提出物の「必須」は丸いピル */
.sub-row .pill { font-size: 12px; padding: 2px 10px; }
/* 受入確認 2 回目 */
.company-btn .tag { border-radius: 999px; padding: 2px 5px; }
.sso-btn .gl { border-radius: 50%; background: var(--btn2); }
.page-head .pill:not(.red):not(.green):not(.blue):not([class*="sev-"]) { background: var(--btn2-hover); }
.mail { padding: 14px 16px; background: var(--box); border-radius: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .user-chip .avatar.blue { background: var(--accent-ink); }
  :root:not([data-theme="light"]) .chip:not(.on), :root:not([data-theme="light"]) .search-pill input { background-color: var(--btn2); }
  :root:not([data-theme="light"]) .auth-card .btn.link { color: var(--ink); } }
:root[data-theme="dark"] .user-chip .avatar.blue { background: var(--accent-ink); }
:root[data-theme="dark"] .chip:not(.on), :root[data-theme="dark"] .search-pill input { background-color: var(--btn2); }
:root[data-theme="dark"] .auth-card .btn.link { color: var(--ink); }
/* ダークのログイン・登録の盾は明るい紫 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-card .illust .sh { fill: var(--accent-ink); } }
:root[data-theme="dark"] .auth-card .illust .sh { fill: var(--accent-ink); }
/* 対応事項:見出しの行は丸いピル、チェックは角の丸い薄い枠 */
.fgroup__h { border-radius: 999px; }
:is(.fitem, .fgroup__h) input[type=checkbox] { appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); background: var(--paper); display: inline-grid; place-items: center; cursor: pointer; flex: none; margin: 0; }
:is(.fitem, .fgroup__h) input[type=checkbox]:checked { background: #494fdf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.2 3 3 6-6.4'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: #494fdf; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.fitem, .fgroup__h) input[type=checkbox]:not(:checked) { border-color: #4a4d52; background: transparent; } }
:root[data-theme="dark"] :is(.fitem, .fgroup__h) input[type=checkbox]:not(:checked) { border-color: #4a4d52; background: transparent; }
/* 一括操作のバー:白い枠のチェック、件数は普通の太さ */
.bulkbar input[type=checkbox] { appearance: none; width: 18px; height: 18px; border-radius: 5px; margin: 0; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23494fdf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.2 3 3 6-6.4'/%3E%3C/svg%3E") center / 12px no-repeat; border: 0; }
.bulkbar__n { font-weight: 400; }
/* フィルタのチップは 14px */
#fChips .chip, .chip { font-size: 14px; }
/* サイドバーのログアウト:アイコンと文字は左、矢印は右 */
.side .logout { justify-content: flex-start; }
.side .logout .chev { margin-left: auto; }
/* 「必須」は灰色のピルに赤い字。提出物の名前は太め */
.req-tag { background: var(--btn2); color: var(--crit); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.sub-row { padding-top: 13px; padding-bottom: 13px; }
.sub-row b { font-weight: 600; }
/* ダイアログ:見出しとボタンを少し大きく */
.modal__h h2 { font-size: 22px; }
/* 見出しとタブ・ステップの間を詰める */
.page-head { margin-bottom: -6px; }
/* 進み具合の溝はライトでも見えるように */
.meter { background: var(--line-strong); }
/* テストの準備:状態のピルは太字 */
.prep-st .pill { font-weight: 600; }
/* 対応事項の行:期限と依頼するの間をあける */
.fitem .acts { gap: 8px; }
/* カードの見出しの下の説明は灰色 */
.card > h2.ic-h + p.small { color: var(--muted); }
/* アカウントの画面:注記は灰色の普通の太さ、切り替えは小さめ */
.field small.muted { font-weight: 400; color: var(--muted); }
.lang-toggle button { font-weight: 600; }
dialog.modal .lang-toggle button { font-size: 13px; padding: 6px 14px; }
/* 表の行は高さ約 45px、最後の行にも線 */
td { padding-top: 13px; padding-bottom: 13px; }
/* 受入確認 2 回目(続き) */
/* 表の最後の行にも線 */
tbody tr:last-child td { border-bottom: 1px solid var(--line); }
/* 外部アプリの権限:危険なものは赤い枠と薄い赤の面、ほかは灰色の枠 */
.pill.line.red { border-color: var(--crit); background: var(--crit-bg); }
/* ホームの次のアクションのタグ:大きめ、濃い字 */
.pill.src { font-size: 12px; font-weight: 500; color: var(--ink); background: var(--btn2); padding: 2px 10px; }
/* はじめの選択肢の見出しは 17px の中太 */
.choice-h b { font-size: 17px; font-weight: 500; }
/* 送信元の行の上に区切り線 */
p.small.muted:has(+ #autoMsg) { border-top: 1px solid var(--line); padding-top: 10px; }
/* 受入確認 3 回目 */
.sub-row { padding-top: 18px; padding-bottom: 18px; }
.sub-row .pill:not(.green):not(.blue):not(.red) { font-weight: 400; color: var(--muted); }
#apRows .pill { font-size: 12px; line-height: 18px; padding: 3px 10px; }
/* クレジットの選択肢:丸は金額の行にそろえる */
.radio-card { align-items: flex-start; }
.radio-card input[type=radio] { margin-top: 3px; }
/* ダイアログの中の表:行を広く、上ぞろえ。同意の文は小さめ */
dialog.modal td { vertical-align: top; padding-top: 12px; padding-bottom: 12px; }
dialog.modal label.check { font-size: 13px; }
/* メールの見本:箱なし、内側に字下げ */
.mail { background: none; border-radius: 0; padding: 4px 16px; }
/* 見出しの下の重要度(中・低)も灰色のピル */
.page-head .pill.sev-medium, .page-head .pill.sev-low, .page-head .pill.sev-info { background: var(--btn2-hover); }
/* 数字のカードは大きく */
.kpi .v { font-size: 36px; }
/* 健全度の見出しは大きく普通の太さ */
.health .stack > b.row { font-size: 18px; font-weight: 400; }
/* 「…」は細い灰色 */
.dots { color: var(--muted); }
/* 外部アプリの表:危険度「高」は灰色の地に赤 */
#apRows .pill.sev-critical { background: var(--btn2); color: var(--crit); }
/* 表の中の小さいボタンは少し大きく */
td .btn.sm { height: 36px; font-size: 13px; }
/* 連携・取り込みと人事名簿の画面は、右に約 60px の余白(Figma r6c09・r6c10・r7c01・r7c02) */
@media (min-width: 1100px) { body:is([data-page="connect"], [data-page="roster"]) #view { padding-right: 59px; } }
/* 人の詳細のドロワー:左の角は丸く、見出しの顔は 40px */
.drawer:not(:has(.fd-title)) { border-radius: 20px 0 0 20px; }
.drawer:not(:has(.fd-title)) .avatar:first-child { width: 40px; height: 40px; font-size: 14px; }
/* ステップの番号:先の番号はライトでは薄い灰色、ダークでは地なし */
.steps-pills .st:not(.cur):not(.done) .n { background: #f0f0f2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps-pills .st:not(.cur):not(.done) .n { background: transparent; } }
:root[data-theme="dark"] .steps-pills .st:not(.cur):not(.done) .n { background: transparent; }
/* 修正案の追加行は途切れない緑の帯 */
pre.code .add { border-radius: 0; }
/* 「クレジットを追加」などカードの中の主ボタンは 33px の小さめ(Figma r3c07) */
#creditAdd { height: 33px; }
/* 一括操作のバーは丸いピル */
.bulkbar { border-radius: 999px; padding: 8px 10px 8px 16px; }
/* 対応事項の行と見出しのボタンは少し大きく */
:is(.fitem, .fgroup__h) .btn.sm { height: 36px; font-size: 13px; }
/* 「修正後に作成」など灰色のピルの字は灰色 */
.pill:not([class*="sev-"]):not(.red):not(.green):not(.blue):not(.src):not(.warn) { color: var(--muted); }
/* はじめの設定の言語の切り替えも高さ約 36px・太字 */
.toggle button { padding: 7px 16px; font-size: 14px; font-weight: 600; }
/* 健全度のリングは大きく */
.health .ring, .health > svg { width: 120px; height: 120px; }
/* 記録の点は 1 行目の文字にそろえる */
.timeline .d { align-self: start; margin-top: 6px; }
/* 問題のボード:ダークの列の地はほぼ黒、右に余白 */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lane { background: #0a0a0a; } }
:root[data-theme="dark"] .lane { background: #0a0a0a; }
@media (min-width: 1100px) { .board { margin-right: 59px; } }
/* 次のアクションのタグ:同じ幅の列、灰色の字 */
.pill.src { color: var(--muted); min-width: 72px; justify-content: center; }
/* Google・Microsoft の頭文字は灰色の丸に普通の太さ */
.sso-btn .gl { color: var(--muted); font-weight: 400; }
/* 連携のサービスのロゴは丸(Figma r3c04・r6c09) */
.integ__h .lg { border-radius: 50%; }
/* 画面一覧の見出しもほかの画面と同じ 30px(Figma r4c02) */
.screens-head h1 { font-size: 30px; }
/* 検証で残っていた 4 件 */
.reg-subs .sub-row { padding-top: 12px; padding-bottom: 12px; }
.auth-card .field .toggle button { font-weight: 600; }
@media (min-width: 1100px) { .app-tbl { width: calc(100% - 59px); } }
dialog.modal td { padding-top: 16px; padding-bottom: 16px; }
dialog.modal label.check { font-size: 12px; }
/* ダイアログの権限の表:左の列は狭く、長い名前は 2 行に(Figma r8c03) */
dialog.modal td:first-child { width: 170px; }
/* 検証で残っていた項目(2) */
.integ-side > .lg { border-radius: 50%; }
.next-acts .list-row { padding-top: 12.5px; padding-bottom: 12.5px; }
.sso-btn .gl { background: var(--btn2-hover); }
.drawer:not(:has(.fd-title)) .avatar:first-child { font-size: 15px; }
.sb-file .sb-drop { min-height: 24px; }
.sb-file .sb-drop .small { padding-top: 0; }
.screens .card h2 { font-size: 18px; }
.screens .card { padding-bottom: 26px; }
:is(.fitem, .fgroup__h) .btn.sm { font-size: 14px; padding: 0 18px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bulkbar input[type=checkbox], :root:not([data-theme="light"]) .bulkbar input[type=checkbox]:checked { appearance: none; width: 18px; height: 18px; border: 0; border-radius: 5px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23494fdf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.2 3 3 6-6.4'/%3E%3C/svg%3E") center / 12px no-repeat; } }
:root[data-theme="dark"] .bulkbar input[type=checkbox], :root[data-theme="dark"] .bulkbar input[type=checkbox]:checked { appearance: none; width: 18px; height: 18px; border: 0; border-radius: 5px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23494fdf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.2 3 3 6-6.4'/%3E%3C/svg%3E") center / 12px no-repeat; }
/* 検証で残っていた項目(3):古い詳細度の高い指定を上書き */
#fList .btn.sm { height: 29px; min-height: 29px; font-size: 12px; padding: 0 14px; }
dialog.modal:is(.scope-modal, .gw-modal, .en-modal) .tbl td { padding-top: 14px; padding-bottom: 14px; vertical-align: top; }
dialog.modal.gw-modal .tbl td:first-child { width: 212px; }
.app-tbl td.r .btn.sm { padding: 0 17px; }
dialog.modal.scope-modal .tbl td { padding-top: 11px; padding-bottom: 11px; }
dialog.modal.gw-modal .tbl table { table-layout: fixed; }
dialog.modal.gw-modal .tbl td.mono { width: auto; }
/* 側欄のクレジット:残りが大きくても枠からはみ出さない(「/ 1,500」はまとめて次の行へ) */
.credit-box b { white-space: normal; overflow-wrap: anywhere; line-height: 1.3; }
.credit-box b small { white-space: nowrap; }
/* 英語のサイドバー:Figma の狭い幅では長い名前が入らないので、余白を少し詰め、長い名前は 2 行にする(日本語は Figma のまま) */
html[lang="en"] .nav a { padding-left: 14px; gap: 7px; white-space: normal; line-height: 1.25; }
html[lang="en"] .nav a > span { min-width: 0; }
/* 選択中の点は縮めない(長い名前のときに消えないように) */
.nav a.on::after { flex: none; margin-left: auto; }
.nav a { padding-right: 8px; }
.nav a.on > span { min-width: 0; }

/* UX: 長い会社名は … で切る(全文は title)。セキュリティサイクルの長い名前は枠に入らなければ折り返す。ID 一覧の短い列(部署・種類・2段階認証・外部アプリ・最終ログイン)は 1 文字ずつ縦に割らない(狭いときは表を横スクロール) */
.company-btn .nm { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1399px) { .cycle:not(.chipsmode) .c b { white-space: normal; line-break: strict; } }  /* 1440 は Figma どおり 1 行 */
#idRows td:not(:first-child) { white-space: nowrap; }

/* 画面の高さが足りないとき(点数の折り返し・英語の 2 行ラベルなど)、ログアウトがサイドバーの外に出ないよう、メニューだけを縦にスクロールさせる */
.side__in > .nav { flex: 0 1 auto; min-height: 0; overflow: hidden auto; scrollbar-width: none;
  /* 捲軸で幅を取られて文字やハイライトが切れないよう、スクロール範囲を左右の余白まで広げ、捲軸は出さない */
  margin-inline: -14px; padding-inline: 14px;
  /* まだ上下に項目があるときだけ影を出す（スクロール位置に合わせて背景で隠す） */
  background:
    linear-gradient(var(--paper) 30%, transparent) top / 100% 28px no-repeat local,
    linear-gradient(transparent, var(--paper) 70%) bottom / 100% 28px no-repeat local,
    linear-gradient(color-mix(in srgb, var(--ink) 12%, transparent), transparent) top / 100% 10px no-repeat scroll,
    linear-gradient(transparent, color-mix(in srgb, var(--ink) 12%, transparent)) bottom / 100% 10px no-repeat scroll; }
.side__in > .nav::-webkit-scrollbar { display: none; }
.side__in > .credit-box, .side__in > .logout { flex: none; }
/* サイドバーを捲らずに収める：メニューを残りの高さいっぱいに広げ、各行は 40px（Figma）〜28px の間で伸び縮みさせる。クレジットは 3 行に */
.side__in > .spacer { display: none; }
.side__in > .nav { flex: 1 1 0; }
.side__in > .nav .nav__group { display: contents; }
.side__in > .nav a { flex: 1 0 28px; min-height: 0; max-height: 40px; padding-top: 4px; padding-bottom: 4px; }
/* 英語の 2 行のラベルは、行の高さを文字より低くしない(低くすると下の項目に重なる)。入りきらなければメニューが縦にスクロールする */
@media (min-width: 901px) { html[lang="en"] .side__in > .nav a { min-height: min-content; } }
/* 英語:選択中の点は右の余白(8px)の中に置き、文字の幅を取らない(選んだ画面でだけ 2 行になって高さが変わらないように) */
html[lang="en"] .nav a.on::after { position: absolute; right: 3px; top: calc(50% - 2px); margin-left: 0; }  /* スマホ(900px 以下)は 44px の規則のまま */
.side__in > .nav .nav__label { flex: 1 0 30px; max-height: 36px; display: flex; align-items: flex-end; padding: 0 8px 4px; }
.side__in > .credit-box { margin-top: 0; padding: 10px 12px; gap: 1px; }
.credit-box b { font-size: 15px; line-height: 1.35; }
.credit-box b small { font-size: 11px; }
@media (max-height: 860px) {
  .side__in { padding-top: 14px; gap: 8px; }
  .side .brand { padding-bottom: 2px; }
  .company-btn { padding-top: 6px; padding-bottom: 6px; }
  .side .logout { height: 34px; }
}
@media (max-height: 760px) {
  .side__in > .nav .nav__label { flex-basis: 22px; padding-bottom: 2px; }
}
/* UX: サイドバーの左端をそろえる(ロゴ・会社名・見出し・メニューのアイコン・クレジット・ログアウトが 34〜46px とばらばらだったのを、どれも枠から 12px の 1 本の線に) */
.side .brand { padding-left: 12px; padding-right: 12px; }
.side__in > .company-btn, .side__in .company-btn { padding-left: 12px; }
.side__in > .nav .nav__label { padding-left: 12px; }
.side__in > .nav a, html[lang="en"] .side__in > .nav a { padding-left: 12px; }
.side__in > .credit-box { padding-left: 12px; }
.side .logout { padding-left: 12px; }
/* 依頼メールの見本(画面 W3):赤い帯・注記・フッターも画面のトークンの色に(ダークでも読める) */
.mail .mail-body .m-tag { background: var(--crit-bg) !important; color: var(--crit) !important; }
.mail .mail-body .m-note, .mail .mail-body .m-foot { color: var(--muted) !important; }
.mail .mail-body .m-foot { border-top-color: var(--line) !important; }
.mail .mail-body .m-steps { padding-left: 22px !important; list-style-position: outside; }
/* UX: アプリ登録のドメイン確認に、何のための手順か・どこで何をするかの説明 */
.reg-card .reg-help { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 4px; line-height: 1.6; }

/* ── スマホ(ロードマップ:モバイル対応 1 回目・EXPO の来場者が触るところ)──
   原則:日本語が 1〜3 文字ずつ折り返して「縦書き」のようにならないこと。横に並べると狭くなるものは下の行へ回す */
.lang-toggle button, .toggle button { white-space: nowrap; }  /* 「日本語」が縦に折れない */
@media (max-width: 900px) {
  /* 1. iOS は 16px 未満の入力欄でフォーカス時に画面を拡大する */
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; }
  /* 3・14. 指で押せる大きさ(44px)。チェックボックスは 22px にして、ラベルごと押せる余白を取る */
  .btn, .btn.sm, .chip, .lang-toggle button, .toggle button, .tabs a, .menu-btn, .icon-btn, .user-chip, #fList .btn.sm { min-height: 44px; }
  .icon-btn, .fitem__go, .drawer__close, .apmenu__x, button.dots { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
  select.sm, .snooze-sel, .slots button, .pill-btn { min-height: 44px; }
  .toast .btn { min-height: 0; }
  /* スマホ:幅いっぱい。ボタンは文の下の行の右へ(文が細い帯に 1〜2 語ずつ折れない) */
  .toast { left: 16px; right: 16px; transform: none; max-width: none; flex-wrap: wrap; row-gap: 8px; }
  .toast > span { flex: 1 1 100%; }
  .toast > .btn { margin-left: auto; }
  .btn.sm { padding: 0 14px; }
  input[type=checkbox], input[type=radio], :is(.fitem, .fgroup__h, .bulkbar) input[type=checkbox] { width: 22px; height: 22px; }
  label.check, .check { min-height: 44px; align-items: center; }
  /* 4. 隠しているパンくずが場所を取る・キーボードのない端末で ⌘K を出さない */
  .crumbs { height: 0; overflow: hidden; }  /* 見えないまま幅だけ残す(ベルとアカウントを右端に押す) */
  .search-pill kbd { display: none; }
  /* 13. 対応事項の詳細は全画面で(左が切れない) */
  .drawer, .drawer:not(:has(.fd-title)) { inset: 0; width: 100%; border-radius: 0; border: 0; padding: 16px 16px 32px; }
}
@media (max-width: 560px) {
  /* 9. 数字のカードは 2 列のまま、余白と文字を詰めて高さを抑える */
  .grid4 { gap: 10px; }
  .kpi { padding: 12px 14px; gap: 4px; }
  .kpi .v { font-size: 22px; }
  .kpi .v small { display: block; margin: 2px 0 0; font-size: 12px; }
  .kpi .s, .kpi .l { font-size: 11px; line-height: 1.45; }
  /* 11. 一覧の行:見出しを 1 行目の全幅に、ボタンは下の行へ(見出しが縦に細く折れない) */
  .list-row { flex-wrap: wrap; row-gap: 8px; }
  .list-row > .body { flex: 1 1 160px; }  /* 見出しが 160px より細くなるなら、ボタンを下の行へ回す */
}
@media (max-width: 560px) {
  /* 表:日本語は語の途中で折らない(句読点・空白・要素の区切りだけで折る)ので、細い列でも縦に並ばない。
     入りきらなければ表の中だけ横にスクロール(ページははみ出さない)。break-word は最小幅を縮めない */
  .tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { word-break: keep-all; overflow-wrap: break-word; }
  .check-matrix td:not(:first-child), .check-matrix th:not(:first-child),
  .check-matrix.nf-tbl td:not(:first-child), .check-matrix.nf-tbl th:not(:first-child) { width: auto; min-width: 64px; }
  /* ホームのセキュリティサイクル:横 6 段は細すぎるので 2 列 × 3 段に(矢印は出さない) */
  .cycle:not(.chipsmode) { display: grid; grid-template-columns: repeat(2, minmax(min-content, 1fr)); gap: 8px; overflow-x: auto; }
  .cycle:not(.chipsmode) .arr { display: none; }
  .cycle:not(.chipsmode) .c b { white-space: normal; }
  /* 全社へのお知らせ:絵は出さず、見出しを全幅に */
  .ann-card { grid-template-columns: minmax(0, 1fr); }
  .ann-card .ann-illust { display: none; }
  /* 数字・日時・役割は折り返さない */
  .bars .n, .drawer time, .timeline time, td .role, .kv dd .pill { white-space: nowrap; }
}
/* 同意のチェック:「に同意 / する」のように語の途中で折れない(句読点・空白の区切りで折る。1 行に入らない長さのときだけ途中でも折る) */
label.check > span { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  /* 11. 対応事項の行:アドレスは 1 行(はみ出す分は…)、アイコンは出さず、行の高さを抑える。絞り込みの検索は全幅 */
  .fitem { gap: 8px; padding: 10px 8px; }
  .fitem > .avatar { display: none; }
  .fitem .body small .mono { display: block; margin-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ftools__q { width: 100%; margin-left: 0; }
}
@media (min-width: 561px) and (max-width: 1100px) {
  /* タブレット:セキュリティサイクルは 3 列 × 2 段(横 6 段だと長い語が縦に折れる) */
  .cycle:not(.chipsmode) { display: grid; grid-template-columns: repeat(3, minmax(min-content, 1fr)); gap: 8px; overflow-x: auto; }
  .cycle:not(.chipsmode) .arr { display: none; }
  .cycle:not(.chipsmode) .c b { white-space: normal; }
}
@media (max-width: 900px) {
  /* 対応事項の行・グループ・一括操作バーのチェックボックス:ダークモードの指定(詳細度が高い)より強く 22px に */
  :root:not(#_) :is(.fitem, .fgroup__h, .bulkbar) input[type=checkbox], :root:not(#_) :is(.fitem, .fgroup__h, .bulkbar) input[type=checkbox]:checked { width: 22px; height: 22px; }
}
/* 短い言い回し・日時は折り返さない(「に同意 / する」「今日 / 16:44」にならない) */
.nw, .timeline time, .drawer time { white-space: nowrap; }
@media (max-width: 900px) {
  .nav a, .side__in > .nav a { min-height: 44px; max-height: none; flex: none; }  /* サイドメニューのリンクも指で押せる高さ(メニューは縦にスクロール) */
}
@media (max-width: 560px) {
  /* レポート画面のカード(文章が多い)は 1 列に。数字のカード(.kpi)は 2 列のまま */
  .reports-page > .grid4 { grid-template-columns: minmax(0, 1fr); }
  /* 外部アプリの表:アプリ名は 1 行(表の中で横にスクロール。英語で 1 語ずつ折れない) */
  .tbl td:first-child .person b { white-space: nowrap; }
}
/* ── スマホ 2 回目 ──
   6. 表をカードに(ID 一覧・外部アプリ・アプリ・メンバー・共有リンク・接続中のツール・API キー・Webhook・概要の ID 一覧):スマホ・タブレット(1100px 以下)で 1 行 = 1 枚。名前は全幅、ほかの列は小さな見出しつきで 2 列に */
.cl { display: none; }
@media (max-width: 1100px) {
  table.cardtbl, .cardtbl tbody, .cardtbl tr, .cardtbl td { display: block; width: 100%; }
  .cardtbl thead { display: none; }
  .cardtbl tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .cardtbl tr:last-child { border-bottom: 0; }
  .cardtbl tbody tr:last-child td { border-bottom: 0; }
  .cardtbl td { border: 0; padding: 0; min-width: 0; white-space: normal; word-break: normal !important; }  /* カードではふつうに折る(表の keep-all を打ち消す) */
  .cardtbl td:first-child, .cardtbl td[colspan] { grid-column: 1 / -1; }
  .cardtbl td:first-child .person b { white-space: normal; }
  .cardtbl td .nowrap { white-space: normal; overflow-wrap: anywhere; }  /* 長いアプリ名・名前がカードより広くならない(2026-11-10) */
  .tbl .cardtbl td.nowrap:not(:first-child) { white-space: normal; overflow-wrap: anywhere; }  /* 半分の幅のセルは折る(上の .tbl td.nowrap より強く) */
  .cardtbl .cl { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
  /* 操作(右端の列)はカードの下の全幅に。外部アプリの「…」メニューも画面の外に開かない */
  .cardtbl td.r { grid-column: 1 / -1; text-align: right; white-space: normal; }
  .cardtbl td.r .btn { margin: 2px 0 2px 6px; }
  .aptbl td:nth-child(2), .whytbl td:last-child, .memtbl td:nth-child(2) { grid-column: 1 / -1; }  /* 長い値(許可の内容・理由・アドレス)は全幅 */
  .aptbl .apmenu { position: static; width: 100%; box-shadow: none; padding: 8px 0 0; }
  .aptbl .apmenu__row { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
}
@media (max-width: 1100px) {
  /* ID 一覧のカードは値が短いので 3 列。アドレスは 1 行(はみ出す分は…) */
  .cardtbl:has(> #idRows) tr { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; padding: 12px 4px; }
  .cardtbl .person { min-width: 0; }
  .cardtbl .person > div { min-width: 0; }
  .cardtbl .person small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* 8. 問題ボード:スマホ・タブレット(1100px 以下。サイドバーがあると 7 列は入らない)では列の名前をタブにして、選んだ 1 列だけ見せる(パソコンはこれまでどおり 7 列) */
.lane-tabs { display: none; }
@media (max-width: 1100px) {
  .lane-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .lane-tabs::-webkit-scrollbar { display: none; }
  .lane-tabs button { flex: none; white-space: nowrap; min-height: 44px; border: 0; border-radius: 999px; padding: 0 14px; font: inherit; font-size: 14px; background: var(--btn2); color: var(--btn2-ink); cursor: pointer; }
  .lane-tabs button b { font-weight: 500; color: var(--muted); margin-left: 2px; }
  .lane-tabs button.on { background: var(--fill); color: var(--on-accent); }
  .lane-tabs button.on b { color: inherit; }
  .board { display: block; overflow: visible; margin-right: 0; }
  .board > .lane { display: none; min-height: 0; }
  .board[data-show="open"] > [data-lane="open"], .board[data-show="fixing"] > [data-lane="fixing"], .board[data-show="review"] > [data-lane="review"],
  .board[data-show="retest"] > [data-lane="retest"], .board[data-show="fixed"] > [data-lane="fixed"], .board[data-show="deployed"] > [data-lane="deployed"],
  .board[data-show="wontfix"] > [data-lane="wontfix"] { display: flex; }
  .board .lane__h { display: none; }  /* 列の名前と件数はタブに出ている */
  .board > .board-state { display: none; }
  .board .lane__state { display: block; padding: 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
}
/* 10. 設定のタブ:スマホでも 1 行で横にスクロール(3 段に折り返すと文章に見える。D-36)。右端のぼかしで続きがあると分かる */
@media (max-width: 560px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-inline: -16px; padding-inline: 16px 28px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .tabs.at-end { -webkit-mask-image: none; mask-image: none; }
}
/* 横にスクロールするタブ(問題ボード):右端をぼかして「続きがある」と分かるように */
@media (max-width: 1100px) {
  .lane-tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 28px; }
}
@media (max-width: 560px) {
  /* ホームのセキュリティサイクル:2 列では「ペネトレーションテ / スト」のように長いカタカナが途中で折れるので、1 段 1 行(番号・名前・状態)に */
  .cycle:not(.chipsmode) { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cycle:not(.chipsmode) .c { flex-direction: row; align-items: center; gap: 10px; padding: 9px 12px; min-height: 44px; }
  .cycle:not(.chipsmode) .c b { white-space: nowrap; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .cycle:not(.chipsmode) .c > span:last-child { margin-left: auto; text-align: right; white-space: nowrap; flex: none; }
  .cycle:not(.chipsmode) .c .n { flex: none; }
  /* ID の詳細の「対応事項」:「開く」は同じ行に(1 件ごとに 2 行使わない) */
  .drawer .list-row { flex-wrap: nowrap; }
}
@media (max-width: 900px) {
  /* タブレットでも表の列で日本語が縦に並ばない(語の途中で折らない。入りきらなければ表の中だけ横スクロール) */
  .tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { word-break: keep-all; overflow-wrap: break-word; }
}
@media (max-width: 560px) {
  /* 操作履歴の「何をした」:「トライアル開始：14 日間」の「14 / 日間」のように句の途中で折らない(句ごとに折る) */
  .log-card td > span { display: inline-block; }
  /* 「同期：」「操作前の再確認成功：」だけを行末に残さない:値は inline で見出しのすぐ後ろから続け、文節で折る */
  .log-card td > span.lg-v { display: inline; }
  .log-card td > span.lg-k { display: inline; white-space: nowrap; }  /* 見出しと「：」は離さない(inline のままにして、行全体で text-wrap: pretty が効くように) */
  html[lang="ja"] .log-card td > span.lg-v { word-break: auto-phrase; overflow-wrap: anywhere; }
}
/* 問題ボード:タブで選んだ列が 0 件のとき、灰色の帯だけにならないように(パソコンの 7 列表示では出さない) */
.lane-empty { display: none; margin: 4px; }
@media (max-width: 1100px) { .lane-empty { display: block; } }
@media (min-width: 561px) and (max-width: 1100px) {
  /* 横にスクロールする設定のタブ(タブレット・英語で 8 個):右端をぼかして続きがあると分かるように */
  .tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 28px; }
}
@media (max-width: 1280px) {
  /* 横にスクロールする表:端に影を出して、続きがあると分かるように(スクロールしきると影は消える) */
  .card .tbl { background:
      linear-gradient(to right, var(--paper) 30%, transparent) left center / 24px 100% no-repeat local,
      linear-gradient(to left, var(--paper) 30%, transparent) right center / 24px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.14), transparent) left center / 10px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.14), transparent) right center / 10px 100% no-repeat scroll; }
  .card .tbl:has(> table:is(.apptbl, .aptbl, .nhitbl)) { background: none; }  /* カードになる表は影なし(1280px まで) */
}
@media (max-width: 1100px) {
  /* 横向きのタブレット(サイドバーあり)でも、表の列で日本語が縦に並ばない */
  .tbl { overflow-x: auto; }
  th, td { word-break: keep-all; overflow-wrap: break-word; }
}
@media (pointer: coarse) {
  /* iPad など指で操作する端末は、画面の幅にかかわらず 16px(フォーカスで拡大しない) */
  input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px !important; }
}
@media (min-width: 561px) and (max-width: 1399px) {
  /* 1399px までのノート PC(サイドバーあり)でも、セキュリティサイクルは 3 列 × 2 段(横 6 段だと「ペネトレーション / テスト」のように 3 文字だけの行ができる。
     長いカタカナが縦に折れないよう、列は中身の幅より狭くしない) */
  .cycle:not(.chipsmode) { display: grid; grid-template-columns: repeat(3, minmax(min-content, 1fr)); gap: 8px; overflow-x: auto; }
  .cycle:not(.chipsmode) .arr { display: none; }
  .cycle:not(.chipsmode) .c b { white-space: normal; }
}
@media (max-width: 1280px) {
  /* 表の列で日本語が縦に並ばない(語の途中で折らない。入りきらなければ表の中だけ横にスクロール) */
  .tbl { overflow-x: auto; }
  th, td { word-break: keep-all; overflow-wrap: break-word; }
}
@media (max-width: 1100px) {
  .card.app-tbl { width: 100%; align-self: stretch; }  /* アプリ一覧のカードを幅いっぱいに */
  /* 外部アプリのカード:「…」はカードの右上に(1 行使わない) */
  .aptbl tr { position: relative; padding-right: 48px; }
  .aptbl td.r:has(> .dots) { position: absolute; top: 8px; right: 0; width: auto; grid-column: auto; }
}
@media (max-width: 560px) {
  /* ホームの 3 つの数字:1 枚を 1 行(見出し・説明は左、数字は右)にして、縦に 300px 使わない。3 列だと見出しが切れる */
  body[data-page="home"] .grid3 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  body[data-page="home"] .grid3 > .kpi { padding: 10px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; }
  body[data-page="home"] .grid3 > .kpi .v { grid-row: 1 / span 2; grid-column: 2; font-size: 22px; align-self: center; }
  body[data-page="home"] .grid3 > .kpi .s { font-size: 11px; grid-column: 1; }
  /* 対応事項のグループ見出し:見出しは全幅、ボタンは下の行へ(5 文字ずつに折れない) */
  .fgroup__h { flex-wrap: wrap; row-gap: 8px; border-radius: 16px; }
  .fgroup__h > b, .fgroup__h > span:not(.pill), .fgroup__h > .t { flex: 1 1 calc(100% - 40px); }
}
/* 問題ボードのタブ:最後まで横にスクロールしたら右端のぼかしを消す */
.lane-tabs.at-end { -webkit-mask-image: none; mask-image: none; }
@media (min-width: 1101px) and (max-width: 1280px) {
  /* 小さめのノート PC:アプリ一覧(8 列とボタン)と外部アプリ(7 列と「…」)もカードに。ボタンが表の外に隠れない */
  table:is(.apptbl, .aptbl, .nhitbl), :is(.apptbl, .aptbl, .nhitbl) tbody, :is(.apptbl, .aptbl, .nhitbl) tr, :is(.apptbl, .aptbl, .nhitbl) td { display: block; width: 100%; }
  :is(.apptbl, .aptbl, .nhitbl) thead { display: none; }
  :is(.apptbl, .aptbl, .nhitbl) tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  :is(.apptbl, .aptbl, .nhitbl) tr:last-child { border-bottom: 0; }
  :is(.apptbl, .aptbl, .nhitbl) td { border: 0; padding: 0; min-width: 0; white-space: normal; word-break: normal !important; }
  :is(.apptbl, .aptbl, .nhitbl) td:first-child, :is(.apptbl, .aptbl, .nhitbl) td.r { grid-column: 1 / -1; }
  :is(.apptbl, .aptbl, .nhitbl) td.r { text-align: right; }
  :is(.apptbl, .aptbl, .nhitbl) td.r .btn { margin: 2px 0 2px 6px; }
  :is(.apptbl, .aptbl, .nhitbl) .cl { display: block; font-size: 11px; color: var(--muted); margin-bottom: 2px; }
  .card.app-tbl { width: calc(100% - 59px); }
  .aptbl tr { position: relative; padding-right: 48px; }
  .aptbl td.r:has(> .dots) { position: absolute; top: 8px; right: 0; width: auto; grid-column: auto; }
  .aptbl td:nth-child(2) { grid-column: 1 / -1; }
  .aptbl .apmenu { position: static; width: 100%; box-shadow: none; padding: 8px 0 0; }
  .aptbl .apmenu__row { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
}
@media (max-width: 1280px) {
  /* 請求の行:カードが細いとき「PDF」がはみ出さない */
  .inv-row.row { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
}
/* 短い値は折り返さない:最近のテストの結果(「新しい問題 / 0」)、問題カードの場所(「全ペー / ジ」) */
.runs-tbl td { white-space: nowrap; }
.icard .where .mono { display: inline-block; max-width: 100%; vertical-align: bottom; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }  /* 長いパスはカードの外に出さず「…」で切る */
/* 概要の横の棒グラフ:見出し(「外部アプリあり」など)は 1 行、棒が残りの幅を使う */
.bars:has(> .b) { display: grid; grid-template-columns: max-content minmax(48px, 1fr) auto; column-gap: 10px; }
.bars > .b { grid-column: 1 / -1; grid-template-columns: subgrid; }  /* 行ごとではなく表全体で列をそろえる(棒の位置がそろう) */
.bars .b > span:first-child { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1200px) {
  /* レポート画面のカード(文章が多い):小さめのノート PC では 2 列(4 列だと見出しが 5 文字ずつに折れる) */
  .reports-page > .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* 表のアドレス・URL(Webhook の長い URL など):どこでも折って、右端のボタンを表の外に押し出さない */
.tbl td.mono { overflow-wrap: anywhere; word-break: normal; }
@media (max-width: 1100px) {
  .card .tbl:has(> table.cardtbl) { background: none; }  /* 1100px 以下はどのカード表も影なし(1101px 以上は表のままのものに影を残す) */
}
@media (max-width: 1280px) {
  #apRows td { padding-top: 0; padding-bottom: 0; }  /* 外部アプリのカード:表のセルの上下余白を残さない */
}
@media (min-width: 1101px) and (max-width: 1280px) {
  :is(.aptbl, .nhitbl) tr { grid-template-columns: repeat(4, minmax(0, 1fr)); }  /* 外部アプリ・人以外の ID のカードは幅が広いので 4 列(項目が間延びしない) */
}
@media (pointer: coarse) {
  /* 指で操作する端末は、幅にかかわらず小さなアイコンボタンも 44px */
  .icon-btn, .fitem__go, .drawer__close, .apmenu__x, button.dots { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; }
}


/* ===== 1103-fix: shell (batch 2) ===== */
/* Z-1 会社の切り替え:ボタンは会社名を 2 行まで全部見せる。メニューはボタンの真下に付けた枠(線と影)、1 行 1 社 */
.company-sw { position: relative; }
.company-btn { align-items: center; gap: 6px; padding-right: 8px; }
.company-btn > svg.i { flex: none; width: 14px; height: 14px; }
.company-btn .nm { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-weight: 600; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.company-btn.single { cursor: default; }
.company-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1px var(--accent); }
.company-btn[aria-expanded="true"] > svg.i:last-child { transform: rotate(180deg); }
.company-menu { position: absolute; top: calc(100% + 6px); left: 0; right: auto; width: max(100%, 300px); max-height: min(60vh, 420px); overflow-y: auto;
  z-index: 40; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .16), 0 2px 6px rgba(15, 23, 42, .08); }
.company-menu .cm-h { font-size: 11px; font-weight: 700; color: var(--muted); padding: 6px 10px 4px; letter-spacing: .02em; }
.company-menu .cm-it { width: 100%; font: inherit; text-align: left; border: 0; background: none; color: var(--ink); border-radius: 8px; padding: 8px 10px 8px 6px;
  cursor: pointer; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 1px; align-items: center; }
.company-menu .cm-it:hover, .company-menu .cm-it:focus-visible { background: var(--soft); }
.company-menu .cm-it:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.company-menu .cm-it.on { background: var(--accent-soft); cursor: default; }
.company-menu .cm-ck { grid-row: 1; grid-column: 1; color: var(--accent-ink); display: grid; place-items: center; }
.company-menu .cm-ck svg.i { width: 16px; height: 16px; stroke-width: 2.6; }
.company-menu .cm-nm { grid-row: 1; grid-column: 2; font-size: 13px; font-weight: 600; line-height: 1.4; overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; word-break: keep-all; overflow-wrap: anywhere; }  /* 長い名前は 2 行まで(全文は title) */
.company-menu .cm-role { grid-row: 1; grid-column: 3; font-size: 11px; padding: 1px 8px; white-space: nowrap; }
.company-menu .cm-dom { grid-row: 2; grid-column: 2; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-menu .cm-cur { grid-row: 2; grid-column: 3; font-size: 11px; color: var(--accent-ink); font-weight: 600; text-align: right; white-space: nowrap; }
/* A-1 入力欄のすぐ下のエラー */
.field-err { display: block; color: var(--crit); font-size: 12px; font-weight: 500; line-height: 1.5; margin-top: 4px; }
label.check + .field-err { margin: -6px 0 12px 30px; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--crit) !important; box-shadow: 0 0 0 1px var(--crit); }
/* A-7 同意の文:日本語と英語は語順が違うので、どちらかだけ出す */
html[lang="en"] .agree .ag-ja, html:not([lang="en"]) .agree .ag-en { display: none; }
/* A-32 本文へ移動(Tab で最初に出る)・ダークの入力欄の薄い字を読める濃さに */
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fill); color: var(--on-accent); padding: 8px 14px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
#view:focus { outline: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) ::placeholder { color: #8a8f98; opacity: 1; } }
:root[data-theme="dark"] ::placeholder { color: #8a8f98; opacity: 1; }
/* D-13 通知:本文は残りの幅で折り返す(日時は右に 1 行) */
.notif .tx { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.notif .tx .pill { font-size: 11px; padding: 0 6px; }
/* A-28 セキュリティサイクルの名前:語の途中で折らない(<wbr> の所だけで折る。入らないときだけ途中で) */
.cycle .c b { word-break: keep-all; overflow-wrap: anywhere; }
/* A-28 / D-58 白い字の小さな数字・頭文字のコントラスト(4.5:1 以上):件数のバッジは濃い赤、ダークの紫の面は濃い紫 */
.count, .nav a .count { background: #d92d3a; color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .user-chip .avatar.blue, :root:not([data-theme="light"]) .avatar.blue,
  :root:not([data-theme="light"]) .cycle .c.cur .n, :root:not([data-theme="light"]) .cycle.chipsmode .c.cur .n,
  :root:not([data-theme="light"]) .steps-pills .st.cur .n { background: #5b61e0; color: #fff; }
}
:root[data-theme="dark"] :is(.user-chip .avatar.blue, .avatar.blue, .cycle .c.cur .n, .cycle.chipsmode .c.cur .n, .steps-pills .st.cur .n) { background: #5b61e0; color: #fff; }
/* A-29 メンバー:役割の選択・外す */
.memtbl .mem-role { min-width: 120px; width: auto; }
.memtbl td.r { white-space: nowrap; }
.memtbl .btn.link[data-remove] { color: var(--crit); }
/* A-8 / A-9 / A-10 はじめの設定:送信済みの行・欄の下のエラー・戻る・役割の説明。スマホでは絵を出さず、段のピルは 1 行 */
.invite-rows .r { grid-template-columns: minmax(0, 1fr) auto 76px; align-items: center; }  /* 3 列目(送信済み)は全行で幅を取っておき、役割の欄の位置をそろえる */
.invite-rows .r .field-err { grid-column: 1 / -1; margin-top: -2px; }
.invite-rows .r.sent input { color: var(--muted); }
.ob-roles { margin: 0; padding-left: 1.2em; display: grid; gap: 2px; }
.ob-actions { align-items: center; gap: 8px; flex-wrap: wrap; }
.ob-actions .grow { flex: 1; }
.auth-card.ob .choice .small { word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }  /* 「休 / 眠」のように語の途中で折らない。「休眠」だけの行も作らない(行をそろえる) */
@media (max-width: 480px) {
  .auth-card.ob > .illust { display: none; }
  .auth-card.ob .steps-pills { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .auth-card.ob .steps-pills .st { padding: 6px 8px; gap: 6px; font-size: 12px; justify-content: center; }
  .invite-rows .r { grid-template-columns: minmax(0, 1fr) auto; }
  .invite-rows .r input { grid-column: 1 / -1; }
}
/* A-22 / D-37 通知:出来事を 3 つに分けた見出し行、「保存しました」は表の上。スマホでは 1 列目を折り返し、チェックの列を細く(カードからはみ出さない) */
.nf-head { margin-bottom: 6px; min-height: 22px; }
.nf-tbl tr.nf-g th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding-top: 14px; }
@media (max-width: 560px) {
  .nf-tbl { width: 100%; table-layout: fixed; }
  .nf-tbl th:first-child, .nf-tbl td:first-child { width: auto; white-space: normal; word-break: normal; overflow-wrap: anywhere; }
  .check-matrix.nf-tbl td:not(:first-child), .check-matrix.nf-tbl th:not(:first-child) { width: 56px; min-width: 0; text-align: center; padding-left: 4px; padding-right: 4px; }
  .check-matrix.nf-tbl .sp { width: 0; padding: 0; border: 0; }  /* display:none だと固定レイアウトで列の幅だけ残る */
  .nf-tbl tr.nf-g th { width: auto; text-align: left; }
}
/* D-37 / D-38 操作履歴:誰が の下に薄い補足(アドレス・自動の理由)。640px 以下は 1 件を「日時・誰が」と「何をした」(全幅)の 2 段に */
.log-card .lg-sub { display: block; line-height: 1.4; }
/* 操作履歴のメールアドレス:途中で折らない(1 つのまとまりで次の行へ送る。1 行に入りきらない長いアドレスだけ中で折る) */
.log-card .lg-addr { display: inline-block; max-width: 100%; word-break: normal; overflow-wrap: anywhere; vertical-align: top; }
@media (max-width: 640px) {
  .log-card table, .log-card tbody, .log-card tr, .log-card td { display: block; width: auto !important; }
  .log-card thead { display: none; }
  .log-card tr { padding: 10px 4px; border-bottom: 1px solid var(--line); }
  .log-card td { border: 0 !important; padding: 0 !important; }
  .log-card td:nth-child(1), .log-card td:nth-child(2) { display: inline-block; vertical-align: top; margin-right: 10px; font-size: 12px; }
  .log-card td:nth-child(2) .lg-sub { display: inline-block; margin-left: 6px; }
  .log-card td:nth-child(3) { margin-top: 4px; word-break: normal; overflow-wrap: anywhere; }
  /* 「…記録 9 件」の「9 件」だけが次の行に落ちないよう、行の長さをそろえる(6 行までの記録。長いものはふつうに折る) */
  html[lang="ja"] .log-card td:nth-child(3) { text-wrap: balance; }
}
/* A-33 / D-56 日本語の文の行末:最後の行に 1〜3 文字だけ残さない(text-wrap: pretty)、語・文節の途中で折らない(auto-phrase)。
   入りきらない長い語だけは途中で折る(break-word は最小幅を縮めないので、横に並んだ要素が細くならない) */
html[lang="ja"] :is(p, li, td, .small, .hint, .lead, .sub, .strip, .alert, .toast > span, .box > span, .field-err, .empty, .list-row b, .radio-card b, .radio-card small) { word-break: auto-phrase; overflow-wrap: break-word; text-wrap: pretty; }
html[lang="ja"] :is(h1, h2, h3) { text-wrap: balance; word-break: auto-phrase; }  /* balance だけだと「アプ／リ」のように語の途中で折る */
/* 上の text-wrap: pretty(td・.small)は折り返しの指定(text-wrap-mode)も wrap に戻すので、.nowrap が効かなくなる
   (AI の出来事の日時「今日 / 15:00」・「会社の / アカウント」が 1280px でも折れた)。表のまま(1101px 以上)では .nowrap を
   それより強く(カードの表では、カードの規則どおり折る) */
@media (min-width: 1101px) { html[lang="ja"] :is(td, span, b, small, div).nowrap { white-space: nowrap; } }
.reports-page .ic-h { word-break: keep-all; overflow-wrap: break-word; }  /* E-32 「セキュリティ状況レポー / ト」にしない(<wbr> の所で折る) */
/* D-43 スマホのメニュー:右上に ×。メニュー・クレジット・ログアウトを 1 つのスクロールにして、最後の項目がクレジットの下に隠れない */
.side__top { display: flex; align-items: center; justify-content: space-between; }
.side-x { display: none !important; }
@media (max-width: 900px) {
  .side-x { display: grid !important; place-items: center; }
  .side__in { overflow-y: auto; overscroll-behavior: contain; }
  .side__in > .nav { flex: none; overflow: visible; margin-inline: 0; padding-inline: 0; background: none; }
  .side__in > .credit-box, .side__in > .logout { flex: none; }
}
/* D-41 連携のカード:使う商品のピル(説明文の後ろに「・ID」と続けない) */
.integ .integ-tag { align-self: flex-start; font-size: 11px; padding: 1px 8px; margin: 2px 0 6px; }
/* D-36 設定のタブ:いまのタブは太字だけでなく灰色のピルでも分かるように(ダークと同じ) */
.tabs a.on { background: var(--paper); }  /* ライトは灰色の地に白いピル。ダークは前の指定(--btn2)のまま */
.tabs a { flex: none; }
/* D-57 ダイアログの右上の ×(どのダイアログも閉じ方が見える)・途中経過は赤でなく薄い色(A-27) */
.modal__x { flex: none; margin-left: auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.modal__x:hover { background: var(--soft); color: var(--ink); }
.modal__x svg.i { width: 18px; height: 18px; color: currentColor; }
.modal__f .msg.progress { color: var(--muted); }
/* A-27 会社を選ぶ:名前とその下の情報の間を詰め、デモの印・ドメインを出す */
.company-pick button { gap: 4px; }
.company-pick button:disabled { cursor: default; opacity: 1; }
.company-pick button:disabled:hover { border-color: var(--line-strong); background: var(--paper); }
.company-pick .cp-h { font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.company-pick .cp-h .pill { font-size: 11px; padding: 0 8px; }
.company-pick .cp-dom { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.company-pick .cp-sso { font-size: 12px; color: var(--warn); }
.company-menu .cm-it.locked { cursor: not-allowed; }
.company-menu .cm-it.locked :is(.cm-nm, .cm-role) { opacity: .55; }
.company-menu .cm-sso { grid-row: 3; grid-column: 2 / 4; font-size: 11px; color: var(--warn); line-height: 1.4; }
@media (max-width: 900px) {  /* スマホのメニュー(260px)の中に収める。ドメインも折り返して読めるように */
  .company-menu { width: 100%; }
  .company-menu .cm-dom { grid-column: 2 / 4; white-space: normal; overflow-wrap: anywhere; }
  .company-menu .cm-cur { grid-row: 3; grid-column: 2 / 4; text-align: left; }
}



/* ===== 1103-fix: Securiy ID screens (batch 3) ===== */
/* 事項のドロワー:どの種類にも手順を出す。対応済み・除外・スヌーズは同じ大きさの小さなボタンでそろえる */
.fd-steps { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 4px; }
.fd-sub { gap: 8px; }  /* スヌーズも select ではなくボタン(R2-14:スマホで select の文字が 16px になり大きく見えた) */
/* 対応事項の行の補足(アプリ名・日数)はメールの次の行に。1280px 未満では空の右パネルを出さず、一覧を広く使う */
.fitem .body .fsub { display: block; }
/* アプリ名はひとかたまりで次の行へ送る。1 行より長い名前だけ中で折り返す(nowrap のままだとスマホで画面より広くなり、横に動いた。2026-11-10) */
.fitem .fsub .nowrap { display: inline-block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 1279px) { .fsplit { grid-template-columns: minmax(0, 1fr); } .fpanel { display: none; } }
/* まとめて操作するバー:#bulk はバーだけを包むので、#bulk 自体を貼り付ける(下のグループを選んでも見える) */
#bulk { position: sticky; top: 8px; z-index: 6; }
#bulk:empty { display: none; }
@media (max-width: 640px) {
  .bulkbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; gap: 8px; }
  .bulkbar__n { grid-column: 1 / -1; }
  .bulkbar .btn.end { display: none; }  /* 解除は左のチェックでできるので、スマホでは省いて低くする */
}
/* 対応事項のチェックは、指で押しやすいよう周りの 44px も押せる範囲にする(見た目の大きさは変えない) */
.fcheck { display: inline-grid; place-items: center; flex: none; cursor: pointer; }
/* スマホの一覧画面:自分の検索欄がある画面では上の全体検索を隠し、絞り込みは 1 行の横スクロールにして一覧を上に寄せる */
@media (max-width: 640px) {
  .page-head.own-q .tools .search-pill { display: none; }
  #idChips, #apChips, #fChips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-right: -16px; padding-right: 16px; }
  #idChips::-webkit-scrollbar, #apChips::-webkit-scrollbar, #fChips::-webkit-scrollbar { display: none; }
  #idChips > *, #apChips > *, #fChips > * { flex: none; }
  .ftools #fChips { flex: 1 1 100%; min-width: 0; }
}
/* 本人への依頼の見本:長い本文でも「送信」が見えるよう下の操作を貼り付け、長い URL は枠の中で折り返す */
dialog.modal.req-modal .modal__f { position: sticky; bottom: -22px; background: var(--paper); padding: 12px 0 22px; margin: 12px 0 -22px; z-index: 1; }  /* 下の余白(22px)ごと覆う */
.mail, .mail .mail-body { overflow-wrap: anywhere; }
/* 人事名簿のファイル選び:ただの文字に見えていたので、点線の枠・アイコン・ボタンの文で「選ぶ・落とす場所」と分かるようにする */
.roster-file.roster-drop { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; text-align: center;
  border: 2px dashed var(--line-strong); border-radius: 14px; background: var(--box); color: var(--ink); }
.roster-drop svg.i { width: 26px; height: 26px; color: var(--accent); }
.roster-drop b { color: var(--accent); }
.roster-drop:hover, .roster-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.roster-drop:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 参加のリクエスト(設定 › メンバー):スマホでは名前・メールをそれぞれ 1 行にし、承認・断るは右にまとめる */
@media (max-width: 640px) {
  .list-row.join-row { flex-wrap: wrap; row-gap: 6px; }
  .join-row .jn, .join-row .mono.grow { flex: 1 1 100%; width: auto; min-width: 0; overflow-wrap: anywhere; }
  .join-row > button:first-of-type { margin-left: auto; }
}
/* 3 段の段階表示(人事名簿など)は、スマホでも 1 行に並べる(2 列だと「3 確認」だけが 2 行目に落ちていた) */
@media (max-width: 900px) { .steps-pills:has(> .st:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 戻るリンク:文字は小さいままで、押せる高さは 44px */
.eyebrow .back-link { display: inline-flex; align-items: center; min-height: 44px; margin: -13px 0; padding-right: 8px; }
/* 人事名簿の確認の表:広い画面は表のまま、1100px 以下(ID一覧と同じカード表示)ではメールと結果の札を 1 行まるごと使う */
.roster-tbl .cl { display: none; }
@media (max-width: 1100px) {
  .roster-tbl .cl { display: block; }
  .roster-tbl td.rs-mail, .roster-tbl td.rs-res { grid-column: 1 / -1; }
  .roster-tbl td.rs-mail .mono { overflow-wrap: anywhere; }
  .roster-tbl .pill { white-space: normal; }
  .roster-prev th, .roster-prev td { white-space: nowrap; }  /* 最初の3行は横にスクロールして見る */
  .roster-kpis .kpi .l { word-break: keep-all; }  /* 言葉の切れ目(wbr)でだけ折る。「ト」だけが次の行に落ちない */
  .roster-card .roster-tbl td { padding: 0; }
}
/* 共有・システム用の人のアイコン(文字の代わり) */
.avatar.av-ic svg { width: 16px; height: 16px; }
.avatar.sm.av-ic svg { width: 12px; height: 12px; }
/* まだ ID がないときの案内(ID一覧・対応事項) */
.empty-ids { display: flex; align-items: center; gap: 24px; }
.empty-ids h2 { margin: 0; }
@media (max-width: 640px) { .empty-ids { flex-direction: column; align-items: flex-start; } }
/* ID を 1件追加:メール欄を広く、見出し付き。狭い画面では 1 列 */
.man-form { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; align-items: end; }
@media (max-width: 640px) { .man-form { grid-template-columns: minmax(0, 1fr); } .man-form .btn { justify-self: start; } }
/* 対応事項の検索:240px では「名前・アプリ・種類でしぼる」が「しぼ…」で切れていた */
.ftools__q { width: 280px; }
/* 記録の時刻(「11/02 18:19」)が 56px に入らず、点の下にもぐっていた */
.timeline li { grid-template-columns: auto 12px 1fr; }
.timeline time { white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px), (pointer: coarse) { .fcheck { min-width: 44px; min-height: 44px; margin: -11px -8px -11px -11px; } }
/* 概要の「あと n 件直すと「良好」になります」:文として折り返す(p なので、スマホで 1 文字だけの行を作らない) */
.health .stack > p.health__t { margin: 0; font-size: 18px; }
.health__t b { font-weight: 400; }
/* 数字のカードの補足(「90日ログインなし 3・一度もログインなし 2・退職者 0」)は、行の長さをそろえて最後の数字だけの行を作らない */
.kpi .s { text-wrap: balance; }
.health__ic { display: inline-flex; vertical-align: -2px; margin-right: 4px; color: var(--accent); }
/* はじめの設定:「すべて見る」で 5 つの段階(済みは ✓)。隠したあとは概要の下に「はじめの設定を表示」 */
.ob-list { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ob-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.ob-n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--ink-2); }
.ob-list li.on .ob-n { background: var(--ok); color: #fff; }
.ob-n svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.ob-list li a { color: var(--accent); font-weight: 600; }
.ob-show { justify-content: center; }
/* サンプルデータを準備している間:押したカードだけ枠を強調し、ほかは押せない見た目に */
.setup-opts .radio-card:disabled { cursor: progress; opacity: .55; }
.setup-opts .radio-card.busy { opacity: 1; border-color: var(--accent); }
.setup-opts .radio-card.busy small { color: var(--accent); }
/* メッセージの見本(メール / Slack / Teams)。チャットは見た目の見本なので、ボタンは押せない */
.msg-card .chips { margin-bottom: 4px; }
.chatmsg { display: flex; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper); font-size: 13px; overflow-wrap: anywhere; }
.chatmsg__av { width: 32px; height: 32px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 700; }
.chatmsg.teams .chatmsg__av { border-radius: 50%; }
.chatmsg__b { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.chatmsg p, .chatmsg ol { margin: 0; }
.chatmsg ol { padding-left: 1.3em; }
.chatmsg__card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line-strong); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 12px; }
.chatmsg .btn { cursor: default; pointer-events: none; }



/* ===== 1103-fix: app protection (batch 4) ===== */
/* C-12 提出物のファイル:選ぶ場所が見えるように(点線の枠と「クリックしてファイルを選ぶ」) */
.sb-file .sb-drop { min-height: 52px; padding: 13px 14px; border: 1.5px dashed var(--line-strong); border-radius: 10px; background: var(--soft); }
.sb-file .sb-drop:hover, .sb-file .sb-drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.sb-file .sb-drop .small { padding-top: 0; color: var(--ink-2); }
.sb-file .sb-drop.has-file .small { color: var(--ink); font-weight: 600; word-break: break-all; }
/* C-15 アプリの登録:誤りのある欄を赤い枠と、その欄の下の文で示す */
.reg-card input[aria-invalid="true"] { border-color: var(--crit); box-shadow: 0 0 0 1px var(--crit); }
.reg-card .field-err:empty { display: none; }
/* C-25 継続テスト:パソコンでは再発防止ルールの表を横にスクロールさせない(「状態」が切れていた)。アプリのチップ */
@media (min-width: 761px) { .rules-tbl td { word-break: normal; } }
.cont-apps { margin: 4px 0 14px; }
/* C-27・D-44 抜き打ちテスト:ホスト名はハイフンで折り返さず、長いときは横にスクロール。最終報告の日は文字の表示 */
.sp-asset .mono { white-space: nowrap; overflow-x: auto; min-width: 0; }
.sp-meta { flex-wrap: wrap; row-gap: 4px; }
.sp-meta > .muted { margin-left: auto; }
/* C-28 答えたお願い(たたんで見返せる) */
.asks-done > summary { cursor: pointer; list-style-position: inside; }
.asks-done[open] > summary { margin-bottom: 10px; }
.asks-done .box + .box { margin-top: 8px; }
.asks-done .ask-answer { white-space: pre-wrap; overflow-wrap: anywhere; }
/* D-44 アプリを守るの画面:折り返したとき最後の行に 1〜2 文字だけ残さない(「…見え／る」「…残りま／す」) */
body:is([data-page="app-list"], [data-page="app-new"], [data-page="app-prep"], [data-page="app-run"], [data-page="issues"], [data-page="issue"],
  [data-page="evidence"], [data-page="continuous"], [data-page="surprise"], [data-page="vendor"]) :is(p, h2, h3, small, dd, li, .hint, .small) { text-wrap: pretty; }
body:is([data-page="issue"], [data-page="evidence"], [data-page="app-new"], [data-page="app-run"]) h1 { text-wrap: balance; }
dialog.modal.fx-modal :is(p, small, .small, b) { text-wrap: pretty; }
dialog.modal.fx-modal .radio-card b, dialog.modal.fx-modal small.t-bad { word-break: keep-all; overflow-wrap: anywhere; }
/* C-32 アプリの登録 4・5 をスマホで 1 列に(名前の列が 40px になり、日本語が縦に並んでいた・5 は横にはみ出していた)。
   4 はテストの準備の画面と同じ並び:名前と状態、その下にボタン */
@media (max-width: 760px) {
  html:not(.x) body .reg-subs .sub-row { grid-template-columns: minmax(0, 1fr) auto; }
  html:not(.x) body .reg-subs .sub-row .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .grid2.reg5 { grid-template-columns: minmax(0, 1fr); }
  .reg5 .btn { white-space: normal; text-align: center; }
  .reg5 .row { flex-wrap: wrap; }
}



/* ===== 1103-fix: employee pages and reports (batch 5) ===== */



/* ===== 1103-fix: round 2 (r2a) ===== */
/* 通知の 1 行・問題のカードの見出し・数字のカードの小さな文・会社のメニュー・ホームのお願い:文節で折り、最後の行に 1〜2 文字だけ残さない */
html[lang="ja"] :is(.notif .tx, .icard b, .kpi .s, .kpi .l, .list-row .body) { word-break: auto-phrase; text-wrap: pretty; }
/* 会社名は「株式会社」の前後(identity.js が <wbr> を入れる)でだけ折る。English の画面でも「QAテスター株式会／社」にしない */
:is(.company-btn .nm, .cm-nm, .company-pick b) { word-break: keep-all; overflow-wrap: anywhere; }
/* カードの表(スマホ):ボタンのない行の右端のセル(自分・オーナーの行)は、空の段を作らない */
@media (max-width: 1100px) { .cardtbl td.r:empty { display: none; } }
/* 継続テストのルールのカード:元の問題の題名は文節で折る(カードの td は word-break: normal なので、中の文字に付ける) */
html[lang="ja"] .rules-tbl td > span:not(.cl):not(.pill) { word-break: auto-phrase; text-wrap: pretty; }
/* はじめの設定のチームの行(スマホ):送信済みの列の幅を全行で取り、役割の欄の幅をそろえる */
@media (max-width: 480px) { .invite-rows .r { grid-template-columns: minmax(0, 1fr) 76px; } }

/* ===== 1103-fix: end ===== */

/* ===== 1104-fix ===== */
/* スキャナのチェック:表をやめて 1 件ずつの行に(スマホで名前の列が縦に折れない) */
.chk-exp { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 16px; font-size: 13px; background: var(--soft); border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }
.chk-list { list-style: none; margin: 0; padding: 0; }
.chk-list > li { padding: 10px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.chk-list > li:last-child { border-bottom: 1px solid var(--line); }
.chk-list .chk-exp { margin: 0; }
.chk-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.chk-head b { font-weight: 600; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.chk-head .pill { flex: none; white-space: nowrap; }
.chk-obs { margin: 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 480px) { .chk-exp { grid-template-columns: minmax(0, 1fr); } }
/* 証拠 ID:1 行に 1 つずつ縦に並べず、折り返して並べる */
.kv dd.ev-ids { display: block; }
/* 問題のボード:長い題名(スキャナから取り込んだもの)は 3 行で切る。全文は詳細と title で見られる */
.icard b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* localhost のアプリの確認:見出しは文節で折る(「ア／ドレス」にしない) */
.reg-card .box b { overflow-wrap: anywhere; min-width: 0; }
html[lang="ja"] .reg-card .box b { word-break: auto-phrase; text-wrap: pretty; }
/* ===== 1104-fix: end ===== */
.id-where span { word-break: keep-all; }
/* ===== 1110-cn-framework:連携・取り込みの一覧(CN-1) ===== */
.catalog-bar { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 8px; }
.catalog-bar .search-pill { max-width: 360px; }
.catalog-group { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.catalog-group[hidden], .integ[hidden] { display: none; }
.catalog-group__h { display: flex; flex-direction: column; gap: 4px; }
.catalog-group__h h2 { font-size: 16px; }
.integ .catalog-found { color: var(--ink); font-weight: 600; }
.integ .catalog-asked { color: var(--ink); align-self: center; }
.integ .catalog-err { color: var(--crit); overflow-wrap: anywhere; }
.integ__h b { min-width: 0; overflow-wrap: anywhere; }
.integ__h .pill { white-space: nowrap; flex: none; }
html[lang="ja"] .integ p, html[lang="ja"] .catalog-group__h p { word-break: auto-phrase; text-wrap: pretty; }
@media (max-width: 640px) { .catalog-bar .search-pill { max-width: none; } .catalog-bar .search-pill input { font-size: 16px; } }
/* ===== 1110-cn-framework: end ===== */
/* データの扱い */
.ai-processing-options { border: 0; padding: 0; margin: 0; min-width: 0; }
.ai-processing-options legend { font-size: 13px; margin-bottom: 12px; }
.ai-processing-options .radio-cards { display: grid; grid-template-columns: 1fr; }
.ai-processing-options .radio-card small { display: block; }
.ai-processing-options .pill { margin-left: 8px; }
.ai-processing-history time small { display: block; }

/* GW-1:接続先 */
.gw-tabs{margin-bottom:24px}
.gw-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}
.gw-stats .card{display:flex;flex-direction:column;gap:8px}
.gw-stats b{font-size:30px}
.gw-empty .steps-pills{margin:24px 0}
.gw-table td{vertical-align:top}
.modal .copyrow{display:flex;gap:12px;align-items:flex-start;margin-bottom:20px}
.modal .copyrow code{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;flex:1;background:var(--soft);padding:14px;border-radius:8px}
@media(max-width:600px){.gw-stats{gap:8px}.gw-stats .card{padding:12px}.modal .copyrow{flex-direction:column}}
/* GW 3 回目のレビュー:タブはボタン(診断の作成)と見分けられる下線の形、確認の一覧は 1 行ずつの格子、社内対象の行 */
.gw-tabs{gap:0;border-bottom:1px solid var(--line);flex-wrap:nowrap;overflow-x:auto}
.gw-tabs .chip{border:0;border-radius:0;background:transparent !important;border-bottom:2px solid transparent;height:40px;color:var(--muted);font-weight:400}
.gw-tabs .chip.on{color:var(--ink);border-bottom-color:var(--accent);font-weight:600}
.gw-notice{margin:0 0 12px;line-break:strict}
.listchecks{display:grid;gap:10px;margin-top:12px}
.listchecks label{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 10px;line-break:strict}
.listchecks label .pill{white-space:nowrap;justify-self:end}
.gw-target .field select,.gw-target .field input{width:100%;min-width:0}
.gw-target__port{flex-wrap:wrap;gap:10px}
.gw-target__port .field{flex:1 1 140px;min-width:0}
#gwPreflightMsg ul{margin:6px 0 0;padding-left:20px}
.gw-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
@media(max-width:600px){.listchecks label{grid-template-columns:auto minmax(0,1fr)}.listchecks label .pill{grid-column:2;justify-self:start}}
/* GW 4 回目のレビュー:操作記録は表を広い左の列(絞り込みは右)。1 列になる幅では絞り込みを上に。開始前の確認の対象のまとまり・確かめること・開始できない理由 */
/* 第 5 回:表を先に。1101px 以上は表の右に絞り込み、それより狭い幅は表の下に畳んだ「絞り込みと書き出し」 */
.gw-audit{grid-template-columns:minmax(0,1fr)}
.gw-audit__filters > summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:8px}
.gw-audit__filters > summary::-webkit-details-marker{display:none}
.gw-audit__filters > summary::after{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:4px;flex:none}
.gw-audit__filters[open] > summary{margin-bottom:12px}.gw-audit__filters[open] > summary::after{transform:rotate(-135deg)}
.gw-audit__filters > summary h2{margin:0}
.gw-audit__filters > .stack{display:grid !important;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));align-items:end}
.gw-audit__filters > .stack > :is(span,.pill){grid-column:1/-1}
@media(min-width:1101px){.gw-audit{grid-template-columns:minmax(0,1fr) minmax(0,280px)}.gw-audit__filters > .stack{display:flex !important;align-items:stretch}}
/* 日本語の td は text-wrap: pretty(上の A-33)で white-space の折り返しが戻るので、nowrap の欄は明示する(カードでは折る) */
html[lang="ja"] td.nowrap{white-space:nowrap}
@media(max-width:1100px){html[lang="ja"] .cardtbl td.nowrap{white-space:normal}}
@media(min-width:1101px){.card .tbl .gw-audit-tbl td.nowrap{white-space:nowrap}}
/* 第 5 回:1101〜1599px は表の右に絞り込みがあって狭いので、時刻の欄を日付と時刻の 2 行に折る(日本語の見出し・名前・操作・処理先は折らない。英語は名前の欄のほかと見出しも折る)。それでも入らない幅は表の中で横に動かす */
@media(min-width:1101px) and (max-width:1599px){.card .tbl .gw-audit-tbl td.nowrap:nth-child(1),html[lang="ja"] .gw-audit-tbl td.nowrap:nth-child(1){white-space:normal}
  html[lang="en"] .card .tbl .gw-audit-tbl td.nowrap:not(:nth-child(2)),html[lang="en"] .gw-audit-tbl th{white-space:normal}}
.gw-groups{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.gw-groups > li{display:flex;flex-direction:column;gap:2px;min-width:0}
.gw-groups .mono{overflow-wrap:anywhere}
.gw-hosts{margin:4px 0 0;padding-left:18px;max-height:220px;overflow:auto}
.listchecks .gw-what{display:block;font-size:12px;line-height:1.5}
.gw-start{flex-wrap:wrap;gap:8px 12px;align-items:center}
.gw-start #pfWhy{flex:1 1 220px;min-width:0;line-break:strict}
.cont-opt__t{display:flex;flex-direction:column;gap:2px;min-width:0}
.gw-audit__filters > .stack > .pill{justify-self:start;align-self:flex-start}
/* GW 6 回目:サイクルの名前(ペネトレーションテストなど)は 1 行。折ると「テスト」など 1〜4 文字の行が残るため。
   入らない幅は .cycle の中で横に動かす(格子の列は名前の幅より狭くしない) */
.cycle .c b { white-space: nowrap !important; }
.cycle:not(.chipsmode) { overflow-x: auto; }
.cycle:not(.chipsmode) .c { min-width: auto; }
/* GW 6 回目:会社名で、前後とも 5 文字以上の折れ目がない名前(identity.js の coName)は 1 行。入らなければ末尾を「…」 */
.co-one { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* GW 6 回目:ホームの一覧の 1 行(「…何度でも / 送れる」)は 2 行の長さをそろえる(最後の行に 1〜4 文字だけ残さない) */
html[lang="ja"] .list-row .body, html[lang="ja"] .list-row .body * { text-wrap: balance; }
/* GW 6 回目:サイクルの小さな文(「修正中 3・修正済み 3」)は 2 行の長さをそろえ、文節で折る(「み3」だけの行にしない) */
html[lang="ja"] .cycle:not(.chipsmode) .c > span:not(.n) { word-break: auto-phrase; text-wrap: balance; }
/* GW 6 回目:修正案の差分は横に動かしても、足した行・消した行の色が行の終わりまで続く(行の幅は中身の幅) */
pre.code .add, pre.code .del { width: max-content; min-width: 100%; }
/* GW 6 回目(第 7 回):問題のボードは 1281px 以上でも列を 220px より狭くしない(入らなければボードの中で横に動く)。
   カードの題名と場所は文節で折り、行の長さをそろえる(1〜4 文字だけの行を残さない) */
@media (min-width: 1281px) { .board { grid-template-columns: repeat(7, minmax(220px, 1fr)); } }
html[lang="ja"] .icard .where { word-break: auto-phrase; text-wrap: balance; }  /* 題名は上の pretty(balance は「API の」だけの 1 行目を作った) */
/* 第 7 回:会社名の 2 行(identity.js の coName が 1 か所だけ折る)。各行は 1 行に収め、入らなければ「…」 */
.co-seg { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
/* 第 7 回:サイクルの丸(chips)が横に入りきらないときだけ、端に影を出して横に動かせることを示す(端まで動かすと消える) */
.cycle.chipsmode {
  background:
    linear-gradient(to right, var(--canvas) 30%, transparent) left / 32px 100% no-repeat local,
    linear-gradient(to left, var(--canvas) 30%, transparent) right / 32px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .18), transparent) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .18), transparent) right / 12px 100% no-repeat scroll;
}

/* 2段階認証(L1) */
.modal__b p { overflow-wrap: break-word; }
.modal__f .msg { text-wrap: pretty; }
@media (min-width: 1100px) { html[lang] .memtbl td:is(:first-child, :nth-child(2)) { min-width: 10em; overflow-wrap: anywhere; } }
.user-chip { max-width: 240px; min-width: 0; }
.user-chip .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mfa-state { margin: 4px 0 8px; }
.mfa-steps { margin: 0 0 12px; padding-left: 1.3em; line-height: 1.8; }
.mfa-qr { display: flex; justify-content: center; margin: 0 0 12px; }
.mfa-qr svg { display: block; width: 100%; max-width: 212px; height: auto; border-radius: 8px; }
.mfa-open { display: none; width: fit-content; margin: 0 auto 12px; }
@media (pointer: coarse) { .mfa-open { display: flex; } }
.mfa-keyrow { margin: 8px 0 12px; }
.mfa-key { display: block; padding: 8px 10px; border-radius: 8px; background: var(--bg-2, rgba(127, 127, 127, .12)); font-size: 12px; overflow-wrap: anywhere; }
.mfa-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 0 0 12px; padding: 12px; border-radius: 8px; background: var(--bg-2, rgba(127, 127, 127, .12)); font-size: 14px; }
/* ===== 1112-hotfix-2 r3: テストする場所の確認 ===== */
/* 前から使っている、まだ確認していないテストする場所:テストは止めないので赤ではなく注意の色 */
.card.warn-line { box-shadow: inset 0 0 0 2px var(--warn); }
.card.warn-line p { margin: 0 0 8px; }
/* 確認の値(securiy-verification=…)は「securiy-」で折らない。「=」のあと(<wbr>)とトークンの中だけで折る */
.kv dd.txt-val { display: block; overflow-wrap: anywhere; word-break: normal; hyphens: none; }
.txt-val .nw { white-space: nowrap; }
.vh-modal .vh-h { font-size: 14px; margin: 14px 0 2px; }
.blockers .btn.sm { margin-left: 6px; vertical-align: baseline; }
/* 会社の切り替えの名前は 1 行にする(2 行にすると「サンプル製作所／株式会社」のように「株式会社」だけが次の行に残る)。
   少し小さく詰めて入れ、それでも入らない長さは … で切る(全文はボタンの title) */
.company-btn .nm { white-space: nowrap; display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: hidden; text-overflow: ellipsis;
  font-size: 12px; letter-spacing: -0.03em; }
.company-btn .nm wbr { display: none; }  /* 1 行のときは「株式会社」の前後の <wbr> で折らない(English の画面は字幅が広く、折れていた) */
html[lang="en"] .rule-sum > span + span { margin-left: 0.3em; }  /* English は文と文のあいだに空白(日本語は詰める) */
/* ===== 1112-hotfix-2 r4 ===== */
/* ダイアログの誤り(日本語)は文節で折り、最後の行に 1〜4 文字だけ残さない */
html[lang="ja"] dialog.modal [data-msg], html[lang="ja"] .field-err { word-break: auto-phrase; text-wrap: pretty; }
/* 会社の切り替えの一覧も 1 行(入らなければ …。全文は title) */
.company-menu .cm-nm { white-space: nowrap; display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.company-menu .cm-nm wbr { display: none; }
/* 範囲の要約などは「・」の項目の中で折らない */
.nw-items > span { white-space: nowrap; }
/* 社員アカウントの事項の「社員アカウント・名前・取り込み元」は 1 行(入らなければ …) */
.icard .id-where { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* セキュリティサイクルの名前は 1 行(「ペネトレーション / テスト」にしない)。入らない幅は枠の中で横に動かす(GW のブランチと同じ) */
.cycle .c b { white-space: nowrap !important; }
.cycle:not(.chipsmode) { overflow-x: auto; }
.cycle:not(.chipsmode) .c { min-width: auto; }
html[lang="ja"] .cycle:not(.chipsmode) .c > span:not(.n) { word-break: auto-phrase; text-wrap: balance; }
/* 会社の切り替えの一覧(狭い画面):役割のピルはドメインの行に移し、名前を広く見せる */
@media (max-width: 560px) {  /* 名前・ドメインはそれぞれ 1 行(…で切る)、役割のピルは自分の小さな行 */
  .company-menu .cm-nm { grid-column: 2 / 4; }
  .company-menu .cm-dom { grid-row: 2; grid-column: 2 / 4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .company-menu .cm-role { grid-row: 3; grid-column: 2; justify-self: start; }
  .company-menu .cm-cur { grid-row: 3; grid-column: 3; text-align: right; }
  .company-menu .cm-sso { grid-row: 4; }
}
/* 委託先のサイドバー:「テストの準備」の下にアプリ名を 1 行(…で切る) */
.nav a .nav-2l { display: flex; flex-direction: column; min-width: 0; }
.nav a .nav-app { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* 確認したホストの一覧(期限切れ・見つからないものは確認し直すボタン) */
.vh-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; }
.vh-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* 申込書(責任の範囲…):English は名前と説明のあいだに空白 */
html[lang="en"] .agree-h > span { margin-left: 0.3em; }
/* 委託先の「直しました」:必須の印 */
.vendor-form .field > span:first-child .req-tag { margin-left: 4px; }
/* ホームの次のアクションの 1 行(問題名など):行の長さをそろえ、最後の行に 1〜4 文字だけ残さない(560px で「送れる」が残っていた) */
html[lang="ja"] .list-row .body { word-break: auto-phrase; text-wrap: balance; }
/* SEC-0 7 回目の審査 8:サイドバーの選んだ項目の点を右の余白に置く(日本語の「連携・取り込み」が 1280 で 7px はみ出していた。English と同じ) */
@media (min-width: 901px) { .nav a.on::after { position: absolute; right: 3px; top: calc(50% - 2px); margin-left: 0; } }

/* CI は識別子と証拠 URL が長い。狭い画面では既存のカード表に合わせる。 */
.ci-console, .ci-console .card, .ci-console .field { min-width: 0; }
.ci-console input, .ci-console select { width: 100%; min-width: 0; box-sizing: border-box; }
.ci-console input[type=checkbox] { width: auto; flex-shrink: 0; }
.ci-console .mono, .ci-console a, .ci-result .mono, .ci-result a, .ci-findings li { overflow-wrap: anywhere; white-space: normal; }
.ci-console .ci-table, .ci-result .ci-table { width: 100%; table-layout: fixed; }
.ci-console .ci-table td, .ci-result .ci-table th, .ci-result .ci-table td { white-space: normal; overflow-wrap: anywhere; }
/* 結果カード単体でも、長い日時・判定ラベルが列の最小幅を広げないようにする。 */
.ci-result .kv { grid-template-columns: fit-content(45%) minmax(0, 1fr); gap: 6px 16px; }
.ci-result .kv > * { min-width: 0; overflow-wrap: anywhere; }
.ci-result .pill { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.ci-period { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) {
  .ci-period { grid-template-columns: minmax(0, 1fr); }
  .ci-console .row { flex-wrap: wrap; }
  .ci-console .btn { max-width: 100%; white-space: normal; }
}

/* 人的入力も狭い画面で識別子・補足を折り返す。 */
.ci-human-item { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; min-width: 0; }
.ci-console textarea { width: 100%; min-width: 0; min-height: 80px; box-sizing: border-box; overflow-wrap: anywhere; }
.ci-human-item .check { display: flex; align-items: flex-start; gap: 8px; }

.ci-reports li { margin-bottom: 1rem; overflow-wrap: anywhere; }

.ci-changes { min-width: 0; overflow-wrap: anywhere; }
.ci-changes .kv dd, .ci-changes .mono { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.ci-changes .check { align-items: flex-start; }

/* CI の結果を先に示し、設定と入力は必要なときに開く。 */
.ci-console { display: flex; flex-direction: column; gap: 18px; }
.ci-console > p:empty, .ci-console > div:empty { display: none; }
.ci-human { display: flex; flex-direction: column; gap: 18px; }
.ci-reports > p:empty, .ci-reports > div:empty, .ci-reports > p[hidden] { display: none; }
.ci-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.ci-card-head h2 { margin: 0; }
.ci-card-head .row { flex-wrap: wrap; gap: 8px; }
.ci-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ci-kpis .v .mono { font: inherit; }
.ci-kpis .v.ci-warn { color: var(--warn); }
.ci-console .steps-pills { min-width: 0; }
.ci-console .steps-pills .st { flex-wrap: wrap; justify-content: center; gap: 6px; padding: 8px; white-space: normal; text-align: center; }
.ci-console .steps-pills .st > .i { flex-shrink: 0; }
.ci-console .steps-pills .st .n { display: none; }
.ci-console .steps-pills .st.done > .i { color: var(--ok); }
.ci-console .card { margin: 0; }
.ci-console .btn { max-width: 100%; white-space: normal; }
.ci-console .row { flex-wrap: wrap; }
.ci-console .kv { grid-template-columns: fit-content(45%) minmax(0, 1fr); }
.ci-console .kv > *, .ci-console .field, .ci-console .pill { min-width: 0; overflow-wrap: anywhere; white-space: normal; }
.ci-console .ci-table th { overflow-wrap: anywhere; white-space: normal; }
.ci-console .ci-table .cl { display: none; }
.ci-fold { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.ci-fold > summary, .ci-settings > summary, .ci-reading > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.ci-fold > summary::after, .ci-settings > summary::after, .ci-reading > summary::after { content: "+"; color: var(--muted); }
.ci-fold[open] > summary::after, .ci-settings[open] > summary::after, .ci-reading[open] > summary::after { content: "−"; }
.ci-fold > summary::-webkit-details-marker, .ci-settings > summary::-webkit-details-marker, .ci-reading > summary::-webkit-details-marker { display: none; }
.ci-fold-body { padding-top: 16px; }
.ci-fold-body form, .ci-settings > form { display: grid; gap: 14px; }
.ci-settings > form { padding-top: 16px; }
.ci-console .check { display: flex; align-items: flex-start; gap: 8px; }
.ci-console .check input { margin-top: 4px; }
.ci-repo-options { display: flex; flex-wrap: wrap; gap: 12px; }
.ci-progress, .ci-check-counts { color: var(--muted); font-size: 13px; margin: 12px 0; }
.ci-alert { border-left: 3px solid var(--crit); background: var(--crit-bg); border-radius: 12px; padding: 16px; margin: 16px 0; }
.ci-alert .ic-h .i { color: var(--crit); }
.ci-alert .ci-fold h2 { font-size: 14px; }
.ci-findings { padding-left: 20px; }
.ci-findings li > span { margin-right: 8px; }
.ci-result-actions { padding-top: 16px; }
.ci-observed { display: inline-flex; align-items: center; gap: 6px; }
.ci-editor[hidden], .ci-secret-notice[hidden] { display: none; }
.ci-editor .ci-human-item { border: 0; margin: 0; padding: 8px; display: grid; gap: 14px; }
.ci-editor .ci-fold { margin: 0; }
.ci-console .ci-editor td { background: var(--soft); }
.ci-secret-notice { margin: 0; }
.ci-reading h3 { margin-top: 20px; }
@media (max-width: 600px) {
  .ci-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ci-console .ci-table, .ci-console .ci-table tbody { display: block; }
  .ci-console .ci-table thead { display: none; }
  .ci-console .ci-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .ci-console .ci-table td { display: block; width: auto; border: 0; padding: 0; min-width: 0; }
  .ci-console .ci-table .cl { display: block; color: var(--muted); font-size: 11px; margin-bottom: 4px; }
  .ci-console .ci-table td.ci-empty-reason { display: none; }
  .ci-console .ci-table tr.ci-editor { grid-template-columns: minmax(0, 1fr); }
  .ci-console .ci-table tr.ci-editor[hidden] { display: none; }
  .ci-card-head { align-items: flex-start; }
  .ci-card-head > .row { width: 100%; }
}
