:root{
  --bg0:#05060a;
  --bg1:#0b1020;
  --panel: rgba(10, 12, 18, .78);
  --panel2: rgba(10, 12, 18, .90);
  --line: rgba(255,255,255,.10);
  --line2: rgba(255,255,255,.06);

  --txt:#e9edf5;
  --muted:#9aa3b2;

  --gold1:#ffd58a;
  --gold2:#b98a2b;

  --cyan:#7cf5ff;
  --blue:#5865f2;

  --shadow: 0 18px 65px rgba(0,0,0,.62);
  --shadow2: 0 10px 35px rgba(0,0,0,.45);

  --rail:100px;
  --expanded:244px;
  --top:56px;

  --r:16px;
  --r2:12px;
}


*{box-sizing:border-box}
html,body{height:100%;}
.wp_main{
  margin:0;
  color:var(--txt);
  background:
    radial-gradient(900px 700px at 12% 18%, rgba(124,245,255,.10), transparent 60%),
    radial-gradient(1000px 760px at 86% 24%, rgba(155,123,255,.08), transparent 62%),
    radial-gradient(900px 700px at 62% 86%, rgba(53,255,158,.06), transparent 62%),
    linear-gradient(135deg, var(--bg0), var(--bg1));
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
  overflow:hidden;
}

a{color:inherit; text-decoration:none}
button{font-family:inherit}

/* Layout */
* {
  box-sizing: border-box;
}

.app {
  width: 100%;
  overflow-x: hidden;
}

.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.main {
  width: 100%;
  overflow-x: hidden;
}

.sidebar{
  width:var(--rail);
  height:100%;
  position:relative;
  flex:0 0 var(--rail);
  background:
    radial-gradient(260px 220px at 30% 0%, rgba(124,245,255,.10), transparent 60%),
    radial-gradient(260px 220px at 80% 10%, rgba(155,123,255,.08), transparent 60%),
    linear-gradient(180deg, rgba(10,12,18,.92), rgba(6,7,10,.92));
  border-right:1px solid var(--line);
  box-shadow: 10px 0 50px rgba(0,0,0,.45);
  overflow:hidden;
  z-index:30;
  transition: width .22s ease;
}
.sidebar.is-open{ width:var(--expanded); flex-basis:var(--expanded); }

.sidebar::before{
  content:"";
  position:absolute; inset:-2px;
  pointer-events:none;
  background:
    conic-gradient(from 200deg at 40% 30%,
      rgba(255,213,138,0),
      rgba(255,213,138,.10),
      rgba(124,245,255,.12),
      rgba(88,101,242,.10),
      rgba(255,213,138,0)
    );
  filter: blur(14px);
  opacity:.70;
}

/* Top brand */
.sb-top{
  height:var(--top);
  display:flex;
  align-items:center;
  gap:10px;
  padding: 0 10px;
  border-bottom:1px solid var(--line2);
  position:relative;
  z-index:2;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.brand-badge{
  width:40px; height:40px;
  border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.25));
  border:1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 14px 30px rgba(0,0,0,.35);
}
.brand-title{
  font-weight:900;
  letter-spacing:.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.sidebar.is-open .brand-title{ opacity:1; transform:none; }

.sb-toggle{
  margin-left:auto;
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color:var(--txt);
  cursor:pointer;
  display:grid; place-items:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.35);
}
.sb-toggle:focus-visible{ outline:2px solid rgba(124,245,255,.45); outline-offset:2px; }

/* Nav */
.sb-nav{
  position:relative;
  z-index:2;
  padding:10px 8px;
  height: calc(100% - var(--top) - 64px);
  overflow:auto;
}
.sb-nav::-webkit-scrollbar{ width:8px; }
.sb-nav::-webkit-scrollbar-thumb{ background: rgba(255,255,255,.12); border-radius:999px; }
.sb-nav::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.18); }

.sb-group{
  margin-top:10px;
}
.sb-group-title{
  font-size:11px;
  font-weight:900;
  letter-spacing:.9px;
  text-transform:uppercase;
  color: rgba(233,237,245,.50);
  padding: 10px 10px 8px;
  display:none;
}
.sidebar.is-open .sb-group-title{ display:flex; align-items:center; gap:10px; }
.sidebar.is-open .sb-group-title::after{
  content:"";
  height:1px; flex:1;
  background: linear-gradient(90deg, rgba(255,255,255,.10), transparent);
  opacity:.65;
}

.sb-item{
  margin:6px 0;
}
.sb-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  height:48px;
  padding: 0 10px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.06);
  background:
    radial-gradient(240px 120px at 40% 50%, rgba(88,101,242,.16), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.12));
  box-shadow: 0 14px 34px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .14s ease, border-color .14s ease, filter .14s ease, background .14s ease;
  overflow:hidden;
}
.sb-link::before{
  content:"";
  position:absolute;
  inset:-2px;
  background: linear-gradient(90deg, transparent, rgba(124,245,255,.22), transparent);
  transform: translateX(-120%);
  filter: blur(1px);
  opacity:.8;
  pointer-events:none;
}
.sb-link:hover{
  transform: translateY(-1px);
  border-color: rgba(124,245,255,.16);
  filter: brightness(1.06);
}
.sb-link:hover::before{
  transform: translateX(120%);
  transition: transform .60s ease;
}

.sb-link.is-active{
  border-color: rgba(255,213,138,.28);
  background:
    radial-gradient(260px 140px at 35% 50%, rgba(255,213,138,.18), transparent 62%),
    linear-gradient(135deg, rgba(88,101,242,.14), rgba(155,123,255,.08));
}
.sb-link.is-active::after{
  content:"";
  position:absolute;
  left:0; top:12%; bottom:12%;
  width:3px;
  border-radius: 0 8px 8px 0;
  background: linear-gradient(180deg, rgba(255,213,138,.95), rgba(185,138,43,.95));
  box-shadow: 0 0 18px rgba(255,213,138,.22);
}

.sb-ico{
  width:36px; height:36px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  flex:0 0 36px;
}
.sb-ico svg{
  width:18px; height:18px;
  fill:none;
  stroke: rgba(233,237,245,.92);
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter: drop-shadow(0 0 10px rgba(124,245,255,.08));
}
.sb-link.is-active .sb-ico{
  border-color: rgba(255,213,138,.26);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 3px rgba(255,213,138,.08);
}
.sb-link.is-active .sb-ico svg{
  stroke: rgba(255,213,138,.95);
  filter: drop-shadow(0 0 14px rgba(255,213,138,.14));
}

.sb-labels{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
  opacity:0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.sidebar.is-open .sb-labels{ opacity:1; transform:none; }

.sb-title{
  font-weight:900;
  font-size:13px;
  letter-spacing:-.2px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.sb-sub{
  font-size:11px;
  color: rgba(233,237,245,.55);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* Tooltip when collapsed */
.sb-tip{
  position:absolute;
  left: 82px;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(10,12,18,.92);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow2);
  font-size:12px;
  color: rgba(233,237,245,.86);
  opacity:0;
  pointer-events:none;
  white-space:nowrap;
}
.sidebar:not(.is-open) .sb-link:hover .sb-tip{
  opacity:1;
}

/* Bottom card */
.sb-bottom{
  height:64px;
  border-top:1px solid var(--line2);
  display:flex;
  align-items:center;
  gap:10px;
  padding: 0 10px;
  position:relative;
  z-index:2;
}
.sb-bottom .gear{
  margin-left:auto;
  width:40px;height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
  display:grid; place-items:center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 30px rgba(0,0,0,.35);
}
.sb-bottom .gear svg{
  width:18px;height:18px;
  fill:none;
  stroke: rgba(233,237,245,.92);
  stroke-width:2;
}
.sb-bottom .meta{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
  opacity:0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
}
.sidebar.is-open .sb-bottom .meta{ opacity:1; transform:none; }
.sb-bottom .meta .k{ font-size:12px; font-weight:900; }
.sb-bottom .meta .d{ font-size:11px; color: rgba(233,237,245,.55); }

/* Main */
.main {
  flex:1;
  min-width:0;
  min-height:0;
  overflow:hidden;   /* º¯°æ */
  position:relative;
}
.main::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background: radial-gradient(900px 500px at 30% 15%, rgba(0,0,0,.35), transparent 65%);
  z-index:0;
}
.main-inner {
  position:relative;
  z-index:1;
  padding:18px;

  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
}
.main-body {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
}
.content {
  flex:1;
  overflow-y:auto;
  min-height:0;
}

/* Mobile behavior */
@media (max-width: 900px){
  body{ overflow:hidden; }
  .sidebar{
    position:fixed;
    left:0; top:0; bottom:0;
    transform: translateX(-100%);
    transition: transform .22s ease, width .22s ease;
    width: var(--expanded);
    flex-basis: var(--expanded);
  }
  .sidebar.is-open{
    transform: translateX(0);
  }
  .sidebar-backdrop{
    position:fixed;
    inset:0;
    background: rgba(0,0,0,.55);
    opacity:0;
    pointer-events:none;
    transition: opacity .18s ease;
    z-index:20;
  }
  .sidebar-backdrop.is-open{
    opacity:1;
    pointer-events:auto;
  }
  .mobile-open{
    position:fixed;
    left: 12px;
    top: 12px;
    width:44px;height:44px;
    border-radius:14px;
    border:1px solid rgba(255,255,255,.10);
    background: rgba(10,12,18,.65);
    color:var(--txt);
    cursor:pointer;
    z-index:25;
    display:grid; place-items:center;
    box-shadow: 0 18px 45px rgba(0,0,0,.45);
    backdrop-filter: blur(10px);
  }
  .mobile-open svg{
    width:18px;height:18px;
    fill:none; stroke: rgba(233,237,245,.92);
    stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  }
  .main-inner{ padding-top: 70px; }
}
@media (min-width: 901px){
  .mobile-open{ display:none; }
  .sidebar-backdrop{ display:none; }
  .sidebar:hover{ width:var(--expanded); flex-basis:var(--expanded); }
  .sidebar:hover .brand-title,
  .sidebar:hover .sb-labels,
  .sidebar:hover .sb-bottom .meta,
  .sidebar:hover .sb-group-title{
    opacity:1; transform:none; display:flex;
  }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; }
}


/* ·¹ÀÌ¾Æ¿ô ±âº» */
html, body { height: 100%; }
.wp_main { overflow: hidden; }  /* ÀüÃ¼ ÆäÀÌÁö ½ºÅ©·Ñ ¸·°í, ³»ºÎ¸¸ ½ºÅ©·Ñ ÇÏ°Ú´Ù´Â ÀÇµµ¸é À¯Áö */

/* app: È­¸é °íÁ¤ */
.app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ¹Ù±ù main: ½ºÅ©·Ñ ´ã´ç ¾Æ´Ô */
main.main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;     /* ±âÁ¸ overflow:auto Á¦°Å */
  display: flex;
  flex-direction: column;
}

/* main-inner: ³²´Â ³ôÀÌ Àâ±â */
.main-inner {
  flex: 1;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
}

/* Ä«µå(Áö±Ý ÀÎ¶óÀÎ ½ºÅ¸ÀÏ div)µµ flex·Î */
.card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ½ÇÁ¦ ÆäÀÌÁö ¿µ¿ª */
.main-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* topbar´Â °íÁ¤, content¸¸ ½ºÅ©·Ñ */
.topbar { flex: 0 0 auto; }

.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.ai-mobile-menu-btn {
  display: none;
}

@media (max-width: 860px) {
  .ai-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    border-radius: 12px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);

    color: white;
    font-size: 20px;
    font-weight: bold;

    z-index: 2000;
    cursor: pointer;
  }  

}

@media (max-width: 980px) {

  /* ¸ð¹ÙÀÏ¿¡¼­´Â collapsed ¹«½Ã */
  .sidebar,
  .sidebar.collapsed {
    width: 85% !important;
    max-width: 340px !important;
  }

  /* ÅØ½ºÆ® ¿µ¿ª °­Á¦ º¹±¸ */
  .sidebar .sb-labels {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    width: auto !important;
    transform: none !important;
  }

  .sidebar .sb-title,
  .sidebar .sb-sub {
    display: block !important;
    opacity: 1 !important;
    width: auto !important;
  }

  /* ¸µÅ© ·¹ÀÌ¾Æ¿ô Á¤»óÈ­ */
  .sidebar .sb-link {
    justify-content: flex-start !important;
    gap: 14px !important;
  }
}


/**********************/
.main-home {
  overflow: auto;
}

.main-home .content {
  overflow: visible;
}
.content-home {
  overflow: visible !important;
}
.main-home {
  overflow: auto;
}
.page-home .main,
.page-home .main-inner,
.page-home .content {
  overflow: visible !important;
  height: auto !important;
}


.page-home .app {
  width:auto;
  height:auto;
  overflow:visible;
}

.page-home .main {
  display:block;
  overflow:visible;
  height:auto;
}

.page-home .content {
  overflow:visible;
  height:auto;
}

.page-home .main {
  margin-left: calc(-1 * var(--rail));
  width: calc(100% + var(--rail));
}