:root {
  color-scheme: light;
  --ink: #14262d;
  --ink-2: #294149;
  --paper: #f3f1ea;
  --surface: #fffef9;
  --line: #d8d8cf;
  --muted: #68777a;
  --accent: #d89b2b;
  --accent-soft: #f5e7c9;
  --teal: #1e5b5c;
  --danger: #9c4f3e;
  --shadow: 0 18px 50px rgba(20, 38, 45, .08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif; font-size: 16px; line-height: 1.65; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: #f4f7f5; padding: 28px 20px; }
.brand { display: flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; padding: 0 8px 34px; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.25); font-family: Georgia, serif; font-weight: 700; color: #f2c56f; }
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: #91a2a5; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
nav { display: grid; gap: 8px; }
.nav-item { appearance: none; width: 100%; border: 0; background: transparent; color: #aebabc; text-align: left; padding: 13px 12px; border-radius: 8px; cursor: pointer; font-weight: 650; }
.nav-item span { display: inline-block; width: 32px; color: #718387; font-family: Georgia, serif; font-size: .78rem; }
.nav-item:hover, .nav-item.active { color: #fff; background: rgba(255,255,255,.08); }
.nav-item.active span { color: #f2c56f; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding: 22px 8px 0; display: flex; gap: 10px; align-items: flex-start; }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: .84rem; }
.sidebar-foot small { color: #93a3a6; font-size: .72rem; line-height: 1.45; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: #e7b75a; box-shadow: 0 0 0 4px rgba(231,183,90,.12); }
main { min-width: 0; padding: 34px clamp(24px, 4vw, 68px) 80px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow, .section-index { margin: 0; color: var(--teal); font-family: Georgia, serif; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 5px 0 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.28; letter-spacing: -.03em; }
.top-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn { min-height: 44px; padding: 10px 17px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.secondary { background: var(--accent); color: #18272d; border-color: #c68b22; align-self: center; white-space: nowrap; }
.spark { color: #f2c56f; margin-right: 3px; }
.notice { margin: 26px 0 38px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid #dbc694; background: #fff9e9; border-radius: 8px; }
.notice span { background: var(--accent); color: var(--ink); font-size: .7rem; font-weight: 900; letter-spacing: .1em; padding: 2px 7px; border-radius: 3px; }
.notice p { margin: 0; font-size: .86rem; color: #5a5549; }
.api-status { min-height: 1.35em; margin: -24px 0 28px; color: var(--muted); font-size: .78rem; }
.api-status[data-state="ready"] { color: var(--teal); }
.api-status[data-state="error"] { color: #9a5b35; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 18px; }
.section-head h2 { margin: 3px 0 0; font-family: Georgia, "Yu Mincho", serif; font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.3; }
.updated, .section-head > p { margin: 0; color: var(--muted); font-size: .82rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric-card { min-height: 148px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.metric-card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.metric-card.warning { border-top: 3px solid var(--accent); }
.metric-card > span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.metric-card.dark > span { color: #a9b6b8; }
.metric-card strong { display: block; margin: 7px 0 1px; font-family: Georgia, serif; font-size: 2.25rem; line-height: 1.1; }
.metric-card strong small { font-family: inherit; font-size: .8rem; margin-left: 5px; }
.metric-card p { margin: 6px 0 0; color: var(--muted); font-size: .76rem; }
em { font-style: normal; color: var(--danger); background: #f5e1dc; font-size: .65rem; padding: 2px 5px; border-radius: 3px; }
.report-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 23px; box-shadow: var(--shadow); }
.panel-title { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 21px; }
.panel-title h3 { margin: 3px 0 0; font-family: Georgia, "Yu Mincho", serif; font-size: 1.2rem; }
.text-btn { appearance: none; border: 0; background: none; padding: 4px 0; color: var(--teal); cursor: pointer; font-size: .78rem; font-weight: 800; }
.trend-row { display: grid; grid-template-columns: 120px minmax(100px, 1fr) 52px; gap: 12px; align-items: center; margin: 15px 0; font-size: .86rem; font-weight: 700; }
.track { height: 8px; background: #e5e5dd; border-radius: 99px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--teal); border-radius: inherit; }
.trend-row strong { color: var(--teal); text-align: right; }
.caption { margin: 22px 0 0; color: var(--muted); font-size: .72rem; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 99px; font-size: .68rem; font-weight: 900; }
.tag.ai { color: #804c00; background: var(--accent-soft); }
blockquote { margin: 0; padding: 0; border: 0; font-family: Georgia, "Yu Mincho", serif; font-size: 1.08rem; font-weight: 700; line-height: 1.75; }
.evidence-line { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.evidence-line .text-btn { margin-left: auto; }
.caution { margin: 14px 0 0; padding: 10px 12px; background: #f2f3ef; color: var(--muted); font-size: .72rem; }
.candidates-head { margin-top: 40px; }
.candidate-card { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 20px; align-items: start; padding: 25px 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.candidate-card.featured { border-left: 4px solid var(--accent); }
.candidate-number { font-family: Georgia, serif; font-size: 1.35rem; color: var(--accent); }
.candidate-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.candidate-tags span { padding: 2px 7px; background: #e8eeec; color: var(--teal); font-size: .68rem; font-weight: 800; }
.candidate-main h3 { margin: 9px 0 7px; font-family: Georgia, "Yu Mincho", serif; font-size: 1.2rem; line-height: 1.55; }
.candidate-main > p { margin: 0; color: var(--ink-2); font-size: .88rem; }
.basis { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; color: var(--muted); font-size: .74rem; }
.basis strong { color: var(--ink); }
.view[hidden] { display: none !important; }
.report-controls { display: flex; align-items: end; gap: 12px; padding: 13px 15px; margin: -18px 0 28px; background: rgba(255,254,249,.64); border: 1px solid var(--line); border-radius: 8px; }
.report-controls label { display: grid; gap: 2px; }
.report-controls label > span, .field > span { color: var(--muted); font-size: .72rem; font-weight: 800; }
.report-controls select, .field input, .field textarea, .field select { border: 1px solid #cdd1cc; border-radius: 6px; background: #fff; color: var(--ink); padding: 9px 11px; min-height: 42px; }
.report-controls select:focus, .field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(216,155,43,.24); border-color: var(--accent); }
.report-controls .toggle-label { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 8px; }
.toggle-label input { accent-color: var(--teal); width: 18px; height: 18px; }
.report-controls > p { margin: 0 0 9px auto; color: var(--teal); font-size: .78rem; font-weight: 800; }
.candidate-list { display: grid; gap: 10px; }
.decision-badge { margin-left: auto; padding: 2px 7px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--muted); font-size: .66rem; }
.decision-badge.adopt { color: #175b48; border-color: #91c9b7; background: #e9f7f1; }
.decision-badge.hold { color: #7b5b13; border-color: #dbc17d; background: #fff7db; }
.decision-badge.reject { color: #833f35; border-color: #d9aaa2; background: #f9e9e6; }
.sheet-actions { display: flex; gap: 10px; }
.meeting-status { display: grid; grid-template-columns: auto minmax(160px,1fr) auto; align-items: center; gap: 18px; padding: 18px 22px; margin-bottom: 16px; background: var(--ink); color: #fff; border-radius: 10px; }
.meeting-status > div:first-child { display: flex; align-items: baseline; gap: 8px; }
.progress-label { color: #b5c1c2; font-size: .75rem; }
.meeting-status strong { font-family: Georgia, serif; font-size: 1.45rem; }
.progress-track { height: 7px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.15); }
.progress-track i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .25s ease; }
.decision-counts { display: flex; gap: 14px; color: #b8c4c5; font-size: .74rem; }
.decision-counts b { color: #fff; margin-left: 3px; }
.meeting-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 16px; align-items: start; }
.meeting-main { display: grid; gap: 14px; }
.sheet-block { padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.sheet-block-title { display: flex; gap: 13px; align-items: start; margin-bottom: 18px; }
.sheet-block-title > span { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 50%; background: var(--ink); color: #fff; font-family: Georgia, serif; font-size: .8rem; }
.sheet-block-title h3, .summary-card h3, .validation-card h3, .requirements-strip h3 { margin: 0; font-family: Georgia, "Yu Mincho", serif; font-size: 1.16rem; }
.sheet-block-title p { margin: 2px 0 0; color: var(--muted); font-size: .76rem; }
.check-card { display: flex; gap: 12px; align-items: start; padding: 14px; margin-top: 8px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.check-card:has(input:checked) { border-color: #85aaa4; background: #eff6f3; }
.check-card input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal); }
.check-card strong, .check-card small { display: block; }
.check-card strong { font-size: .88rem; }
.check-card small { color: var(--muted); margin-top: 2px; font-size: .74rem; }
.meeting-idea-list { display: grid; gap: 8px; }
.meeting-idea { display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 7px; }
.meeting-idea > span { font-family: Georgia, serif; color: var(--accent); font-weight: 700; }
.meeting-idea h4 { margin: 0; font-size: .82rem; line-height: 1.45; }
.meeting-idea p { margin: 2px 0 0; color: var(--muted); font-size: .7rem; }
.mini-status { padding: 4px 8px; border-radius: 99px; background: #eff1ed; color: var(--muted); font-size: .68rem; font-weight: 800; }
.mini-status.adopt { background: #e5f4ed; color: #175b48; }
.mini-status.hold { background: #fff4cf; color: #7b5b13; }
.mini-status.reject { background: #f7e3df; color: #833f35; }
.meeting-idea .text-btn { white-space: nowrap; }
.field { display: grid; gap: 5px; margin-top: 13px; }
.field textarea { width: 100%; resize: vertical; line-height: 1.55; }
.meeting-side { position: sticky; top: 24px; }
.summary-card { padding: 23px; background: #e8edeb; border: 1px solid #cad3cf; border-radius: 10px; }
.summary-card h3 { margin-top: 4px; }
.summary-card .field input { width: 100%; }
.divider { height: 1px; background: #c7d0cd; margin: 20px 0; }
.summary-card h4 { margin: 0; font-size: .8rem; }
.done-list { padding: 0; margin: 12px 0 0; list-style: none; }
.done-list li { position: relative; margin: 7px 0; padding-left: 20px; color: var(--ink-2); font-size: .74rem; }
.done-list li::before { content: "□"; position: absolute; left: 0; color: var(--teal); }
.validation-intro { display: flex; justify-content: space-between; gap: 24px; padding: 20px 23px; margin-bottom: 14px; background: var(--ink); color: #fff; border-radius: 10px; }
.validation-intro strong { font-family: Georgia, "Yu Mincho", serif; }
.validation-intro p { margin: 3px 0 0; color: #bdc7c8; font-size: .82rem; }
.validation-intro > span { align-self: center; white-space: nowrap; color: #f2c56f; font-size: .78rem; font-weight: 800; }
.validation-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 14px; }
.validation-card { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.v-number { display: inline-block; color: var(--accent); font-family: Georgia, serif; font-size: .82rem; margin-bottom: 10px; }
.validation-card p { min-height: 48px; color: var(--muted); font-size: .78rem; }
.segmented { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.segmented button { border: 0; border-right: 1px solid var(--line); background: #fff; padding: 8px 4px; cursor: pointer; font-size: .68rem; }
.segmented button:last-child { border-right: 0; }
.segmented button.active { background: var(--teal); color: #fff; }
.validation-form { margin-bottom: 14px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.range-row { display: grid; grid-template-columns: 1fr 60px; gap: 10px; align-items: center; min-height: 42px; }
.range-row input { accent-color: var(--teal); }
.range-row output { text-align: right; font-weight: 800; color: var(--teal); }
.requirements-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 25px; background: var(--accent-soft); border: 1px solid #ddc58e; border-radius: 10px; }
.requirements-strip h3 { margin-top: 3px; }
.requirement-flow { display: flex; align-items: center; gap: 9px; color: #5f4a1f; font-size: .75rem; font-weight: 800; }
.requirement-flow i { font-style: normal; color: #aa791d; }
.dialog { max-width: min(760px, calc(100vw - 28px)); width: 100%; padding: 0; border: 0; border-radius: 12px; color: var(--ink); background: transparent; box-shadow: 0 28px 80px rgba(8,22,28,.3); }
.dialog::backdrop { background: rgba(10,25,31,.62); backdrop-filter: blur(3px); }
.dialog-shell { position: relative; max-height: 88vh; overflow: auto; padding: 30px; background: var(--surface); border-radius: 12px; }
.dialog-close { position: absolute; top: 15px; right: 17px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.25rem; }
.dialog h2 { margin: 5px 42px 8px 0; font-family: Georgia, "Yu Mincho", serif; font-size: 1.5rem; line-height: 1.5; }
.dialog-lead { margin: 0; color: var(--ink-2); font-size: .88rem; }
.idea-spec { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 22px 0; }
.idea-spec div { padding: 12px; background: #f0f2ee; border-radius: 7px; }
.idea-spec span, .evidence-table th { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; }
.idea-spec strong { display: block; margin-top: 3px; font-size: .8rem; }
.dialog h3 { margin: 22px 0 9px; font-family: Georgia, "Yu Mincho", serif; font-size: 1rem; }
.evidence-table { width: 100%; border-collapse: collapse; font-size: .75rem; }
.evidence-table th, .evidence-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.evidence-table th { display: table-cell; }
.evidence-table a { color: var(--teal); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.dummy-note { color: var(--danger); font-size: .68rem; }
.decision-editor { margin-top: 22px; padding: 18px; background: #eef2ef; border-radius: 8px; }
.decision-options { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.decision-options label { display: grid; place-items: center; min-height: 42px; border: 1px solid #cbd2ce; border-radius: 6px; background: #fff; cursor: pointer; font-size: .76rem; font-weight: 800; }
.decision-options label:has(input:checked) { border-color: var(--teal); background: var(--teal); color: #fff; }
.decision-options input { position: absolute; opacity: 0; pointer-events: none; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.info-list { display: grid; gap: 0; margin-top: 18px; border-top: 1px solid var(--line); }
.info-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); align-items: start; }
.info-row strong { font-size: .8rem; }
.info-row p { margin: 0; color: var(--muted); font-size: .75rem; }
.source-pill { white-space: nowrap; padding: 2px 7px; border-radius: 99px; background: #e7eeeb; color: var(--teal); font-size: .64rem; font-weight: 800; }
.source-pill.dummy { background: #f5e1dc; color: var(--danger); }
.loading-overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; background: rgba(12,29,36,.72); backdrop-filter: blur(5px); }
.loading-card { width: min(430px,100%); padding: 34px; text-align: center; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); }
.loader { display: inline-block; width: 34px; height: 34px; border: 3px solid #dce1dd; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-card h2 { margin: 14px 0 4px; font-family: Georgia, "Yu Mincho", serif; font-size: 1.2rem; }
.loading-card p { margin: 0; color: var(--muted); font-size: .8rem; }
.loading-progress { height: 6px; margin-top: 20px; overflow: hidden; background: #e6e7e2; border-radius: 99px; }
.loading-progress i { display: block; width: 12%; height: 100%; background: var(--teal); border-radius: inherit; transition: width .35s ease; }
.toast { position: fixed; z-index: 30; right: 26px; bottom: 24px; transform: translateY(25px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 7px; background: var(--ink); color: #fff; box-shadow: 0 12px 35px rgba(10,25,31,.25); transition: .2s ease; font-size: .82rem; }
.toast.show { transform: translateY(0); opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .sidebar { padding: 24px 12px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > span:last-child, .nav-item { font-size: 0; }
  .nav-item span { width: auto; font-size: .82rem; }
  .sidebar-foot div { display: none; }
  .sidebar-foot { justify-content: center; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
  .candidate-card { grid-template-columns: 42px minmax(0, 1fr); }
  .candidate-card .btn { grid-column: 2; justify-self: start; }
  .meeting-layout { grid-template-columns: 1fr; }
  .meeting-side { position: static; }
  .validation-grid { grid-template-columns: 1fr; }
  .validation-card p { min-height: auto; }
  .requirements-strip { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 640px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; padding: 12px 14px; flex-direction: row; align-items: center; gap: 12px; overflow-x: auto; }
  .brand { padding: 0; }
  .brand-mark { width: 38px; height: 38px; }
  nav { display: flex; }
  .nav-item { width: auto; min-width: 48px; }
  .sidebar-foot { display: none; }
  main { padding: 24px 16px 64px; }
  .topbar { align-items: stretch; flex-direction: column; }
  .top-actions { width: 100%; }
  .top-actions .btn { flex: 1; }
  .notice { align-items: flex-start; }
  .report-controls { display: grid; grid-template-columns: 1fr 1fr; margin-top: -10px; }
  .report-controls select { width: 100%; }
  .report-controls > p { margin: 0; align-self: center; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-card { min-height: 128px; padding: 16px; }
  .metric-card strong { font-size: 1.8rem; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .trend-row { grid-template-columns: 100px 1fr 46px; gap: 8px; }
  .candidate-card { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .candidate-card .btn { grid-column: 1; width: 100%; }
  .meeting-status { grid-template-columns: 1fr; gap: 10px; }
  .decision-counts { justify-content: space-between; }
  .meeting-idea { grid-template-columns: 28px minmax(0,1fr) auto; }
  .meeting-idea .text-btn { grid-column: 2 / -1; justify-self: start; }
  .sheet-actions { width: 100%; }
  .sheet-actions .btn { flex: 1; }
  .two-fields { grid-template-columns: 1fr; gap: 0; }
  .requirement-flow { flex-wrap: wrap; }
  .dialog-shell { padding: 24px 18px; }
  .idea-spec { grid-template-columns: 1fr; }
  .decision-options { grid-template-columns: 1fr 1fr; }
  .info-row { grid-template-columns: 1fr auto; }
  .info-row p { grid-column: 1 / -1; }
}
@media print {
  .sidebar, .top-actions, .notice, .report-controls, .sheet-actions, .text-btn, .toast { display: none !important; }
  .app-shell { display: block; }
  main { padding: 0; }
  body { background: #fff; }
  .view { display: none !important; }
  #meeting { display: block !important; }
  .meeting-layout { grid-template-columns: 1fr; }
  .meeting-side { position: static; }
}
