:root {
  --bg: #ede8d9;
  --surface: #fffaf0;
  --surface-2: #f1e7d2;
  --text: #22231d;
  --muted: #756e60;
  --line: #d3c2a4;
  --green: #28604a;
  --green-2: #e2ead8;
  --pink: #c74872;
  --blue: #315f86;
  --wood: #5e4630;
  --wood-dark: #171913;
  --dancheong-red: #b74848;
  --dancheong-gold: #c99b45;
  --hanji: #fff8e8;
  --ink: #191b15;
  --shadow: 0 22px 60px rgba(42, 34, 22, .16);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  position: relative;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18px 18px, rgba(44, 40, 30, .045) 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(23, 25, 19, .13), transparent 22%, transparent 84%, rgba(183, 72, 72, .06)),
    var(--bg);
  background-size: 34px 34px, 100% 100%, auto;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
body.railCollapsed {
  grid-template-columns: 128px minmax(0, 1fr);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.forestScene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(23, 25, 19, .16), transparent 22%, transparent 78%, rgba(58, 87, 56, .14)),
    radial-gradient(circle at 78% 15%, rgba(116, 132, 76, .16), transparent 28%),
    radial-gradient(circle at 14% 88%, rgba(55, 81, 42, .12), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 239, .68), rgba(237, 232, 217, .80));
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  background-position: center;
}
.forestScene::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .22;
  background-image:
    linear-gradient(90deg, rgba(43, 40, 33, .04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(43, 40, 33, .035) 1px, transparent 1px);
  background-size: 92px 100%, 100% 42px;
  mix-blend-mode: multiply;
}
.forestScene::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 88%, rgba(55, 81, 42, .12), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(116, 132, 76, .11), transparent 28%);
}
.mistMountain {
  position: absolute;
  display: block;
  width: min(38vw, 520px);
  height: min(18vw, 220px);
  opacity: .34;
  filter: blur(.2px);
  background:
    linear-gradient(180deg, rgba(124, 132, 111, .30), rgba(124, 132, 111, .06));
  clip-path: polygon(0 100%, 10% 78%, 18% 84%, 31% 52%, 43% 70%, 55% 35%, 68% 62%, 80% 38%, 100% 100%);
}
.mountainA {
  right: 10vw;
  top: 42vh;
}
.mountainB {
  left: 8vw;
  bottom: 9vh;
  width: min(46vw, 620px);
  height: min(22vw, 250px);
  opacity: .28;
}

.rail, main {
  position: relative;
  z-index: 1;
}

.rail {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  padding: 18px 16px 18px;
  overflow: hidden;
  border-right: 1px solid rgba(83, 70, 50, .16);
  background: #fffaf0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 10px 0 28px rgba(40, 34, 24, .06);
}
.rail::before,
.rail::after {
  content: none;
}
.brand {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  position: relative;
  color: var(--text);
  min-height: 56px;
  padding: 2px 2px 14px;
  border-bottom: 1px solid rgba(83, 70, 50, .14);
}
.brandMark {
  position: relative;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(40, 96, 74, .20);
  border-radius: 13px;
  background:
    radial-gradient(circle at 32% 34%, rgba(40, 96, 74, .95) 0 3px, transparent 4px),
    radial-gradient(circle at 68% 34%, rgba(183, 72, 72, .90) 0 3px, transparent 4px),
    radial-gradient(circle at 50% 68%, rgba(201, 155, 69, .95) 0 3px, transparent 4px),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(246, 238, 219, .58));
  box-shadow: 0 8px 20px rgba(42, 34, 22, .10), inset 0 1px 0 rgba(255,255,255,.82);
}
.brandMark::before,
.brandMark::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  top: 13px;
  height: 1.5px;
  background: rgba(83, 70, 50, .26);
  transform-origin: center;
}
.brandMark::before {
  transform: rotate(24deg) translateY(4px);
}
.brandMark::after {
  transform: rotate(-24deg) translateY(4px);
}
.brand strong {
  display: block;
  color: #20241d;
  font-size: 22px;
  letter-spacing: 0;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  word-break: keep-all;
}
.brand .mobileViewTitle {
  display: none;
}
.mobileRailActions {
  display: none;
}
.mobileTitleActions {
  display: none;
}
.mobileTitleMenu {
  display: none;
}
.mobileRailActionBtn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(40, 96, 74, .20);
  border-radius: 999px;
  background: rgba(40, 96, 74, .10);
  color: var(--green);
}
.mobileRailActionBtn[hidden] {
  display: none;
}
.mobileRailActionBtn .bootstrapIcon {
  width: 18px;
  height: 18px;
  filter: invert(30%) sepia(23%) saturate(947%) hue-rotate(105deg) brightness(89%) contrast(88%);
}
.railToggle {
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(40, 96, 74, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .48);
  color: var(--green);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.railToggle:hover {
  background: rgba(40, 96, 74, .09);
}
.bootstrapIcon {
  width: 1em;
  height: 1em;
  display: block;
  object-fit: contain;
  pointer-events: none;
}
.iconAction .bootstrapIcon,
.iconBtn .bootstrapIcon,
.starterCountBtn .bootstrapIcon {
  width: 18px;
  height: 18px;
  filter: invert(22%) sepia(13%) saturate(804%) hue-rotate(350deg) brightness(93%) contrast(89%);
}
.railToggle .bootstrapIcon {
  width: 16px;
  height: 16px;
  filter: invert(30%) sepia(23%) saturate(947%) hue-rotate(105deg) brightness(89%) contrast(88%);
}
.ghost .bootstrapIcon {
  width: 17px;
  height: 17px;
  filter: invert(22%) sepia(13%) saturate(804%) hue-rotate(350deg) brightness(93%) contrast(89%);
}
body.railCollapsed .rail {
  padding-left: 16px;
  padding-right: 16px;
  gap: 22px;
}
body.railCollapsed .brand {
  justify-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 0 12px;
}
body.railCollapsed .brand > div,
body.railCollapsed .railUser,
body.railCollapsed .rail::after,
body.railCollapsed nav button small {
  display: none;
}
body.railCollapsed .railToggle {
  margin-left: 0;
  width: 36px;
  height: 28px;
  font-size: 20px;
}
body.railCollapsed nav button {
  justify-content: center;
  padding: 15px 0;
  text-align: center;
}
body.railCollapsed nav button span {
  font-size: 15px;
}
body.railCollapsed nav button.active::before {
  left: 50%;
  top: auto;
  bottom: 5px;
  width: 22px;
  height: 3px;
  transform: translateX(-50%);
}
.eyebrow { color: var(--muted); }
nav { display: grid; gap: 0; border-top: 1px solid rgba(46, 39, 29, .15); }
nav {
  gap: 6px;
  border-top: 0;
}
nav button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 14px;
  text-align: left;
  padding: 13px 12px;
  background: transparent;
  color: #443a2f;
  transition: background .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
nav button span {
  font-size: 17px;
  font-weight: 900;
}
nav button small {
  color: #9a8f7e;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}
.navIcon {
  display: none;
}
nav button.active {
  color: var(--green);
  background: rgba(40, 96, 74, .11);
  box-shadow: inset 0 0 0 1px rgba(40, 96, 74, .18);
}
nav button.active::before {
  content: "";
  width: 4px;
  height: 22px;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 999px;
  background: var(--green);
}
nav button.active small { color: var(--green); }
nav button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .48);
  transform: translateX(1px);
}
nav button[hidden] {
  display: none;
}

@media (min-width: 1281px) {
  .rail {
    padding: 22px 18px 18px;
    gap: 14px;
  }
  .brand,
  body.railCollapsed .brand {
    min-height: 48px;
    justify-content: space-between;
    gap: 12px;
    padding: 0 4px 14px;
  }
  .brandCopy {
    min-width: 0;
  }
  .brand .desktopBrandTitle {
    color: #23352d;
    font-size: 23px;
    font-weight: 950;
    line-height: 1.1;
    letter-spacing: -.035em;
  }
  .brand .mobileViewTitle,
  .brandMark,
  .navIcon,
  nav button small {
    display: none;
  }
  .railToggle,
  body.railCollapsed .railToggle {
    width: auto;
    min-width: 0;
    height: auto;
    margin-left: auto;
    padding: 5px 7px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #817565;
    box-shadow: none;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
  }
  .railToggle:hover,
  .railToggle:focus-visible {
    background: rgba(40, 96, 74, .08);
    color: var(--green);
  }
  nav {
    gap: 3px;
  }
  nav button,
  body.railCollapsed nav button {
    min-height: 44px;
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: left;
  }
  nav button span,
  body.railCollapsed nav button span {
    font-size: 16px;
    font-weight: 850;
  }
  nav button.active {
    background: rgba(40, 96, 74, .085);
    box-shadow: none;
  }
  nav button.active::before,
  body.railCollapsed nav button.active::before {
    left: 0;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 20px;
    transform: translateY(-50%);
  }
  body.railCollapsed .brandCopy {
    display: none;
  }
  body.railCollapsed .brand {
    justify-content: center;
  }
  body.railCollapsed nav button {
    justify-content: center;
    padding-right: 4px;
    padding-left: 4px;
    text-align: center;
  }
}
main {
  min-width: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 34px clamp(22px, 3vw, 42px) 34px;
}
.eyebrow {
  margin: 0 0 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: 32px; }
h2 { font-size: clamp(24px, 2vw, 34px); }
.actions, .treeToolbar { display: flex; gap: 10px; }
.primary, .ghost {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 17px;
  font-weight: 900;
}
.primary {
  background: var(--dancheong-red);
  color: #fff8e8;
  border-color: rgba(255, 248, 232, .18);
}
.primary .buttonIcon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: -4px;
  object-fit: contain;
  margin-right: 7px;
  filter: invert(96%) sepia(8%) saturate(664%) hue-rotate(331deg) brightness(106%) contrast(101%);
}
.ghost {
  background: rgba(255, 248, 232, .90);
  border-color: rgba(80, 64, 42, .24);
  color: var(--text);
}
.danger {
  border: 1px solid rgba(120, 40, 40, .56);
  border-radius: 14px;
  padding: 12px 17px;
  background: var(--dancheong-red);
  color: #fff8e8;
  font-weight: 900;
}
.danger:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.iconAction {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(80, 64, 42, .24);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 248, 232, .94);
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(42, 34, 22, .10);
}
.wide { width: 100%; }
.zoomControls {
  position: absolute;
  top: calc(100% + 10px);
  right: 44px;
  z-index: 70;
  display: grid;
  gap: 8px;
  min-width: 190px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, .96), rgba(248, 239, 217, .90)),
    rgba(255, 248, 232, .96);
  border: 1px solid rgba(142, 112, 65, .24);
  border-radius: 22px;
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  box-shadow: 0 18px 42px rgba(42, 34, 22, .18), inset 0 1px 0 rgba(255,255,255,.72);
}
.zoomControls.offCanvas { display: none; }
.zoomControls[hidden] { display: none; }
.zoomControlsHint {
  margin: 0;
  color: #695743;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}
.zoomControlButtons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.zoomControls .iconAction {
  min-height: 38px;
  border-color: rgba(142, 112, 65, .22);
  background: rgba(255, 255, 255, .60);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.74);
}
.zoomControls .iconAction:hover,
.zoomControls .iconAction:focus-visible {
  background: rgba(40, 96, 74, .11);
  color: var(--green);
}
.zoomLevelBtn {
  width: auto;
  min-width: 68px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
}
