﻿:root {
  color-scheme: light;
  --bg: oklch(1 0 0);
  --surface: oklch(0.985 0.008 252);
  --surface-strong: oklch(0.955 0.018 252);
  --ink: oklch(0.21 0.028 255);
  --muted: oklch(0.44 0.035 255);
  --line: oklch(0.89 0.018 252);
  --primary: oklch(0.54 0.18 255);
  --primary-dark: oklch(0.42 0.17 255);
  --accent: oklch(0.86 0.17 90);
  --accent-soft: oklch(0.96 0.06 90);
  --green: oklch(0.62 0.17 145);
  --red: oklch(0.58 0.2 30);
  --white: oklch(1 0 0);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 8px 24px oklch(0.21 0.028 255 / 0.08);
  --focus: 0 0 0 3px oklch(0.86 0.17 90 / 0.55);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, oklch(0.95 0.06 90 / 0.52), transparent 28rem),
    linear-gradient(180deg, oklch(0.99 0.004 252), var(--bg) 22rem);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  transform: translateY(-140%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: oklch(1 0 0 / 0.84);
  box-shadow: var(--shadow-soft);
}

.hero-copy {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.brand-dot-blue {
  background: var(--primary);
}

.brand-dot-yellow {
  background: var(--accent);
}

.brand-dot-green {
  background: var(--green);
}

.brand-dot-red {
  background: var(--red);
}

.kicker,
.panel-label {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 0.92rem;
  font-weight: 750;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.action-panel,
.guide-panel,
.toolbar,
.category {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.action-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 22px;
}

.save-state {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.summary-grid div {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.summary-grid span {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.summary-grid small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.35;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 750;
  transition: transform 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out;
}

.button:active {
  transform: translateY(1px);
}

.button.primary {
  background: var(--primary);
  color: var(--white);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  background: var(--white);
  color: var(--primary-dark);
  border-color: oklch(0.75 0.09 255);
}

.button.secondary:hover,
.button.ghost:hover {
  background: var(--surface);
}

.button.ghost {
  width: 100%;
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-top: 22px;
  padding: 18px;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 750;
}

.search-field input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
}

.search-field input::placeholder {
  color: oklch(0.5 0.035 255);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font-weight: 720;
  transition: background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}

.filter-button:hover {
  background: var(--surface);
}

.filter-button.active {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: oklch(0.8 0.12 90);
}

.content-grid {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.guide-panel {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 20px;
}

.guide-panel h2 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

.guide-panel p,
.guide-panel li {
  color: var(--muted);
  line-height: 1.65;
}

.guide-panel ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.checklist-list {
  display: grid;
  gap: 18px;
}

.category {
  overflow: clip;
}

.category-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.category-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
}

.category-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.items {
  display: grid;
}

.checklist-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease-out;
}

.checklist-item:last-child {
  border-bottom: 0;
}

.checklist-item:hover {
  background: oklch(0.99 0.004 252);
}

.checklist-item.is-checked {
  background: oklch(0.98 0.016 255);
}

.check-control {
  width: 22px;
  height: 22px;
  margin-top: 4px;
  accent-color: var(--primary);
}

.item-main {
  min-width: 0;
}

.item-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.item-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.item-keyword {
  color: var(--primary-dark);
  font-weight: 820;
}

.item-description {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.62;
}


.empty-state {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: min(360px, calc(100% - 40px));
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .app-shell {
    width: min(100% - 20px, 720px);
    padding-top: 16px;
  }

  .hero,
  .toolbar,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 20px;
  }

  .hero-copy {
    min-height: auto;
    padding: 8px 0 4px;
  }

  .guide-panel {
    position: static;
  }

  .toolbar {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .app-shell {
    width: min(100% - 16px, 520px);
  }

  .hero,
  .action-panel,
  .toolbar,
  .guide-panel {
    border-radius: var(--radius-md);
  }

  .hero {
    padding: 16px;
    gap: 16px;
  }

  .brand-row {
    margin-bottom: 14px;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.06;
  }

  .hero-text {
    margin-top: 16px;
    font-size: 1rem;
  }

  .action-panel {
    gap: 14px;
    padding: 16px;
  }

  .summary-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .summary-grid div {
    padding: 10px 8px;
  }

  .summary-grid span {
    font-size: 1.35rem;
  }

  .action-row {
    grid-template-columns: 1fr 1fr;
  }

  .button {
    min-height: 42px;
    padding: 10px 12px;
    font-size: 0.94rem;
  }

  .category-header {
    display: grid;
  }

  .checklist-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 16px;
  }

  .check-control {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: oklch(0.17 0.006 255);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.brand-logo-frame {
  width: 286px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  padding: 10px 14px;
  border: 1px solid oklch(0.9 0.01 255);
  border-radius: 12px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.76);
}

.brand-logo-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-meta {
  display: grid;
  gap: 2px;
  text-align: right;
}

.brand-meta span {
  color: oklch(0.86 0.17 90);
  font-size: 0.82rem;
  font-weight: 800;
}

.brand-meta strong {
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.instructor-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid oklch(0.88 0.08 90);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

.instructor-photo {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--white);
}

.instructor-label,
.instructor-name {
  margin: 0;
}

.instructor-label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.instructor-name {
  margin-top: 2px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

@media (max-width: 560px) {
  .brand-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
  }

  .brand-logo-frame {
    width: min(60vw, 230px);
    height: 52px;
    padding: 7px 9px;
    border-radius: 10px;
  }

  .brand-meta {
    text-align: right;
  }

  .brand-meta span {
    font-size: 0.72rem;
  }

  .brand-meta strong {
    font-size: 0.9rem;
  }

  .instructor-card {
    padding: 10px;
  }

  .instructor-photo {
    width: 52px;
    height: 52px;
  }
}
