@charset "UTF-8";
:root {
  color-scheme: light;
  --paper: #f5f5ef;
  --surface: #fff;
  --ink: #253c34;
  --muted: #64746b;
  --line: #dfe5dc;
  --accent: #366950;
  --soft: #e9f0dc;
  --warning: #805c23;
  --warning-bg: #faf1dc;
  font: 14px "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
html, body, div, section, header, main, footer, article, nav, form, input, select, button { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1 { font-size: 26px; letter-spacing: -.04em; }
h2 { font-size: 18px; margin-bottom: 7px; }
button, input, select { font: inherit; }
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 650;
}
button:hover:not(:disabled) { background: var(--soft); border-color: #a2b790; }
button:disabled { cursor: default; opacity: .45; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover:not(:disabled) { background: #28553e; }
button.danger { color: #9c3333; border-color: #e6c1ba; }
button.danger:hover:not(:disabled) { background: #fff0ed; border-color: #bc6860; }
.record-version { max-width: 220px; overflow-wrap: anywhere; white-space: normal; }
.defeat-cause { max-width: 240px; overflow-wrap: anywhere; white-space: normal; }
.feedback-message { min-width: 320px; max-width: 900px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
input, select {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cdd7cc;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
label { display: block; font-size: 12px; font-weight: 650; }
label input { margin-top: 7px; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible, .table-wrap:focus-visible {
  outline: 3px solid #96bcb0;
  outline-offset: 3px;
}
.eyebrow { font-size: 10px; font-weight: 750; letter-spacing: .16em; color: var(--muted); margin-bottom: 6px; }
.muted { font-size: 12px; line-height: 1.8; color: var(--muted); }
.error { color: #9c3333; background: #fff0ed; border-radius: 8px; padding: 12px; margin-top: 15px; font-size: 13px; line-height: 1.7; }
.login-shell { min-height: 100vh; display: grid; align-content: center; justify-items: center; padding: 40px 20px; background: linear-gradient(135deg, #e7edde, #f8f7f1 60%); }
.login-card { width: min(480px, 100%); padding: 46px; border-radius: 24px; border: 1px solid #d6dfcf; background: var(--surface); box-shadow: 0 22px 80px #263e3010; }
.login-card h1 { font-size: 40px; margin: 20px 0; }
.login-card h1 span { display: block; font-size: 14px; font-weight: 500; letter-spacing: 0; margin-top: 12px; }
.login-card form { margin-top: 30px; }
.login-card button { width: 100%; margin-top: 14px; padding: 14px 18px; }
.security-note { font-size: 11px; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 25px; }
.login-foot { font-size: 11px; color: var(--muted); margin-top: 24px; }
.workspace { width: 100%; padding: 20px 24px; }
.page-header, .header-actions, .section-top, .table-tools, .pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.page-header { margin-bottom: 14px; flex-wrap: wrap; }
.header-actions { justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.header-actions button { font-size: 12px; }
.version-filter { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.version-filter span { white-space: nowrap; }
.version-filter select { width: auto; min-width: 190px; min-height: 36px; padding: 7px 30px 7px 10px; font-size: 12px; }
.ascension-navigation, .activity-panel, .results-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.section-top { margin-bottom: 12px; }
.ascension-navigation { margin-top: 16px; }
.floor-progress-panel { margin-bottom: 16px; }
#floor-progress-panel { padding: 14px 18px; }
#floor-progress-panel .section-top { margin-bottom: 6px; }
#floor-progress-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
#floor-progress-metrics .metric { display: flex; align-items: center; gap: 12px; padding: 6px 12px; }
#floor-progress-metrics .metric-label { margin: 0; }
#floor-progress-metrics .metric-value { font-size: 20px; }
#floor-progress-chart .count-chart { width: 100%; max-width: 960px; min-width: 720px; }
#floor-progress-panel .chart-legend { margin-top: 3px; line-height: 1.5; }
#ascension-pages { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
#ascension-pages a { display: block; padding: 11px 4px; border: 1px solid var(--line); border-radius: 8px; text-align: center; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 700; }
#ascension-pages a small { display: block; font-size: 10px; font-weight: 500; margin-top: 4px; }
#ascension-pages a:hover { background: var(--soft); }
#ascension-pages a[aria-current=page] { background: var(--accent); border-color: var(--accent); color: #fff; }
.activity-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.activity-charts section { min-width: 0; }
.activity-charts .count-chart { min-width: 0; }
.activity-charts .ascension-chart { min-width: 0; }
.activity-charts #ascension-overview { margin-top: 0; }
.activity-charts h3 { font-size: 14px; margin: 0 0 14px; }
.chart-scroll { overflow-x: auto; }
.count-chart { --chart-color: #467ba8; min-width: 560px; margin: 0; }
.count-chart svg { display: block; width: 100%; }
.chart-bar { fill: var(--chart-color); }
.chart-point:focus { outline: none; }
.chart-point:focus .chart-bar { stroke: var(--ink); stroke-width: 2; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 16px 0; }
.metric { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 17px 20px; }
.metric.is-accent { background: var(--soft); border-color: #d2ddc3; }
.metric-label { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.metric-value { font-size: 30px; font-weight: 750; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-detail { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.7; }
.notice { font-size: 12px; line-height: 1.8; color: var(--warning); background: var(--warning-bg); border: 1px solid #eadbb6; border-radius: 9px; padding: 11px 15px; margin-bottom: 16px; }
#view-nav { display: inline-flex; gap: 4px; background: #f0f3ec; border-radius: 9px; padding: 4px; }
#view-nav button { border-color: transparent; background: transparent; min-width: 90px; }
#view-nav button[aria-current=page] { background: var(--accent); color: #fff; }
.view-note { font-size: 12px; line-height: 1.8; color: var(--muted); }
.table-tools { align-items: flex-end; margin: 16px 0; }
.table-tools label { max-width: 340px; flex: 1; }
.table-tools p { font-size: 10px; line-height: 1.6; color: var(--muted); text-align: right; }
.table-wrap { overflow-x: auto; min-height: 140px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
th { text-align: left; background: #f4f6f0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; padding: 12px; color: var(--muted); }
th button { font: inherit; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: left; color: inherit; }
td { padding: 15px 12px; border-bottom: 1px solid #edf0e9; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #fbfcf7; }
.model-name { font-weight: 650; max-width: 250px; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.rate-cell { min-width: 95px; }
.rate-cell meter { display: block; width: 75px; height: 5px; margin-top: 5px; accent-color: var(--accent); }
.cell-note { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.low-sample { display: inline-block; color: var(--warning); background: var(--warning-bg); border-radius: 4px; margin-top: 5px; padding: 2px 5px; font-size: 10px; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); font-size: 13px; line-height: 1.9; }
.pagination { margin-top: 18px; font-size: 11px; color: var(--muted); }
.pagination button { font-size: 12px; margin-left: 7px; }
.ascension-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 16px; }
.ascension-panel h2 { margin: 0; }
#ascension-overview { overflow-x: auto; margin-top: 12px; }
.ascension-chart { --chart-color: #366950; margin: 0; min-width: 560px; }
.ascension-chart.pick { --chart-color: #467ba8; }
.ascension-chart svg { display: block; width: 100%; overflow: visible; }
.ascension-chart.compact { width: 210px; min-width: 210px; margin-top: 9px; }
.chart-grid { stroke: #dfe5dc; stroke-width: 1; }
.chart-axis { fill: #64746b; font-size: 12px; }
.compact .chart-axis { font-size: 8px; }
.chart-axis.current { fill: #253c34; font-weight: 800; }
.chart-selected { stroke: #93aea0; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-line { fill: none; stroke: var(--chart-color); stroke-width: 2; stroke-linejoin: round; }
.compact .chart-line { stroke-width: 1.5; }
.chart-dot { fill: var(--chart-color); stroke: var(--chart-color); stroke-width: 1.5; }
.chart-dot.low { fill: #fff; stroke-width: 2; }
.chart-missing { fill: #97a297; font-size: 12px; }
.compact .chart-missing { font-size: 9px; }
.chart-value { fill: var(--chart-color); font-size: 13px; font-weight: 650; }
.chart-hit { fill: transparent; cursor: help; }
.chart-point:focus .chart-dot { stroke-width: 3; }
.ascension-chart svg:focus-visible { outline: 2px solid #96bcb0; outline-offset: 2px; }
.chart-readout { font-size: 12px; color: var(--muted); min-height: 22px; line-height: 1.7; white-space: normal; }
.compact .chart-readout { font-size: 10px; height: 48px; overflow-y: auto; }
.card-metric { display: grid; grid-template-columns: minmax(86px, auto) 210px; gap: 8px; align-items: center; }
.card-metric .rate-cell meter { display: none; }
.card-metric .ascension-chart.compact { margin-top: 0; }
.card-metric .compact .chart-readout { height: 16px; min-height: 16px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#table-wrap[data-view="cards"] th { padding: 8px 10px; }
#table-wrap[data-view="cards"] td { padding: 6px 10px; vertical-align: middle; }
#table-wrap[data-view="cards"] .cell-note { margin-top: 2px; }
#table-wrap[data-view="cards"] .low-sample { margin-top: 3px; padding: 1px 4px; }
#table-wrap[data-view="feedback"] td { white-space: normal; vertical-align: top; }
.chart-legend { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 7px; }
td { vertical-align: top; }
@media (max-width: 650px) {
  .results-panel > .section-top { flex-wrap: wrap; }
  .workspace { padding: 16px 12px; }
  .activity-charts { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 23px; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .header-actions .muted { width: 100%; }
  .ascension-navigation, .activity-panel, .results-panel { padding: 14px; }
  .ascension-panel { padding: 14px; }
  #ascension-pages { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .metric { padding: 14px; }
  .metric-value { font-size: 26px; }
  .metrics { gap: 10px; }
  .table-tools { align-items: stretch; flex-direction: column; gap: 8px; }
  .table-tools label { max-width: none; }
  .table-tools p { text-align: left; }
  .login-card { padding: 30px; }
}
