:root {
  color-scheme: dark;
  --ink: #05060b;
  --surface: rgba(13, 18, 31, 0.88);
  --surface-2: rgba(20, 29, 49, 0.82);
  --line: rgba(148, 163, 184, 0.18);
  --blue: #3b82f6;
  --gold: #f59e0b;
  --cyan: #67e8f9;
  --text: #e5e7eb;
  --muted: #a7b0c0;
  --danger: #fb7185;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.18), transparent 34%),
    radial-gradient(circle at 0% 100%, rgba(103, 232, 249, 0.08), transparent 34%),
    var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }
button { color: inherit; }
.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0 36px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 14px 18px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 24px;
  background: rgba(4, 6, 12, 0.86);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand img { width: 250px; height: auto; display: block; }
.brand span { padding-left: 16px; border-left: 1px solid rgba(245, 158, 11, 0.32); color: var(--muted); font-size: 12px; letter-spacing: 0.08em; }
.product-name { display: grid; justify-items: end; gap: 4px; text-align: right; }
.product-name strong { color: var(--gold); letter-spacing: 0.11em; }
.product-name span { color: var(--muted); font-size: 12px; }

.notice { margin: 16px 0; padding: 12px 16px; border: 1px solid rgba(103, 232, 249, 0.22); border-radius: 14px; background: rgba(103, 232, 249, 0.06); color: #c7f8ff; font-size: 14px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.tabs button, .primary, .status-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 20, 34, 0.9);
  padding: 9px 14px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { border-color: rgba(245, 158, 11, 0.6); color: #fff0c2; background: rgba(245, 158, 11, 0.12); }
.tabs button:hover, .status-button:hover { border-color: rgba(59, 130, 246, 0.65); }
button:focus-visible, input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.tab-panel {
  margin-top: 14px;
  min-height: 560px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(16, 22, 38, 0.95), rgba(7, 9, 17, 0.92));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}
.section-head { display: flex; justify-content: space-between; align-items: start; gap: 22px; margin-bottom: 24px; }
.eyebrow, .label { margin: 0 0 8px; color: var(--cyan); font-size: 11px; font-weight: 800; letter-spacing: 0.16em; }
.label.gold { color: var(--gold); }
h1 { margin: 0; font-size: clamp(34px, 5vw, 56px); line-height: 1; letter-spacing: -0.04em; }
h2 { margin: 8px 0 14px; }
p { color: var(--muted); line-height: 1.55; }
.status-badge { border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 999px; padding: 8px 12px; color: #ffe8a3; background: rgba(245, 158, 11, 0.08); }

.meta-grid, .register-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.meta-grid article, .panel, .check-card, .action-card, .report-output {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.meta-grid article { display: grid; gap: 8px; padding: 18px; }
small, dt { color: var(--muted); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.summary-grid article { display: grid; gap: 4px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.summary-grid strong { font-size: 30px; }
.summary-grid .good strong { color: #86efac; }
.summary-grid .partial strong { color: #fde68a; }
.summary-grid .action strong { color: var(--danger); }
.summary-grid .unknown strong { color: var(--cyan); }
.primary { border-color: rgba(59, 130, 246, 0.7); background: linear-gradient(135deg, #2563eb, #3b82f6); font-weight: 800; }

.check-list, .action-list { display: grid; gap: 12px; }
.check-card, .action-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; padding: 18px; }
.check-card h2, .action-card h2 { margin: 0 0 5px; font-size: 18px; }
.check-card p, .action-card p { margin: 0; }
.status-button { min-width: 160px; font-weight: 750; }
.status-confirmed { color: #a7f3d0; border-color: rgba(52, 211, 153, 0.36); }
.status-partial { color: #fde68a; border-color: rgba(245, 158, 11, 0.42); }
.status-action { color: #fda4af; border-color: rgba(251, 113, 133, 0.42); }
.status-unknown { color: #a5f3fc; border-color: rgba(103, 232, 249, 0.35); }

.panel { padding: 20px; }
dl { margin: 0; display: grid; gap: 11px; }
dl div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
dd { margin: 0; }
.action-card { grid-template-columns: auto 1fr; }
.action-card input { width: 22px; height: 22px; accent-color: var(--gold); }
.action-card.complete h2 { text-decoration: line-through; color: var(--muted); }

.report-output { padding: 24px; background: rgba(6, 8, 15, 0.96); }
.report-output header { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.report-output section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.report-output h2, .report-output h3 { margin: 0 0 8px; }
.report-output p { margin: 0; }

footer { padding: 22px 8px 0; color: #8e98aa; font-size: 12px; text-align: center; }

@media (max-width: 760px) {
  .shell { width: min(100% - 20px, 1180px); padding-top: 10px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .brand { width: 100%; align-items: flex-start; flex-direction: column; }
  .brand img { width: min(100%, 280px); }
  .brand span { padding: 10px 0 0; border-left: 0; border-top: 1px solid rgba(245, 158, 11, 0.32); }
  .product-name { justify-items: start; text-align: left; }
  .tabs { display: grid; grid-template-columns: repeat(2, 1fr); }
  .tab-panel { min-height: 0; padding: 20px; }
  .meta-grid, .register-grid, .summary-grid { grid-template-columns: 1fr; }
  .check-card { grid-template-columns: 1fr; }
  .status-button { width: 100%; }
  dl div { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
