/* かんたんな画面（物件の一覧と、結果の確かめ）。この試作で作った画面。 */
:root {
  --ink: #16202e; --ink-soft: #5b6878; --line: #e2e7ee; --bg: #f3f6fa; --panel: #ffffff;
  --brand: #1746a2; --brand-deep: #0f2f73; --brand-soft: #e8effc;
  --ok: #14804a; --ok-soft: #e3f5ea; --warn: #a15c00; --warn-soft: #fdf1dc; --bad: #c2362b; --bad-soft: #fde8e5;
  --radius: 12px; --shadow: 0 1px 2px rgba(16, 32, 60, .06), 0 6px 20px rgba(16, 32, 60, .06);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; } /* 画面の切り替えは hidden で行う（display を指定した部品も、確実に隠す） */
html, body { height: 100%; margin: 0; }
body { font: 15px/1.65 "Segoe UI", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; color: var(--ink); background: var(--bg); display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }

/* 上の帯 */
header { display: flex; align-items: center; gap: 14px; padding: 0 22px; height: 58px; flex: none; color: #fff;
  background: linear-gradient(100deg, var(--brand-deep), var(--brand) 60%, #2a6fd6); box-shadow: 0 2px 10px rgba(15, 47, 115, .25); z-index: 2; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .16); display: grid; place-items: center; flex: none; }
.logo::before { content: ""; width: 14px; height: 14px; border: 2px solid #fff; border-radius: 2px; box-shadow: 5px 5px 0 -2px var(--brand), 5px 5px 0 0 rgba(255, 255, 255, .85); }
h1 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
h1 small { font-weight: 400; font-size: 12px; opacity: .75; margin-left: 10px; }
.spacer { flex: 1; }
header .muted { color: rgba(255, 255, 255, .8); }
header .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; }
header .btn:hover:not(:disabled) { background: rgba(255, 255, 255, .24); }

.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.btn { font: inherit; font-weight: 600; padding: 8px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; transition: background .12s, box-shadow .12s, transform .05s; }
.btn:hover:not(:disabled) { background: #f1f5fb; box-shadow: 0 1px 4px rgba(16, 32, 60, .12); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--brand-deep); }
.btn.small { padding: 4px 12px; font-size: 13px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-soft); font-weight: 500; }
.btn.ghost:hover:not(:disabled) { background: #eef2f7; box-shadow: none; }
.btn.on-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.on-ng { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger { color: var(--bad); }
.badge { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: #edf1f6; color: var(--ink-soft); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.banner { padding: 10px 22px; flex: none; }
.banner.bad { background: var(--bad-soft); color: var(--bad); font-weight: 600; }
input[type="text"] { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); }
input[type="text"]:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }

/* 物件の一覧 */
#home { flex: 1; overflow: auto; padding: 28px 22px 60px; }
.wrap { max-width: 1040px; margin: 0 auto; }
.lead { margin: 0 0 18px; }
.lead h2 { font-size: 24px; margin: 0 0 4px; letter-spacing: .01em; }
.drop { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; margin-bottom: 26px; background: var(--panel); border: 2px dashed #c5d3ea; border-radius: var(--radius); transition: border-color .12s, background .12s; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 26px; font-weight: 700; flex: none; }
.drop .words { flex: 1; min-width: 14em; }
.drop .words b { display: block; font-size: 16px; }
.drop input[type="text"] { flex: 1; min-width: 16em; }
h3.section { font-size: 14px; font-weight: 700; color: var(--ink-soft); letter-spacing: .08em; margin: 0 0 12px; }
.jobline { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 14px; border-radius: var(--radius); background: var(--brand-soft); border: 1px solid #cbdaf6; color: var(--brand-deep); font-weight: 600; }
.jobline.failed { background: var(--bad-soft); border-color: #f3c6c0; color: var(--bad); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #b9cdf3; border-top-color: var(--brand); animation: spin .9s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
#list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.item { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.item:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(16, 32, 60, .08), 0 12px 28px rgba(16, 32, 60, .1); }
.item .name { font-size: 17px; font-weight: 700; line-height: 1.4; word-break: break-all; }
.item .facts { display: flex; gap: 6px; flex-wrap: wrap; }
.item .acts { display: flex; gap: 4px 8px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.item .acts .btn.small { padding: 4px 8px; }
.item .acts .btn.primary { flex: 1; }
.emptybox { grid-column: 1 / -1; padding: 30px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink-soft); }

/* 結果（今のアプリ ehyoka-draw-analyzer の並びを写したもの: 上にページの札、左に図面・関係図・並べた図面、右に一覧） */
:root { --primary: var(--brand); --muted: var(--ink-soft); --text: var(--ink); --human: #6b3fa0; }
#detail { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px; background: var(--panel); border-bottom: 1px solid var(--line); flex: none; }
.chips:empty { display: none; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; background: #fff; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink); }
.chip:hover:not(:disabled) { background: #f1f5fb; }
.chip.current { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.chip.selected { background: var(--brand-soft); }
.chip.todo { color: var(--ink-soft); border-style: dashed; }
.chip.whole { font-weight: 700; border-color: var(--primary); color: var(--primary); }
.chip.whole.current { background: var(--primary); color: #fff; }
.split { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(380px, 1fr); }
.split > section { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--panel); }
#left { border-right: 1px solid var(--line); }
.toolbar { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--line); flex: none; }
.toolbar .btn { padding: 3px 12px; }
#pageLabel { min-width: 4.5em; text-align: center; font-weight: 600; }
.sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
#viewer { flex: 1; overflow: auto; background: #6f7780; padding: 12px; cursor: grab; }
#viewer.dragging { cursor: grabbing; user-select: none; }
#pageWrap { position: relative; margin: 0 auto; width: max-content; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
#canvas { display: block; }

/* 読み取った箇所の枠（種類ごとの色。ほかの図面にもある項目は太く、食い違いは赤い縁） */
#overlay { position: absolute; inset: 0; }
.ov { position: absolute; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border-radius: 2px; cursor: pointer; }
.ov:hover, .ov.hover { background: color-mix(in srgb, var(--c) 34%, transparent); outline: 2px solid var(--c); outline-offset: 1px; z-index: 3; }
.ov:hover::after, .ov.hover::after { content: attr(data-label); position: absolute; left: -1.5px; top: 100%; background: var(--c); color: #fff; font-size: 11px; line-height: 1.5; padding: 0 6px; white-space: nowrap; z-index: 4; }
.ov.on { background: color-mix(in srgb, var(--c) 30%, transparent); }
.ov.linked { border-width: 2.5px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ok) 55%, transparent); }
.ov.linked.conflict { box-shadow: 0 0 0 2.5px var(--bad); }
.ov.linked.unsure { box-shadow: 0 0 0 2.5px #e0a030; }
#highlight { position: absolute; border: 2px solid #e6007e; background: rgba(230, 0, 126, .12); pointer-events: none; z-index: 5; }
#highlightLabel { position: absolute; left: -2px; bottom: 100%; background: #e6007e; color: #fff; font-size: 11px; padding: 0 6px; white-space: nowrap; }
.spot { position: absolute; border: 3px solid #e3261b; border-radius: 4px; box-shadow: 0 0 0 4px rgba(227, 38, 27, .22); pointer-events: none; z-index: 5; animation: pulse 1.2s ease-out 2; }
.spotlabel { position: absolute; left: -3px; bottom: 100%; margin-bottom: 4px; background: #e3261b; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 0 7px; border-radius: 3px; white-space: nowrap; }
.spotbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 14px; background: #fdecea; color: #a1241b; border-bottom: 1px solid #f3c7c2; font-size: 13px; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227, 38, 27, .55); } 100% { box-shadow: 0 0 0 16px rgba(227, 38, 27, 0); } }

/* 全体: 図面を丸、つながりを線で描いた関係図 */
.overview { flex: 1; min-height: 0; overflow: auto; padding: 14px 20px; background: #fff; display: flex; flex-direction: column; }
.overview .lead { font-size: 15px; margin: 0 0 4px; }
.relmap { flex: 1; min-height: 300px; width: 100%; max-height: 640px; }
.relmap .edge { cursor: pointer; }
.relmap .edge line { stroke: #9bb7a6; stroke-linecap: round; }
.relmap .edge rect { fill: #fff; stroke: #9bb7a6; }
.relmap .edge text { font-size: 13px; fill: var(--ink); }
.relmap .edge.conflict line, .relmap .edge.conflict rect { stroke: var(--bad); }
.relmap .edge.conflict text { fill: var(--bad); font-weight: 700; }
.relmap .edge:hover line, .relmap .edge.on line { stroke: var(--primary); }
.relmap .edge.on rect { fill: var(--brand-soft); stroke: var(--primary); }
.relmap .node { cursor: pointer; }
.relmap .node rect { fill: #fff; stroke: var(--primary); stroke-width: 2; }
.relmap .node:hover rect { fill: var(--brand-soft); }
.relmap .node text { font-size: 15px; font-weight: 700; fill: var(--ink); }
.relmap .node text.small { font-size: 11px; font-weight: 400; fill: var(--ink-soft); }
.nomap { margin: auto; text-align: center; color: var(--ink-soft); max-width: 34em; }

/* つながり: 同じものが書かれた図面を並べる */
.linkbox { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.linkbanner { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 12px; background: #fff; border-bottom: 1px solid var(--line); font-size: 15px; }
.linkbanner .spacer { flex: 1; }
.linkbanner .btn { padding: 4px 12px; }
.linkpanes { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: row; gap: 3px; background: #6f7780; }
.vpane { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--panel); }
.vhead { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
.vhead .btn.small { padding: 0 8px; }
.vtitle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vzoom { min-width: 40px; text-align: center; }
.vscroll { position: relative; flex: 1; min-height: 0; overflow: auto; background: #6f7780; padding: 12px; cursor: grab; }
.vscroll.dragging { cursor: grabbing; user-select: none; }
.vpage { position: relative; width: max-content; margin: 0 auto; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
.vpage canvas { display: block; }
.vmark { position: absolute; border: 2px solid #e6007e; background: rgba(230, 0, 126, .10); pointer-events: none; }
.vmarklabel { position: absolute; left: -2px; bottom: 100%; background: #e6007e; color: #fff; font-size: 11px; padding: 0 6px; white-space: nowrap; max-width: 460px; overflow: hidden; text-overflow: ellipsis; }
/* 採光計算表の D・H の照合: ★ AI が選んだ場所（緑・太い）／ほかの候補（灰色・破線）／表の値（青） */
.vmark.chosen { border: 3px solid #0a8f3c; background: rgba(10, 143, 60, .14); box-shadow: 0 0 0 3px rgba(10, 143, 60, .25); }
.vmark.chosen .vmarklabel { background: #0a8f3c; font-size: 12px; font-weight: 700; left: -3px; }
.vmark.other { border: 2px dashed #6b7684; background: rgba(107, 118, 132, .10); }
.vmark.other .vmarklabel { background: #6b7684; }
.vmark.table { border: 2px solid #1f5fbf; background: rgba(31, 95, 191, .10); }
.vmark.table .vmarklabel { background: #1f5fbf; }
.vempty { color: #fff; padding: 16px; font-size: 13px; }
.vnote { position: absolute; z-index: 2; color: #fff; background: #4b525a; padding: 4px 10px; font-size: 12px; }

/* 右の一覧 */
#right { background: var(--panel); }
.righthead { padding: 10px 14px 0; font-size: 16px; flex: none; }
.sumline { padding: 6px 14px 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; flex: none; }
.sumline b { font-size: 18px; }
.sumline .help { cursor: help; }
.listfilter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 14px; border-bottom: 1px solid var(--line); font-size: 13px; flex: none; }
.listfilter .chip.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.listfilter .chip.bad:not(.current) { color: var(--bad); border-color: var(--bad); }
.listfilter .chip:disabled { opacity: .45; cursor: default; }
.readlist { flex: 1; min-height: 0; overflow: auto; padding: 4px 12px 40px; }
.readlist details.group { margin: 4px 0 8px; }
.readlist summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 2px; position: sticky; top: 0; background: var(--panel); z-index: 1; font-size: 14px; color: var(--ink); }
.readlist summary i { width: 12px; height: 12px; border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 20%, transparent); border-radius: 3px; flex: none; }
.readlist summary .count { color: var(--ink-soft); font-size: 12px; flex: 1; }
.readlist ul { list-style: none; margin: 0; padding: 0; }
.readlist li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; padding: 4px 8px; margin: 2px 0; border-left: 3px solid var(--c); border-radius: 0 4px 4px 0; cursor: pointer; }
.readlist li:hover { background: var(--bg); }
.readlist li.on { background: #ffe1f1; }
.readlist li.hover { background: #fff3c4; }
.readlist li .main { font-weight: 600; white-space: nowrap; }
.readlist li .sub { color: var(--ink-soft); font-size: 12.5px; flex: 1; }
.readlist li.nomark { opacity: .65; }
.readlist li.linkrow { flex-direction: column; align-items: stretch; gap: 2px; padding: 6px 10px; }
.readlist li.linkrow .head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.readlist li.linkrow .sub { flex: none; }
.readlist li.linkrow .memo { color: var(--human); }
.readlist p.muted { margin: 4px 8px; }
/* 表の行の下に出す、検算と「図面と照合」の結果 */
.readlist li.dlrow .sub { flex: 1 1 60%; }
.readlist .dlchecks { flex: 0 0 100%; order: 2; list-style: none; margin: 2px 0 4px; padding: 4px 8px; background: var(--bg); border-radius: 4px; font-size: 12.5px; }
.readlist .dlchecks li { display: block; padding: 1px 0; margin: 0; border: 0; border-radius: 0; cursor: inherit; color: var(--ink-soft); }
.readlist .dlchecks li:hover { background: none; }
.readlist .dlchecks li b { font-weight: 600; }
.readlist .dlchecks li.ok b { color: var(--ok); }
.readlist .dlchecks li.note { color: var(--warn); }
.readlist .dlchecks li.ng { color: var(--bad); }
.readlist .dlchecks li.go { cursor: pointer; text-decoration: underline dotted; }
.tag { font-size: 11px; padding: 0 6px; border-radius: 8px; white-space: nowrap; background: #e8ebef; }
.tag.linktag { background: var(--ok-soft); color: var(--ok); }
.tag.mismatch { background: var(--bad-soft); color: var(--bad); }
.tag.unsure { background: var(--warn-soft); color: var(--warn); }
.tag.confirmed { background: #e9dff6; color: var(--human); }
.linkdetail { padding: 6px 4px; }
.linkdetail h3 { font-size: 17px; margin: 8px 0 4px; }
.linkdetail ul.places li { cursor: pointer; padding: 8px 10px; }
.linkdetail ul.places li .sheet { width: 100%; font-size: 12px; color: var(--ink-soft); }
.linkdetail ul.places li .main { font-size: 18px; }
.ainote { margin: 10px 4px; padding: 8px 10px; background: var(--bg); border-radius: 6px; font-size: 13px; }
.reviewbox { margin: 14px 4px 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 8px; }
.reviewbox .buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.reviewbox label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-soft); }
.reviewbox textarea { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; width: 100%; }
.reviewprog { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.minibar { display: inline-block; width: 80px; height: 6px; border-radius: 3px; background: #e3e8ef; overflow: hidden; }
.minibar i { display: block; height: 100%; background: var(--ok); }
.reviewline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
/* これまでの当たりの実績（食い違い・要確認の横） */
.track { font-size: 12.5px; color: var(--human); }
.track.few { color: var(--ink-soft); }
p.track { margin: 4px 0; }
/* 表の行の下: 合っている検算・照合は、たたんでおく */
.dlfine { margin-top: 2px; font-size: 12.5px; color: var(--ink-soft); }
.dlfine > summary { cursor: pointer; list-style: revert; }
.dlfine[open] > summary { margin-bottom: 2px; }
/* 「確かめる所」（全体の画面の上）と、ページの札の印 */
.attnbox { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.attnbox > b { font-size: 13.5px; margin-right: 2px; }
.attn { font: inherit; font-size: 13px; padding: 3px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.attn.bad { border-color: #efc2bd; background: var(--bad-soft); color: var(--bad); }
.attn.warn { border-color: #ecd6a8; background: var(--warn-soft); color: var(--warn); }
.attn:hover { filter: brightness(.97); }
.chipmark { display: inline-block; min-width: 16px; margin-left: 6px; padding: 0 4px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; color: #fff; }
.chipmark.bad { background: var(--bad); }
.chipmark.warn { background: #c98a1a; }
.chip.whole.current .chipmark, .chip.current .chipmark { box-shadow: 0 0 0 1px #fff; }
.stalebox { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-size: 13px; }

/* 物件の値・法規の確かめ（一覧の中の札） */
.entry { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid #cfd8e4; border-radius: 10px; padding: 10px 12px; margin: 0 0 8px; }
.entry.s-ng { border-left-color: var(--bad); }
.entry.s-attention { border-left-color: #e0a030; }
.entry.s-ok { border-left-color: var(--ok); }
.entry.current { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.entry.reviewed { background: #fbfcfe; }
.entry .head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.entry .label { font-weight: 700; }
.entry .value { font-size: 18px; font-weight: 700; margin-left: auto; font-variant-numeric: tabular-nums; }
.entry .none { margin-left: auto; color: var(--ink-soft); }
.entry .marks { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.entry .text { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.entry .acts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
/* 物件の値を、人が直す入力欄 */
.fixform { margin-top: 8px; padding: 10px 12px; border: 1px solid #d9cdea; border-radius: 8px; background: #faf7fd; display: grid; gap: 6px; font-size: 13.5px; }
.fixform .fixrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fixform input.fixvalue { width: 9em; font: inherit; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; }
.fixform select.fixunit { font: inherit; padding: 5px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.fixform .fixnote { color: var(--bad); }
.fixform .fixnote:empty { display: none; }
.badge.human { background: #efe6fa; color: var(--human); }
.entry input.memo { flex: 1; min-width: 9em; font-size: 13px; padding: 5px 10px; border-radius: 7px; }
.hint { color: var(--ink-soft); font-size: 13px; margin: 0 4px 8px; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; grid-template-rows: 55vh minmax(0, 1fr); } #left { border-right: 0; border-bottom: 1px solid var(--line); } }

/* 利用の登録が無い人への案内（cloud.js が、画面をこれだけに置き換える） */
body.notmember-page { display: grid; place-items: center; padding: 24px; }
.notmember { max-width: 560px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 32px; text-align: center; }
.notmember .nmicon { font-size: 40px; }
.notmember h1 { font-size: 18px; white-space: normal; margin: 6px 0 14px; color: var(--brand-deep); }
.notmember h2 { font-size: 18px; margin: 0 0 12px; }
.notmember .nmemail { font-weight: 700; background: var(--brand-soft); border-radius: 8px; padding: 8px 12px; word-break: break-all; }
.notmember .nmdemo { color: var(--warn); font-size: 13px; }
.notmember .nmbtns { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.notmember a.btn { text-decoration: none; }
header a.btn { text-decoration: none; }
/* 環境の印（DEV・手元）。色と形は、ポータル・ほかのアプリの .env-badge に合わせた */
.envbadge { flex: none; padding: 3px 12px; font-family: ui-monospace, Consolas, monospace; font-weight: 600; font-size: 12px; letter-spacing: 1px; color: #fff;
  background: #d9534f; border-radius: 3px; user-select: none; }
.envbadge.env-local { background: #6c757d; }

/* 精度のまとめ（summary.html） */
.summarypage { overflow: auto; }
.summary { max-width: 1180px; margin: 0 auto; padding: 22px 22px 60px; }
.summary .hero h2 { font-size: 24px; margin: 0 0 6px; }
.summary h2 { font-size: 18px; margin: 30px 0 10px; }
.cards4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin: 16px 0 6px; }
.bigcard { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: #fff; border-top: 4px solid var(--brand); }
.bigcard.ok { border-top-color: var(--ok); }
.bigcard.warn { border-top-color: var(--warn); }
.biglabel { font-size: 13px; color: var(--ink-soft); }
.bigvalue { font-size: 32px; font-weight: 700; line-height: 1.25; margin: 2px 0 4px; white-space: nowrap; }
.bigcard.ok .bigvalue { color: var(--ok); }
.bigdetail { font-size: 12.5px; }
.tablewrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.summarytable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.summarytable th, .summarytable td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.summarytable thead th { background: #f7f9fc; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; }
.summarytable tbody tr:last-child th, .summarytable tbody tr:last-child td { border-bottom: 0; }
.summarytable tbody th { font-weight: 600; min-width: 160px; }
.summarytable .muted { font-size: 12.5px; }
.summarytable a.btn { text-decoration: none; }
.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.explain > div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.explain h3 { font-size: 15px; margin: 0 0 6px; }
.explain h3 small { font-weight: 400; color: var(--ink-soft); }
.explain p { margin: 6px 0; font-size: 14px; }
.limits, .flow { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px 12px 36px; margin: 0; font-size: 14px; }
.limits li, .flow li { margin: 6px 0; }
.flow b { margin-right: 8px; }

/* メンバー管理（members.html） */
.memberspage { overflow: auto; }
.members { max-width: 900px; margin: 20px auto; padding: 0 20px; }
.members section { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin: 14px 0; }
.members h2 { font-size: 20px; margin: 8px 0; }
.members h3 { margin: 0 0 8px; font-size: 15px; }
.memberadd .row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.memberadd input[type=email] { flex: 1; min-width: 260px; font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.membertable { width: 100%; border-collapse: collapse; font-size: 14px; }
.membertable th, .membertable td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.membertable td.actions { white-space: nowrap; text-align: right; }
.membertable td.actions .btn { margin-left: 6px; }
.membertable .badge { margin-left: 6px; }
