:root{
  --bg:#070a12;
  --panel:rgba(15,23,42,.78);
  --panel2:rgba(12,18,32,.9);
  --card:rgba(30,41,59,.42);
  --border:rgba(148,163,184,.14);
  --text:#f1f5f9;
  --muted:rgba(203,213,225,.75);
  --subtle:rgba(148,163,184,.55);
  --primary:#a5b4fc;
  --primary-deep:#6366f1;
  --accent:#5eead4;
  --accent2:#f472b6;
  --warn:#fbbf24;
  --danger:#fb7185;
  --shadow:0 8px 32px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.06);
  --shadow-lg:0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.07);
  --radius:20px;
  --font: "DM Sans", "Noto Sans KR", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: var(--font);
  color:var(--text);
  background:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(99,102,241,.28), transparent 52%),
    radial-gradient(ellipse 55% 45% at 100% 15%, rgba(94,234,212,.14), transparent 48%),
    radial-gradient(ellipse 50% 40% at 0% 70%, rgba(244,114,182,.10), transparent 45%),
    linear-gradient(180deg, #03050a 0%, var(--bg) 35%, #0a1020 100%);
  background-attachment: fixed;
  transition: background .45s var(--ease-out);
}
body[data-active-hub="tour"]{
  background:
    radial-gradient(ellipse 85% 55% at 18% 12%, rgba(244,114,182,.22), transparent 48%),
    radial-gradient(ellipse 70% 50% at 92% 22%, rgba(192,132,252,.16), transparent 45%),
    radial-gradient(ellipse 55% 42% at 50% 108%, rgba(99,102,241,.12), transparent 50%),
    linear-gradient(180deg, #070411 0%, var(--bg) 42%, #0b1224 100%);
}
body[data-active-hub="contest"]{
  background:
    radial-gradient(ellipse 80% 48% at 12% 18%, rgba(251,191,36,.14), transparent 46%),
    radial-gradient(ellipse 65% 45% at 88% 8%, rgba(249,115,22,.12), transparent 44%),
    radial-gradient(ellipse 50% 40% at 40% 95%, rgba(124,92,255,.10), transparent 48%),
    linear-gradient(180deg, #090806 0%, var(--bg) 40%, #0d1018 100%);
}
body[data-active-hub="mother"]{
  background:
    radial-gradient(ellipse 75% 52% at 8% 25%, rgba(45,212,191,.16), transparent 46%),
    radial-gradient(ellipse 68% 48% at 95% 30%, rgba(14,165,233,.14), transparent 45%),
    radial-gradient(ellipse 55% 45% at 55% 100%, rgba(99,102,241,.11), transparent 50%),
    linear-gradient(180deg, #040c14 0%, var(--bg) 38%, #081018 100%);
}
body[data-active-hub="partners"]{
  background:
    radial-gradient(ellipse 82% 50% at 15% 15%, rgba(129,140,248,.18), transparent 48%),
    radial-gradient(ellipse 62% 46% at 90% 75%, rgba(167,139,250,.12), transparent 46%),
    radial-gradient(ellipse 48% 38% at 50% 0%, rgba(94,234,212,.08), transparent 44%),
    linear-gradient(180deg, #060818 0%, var(--bg) 40%, #0a0e20 100%);
}

/* ---------- Public simple pages (tour/contest/etc) ---------- */
.page{
  min-height: 100dvh;
  padding: 22px 16px 44px;
}
.pageInner{
  max-width: 1040px;
  margin: 0 auto;
}
.pageTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}
.pageBrand{
  display:flex;
  align-items:center;
  gap:12px;
}
.pageLogo{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  font-weight:900;
  background:linear-gradient(135deg, rgba(124,92,255,.95), rgba(34,197,94,.75));
  box-shadow: 0 10px 24px rgba(124,92,255,.22);
}
.pageTitle{
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.02em;
  margin: 0;
}
.pageSub{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.pageActions{ display:flex; gap:8px; flex-wrap:wrap; }
.pageGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 860px){
  .pageGrid{ grid-template-columns: 1fr; }
}
.panel{
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.panel h2{
  margin:0 0 10px;
  font-size: 16px;
  font-weight: 900;
}
.muted{ color: var(--muted); }
.small{ font-size: 12px; }
.input{
  width:100%;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(0,0,0,.12);
  color:var(--text);
  outline:none;
}
.input:focus{ border-color: rgba(124,92,255,.40); box-shadow:0 0 0 4px rgba(124,92,255,.14); }
.stack{ display:flex; flex-direction:column; gap:10px; }

.app{
  min-height:100dvh;
  min-height:100svh;
  height:100%;
  display:grid;
  grid-template-columns: 312px 1fr;
  grid-template-rows: 76px 1fr;
  grid-template-areas:
    "topbar topbar"
    "sidebar main";
}

.topbar{
  grid-area:topbar;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:max(0px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  border-bottom:1px solid var(--border);
  background:linear-gradient(180deg, rgba(12,18,34,.92), rgba(8,12,22,.72));
  backdrop-filter: blur(14px);
  position:relative;
}
.topbar::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(124,92,255,.35), rgba(34,197,94,.25), transparent);
  pointer-events:none;
}

.brand{ display:flex; align-items:center; gap:12px; min-width:0; }
.logo{
  width:42px; height:42px; border-radius:15px;
  display:grid; place-items:center;
  font-weight:800; letter-spacing:.5px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.22), transparent 42%),
    linear-gradient(135deg, rgba(124,92,255,.98), rgba(34,197,94,.82));
  box-shadow:
    0 0 0 1px rgba(255,255,255,.18),
    0 14px 34px rgba(124,92,255,.32);
}
.brandTitle{
  font-weight:800;
  line-height:1.05;
  letter-spacing:-.02em;
  background:linear-gradient(90deg, rgba(255,255,255,.96), rgba(226,232,240,.88));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.brandSub{ font-size:12px; color:var(--muted); margin-top:2px; }

.langBar{
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.langPill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  color:rgba(226,232,240,.82);
  text-decoration:none;
  border:1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.langPill:hover{
  background:rgba(255,255,255,.06);
  color:var(--text);
}
.langPill--active{
  background:linear-gradient(135deg, rgba(124,92,255,.22), rgba(34,197,94,.14));
  border-color:rgba(124,92,255,.35);
  color:var(--text);
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

.topActions{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.search{
  display:flex;
  align-items:center;
  gap:10px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  padding:10px 14px;
  border-radius:999px;
  min-width: min(420px, 42vw);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.search input{
  flex:1;
  min-width:0;
  background:transparent;
  border:0;
  outline:none;
  color:var(--text);
  font-size:14px;
}
kbd{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size:11px;
  color:rgba(255,255,255,.75);
  padding:4px 8px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.2);
}

.btn{
  border:1px solid rgba(148,163,184,.18);
  background:rgba(255,255,255,.05);
  color:var(--text);
  border-radius:14px;
  padding:10px 14px;
  font-weight:600;
  cursor:pointer;
  transition: transform .12s var(--ease-out), background .15s var(--ease-out), border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn.sm{ padding:8px 11px; border-radius:12px; font-size:12px; }
.btn:hover{ background:rgba(255,255,255,.09); border-color:rgba(165,180,252,.25); }
.btn:active{ transform: scale(0.98); }
.btn.primary{
  background:linear-gradient(135deg, #6366f1 0%, #4f46e5 55%, #0d9488 160%);
  border-color: rgba(129,140,248,.5);
  box-shadow: 0 4px 18px rgba(79,70,229,.35);
}
.btn.primary:hover{ filter:brightness(1.06); }
.btn.warn{ border-color: rgba(245,158,11,.45); background:rgba(245,158,11,.14); color: var(--text); }
.btn.warn:hover{ filter:brightness(1.06); }
.portalNav{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  align-items:center;
  padding:4px 6px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.portalNav .btn.sm{
  border-radius:999px;
  padding:7px 12px;
  font-weight:800;
  font-size:12px;
}
.portalNav__muted{
  opacity:.9;
  font-size:11px;
  font-weight:650;
  border-style:dashed;
  border-color:rgba(148,163,184,.32);
  background:rgba(0,0,0,.12);
}
.portalNav__muted:hover{ opacity:1; border-color:rgba(165,180,252,.4); }
.btn.ghost{ background:transparent; }

.sidebar{
  grid-area:sidebar;
  border-right:1px solid var(--border);
  background:linear-gradient(180deg, rgba(15,23,42,.65), rgba(8,12,22,.5));
  backdrop-filter: blur(12px);
  padding:16px max(12px, env(safe-area-inset-left, 0px)) 16px max(12px, env(safe-area-inset-right, 0px));
  display:flex;
  flex-direction:column;
  gap:12px;
}

.nav{ overflow:auto; padding-right:6px; }
.navSection{ margin-bottom:14px; }
.navSection--hub{
  padding:10px 8px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(145deg, rgba(244,114,182,.10), rgba(99,102,241,.08) 45%, rgba(94,234,212,.06));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.navSection--hub .navTitle{
  color:rgba(250,250,255,.75);
  letter-spacing:.12em;
}
.navTitle{
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--subtle);
  padding:10px 12px 6px;
  font-weight:700;
}
.navItem{
  width:100%;
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border-radius:16px;
  border:1px solid transparent;
  background:transparent;
  color:rgba(241,245,249,.9);
  cursor:pointer;
  text-align:left;
  font-weight:600;
  position:relative;
}
.navItem:hover{ background:rgba(255,255,255,.06); border-color:rgba(148,163,184,.12); }
.navItem.active{
  background:linear-gradient(90deg, rgba(99,102,241,.2), rgba(13,148,136,.08));
  border-color: rgba(129,140,248,.28);
  box-shadow: inset 3px 0 0 0 #818cf8;
}

.dot{ width:10px; height:10px; border-radius:50%; background:rgba(255,255,255,.35); }
.dot.b2b{ background:linear-gradient(135deg,#818cf8,#6366f1); box-shadow:0 0 0 3px rgba(99,102,241,.2); }
.dot.erp{ background:linear-gradient(135deg,#34d399,#059669); box-shadow:0 0 0 3px rgba(16,185,129,.18); }
.dot.gov{ background:linear-gradient(135deg,#22d3ee,#0ea5e9); box-shadow:0 0 0 3px rgba(14,165,233,.2); }
.dot.b2c{ background:linear-gradient(135deg,#f472b6,#c084fc); box-shadow:0 0 0 3px rgba(244,114,182,.22); }
.dot.ops{ background:linear-gradient(135deg,#5eead4,#0ea5e9); box-shadow:0 0 0 3px rgba(94,234,212,.2); }

/* ---------- Platform: IKCTA service hub (embedded system map) ---------- */
.portalHubShell{
  position: relative;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 42%, rgba(99,102,241,.25));
  overflow: hidden;
}
.portalHubShell__mesh{
  position:absolute;
  inset:-40%;
  opacity:.55;
  background:
    conic-gradient(from 210deg at 50% 50%, rgba(99,102,241,.25), rgba(244,114,182,.12), rgba(94,234,212,.18), rgba(99,102,241,.25));
  animation: portalHubMesh 22s linear infinite;
  pointer-events:none;
}
@media (prefers-reduced-motion: reduce){
  .portalHubShell__mesh{ animation: none; opacity:.35; }
}
@keyframes portalHubMesh{
  to{ transform: rotate(360deg); }
}
.portalHubShell__inner{
  position:relative;
  z-index:1;
  border-radius: calc(18px - 1px);
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(10,14,26,.92), rgba(6,9,18,.88));
  border: 1px solid rgba(255,255,255,.08);
}
.portalHubShell--tour{
  background: linear-gradient(135deg, rgba(244,114,182,.35), rgba(129,140,248,.22), rgba(99,102,241,.2));
}
.portalHubShell--tour .portalHubShell__mesh{
  background: conic-gradient(from 120deg at 40% 40%, rgba(244,114,182,.35), rgba(192,132,252,.2), rgba(94,234,212,.15), rgba(244,114,182,.35));
}
.portalHubShell--contest{
  background: linear-gradient(135deg, rgba(251,191,36,.32), rgba(249,115,22,.18), rgba(244,114,182,.12));
}
.portalHubShell--contest .portalHubShell__mesh{
  background: conic-gradient(from 200deg at 55% 45%, rgba(251,191,36,.28), rgba(249,115,22,.18), rgba(124,92,255,.15), rgba(251,191,36,.28));
}
.portalHubShell--mother{
  background: linear-gradient(135deg, rgba(45,212,191,.28), rgba(14,165,233,.22), rgba(99,102,241,.2));
}
.portalHubShell--mother .portalHubShell__mesh{
  background: conic-gradient(from 90deg at 50% 50%, rgba(45,212,191,.3), rgba(14,165,233,.22), rgba(124,92,255,.18), rgba(45,212,191,.3));
}
.portalHubShell--partners{
  background: linear-gradient(135deg, rgba(129,140,248,.32), rgba(167,139,250,.2), rgba(94,234,212,.14));
}
.portalHubShell--partners .portalHubShell__mesh{
  background: conic-gradient(from 300deg at 48% 52%, rgba(129,140,248,.28), rgba(167,139,250,.2), rgba(34,197,94,.12), rgba(129,140,248,.28));
}
.portalHubShell--gate{
  min-height:100dvh;
  background:linear-gradient(160deg,#0f172a 0%,#1e293b 50%,#0c1222 100%);
}
.portalHubShell--gate .portalHubShell__mesh{
  background:conic-gradient(from 0deg at 50% 40%, rgba(148,163,184,.15), rgba(99,102,241,.12), rgba(45,212,191,.1), rgba(148,163,184,.15));
}
.portalHubShell--b2c{
  min-height:100dvh;
  background:linear-gradient(155deg,#1a0a14 0%,#2d1b2e 40%,#0f172a 100%);
}
.portalHubShell--b2c .portalHubShell__mesh{
  background:conic-gradient(from 140deg at 30% 20%, rgba(244,114,182,.35), rgba(192,132,252,.22), rgba(251,191,36,.1), rgba(244,114,182,.3));
}
.portalHubShell--b2b{
  min-height:100dvh;
  background:linear-gradient(160deg,#0c0a1a 0%,#1e1b4b 45%,#0f172a 100%);
}
.portalHubShell--b2b .portalHubShell__mesh{
  background:conic-gradient(from 220deg at 70% 30%, rgba(99,102,241,.32), rgba(79,70,229,.2), rgba(45,212,191,.08), rgba(99,102,241,.28));
}
.portalHubGrid--gate{ grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); }
.portalHubTile--b2c{ border-color:rgba(244,114,182,.35); }
.portalHubTile--b2b{ border-color:rgba(99,102,241,.4); }
.portalHubTile--b2g{ border-color:rgba(14,165,233,.4); }
.pageLogo--b2c{ font-size:11px; background:linear-gradient(135deg,#ec4899,#be185d); }
.pageLogo--b2b{ font-size:11px; background:linear-gradient(135deg,#6366f1,#4338ca); }
.b2bSecureNote{ border-color:rgba(99,102,241,.35); background:rgba(99,102,241,.08); }
body[data-portal="b2c"]{
  background:linear-gradient(180deg,#120810 0%,#0f172a 100%);
  color:var(--text);
}
body[data-portal="b2b"] .page,
body[data-portal="b2g"] .page{ color:var(--text); }

.portalHubLead{
  font-size: 14px;
  line-height: 1.65;
  color: rgba(226,232,240,.88);
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
  border-left: 3px solid rgba(165,180,252,.55);
}
.portalSubsiteBanner{
  margin: 0 0 12px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 12px;
  border: 1px solid rgba(14,165,233,.35);
  background: rgba(14,165,233,.12);
  color: rgba(226,232,240,.95);
}
.portalSubsiteBanner a{
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.portalHubShell--b2c .portalSubsiteBanner{
  border-color: rgba(14,165,233,.4);
  background: rgba(240,249,255,.08);
}
.portalHubGrid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 12px;
}
.portalHubTile{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.11);
  background: linear-gradient(165deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 55%, rgba(15,23,42,.25));
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 36px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .2s var(--ease-out), border-color .2s, box-shadow .25s var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.portalHubTileShine{
  position:absolute;
  inset:0;
  background: linear-gradient(125deg, transparent 35%, rgba(255,255,255,.09) 48%, transparent 62%);
  opacity:0;
  transition: opacity .25s var(--ease-out);
  pointer-events:none;
}
.portalHubTile:hover .portalHubTileShine{ opacity:1; }
.portalHubTile:hover{
  transform: translateY(-3px);
  border-color: rgba(165,180,252,.42);
  box-shadow: 0 18px 44px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.12);
}
.portalHubTile:focus-visible{
  outline: 2px solid rgba(165,180,252,.85);
  outline-offset: 3px;
}
.portalHubTileKicker{
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(186,200,255,.72);
}
.portalHubTile h3{
  margin: 0;
  font-size: 16px;
  font-weight: 850;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.portalHubTile .portalHubTileDesc{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(203,213,225,.82);
  flex: 1;
}
.portalHubTileFoot{
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12px;
  font-weight: 700;
  color: rgba(167,243,208,.95);
  display: flex;
  align-items: center;
  gap: 8px;
}
.portalHubTileFootArrow{
  display:inline-flex;
  width:26px;
  height:26px;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  font-size:14px;
  background: rgba(94,234,212,.12);
  border: 1px solid rgba(94,234,212,.28);
  transition: transform .2s var(--ease-out), background .2s;
}
.portalHubTile:hover .portalHubTileFootArrow{
  transform: translateX(3px);
  background: rgba(94,234,212,.2);
}

.card.card--hub{
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 22px 56px rgba(0,0,0,.38), inset 0 1px 0 rgba(255,255,255,.1);
}
.card.card--hub::before{
  opacity:1;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(244,114,182,.18), transparent 52%),
    radial-gradient(80% 60% at 0% 100%, rgba(94,234,212,.12), transparent 48%),
    radial-gradient(70% 55% at 50% 120%, rgba(99,102,241,.14), transparent 55%);
}
.card.card--hub:hover{
  transform: translateY(-2px);
  border-color: rgba(165,180,252,.28);
}
.card.card--hub-tour::before{
  background:
    radial-gradient(95% 72% at 92% 8%, rgba(244,114,182,.22), transparent 52%),
    radial-gradient(75% 58% at 4% 92%, rgba(192,132,252,.14), transparent 50%);
}
.card.card--hub-contest::before{
  background:
    radial-gradient(90% 68% at 88% 12%, rgba(251,191,36,.18), transparent 50%),
    radial-gradient(70% 55% at 10% 88%, rgba(249,115,22,.12), transparent 48%);
}
.card.card--hub-mother::before{
  background:
    radial-gradient(88% 65% at 8% 18%, rgba(45,212,191,.18), transparent 48%),
    radial-gradient(78% 58% at 94% 78%, rgba(14,165,233,.16), transparent 50%);
}
.card.card--hub-partners::before{
  background:
    radial-gradient(92% 70% at 12% 15%, rgba(129,140,248,.2), transparent 52%),
    radial-gradient(72% 56% at 85% 85%, rgba(167,139,250,.14), transparent 48%);
}

body[data-active-hub] .contentHeader--hero{
  border-color: rgba(255,255,255,.14);
  background:
    linear-gradient(135deg, rgba(124,92,255,.14), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(12,18,32,.32));
}
body[data-active-hub="tour"] .contentHeader--hero::before{
  background: linear-gradient(180deg, rgba(244,114,182,.85), rgba(192,132,252,.65));
}
body[data-active-hub="contest"] .contentHeader--hero::before{
  background: linear-gradient(180deg, rgba(251,191,36,.9), rgba(249,115,22,.65));
}
body[data-active-hub="mother"] .contentHeader--hero::before{
  background: linear-gradient(180deg, rgba(45,212,191,.85), rgba(14,165,233,.7));
}
body[data-active-hub="partners"] .contentHeader--hero::before{
  background: linear-gradient(180deg, rgba(129,140,248,.9), rgba(167,139,250,.65));
}

.sidebarFooter{ margin-top:auto; }
.hint{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  border-radius:16px;
  padding:12px;
}
.hintTitle{ font-weight:700; margin-bottom:8px; }
.hintRow{ display:flex; align-items:center; justify-content:space-between; color:var(--muted); font-size:12px; padding:6px 0; }
.hintRow kbd{ padding:3px 6px; border-radius:9px; }

.main{
  grid-area:main;
  padding:18px max(18px, env(safe-area-inset-right, 0px)) max(26px, calc(14px + env(safe-area-inset-bottom, 0px))) max(18px, env(safe-area-inset-left, 0px));
  overflow:auto;
}

/* ---------- 레이아웃: B2C 중앙 밴드 vs B2B·B2G·운영 좌측 정렬 ---------- */
.main:not(.main--b2c) .contentHeader--hero,
.main:not(.main--b2c) .contentToolbar,
.main:not(.main--b2c) .contentTitle,
.main:not(.main--b2c) .breadcrumbs,
.main:not(.main--b2c) .cardHead,
.main:not(.main--b2c) .panelHead{
  text-align: left;
}
.main:not(.main--b2c) .contentMeta{
  margin-left: 0;
  margin-right: 0;
}

.main.main--b2c > .contentHeader,
.main.main--b2c > .contentToolbar{
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.main.main--b2c > .view{
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.main.main--b2c .contentHeader--hero{
  text-align: center;
}
.main.main--b2c .contentHeader--hero::before{
  display: none;
}
.main.main--b2c .contentHeader--hero::after{
  content: "";
  display: block;
  width: min(220px, 48%);
  height: 3px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.88), rgba(129, 140, 248, 0.78), rgba(94, 234, 212, 0.78));
}
body[data-active-hub="tour"] .main.main--b2c .contentHeader--hero::after{
  background: linear-gradient(90deg, rgba(244, 114, 182, 0.92), rgba(192, 132, 252, 0.82));
}
body[data-active-hub="contest"] .main.main--b2c .contentHeader--hero::after{
  background: linear-gradient(90deg, rgba(251, 191, 36, 0.92), rgba(249, 115, 22, 0.78));
}
.main.main--b2c .contentEyebrow,
.main.main--b2c .breadcrumbs,
.main.main--b2c .contentTitle{
  text-align: center;
}
.main.main--b2c .contentMeta{
  margin-left: auto;
  margin-right: auto;
  max-width: 52ch;
  text-align: center;
}
.main.main--b2c .contentToolbar{
  justify-content: center;
  flex-wrap: wrap;
}
.main.main--b2c .toolbarRight{
  justify-content: center;
  flex-wrap: wrap;
}
.main.main--b2c .portalHubLead{
  text-align: center;
  border-left: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 14px;
}
.main.main--b2c .quick.quick--hub{
  justify-content: center;
}

.contentHeader{
  margin:8px 2px 14px;
}
.contentHeader--hero{
  margin:4px 0 18px;
  padding:18px 20px 20px;
  border-radius: calc(var(--radius) + 4px);
  border:1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(135deg, rgba(124,92,255,.10), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(12,18,32,.25));
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  position:relative;
}
.contentHeader--hero::before{
  content:"";
  position:absolute;
  left:0; top:14px; bottom:14px;
  width:3px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(124,92,255,.85), rgba(34,197,94,.65));
}
.contentEyebrow{
  margin:0 0 8px;
  font-size:11px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:rgba(148,163,184,.9);
}
.contentHeader--hero .breadcrumbs{ margin-left:2px; }
.contentHeader--hero .contentTitle{ margin-top:4px; }
.contentHeader--hero .contentMeta{ margin-top:8px; }
.breadcrumbs{ color:var(--muted); font-size:13px; }
.contentTitle{
  font-size:clamp(22px, 2.6vw, 30px);
  font-weight:800;
  margin-top:6px;
  letter-spacing:-.02em;
  background:linear-gradient(92deg, rgba(255,255,255,.98), rgba(199,210,254,.92) 42%, rgba(94,234,212,.88));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.contentMeta{ color:var(--muted); margin-top:6px; max-width:72ch; line-height:1.55; }

.contentToolbar{
  margin: 12px 0 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.tabs{
  display:flex;
  gap:8px;
  padding:6px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
}
.tab{
  border:1px solid transparent;
  background:transparent;
  color:rgba(255,255,255,.82);
  padding:9px 12px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
}
.tab:hover{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.08); }
.tab.active{
  background:linear-gradient(135deg, rgba(124,92,255,.22), rgba(34,197,94,.10));
  border-color:rgba(124,92,255,.25);
}
.toolbarRight{ display:flex; gap:10px; align-items:center; }
.seg{
  display:flex;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  padding:4px;
  border-radius:16px;
  gap:4px;
}
.segBtn{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid transparent;
  background:transparent;
  color:rgba(255,255,255,.78);
  font-weight:800;
  font-size:12px;
  cursor:pointer;
}
.segBtn:hover{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.08); }
.segBtn.active{ background:rgba(124,92,255,.20); border-color:rgba(124,92,255,.25); color:rgba(255,255,255,.9); }

.view{ display:block; }
.view[hidden]{ display:none !important; }

.split{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
.panel{
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
  min-height: 520px;
}
.panelHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:12px;
}
.panelTitle{ font-weight:900; letter-spacing:-.01em; }
.panelTools{ display:flex; gap:8px; align-items:center; }

.input{
  background:rgba(0,0,0,.12);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  border-radius:14px;
  padding:10px 12px;
  outline:none;
  min-width: 210px;
}
.input:focus{ border-color: rgba(124,92,255,.40); box-shadow: 0 0 0 4px rgba(124,92,255,.14); }
.textarea{ resize: vertical; min-height: 140px; }

.list{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding-right:6px;
  max-height: 440px;
  overflow:auto;
}
.listItem{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.10);
  cursor:pointer;
}
.listItem:hover{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.10); }
.listItem.active{ border-color: rgba(124,92,255,.30); background: rgba(124,92,255,.12); }
.liMain{ flex:1; min-width: 0; }
.liTitle{ font-weight:900; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.liMeta{ margin-top:4px; color:var(--muted); font-size:12px; display:flex; gap:8px; flex-wrap:wrap; }
.liRight{ display:flex; flex-direction:column; gap:8px; align-items:flex-end; }

.empty{
  border:1px dashed rgba(255,255,255,.14);
  background:rgba(0,0,0,.08);
  border-radius:16px;
  padding:18px;
  color:rgba(255,255,255,.82);
}
.emptyTitle{ font-weight:900; }
.emptyMeta{ margin-top:6px; color:var(--muted); }

.detailTop{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.detailTitle{ font-weight:950; font-size:16px; letter-spacing:-.01em; }
.detailChips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.82);
}
.chip.b2b{ background:rgba(124,92,255,.12); border-color:rgba(124,92,255,.35); }
.chip.b2c{ background:rgba(244,114,182,.12); border-color:rgba(244,114,182,.38); }
.chip.b2g{ background:rgba(14,165,233,.12); border-color:rgba(14,165,233,.38); }
.chip.erp{ background:rgba(34,197,94,.12); border-color:rgba(34,197,94,.35); }
.chip.warn{ background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.35); }
.detailGrid{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.kv{ border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:10px 12px; background:rgba(0,0,0,.08); }
.kv .k{ color:var(--muted); font-size:12px; }
.kv .v{ margin-top:4px; font-weight:900; }
.detailBody{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  padding:12px;
  background:rgba(0,0,0,.08);
  color:rgba(255,255,255,.86);
  line-height:1.55;
  min-height: 120px;
}
.detailActions{ margin-top:12px; display:flex; gap:10px; flex-wrap:wrap; }

.workflow{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:12px;
  background:rgba(0,0,0,.08);
}
.wfHead{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.wfTitle{ font-weight:950; }
.wfMeta{ color:var(--muted); font-size:12px; }
.stepper{
  margin:10px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.step{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:rgba(255,255,255,.82);
  font-size:12px;
  font-weight:900;
}
.step .n{
  width:22px;
  height:22px;
  border-radius:10px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  font-size:12px;
}

/* Homepage builder */
.builder{ width:100%; }
.builderGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
  align-items:start;
}
.builderPreview{
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(0,0,0,.08);
  overflow:hidden;
}
.panelHead{ display:flex; align-items:center; justify-content:space-between; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,.08); }
.panelTitle{ font-weight:950; }
.panelTools{ display:flex; gap:8px; }
.builderFrame{
  width:100%;
  height:520px;
  border:0;
  background:#fff;
}
@media (max-width: 980px){
  .builderGrid{ grid-template-columns: 1fr; }
  .builderFrame{ height:420px; }
}
.step.todo{ opacity:.72; }
.step.done{
  border-color: rgba(34,197,94,.28);
  background:rgba(34,197,94,.10);
}
.step.done .n{
  border-color: rgba(34,197,94,.35);
  background:rgba(34,197,94,.14);
}
.step.current{
  border-color: rgba(124,92,255,.32);
  background:rgba(124,92,255,.12);
}
.step.current .n{
  border-color: rgba(124,92,255,.38);
  background:rgba(124,92,255,.16);
}

.dataTable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  background:rgba(0,0,0,.10);
}
.dataTable th, .dataTable td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.07);
  vertical-align:top;
  font-size:13px;
}
.dataTable th{
  color:rgba(255,255,255,.72);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  background:rgba(255,255,255,.06);
}
.dataTable tr:hover td{ background:rgba(255,255,255,.04); }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size:12px; }
.right{ text-align:right; }

.calendar{
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap:8px;
}
.calCell{
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  padding:10px;
  background:rgba(0,0,0,.10);
  min-height: 92px;
}
.calTop{ display:flex; justify-content:space-between; color:rgba(255,255,255,.72); font-size:12px; }
.calBadges{ display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  font-size:12px;
  color:rgba(255,255,255,.82);
}
.badge.warn{ border-color: rgba(245,158,11,.35); background:rgba(245,158,11,.10); }
.badge.ok{ border-color: rgba(34,197,94,.35); background:rgba(34,197,94,.10); }

.modal{
  position:fixed;
  inset:0;
  display:grid;
  place-items:center;
  z-index: 50;
}
.modal[hidden]{
  display:none !important;
  pointer-events:none;
}
body.modal-open{ overflow:hidden; }
.modalOverlay{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.55);
}
.modalCard{
  position:relative;
  width:min(720px, calc(100vw - 24px));
  border:1px solid rgba(255,255,255,.12);
  background:rgba(12,18,34,.92);
  backdrop-filter: blur(10px);
  border-radius:18px;
  box-shadow: var(--shadow);
}
.modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.modalTitle{ font-weight:950; }
.iconBtn{
  width:34px;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.86);
  cursor:pointer;
  font-size:18px;
  line-height:1;
}
.iconBtn:hover{ background:rgba(255,255,255,.085); }
.modalBody{ padding:14px; }
.dropzone{
  border:1px dashed rgba(255,255,255,.18);
  border-radius:18px;
  padding:18px;
  background:rgba(0,0,0,.10);
}
.dropzone.dragover{
  border-color:rgba(124,158,255,.55);
  background:rgba(124,158,255,.08);
}
.dropTitle{ font-weight:950; }
.dropMeta{ color:var(--muted); margin-top:6px; }
.dropActions{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }
.uploadList{
  margin-top:12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:10px 12px;
  background:rgba(0,0,0,.10);
  color:rgba(255,255,255,.86);
}

.formShell{
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
}
.formHead{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.formTitle{ font-weight:950; font-size:16px; }
.formMeta{ color:var(--muted); margin-top:4px; }
.formActions{ display:flex; gap:10px; align-items:center; }
.formGrid{
  margin-top:14px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
.field{ display:flex; flex-direction:column; gap:8px; }
.field .label{ color:rgba(255,255,255,.78); font-size:12px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.field.span2{ grid-column: span 2; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}

.card{
  grid-column: span 4;
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(165deg, rgba(255,255,255,.085), rgba(255,255,255,.028) 48%, rgba(12,18,32,.35));
  border-radius: var(--radius);
  padding:14px;
  box-shadow: var(--shadow);
  transition: border-color .2s var(--ease-out), box-shadow .25s var(--ease-out), transform .2s var(--ease-out);
}
.card::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(124,92,255,.14), transparent 52%),
    radial-gradient(90% 70% at 0% 100%, rgba(34,197,94,.08), transparent 48%);
  pointer-events:none;
  opacity:.95;
}
.card > *{ position:relative; z-index:1; }
.card:hover{
  border-color:rgba(165,180,252,.22);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}
.card.kpi .kpiValue{
  font-variant-numeric: tabular-nums;
  text-shadow: 0 12px 40px rgba(99,102,241,.25);
}
.card.wide{ grid-column: span 8; }
.cardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.cardTitle{ font-weight:800; letter-spacing:-.01em; }
.cardActions{ display:flex; gap:8px; }

.pill{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.80);
}
.pill.erp{ border-color: rgba(34,197,94,.35); background:rgba(34,197,94,.10); }
.pill.warn{ border-color: rgba(245,158,11,.35); background:rgba(245,158,11,.10); }
.pill.gov{ border-color: rgba(14,165,233,.40); background:rgba(14,165,233,.12); color:#e0f2fe; }
.pill.hub{
  border-color: rgba(192,132,252,.38);
  background: linear-gradient(135deg, rgba(244,114,182,.14), rgba(129,140,248,.12));
  color: #f5f3ff;
}

.policyH{ font-size:1.05rem; margin:0 0 10px; }
.policyBlock{ margin-top:14px; padding-top:12px; border-top:1px solid rgba(255,255,255,.08); }
.policyBlock h4{ margin:0 0 6px; font-size:13px; color:var(--muted2, #94a3b8); text-transform:uppercase; letter-spacing:.04em; }
.policyBlock p, .policyBlock li{ font-size:14px; line-height:1.55; color:var(--text, #e2e8f0); }
.policyList{ margin:6px 0 0; padding-left:1.2rem; }
.policyList li{ margin:4px 0; }

.kpiValue{ font-size:34px; font-weight:900; margin-top:12px; letter-spacing:-.02em; }
.kpiSub{ color:var(--muted); margin-top:6px; font-size:13px; }

.table{ margin-top:12px; border:1px solid rgba(255,255,255,.10); border-radius:14px; overflow:hidden; }
.row{
  display:grid;
  grid-template-columns: 68px 1fr 92px 92px 80px;
  gap:10px;
  padding:10px 12px;
  align-items:center;
  background:rgba(0,0,0,.12);
  border-top:1px solid rgba(255,255,255,.06);
}
.row.head{
  background:rgba(255,255,255,.06);
  border-top:0;
  color:rgba(255,255,255,.72);
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.task{ font-weight:700; }

.prio{ font-size:12px; padding:4px 10px; border-radius:999px; display:inline-block; border:1px solid rgba(255,255,255,.14); }
.prio.p1{ background:rgba(239,68,68,.12); border-color:rgba(239,68,68,.35); }
.prio.p2{ background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.35); }
.prio.p3{ background:rgba(99,102,241,.12); border-color:rgba(99,102,241,.30); }

.tag, .status{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  display:inline-block;
  text-align:center;
}
.tag.b2b{ background:rgba(124,92,255,.12); border-color:rgba(124,92,255,.35); }
.tag.b2c{ background:rgba(244,114,182,.12); border-color:rgba(244,114,182,.38); }
.tag.b2g{ background:rgba(14,165,233,.14); border-color:rgba(14,165,233,.40); }
.tag.erp{ background:rgba(34,197,94,.12); border-color:rgba(34,197,94,.35); }
.status.s-todo{ background:rgba(255,255,255,.06); }
.status.s-wip{ background:rgba(124,92,255,.10); border-color:rgba(124,92,255,.30); }
.status.s-review{ background:rgba(34,197,94,.10); border-color:rgba(34,197,94,.30); }

.timeline{
  margin:12px 0 0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.timeline li{
  display:grid;
  grid-template-columns: 14px 1fr;
  gap:10px;
  align-items:start;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.10);
}
.tDot{
  width:10px; height:10px; border-radius:50%;
  margin-top:4px;
  background:rgba(255,255,255,.35);
}
.tDot.b2b{ background:rgba(124,92,255,.9); }
.tDot.erp{ background:rgba(34,197,94,.9); }
.tTime{ color:var(--muted); font-size:12px; margin-top:4px; }

.quick{
  margin-top:14px;
}
.quick:not(.quick--hub){
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.quick.quick--hub{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.1);
}
.quick.quick--hub .btn.sm{
  border-radius:12px;
  padding:10px 14px;
  font-weight:800;
}
.quick.quick--hub .btn.primary.sm{
  box-shadow:0 10px 28px rgba(99,102,241,.28);
}
.quick > a.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-decoration:none;
  min-height:44px;
  box-sizing:border-box;
}
.quickBtn{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.quickBtn:hover{ background:rgba(255,255,255,.085); }

.dense .card{ padding:12px; }
.dense .kpiValue{ font-size:30px; }
.dense .row{ padding:9px 10px; }

@media (max-width: 1100px){
  .search{ min-width: 240px; }
  .grid{ grid-template-columns: repeat(6, 1fr); }
  .card{ grid-column: span 6; }
  .card.wide{ grid-column: span 6; }
  .split{ grid-template-columns: 1fr; }
}
@media (max-width: 860px){
  .app{
    grid-template-columns: 1fr;
    grid-template-rows: 72px auto 1fr;
    grid-template-areas:
      "topbar"
      "sidebar"
      "main";
  }
  .sidebar{ border-right:0; border-bottom:1px solid var(--border); }
  .search{ display:none; }
}

/* ---------- Contest: roulette visual ---------- */
.contestHero{
  margin-bottom: 14px;
}
.contestHeroGrid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 18px;
  align-items: center;
}
@media (max-width: 720px){
  .contestHeroGrid{ grid-template-columns: 1fr; }
}
.contestWheelWrap{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
}
.contestWheel{
  position:relative;
  width: min(240px, 72vw);
  height: min(240px, 72vw);
}
.contestWheel__pin{
  position:absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 18px solid rgba(250, 250, 250, 0.92);
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}
.contestWheel__disc{
  width:100%;
  height:100%;
  border-radius: 50%;
  background: conic-gradient(
    #7c5cff 0deg 45deg,
    #22c55e 45deg 90deg,
    #38bdf8 90deg 135deg,
    #f59e0b 135deg 180deg,
    #a78bfa 180deg 225deg,
    #f472b6 225deg 270deg,
    #2dd4bf 270deg 315deg,
    #fb7185 315deg 360deg
  );
  box-shadow:
    inset 0 0 0 10px rgba(15, 23, 42, 0.35),
    0 16px 40px rgba(0,0,0,.35);
  transition: transform 3.8s cubic-bezier(0.12, 0.72, 0.12, 1);
  position: relative;
}
.contestWheel__hub{
  position:absolute;
  inset: 22%;
  border-radius: 50%;
  background: rgba(11, 18, 32, 0.88);
  border: 1px solid rgba(255,255,255,.12);
  display:grid;
  place-items:center;
  text-align:center;
  padding: 10px;
  z-index: 1;
}
.contestWheel__hubText{
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  color: rgba(255,255,255,.88);
  max-width: 12rem;
}
.contestWheel__hint{
  font-size: 11px;
  color: var(--muted);
  text-align:center;
  max-width: 280px;
  line-height: 1.5;
}
.contestGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
}
@media (min-width: 900px){
  .contestGrid{ grid-template-columns: 1fr 1fr; }
}
.contestCard h2{
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 850;
}
.contestStack label{
  display:block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}
.contestStack .input{ margin-top: 6px; }
.contestRow{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.contestPre{
  white-space: pre-wrap;
  word-break: break-word;
  margin: 10px 0 0;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 12px;
  border-radius: 12px;
  min-height: 56px;
  font-size: 12px;
  color: rgba(255,255,255,.86);
}

/* ---------- Platform polish: focus, motion, small screens ---------- */
.btn:focus-visible,
.navItem:focus-visible,
.tab:focus-visible,
.segBtn:focus-visible,
.quickBtn:focus-visible,
.langPill:focus-visible,
input.input:focus-visible{
  outline: 2px solid rgba(129, 140, 248, 0.9);
  outline-offset: 2px;
}
.navItem{
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
@media (max-width: 720px){
  .row{
    grid-template-columns: 56px minmax(0,1fr) 72px 72px 64px;
    gap: 8px;
    font-size: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .row.head{ min-width: min(100%, 520px); }
}
@media (prefers-reduced-motion: reduce){
  *,
  *::before,
  *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .contestWheel__disc{ transition: none !important; }
}

/* ── 메인 · 관광 · Mother AI 공통 상단 링크 (tour 등) ── */
.ikctaSiteNav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 14px;
  padding:10px 16px;
  margin-bottom:14px;
  border-radius:14px;
  background:linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color:#e2e8f0;
  font-size:13px;
  box-shadow:0 8px 24px rgba(15,23,42,.12);
}
.ikctaSiteNav__brand{
  font-weight:800;
  letter-spacing:.02em;
  color:#f8fafc;
  text-decoration:none;
}
.ikctaSiteNav__brand:hover{ color:#a5f3fc; }
.ikctaSiteNav__links{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-left:auto;
}
.ikctaSiteNav__link{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.35);
  color:#e2e8f0;
  text-decoration:none;
  font-weight:600;
  transition:background .15s ease, border-color .15s ease;
}
.ikctaSiteNav__link:hover{
  border-color:#67e8f9;
  color:#f0fdfa;
  background:rgba(6,182,212,.12);
}
.ikctaSiteNav__link.is-active{
  border-color:#22d3ee;
  color:#ecfeff;
  background:rgba(34,211,238,.18);
}

/* ── 포털 분리 nav (B2C / B2B / B2G) ── */
.ikctaPortalNav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  padding:10px 14px;
  margin-bottom:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(15,23,42,.75);
  font-size:13px;
}
.ikctaPortalNav--b2c{ border-color:rgba(244,114,182,.35); background:rgba(30,15,25,.85); }
.ikctaPortalNav--b2b{ border-color:rgba(99,102,241,.4); background:rgba(15,15,40,.9); }
.ikctaPortalNav--b2g{ border-color:rgba(14,165,233,.35); background:rgba(8,30,45,.88); }
.ikctaPortalNav__brand{
  font-weight:800;
  color:#f8fafc;
  text-decoration:none;
}
.ikctaPortalNav__badge{
  font-size:11px;
  font-weight:700;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#e2e8f0;
}
.ikctaPortalNav__portals,
.ikctaPortalNav__extras{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-left:auto;
}
.ikctaPortalNav__extras{ margin-left:0; }
@media (min-width:720px){
  .ikctaPortalNav__extras{ margin-left:auto; }
}
.ikctaPortalNav__link,
.ikctaPortalNav__extra{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.3);
  color:#e2e8f0;
  text-decoration:none;
  font-weight:600;
  font-size:12px;
}
.ikctaPortalNav__link:hover,
.ikctaPortalNav__extra:hover{
  border-color:rgba(255,255,255,.45);
  background:rgba(255,255,255,.06);
}
.ikctaPortalNav__link.is-active,
.ikctaPortalNav__extra.is-active{
  border-color:#67e8f9;
  background:rgba(34,211,238,.15);
  color:#ecfeff;
}
.ikctaPortalNav--b2c .ikctaPortalNav__link.is-active{ border-color:#f472b6; background:rgba(244,114,182,.2); }
.ikctaPortalNav--b2b .ikctaPortalNav__link.is-active{ border-color:#818cf8; background:rgba(99,102,241,.25); }
.ikctaPortalNav--b2g .ikctaPortalNav__link.is-active{ border-color:#38bdf8; background:rgba(14,165,233,.2); }
.b2bAppPortalBar{
  max-width:1400px;
  margin:8px auto 0;
  padding:0 12px;
}
.erpAccessBar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px 12px;
  max-width:1400px;
  margin:6px auto 0;
  padding:8px 14px;
  border-radius:12px;
  border:1px solid rgba(99,102,241,.35);
  background:rgba(30,27,75,.75);
  font-size:13px;
}
.erpAccessBar__label{ font-weight:700; color:#c7d2fe; }
.erpAccessBar__input{
  flex:1;
  min-width:160px;
  max-width:280px;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid rgba(148,163,184,.3);
  background:rgba(0,0,0,.25);
  color:inherit;
}
.erpAccessBar__badge{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#e2e8f0;
}
.erpAccessBar__badge.is-hq{ border:1px solid rgba(129,140,248,.5); color:#e0e7ff; }
.erpAccessBar__badge.is-partner{ border:1px solid rgba(45,212,191,.4); color:#ccfbf1; }
body[data-erp-tier="partner"] .navSection--hub,
body[data-erp-tier="partner"] [data-hq-only],
body[data-erp-tier="partner"] [data-ai-hq-only]{ display:none !important; }
.erpCatalogPanel .portalHubLead{ max-width:none; }

.dot.b2g{ background:linear-gradient(135deg,#22d3ee,#0284c7); box-shadow:0 0 0 3px rgba(14,165,233,.22); }
.pageLogo.b2gLogo{ font-size:11px; letter-spacing:.04em; background:linear-gradient(135deg,#0ea5e9,#0369a1); }
.b2gHero{ border-color:rgba(14,165,233,.28); background:linear-gradient(165deg, rgba(14,165,233,.08), rgba(15,23,42,.04)); }
.b2gHeroGrid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:720px){ .b2gHeroGrid{ grid-template-columns:1fr; } }
.b2gList{ margin:0; padding-left:1.1rem; line-height:1.55; }
.b2gCard{ border-color:rgba(14,165,233,.2); }
.b2gCode{ max-height:320px; overflow:auto; font-size:12px; margin:8px 0 0; }
.b2gDetails summary{ cursor:pointer; font-weight:600; color:#334155; }
.portalHubShell--b2g{
  --hub-accent:#0ea5e9;
}
.portalHubShell--b2g .portalHubShell__mesh{
  background:radial-gradient(ellipse 80% 60% at 20% 0%, rgba(14,165,233,.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(6,182,212,.12), transparent 50%);
}
.b2gChannels{ border-color:rgba(14,165,233,.22); }
.b2gChannelGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:12px;
}
@media (max-width:720px){ .b2gChannelGrid{ grid-template-columns:1fr; } }
.tag.b2b{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(99,102,241,.14);
  border:1px solid rgba(99,102,241,.35);
  color:#3730a3;
}
.svcGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(200px, 1fr));
  gap:12px;
}
.svcTile{ transition:transform .15s ease, box-shadow .15s ease; }
.svcTile:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(15,23,42,.1); }
.svcLaneGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width:800px){ .svcLaneGrid{ grid-template-columns:1fr; } }
.svcLane--b2c{ border-color:rgba(244,114,182,.35); background:linear-gradient(165deg, rgba(244,114,182,.06), transparent); }
.svcLane--b2b{ border-color:rgba(99,102,241,.35); background:linear-gradient(165deg, rgba(99,102,241,.06), transparent); }
.svcLane h2{ margin:8px 0 6px; font-size:1.05rem; }
.svcCatalogList{ margin:10px 0 0; padding-left:1.1rem; line-height:1.55; }
.marketGrid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
  gap:12px;
}
.marketTile{ transition:transform .15s ease, box-shadow .15s ease; }
.marketTile:hover{ transform:translateY(-2px); box-shadow:0 12px 28px rgba(15,23,42,.1); }
.marketTile--domestic{ border-color:rgba(244,114,182,.35); }
.marketTile--outbound{ border-color:rgba(56,189,248,.35); }
.marketTile--inbound{ border-color:rgba(34,197,94,.35); }
.tag.tag--outbound{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(56,189,248,.14);
  border:1px solid rgba(56,189,248,.35);
  color:#0369a1;
}
.tag.tag--inbound{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  padding:3px 8px;
  border-radius:999px;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.35);
  color:#166534;
}
.marketLinkList{ margin:8px 0 0; padding-left:1.1rem; line-height:1.55; }

/* 17 지자체 캐릭터 AI 위젯 */
html.ikcta-safe body{ padding-bottom:env(safe-area-inset-bottom,0); }
.rcFabRoot{ position:fixed; z-index:9000; right:max(12px,env(safe-area-inset-right,0)); bottom:max(12px,env(safe-area-inset-bottom,0)); display:flex; flex-direction:column; align-items:flex-end; gap:8px; pointer-events:none; }
.rcFabRoot *{ pointer-events:auto; }
.rcFab{ display:flex; align-items:center; gap:8px; border:1px solid rgba(34,211,238,.45); background:linear-gradient(135deg,#0f172a,#1e3a5f); color:#f8fafc; border-radius:999px; padding:10px 16px; font-weight:700; font-size:13px; cursor:pointer; box-shadow:0 12px 32px rgba(15,23,42,.35); }
.rcFab:hover{ border-color:#22d3ee; transform:translateY(-1px); }
.rcFabIcon{ font-size:1.2rem; }
.rcPanel{ display:none; width:min(360px,calc(100vw - 24px)); max-height:min(72vh,520px); border-radius:16px; border:1px solid rgba(148,163,184,.35); background:#0f172a; color:#e2e8f0; box-shadow:0 20px 50px rgba(0,0,0,.45); overflow:hidden; flex-direction:column; }
.rcPanel.is-open{ display:flex; }
.rcPanel--inline{ display:flex !important; width:100%; max-height:none; box-shadow:none; border-color:rgba(255,255,255,.12); }
.rcPanelHead{ display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:12px 14px; border-bottom:1px solid rgba(255,255,255,.08); background:rgba(6,182,212,.08); }
.rcPanelTitle{ display:flex; gap:10px; align-items:center; }
.rcPanelSub{ font-size:11px; color:#94a3b8; margin-top:2px; max-width:220px; line-height:1.35; }
.rcClose{ border:0; background:transparent; color:#94a3b8; font-size:22px; cursor:pointer; line-height:1; padding:0 4px; }
.rcPanelBody{ padding:12px 14px 14px; display:flex; flex-direction:column; gap:8px; min-height:0; flex:1; }
.rcLbl{ font-size:11px; color:#94a3b8; }
.rcSelect,.rcInput{ width:100%; border-radius:10px; border:1px solid rgba(255,255,255,.15); background:rgba(0,0,0,.25); color:inherit; padding:8px 10px; font-size:13px; }
.rcInput{ resize:vertical; min-height:52px; font-family:inherit; }
.rcStatus{ font-size:11px; color:#fbbf24; line-height:1.4; }
.rcStatus--ok{ color:#6ee7b7; }
.rcLog{ flex:1; min-height:120px; max-height:220px; overflow:auto; border:1px solid rgba(255,255,255,.1); border-radius:10px; padding:8px; background:rgba(0,0,0,.2); font-size:12px; }
.rcMsg{ margin-bottom:8px; }
.rcMsgWho{ font-size:10px; font-weight:700; color:#67e8f9; display:block; margin-bottom:3px; }
.rcMsg--user .rcMsgWho{ color:#f9a8d4; }
.rcMsgBody{ white-space:pre-wrap; line-height:1.45; }
.rcActions{ display:flex; flex-wrap:wrap; gap:6px; }
.rcBtn{ font-size:12px; padding:6px 12px; border-radius:999px; border:1px solid rgba(148,163,184,.4); background:rgba(255,255,255,.06); color:inherit; text-decoration:none; cursor:pointer; }
.rcBtn.primary{ background:#0f766e; border-color:#0f766e; color:#fff; }
.rcBtn.ghost{ background:transparent; }
.rcAvatar{ border-radius:14px; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 6px 16px rgba(0,0,0,.2); }
.rcHubGrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
.rcHubCard{ text-decoration:none; color:inherit; display:flex; flex-direction:column; align-items:flex-start; gap:6px; transition:transform .15s ease; }
.rcHubCard:hover{ transform:translateY(-2px); }
.rcHubCard h3{ margin:4px 0 0; font-size:1rem; }

.portalLoginPanel .field{ margin-bottom:12px; }
.portalLoginStatus--err{ color:#fca5a5; }
.hqAuthBadge.is-ok{ background:rgba(34,197,94,.2); border-color:rgba(34,197,94,.45); }
.hqPortalCheckGrid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:12px; }
.hqPortalCheckCard{ padding:12px; border-radius:12px; border:1px solid rgba(148,163,184,.25); background:rgba(15,23,42,.35); }
.hqPortalCheckCard.is-ok{ border-color:rgba(34,197,94,.4); }
.hqPortalCheckCard.is-denied{ opacity:.65; }

