/*
 * Adapted from daifugoh_mp/apps/admin/src/index.css,
 * daifugoh_mp/apps/admin/src/components/Shell.module.css, and
 * daifugoh_mp/apps/admin/src/pages/LoginPage.module.css at
 * bbd49a8ac6b8ba86c6d79e0ef6861bd0727cce63.
 *
 * Product copy, role hierarchy, API routes, auth state and domain behavior are
 * Luna Divide-owned. The canvas, surface, sidebar, navigation, typography,
 * density and responsive shell are provenance-tracked Daifugoh UI patterns.
 */
:root {
  color: #111827;
  background: #f3f4f6;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-synthesis: none;
  line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select { font: inherit; }
button, select, input { min-height: 38px; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
button:disabled { cursor: not-allowed; opacity: .6; }

.login-shell {
  align-items: center;
  background: #f3f4f6;
  display: grid;
  min-height: 100vh;
  padding: 20px;
  place-items: center;
}
.login-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
  display: grid;
  gap: 16px;
  max-width: 400px;
  padding: 2rem;
  width: 100%;
}
.login-card form, .toolbar, .subpanel form { display: grid; gap: 12px; }
.login-heading { align-items: center; display: flex; gap: 12px; }
.login-heading h1 { font-size: 1.25rem; }
.login-heading p {
  color: #6b7280;
  font-size: .82rem;
  margin: 2px 0 0;
}
.login-brand-icon {
  color: #1d4ed8;
  font-size: 2rem;
  line-height: 1;
}
.login-help { color: #6b7280; font-size: .82rem; margin: 0; }
.login-card .validation:empty { display: none; }
.login-locale { border-block-start: 1px solid #e5e7eb; padding-block-start: 12px; }

.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  background: #111827;
  color: #e5e7eb;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-width: 0;
  overflow: hidden;
  position: sticky;
  top: 0;
}
.brand {
  align-items: center;
  border-block-end: 1px solid #1f2937;
  display: flex;
  font-size: .9375rem;
  font-weight: 700;
  gap: .5rem;
  margin: 0 0 .5rem;
  min-height: 58px;
  padding: 0 1rem;
}
.brand-icon { font-size: 1.25rem; }
.brand-text { min-width: 0; overflow-wrap: anywhere; }
.brand small { color: #9ca3af; display: block; font-size: .7rem; font-weight: 500; }
.nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow-y: auto;
  padding: .5rem;
}
.nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #d1d5db;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: .8125rem;
  font-weight: 500;
  gap: .5rem;
  justify-content: flex-start;
  min-height: 36px;
  padding: .5rem .75rem;
  text-align: start;
  width: 100%;
}
.nav button:hover { background: #1f2937; color: #f9fafb; }
.nav button[aria-current="page"] { background: #1d4ed8; color: #fff; }
.nav button[aria-current="page"]:hover { background: #1e40af; }
.nav-icon {
  flex: 0 0 1rem;
  font-size: .75rem;
  text-align: center;
  width: 1rem;
}
.nav-label { min-width: 0; white-space: nowrap; }
.nav-group + .nav-group { border-block-start: 1px solid #1f2937; margin-block-start: .5rem; padding-block-start: .5rem; }
.nav-group-title {
  color: #9ca3af;
  display: block;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: .25rem .75rem;
  text-transform: uppercase;
}
.nav-pending {
  border: 1px solid #4b5563;
  border-radius: 999px;
  color: #d1d5db;
  flex: 0 0 auto;
  font-size: .625rem;
  margin-inline-start: auto;
  padding: .0625rem .375rem;
}
.side-note {
  border-block-start: 1px solid #1f2937;
  color: #9ca3af;
  font-size: .75rem;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
  padding: 1rem;
}
.side-note strong { color: #f9fafb; display: block; font-size: .8125rem; }
.side-note button {
  background: transparent;
  border: 1px solid #4b5563;
  border-radius: 4px;
  color: #d1d5db;
  cursor: pointer;
  margin-block-start: .5rem;
  min-height: 30px;
  padding: .375rem;
  width: 100%;
}
.side-note button:hover { background: #1f2937; color: #f9fafb; }

.main {
  background: #f3f4f6;
  min-width: 0;
  padding: 1.5rem;
}
.top, .section-heading {
  align-items: start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}
.top { margin-block-end: 1rem; }
.top > *, .section-heading > * { min-width: 0; }
.page-heading { display: grid; gap: 3px; max-width: min(78rem, 100%); }
.page-title-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.connection-note {
  color: #6b7280;
  font-size: .82rem;
  line-height: 1.45;
  margin: 4px 0 0;
}
h1 { color: #111827; font-size: 1.75rem; line-height: 1.25; margin: 0; }
h2 { color: #111827; font-size: 1.05rem; margin: 0 0 10px; }
h3 { color: #1f2937; font-size: .9rem; margin: 16px 0 7px; }
h4 { color: #374151; margin-block-end: 6px; }
p { line-height: 1.55; }
.eyebrow {
  color: #2563eb;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  margin: 0 0 3px;
  text-transform: uppercase;
}
.subtle, .meta { color: #6b7280; font-size: .82rem; }
.badge, .tag {
  border-radius: 999px;
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  padding: 3px 8px;
}
.badge { background: #dbeafe; color: #1d4ed8; }
.locale { display: flex; flex-wrap: wrap; gap: 6px; }
.locale button, .outline, .state-switch button {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  cursor: pointer;
  padding: 7px 10px;
}
.locale button:hover, .outline:hover, .state-switch button:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.locale button[aria-pressed="true"], .state-switch button[aria-pressed="true"] {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}
.primary {
  background: #1d4ed8;
  border: 1px solid #1d4ed8;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  padding: 7px 12px;
}
.primary:hover { background: #1e40af; border-color: #1e40af; }
.notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-inline-start: 4px solid #2563eb;
  border-radius: 6px;
  color: #1e3a8a;
  margin: 0 0 1rem;
  padding: 10px 12px;
}
.notice.compact { font-size: .82rem; margin: 10px 0; }
.action-feedback {
  border-radius: 6px;
  font-size: .82rem;
  margin: 8px 0 0;
  padding: 7px 9px;
}
.action-feedback.success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.action-feedback.error { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.confirm-dialog {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgb(15 23 42 / .28);
  color: #111827;
  max-inline-size: min(560px, calc(100vw - 32px));
  padding: 0;
}
.confirm-dialog::backdrop { background: rgb(15 23 42 / .48); }
.confirm-dialog form { min-inline-size: min(500px, calc(100vw - 32px)); }
.confirm-dialog h2 { font-size: 1.06rem; margin: 0; padding: 20px 22px 0; }
.confirm-dialog-body { display: grid; gap: 14px; padding: 14px 22px 20px; }
.confirm-dialog-body > p { color: #374151; margin: 0; }
.confirm-dialog-body label { display: grid; font-size: .86rem; font-weight: 700; gap: 6px; }
.confirm-dialog-body textarea,
.confirm-dialog-body input { inline-size: 100%; }
.confirm-dialog-facts {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: grid;
  font-size: .86rem;
  gap: 5px 12px;
  grid-template-columns: auto minmax(0, 1fr);
  margin: 0;
  padding: 12px;
}
.confirm-dialog-facts dt { color: #475569; font-weight: 700; }
.confirm-dialog-facts dd { margin: 0; overflow-wrap: anywhere; }
.confirm-dialog-actions { border-top: 1px solid #e5e7eb; display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px; }

.state-switch, .filters, .radio-group { border: 0; margin: 0; padding: 0; }
.state-switch {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block-end: 14px;
}
.state-switch legend, .filters legend, .radio-group legend {
  color: #6b7280;
  font-size: .75rem;
  font-weight: 700;
  margin-block-end: 6px;
  width: 100%;
}
.state-panel, .card, .subpanel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
  min-width: 0;
  padding: 1rem;
}
.state-panel p { margin-block-end: 0; }
.danger-panel { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.warning-panel { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.auth-panel { max-width: 620px; }
.auth-panel form { display: grid; gap: 14px; margin-block-start: 18px; }
.auth-panel button { justify-self: start; }

.toolbar {
  align-items: end;
  grid-template-columns: minmax(240px, 1fr) auto;
}
.toolbar p { grid-column: 1 / -1; margin: 0; }
label { color: #374151; display: grid; font-size: .82rem; font-weight: 600; gap: 5px; }
select, input, textarea {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #111827;
  inline-size: 100%;
  padding: 7px 9px;
}
textarea {
  font: inherit;
  line-height: 1.5;
  max-inline-size: 100%;
  resize: vertical;
}
select:hover, input:hover, textarea:hover { border-color: #9ca3af; }

.audit-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, .72fr) minmax(520px, 1.45fr);
}
.case-list { position: sticky; top: 20px; }
.filters {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-block-end: 14px;
}
.case-items {
  display: grid;
  gap: 8px;
  max-height: min(62vh, 680px);
  overflow: auto;
  padding: 2px;
}
.case-item, .directory-item {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #111827;
  cursor: pointer;
  display: grid;
  gap: 5px;
  inline-size: 100%;
  padding: 11px;
  text-align: start;
}
.case-item:hover, .directory-item:hover { background: #f9fafb; border-color: #93c5fd; }
.case-item[aria-pressed="true"], .directory-item[aria-pressed="true"] {
  background: #eff6ff;
  border-color: #2563eb;
  box-shadow: inset 3px 0 #2563eb;
}
.case-main, .chips {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: space-between;
}
.case-item strong, .directory-item strong { overflow-wrap: anywhere; }
.empty-inline { background: #f9fafb; border-radius: 6px; color: #6b7280; padding: 12px; }

.detail-card, .directory-detail {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
.detail-card > .section-heading h2 { margin: 0; overflow-wrap: anywhere; }
.tag { background: #f3f4f6; border: 1px solid #d1d5db; color: #374151; }
.severity-low { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.severity-medium, .proposal-tag { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.severity-high, .severity-critical {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.severity-critical { box-shadow: inset 0 0 0 1px #ef4444; }
.hold { background: #faf5ff; border-color: #d8b4fe; color: #7e22ce; }
.advisory { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.facts {
  display: grid;
  gap: 8px 14px;
  grid-template-columns: minmax(125px, .5fr) minmax(0, 1fr);
  margin: 0;
}
.facts dt { color: #6b7280; font-weight: 600; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.compact-value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.compact-value-list li {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  color: #374151;
  font-size: .72rem;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 2px 7px;
}
.summary-facts { background: #f9fafb; border-radius: 6px; padding: 12px; }
.subpanel { background: #f9fafb; box-shadow: none; }
.subpanel h2 { margin-block-end: 8px; }
.detail-section-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}
.detail-section-grid > .subpanel { min-height: 100%; }
.detail-section-grid > .detail-section-wide { grid-column: 1 / -1; }
.detail-section-grid .timeline-list {
  max-height: 260px;
  overflow: auto;
  padding-inline-end: 2px;
}
.evidence-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(250px, .85fr) minmax(260px, 1.15fr);
}
.evidence-group { border-block-start: 1px solid #e5e7eb; padding-block-start: 10px; }
.evidence-group:first-child { border-block-start: 0; padding-block-start: 0; }
.evidence-group h3 { color: #6b7280; margin: 0 0 4px; }
.evidence-group p, .state-copy { margin: 0; overflow-wrap: anywhere; }
.decision-options { display: flex; flex-wrap: wrap; gap: 7px; }
.disabled-choice, .pending-information-placeholder {
  background: #f9fafb;
  border: 1px dashed #9ca3af;
  border-radius: 6px;
  color: #4b5563;
  padding: 7px 9px;
}

.timeline-list {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  min-width: 0;
  padding: 0;
}
.timeline-list li {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-inline-start: 3px solid #3b82f6;
  border-radius: 4px;
  min-width: 0;
  padding: 8px 10px;
}
.timeline-list li strong, .timeline-list li span, .timeline-list li p { overflow-wrap: anywhere; }
.timeline-list li span { color: #6b7280; display: block; font-size: .75rem; margin-block-start: 2px; }
.timeline-list li p { margin: 5px 0 0; }

.page-stack, .directory-stack {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.settings-stack {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}
.settings-stack > .card:last-child { grid-column: 1 / -1; }
.directory-detail > .timeline-list {
  max-height: 360px;
  overflow: auto;
  padding-inline-end: 2px;
}
.settings-current-grid, .form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.operation-editor > .schedule-fields { grid-column: 1 / -1; }
.schedule-fields {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  min-inline-size: 0;
  padding: 12px;
}
.schedule-fields legend { color: #374151; font-size: .82rem; font-weight: 700; padding-inline: 4px; }
.schedule-fields label:nth-last-child(-n + 2) { grid-column: span 1; }
.checkbox-field { align-items: start; grid-template-columns: minmax(0, 1fr) auto; }
.checkbox-field input { inline-size: 20px; min-height: 20px; margin-block-start: 2px; }
.form-actions { align-self: end; }
.operation-cell { min-width: 260px; }
.operation-cell > details { margin-block-start: 10px; }
.setting-current, .form-grid form {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  min-width: 0;
  padding: 13px;
}
.form-grid form h3 { margin-block-start: 0; }
.workflow-form {
  grid-column: 1 / -1;
}
.workflow-form .form-grid {
  margin-block: 14px;
}
.workflow-form .form-grid label,
.inline-workflow label {
  display: grid;
  gap: 5px;
}
.inline-workflow {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block-start: 10px;
}
.inline-workflow input {
  min-width: 180px;
}
.legal-editor {
  margin-block-start: 16px;
}
.legal-editor form {
  display: grid;
  gap: 14px;
}
.detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.legal-locales fieldset {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  display: grid;
  gap: 12px;
  margin: 0;
  min-inline-size: 0;
  padding: 12px;
}
.legal-locales legend {
  color: #1f2937;
  font-size: .9rem;
  font-weight: 700;
  padding-inline: 5px;
}
.legal-markdown-preview {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  line-height: 1.55;
  margin: 0;
  max-block-size: 360px;
  overflow: auto;
  overflow-wrap: anywhere;
  padding: 10px;
}
.legal-markdown-preview > :first-child {
  margin-block-start: 0;
}
.legal-markdown-preview > :last-child {
  margin-block-end: 0;
}
.legal-markdown-preview a {
  overflow-wrap: anywhere;
}
.radio-group { display: grid; gap: 8px; margin-block: 16px; }
.radio-group label { align-items: center; display: flex; min-height: 38px; }
.radio-group input { inline-size: 20px; min-height: 20px; }
.impact, .partial-panel {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-inline-start: 3px solid #f59e0b;
  border-radius: 6px;
  color: #92400e;
  padding: 10px;
}
.impact { margin-block: 12px; }
.impact p, .partial-panel p { margin: 5px 0 0; }
.validation { color: #b91c1c; min-height: 1.5em; }
.fixture-block { color: #92400e; font-size: .78rem; font-weight: 700; }

.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; min-width: 680px; width: 100%; }
th, td {
  border-block-end: 1px solid #e5e7eb;
  padding: 9px;
  text-align: start;
  vertical-align: top;
}
th { background: #f9fafb; color: #4b5563; font-size: .75rem; }
td { font-size: .82rem; overflow-wrap: anywhere; }

.proposal-header p:last-child { margin-block-end: 0; }
.directory-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, .72fr) minmax(460px, 1.28fr);
}
.directory-list { position: sticky; top: 20px; }
.player-management-list { display: grid; gap: 16px; }
.player-id-lookup { grid-template-columns: minmax(240px, .6fr) auto; }
.player-detail-page { display: grid; gap: 16px; max-width: 1200px; }
.back-link { justify-self: start; }
.player-detail-heading { margin: 0; }
.player-detail-summary, .player-detail-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.player-detail-summary > .card, .player-detail-sections > .card { min-width: 0; }
.player-detail-actions { max-width: 760px; }
.compact { font-size: .78rem; padding: 6px 8px; white-space: nowrap; }
.proposal-search { display: grid; gap: 10px; margin-block: 14px; }
.proposal-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.proposal-grid.two-column { align-items: stretch; }
.proposal-field {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 11px;
}
.proposal-field span { color: #6b7280; font-size: .78rem; }
.proposal-field strong { color: #111827; overflow-wrap: anywhere; }
.proposal-card { min-height: 100%; }

.workflow {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.workflow li {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  min-width: 0;
  padding: 10px;
}
.workflow li:not(:last-child) { position: relative; }
.workflow li:not(:last-child)::after {
  color: #9ca3af;
  content: "→";
  font-size: 1rem;
  inset-inline-end: -10px;
  position: absolute;
  top: 16px;
  z-index: 1;
}
.step-number {
  align-items: center;
  background: #dbeafe;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  height: 22px;
  justify-content: center;
  margin-block-end: 7px;
  width: 22px;
}
.workflow p { color: #4b5563; font-size: .75rem; margin: 5px 0 0; }

.pending-features { border-color: #fde68a; padding: 0; }
.pending-features-disclosure > p { color: #6b7280; margin: 0 0 14px; }
.pending-features-disclosure > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 12px 14px;
}
.pending-features-disclosure > summary::-webkit-details-marker { display: none; }
.pending-features-disclosure > summary::before { color: #92400e; content: "▸"; font-size: .8rem; }
.pending-features-disclosure[open] > summary { border-block-end: 1px solid #fde68a; }
.pending-features-disclosure[open] > summary::before { content: "▾"; }
.pending-features-disclosure > summary > span:first-child { display: grid; gap: 2px; margin-inline-end: auto; }
.pending-features-disclosure > summary .eyebrow { margin: 0; }
.pending-features-disclosure > p, .pending-features-disclosure > .pending-feature-groups { margin-inline: 14px; }
.pending-features-disclosure > .pending-feature-groups { margin-block-end: 14px; }
.pending-feature-groups { display: grid; gap: 10px; }
.pending-feature-group {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  min-width: 0;
  overflow: hidden;
}
.pending-feature-group-heading {
  align-items: start;
  background: #fffbeb;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 12px;
}
.pending-feature-group-heading h3 { margin: 0 0 3px; }
.pending-feature-group-heading p { margin: 0; }
.pending-feature-list { display: grid; list-style: none; margin: 0; padding: 0; }
.pending-feature-item {
  align-items: center;
  border-block-start: 1px solid #e5e7eb;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, .9fr) minmax(220px, 1.1fr);
  min-width: 0;
  padding: 9px 12px;
}
.pending-feature-item:first-child { border-block-start: 0; }
.pending-feature-copy { display: grid; gap: 3px; min-width: 0; }
.pending-feature-copy strong, .pending-feature-copy span { overflow-wrap: anywhere; }
.pending-feature-control { justify-self: start; text-align: start; }
.nav-dashboard { margin-block-end: .5rem; }
.overview-intro { border-inline-start: 4px solid #2563eb; }
.overview-intro h2 { margin-block-end: .35rem; }
.overview-intro p { margin: 0; color: #4b5563; }
.overview-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-card { display: grid; align-content: start; gap: 10px; min-height: 220px; }
.overview-card h2 { margin: 0; font-size: 1rem; }
.overview-card p { margin: 0; }
.overview-card .outline { justify-self: start; margin-block-start: auto; }
.overview-facts { display: grid; gap: 7px 16px; grid-template-columns: minmax(0, 1fr) auto; margin: 0; }
.overview-facts dt { color: #6b7280; font-weight: 600; }
.overview-facts dd { font-size: 1.08rem; font-weight: 700; margin: 0; text-align: end; }
.overview-observed { color: #6b7280; font-size: .82rem; }
@media (max-width: 1080px) {
  .audit-layout { grid-template-columns: 1fr; }
  .case-list, .directory-list { position: static; }
  .case-items { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }
  .directory-layout { grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr); }
  .workflow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-grid { grid-template-columns: minmax(0, 1fr); }
  .workflow li:nth-child(3)::after { content: none; }
}

/* PCの狭いwindowと200%拡大向け。Tablet / Mobile対応を意図しない。 */
@media (max-width: 900px) and (hover: hover) and (pointer: fine) {
  .shell { grid-template-columns: 1fr; }
  .side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    overflow: hidden;
    padding: .5rem;
    position: static;
  }
  .brand {
    border-block-end: 0;
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    min-height: 42px;
    padding: 0 .5rem;
  }
  .nav {
    display: flex;
    flex-direction: row;
    gap: 4px;
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0 0 4px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { flex: 0 0 auto; min-width: max-content; scroll-snap-align: start; width: auto; }
  .nav-group { align-items: center; display: flex; flex: 0 0 auto; gap: 4px; }
  .nav-dashboard { margin-block-end: 0; }
  .nav-group + .nav-group { border-block-start: 0; margin-block-start: 0; padding-block-start: 0; }
  .nav-group-title { padding-inline: .25rem; white-space: nowrap; }
  .nav-icon { display: none; }
  .side-note {
    align-items: center;
    border-block-start: 0;
    display: flex;
    gap: .5rem;
    grid-column: 2;
    grid-row: 1;
    padding: 0 .5rem;
  }
  .side-note span { display: none; }
  .side-note button { margin: 0; white-space: nowrap; width: auto; }
  .main {
    padding: 1rem 14px 30px;
  }
  .case-items, .settings-current-grid, .form-grid, .evidence-grid,
  .proposal-grid, .workflow, .directory-layout, .settings-stack,
  .detail-section-grid, .detail-grid, .player-detail-summary, .player-detail-sections {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-section-grid > .detail-section-wide { grid-column: auto; }
  .settings-stack > .card:last-child { grid-column: auto; }
  .directory-list { max-height: min(42vh, 360px); overflow: auto; }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .player-id-lookup { grid-template-columns: minmax(0, 1fr); }
  .pending-feature-item { grid-template-columns: minmax(0, 1fr) minmax(180px, .8fr); }
  .facts { grid-template-columns: 1fr; }
  .facts dt { margin-block-end: -5px; }
  .workflow li::after { content: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
