:root {
  --bg: #f6f4f1;
  --bg-panel: #ffffff;
  --bg-muted: #f0ede8;
  --fg: #1a2433;
  --fg-muted: #5f6b7a;
  --border: #e6e0d8;
  --gold: #ffb819;
  --navy: #0c2340;
  --pink: #ff48cc;
  --shadow: 0 8px 24px rgba(12, 35, 64, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Rubik", "Noto Sans TC", sans-serif;
  color: var(--fg);
  background: radial-gradient(circle at top right, rgba(255, 184, 25, 0.16), transparent 38%),
    radial-gradient(circle at top left, rgba(255, 72, 204, 0.12), transparent 40%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: linear-gradient(180deg, rgba(12, 35, 64, 0.98), rgba(12, 35, 64, 0.92));
  color: #f8f5f0;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1a1a1a;
}

.brand-title {
  font-weight: 700;
  font-size: 18px;
}

.brand-subtitle {
  font-size: 12px;
  color: rgba(248, 245, 240, 0.7);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(248, 245, 240, 0.75);
  transition: all 0.2s ease;
}

.nav-item:hover,
.nav-item.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.member {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.member-meta {
  font-size: 12px;
  color: rgba(248, 245, 240, 0.7);
}

.main {
  padding: 40px 48px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-head h1 {
  margin: 6px 0 8px;
  font-size: 32px;
}

.page-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-muted);
}

.page-desc {
  margin: 0;
  color: var(--fg-muted);
}

.head-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.session-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-muted);
}

.session-picker select {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  color: var(--fg);
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: stretch;
}

.hero h2 {
  margin: 12px 0;
  font-size: 26px;
}

.hero-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--fg-muted);
  font-size: 14px;
}

.hero-note {
  color: var(--fg-muted);
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.cover {
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 184, 25, 0.24), rgba(12, 35, 64, 0.08));
  border: 1px dashed rgba(12, 35, 64, 0.2);
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  font-weight: 500;
}

.status {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.status.upcoming {
  background: rgba(255, 184, 25, 0.2);
  color: #8a5a00;
}

.status.done {
  background: rgba(12, 35, 64, 0.12);
  color: #2e3b4f;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--gold);
  color: #1a1a1a;
  box-shadow: 0 6px 12px rgba(255, 184, 25, 0.3);
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
}

.btn.ghost {
  background: transparent;
  color: var(--fg-muted);
}

.btn.is-disabled,
.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.grid > .card {
  grid-column: span 6;
}

.grid > .card.wide {
  grid-column: span 12;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-head h3 {
  margin: 0;
}

.pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 184, 25, 0.2);
  font-size: 12px;
  font-weight: 600;
}

.pill.subtle {
  background: rgba(12, 35, 64, 0.08);
  color: var(--fg-muted);
}

.file-preview {
  height: 180px;
  border-radius: 14px;
  border: 1px dashed rgba(12, 35, 64, 0.2);
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  margin-bottom: 16px;
}

.card-actions {
  display: flex;
  gap: 12px;
}

.quote-card {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

.quote {
  font-weight: 500;
}

.quote-meta {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 6px 0;
}

.link {
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
}

.form-embed {
  margin-top: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(12, 35, 64, 0.2);
  padding: 32px;
  text-align: center;
  color: var(--fg-muted);
  background: var(--bg-muted);
}

.form-embed iframe {
  width: 100%;
  min-height: 520px;
  border: 0;
  border-radius: 10px;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-muted);
}

.file-list li.empty-state {
  justify-content: center;
  color: var(--fg-muted);
}

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

.photo {
  height: 120px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 184, 25, 0.24), rgba(12, 35, 64, 0.12));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 13px;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo.empty {
  grid-column: 1 / -1;
}

.notes {
  margin: 0;
  padding-left: 18px;
  color: var(--fg-muted);
}

.list .table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
}

.table .is-done {
  color: var(--fg-muted);
}

.table .is-upcoming {
  font-weight: 600;
}

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-footer {
    display: none;
  }

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

  .grid > .card {
    grid-column: span 12;
  }
}

@media (max-width: 680px) {
  .main {
    padding: 28px 20px 60px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .head-actions {
    flex-wrap: wrap;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
