: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;
  padding-top: 92px;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans CJK 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;
}

.topbar-fixed {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 244, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 26px rgba(62, 39, 24, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.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: 1fr;
  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;
}

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

.notice-banner {
  padding: 16px 18px;
  border: 1px solid rgba(178, 84, 45, 0.2);
  border-radius: 18px;
  background: rgba(255, 248, 241, 0.96);
  color: var(--brand-deep);
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.workspace {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.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;
}

.dash-card:hover,
.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;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

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

.info-card h3,
.policy-item h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.info-card p,
.policy-item p,
.rich-copy p {
  color: var(--muted);
}

.rich-copy,
.policy-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.review-content {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.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-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

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

.example-download {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 16px;
  background: rgba(255, 248, 241, 0.95);
}

.example-download strong {
  display: block;
  margin-bottom: 4px;
}

.example-download p {
  margin: 0;
  font-size: 0.93rem;
}

.example-download ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.guide-download {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(111, 49, 24, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 249, 243, 0.98), rgba(246, 236, 223, 0.95));
}

.guide-download strong {
  display: block;
  margin-bottom: 4px;
}

.guide-download p {
  margin: 0;
  font-size: 0.93rem;
}

.guide-download .secondary-button {
  flex-shrink: 0;
}

.template-library-meta {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.template-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.template-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.template-card p {
  margin: 0;
  color: var(--muted);
}

.template-card .badge {
  flex-shrink: 0;
}

.template-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.template-empty {
  margin-top: 18px;
  padding: 22px;
  border: 1px dashed rgba(111, 49, 24, 0.25);
  border-radius: 20px;
  background: rgba(255, 253, 250, 0.92);
  color: var(--muted);
}

.field input[type="file"],
.field input[type="number"],
.field input[type="text"],
.field input[type="date"] {
  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;
}

.workstat-result.is-hidden {
  display: none;
}

.workstat-result {
  margin-top: 22px;
}

.vacation-calc-result.is-hidden {
  display: none;
}

.vacation-calc-result {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.vacation-calc-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

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

.vacation-calc-card p {
  margin: 6px 0 0;
}

.vacation-calc-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(61, 48, 39, 0.08);
}

.vacation-calc-metric:last-child {
  border-bottom: 0;
}

.vacation-calc-metric strong {
  color: var(--brand-deep);
}

.workstat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.severance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.severance-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.severance-result.is-hidden {
  display: none;
}

.severance-result {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

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

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

.severance-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.severance-card p {
  margin: 6px 0 0;
}

.severance-metric {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(61, 48, 39, 0.08);
}

.severance-metric:last-child {
  border-bottom: 0;
}

.severance-metric strong {
  color: var(--brand-deep);
}

.severance-table-wrap {
  max-height: 420px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(61, 48, 39, 0.12);
  border-radius: 14px;
  background: #fff;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.result-table th,
.result-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(61, 48, 39, 0.1);
  text-align: left;
  white-space: nowrap;
}

.result-table th {
  position: sticky;
  top: 0;
  background: #fff7ef;
  color: var(--brand-deep);
  font-size: 0.88rem;
}

.result-table tbody tr:nth-child(even) {
  background: rgba(244, 239, 231, 0.42);
}

.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;
  gap: 12px;
}

.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;
}

.secondary-button {
  padding: 14px 20px;
  border: 1px solid rgba(111, 49, 24, 0.22);
  border-radius: 14px;
  background: #fffaf6;
  color: var(--brand-deep);
  font-weight: 700;
  cursor: pointer;
}

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

.secondary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand-deep);
  font-weight: 700;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  text-decoration: underline;
  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);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  padding: 18px 12px 4px;
  color: var(--muted);
}

.site-footer a {
  color: var(--brand-deep);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.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,
  .topbar-inner,
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-inner {
    display: grid;
  }

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

@media (max-width: 720px) {
  body {
    padding-top: 126px;
  }

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

  .hero-header,
  .workspace {
    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;
  }

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

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

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

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

  .vacation-calc-summary,
  .severance-grid,
  .severance-grid-compact,
  .severance-summary {
    grid-template-columns: 1fr;
  }

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

  .example-download {
    flex-direction: column;
    align-items: flex-start;
  }

  .example-download .secondary-button {
    width: 100%;
  }

  .guide-download {
    flex-direction: column;
  }

  .guide-download .secondary-button {
    width: 100%;
  }
}
