:root {
  --bg: #f4efe7;
  --surface: rgba(255, 250, 244, 0.9);
  --surface-strong: #fffdfa;
  --line: rgba(61, 48, 39, 0.12);
  --text: #2f241d;
  --muted: #6d5c50;
  --brand: #b2542d;
  --brand-deep: #6f3118;
  --accent: #e3c46f;
  --shadow: 0 18px 50px rgba(62, 39, 24, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans KR", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(227, 196, 111, 0.32), transparent 28%),
    radial-gradient(circle at right, rgba(178, 84, 45, 0.18), transparent 30%),
    linear-gradient(180deg, #f9f5ee 0%, var(--bg) 100%);
}

button,
a {
  font: inherit;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 40px;
}

.hero-header {
  padding: 20px 24px 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-deep);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.menu-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  position: relative;
}

.menu-item > button,
.single-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.menu-item:hover > button,
.menu-item:focus-within > button,
.single-link:hover,
.single-link:focus-visible {
  background: rgba(178, 84, 45, 0.1);
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 200px;
  list-style: none;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.98);
  box-shadow: 0 18px 35px rgba(61, 48, 39, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 10;
}

.menu-item:hover .dropdown,
.menu-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: rgba(227, 196, 111, 0.26);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  margin-top: 34px;
  align-items: end;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

.hero-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(111, 49, 24, 0.96), rgba(178, 84, 45, 0.88));
  color: #fff6ef;
}

.hero-card span,
.hero-card p {
  display: block;
  opacity: 0.9;
}

.hero-card strong {
  display: block;
  margin: 10px 0;
  font-size: 1.8rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  margin-top: 20px;
}

.quick-panel,
.workspace {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-panel {
  padding: 24px;
}

.quick-panel h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.quick-links {
  display: grid;
  gap: 10px;
}

.quick-links button,
.dash-card {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(178, 84, 45, 0.12);
  border-radius: 18px;
  background: var(--surface-strong);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.quick-links button:hover,
.dash-card:hover,
.quick-links button:focus-visible,
.dash-card:focus-visible {
  border-color: rgba(178, 84, 45, 0.35);
  box-shadow: 0 12px 24px rgba(95, 60, 39, 0.08);
  transform: translateY(-2px);
  outline: none;
}

.workspace {
  padding: 28px;
  min-height: 520px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
  animation: fade-up 0.24s ease;
}

.panel-head h2 {
  margin: 0 0 14px;
  font-size: 2rem;
  letter-spacing: -0.03em;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.dash-card strong,
.dash-card span {
  display: block;
}

.dash-card strong {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.placeholder-box,
.board-list,
.toolbox,
.status-box,
.file-list {
  margin-top: 22px;
  padding: 22px;
  border: 1px dashed rgba(111, 49, 24, 0.25);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.92);
}

.board-list {
  display: grid;
  gap: 12px;
}

.toolbox {
  display: grid;
  gap: 16px;
  border-style: solid;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.field legend {
  font-weight: 700;
}

.field small {
  color: var(--muted);
}

.field input[type="file"],
.field input[type="number"],
.field input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(61, 48, 39, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
}

.split-option.is-hidden {
  display: none;
}

.sheet-picker.is-hidden {
  display: none;
}

.sheet-picker {
  display: grid;
  gap: 14px;
}

.sheet-card {
  padding: 18px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 18px;
  background: rgba(255, 253, 250, 0.96);
}

.sheet-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.sheet-options {
  display: grid;
  gap: 10px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.action-row {
  display: flex;
  justify-content: flex-start;
}

.primary-button {
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
  color: #fff9f4;
  font-weight: 700;
  cursor: pointer;
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(111, 49, 24, 0.24);
  outline: none;
}

.status-box {
  border-style: solid;
  color: var(--muted);
}

.status-box.error {
  color: #8e2727;
  border-color: rgba(142, 39, 39, 0.28);
  background: rgba(255, 243, 243, 0.96);
}

.status-box.success {
  color: #1f6b42;
  border-color: rgba(31, 107, 66, 0.28);
  background: rgba(243, 255, 248, 0.96);
}

.file-list {
  display: grid;
  gap: 10px;
  border-style: solid;
}

.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(244, 239, 231, 0.85);
}

.file-chip strong {
  font-size: 0.96rem;
}

.file-chip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.board-row {
  display: grid;
  grid-template-columns: 72px 1fr 80px;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(244, 239, 231, 0.8);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(178, 84, 45, 0.14);
  color: var(--brand-deep);
  font-size: 0.84rem;
  font-weight: 700;
}

.badge.alt {
  background: rgba(227, 196, 111, 0.26);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .topbar,
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .menu-bar {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    margin-top: 10px;
  }

  .hero-header,
  .workspace,
  .quick-panel {
    border-radius: 22px;
  }

  .topbar {
    gap: 12px;
  }

  .menu-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-item > button,
  .single-link {
    width: 100%;
  }

  .dropdown {
    position: static;
    min-width: unset;
    margin-top: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .menu-item:hover .dropdown,
  .menu-item:focus-within .dropdown {
    display: block;
  }

  .dashboard-cards {
    grid-template-columns: 1fr;
  }

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