/* 北斗プラン HP（hokutoplan.co.jp）の雰囲気に合わせた配色
   ブルー #4091bf ／ 文字 #333 ／ 罫線 #ddd ／ アクセント オレンジ #ed702d・ティール #377e7f */
:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --ink: #333333;
  --muted: #777777;
  --line: #dddddd;
  --line-strong: #c8c8c8;
  --brand: #4091bf;
  --brand-dark: #2f7aa6;
  --brand-soft: #eaf3f9;
  --orange: #ed702d;
  --teal: #377e7f;
  --ok: #377e7f;
  --ok-soft: #e6f1f1;
  --warn: #b85a1c;
  --warn-soft: #fdf0e7;
  --err: #c0392b;
  --err-soft: #fbeceb;
  --fill-green: #d7ecb0;
  --fill-blue: #d2e6ff;
  --radius: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: .02em;
}
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
.boot { padding: 48px; text-align: center; color: var(--muted); }

/* ログイン画面：ポータル本体と同じ薄いグレー地＋白いカード、HPのブルーの見出しバー */
.login {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; background: var(--bg);
}
.login-card {
  width: 100%; max-width: 420px; text-align: center; padding: 40px 32px 32px;
  background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--brand);
  border-radius: var(--radius); box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.login-logo { display: block; height: 44px; width: auto; max-width: 100%; margin: 0 auto 28px; }
.login-title {
  font-size: 24px; font-weight: 500; letter-spacing: .08em; color: var(--ink);
  padding-top: 24px; margin-bottom: 10px; position: relative; border-top: 1px solid var(--line);
}
.login-title::before {
  content: ""; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 4px; background: var(--brand);
}
.login-title span { color: var(--brand); font-weight: 700; }
.login-lead { font-size: 13px; color: var(--muted); margin: 0 0 24px; }
.login-card .gbtn { display: flex; justify-content: center; min-height: 44px; }
.login-msg { margin-top: 16px; font-size: 13px; color: var(--err); white-space: pre-wrap; }
.login-foot { margin: 20px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 480px) {
  .login-card { padding: 32px 20px 24px; }
  .login-logo { height: 36px; }
  .login-title { font-size: 21px; }
  .login-lead { font-size: 12px; }
}

/* 上部バー（HPと同じ白地＋黒文字、選択中はブルー） */
.topbar {
  background: #fff; color: #000;
  display: flex; align-items: center; gap: 24px; padding: 0 32px; height: 76px;
  position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand img { height: 38px; width: auto; display: block; }
.brand .app-name { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; white-space: nowrap; }
.topbar nav { display: flex; gap: 8px; flex: 1; justify-content: flex-end; }
.topbar nav a {
  color: #000; text-decoration: none; padding: 8px 16px; font-weight: 700; font-size: 15px; white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.topbar nav a.on, .topbar nav a:hover { color: var(--brand); }
.topbar nav a.on { border-bottom-color: var(--brand); }
.topbar .me { display: flex; align-items: center; gap: 12px; font-size: 13px; white-space: nowrap; color: var(--muted); }
.topbar .me button {
  background: #fff; border: 1px solid var(--line-strong); color: var(--ink); border-radius: 999px; padding: 4px 14px; cursor: pointer; font-size: 12px;
}
.topbar .me button:hover { border-color: var(--brand); color: var(--brand); }

main { max-width: 1180px; margin: 0 auto; padding: 8px 16px 96px; }

/* ページ見出し：HPの「経営ビジョン」と同じく、罫線の上に青いバー＋中央寄せ */
h1 {
  font-size: 26px; font-weight: 500; text-align: center; letter-spacing: .08em;
  margin: 28px 0 8px; padding-top: 28px; position: relative;
  border-top: 1px solid var(--line);
}
h1::before {
  content: ""; position: absolute; top: -3px; left: 50%; transform: translateX(-50%);
  width: 140px; height: 4px; background: var(--brand);
}
h1 .no { color: var(--brand); margin-right: .4em; }
.sub { color: var(--muted); margin: 0 0 28px; text-align: center; }
h2 {
  font-size: 16px; font-weight: 700; margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--brand); line-height: 1.4;
}
.crumb { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line-strong); border-radius: 3px; padding: 8px 10px; background: #fff; min-width: 0;
}
.field textarea { min-height: 120px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; }
input:focus, select:focus, textarea:focus { outline: 2px solid #a9cfe6; outline-offset: 0; border-color: var(--brand); }

/* ボタン：HPの「北斗プランの事業」と同じ丸いブルーのボタン */
.btn {
  border: 1px solid var(--brand); background: #fff; color: var(--brand); border-radius: 999px; padding: 8px 22px; cursor: pointer; white-space: nowrap; font-weight: 700;
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--brand-soft); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand); }
.btn.primary:hover { background: var(--brand-dark); }
.btn.danger { color: var(--err); border-color: #e5b3ad; }
.btn.danger:hover { background: var(--err-soft); }
.btn.small { padding: 4px 14px; font-size: 13px; font-weight: 500; }
.btn:disabled { opacity: .5; cursor: default; }

table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { border-bottom: 1px solid var(--line); padding: 12px 10px; text-align: left; vertical-align: middle; }
table.list th { font-size: 12px; color: var(--ink); font-weight: 700; background: var(--brand-soft); border-bottom: 2px solid var(--brand); }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: #f5f9fc; }
table.list tr.click td:first-child b { color: var(--brand); }
.tag { display: inline-block; font-size: 11px; padding: 1px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); margin-right: 4px; }
.tag.gray { background: #efefef; color: var(--muted); }
.tag.ok { background: var(--ok-soft); color: var(--teal); }
.empty { color: var(--muted); padding: 24px 8px; text-align: center; }

/* ツール一覧 */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tool {
  border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--radius); padding: 18px; background: #fff;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; min-height: 140px; transition: box-shadow .15s;
}
a.tool:hover { box-shadow: 0 4px 14px rgba(64, 145, 191, .18); }
.tool .no { font-size: 13px; color: var(--brand); font-weight: 700; }
.tool .name { font-weight: 700; font-size: 16px; }
.tool .desc { font-size: 12px; color: var(--muted); flex: 1; }
/* 元データ */
.src-group { margin-bottom: 16px; }
.src-title { font-weight: 700; font-size: 13px; color: var(--brand); margin: 4px 0 8px; }
.src { border: 1px solid var(--line); border-left: 4px solid #ccc; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.src.ok { border-left-color: var(--brand); }
.src-head { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.src .drop.small { padding: 10px; margin-top: 8px; font-size: 13px; }
.src .link { color: var(--brand); cursor: pointer; text-decoration: underline; }
.src .pasteBox { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.src .pasteBox[hidden] { display: none; }
.src .pasteBox textarea { width: 100%; min-height: 90px; }
.drop.big { padding: 28px; font-size: 14px; }
.bulk .link { color: var(--brand); cursor: pointer; text-decoration: underline; }
.chk-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 4px 20px; }
.chk-group { margin-bottom: 6px; }
.chk { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 3px 0; font-size: 13px; }
.chk .note { flex-basis: 100%; padding-left: 4px; }
.tag.warn { background: #fff3cd; color: #8a6100; }
.src-individual { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.src-individual > summary { cursor: pointer; font-weight: 700; color: var(--brand); }
.src-manual { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.9; }
.tool.off { background: #fafafa; color: var(--muted); border-top-color: #ccc; }
.tool.off .no { color: var(--muted); }

/* 交通整理員 */
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.drop { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); background: #fbfbfb; }
.drop.on { border-color: var(--brand); background: var(--brand-soft); }
.note { font-size: 12px; color: var(--muted); }
.issues { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.issues li { padding: 6px 12px; border-radius: 3px; font-size: 13px; border-left: 3px solid transparent; }
.issues li.error { background: var(--err-soft); color: var(--err); border-left-color: var(--err); }
.issues li.warn { background: var(--warn-soft); color: var(--warn); border-left-color: var(--orange); }
.issues li.info { background: #f3f3f3; color: var(--muted); border-left-color: #ccc; }
.issues li.ok { background: var(--ok-soft); color: var(--teal); border-left-color: var(--teal); }
.issues li.click { cursor: pointer; }

.people { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 860px) { .people { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.people input { width: 100%; text-align: center; }

.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions .spacer { flex: 1; }
.actions h2 { margin: 0; }
.dirty { color: var(--orange); font-size: 13px; font-weight: 700; }
.actionbar { position: sticky; bottom: 12px; z-index: 5; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }

.grid-wrap { overflow: auto; max-height: 70vh; border: 1px solid var(--line); }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
table.grid th {
  position: sticky; top: 0; background: var(--brand-soft); z-index: 1; font-weight: 700; font-size: 12px; color: var(--ink);
  border-bottom: 2px solid var(--brand); padding: 7px 6px; text-align: center; white-space: nowrap;
}
table.grid td { border-bottom: 1px solid #eee; padding: 2px 4px; text-align: center; white-space: nowrap; }
table.grid tr.route td { border-top: 2px solid var(--line-strong); }
table.grid td.num { text-align: right; font-variant-numeric: tabular-nums; padding-right: 10px; }
table.grid td.span { font-variant-numeric: tabular-nums; }
table.grid td.fill-green { background: var(--fill-green); }
table.grid td.fill-blue { background: var(--fill-blue); }
table.grid input {
  width: 64px; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 3px; text-align: right; font-variant-numeric: tabular-nums;
}
table.grid input.w-note { width: 160px; text-align: left; }
table.grid input.w-sm { width: 48px; }
table.grid input:hover { border-color: var(--line-strong); background: #fff; }
table.grid input:focus { border-color: var(--brand); background: #fff; }
table.grid input.manual { background: var(--warn-soft); border-color: #f0b48c; }
table.grid tr.bad td { background: var(--err-soft) !important; }
table.grid tr.flash td { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: #fff1b8; } to { background: transparent; } }
.x { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 4px 6px; }
.x:hover { color: var(--err); }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #333; color: #fff; padding: 10px 20px; border-radius: 999px; z-index: 50; font-size: 13px; max-width: calc(100vw - 32px);
}
.toast.err { background: var(--err); border-radius: 6px; }

details.help { margin-top: 10px; font-size: 13px; }
details.help summary { cursor: pointer; color: var(--brand); }
details.help ol { margin: 8px 0 0; padding-left: 20px; color: var(--muted); }

@media (max-width: 760px) {
  /* メニューが5つになったので、スマホでは2段目に横いっぱいで並べる（ロゴとログアウトは1段目） */
  .topbar { gap: 6px; padding: 8px 10px 0; height: auto; flex-wrap: wrap; justify-content: space-between; }
  .brand img { height: 22px; }
  .brand .app-name, .topbar .me span { display: none; }
  .topbar nav { order: 3; flex: 1 0 100%; gap: 0; min-width: 0; justify-content: space-between; overflow-x: auto; }
  .topbar nav a { padding: 6px 4px; font-size: 13px; }
  .topbar .me button { padding: 3px 9px; font-size: 11px; }
  main { padding: 4px 12px 80px; }
  h1 { font-size: 21px; }
  .panel { padding: 16px; }
}

/* Q&A・ファイル */
.badge { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; line-height: 18px; text-align: center; vertical-align: 1px; }
.qtabs, .qcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 5px 14px; cursor: pointer; font-size: 13px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.sm { padding: 2px 10px; font-size: 12px; }
.qcard { border-left: 4px solid var(--brand); }
.qhead { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.tag.req { background: #fff3cd; color: #8a6100; }
/* 優先して答えてほしい項目（未回答の一番上） */
.qcard.prio { border-left: 6px solid #d9480f; background: #fff8f2; box-shadow: 0 0 0 1px rgba(217,72,15,.25); }
.tag.prio { background: #d9480f; color: #fff; font-weight: 700; }
.qsec { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-weight: 700; font-size: 15px; color: var(--ink); }
.qsec:first-child { margin-top: 4px; }
.qsec.prio { color: #d9480f; }
.qsec.prio::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #d9480f; }
.qsec-n { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; color: #fff; background: var(--muted); font-size: 12px; line-height: 20px; text-align: center; }
.qsec.prio .qsec-n { background: #d9480f; }
.badge.hot { background: #d9480f; }
.qtitle { margin: 4px 0 6px; font-size: 16px; }
.qbody { margin: 0 0 8px; color: var(--ink); font-size: 13.5px; }
.qopts { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.qopt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
.qopt:hover { border-color: var(--brand); background: var(--brand-soft); }
.qans { background: var(--ok-soft); border-left: 3px solid var(--teal); padding: 8px 12px; margin: 8px 0; font-size: 13.5px; }
.qdone { background: var(--brand-soft); border-left: 3px solid var(--brand); padding: 8px 12px; margin: 8px 0; font-size: 13.5px; }
.files { list-style: none; padding: 0; margin: 8px 0; }
.files li { padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.qadmin { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.badge[hidden] { display: none; }
.bulk-paste { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-top: 10px; }
.bulk-paste textarea { width: 100%; min-height: 80px; }
/* 元データ：図面ごとの枠 */
.dcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; margin-bottom: 8px; }
.dcards.two { grid-template-columns: repeat(auto-fill, minmax(min(380px, 100%), 1fr)); }
.dcard { min-width: 0; border: 1px solid var(--line); border-top: 4px solid #ccc; border-radius: var(--radius); padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.dcard.ok { border-top-color: var(--brand); }
.dcard.part { border-top-color: #e0b100; }
.dcard-head { display: flex; gap: 8px; align-items: center; font-size: 16px; }
.dcard-file { font-size: 12px; color: var(--muted); word-break: break-all; }
.dcard-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }
.dcard-msg { font-size: 12px; background: #f6f9fb; border-radius: 6px; padding: 6px 8px; line-height: 1.6; }
.dcard .warn-text { color: #a15c00; }
.dcard-drop { padding: 14px; font-size: 13px; margin-top: auto; }
.dcard .link { color: var(--brand); cursor: pointer; text-decoration: underline; }
.dcard textarea { width: 100%; min-height: 70px; }
/* 人が入れるもの・窓 */
.mitems { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.mitem { text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; font: inherit; color: inherit; }
.mitem:hover { border-color: var(--brand); box-shadow: 0 2px 10px rgba(64,145,191,.15); }
.mitem .tag { align-self: flex-start; }
.modal-bg { position: fixed; inset: 0; background: rgba(20,30,40,.45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 3vh 16px; overflow-y: auto; }
.modal { background: var(--bg, #f5f7f9); border-radius: 12px; width: min(1180px, 100%); padding: 18px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
body.modal-open { overflow: hidden; }
.modal .actionbar { position: sticky; bottom: 0; }
/* 案件の画面：入れるもの（オレンジ）と出力（青）を色で分ける */
.zone { border-radius: 10px; padding: 18px 20px 20px; margin: 18px 0; border: 2px solid; }
.zone-in { background: #fff8f2; border-color: #f2b48c; }
.zone-out { background: #f1f7fc; border-color: #9cc8e3; }
.zone-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.zone-no { width: 34px; height: 34px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 17px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.zone-in .zone-no { background: var(--orange); }
.zone-out .zone-no { background: var(--brand); }
.zone-title { display: flex; flex-direction: column; line-height: 1.35; }
.zone-title b { font-size: 19px; }
.zone-in .zone-title b { color: #b8541b; }
.zone-out .zone-title b { color: var(--brand-dark); }
.zone-title span { font-size: 12px; color: var(--muted); }
.zone-in .src-title { color: #b8541b; }
.zone-in .dcard.ok { border-top-color: var(--orange); }
.zone-in .mitem:hover { border-color: var(--orange); box-shadow: 0 2px 10px rgba(237,112,45,.15); }
.zone-arrow { text-align: center; color: var(--muted); font-size: 13px; margin: -6px 0; display: flex; justify-content: center; gap: 10px; align-items: center; }
.zone-arrow span { color: var(--brand); }
.zone-head .spacer { flex: 1; }

/* ---------- 計算方法 ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr)); gap: 12px; margin-bottom: 24px; }
.mtile { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: inherit; text-decoration: none; }
.mtile:hover { border-color: var(--brand); }
.mico { font-size: 22px; margin-right: 6px; }
.mno { display: inline-block; font-weight: 700; color: var(--brand); margin-right: 6px; }
.mname { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.mstat { align-self: flex-start; white-space: nowrap; font-size: 11px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 600; vertical-align: middle; }
.mstat.ok { background: #e7f5ec; border-color: #9fd3b0; color: #1f7a3e; }
.mstat.part { background: #fff6e0; border-color: #f0cf7a; color: #8a5a00; }
.mstat.todo { background: #f3f3f3; color: #666; }
.mback { margin: 0 0 8px; }
.min { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; }
.mlabel { font-size: 12px; color: var(--muted, #666); margin-right: 4px; }
.mchip { display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: #eef5fa; border: 1px solid #cfe2ef; overflow-wrap: anywhere; }
.mchip.q { text-decoration: none; color: var(--brand); }
.msec ul { margin: 0; padding-left: 1.2em; }
.msec li { margin: 4px 0; line-height: 1.6; overflow-wrap: anywhere; }
.mchecked { border-color: #9fd3b0; }
.mchecked h2 { color: #1f7a3e; }
.mnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 8px 0 24px; }
.mnav .btn { max-width: 100%; overflow-wrap: anywhere; }
.mhist { margin: 0; padding-left: 1.2em; }
.mhist li { margin: 4px 0; overflow-wrap: anywhere; }
.mdate { font-weight: 600; margin-right: 8px; }
.tbl-scroll { overflow-x: auto; max-width: 100%; }
/* 図面の中の同じ番号のかたまりを選ぶ */
.modal.choose { width: min(560px, 100%); }
.ctiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; margin: 8px 0 14px; }
.ctile { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; min-width: 0; padding: 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; font: inherit; text-align: left; }
.ctile:hover { border-color: var(--brand); }
.ctile b { font-size: 16px; overflow-wrap: anywhere; }
.cwhere { font-size: 12px; color: var(--muted, #666); }
