:root {
  --bg: #eef2ee;
  --ink: #17211c;
  --muted: #68746d;
  --surface: #fffdf7;
  --surface-soft: #f8f5ea;
  --line: #dfe4dc;
  --rail: #101916;
  --rail-soft: #18231f;
  --primary: #1f6f52;
  --primary-dark: #144934;
  --accent: #d7982f;
  --danger: #b42318;
  --warning: #a35c00;
  --ok: #176b43;
  --shadow: 0 18px 46px rgba(21, 35, 29, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "SUIT", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 540px at 88% -12%, rgba(215, 152, 47, 0.22), transparent 58%),
    radial-gradient(760px 500px at -8% 10%, rgba(31, 111, 82, 0.18), transparent 58%),
    linear-gradient(180deg, #f6f4ec 0%, var(--bg) 62%, #e8eee9 100%);
  line-height: 1.5;
}

a {
  color: inherit;
}

.page-shell {
  min-height: 100vh;
}

.menu-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(16, 25, 22, 0.92);
  color: #fffaf0;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(16, 25, 22, 0.24);
}

.menu-toggle__mark,
.menu-toggle__mark::before,
.menu-toggle__mark::after {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.menu-toggle__mark {
  position: relative;
}

.menu-toggle__mark::before,
.menu-toggle__mark::after {
  position: absolute;
  left: 0;
}

.menu-toggle__mark::before {
  top: -6px;
}

.menu-toggle__mark::after {
  top: 6px;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: min(330px, calc(100vw - 36px));
  padding: 22px;
  color: #fffaf0;
  background:
    linear-gradient(155deg, rgba(31, 111, 82, 0.28), transparent 44%),
    linear-gradient(180deg, var(--rail), var(--rail-soft));
  transform: translateX(-105%);
  transition: transform 180ms ease;
  box-shadow: 28px 0 60px rgba(16, 25, 22, 0.28);
  overflow-y: auto;
}

.sidebar-open .app-sidebar {
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 65;
  background: rgba(12, 18, 16, 0.42);
  backdrop-filter: blur(3px);
}

.app-sidebar__brand {
  padding: 10px 4px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.app-sidebar__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #e3b657;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.app-sidebar__brand strong {
  display: block;
  font-size: 1.75rem;
  letter-spacing: -0.04em;
}

.app-sidebar__brand small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 250, 240, 0.68);
}

.app-sidebar__nav,
.app-sidebar__extra {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.app-sidebar__link,
.app-sidebar .action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  color: #fffaf0;
  text-decoration: none;
  font-weight: 900;
}

.app-sidebar__link::after,
.app-sidebar .action::after {
  content: ">";
  color: rgba(255, 250, 240, 0.45);
}

.app-sidebar__link:hover,
.app-sidebar__link:focus-visible,
.app-sidebar .action:hover,
.app-sidebar .action:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(2px);
}

.app-sidebar__link--primary {
  background: #f0b84f;
  color: #1f1708;
}

.app-sidebar__link--primary::after {
  color: rgba(31, 23, 8, 0.55);
}

.app-sidebar__link--soft {
  background: rgba(240, 184, 79, 0.12);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 18px 42px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 33, 28, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  content: "";
}

.hero__inner {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: 30px;
  background: rgba(255, 253, 247, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 9vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  word-break: keep-all;
}

.hero p {
  word-break: keep-all;
}

#site-subtitle {
  max-width: 620px;
  margin: 18px 0 0;
  color: #435047;
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  font-weight: 700;
}

.updated {
  display: inline-flex;
  margin: 20px 0 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.site-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-switch__select {
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 34px;
  padding: 4px 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.9rem;
}

.container {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 10px 18px 18px;
}

.primary-cta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  margin: -18px 0 26px;
  padding: 22px;
  border: 1px solid rgba(215, 152, 47, 0.3);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(255, 243, 202, 0.9)),
    var(--surface);
  box-shadow: var(--shadow);
}

.primary-cta__eyebrow {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.primary-cta h2 {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2.3rem);
  letter-spacing: -0.055em;
}

.primary-cta p {
  margin: 7px 0 0;
  color: var(--muted);
  font-weight: 700;
  word-break: keep-all;
}

.primary-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--primary-dark);
  border-radius: 999px;
  background: var(--primary-dark);
  color: #fffaf0;
  text-decoration: none;
  font-weight: 950;
  white-space: nowrap;
}

.primary-cta__button--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--primary-dark);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.quick-actions--extra {
  margin-top: 0;
  margin-bottom: 0;
}

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--primary);
  text-decoration: none;
  font-weight: 900;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action:hover,
.action:focus-visible {
  transform: translateY(-1px);
  background: #fffaf0;
}

.action:focus-visible,
.app-sidebar__link:focus-visible,
.menu-toggle:focus-visible,
.calendar-nav__btn:focus-visible {
  outline: 3px solid rgba(31, 111, 82, 0.26);
  outline-offset: 3px;
}

.section {
  margin: 24px 0;
}

.section__title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section__title h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.32rem, 3vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.section__title span {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.calendar-wrap {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.86);
  padding: 14px;
  box-shadow: var(--shadow);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-nav__btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 900;
}

.calendar-nav__btn:hover {
  background: #fff7e6;
}

.calendar-month-label {
  flex: 1;
  color: var(--ink);
  text-align: center;
  font-size: 1.02rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.calendar-weekday {
  padding: 4px 0;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-cell {
  display: flex;
  min-height: 96px;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffefa;
}

.calendar-cell--empty {
  background: var(--surface-soft);
  border-style: dashed;
  opacity: 0.65;
}

.calendar-cell__day {
  color: var(--muted);
  text-align: right;
  font-size: 0.75rem;
  font-weight: 900;
}

.calendar-cell__day--today {
  color: var(--primary-dark);
}

.calendar-cell__content {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}

.calendar-item {
  display: block;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid #e7dfca;
  border-radius: 11px;
  background: #f7f2e2;
  color: var(--ink);
  font-size: 0.74rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

.calendar-item--leave {
  background: #fff0df;
  border-color: #f3d0a9;
}

.calendar-item--leave-approved {
  background: #e7f8ee;
  border-color: #bfe8cf;
  color: #1f5f3a;
}

.calendar-item--leave-pending {
  background: #fff3ca;
  border-color: #efd488;
  color: #725100;
}

.calendar-item--environment {
  background: #eef8f0;
  border-color: #d2ead8;
}

.calendar-item--event {
  background: #edf4ff;
  border-color: #d3e2f5;
}

.calendar-item__title {
  display: block;
  font-weight: 900;
  line-height: 1.3;
}

.calendar-item__meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.guide-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}

.guide-panel h3 {
  margin: 0 0 8px;
}

.guide-panel ul,
.guide-panel ol {
  margin: 0;
  padding-left: 20px;
}

.guide-panel li {
  margin-bottom: 6px;
  line-height: 1.45;
}

.card-list {
  display: grid;
  gap: 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  box-shadow: var(--shadow);
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.card:hover,
.card:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(32, 17, 54, 0.12);
}

.card__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  margin-bottom: 8px;
}

.card__title {
  margin: 0;
  font-size: 1.08rem;
  word-break: keep-all;
}

.card__date {
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.card__body {
  margin: 8px 0 0;
  color: #3a303f;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: #f1e4f5;
  color: var(--primary-dark);
  white-space: nowrap;
  margin-bottom: 8px;
}

.badge--danger {
  background: #ffe3e3;
  color: var(--danger);
}

.badge--warning {
  background: #fff0ce;
  color: var(--warning);
}

.badge--ok {
  background: #daf4e8;
  color: var(--ok);
}

.empty {
  padding: 18px;
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--muted);
  border: 1px dashed var(--line);
}

.empty + .empty {
  margin-top: 10px;
}

.footer {
  padding: 22px 18px 40px;
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(23, 33, 28, 0.08);
  margin-top: 10px;
}

.footer p {
  margin: 4px 0;
}

@media (min-width: 960px) {
  .menu-toggle {
    top: 22px;
    left: 22px;
  }
}

@media (min-width: 720px) {
  .primary-cta {
    grid-template-columns: 1fr auto;
  }

  .quick-actions {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 560px) {
  .hero {
    padding: 78px 12px 28px;
  }

  .hero__inner {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .calendar-wrap {
    padding: 10px;
    border-radius: 18px;
  }

  .calendar {
    gap: 5px;
  }

  .calendar-cell {
    min-height: 86px;
    padding: 5px;
  }

  .calendar-item {
    font-size: 0.68rem;
    padding: 3px 6px;
  }
}
