/* app/styles — RemoteDesk 세련된 다크 테마 (glassmorphism + aurora) */

:root {
  color-scheme: dark;
  --bg: #06070d;
  --bg-2: #0a0c16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1fb;
  --muted: #94a1c2;
  --faint: #5e6b8a;
  --accent: #5b7cff;
  --accent-2: #21d4d4;
  --violet: #8b5cff;
  --grad: linear-gradient(135deg, #8b5cff 0%, #5b7cff 45%, #21d4d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(139,92,255,.16), rgba(33,212,212,.10));
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --shadow: 0 18px 50px -12px rgba(0, 0, 0, .65);
  --radius: 18px;
  --font: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Apple SD Gothic Neo", sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, monospace;

  /* 테마 가변 표면(라이트에서 override) */
  --input-bg: rgba(0, 0, 0, .32);
  --input-bg-focus: rgba(0, 0, 0, .45);
  --code-bg: rgba(0, 0, 0, .4);
  --glass: rgba(12, 15, 26, .72);
  --glass-2: rgba(10, 13, 24, .66);
  --glass-3: rgba(10, 13, 24, .86);
  --stage-bg: radial-gradient(80% 80% at 50% 0%, #0d1020, #000);
  --aurora-opacity: .55;
  --hud-val: #fff;
}

/* ── 라이트 테마 ── */
:root[data-theme="light"] {
  color-scheme: light; /* 라이트 테마에선 네이티브 컨트롤·스크롤바도 밝게(다크 잔상 제거) */
  --bg: #eef1fa;
  --bg-2: #e3e8f4;
  --surface: rgba(255, 255, 255, .72);
  --surface-2: rgba(24, 36, 74, .05);
  --hairline: rgba(24, 36, 74, .12);
  --hairline-strong: rgba(24, 36, 74, .2);
  --text: #151c33;
  --muted: #54618a;
  --faint: #8591b3;
  --shadow: 0 18px 50px -16px rgba(40, 60, 120, .3);
  --input-bg: rgba(255, 255, 255, .85);
  --input-bg-focus: #fff;
  --code-bg: rgba(24, 36, 74, .05);
  --glass: rgba(255, 255, 255, .8);
  --glass-2: rgba(255, 255, 255, .74);
  --glass-3: rgba(255, 255, 255, .9);
  --stage-bg: radial-gradient(80% 80% at 50% 0%, #dde4f3, #c6d0e8);
  --aurora-opacity: .4;
  --hud-val: var(--text);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: keep-all; overflow-wrap: break-word; }
#root { height: 100vh; }
::selection { background: rgba(91, 124, 255, .35); }
/* 키보드 포커스 링 — 마우스 클릭엔 안 뜨고 Tab 이동 시에만(접근성). 버튼·링크가 outline:none이던 갭 보완 */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* 스크롤바 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); background-clip: padding-box; }

@keyframes auroraDrift { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(4%, -3%, 0) scale(1.12); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ── 오로라 배경 ── */
.home, .stage { position: relative; isolation: isolate; }
.home::before, .home::after {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  filter: blur(90px); opacity: var(--aurora-opacity);
}
.home::before {
  background:
    radial-gradient(40% 40% at 20% 25%, rgba(139,92,255,.55), transparent 70%),
    radial-gradient(35% 35% at 80% 20%, rgba(33,212,212,.40), transparent 70%);
  animation: auroraDrift 18s ease-in-out infinite;
}
.home::after {
  background: radial-gradient(45% 45% at 70% 85%, rgba(91,124,255,.45), transparent 70%);
  animation: auroraDrift 22s ease-in-out infinite reverse;
}

/* ── Home ── */
.home { display: flex; flex-direction: column; height: 100%; overflow-y: auto; scroll-behavior: smooth; }
.home__bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 16px 32px; background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px); border-bottom: 1px solid var(--hairline); }
.home__mark { display: inline-flex; filter: drop-shadow(0 4px 12px rgba(91,124,255,.4)); }
.home__logo { font-size: 20px; font-weight: 800; letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home__sub { color: var(--muted); font-size: 13px; font-weight: 500; padding-left: 12px; border-left: 1px solid var(--hairline); }
.home__ready { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--ok);
  background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.28); border-radius: 999px; padding: 5px 12px; }
.iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  font-size: 15px; line-height: 1; cursor: pointer; border-radius: 11px; background: var(--surface);
  font-family: inherit; border: 1px solid var(--hairline);
  transition: background .15s, transform .12s, border-color .15s; }
.iconbtn { color: var(--text); text-decoration: none; }
.iconbtn:hover { background: var(--surface-2); border-color: var(--hairline-strong); transform: translateY(-1px); }
.iconbtn--text { width: auto; min-width: 40px; padding: 0 13px; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }

/* Hero */
.hero { max-width: 880px; margin: 0 auto; width: 100%; padding: 56px 32px 8px; text-align: center;
  animation: fadeUp .55s ease both; }
.hero__badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--muted); background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; }
.hero__title { font-size: clamp(30px, 5.2vw, 52px); line-height: 1.08; font-weight: 800;
  letter-spacing: -.03em; margin: 0 0 18px; }
.hero__grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { max-width: 620px; margin: 0 auto; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.hero__chips span { font-size: 13px; font-weight: 500; color: var(--text); background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 15px; }

.home__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
  padding: 36px 32px; max-width: 1080px; margin: 0 auto; width: 100%; }

/* 섹션 헤더(공통) */
.sec-head { max-width: 1080px; margin: 0 auto; width: 100%; padding: 0 32px; text-align: center; }
.sec-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.sec-title { margin: 8px 0 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.02em; }

/* 사용법 스텝 */
.steps { padding: 44px 0 8px; }
.steps__grid { max-width: 1080px; margin: 28px auto 0; width: 100%; padding: 0 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 24px; animation: fadeUp .5s ease both; }
.step__n { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: #fff; border-radius: 11px; background: var(--grad);
  box-shadow: 0 8px 20px -8px rgba(91,124,255,.6); margin-bottom: 16px; }
.step h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.step p code, .step code { font: 12.5px var(--mono); background: var(--code-bg); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.step .hint-code { margin-top: 12px; white-space: pre; }

/* Features */
.features { padding: 44px 0 16px; }
.features__grid { max-width: 1080px; margin: 28px auto 0; width: 100%; padding: 0 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 22px; animation: fadeUp .5s ease both; transition: transform .18s, border-color .18s, background .18s; }
.feat:hover { transform: translateY(-3px); border-color: var(--hairline-strong); background: var(--surface-2); }
.feat__ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--hairline); margin-bottom: 14px; }
.feat h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.feat p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }

.card { position: relative; background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px;
  backdrop-filter: blur(20px) saturate(140%); box-shadow: var(--shadow); animation: fadeUp .5s ease both; }
.card:nth-child(2) { animation-delay: .08s; }
.card--accent { background: var(--grad-soft); border-color: rgba(123,140,255,.28); }
.card--accent::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); padding: 1px;
  background: linear-gradient(135deg, rgba(139,92,255,.6), rgba(33,212,212,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: .5; }

.card__title { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__desc { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin: -4px 0 2px; }
.card__desc b { color: var(--text); font-weight: 600; }
.card__free { margin: 10px 0 2px; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5;
  color: var(--text); background: color-mix(in srgb, var(--ok) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 32%, transparent); }
.card__free b { color: var(--ok); font-weight: 700; }

.field { display: flex; flex-direction: column; gap: 7px; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.input { background: var(--input-bg); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font-size: 14px; font-family: var(--font); outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s; }
.input::placeholder { color: var(--faint); }
.input:focus { border-color: rgba(91,124,255,.7); background: var(--input-bg-focus);
  box-shadow: 0 0 0 4px rgba(91,124,255,.14); }
.input--big { font-size: 20px; font-weight: 700; letter-spacing: .14em; font-family: var(--mono);
  font-variant-numeric: tabular-nums; padding: 9px 16px; }

.hint-code { background: var(--code-bg); border: 1px solid var(--hairline); border-radius: 10px;
  padding: 11px 13px; color: var(--muted); font: 12px/1.5 var(--mono); overflow-x: auto; margin: 2px 0 0; }

.btn { border: none; border-radius: 13px; padding: 14px 18px; font-size: 15px; font-weight: 700;
  font-family: var(--font); cursor: pointer; transition: transform .12s, box-shadow .2s, filter .2s; }
.btn--primary { color: #fff; background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 10px 30px -8px rgba(91,124,255,.6); }
.btn--primary:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 16px 40px -10px rgba(91,124,255,.7); }
.btn--primary:active { transform: translateY(0) scale(.99); }
.btn--quiet { background: transparent; border: 1px solid var(--hairline); color: var(--muted); }
.btn--quiet:hover { color: var(--text); background: var(--surface-2); transform: translateY(-1px); }

.msg { color: var(--bad); font-size: 13px; min-height: 18px; font-weight: 500; }
.home__foot { margin-top: 24px; padding: 32px; border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; align-items: center; gap: 14px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.foot__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted);
  font-size: 13px; font-weight: 500; text-decoration: none; padding: 7px 13px; border-radius: 999px;
  border: 1px solid transparent; transition: color .15s, background .15s, border-color .15s; }
.foot__links a:hover { color: var(--text); background: var(--surface); border-color: var(--hairline); }
.foot__note { color: var(--faint); font-size: 12px; text-align: center; }
.foot__note b { color: var(--muted); font-weight: 600; }
.foot__brand { color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; }

/* ── Session ── */
.stage { width: 100%; height: 100vh; overflow: hidden; background: var(--stage-bg); }
.screen { position: absolute; inset: 0; margin: auto; max-width: calc(100% - 24px); max-height: calc(100% - 64px);
  top: 52px; display: block; border-radius: 12px; cursor: default; outline: none;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); background: #000; }

/* toolbar */
.toolbar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 16px;
  background: var(--glass); border: 1px solid var(--hairline-strong); border-radius: 999px;
  backdrop-filter: blur(22px) saturate(160%); box-shadow: var(--shadow); max-width: calc(100% - 24px); }
.toolbar__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn);
  box-shadow: 0 0 10px currentColor; color: var(--warn); animation: pulse 1.6s ease-in-out infinite; }
.toolbar__dot[data-state="ok"] { background: var(--ok); color: var(--ok); animation: none; }
.toolbar__dot[data-state="bad"] { background: var(--bad); color: var(--bad); animation: none; }
.toolbar__dot[data-state="wait"] { background: var(--warn); color: var(--warn); }
.toolbar__state { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.toolbar__file { font-size: 12px; color: var(--accent-2); font-variant-numeric: tabular-nums; max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toolbar__spacer { flex: 1; min-width: 6px; }
.toolbar__btn { background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text);
  border-radius: 999px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: background .15s, transform .12s, border-color .15s; white-space: nowrap; }
.toolbar__btn:hover { background: rgba(255,255,255,.13); border-color: var(--hairline-strong); transform: translateY(-1px); }
.toolbar__btn:active { transform: translateY(0); }
.toolbar__btn--danger { background: rgba(251,113,133,.14); border-color: rgba(251,113,133,.35); color: #ff9bab; }
.toolbar__btn--danger:hover { background: rgba(251,113,133,.24); }

/* ── Operations landing ── */
.ops-home {
  --bg: #f6f8fc;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef4ff;
  --hairline: rgba(21, 41, 75, .10);
  --hairline-strong: rgba(21, 41, 75, .18);
  --text: #202735;
  --muted: #66758d;
  --faint: #8b98aa;
  --accent: #158df4;
  --accent-2: #00a4c8;
  --grad: linear-gradient(135deg, #158df4 0%, #00a4c8 100%);
  --grad-soft: linear-gradient(135deg, rgba(21,141,244,.10), rgba(0,164,200,.08));
  --shadow: 0 16px 38px -24px rgba(29, 54, 88, .42);
  background: var(--bg);
  color: var(--text);
}
.ops-home::before, .ops-home::after { display: none; }
.ops-home .home__bar {
  background: rgba(255,255,255,.92);
  border-bottom-color: rgba(20,39,68,.10);
  backdrop-filter: blur(14px);
}
.ops-home .home__logo { background: none; color: #111827; }
.ops-home .home__mark { filter: none; }
.ops-home .home__ready { background: #e8fbf3; color: #05875d; border-color: #b7efd9; }
.ops-home .iconbtn { background: #fff; border-color: #dbe5f2; color: #172033; }
.ops-home .iconbtn:hover { background: #f2f7ff; border-color: #bfd5ef; }
.ops-navlinks { display: flex; align-items: center; gap: 22px; margin-left: 42px; }
.ops-navlinks a, .ops-navlink {
  color: #1f2937; text-decoration: none; font: 700 14px/1 var(--font);
  background: none; border: 0; padding: 0; cursor: pointer;
}
.ops-navlinks a:hover, .ops-navlink:hover { color: var(--accent); }
.ops-burger { display: none; } /* 햄버거는 데스크톱에서 숨김, 1040px 이하에서만 노출 */
.ops-hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(52px, 8vw, 92px) 0 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.ops-kicker {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  background: #eaf5ff;
  color: #096ebd;
  font-size: 13px;
  font-weight: 800;
}
.ops-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 1.07;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.ops-hero p {
  max-width: 660px;
  margin: 22px 0 0;
  color: #4d5d73;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.72;
  text-wrap: pretty;
}
.ops-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ops-hero__actions .btn { min-height: 48px; }
.ops-dashboard {
  padding: 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e1e9f4;
  box-shadow: 0 22px 58px -34px rgba(29,54,88,.52);
}
.ops-dashboard__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.ops-dashboard__head b { display: block; font-size: 18px; }
.ops-dashboard__head span { color: var(--muted); font-size: 13px; }
.ops-dashboard__head em { font-style: normal; color: #05875d; background: #e8fbf3; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; }
.ops-dashboard__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ops-meter { padding: 14px; border-radius: 10px; background: #f6f9fd; border: 1px solid #e8eef7; }
.ops-meter:first-child { grid-column: 1 / -1; background: #eaf5ff; border-color: #c9e5ff; }
.ops-meter span { display: block; color: var(--muted); font-size: 12px; }
.ops-meter b { display: block; margin-top: 6px; color: #152033; font-size: 26px; line-height: 1; }
.ops-dashboard__chart {
  height: 120px;
  margin-top: 16px;
  padding: 16px 14px 10px;
  display: flex;
  align-items: end;
  gap: 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff, #edf5ff);
}
.ops-dashboard__chart span { flex: 1; border-radius: 8px 8px 3px 3px; background: var(--grad); min-height: 22px; }
.ops-dashboard__log { display: grid; gap: 8px; margin-top: 14px; }
.ops-dashboard__log span { padding: 9px 10px; border-radius: 9px; color: #56667d; background: #f7f9fc; font-size: 13px; }
.ops-section, .ops-collector {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0;
}
.ops-section__head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(280px, .8fr); gap: 36px; align-items: start; margin-bottom: 34px; }
.ops-section__head h2, .ops-collector h2 {
  margin: 0;
  color: #202735;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.ops-section__head p, .ops-collector p {
  margin: 0;
  color: #69778b;
  font-size: 17px;
  line-height: 1.74;
}
.ops-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.ops-feature {
  min-height: 280px;
  padding: 26px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 52px -38px rgba(29,54,88,.58);
}
.ops-feature__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.ops-feature__icon {
  width: 52px; height: 52px; position: relative; color: var(--accent); flex: 0 0 52px;
}
.ops-feature__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.ops-feature__badge.is-mvp { background: #eaf4ff; color: #0b6fc6; }
.ops-feature__badge.is-planned { background: #eef3fa; color: #5b6b82; }
/* 준비 중 카드는 아이콘을 회색조로 낮춰 MVP 카드가 먼저 읽히게 한다. */
.ops-feature--planned .ops-feature__icon { filter: grayscale(1); opacity: .4; }
.ops-feature--planned h3 { color: #6b7688; }
.ops-feature__icon::before { content: ""; position: absolute; inset: 5px; border-radius: 8px; border: 5px solid currentColor; opacity: .95; }
.ops-feature__icon[data-icon="bar"]::before { border: 0; border-radius: 0; background: linear-gradient(90deg, currentColor 0 18%, transparent 18% 34%, currentColor 34% 52%, transparent 52% 68%, currentColor 68% 86%, transparent 86%); clip-path: polygon(0 35%,18% 35%,18% 100%,0 100%,34% 5%,52% 5%,52% 100%,34% 100%,68% 45%,86% 45%,86% 100%,68% 100%); }
.ops-feature__icon[data-icon="calc"]::before { border-radius: 7px; }
.ops-feature__icon[data-icon="calc"]::after { content: ""; position: absolute; left: 18px; top: 18px; width: 5px; height: 5px; background: currentColor; box-shadow: 10px 0 currentColor, 20px 0 currentColor, 0 10px currentColor, 10px 10px currentColor, 20px 10px currentColor, 0 20px currentColor, 10px 20px currentColor, 20px 20px currentColor; }
.ops-feature__icon[data-icon="remote"]::before { border-radius: 6px; transform: scaleX(1.1); }
.ops-feature__icon[data-icon="collector"]::before { border-width: 0; inset: 14px 6px 8px; background: currentColor; border-radius: 8px; }
.ops-feature__icon[data-icon="collector"]::after { content: ""; position: absolute; left: 18px; top: 5px; width: 18px; height: 12px; border: 4px solid currentColor; border-bottom: 0; border-radius: 18px 18px 0 0; }
.ops-feature__icon[data-icon="tool"]::before { border: 0; inset: 8px; width: 40px; height: 12px; background: currentColor; border-radius: 10px; transform: rotate(45deg); transform-origin: center; }
.ops-feature__icon[data-icon="qr"]::before { border: 0; inset: 6px; background: linear-gradient(90deg,currentColor 0 22%,transparent 22% 39%,currentColor 39% 58%,transparent 58% 74%,currentColor 74%), linear-gradient(currentColor 0 22%,transparent 22% 39%,currentColor 39% 58%,transparent 58% 74%,currentColor 74%); background-blend-mode: multiply; }
.ops-feature__icon[data-icon="bill"]::before { border: 0; content: "$"; font-size: 52px; font-weight: 800; line-height: 1; }
.ops-feature__icon[data-icon="bank"]::before { border: 0; clip-path: polygon(50% 0,95% 25%,5% 25%); background: currentColor; inset: 0 4px 28px; }
.ops-feature__icon[data-icon="bank"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 9px; height: 8px; background: currentColor; box-shadow: 0 -16px 0 -2px currentColor; }
.ops-feature__icon[data-icon="plus"]::before { border: 0; content: "+"; font-size: 64px; font-weight: 500; line-height: .75; }
.ops-feature h3 { margin: 0 0 14px; color: #202735; font-size: 23px; line-height: 1.25; letter-spacing: -.015em; }
.ops-feature ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; color: #4c5868; font-size: 14px; line-height: 1.5; }
.ops-feature li::before { content: "- "; color: #7d8ba0; }
.ops-feature a {
  color: var(--accent); font-size: 14px;
  /* 밑줄을 텍스트에 붙여 두고(테두리 대신 text-decoration) 상하 패딩으로 탭 영역 44px 확보,
     음수 마진으로 레이아웃 밀림 상쇄 → 모바일 터치 타깃 충족(기존 22px). */
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; margin: -11px -4px;
}
.ops-collector {
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  border-radius: 18px;
  padding: 42px;
  background: #10192a;
  color: #fff;
}
.ops-collector h2 { color: #fff; }
.ops-collector p { margin-top: 16px; color: #c5d0df; }
.ops-collector ul { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; color: #dce7f4; font-size: 14px; }
.ops-collector li::before { content: "✓"; margin-right: 8px; color: #3ee0b7; font-weight: 800; }
.ops-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.ops-flow__node {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.ops-flow__node b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 999px; background: #fff; color: #10192a; font-size: 13px; }
.ops-flow__node span { color: #f5f8fc; font-size: 14px; line-height: 1.4; font-weight: 700; }
.ops-support { padding-bottom: 24px; }
.ops-support .home__grid { padding: 0; }
.ops-home .card { background: #fff; border-color: #e1e9f4; box-shadow: 0 18px 48px -38px rgba(29,54,88,.52); backdrop-filter: none; }
.ops-home .card--accent { background: #eef7ff; border-color: #cfe6fb; }
.ops-home .card--accent::before { display: none; }
.ops-home .card__title { color: #5c6c82; }
.ops-home .card__desc { color: #56667a; }
.ops-home .card__desc b { color: #1f2937; }
.ops-home .field { color: #65758a; }
.ops-home .input { background: #fff; border-color: #d5dfed; color: #152033; }
.ops-home .input:focus { background: #fff; border-color: var(--accent); }
.ops-home .home__foot { border-top-color: #e1e9f4; }
@media (max-width: 1040px) {
  .ops-burger { display: inline-flex; }
  /* 내비 링크를 햄버거 드롭다운으로 — 홈 바(sticky)를 기준으로 우측 아래 앵커. 기본 숨김, .nav-open에 노출 */
  .ops-navlinks {
    display: none; position: absolute; top: calc(100% + 8px); right: 16px;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0; padding: 8px;
    min-width: 190px; z-index: 20;
    background: #fff; border: 1px solid #d5dfed; border-radius: 14px;
    box-shadow: 0 18px 50px -16px rgba(40, 60, 120, .3);
  }
  .home__bar.nav-open .ops-navlinks { display: flex; }
  .ops-navlinks a, .ops-navlinks .ops-navlink {
    padding: 12px 14px; width: 100%; text-align: left; font-size: 15px; border-radius: 9px;
  }
  .ops-navlinks a:hover, .ops-navlinks .ops-navlink:hover { background: #eef4ff; color: var(--accent); }
  .ops-hero, .ops-collector { grid-template-columns: 1fr; }
  .ops-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-section__head { grid-template-columns: 1fr; gap: 14px; }
  .ops-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .ops-hero, .ops-section, .ops-collector { width: min(100% - 28px, 1120px); }
  .ops-hero { padding-top: 34px; }
  .ops-hero h1 { font-size: clamp(32px, 11vw, 46px); }
  .ops-dashboard__grid, .ops-features, .ops-flow { grid-template-columns: 1fr; }
  .ops-collector { padding: 28px 20px; }
  .ops-feature { min-height: 0; }
  .ops-home .home__ready, .ops-home #aboutBtn { display: none; }
}

/* HUD */
.hud { position: absolute; top: 64px; left: 16px; z-index: 9;
  background: var(--glass-2); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 12px 16px; backdrop-filter: blur(20px) saturate(150%); box-shadow: var(--shadow);
  user-select: none; pointer-events: none; min-width: 188px; animation: fadeUp .4s ease both; }
.hud__title { font: 700 10px/1 var(--font); letter-spacing: .18em; margin-bottom: 10px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hud__row { display: flex; justify-content: space-between; gap: 20px; padding: 3px 0; font: 12px/1.4 var(--mono); }
.hud__k { color: var(--faint); }
.hud__v { color: var(--hud-val); font-weight: 600; font-variant-numeric: tabular-nums; }

/* File panel */
.fpanel { position: absolute; top: 64px; right: 16px; z-index: 11; width: 330px; max-height: 62vh;
  background: var(--glass-3); border: 1px solid var(--hairline-strong); border-radius: 16px;
  backdrop-filter: blur(24px) saturate(160%); box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; animation: fadeUp .3s ease both; }
.fpanel__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px;
  border-bottom: 1px solid var(--hairline); font-weight: 700; font-size: 13px; letter-spacing: .02em; }
.fpanel__x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1;
  width: 26px; height: 26px; border-radius: 8px; transition: background .15s; }
.fpanel__x:hover { background: var(--surface-2); color: var(--text); }
.fpanel__list { overflow-y: auto; padding: 8px; }
.fpanel__row { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px;
  font-size: 13px; transition: background .15s; }
.fpanel__row:hover { background: var(--surface-2); }
.fpanel__name { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fpanel__size { color: var(--faint); font: 11px var(--mono); }
.fpanel__dl { background: var(--grad); border: none; color: #fff; border-radius: 9px; cursor: pointer;
  width: 30px; height: 28px; font-size: 13px; transition: transform .12s, filter .2s; }
.fpanel__dl:hover { transform: translateY(-1px); filter: brightness(1.1); }
.fpanel__prog { color: var(--accent-2); font: 12px var(--mono); min-width: 34px; text-align: right; }
.fpanel__empty { color: var(--faint); padding: 22px; text-align: center; font-size: 13px; }

@media (max-width: 920px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .home__grid { grid-template-columns: 1fr; }
  .features__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .toolbar { left: 12px; right: 12px; transform: none; max-width: none; }
  .fpanel { left: 12px; right: 12px; width: auto; }
  /* 헤더 정리: 부제목 숨기고 패딩·간격 축소 → 버튼 잘림 방지 */
  .home__bar { padding: 12px 16px; gap: 8px; }
  .home__sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation: none !important; transition: none !important; }
}


/* ════════════════════════════════════════════════════
   B2B 디자인 시스템 v2 — 요금제 랜딩(pl-) & 관리자 콘솔(cs-)
   ════════════════════════════════════════════════════ */
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

/* 공통 페이지 셸(오로라 배경 재사용) */
.pl-page,.cs-page{ position:relative; isolation:isolate; min-height:100%; overflow-y:auto; scroll-behavior:smooth; }
.pl-page::before,.cs-page::before{ content:""; position:fixed; inset:-20%; z-index:-1; pointer-events:none;
  filter:blur(100px); opacity:var(--aurora-opacity);
  background:
    radial-gradient(38% 40% at 18% 18%, rgba(139,92,255,.5), transparent 70%),
    radial-gradient(34% 36% at 84% 14%, rgba(33,212,212,.38), transparent 70%),
    radial-gradient(40% 44% at 70% 88%, rgba(91,124,255,.4), transparent 70%);
  animation:auroraDrift 22s ease-in-out infinite; }

/* 상단 내비 */
.pl-nav,.cs-nav{ position:sticky; top:0; z-index:10; display:flex; align-items:center; gap:14px;
  padding:14px 28px; background:color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter:blur(18px); border-bottom:1px solid var(--hairline); }
.pl-logo,.cs-logo{ font-weight:800; font-size:19px; letter-spacing:-.02em; }
.pl-logo b,.cs-logo b{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pl-logo span,.cs-logo span{ color:var(--muted); font-weight:600; font-size:14px; margin-left:2px; }
.pl-nav-sp,.cs-nav-sp{ margin-left:auto; }
.pl-nav .btn, .cs-nav .btn{ white-space:nowrap; }

/* 히어로 */
.pl-hero{ text-align:center; max-width:840px; margin:0 auto; padding:58px 22px 30px; animation:fadeUp .6s ease both; }
.pl-eyebrow{ display:inline-flex; align-items:center; gap:7px; padding:6px 14px; border-radius:999px;
  background:var(--grad-soft); border:1px solid var(--hairline-strong); color:var(--text);
  font-size:13px; font-weight:600; margin-bottom:20px; }
.pl-eyebrow .dot{ width:7px; height:7px; border-radius:50%; background:var(--ok); box-shadow:0 0 10px var(--ok); animation:pulse 2s infinite; }
.pl-hero h1{ font-size:clamp(30px,5vw,50px); line-height:1.1; letter-spacing:-.03em; margin:0 0 18px; font-weight:800; }
.pl-hero h1 .g{ background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pl-hero p{ color:var(--muted); font-size:clamp(15px,2.2vw,19px); line-height:1.6; max-width:620px; margin:0 auto 26px; }
.pl-freebar{ display:inline-block; margin:0 auto 22px; padding:11px 20px; border-radius:14px;
  background:color-mix(in srgb, var(--ok) 12%, transparent); border:1px solid color-mix(in srgb, var(--ok) 38%, transparent);
  color:var(--text); font-size:15px; line-height:1.5; max-width:600px; }
.pl-freebar b{ color:var(--ok); }
.pl-hero-cta{ display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.btn--lg{ padding:14px 28px; font-size:16px; border-radius:14px; font-weight:700; }
.btn--ghost{ background:var(--surface-2); border:1px solid var(--hairline-strong); }
.pl-proof{ margin-top:18px; color:var(--faint); font-size:13px; }

/* 신뢰 지표 스트립 */
.pl-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; max-width:880px; margin:18px auto 50px; padding:0 22px; }
.pl-stat{ text-align:center; padding:18px 12px; border-radius:16px; background:var(--surface); border:1px solid var(--hairline); }
.pl-stat b{ display:block; font-size:26px; font-weight:800; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pl-stat span{ color:var(--muted); font-size:13px; }

/* 섹션 공통 */
.pl-sec{ max-width:1080px; margin:0 auto; padding:24px 22px; }
.pl-sec-h{ text-align:center; margin-bottom:30px; }
.pl-sec-h h2{ font-size:clamp(24px,3.5vw,34px); letter-spacing:-.02em; margin:0 0 10px; font-weight:800; }
.pl-sec-h p{ color:var(--muted); margin:0; }

/* 요금제 카드 */
.pl-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; align-items:stretch; }
.pl-card{ position:relative; display:flex; flex-direction:column; background:var(--surface);
  border:1px solid var(--hairline); border-radius:22px; padding:26px 22px; transition:transform .25s, box-shadow .25s, border-color .25s; }
.pl-card:hover{ transform:translateY(-6px); border-color:var(--hairline-strong); box-shadow:var(--shadow); }
.pl-card--hot{ border-color:transparent; background:
  linear-gradient(var(--bg-2),var(--bg-2)) padding-box,
  var(--grad) border-box; box-shadow:0 0 40px -8px rgba(91,124,255,.5); }
.pl-card--hot::after{ content:""; position:absolute; inset:0; border-radius:22px; pointer-events:none;
  background:radial-gradient(80% 60% at 50% 0%, rgba(91,124,255,.14), transparent 70%); }
.pl-badge{ position:absolute; top:-12px; left:50%; transform:translateX(-50%); background:var(--grad);
  color:#fff; font-size:11px; font-weight:800; letter-spacing:.04em; padding:5px 14px; border-radius:999px;
  box-shadow:0 6px 18px -4px rgba(91,124,255,.6); }
.pl-card .nm{ font-weight:700; font-size:17px; }
.pl-card .pr{ font-size:34px; font-weight:800; letter-spacing:-.02em; margin:8px 0 2px; }
.pl-card .pr small{ font-size:14px; color:var(--muted); font-weight:500; }
.pl-card .seat{ color:var(--accent-2); font-weight:700; font-size:14px; margin-bottom:14px; }
.pl-feats{ list-style:none; padding:0; margin:0 0 20px; display:grid; gap:10px; flex:1; }
.pl-feats li{ display:flex; gap:9px; align-items:flex-start; color:var(--muted); font-size:13.5px; line-height:1.4; }
.pl-feats li::before{ content:"✓"; color:var(--ok); font-weight:800; flex:none; }
.pl-card .btn{ width:100%; }

/* 가치 제안 그리드 */
.pl-values{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.pl-val{ padding:22px; border-radius:18px; background:var(--surface); border:1px solid var(--hairline); }
.pl-val .ic{ width:44px; height:44px; border-radius:12px; display:grid; place-items:center; font-size:22px;
  background:var(--grad-soft); border:1px solid var(--hairline-strong); margin-bottom:14px; }
.pl-val h3{ margin:0 0 6px; font-size:16px; }
.pl-val p{ margin:0; color:var(--muted); font-size:13.5px; line-height:1.5; }

/* FAQ */
.pl-faq{ max-width:760px; margin:0 auto; display:grid; gap:10px; }
.pl-faq details{ background:var(--surface); border:1px solid var(--hairline); border-radius:14px; padding:4px 18px; }
.pl-faq summary{ cursor:pointer; padding:14px 0; font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.pl-faq summary::after{ content:"＋"; color:var(--muted); }
.pl-faq details[open] summary::after{ content:"－"; }
.pl-faq p{ margin:0 0 14px; color:var(--muted); font-size:14px; line-height:1.6; }

/* 데모 폼(프리미엄) */
.pl-demo{ max-width:720px; margin:0 auto; background:var(--glass); border:1px solid var(--hairline-strong);
  border-radius:24px; padding:32px; box-shadow:var(--shadow); }
.pl-demo h2{ text-align:center; margin:0 0 6px; font-size:24px; }
.pl-demo .sub{ text-align:center; color:var(--muted); margin:0 0 22px; font-size:14px; }
.pl-form{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pl-form textarea,.pl-form .full,.pl-form button,.pl-msg{ grid-column:1/-1; }
.pl-form input,.pl-form select,.pl-form textarea,
.cs-form input,.cs-inline input,.cs-form select{ background:var(--input-bg); border:1px solid var(--hairline);
  border-radius:12px; color:var(--text); padding:13px 15px; font:inherit; width:100%; transition:border-color .2s, background .2s; }
.pl-form input:focus,.pl-form select:focus,.pl-form textarea:focus,.cs-form input:focus{
  outline:none; border-color:var(--accent); background:var(--input-bg-focus); }
.pl-msg,.cs-msg{ font-size:13.5px; color:var(--muted); min-height:18px; text-align:center; }
.pl-msg--ok,.cs-msg--ok{ color:var(--ok); } .pl-msg--err,.cs-msg--err{ color:var(--bad); }
.pl-foot{ text-align:center; color:var(--faint); font-size:13px; padding:40px 22px 50px; }

/* ── 관리자 콘솔 ── */
.cs-page{ display:block; }
.cs-body{ max-width:1080px; margin:0 auto; padding:22px; }
.cs-who{ display:flex; align-items:center; gap:10px; color:var(--muted); font-size:13px; }
.btn--sm{ padding:6px 12px; font-size:12.5px; border-radius:10px; }

/* 인증 카드 */
.cs-auth{ max-width:400px; margin:48px auto; background:var(--glass); border:1px solid var(--hairline-strong);
  border-radius:22px; padding:30px; box-shadow:var(--shadow); animation:fadeUp .5s ease both; }
.cs-auth-h{ text-align:center; margin-bottom:22px; }
.cs-auth-h h2{ margin:0 0 6px; font-size:22px; }
.cs-auth-h p{ margin:0; color:var(--muted); font-size:13.5px; }
.cs-tabs{ display:flex; gap:8px; margin-bottom:18px; background:var(--surface-2); padding:5px; border-radius:14px; }
.cs-tab{ flex:1; background:transparent; border:0; color:var(--muted); padding:10px; border-radius:10px; cursor:pointer; font:inherit; font-weight:600; transition:.2s; }
.cs-tab--on{ background:var(--grad); color:#fff; box-shadow:0 6px 16px -6px rgba(91,124,255,.6); }
.cs-form{ display:grid; gap:11px; }

/* 체험/구독 상태 배너 */
.cs-banner{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; padding:16px 20px; border-radius:18px; margin-bottom:18px; border:1px solid var(--hairline-strong); }
.cs-banner--trial{ background:linear-gradient(120deg, rgba(139,92,255,.18), rgba(33,212,212,.12)); }
.cs-banner--due{ background:rgba(251,113,133,.14); border-color:rgba(251,113,133,.4); }
.cs-banner--ok{ background:rgba(52,211,153,.12); }
.cs-banner .bt{ font-weight:700; }
.cs-banner .bd{ color:var(--muted); font-size:13.5px; }
.cs-banner .btn{ margin-left:auto; }
.cs-dday{ font-weight:800; background:var(--grad); -webkit-background-clip:text; background-clip:text; color:transparent; }

/* 대시보드 그리드 */
.cs-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.cs-panel{ background:var(--surface); border:1px solid var(--hairline); border-radius:20px; padding:20px; }
.cs-panel--wide{ grid-column:1/-1; }
.cs-panel h3{ margin:0 0 14px; font-size:15px; display:flex; align-items:center; gap:8px; }
.cs-panel h3 .ct{ margin-left:auto; color:var(--muted); font-weight:500; font-size:13px; }

/* 구독 스탯 타일 */
.cs-tiles{ display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-bottom:14px; }
.cs-tile{ background:var(--surface-2); border:1px solid var(--hairline); border-radius:14px; padding:14px; }
.cs-tile .lbl{ color:var(--muted); font-size:12px; }
.cs-tile .val{ font-size:20px; font-weight:800; margin-top:3px; }
.cs-st{ padding:3px 10px; border-radius:999px; font-size:12px; font-weight:700; }
.cs-st--trial{ background:rgba(251,191,36,.18); color:var(--warn); }
.cs-st--active{ background:rgba(52,211,153,.18); color:var(--ok); }
.cs-st--past_due,.cs-st--canceled{ background:rgba(251,113,133,.18); color:var(--bad); }
.cs-st--assigned{ background:rgba(91,124,255,.18); color:var(--accent); }
.cs-badge{ display:inline-block; margin-left:6px; padding:2px 8px; border-radius:999px; font-size:11px; font-weight:700; }
.cs-badge--portal{ background:rgba(139,92,255,.18); color:var(--violet); }
.cs-plan-change{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:6px; }
.cs-plan-change span{ color:var(--muted); font-size:13px; }

.cs-tbl{ width:100%; border-collapse:collapse; font-size:13.5px; }
.cs-tbl th{ text-align:left; color:var(--muted); font-weight:600; font-size:12px; padding:6px 8px; border-bottom:1px solid var(--hairline-strong); }
.cs-tbl td{ padding:9px 8px; border-bottom:1px solid var(--hairline); }
.cs-tbl tr:last-child td{ border-bottom:0; }
.cs-inline{ display:flex; gap:8px; margin-top:14px; flex-wrap:wrap; }
.cs-inline input{ flex:1; min-width:130px; }
.cs-self{ color:var(--accent-2); font-size:12px; font-weight:600; }
.cs-muted{ color:var(--muted); font-size:12px; }
.cs-loading,.cs-err{ color:var(--muted); font-size:13px; padding:8px 0; }
.cs-err{ color:var(--bad); }
.cs-kv{ display:flex; justify-content:space-between; padding:7px 0; border-bottom:1px solid var(--hairline); font-size:14px; }
.cs-kv span{ color:var(--muted); }
.role-layout{ display:grid; grid-template-columns:220px minmax(0,1fr); gap:16px; align-items:stretch; }
.role-side{ display:flex; flex-direction:column; gap:8px; padding:18px; border-radius:14px; background:var(--surface-2); border:1px solid var(--hairline); }
.role-side b{ font-size:18px; }
.role-side span{ color:var(--muted); font-size:13.5px; line-height:1.55; }
.role-map{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.role-map article{ padding:15px; border-radius:14px; background:var(--surface-2); border:1px solid var(--hairline); }
.role-map article b{ display:block; margin-bottom:7px; font-size:14px; }
.role-map article p{ margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.role-map--admin{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.roadmap-list{ display:grid; gap:9px; }
.roadmap-list div{ display:flex; justify-content:space-between; gap:14px; padding:11px 0; border-bottom:1px solid var(--hairline); }
.roadmap-list div:last-child{ border-bottom:0; }
.roadmap-list b{ font-size:13.5px; }
.roadmap-list span{ color:var(--muted); font-size:13px; text-align:right; }
.portal-hero{ display:flex; justify-content:space-between; align-items:center; gap:22px; margin-bottom:18px; padding:24px; border-radius:18px; background:var(--surface); border:1px solid var(--hairline); }
.portal-hero h2{ margin:8px 0 8px; font-size:28px; letter-spacing:-.02em; }
.portal-hero p{ margin:0; color:var(--muted); line-height:1.6; }
.portal-label{ color:var(--accent-2); font-size:13px; font-weight:800; }

@media(max-width:780px){
  .pl-cards,.pl-values,.pl-stats{ grid-template-columns:1fr 1fr; }
  .pl-form,.cs-grid,.cs-tiles,.role-layout,.role-map,.role-map--admin{ grid-template-columns:1fr; }
  .portal-hero{ align-items:flex-start; flex-direction:column; }
  .roadmap-list div{ flex-direction:column; gap:4px; }
  .roadmap-list span{ text-align:left; }
}
@media(max-width:460px){ .pl-cards,.pl-values,.pl-stats{ grid-template-columns:1fr; } }
