@font-face {
  font-family: Pretendard;
  src: url('/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  color: #27253b;
  background: #f6f5fb;
  --ink: #29263d;
  --muted: #655f7a;
  --line: #e9e5f3;
  --paper: #fff;
  --green: #6547c3;
  --mint: #f0eaff;
  --nav: #fcfbff;
}

.shell { grid-template-columns: 246px minmax(0, 1fr); }
.sidebar {
  border-right: 1px solid var(--line);
  color: var(--ink);
  padding: 30px 18px 22px;
}
.logo { gap: 11px; font-size: 20px; letter-spacing: -.04em; padding: 1px 11px 36px; }
.logo small { color: #776c97; font-size: 10px; letter-spacing: .055em; margin-top: 5px; }
.sidebar nav { gap: 5px; }
.sidebar nav a {
  min-height: 49px;
  padding: 11px 14px;
  font-size: 15px;
  color: #646077;
  border-radius: 13px;
  transition: background .16s ease, color .16s ease;
}
.sidebar nav a:hover { background: #f5f1ff; color: #5439a2; }
.sidebar nav a[aria-current=page] { background: #ede6fc; color: #5537ad; box-shadow: none; font-weight: 780; }
.nav-icon { font-size: 17px; color: #7766a4; }
.sidebar-footer { color: #635779; border-color: #ede7f7; padding-left: 13px; }
.dot { background: #bdafc9; }
.dot.online { background: #61aa8a; }

.topbar { height: 74px; background: #fcfbff; padding: 0 38px; }
.breadcrumbs { font-size: 14px; font-weight: 570; }
.breadcrumbs span { margin-left: 10px; color: #4d405f; }
.top-actions { font-weight: 620; }
.avatar { background: #efe9fb; color: #5b408a; height: 39px; width: 39px; border: 1px solid #e6ddf5; }
.content { max-width: 1410px; padding: 38px 38px 52px; }
.page-head { margin-bottom: 24px; }
.page-head h1, .access h1 { font-size: clamp(29px, 3vw, 38px); font-weight: 840; letter-spacing: -.062em; line-height: 1.14; }
.sub { font-size: 15px; margin-top: 8px; color: var(--muted); line-height: 1.55; }
.primary, .secondary, .ghost { min-height: 43px; border-radius: 12px; padding: 10px 16px; font-size: 15px; transition: background .15s ease, box-shadow .15s ease; }
.primary { color: #fff; background: #694acb; box-shadow: 0 3px 8px #6544b819; }
.primary:hover { background: #573cac; box-shadow: 0 4px 10px #6544b82c; }
.secondary { border-color: #e6def3; color: #453960; }
.secondary:hover, .ghost:hover { background: #f4effc; }
.ghost { color: #6547ac; }
.layout { grid-template-columns: minmax(0, 1.64fr) minmax(285px, 1fr); gap: 20px; }
.panel, .stat { border: 1px solid #e9e4f0; border-radius: 22px; box-shadow: 0 4px 18px #44325906; }
.panel { padding: 21px 23px; margin-bottom: 20px; }
.panel h2 { font-size: 20px; font-weight: 790; letter-spacing: -.045em; }
.panel-head { margin-bottom: 11px; }
.stats { gap: 14px; margin-bottom: 20px; }
.stat { position: relative; padding: 19px 17px; min-height: 108px; overflow: hidden; background: #f3ecff; }
.stat:nth-child(2) { background: #eaf3ff; border-color: #dfeafb; }
.stat:nth-child(3) { background: #fdf0e8; border-color: #f4e5da; }
.stat:nth-child(4) { background: #eaf7ef; border-color: #e0eee5; }
.stat .stat-icon {
  position: absolute;
  right: 14px;
  top: 15px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #694caa;
  background: #ffffffac;
  border-radius: 11px;
  font-size: 18px;
  font-weight: 800;
}
.stat:nth-child(2) .stat-icon { color: #3f6c9a; }
.stat:nth-child(3) .stat-icon { color: #91573d; }
.stat:nth-child(4) .stat-icon { color: #417961; }
.stat .stat-label { color: #554a67; font-size: 14px; font-weight: 660; }
.stat strong { font-size: 36px; letter-spacing: -.065em; margin-top: 6px; }
.stat { text-align: left; color: var(--ink); transition: border-color .17s ease, box-shadow .17s ease; }
.stat:hover, .stat[aria-expanded="true"] { border-color: #a590d4; box-shadow: 0 3px 12px #49366b14; }
.stat .stat-icon::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.stat[aria-expanded="true"] .stat-icon::before { transform: translateY(2px) rotate(225deg); }
.dashboard-status-details { margin-top: -5px; scroll-margin-top: 80px; }
.dashboard-status-details h2 span { margin-left: .3em; color: var(--muted); font-size: .85em; font-variant-numeric: tabular-nums; }
.dashboard-status-items { max-height: 360px; overflow: auto; scrollbar-color: #baaacb transparent; }
.prior-report { margin: 14px 0; }
.prior-report summary { cursor: pointer; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .stat { transition: none; } }

.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  color: var(--ink);
  padding: 24px;
  background: linear-gradient(120deg, #f0e8ff 0%, #e9eaff 60%, #e4effc 100%);
  border-color: #e5def5;
}
.hero h2 { font-size: 24px; }
.hero .sub { color: #564d70; margin-bottom: 15px; }
.hero-copy, .hero form { position: relative; z-index: 1; }
.assistant-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  color: #6d4dca;
  background: #ffffffb5;
  border: 1px solid #fff;
  border-radius: 12px;
  font-size: 22px;
  margin-bottom: 10px;
}
.hero-art { position: absolute; z-index: 0; top: 4px; right: 5px; width: 183px; height: 110px; pointer-events: none; opacity: .9; }
.hero-art i { display: block; position: absolute; border-radius: 35%; }
.hero-art i:nth-child(1) { width: 96px; height: 96px; right: 17px; top: 7px; transform: rotate(-22deg); background: linear-gradient(160deg,#eaf1ff,#bfb2f5); border: 1px solid #ffffffbd; box-shadow: 0 12px 30px #6a59ad21; }
.hero-art i:nth-child(2) { width: 57px; height: 57px; right: 83px; top: 39px; transform: rotate(18deg); background: linear-gradient(150deg,#fbfaff,#d7c7f7); border: 1px solid #ffffffea; }
.hero-art i:nth-child(3) { width: 16px; height: 16px; right: 120px; top: 24px; background: #ffdfcc; border: 1px solid #fff; border-radius: 50%; }
.hero textarea, .hero select { background: #fffffff0; color: var(--ink); border-color: #e5dcf2; }
.hero textarea { min-height: 88px; resize: vertical; font-size: 16px; }
.hero textarea::placeholder { color: #79718d; }
.hero .primary { background: #694acb; color: #fff; }
.hero .primary:hover { background: #573cac; }

.brand-list .item { min-height: 56px; }
.brand-name { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: #6245a3; background: #f0e8fc; font-size: 13px; font-weight: 770; }
.brand-list .item:nth-child(2) .brand-mark { color: #395f8e; background: #e9f1fe; }
.brand-list .item:nth-child(3) .brand-mark { color: #8e553f; background: #fbeadd; }
.brand-list .item:nth-child(4) .brand-mark { color: #386a53; background: #e8f4ec; }
.item { border-bottom-color: #f0edf5; min-height: 57px; }
.item:is(button):hover { background: #faf8ff; }
.item strong { font-size: 16px; font-weight: 720; }
.item small { font-size: 13px; }
.badge { border-radius: 99px; padding: 5px 9px; background: #f0edf7; color: #51466d; }
.badge.green { color: #346856; background: #e6f5ed; }
.badge.blue { color: #415f95; background: #eaf1fe; }
.badge.amber { color: #7d4e3a; background: #fbe9d9; }
.badge.red { color: #8c3848; background: #fbe9ed; }
.badge.sample { color: #604a96; background: #eee9fa; }
input, select, textarea { padding: 11px 13px; border-radius: 12px; border-color: #e3dced; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #ac97e5; }
.detail-block { border-left-color: #dbccf8; }
dialog { border-radius: 26px; padding: 25px; box-shadow: 0 22px 90px #33205332; }
dialog::backdrop { background: #28203c55; backdrop-filter: blur(3px); }
.toast { background: #382b57; border-radius: 14px; }
th { background: #f7f4fc; }

.access {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 22% 26%, #eadefc 0, transparent 48%), radial-gradient(ellipse at 87% 30%, #dfeafe 0, transparent 42%), radial-gradient(ellipse at 68% 89%, #fae6de 0, transparent 43%), #f7f4ff;
}
.access::before, .access::after { content: ''; position: absolute; z-index: -1; border: 1px solid #ffffff91; border-radius: 35%; transform: rotate(23deg); background: #ffffff47; }
.access::before { width: clamp(160px, 30vw, 420px); aspect-ratio: 1; left: 6%; top: 9%; }
.access::after { width: clamp(100px, 24vw, 320px); aspect-ratio: 1; right: 9%; bottom: 4%; }
.access-card { max-width: 448px; padding: 39px; border-radius: 33px; border-color: #fff; background: #ffffffdd; box-shadow: 0 24px 80px #4934701b; }
.access-card img { width: 52px; height: 52px; }
.access h1 { margin: 16px 0 10px; }
.access p { margin: 0 0 23px; color: #645b77; }
.access form { gap: 15px; }
.access form button { min-height: 49px; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 218px minmax(0, 1fr); }
  .topbar, .content { padding-left: 24px; padding-right: 24px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 690px) {
  .sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 12px 8px; }
  .logo { padding: 0 3px 8px; }
  .sidebar nav a { min-height: 41px; font-size: 14px; padding: 7px 10px; }
  .topbar { height: 56px; padding: 0 17px; }
  .content { padding: 22px 14px 32px; }
  .page-head h1 { font-size: 29px; }
  .panel, .hero { padding: 17px; }
  .stats { gap: 9px; margin-bottom: 13px; }
  .stat { min-height: 91px; border-radius: 17px; padding: 13px 14px; }
  .stat strong { font-size: 30px; }
  .stat .stat-icon { right: 9px; top: 10px; width: 30px; height: 30px; }
  .hero-art { opacity: .54; transform: scale(.72); transform-origin: top right; }
  .access-card { padding: 29px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.dashboard-graphs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.graph { min-height: 234px; }
.status-bars { display: grid; gap: 10px; }
.status-bars div { display: grid; grid-template-columns: 80px minmax(0, 1fr) 25px; gap: 12px; align-items: center; }
.status-bars span, .graph-legend, .trend-day > span { color: var(--muted); font-size: 14px; }
.status-bars strong { text-align: right; }
progress { --progress-color:#9c86e5; appearance:none; border:0; height:10px; width:100%; border-radius:20px; overflow:hidden; background:#f0eef6; }
progress::-webkit-progress-bar { background:#f0eef6; border-radius:20px; }
progress::-webkit-progress-value { border-radius:20px; background:var(--progress-color); }
progress::-moz-progress-bar { border-radius:20px; background:var(--progress-color); }
.bar-active { --progress-color:#9aafd9; }.bar-done { --progress-color:#84bea5; }.bar-failed { --progress-color:#dc9caf; }.bar-paused { --progress-color:#dfb08c; }
.trend-graph { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:9px; }
.trend-day { text-align:center; min-width:0; }
.trend-columns { display:flex; justify-content:center; gap:3px; height:127px; padding:5px 0 8px; }
.trend-columns progress { width:11px; height:100%; writing-mode:vertical-lr; direction:rtl; }
.graph-legend { display:flex; gap:12px; }
.graph-legend span::before { content:''; display:inline-block; margin-right:5px; border-radius:4px; width:10px; height:10px; background:#9aafd9; }
.graph-legend span + span::before { background:#84bea5; }
.workflow { margin:13px 0 7px; }
.workflow-head { display:flex; justify-content:space-between; align-items:center; gap:9px; margin-bottom:8px; }
.workflow-head span { color:var(--muted); font-size:14px; font-weight:600; }
.work-meter { --progress-color:#a385e0; }
.workflow-stages { display:grid; gap:2px; list-style:none; padding:0; margin:11px 0 0; }
.workflow-stages li { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:10px; align-items:center; min-height:52px; border-radius:12px; padding:4px 9px; }
.workflow-stages li > span:nth-child(2) { display:grid; gap:3px; }
.workflow-stages small { color:var(--muted); font-size:13px; }
.workflow-stages .portrait { --portrait-size:32px; }
.flow-status { color:var(--muted); font-size:13px; font-weight:660; }
.flow-active { background:#f1ebff; outline:1px solid #e6dbfc; }
.flow-active .flow-status { color:#6346bc; }
.flow-done .flow-status { color:#386857; }
.flow-paused .flow-status { color:#a14c68; }
.rocket-brands { display:flex; gap:6px; flex-wrap:wrap; margin:0 0 13px; }
.rocket-brands span { border-radius:10px; background:#f1ebfa; color:#5e4c86; font-size:14px; font-weight:650; padding:6px 9px; }
.text-link { display:inline-flex; align-items:center; }
.mail-provider { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-bottom:5px; }
.folder-picker { width:100%; border:1px solid #ded3ee; border-radius:12px; padding:9px 12px; background:#fff; color:var(--ink); }
.folder-picker > summary,.folder-branch summary { cursor:pointer; font-size:15px; font-weight:670; padding:4px 0; overflow-wrap:anywhere; }
.folder-picker:not([open]) { max-width:min(100%,350px); }
.folder-picker .sub { margin:5px 0 9px; }
.folder-selected { color:#674baa; font-size:13px; }
.folder-options { max-height:320px; overflow:auto; padding-right:7px; }
.folder-children { margin-left:12px; padding-left:10px; border-left:1px solid #e8dff1; }
.folder-choice { display:flex; align-items:center; gap:8px; margin:1px 0; padding:6px 4px; border-radius:7px; overflow-wrap:anywhere; }
.folder-choice:hover { background:#f3edf9; }
.folder-choice input { width:14px; height:14px; accent-color:#694acb; }

.org-panel { padding:22px; }
.org-filter { max-width:620px; margin-bottom:24px; }
.org-filter select { width:100%; text-overflow:ellipsis; }
.org-tree { display:flex; align-items:center; flex-direction:column; }
.org-card { display:flex; align-items:center; gap:13px; position:relative; min-height:98px; padding:14px; border-radius:17px; border:1px solid #e9e3f1; background:#fcfbff; }
.org-tree > .org-card { width:min(100%,340px); }
.org-card > div { display:grid; gap:4px; }
.org-card strong { font-size:18px; }
.org-card div > span { color:#635279; font-size:14px; font-weight:650; }
.org-card small { color:var(--muted); font-size:13px; line-height:1.4; }
.org-card .badge { margin-left:auto; }
.org-involved { border-color:#cce6db; background:#f0f9f5; }
.org-active { border-color:#bda7ef; background:#f3edff; box-shadow:0 0 0 3px #e9ddff72; }
.org-connector { display:block; background:#d6c6ed; width:2px; height:21px; }
.org-group { position:relative; display:grid; width:100%; grid-template-columns:repeat(3,minmax(0,1fr)); gap:11px; padding-top:14px; }
.org-group::before { content:''; position:absolute; width:68%; height:12px; top:0; left:16%; border:2px solid #d6c6ed; border-bottom:0; border-radius:12px 12px 0 0; }
.org-group::after { content:''; position:absolute; left:50%; top:0; width:2px; height:14px; background:#d6c6ed; }
.org-group .org-card { min-width:0; }

.portrait { --portrait-size:54px; --portrait-bg:#eae1fa; --skin:#f3c8a7; --hair:#43334c; --shirt:#8170bb; flex:0 0 var(--portrait-size); display:inline-grid; place-items:center; position:relative; width:var(--portrait-size); aspect-ratio:1; height:var(--portrait-size); overflow:hidden; border:1px solid #fff; border-radius:16px; background:var(--portrait-bg); }
.portrait i { position:absolute; display:block; }
.portrait-body { width:75%; height:41%; left:12.5%; bottom:-9%; border-radius:48% 48% 0 0; background:var(--shirt); }
.portrait-face { z-index:2; top:27%; left:29%; width:43%; height:50%; background:var(--skin); border-radius:44% 44% 46% 46%; }
.portrait-face::before { content:''; position:absolute; top:47%; left:25%; width:8%; height:9%; border-radius:50%; background:#3f3245; box-shadow:calc(var(--portrait-size)*.15) 0 #3f3245; }
.portrait-face::after { content:''; position:absolute; top:69%; left:43%; width:19%; height:12%; border-bottom:1px solid #934e58; border-radius:50%; }
.portrait-hair { z-index:3; width:54%; height:32%; top:17%; left:23%; border-radius:54% 54% 23% 30%; background:var(--hair); transform:rotate(-6deg); }
.portrait-hair::after { position:absolute; content:''; width:22%; height:90%; right:0; top:43%; border-radius:20% 45% 70% 60%; background:var(--hair); }
.portrait-detail { z-index:4; width:10%; height:10%; right:18%; top:28%; border-radius:50%; background:#ffefab; }
.portrait-0 { --portrait-bg:#efe5fb; --hair:#54405c; --shirt:#6350a2; }
.portrait-0 .portrait-hair { border-radius:60% 39% 22% 20%; }.portrait-0 .portrait-detail { background:#fce3a5; }
.portrait-1 { --portrait-bg:#f0e5fc; --hair:#443463; --shirt:#8a67c8; }.portrait-1 .portrait-hair::after { height:150%; }.portrait-1 .portrait-detail { border-radius:2px; transform:rotate(-35deg); }
.portrait-2 { --portrait-bg:#e1effe; --hair:#544238; --skin:#edb994; --shirt:#648dc0; }.portrait-2 .portrait-detail { width:42%; height:12%; top:49%; left:29%; background:transparent; border-block:1px solid #5d6280; border-radius:4px; }
.portrait-3 { --portrait-bg:#e5f3eb; --hair:#213f44; --shirt:#6da88e; }.portrait-3 .portrait-hair { width:63%; left:19%; border-radius:50% 50% 23% 15%; }.portrait-3 .portrait-detail { background:#93e3ca; }
.portrait-4 { --portrait-bg:#fbeadb; --hair:#533a2c; --skin:#e8a97e; --shirt:#d68766; }.portrait-4 .portrait-hair { height:25%; transform:rotate(8deg); }.portrait-4 .portrait-detail { background:transparent; }
.portrait-5 { --portrait-bg:#fbe5ec; --hair:#59374c; --shirt:#bd7399; }.portrait-5 .portrait-hair { border-radius:52% 55% 16% 28%; }.portrait-5 .portrait-detail { background:#fac8e2; border-radius:1px; }
.portrait-6 { --portrait-bg:#e0f2f1; --hair:#2d484d; --skin:#d8a17d; --shirt:#61a6a7; }.portrait-6 .portrait-hair { width:60%; left:20%; transform:rotate(3deg); }.portrait-6 .portrait-detail { background:#a4cbde; }
.portrait-7 { --portrait-bg:#f7ebfc; --hair:#614468; --shirt:#b37ec8; }.portrait-7 .portrait-hair::after { height:120%; width:30%; }.portrait-7 .portrait-detail { background:#ffd5ae; }
.portrait-8 { --portrait-bg:#fff1dc; --hair:#54413a; --skin:#ddab86; --shirt:#bc915b; }.portrait-8 .portrait-hair { height:27%; transform:rotate(-11deg); }.portrait-8 .portrait-detail { background:#ffe5a2; }
.portrait-9 { --portrait-bg:#e6edfc; --hair:#364753; --shirt:#6982ad; }.portrait-9 .portrait-hair { width:57%; left:21%; }.portrait-9 .portrait-detail { width:38%; height:15%; top:48%; left:31%; background:transparent; border:1px solid #4e5270; border-radius:5px; }
.portrait-10 { --portrait-bg:#ebf3e5; --hair:#4b513c; --shirt:#8caa6e; }.portrait-10 .portrait-hair { border-radius:51% 51% 38% 12%; }.portrait-10 .portrait-detail { background:#f8dfa1; }
.portrait-generic { color:#7a63ac; font-size:18px; }
@media (max-width: 1100px) { .org-group { grid-template-columns:repeat(2,minmax(0,1fr)); }.org-group::before { left:25%; width:50%; }.org-group::after { display:none; } }
@media (max-width: 690px) { .dashboard-graphs { grid-template-columns:1fr; gap:0; }.org-group { grid-template-columns:1fr; }.org-group::before { display:none; }.org-group { padding-top:0; }.org-card { min-height:84px; }.workflow-stages li { padding-left:3px; }.status-bars div { grid-template-columns:74px minmax(0,1fr) 22px; }.sidebar nav { scrollbar-width:none; }.sidebar nav::-webkit-scrollbar { display:none; } }
