/* ============================================================
   PHILOSOPHY AI GENSPIRE — 디자인 시스템 (마스터 프롬프트 3번)
   ============================================================ */
:root {
  /* 라이트 모드 */
  --bg: #F6F7FB;
  --workspace: #FFFFFF;
  --surface: #EEF1F7;
  --text: #181B24;
  --text-muted: #697184;
  --border: #E2E6EE;
  --primary: #695CFF;
  --secondary: #8C5EFF;
  --blue: #397CF6;
  --success: #16A36A;
  --warning: #F2A318;
  --danger: #E14D52;

  --radius-card: 16px;
  --radius-input: 26px;
  --sidebar-w: 74px;
  --sidebar-collapsed: 74px;
  --max-content: 1440px;
  --promo-blue: #2563EB;
  --promo-orange: #F97316;

  --shadow-sm: 0 1px 2px rgba(24, 27, 36, .05), 0 1px 3px rgba(24, 27, 36, .06);
  --shadow-md: 0 4px 16px rgba(24, 27, 36, .08);
  --shadow-lg: 0 12px 40px rgba(24, 27, 36, .12);
  --grad: linear-gradient(135deg, #695CFF 0%, #8C5EFF 55%, #397CF6 100%);
  /* 사이드바 무채색 팔레트 — ChatGPT 스타일 부드러운 연회색 톤 */
  --side-logo: #2E3038;
  --side-active-bg: #ECECEE;
  --side-active-fg: #2E3038;
  --side-icon: #9A9DA6;
  --side-text: #8B8E97;
  --side-hover-bg: #F4F4F5;
}

[data-theme="dark"] {
  --bg: #0F1118;
  --workspace: #171A23;
  --surface: #1D212D;
  --text: #F5F6F8;
  --text-muted: #A9B0BF;
  --border: #303544;
  --primary: #8880FF;
  --secondary: #8C5EFF;
  --blue: #5B92F7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 4px 16px rgba(0,0,0,.45);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.55);
  /* 사이드바 무채색(다크 모드) — 부드러운 연회색 톤 */
  --side-logo: #C7CAD1;
  --side-active-bg: #2A2E39;
  --side-active-fg: #ECEDF0;
  --side-icon: #7C8090;
  --side-text: #8A8E9B;
  --side-hover-bg: #21252F;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Pretendard Variable", Pretendard, "SUIT Variable", Inter, "Noto Sans KR", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- 유틸 ---------- */
.gs-gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gs-container { max-width: var(--max-content); margin: 0 auto; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; transition: all .18s ease; white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:active { transform: translateY(0); filter: brightness(.96); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-ghost:active { background: color-mix(in srgb, var(--surface) 70%, var(--border)); }
.btn-soft { background: var(--surface); color: var(--text); }
.btn-soft:hover { background: color-mix(in srgb, var(--surface) 80%, var(--primary) 12%); }
.btn-soft.active { background: color-mix(in srgb, var(--primary) 15%, transparent); color: var(--primary); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 12px; }

/* ---------- 카드 / 입력 ---------- */
.card {
  background: var(--workspace); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-sm);
}
.input, .textarea {
  width: 100%; background: var(--workspace); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  font-size: 15px; transition: border-color .18s, box-shadow .18s;
}
.input:focus, .textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.label { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; }

/* ============================================================
   앱 셸 레이아웃
   ============================================================ */
.app-shell { position:relative; display:flex; min-height:100vh; overflow-x:hidden; }
/* 기능 페이지가 열린 화면은 뷰포트 높이에 고정 → 내부 .feature-stage 만 스크롤,
   하단 입력 도크는 화면비 변경/생성 후에도 항상 같은 자리에 고정된다. */
.app-shell:has(.feature-page) { height: 100vh; min-height: 0; overflow: hidden; }
.app-shell:has(.feature-page) > div { min-height: 0; }

/* 코드 스튜디오도 동일하게 뷰포트 높이에 고정 (좌우 분할 IDE) */
.app-shell:has(.code-studio) { height: 100vh; min-height: 0; overflow: hidden; }
.app-shell:has(.code-studio) > div { min-height: 0; }
.content:has(.code-studio) { padding: 0; overflow: hidden; display: flex; min-height: 0; }

/* AI 시트도 뷰포트 높이에 고정 → 좌측 대화 로그만 스크롤, 입력창은 항상 하단 노출 */
.app-shell:has(.sht-wrap) { height: 100vh; min-height: 0; overflow: hidden; }
.app-shell:has(.sht-wrap) > div { min-height: 0; }
.content:has(.code-studio) > .code-studio { flex: 1; width: 100%; }

/* 사이드바 — 아이콘 전용(70px, Genspark 4.0 스타일) */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--workspace);
  border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center;
  position: sticky; top: 0; height: 100vh; z-index: 40;
}
.sidebar-brand {
  display: grid; place-items: center; padding: 14px 0 8px; width: 100%;
}
.sidebar-brand-logo {
  width: 44px; height: 44px; object-fit: contain; flex: none;
  filter: drop-shadow(0 5px 10px rgba(9,22,48,.2));
}
.sidebar-logo {
  width: 34px; height: 34px; border-radius: 10px; background: var(--side-logo);
  display: grid; place-items: center; color: #fff; font-weight: 900; flex-shrink: 0; font-size: 17px;
}
.sidebar-scroll { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 0 12px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sidebar-scroll::-webkit-scrollbar { width: 0; }
.nav-section { width: 100%; display: flex; flex-direction: column; align-items: center; margin-top: 7px; padding-top: 8px; border-top: 1px solid var(--border); }
.nav-section-title { width: 100%; padding: 0 3px 5px; color: var(--text-muted); font-size: 9px; font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap; }
/* 아이콘 네비 아이템: 세로 아이콘 + 소형 라벨 */
.nav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 58px; padding: 8px 2px; border-radius: 12px;
  color: var(--side-text); font-weight: 500; font-size: 10.5px; line-height: 1.15; text-align: center;
  transition: background .15s, color .15s;
}
.nav-item i { width: auto; font-size: 19px; color: var(--side-icon); transition: color .15s; }
.nav-item span { max-width: 56px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item:hover { background: var(--side-hover-bg); color: var(--side-active-fg); }
.nav-item:hover i { color: var(--side-active-fg); }
.nav-item.active { background: var(--side-active-bg); color: var(--side-active-fg); font-weight: 600; }
.nav-item.active i { color: var(--side-active-fg); }
.ai-human-nav { height:auto; min-height:55px; padding:7px 2px; }
.ai-human-nav>img { width:40px; height:40px; object-fit:cover; border:2px solid #d5ae41; border-radius:11px; box-shadow:0 4px 12px rgba(7,26,56,.2); }
.ai-human-nav.active>img { border-color:#fff; }
/* 상단 New 버튼(사이드바) */
.sidebar-new {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 58px; padding: 8px 2px; border-radius: 12px; background: transparent; border: none;
  color: var(--text-muted); font-size: 10.5px; font-weight: 600;
}
.sidebar-new i { font-size: 20px; color: var(--text); }
.sidebar-new:hover { background: var(--surface); }
.sidebar-footer { padding: 8px 0 12px; width: 100%; display: grid; place-items: center; }
.sidebar-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--side-logo); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 14px; border: none; cursor: pointer;
}
.member-star-orbit { position:relative; isolation:isolate; width:58px; height:58px; display:grid; place-items:center; }
.member-star-orbit .sidebar-avatar { position:relative; z-index:2; box-shadow:0 3px 11px rgba(15,23,42,.2); }
.member-orbit-star { position:absolute; z-index:1; left:50%; top:50%; width:12px; height:12px; display:grid; place-items:center; transform:translate(-50%,-50%) rotate(var(--member-star-angle)) translateY(-24px) rotate(calc(-1 * var(--member-star-angle))); color:#cbd5e1; font-size:9px; line-height:1; opacity:.43; text-shadow:0 1px 1px rgba(255,255,255,.72); pointer-events:none; transition:color .25s ease,opacity .25s ease,filter .25s ease; }
.member-orbit-star.is-earned { color:#f7bc27; opacity:1; filter:drop-shadow(0 1px 2px rgba(130,75,0,.5)); text-shadow:0 0 4px rgba(255,217,95,.7); }

/* 메인 */
.main { position:relative; z-index:1; flex:1; min-width:0; display:flex; flex-direction:column; background:var(--workspace); transition:transform 4s cubic-bezier(.4,0,.2,1); transform:translate3d(0,0,0); backface-visibility:hidden; will-change:transform; }
/* 기능 패널은 투명해지지 않고 고정 세로 메뉴(z-index:40)의 뒤쪽으로 완전히 이동한다. */
.nav-panel-arriving .main,.nav-panel-hidden .main { transform:translate3d(calc(-100% - var(--sidebar-w)),0,0); pointer-events:none; }
.topbar {
  height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
  position: sticky; top: 0; z-index: 30; background: var(--workspace);
}
.topbar-home { height:72px; gap:9px; border-bottom:1px solid rgba(205,217,237,.9); box-shadow:0 5px 15px rgba(15,37,76,.05); }
.topbar-spacer { flex: 1; }
.topbar-title { font-size: 15px; font-weight: 700; }
.topbar-community{display:flex;align-items:center;gap:7px;min-width:0}.topbar-community-heading{display:inline-flex;align-items:center;gap:6px;padding:0 3px;color:#263d69;font-size:12px;font-weight:850;white-space:nowrap}.topbar-community-heading i{color:#f1b928;font-size:14px}.topbar-community-link{display:flex;align-items:center;gap:7px;min-width:220px;height:56px;padding:4px 8px 4px 5px;border:1px solid #dce5f3;border-radius:12px;background:rgba(255,255,255,.92);color:#182744;text-decoration:none;box-shadow:0 1px 0 rgba(255,255,255,.78),0 4px 12px rgba(27,55,100,.06);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.topbar-community-link:hover{transform:translateY(-2px);border-color:#d5b75c;box-shadow:0 8px 18px rgba(38,59,105,.13)}.topbar-community-link img{display:block;width:46px;height:46px;flex:0 0 46px;object-fit:contain;border-radius:7px;background:#fff;box-shadow:0 3px 8px rgba(27,55,100,.16)}.topbar-community-link span{display:grid;gap:3px;min-width:0}.topbar-community-link b,.topbar-community-link small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-community-link b{font-size:12px;line-height:1.2}.topbar-community-link small{font-size:10px;line-height:1.3;color:#65728b}.topbar-community-link>i{margin-left:auto;color:#657be4;font-size:11px}@media(max-width:1180px){.topbar-community-heading{display:none}.topbar-community-link{min-width:190px}.topbar-community-link small{max-width:122px}}@media(max-width:920px){.topbar-home{height:60px}.topbar-community-link{min-width:0;width:42px;height:42px;padding:3px}.topbar-community-link img{width:36px;height:36px;flex-basis:36px}.topbar-community-link span,.topbar-community-link>i{display:none}}@media(max-width:620px){.topbar-community{display:none}}
.launch-toolbar { display:flex; align-items:center; gap:6px; margin-right:2px; }
.launch-tool { position:relative; width:38px; height:38px; display:grid; place-items:center; border:1px solid var(--border); border-radius:12px; background:var(--workspace); color:#12284c; font-size:16px; cursor:pointer; box-shadow:0 4px 14px rgba(15,23,42,.06); transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease; }
.launch-tool:hover { transform:translateY(-2px); border-color:rgba(210,163,44,.72); box-shadow:0 9px 20px rgba(15,23,42,.12); }
.launch-tool:focus-visible { outline:3px solid rgba(67,97,238,.28); outline-offset:2px; }
.launch-tool-qr { color:#0a7668; }
.launch-tool-mobile { color:#3156d8; }
.launch-tool-pc { color:#9a6507; }
.launch-tool-badge { position:absolute; right:4px; bottom:4px; width:13px; height:13px; display:grid; place-items:center; border:2px solid var(--workspace); border-radius:50%; background:#d8a928; color:#071a38; font-size:6px; }
.launch-modal[hidden],.launch-panel[hidden] { display:none !important; }
body.launch-modal-open { overflow:hidden; }
.launch-modal { position:fixed; z-index:220; inset:0; display:grid; place-items:center; padding:18px; }
.launch-modal-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; background:rgba(3,12,29,.62); backdrop-filter:blur(7px); cursor:default; }
.launch-modal-card { position:relative; width:min(520px,calc(100vw - 28px)); max-height:min(760px,calc(100dvh - 28px)); overflow:auto; border:1px solid rgba(218,178,69,.48); border-radius:24px; background:var(--workspace); box-shadow:0 28px 90px rgba(3,12,29,.34); }
.launch-modal-head { position:sticky; z-index:2; top:0; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:19px 22px 16px; border-bottom:1px solid var(--border); background:color-mix(in srgb,var(--workspace) 94%,transparent); backdrop-filter:blur(14px); }
.launch-modal-head span { display:block; color:#b07b12; font-size:9px; font-weight:900; letter-spacing:.15em; }
.launch-modal-head h2 { margin:3px 0 0; font-size:19px; color:var(--text); }
.launch-modal-close { width:38px; height:38px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--text); font-size:17px; cursor:pointer; }
.launch-panel { padding:22px; text-align:center; }
.launch-panel h3 { margin:14px 0 5px; font-size:18px; color:var(--text); }
.launch-panel>p { margin:0 auto 15px; color:var(--text-muted); font-size:13px; line-height:1.6; word-break:keep-all; }
.launch-qr-frame { width:min(300px,72vw); margin:0 auto; padding:13px; border:1px solid #e3cc8c; border-radius:22px; background:#fff; box-shadow:0 12px 34px rgba(7,26,56,.12); }
.launch-qr-frame img { display:block; width:100%; height:auto; }
.launch-url-label { display:block; margin:0 0 6px; color:var(--text-muted); font-size:11px; font-weight:800; text-align:left; }
.launch-url-row { display:flex; gap:8px; }
.launch-url-row input { min-width:0; flex:1; padding:11px 12px; border:1px solid var(--border); border-radius:11px; background:var(--surface); color:var(--text); font-size:12px; }
.launch-url-row button,.launch-secondary-action { border:1px solid var(--border); border-radius:11px; background:var(--workspace); color:var(--text); font-weight:800; cursor:pointer; }
.launch-url-row button { padding:0 14px; white-space:nowrap; }
.launch-secondary-action { width:100%; margin-top:10px; padding:11px 14px; }
.launch-device-hero { display:flex; align-items:center; gap:16px; padding:15px; border:1px solid rgba(213,171,57,.36); border-radius:18px; background:linear-gradient(135deg,rgba(7,26,56,.06),rgba(217,172,48,.08)); text-align:left; }
.launch-device-hero img { width:74px; height:74px; flex:none; border-radius:18px; box-shadow:0 8px 20px rgba(7,26,56,.16); }
.launch-device-hero strong,.launch-device-hero span { display:block; }
.launch-device-hero strong { color:var(--text); font-size:17px; }
.launch-device-hero span { margin-top:4px; color:var(--text-muted); font-size:12px; }
.launch-primary-action { width:100%; margin-top:15px; padding:13px 16px; border:0; border-radius:13px; background:linear-gradient(135deg,#0a2147,#173f78); color:#fff; font-size:14px; font-weight:850; cursor:pointer; box-shadow:0 10px 24px rgba(7,26,56,.2); }
.launch-primary-action:disabled { cursor:not-allowed; opacity:.64; box-shadow:none; }
.launch-action-hint { margin:8px auto 0 !important; font-size:11px !important; }
.launch-status { min-height:20px; margin:8px 0 0 !important; padding:0; color:var(--text-muted); font-size:12px !important; }
.launch-status.success { color:#087a57; font-weight:750; }
.launch-status.error { color:#c43a4a; font-weight:750; }
.launch-guide-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:14px; text-align:left; }
.launch-guide-grid article { min-width:0; padding:14px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.launch-guide-grid article>i { margin-right:6px; color:#3156d8; font-size:17px; }
.launch-guide-grid strong { color:var(--text); font-size:13px; }
.launch-guide-grid span { display:block; margin-top:7px; color:var(--text-muted); font-size:11px; line-height:1.55; word-break:keep-all; }
.launch-scan-tip { display:flex; align-items:center; gap:12px; margin-top:12px; padding:10px; border-radius:14px; background:#f4f0e4; color:#5a4517; text-align:left; }
.launch-scan-tip img { width:72px; height:72px; flex:none; border-radius:8px; }
.launch-scan-tip span { font-size:11px; line-height:1.5; }
.launch-pc-note { display:flex; align-items:flex-start; gap:10px; margin-top:13px; padding:13px; border-radius:13px; background:#f4f0e4; color:#5a4517; text-align:left; }
.launch-pc-note i { margin-top:2px; color:#b17b10; }
.launch-pc-note span { font-size:11px; line-height:1.55; }
.content { flex: 1; padding: 8px 24px 28px; overflow-x: hidden; overflow-y: auto; }
/* 기능 페이지를 담을 때는 콘텐츠가 스스로 스크롤/여백을 갖지 않고,
   내부의 .feature-stage 가 스크롤을 담당하며 도크는 하단 고정된다. */
.content:has(.feature-page) { padding: 0 24px; overflow: hidden; display: flex; min-height: 0; }
.content:has(.feature-page) > .feature-page { flex: 1; width: 100%; }
/* AI 시트: 콘텐츠 여백/스크롤을 없애고 sht-wrap 이 남은 높이를 정확히 채운다 */
.content:has(.sht-wrap) { padding: 0; overflow: hidden; display: flex; min-height: 0; }
.content:has(.sht-wrap) > .sht-wrap { flex: 1; width: 100%; }

/* 상단 아이콘 버튼(고스트, 테두리 없음) */
.top-icon {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
  background: transparent; border: none; color: var(--text-muted); font-size: 17px; transition: background .15s, color .15s;
}
.top-icon:hover { background: var(--surface); color: var(--text); }

/* 크레딧 pill */
.credit-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); color: var(--text); font-weight: 700; font-size: 13px; border: none;
}
.credit-pill i { color: var(--warning); }

/* 우측 패널 */
.right-panel {
  width: 320px; flex-shrink: 0; border-left: 1px solid var(--border);
  background: var(--workspace); padding: 20px; overflow-y: auto;
}

/* ---------- 홈 통합 입력창 (Genspark 4.0) ---------- */
.home-hero { max-width: 720px; margin: calc(7vh - 15px) auto 0; text-align: center; padding: 0 16px; }
.home-title { font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 24px; }
.home-eyebrow { margin:0 0 5px; font-size:12px; font-weight:700; letter-spacing:.08em; color:var(--text-muted); text-align:center; }
.home-hero > .home-title { text-align:center; }
.home-institute-plaque { position:relative; isolation:isolate; width:min(60%, 420px); margin:0 auto 27px; border-radius:14px; overflow:visible; }
.home-institute-plaque::before { content:""; position:absolute; z-index:-2; inset:-28% -9%; pointer-events:none; border-radius:50%; background:radial-gradient(ellipse at center, #f4cf8b8c 0%, #d6e7ff4d 30%, transparent 70%); filter:blur(20px); }
.home-institute-plaque::after { content:""; position:absolute; z-index:-1; inset:7% 1.2%; border-radius:12px; pointer-events:none; background:linear-gradient(180deg, #fff7df75 0%, transparent 22%, transparent 74%, #ffc45e66 100%); filter:blur(16px); box-shadow:0 -15px 32px #fff4d87d, 0 17px 35px #a7742e59; }
.home-institute-plaque-glow { position:absolute; z-index:-1; inset:11% 2%; border-radius:14px; pointer-events:none; background:linear-gradient(90deg, transparent, #ffd6859c 21%, #eaf6ffb3 51%, #ffd69296 81%, transparent); filter:blur(11px); opacity:.92; }
.home-institute-plaque img { display:block; width:100%; height:auto; border:1px solid #513b237a; border-radius:11px; object-fit:cover; box-shadow:0 2px 1px #fff9, 0 5px 10px #17100a9c, 0 19px 27px #39220a70; }
.payments-page { max-width:1000px; margin:0 auto; padding:28px 18px 60px; }
.payments-hero { padding:28px 30px; border-radius:22px; background:linear-gradient(125deg,#0b1d38,#19385b); color:#fff; }
.payments-kicker { font-size:11px; font-weight:800; letter-spacing:.14em; color:#e5bd70; }
.payments-hero h1 { margin:8px 0; font-size:clamp(25px,5vw,36px); }
.payments-hero p { max-width:740px; margin:0; line-height:1.65; color:#e2e8f0; }
.payments-content { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr); gap:18px; margin-top:18px; }
.payments-card { min-width:0; padding:24px; border:1px solid var(--border); border-radius:18px; background:var(--surface); }
.payments-card h2 { margin:0 0 16px; font-size:20px; }
.payments-card h3 { margin:22px 0 12px; font-size:16px; }
.payment-mode-tabs { display:flex; gap:6px; margin:-3px 0 16px; padding:4px; border-radius:12px; background:color-mix(in srgb,var(--surface) 75%,var(--border)); }
.payment-mode-tabs button { flex:1; min-height:39px; border:0; border-radius:9px; background:transparent; color:var(--text-muted); font-weight:700; cursor:pointer; }
.payment-mode-tabs button[aria-selected="true"] { background:var(--surface); color:var(--text); box-shadow:0 1px 5px #0002; }
.payment-plans { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.payment-plan { display:flex; flex-direction:column; gap:6px; padding:16px 10px; border:1px solid var(--border); border-radius:13px; background:var(--surface); color:var(--text); cursor:pointer; text-align:left; }
.payment-plan:hover,.payment-plan[aria-pressed="true"] { border-color:#c99b48; box-shadow:0 0 0 2px #c99b4840; }
.payment-plan:disabled { opacity:.52; cursor:not-allowed; box-shadow:none; }
.payment-plan strong { font-size:19px; white-space:nowrap; }
.payment-plan small { color:var(--text-muted); white-space:nowrap; }
.payment-addon-section { margin-top:0; padding-top:0; }
.payment-addon-section h3 { margin:0 0 6px; }
.payment-addon-section > p { font-size:13px; line-height:1.55; color:var(--text-muted); }
.payment-bank { display:flex; flex-direction:column; gap:5px; margin-top:18px; padding:16px; border-radius:12px; background:#f4f0e7; color:#1b2b44; }
.payment-bank strong { font-size:18px; overflow-wrap:anywhere; }
.payment-caution { font-size:13px; line-height:1.6; color:var(--text-muted); }
.payment-balance strong { font-size:30px; }
.payment-history-row { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 12px; padding:10px 0; border-bottom:1px solid var(--border); }
.payment-history-row small { width:100%; color:var(--text-muted); }
.paid-expiry-notice { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:10px 0 15px; padding:11px 14px; border:1px solid #d5a247; border-radius:10px; background:#fff4d9; color:#573600; font-size:13px; }
.paid-expiry-notice a { margin-left:auto; color:#764400; font-weight:800; text-decoration:underline; }
@media(max-width:760px) { .payments-page { padding:12px 12px 80px; } .payments-hero { padding:17px 19px; } .payments-hero h1 { margin:5px 0 0; } .payments-hero p { display:none; } .payments-content { grid-template-columns:1fr; gap:12px; margin-top:12px; } .payments-card { padding:17px; } .payment-plan { padding:12px 7px; } .payment-plan strong { font-size:16px; } .payment-plan small { font-size:11px; } }
.home-sub { color: var(--text-muted); font-size: 15px; margin: 0 0 24px; }

/* 넓은 둥근 프롬프트바 */
.prompt-box {
  background: var(--workspace); border: 2px solid color-mix(in srgb, var(--primary) 40%, var(--border)); border-radius: var(--radius-input);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 8%, transparent), var(--shadow-md); padding: 16px 18px 12px; text-align: left; transition: border-color .18s, box-shadow .18s;
}
.prompt-box:focus-within { border-color: color-mix(in srgb, var(--primary) 55%, var(--border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent), var(--shadow-md); }
.prompt-textarea {
  width: 100%; border: none; outline: none; resize: none; background: transparent; color: var(--text);
  font-size: 15px; line-height: 1.6; min-height: 26px; max-height: 260px; font-family: inherit;
}
.prompt-textarea::placeholder { color: var(--text-muted); }
.prompt-toolbar { display: flex; align-items: center; gap: 8px; margin-top: 10px; }

/* 파일 첨부(+) 버튼 */
.attach-btn { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: var(--workspace); color: var(--text); display: grid; place-items: center; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s; }
.attach-btn:hover { background: var(--surface); border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); }
.attach-btn:disabled { opacity: .55; cursor: default; }
/* 첨부 미리보기 (프롬프트 상단) */
.cs-attach { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.cs-attach-inner { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cs-attach-thumb { width: 46px; height: 46px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.cs-attach-doc { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text); overflow: hidden; }
.cs-attach-doc i { color: var(--primary); }
.cs-attach-doc #cs-attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.cs-attach-x { border: none; background: transparent; color: var(--text-muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.cs-attach-x:hover { color: var(--danger, #E14D52); background: color-mix(in srgb, var(--danger, #E14D52) 10%, transparent); }

/* 프롬프트바 내부 pill 버튼(+ / Standard / 커넥터) */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--workspace); color: var(--text); font-size: 13px; font-weight: 600;
  transition: background .15s, border-color .15s;
}
.pill:hover { background: var(--surface); }
.pill.active, .pill.pill-accent { border-color: color-mix(in srgb, var(--blue) 45%, transparent); color: var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.pill-round { width: 34px; padding: 0; justify-content: center; }
.pill i { font-size: 13px; }
/* 검은 대화/전송 pill */
.pill-dark {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 999px;
  background: #111318; color: #fff; font-size: 13px; font-weight: 700; border: none;
}
[data-theme="dark"] .pill-dark { background: #2A2F3D; }
.pill-dark:hover { filter: brightness(1.12); }
.send-btn { width: 36px; height: 36px; border-radius: 999px; background: var(--surface); color: var(--text-muted); border: none; display: grid; place-items: center; font-size: 14px; }
.send-btn.ready { background: #111318; color: #fff; }
[data-theme="dark"] .send-btn.ready { background: var(--primary); }

/* ---------- 홈 카테고리 (전체 한 줄 배열, 작은 플랫 아이콘) ---------- */
/* AI-LMS 시스템 바로가기 버튼 3종 */
.lms-links { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:min(1180px,calc(100% - 32px));margin:36px auto 0;padding:0; }
.lms-btn { position:relative;isolation:isolate;display:block;width:100%;min-width:0;overflow:hidden;min-height:155px;box-sizing:border-box;border:1px solid color-mix(in srgb,var(--border) 65%,#fff);border-radius:19px;background:#0e1a2d;color:#fff;box-shadow:0 12px 30px #1d263a1d;text-decoration:none;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.lms-btn:hover,.lms-btn:focus-visible { transform:translateY(-4px); box-shadow:0 18px 38px #17203538; border-color:#fff; }
.lms-btn>img { position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .45s ease; }
.lms-btn:hover>img { transform:scale(1.055); }
.lms-btn-shade { position:absolute;z-index:-1;inset:0;background:linear-gradient(90deg,rgba(5,13,30,.88) 0%,rgba(7,16,35,.57) 49%,rgba(3,10,24,.16) 100%); }
.lms-btn-content { height:100%;min-height:155px;box-sizing:border-box;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:19px 26px;gap:5px;text-shadow:0 2px 14px #030815bf; }
.lms-btn-content small { font-size:10px;letter-spacing:.16em;font-weight:800;color:#dbeafe; }
.lms-btn-content strong { font-size:clamp(18px,1.8vw,23px);letter-spacing:-.045em;font-weight:850;white-space:nowrap; }
.lms-btn-content em { font-size:12px;font-style:normal;color:#eff6ff;opacity:.93; }
.lms-btn-content i { margin-top:5px;width:27px;height:27px;border:1px solid #ffffff8f;border-radius:50%;display:grid;place-items:center;font-size:11px; }
.lms-btn-school { box-shadow:0 12px 30px #b6641524; }.lms-btn-univ { box-shadow:0 12px 30px #174b8c24; }.lms-btn-b2b { box-shadow:0 12px 30px #71331924; }

.home-learning-suite { width:min(1180px,calc(100% - 32px));box-sizing:border-box;margin:24px auto 0;padding:20px;border:1px solid #dfe5f0;border-radius:20px;background:radial-gradient(circle at 92% 0,#eaf2ff 0,transparent 28%),linear-gradient(115deg,#fcfdff,#f5f7fc);box-shadow:0 12px 34px #34496a0d; }
.creator-starter { margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none; }
.creator-starter-head { display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 2px 15px; }
.creator-starter-head h2 { margin:0;color:#17233a;font-size:16px;font-weight:900;letter-spacing:-.035em; }
.creator-starter-head p { margin:5px 0 0;color:var(--text-muted);font-size:12px;line-height:1.45; }
.creator-starter-count { flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;margin-top:2px;padding:7px 10px;border:1px solid #dbe3f2;border-radius:999px;background:#fff;color:#596b88;font-size:11px;font-weight:800;white-space:nowrap; }
.creator-starter-count i { color:#6655de; }
.creator-special-links { display:block;margin:0 2px 15px;padding:7px 10px;border:1px solid #d7dfed;border-radius:12px;background:linear-gradient(100deg,#fff 0%,#f7f9ff 48%,#f3f0ff 100%);box-shadow:inset 0 1px #fff,0 8px 20px #40527b0b; }
/* 대표 바로가기는 별도 제목 칸 없이 서비스 12개가 첫 칸부터 전체 폭을 균등하게 채운다. */
.creator-special-groups { display:grid;grid-template-columns:repeat(9,minmax(0,1fr));align-items:stretch;width:100%;min-width:0; }
.creator-special-group { display:contents; }
.creator-special-link { position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:40px;padding:6px 9px;border:1px solid transparent;border-radius:9px;color:#334159;text-decoration:none;transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.creator-special-link:not(:last-child)::after { content:"";position:absolute;right:0;top:9px;bottom:9px;width:1px;background:linear-gradient(180deg,transparent,#d9e1ee 20%,#d9e1ee 80%,transparent); }
.creator-special-link:hover,.creator-special-link:focus-visible { border-color:color-mix(in srgb,var(--creator-special,#6353ce) 38%,#d9e0eb);background:#fff;box-shadow:0 5px 12px #31466d18;transform:translateY(-1px);outline:none; }
.creator-special-link span:last-child { overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(12px,.86vw,14px);font-weight:850;letter-spacing:-.035em; }
.creator-special-logo { position:relative;display:grid;place-items:center;flex:0 0 auto;overflow:hidden;width:24px;height:24px;border-radius:7px;background:var(--creator-special,#6353ce);color:#fff;font-size:8px;font-weight:900;box-shadow:0 2px 5px #27364a18; }.creator-special-logo b { font:inherit; }.creator-special-logo img { position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:#fff; }.creator-special-logo img.is-broken { display:none; }
.creator-openai { --creator-special:#182626; }.creator-gemini { --creator-special:#7067dc; }.creator-claude { --creator-special:#d57743; }.creator-canva { --creator-special:#4a91d6; }.creator-mangoboard { --creator-special:#eead39; }.creator-capcut { --creator-special:#20232a; }.creator-runway { --creator-special:#ec664d; }.creator-suno { --creator-special:#8751d9; }.creator-typecast { --creator-special:#3e4d70; }.creator-bookk { --creator-special:#a5723b; }.creator-conetx { --creator-special:#326fc4; }.creator-autocert { --creator-special:#8064d9; }
.creator-category-grid { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start;isolation:isolate; }
/* The directory cards are a fixed two-row overview.  An open category is an
   overlay, not a grid item that pushes the second row downward. */
.creator-category { --creator-accent:#6655de;position:relative;z-index:0;min-width:0;border:1px solid #dce4ef;border-radius:14px;background:#fff;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.creator-category-planning { --creator-accent:#5d5fce; }.creator-category-visual { --creator-accent:#c55495; }.creator-category-video { --creator-accent:#e06c37; }.creator-category-sound { --creator-accent:#9a53cf; }.creator-category-three-d { --creator-accent:#168e9a; }.creator-category-development { --creator-accent:#3972d6; }.creator-category-automation { --creator-accent:#368a66; }.creator-category-publish { --creator-accent:#b0742d; }
.creator-category:hover { border-color:color-mix(in srgb,var(--creator-accent) 38%,#dce4ef);box-shadow:0 8px 20px color-mix(in srgb,var(--creator-accent) 12%,transparent);transform:translateY(-1px); }
.creator-category[open] { z-index:20;border-color:color-mix(in srgb,var(--creator-accent) 52%,#dce4ef);box-shadow:0 13px 28px color-mix(in srgb,var(--creator-accent) 15%,transparent); }
.creator-category summary { display:grid;grid-template-columns:34px minmax(0,1fr) auto 12px;gap:8px;align-items:center;min-height:68px;padding:10px 11px;cursor:pointer;list-style:none;user-select:none; }
.creator-category summary::-webkit-details-marker { display:none; }
.creator-category summary:focus-visible { outline:3px solid color-mix(in srgb,var(--creator-accent) 38%,transparent);outline-offset:3px;border-radius:12px; }
.creator-category-icon { display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:color-mix(in srgb,var(--creator-accent) 13%,#fff);color:var(--creator-accent);font-size:15px; }
.creator-category-copy { min-width:0;display:grid;gap:3px; }.creator-category-copy strong { overflow:hidden;color:#27354c;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:900;letter-spacing:-.025em; }.creator-category-copy small { overflow:hidden;color:#77849a;text-overflow:ellipsis;white-space:nowrap;font-size:10px; }
.creator-category-count { display:grid;place-items:center;min-width:20px;height:20px;border-radius:999px;background:#f1f4f9;color:#697790;font-size:10px;font-weight:850; }.creator-category[open] .creator-category-count { background:var(--creator-accent);color:#fff; }
.creator-category-chevron { color:#8491a4;font-size:10px;transition:transform .18s ease; }.creator-category[open] .creator-category-chevron { color:var(--creator-accent);transform:rotate(180deg); }
.creator-category-menu { position:absolute;z-index:1;top:calc(100% - 1px);left:-1px;right:-1px;border:1px solid color-mix(in srgb,var(--creator-accent) 42%,#dce4ef);border-top:1px solid #e9edf4;border-radius:0 0 14px 14px;background:linear-gradient(180deg,#fbfcff,#f6f8fc);padding:10px;box-shadow:0 18px 34px color-mix(in srgb,var(--creator-accent) 19%,transparent); }
.creator-resource-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;max-height:330px;overflow:auto;padding-right:2px;scrollbar-color:#c4ccda transparent;scrollbar-width:thin; }
.creator-resource { display:grid;grid-template-columns:29px minmax(0,1fr);gap:7px;align-items:center;min-width:0;padding:7px 8px;border:1px solid #e1e7f0;border-radius:10px;background:#fff;color:#28364b;text-decoration:none;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.creator-resource:hover,.creator-resource:focus-visible { border-color:color-mix(in srgb,var(--creator-accent) 42%,#dce4ef);box-shadow:0 5px 12px color-mix(in srgb,var(--creator-accent) 12%,transparent);transform:translateY(-1px);outline:none; }
.creator-resource-logo { position:relative;display:grid;place-items:center;overflow:hidden;width:29px;height:29px;border-radius:9px;background:var(--creator-accent);color:#fff;font-size:8px;font-weight:900;letter-spacing:-.06em; }.creator-resource-logo b { font:inherit; }.creator-resource-logo img { position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:#fff; }.creator-resource-logo img.is-broken { display:none; }.creator-claude .creator-resource-logo img { box-sizing:border-box;object-fit:contain;padding:3px; }
.creator-resource-copy { min-width:0;display:grid;gap:2px; }.creator-resource-copy strong,.creator-resource-copy small { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }.creator-resource-copy strong { font-size:10px;font-weight:850;line-height:1.2; }.creator-resource-copy small { color:#748198;font-size:9px;line-height:1.2; }
.creator-resource-tooltip { position:fixed;z-index:1100;width:min(420px,calc(100vw - 32px));padding:15px 17px;border:1px solid #d8e0ed;border-radius:15px;background:linear-gradient(140deg,#fff,#f6f9ff);box-shadow:0 18px 38px #1c315033;color:#24334c;opacity:0;visibility:hidden;transform:translateY(4px);transition:opacity .14s ease,transform .14s ease,visibility .14s ease;pointer-events:none; }
.creator-resource-tooltip.is-visible { opacity:1;visibility:visible;transform:translateY(0); }
.creator-resource-tooltip-title { display:block;margin-bottom:3px;font-size:14px;font-weight:900;letter-spacing:-.025em;color:#1d2e49; }.creator-resource-tooltip p { margin:0;color:#586980;font-size:11px;line-height:1.48;word-break:keep-all; }.creator-resource-tooltip-intro { margin-bottom:8px!important;color:#6b7890!important;font-size:10px!important; }
.creator-resource-tooltip-details { display:grid;gap:6px; }.creator-resource-tooltip-row { padding-top:6px;border-top:1px solid #e4eaf3; }.creator-resource-tooltip-row b { display:block;margin-bottom:1px;color:#475a78;font-size:10px;font-weight:900;letter-spacing:-.02em; }.creator-resource-tooltip-row p { color:#34455f;font-size:11px;line-height:1.5; }
.creator-resource-tooltip::before { content:"";position:absolute;top:50%;width:64px;border-top:1px solid #aebbd0; }.creator-resource-tooltip::after { content:"";position:absolute;top:calc(50% - 5px);width:9px;height:9px;background:#f9fbff;border-top:1px solid #aebbd0;border-left:1px solid #aebbd0;transform:rotate(-45deg); }.creator-resource-tooltip[data-side="right"]::before { left:-65px; }.creator-resource-tooltip[data-side="right"]::after { left:-6px; }.creator-resource-tooltip[data-side="left"]::before { right:-65px; }.creator-resource-tooltip[data-side="left"]::after { right:-6px;transform:rotate(135deg); }
@media (max-width:1050px) { .creator-special-links { overflow-x:auto; }.creator-special-groups { min-width:960px; } }
@media (max-width:900px) { .creator-category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.creator-resource-list { grid-template-columns:1fr; } }
/* 홈 하단 콘텐츠 영역 구분선 */
.home-divider { max-width: 1000px; margin: 40px auto 0; border: none; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .lms-btn { min-width: 0; flex: 1 1 100%; font-size: 15px; padding: 13px 18px; }
}

.cat-groups { display: flex; justify-content: center; gap: 0; margin: 40px auto 0; max-width: 1220px; }
/* 데스크톱: 한 줄 고정(줄바꿈 없음) */
.cat-row { flex-wrap: nowrap; align-items: flex-start; }
.cat-group { padding: 0 20px; border-right: 1px solid var(--border); flex: 0 0 auto; }
.cat-group:last-child { border-right: none; }
.cat-group-title { font-size: 11px; font-weight: 600; color: var(--text-muted); text-align: center; margin-bottom: 14px; display: flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.cat-caret { font-size: 8px; opacity: .6; }
.cat-items { display: flex; gap: 18px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 52px; min-height: 78px; background: none; border: none; color: var(--text); }
/* 제작·강의 도구도 항목이 늘어나면 각 구획 안에서만 가로로 이어집니다. */
.cat-group-content { flex-basis:366px; padding-inline:12px; }
.cat-group-content .cat-items { width:342px; max-width:100%; overflow-x:auto; overflow-y:hidden; padding:0 0 10px; scrollbar-gutter:stable; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:#aeb9cb transparent; }
.cat-group-content .cat-items::-webkit-scrollbar { height:6px; }
.cat-group-content .cat-items::-webkit-scrollbar-track { background:#edf1f7; border-radius:999px; }
.cat-group-content .cat-items::-webkit-scrollbar-thumb { background:#aeb9cb; border-radius:999px; }
.cat-group-content .cat-item { flex:0 0 52px; }
.cat-group-lecture { flex-basis:286px; padding-inline:12px; }
.cat-group-lecture .cat-items { width:262px; max-width:100%; overflow-x:auto; overflow-y:hidden; padding:0 0 10px; scrollbar-gutter:stable; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:#aeb9cb transparent; }
.cat-group-lecture .cat-items::-webkit-scrollbar { height:6px; }
.cat-group-lecture .cat-items::-webkit-scrollbar-track { background:#edf1f7; border-radius:999px; }
.cat-group-lecture .cat-items::-webkit-scrollbar-thumb { background:#aeb9cb; border-radius:999px; }
.cat-group-lecture .cat-item { flex:0 0 52px; }
/* 게임 포트폴리오는 첫 다섯 작품만 보이고, 나머지 두 작품은 전용 하단 스크롤로 이어집니다. */
.cat-group-portfolio { flex-basis:366px; padding-inline:12px; }
/* 342px 중 하단 스크롤바가 차지하는 10px을 제외해도 5×52px + 4×18px = 332px가 남습니다. */
.cat-group-portfolio .cat-items { width:342px; max-width:100%; overflow-x:auto; overflow-y:hidden; padding:0 0 10px; scrollbar-gutter:stable; -webkit-overflow-scrolling:touch; scrollbar-width:thin; scrollbar-color:#aeb9cb transparent; }
.cat-group-portfolio .cat-items::-webkit-scrollbar { height:6px; }
.cat-group-portfolio .cat-items::-webkit-scrollbar-track { background:#edf1f7; border-radius:999px; }
.cat-group-portfolio .cat-items::-webkit-scrollbar-thumb { background:#aeb9cb; border-radius:999px; }
.cat-group-portfolio .cat-item { flex:0 0 52px; }
/* 배경 없는 컬러 텍스트 아이콘 (참고 이미지 스타일) */
.cat-item .cat-ic-flat { font-size: 20px; line-height: 1; transition: transform .15s; }
.cat-item:hover .cat-ic-flat { transform: translateY(-2px); }
.sound-wave-icon { display:inline-flex; align-items:center; justify-content:center; gap:2px; width:22px; height:22px; vertical-align:middle; color:currentColor; transition:transform .15s; }
.sound-wave-icon i { display:block; width:3px; border-radius:999px; background:currentColor; }
.sound-wave-icon i:nth-child(1),.sound-wave-icon i:nth-child(5) { height:7px; }
.sound-wave-icon i:nth-child(2),.sound-wave-icon i:nth-child(4) { height:13px; }
.sound-wave-icon i:nth-child(3) { height:20px; }
.nav-item .sound-wave-icon { width:19px; height:19px; gap:2px; }
.nav-item .sound-wave-icon i { width:2.5px; }
.nav-item .sound-wave-icon i:nth-child(1),.nav-item .sound-wave-icon i:nth-child(5) { height:6px; }
.nav-item .sound-wave-icon i:nth-child(2),.nav-item .sound-wave-icon i:nth-child(4) { height:11px; }
.nav-item .sound-wave-icon i:nth-child(3) { height:17px; }
.cat-item .cat-label { min-height:14px; font-size: 11px; font-weight: 500; line-height: 1.25; text-align: center; color: var(--text-muted); white-space: nowrap; }
.cat-item:hover .cat-label { color: var(--text); }
.cat-item.is-disabled,.nav-item.is-disabled { opacity:.52; cursor:not-allowed; }
.cat-item.is-disabled small { margin-top:-3px; color:var(--text-muted); font-size:8px; font-weight:700; white-space:nowrap; }
.nav-item.is-disabled:hover { background:transparent; color:var(--text); }
.nav-item.is-disabled:hover i { color:var(--side-icon); }
.cat-item .home-app-version { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; min-height:19px; box-sizing:border-box; padding:2px 9px; border-radius:999px; background:#edf2fa; color:#465672; font-size:11px; font-weight:700; line-height:1.25; white-space:nowrap; }
.ai-human-cat { min-height:42px; justify-content:center; gap:1px; }
.ai-human-face>img { width:42px; height:42px; object-fit:cover; border:2px solid #d5ae41; border-radius:12px; box-shadow:0 6px 16px rgba(7,26,56,.18); transition:transform .18s ease,box-shadow .18s ease; }
.ai-human-face:hover>img { transform:translateY(-2px); box-shadow:0 9px 20px rgba(7,26,56,.24); }
.gloria-quick-toggle { align-self:center; border:0; border-radius:999px; min-width:42px; padding:3px 10px; background:#ed7b2f; color:#fff; font-size:10px; font-weight:900; line-height:1.25; cursor:pointer; box-shadow:0 3px 8px rgba(173,82,15,.22); }
.gloria-quick-toggle.is-on { background:#f4ca3e; color:#5a4100; }
.gloria-quick-toggle:focus-visible { outline:3px solid #0d2449; outline-offset:3px; }
.gloria-quick-toggle:disabled { cursor:wait; opacity:.7; }
.content-app-store { max-width: 1120px; margin: 28px auto 0; padding: 0 4px 42px; }
.content-app-store-head { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.content-app-store-head>div>span { display:block; margin-bottom:3px; color:var(--primary); font-size:10px; font-weight:850; letter-spacing:.15em; }
.content-app-store h2 { margin: 0; color: var(--text); font-size: 22px; font-weight: 850; letter-spacing: -.025em; }
.content-app-store-head>strong { color:var(--text-muted); font-size:12px; }
.content-app-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.content-app-card { position:relative; min-width:0; overflow:hidden; border:1px solid var(--border); border-radius:18px; background:var(--workspace); box-shadow:0 8px 24px rgba(15,23,42,.06); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.content-app-card:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--app-accent) 48%,var(--border)); box-shadow:0 16px 34px rgba(15,23,42,.12); }
.content-app-card:focus-visible { outline:3px solid color-mix(in srgb,var(--app-accent) 45%,transparent); outline-offset:3px; }
.content-app-visual { position:relative; isolation:isolate; height:124px; padding:13px; display:flex; align-items:flex-start; justify-content:space-between; overflow:hidden; color:#fff; background:linear-gradient(135deg,var(--app-accent),var(--app-accent-2)); }
.content-app-visual::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(180deg,rgba(4,12,28,.12) 28%,rgba(4,12,28,.72) 100%); }
.content-app-visual>img { position:absolute; z-index:-2; inset:0; width:100%; height:100%; object-fit:cover; transition:transform .35s ease,filter .35s ease; }
.content-app-card:hover .content-app-visual>img { transform:scale(1.035); filter:saturate(1.08); }
.content-app-visual>i { width:39px; height:39px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.38); border-radius:12px; background:rgba(7,18,37,.42); backdrop-filter:blur(9px); font-size:17px; box-shadow:0 8px 18px rgba(0,0,0,.18); }
.content-app-visual>span { padding:5px 8px; border:1px solid rgba(255,255,255,.18); border-radius:999px; background:rgba(6,15,35,.5); backdrop-filter:blur(8px); font-size:9px; font-weight:850; letter-spacing:.1em; }
.content-app-info { min-height:82px; padding:14px; display:flex; flex-direction:column; justify-content:space-between; gap:11px; }
.content-app-info h3 { margin:0; color:var(--text); font-size:14px; font-weight:800; line-height:1.35; word-break:keep-all; }
.content-app-info>span { display:flex; align-items:center; justify-content:space-between; color:var(--text-muted); font-size:11px; font-weight:700; }
.content-app-card:hover .content-app-info>span { color:var(--app-accent); }
@media (max-width:900px) { .content-app-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }

.coming-soon { min-height: min(520px, 68vh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 16px; text-align: center; }
.external-tool p { max-width: 520px; margin: 0; color: var(--text-muted); }
.external-tool small { color: var(--text-muted); }
.external-tool-launch { min-height: 48px; padding-inline: 22px; gap: 9px; font-weight: 800; }
.coming-soon-icon { font-size: 42px; line-height: 1; }
.coming-soon h1 { margin: 2px 0 0; font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.coming-soon p { margin: 0; color: var(--text-muted); font-size: 15px; }
.coming-soon .btn { margin-top: 6px; }

/* 기존 type-chip / suggest (구형 홈 하위호환) */
.type-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 18px 0 0; }
.type-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--workspace); color: var(--text-muted); font-size: 14px; font-weight: 500; }
.type-chip.active { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }
.suggest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 14px; }
.suggest-card { background: var(--workspace); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 18px; text-align: left; transition: all .18s; }
.suggest-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.suggest-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 18px; color: #fff; margin-bottom: 12px; }

/* 프로필 드롭다운 */
.profile-menu { position: fixed; left: 12px; bottom: 12px; width: 250px; background: var(--workspace); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 70; display: none; }
.profile-menu.show { display: block; }
.profile-head { display: flex; align-items: center; gap: 10px; padding: 8px 8px 10px; }
.profile-head .pm-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.profile-credit { color: var(--blue); font-weight: 700; font-size: 13px; padding: 4px 10px 10px; border-bottom: 1px solid var(--border); }
.profile-item { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 500; background: none; border: none; width: 100%; text-align: left; }
.profile-item i { width: 18px; text-align: center; color: var(--text-muted); }
.profile-item:hover { background: var(--surface); }
.member-star-profile-link { align-items:center; border-bottom:1px solid var(--border); color:#8b5b00; cursor:pointer; }
.member-star-profile-link i { color:#e4a819; }
.member-star-profile-link span { display:grid; gap:1px; flex:1; }
.member-star-profile-link b { color:var(--text); font-size:12px; }
.member-star-profile-link small { color:#ae7607; font-weight:850; white-space:nowrap; }

/* 회원 별 등급: 활동 기반 보상은 결제/크레딧과 독립적으로 표시한다. */
.member-star-modal[hidden] { display:none !important; }
body.member-star-modal-open { overflow:hidden; }
.member-star-modal { position:fixed; z-index:230; inset:0; display:grid; place-items:center; padding:16px; }
.member-star-modal-backdrop { position:absolute; inset:0; border:0; background:rgba(5,14,32,.62); backdrop-filter:blur(5px); cursor:default; }
.member-star-card { position:relative; width:min(680px,calc(100vw - 28px)); max-height:calc(100dvh - 28px); overflow:auto; border:1px solid rgba(232,184,47,.4); border-radius:24px; background:var(--workspace); color:var(--text); box-shadow:0 28px 88px rgba(4,15,35,.38); }
.member-star-card>header { position:sticky; top:0; z-index:2; display:flex; align-items:center; justify-content:space-between; gap:14px; padding:19px 22px 15px; border-bottom:1px solid var(--border); background:color-mix(in srgb,var(--workspace) 94%,transparent); backdrop-filter:blur(14px); }
.member-star-card>header span { display:block; color:#b57a0c; font-size:10px; font-weight:900; letter-spacing:.13em; }
.member-star-card h2 { margin:3px 0 0; font-size:21px; }
.member-star-card h3 { margin:20px 22px 8px; font-size:15px; }
.member-star-intro { margin:16px 22px; color:var(--text-muted); font-size:14px; line-height:1.65; }
.member-star-progress { margin:0 22px; padding:16px; border:1px solid rgba(229,180,42,.31); border-radius:17px; background:linear-gradient(135deg,rgba(248,198,65,.13),rgba(87,101,210,.08)); }
.member-star-progress-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.member-star-progress-head strong { font-size:16px; }
.member-star-progress-head span { color:#a76a00; font-size:13px; font-weight:850; }
.member-star-track { display:flex; flex-wrap:wrap; gap:5px; margin:11px 0 7px; }
.member-star-track i { color:#cbd5e1; font-size:17px; font-style:normal; opacity:.7; }
.member-star-track i.is-earned { color:#f3b51d; opacity:1; text-shadow:0 1px 3px rgba(126,78,0,.35); }
.member-star-progress p { margin:0; color:var(--text-muted); font-size:12px; }
.member-star-rule-list,.member-star-benefit-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding:0 22px; }
.member-star-rule { min-width:0; padding:12px; border:1px solid var(--border); border-radius:13px; background:var(--surface); }
.member-star-rule.is-earned { border-color:rgba(227,169,27,.55); background:linear-gradient(135deg,rgba(245,186,43,.13),var(--surface)); }
.member-star-rule strong,.member-star-rule p,.member-star-rule small { display:block; }
.member-star-rule strong { font-size:13px; }
.member-star-rule p { min-height:34px; margin:5px 0 7px; color:var(--text-muted); font-size:11px; line-height:1.45; word-break:keep-all; }
.member-star-rule small { color:#8b6a20; font-size:11px; font-weight:750; }
.member-star-post-section { margin:20px 22px 22px; padding:14px; border:1px solid var(--border); border-radius:16px; background:var(--surface); }
.member-star-post-section h3 { margin:0 0 5px; }
.member-star-post-section>p { margin:0 0 10px; color:var(--text-muted); font-size:12px; line-height:1.55; }
.member-star-post-section textarea { width:100%; min-height:82px; padding:11px; resize:vertical; border:1px solid var(--border); border-radius:11px; background:var(--workspace); color:var(--text); font:inherit; font-size:13px; }
.member-star-post-actions { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:9px; }
.member-star-post-actions span { color:var(--text-muted); font-size:12px; }
.member-star-posts { display:grid; gap:8px; margin-top:12px; }
.member-star-post { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:9px 10px; border:1px solid var(--border); border-radius:10px; background:var(--workspace); }
.member-star-post p { margin:0; white-space:pre-wrap; word-break:break-word; font-size:12px; line-height:1.45; }
.member-star-post .btn { flex:none; min-height:30px; padding:5px 9px; font-size:11px; }

/* 대표 실습 교육 — 실사 배경을 쓴 프리미엄 과정 진입 배너 */
.academy-home-banner { position:relative; isolation:isolate; overflow:hidden; width:100%; min-width:0; min-height:138px; margin:0 0 20px; padding:22px 28px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:18px; align-items:center; border:1px solid rgba(223,188,95,.34); border-radius:20px; background:#091a36; color:#fff; box-shadow:0 16px 38px rgba(8,25,54,.16); }
.academy-home-banner::before { content:""; position:absolute; z-index:-2; inset:0; background:url('/static/academy-ai-workflow-hero.webp') center 43%/cover no-repeat; }
.academy-home-banner::after { content:""; position:absolute; z-index:-1; inset:0; background:linear-gradient(90deg,rgba(5,17,39,.98) 0%,rgba(8,24,51,.94) 47%,rgba(8,25,54,.52) 74%,rgba(8,25,54,.24) 100%); }
.academy-home-icon { width:56px; height:56px; display:grid; place-items:center; border:1px solid rgba(255,222,137,.45); border-radius:17px; background:linear-gradient(145deg,#f3d57e,#a87619); color:#071a38; font-size:22px; box-shadow:0 10px 28px rgba(0,0,0,.24); }
.academy-home-banner span { color:#f1d581; font-size:11px; font-weight:850; letter-spacing:.12em; }
.academy-home-banner h2 { margin:4px 0; color:#fff; font-size:21px; letter-spacing:-.025em; text-shadow:0 2px 12px rgba(0,0,0,.28); }
.academy-home-banner p { margin:0; max-width:620px; color:rgba(255,255,255,.72); font-size:13px; }
.academy-home-banner>a { display:flex; align-items:center; justify-content:center; gap:8px; padding:13px 17px; border:1px solid rgba(255,255,255,.42); border-radius:12px; background:rgba(255,255,255,.93); color:#102343; font-size:12px; font-weight:850; white-space:nowrap; box-shadow:0 8px 24px rgba(0,0,0,.18); }
.academy-home-banner>a:hover { background:#fff; transform:translateY(-1px); }
@media (max-width:680px) { .academy-home-banner { width:100%; margin:0 0 14px; padding:15px; grid-template-columns:auto 1fr; } .academy-home-banner>a { grid-column:1/-1; justify-content:center; } }

/* 기능 페이지 빈 상태 + 하단 입력 */
/* 기능 페이지: 상단=스크롤 결과영역(넓게), 하단=고정 입력 도크 */
.feature-page { display: flex; flex-direction: column; height: 100%; min-height: 0; }
/* 결과/빈상태가 함께 놓이는 위쪽 넓은 영역 — 내부 스크롤, 도크는 밀리지 않음 */
.feature-stage { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; }
.feature-stage::-webkit-scrollbar { width: 8px; }
.feature-stage::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
.feature-empty { flex: 1 0 auto; display: grid; place-items: center; text-align: center; padding: 20px; }
.feature-empty h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin: 0; }
.feature-empty p { color: var(--text-muted); margin-top: 10px; }
/* 하단 고정 입력 도크 — 화면비 변경/생성 후에도 제자리 유지 */
.feature-dock { flex: 0 0 auto; max-width: 760px; width: 100%; margin: 0 auto; padding: 12px 0 16px; background: var(--bg); }
.dock-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.feature-hero-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff; font-size: 26px; margin: 0 auto 18px; }

/* ---------- AI 문서(텍스트 AI) ---------- */
.text-tabs { display: flex; align-items: center; gap: 8px; max-width: 900px; width: 100%; margin: 4px auto 14px; flex: 0 0 auto; }
/* 텍스트 AI: 대화/문서 보기 영역이 남는 높이를 채우고 내부 스크롤 → 하단 도크 고정 */
#chat-view, #doc-view { min-height: 0; }
#doc-view { overflow-y: auto; }
.text-doc-tools { display: flex; gap: 4px; }
.pill-sm { height: 30px; padding: 0 11px; font-size: 12.5px; }
.text-chat { flex: 1; max-width: 860px; width: 100%; margin: 0 auto; overflow-y: auto; scroll-behavior: smooth; padding: 8px 4px 4px; }
.text-chat:empty { min-height: 0; }

/* ChatGPT 스타일 대화 메시지 */
.chat-msg { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.chat-msg.chat-user { flex-direction: row-reverse; }
.chat-avatar { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; font-size: 14px; }
.chat-avatar.is-ai { background: var(--grad); color: #fff; }
.chat-avatar.is-user { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.chat-col { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; min-width: 0; }
.chat-msg.chat-user .chat-col { align-items: flex-end; }
.chat-bubble { padding: 13px 16px; line-height: 1.75; font-size: 15px; white-space: pre-wrap; word-break: break-word; border-radius: 14px; }
.chat-msg.chat-user .chat-bubble { background: var(--surface); }
/* 타이핑 커서 */
.chat-bubble.typing::after { content: '▍'; display: inline; margin-left: 1px; color: var(--primary); animation: gs-caret 1s steps(1) infinite; font-weight: 400; }
@keyframes gs-caret { 0%,50% { opacity: 1; } 50.01%,100% { opacity: 0; } }
/* 메시지별 복사 버튼 */
.chat-copy { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chat-copy:hover { background: var(--surface); color: var(--text); }
.chat-copy.copied { color: var(--success); border-color: var(--success); }
.chat-copy i { font-size: 12px; }
/* 생각 중 점 애니메이션 */
.chat-bubble.chat-thinking { display: inline-flex; align-items: center; gap: 5px; padding: 16px 18px; }
.chat-bubble.chat-thinking .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); opacity: .4; animation: gs-think 1.2s infinite ease-in-out; }
.chat-bubble.chat-thinking .dot:nth-child(2) { animation-delay: .2s; }
.chat-bubble.chat-thinking .dot:nth-child(3) { animation-delay: .4s; }
@keyframes gs-think { 0%,80%,100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.doc-title-input { font-size: 20px; font-weight: 700; border: none; background: transparent; color: var(--text); padding: 8px 0; margin-bottom: 8px; width: 100%; outline: none; }
.doc-refine-bar { max-width: 900px; width: 100%; margin: 0 auto; padding: 10px 0 24px; display: flex; align-items: center; gap: 10px; }
.doc-refine-bar .input { flex: 1; height: 44px; border-radius: 999px; padding: 0 18px; }
.sel-menu { position: absolute; z-index: 70; background: var(--workspace); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; gap: 4px; flex-wrap: wrap; max-width: 340px; }

/* 작업 카드 */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.work-card { background: var(--workspace); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; transition: all .18s; }
.work-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.work-thumb { aspect-ratio: 16/10; background: var(--surface); display: grid; place-items: center; color: var(--text-muted); font-size: 28px; }
.work-body { padding: 12px 14px; }

/* 배지 */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-text { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.badge-image { background: color-mix(in srgb, var(--secondary) 15%, transparent); color: var(--secondary); }
.badge-video { background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.badge-music { background: color-mix(in srgb, #E14D8A 15%, transparent); color: #C73575; }
.badge-app { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.badge-html { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.badge-demo { background: color-mix(in srgb, var(--warning) 20%, transparent); color: var(--warning); }

/* 실행 패널 (작업 과정 표시) */
.exec-step { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.exec-step:last-child { border-bottom: none; }
.exec-dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 11px; }
.exec-dot.wait { background: var(--surface); color: var(--text-muted); }
.exec-dot.run { background: color-mix(in srgb, var(--primary) 20%, transparent); color: var(--primary); }
.exec-dot.done { background: var(--success); color: #fff; }
.exec-dot.fail { background: var(--danger); color: #fff; }

/* 토스트 */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--workspace); border: 1px solid var(--border); border-left: 4px solid var(--primary);
  border-radius: 10px; padding: 12px 16px; box-shadow: var(--shadow-lg); min-width: 260px; max-width: 380px;
  animation: toastIn .25s ease;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* 스피너 */
.spinner { width: 16px; height: 16px; border: 2px solid color-mix(in srgb, var(--primary) 30%, transparent); border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 모바일 오버레이 */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 39; display: none; }
.overlay.show { display: block; }
.mobile-only { display: none; }

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 1024px) {
  .right-panel { display: none; }
  /* 태블릿: 한 줄 유지하되 넘치면 가로 스크롤로 전환 */
  .cat-row {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .cat-row::-webkit-scrollbar { height: 5px; }
  .cat-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  .cat-group { padding: 0 16px; }
}
@media (max-width: 768px) {
  .content { padding: 0 14px 20px; }
  .work-grid, .suggest-grid { grid-template-columns: 1fr 1fr; }
  /* 모바일: 아이콘·글자 더 작게, 가로 스크롤 프레임 */
  .cat-group { padding: 0 13px; }
  .cat-items { gap: 14px; }
  .cat-item { width: 46px; }
  .cat-group-content { flex-basis:322px; padding-inline:10px; }
  .cat-group-content .cat-items { width:292px; }
  .cat-group-content .cat-item { flex-basis:46px; }
  .cat-group-lecture { flex-basis:250px; padding-inline:10px; }
  .cat-group-lecture .cat-items { width:226px; }
  .cat-group-lecture .cat-item { flex-basis:46px; }
  .cat-group-portfolio { flex-basis:322px; padding-inline:10px; }
  .cat-group-portfolio .cat-items { width:292px; }
  .cat-group-portfolio .cat-item { flex-basis:46px; }
  .cat-item .cat-ic-flat { font-size: 18px; }
  .cat-item .cat-label { font-size: 10px; }
}
@media (max-width: 480px) {
  .work-grid, .suggest-grid { grid-template-columns: 1fr; }
  .home-hero { margin-top: 4vh; }
  :root { --sidebar-w: 62px; --sidebar-collapsed: 62px; }
  .nav-item, .sidebar-new { width: 52px; font-size: 9.5px; }
  .prompt-toolbar { flex-wrap: wrap; }
  #detected-type { display: none; }
  .prompt-toolbar .pill-dark { margin-left: auto; }
  .cat-row { display: grid; grid-template-columns: 1fr; gap: 22px; overflow-x: visible; padding-bottom: 0; }
  .cat-group { width: 100%; padding: 0; border-right: none; }
  .cat-items { flex-wrap: wrap; justify-content: center; }
}

/* 인증 페이지 */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 420px; padding: 36px 32px; }
.auth-logo { display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 800; font-size: 22px; margin-bottom: 8px; }
.field { margin-bottom: 16px; }
.auth-notice { background: var(--surface); border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--text-muted); margin-top: 18px; }

/* 로그인 전 앱 진입: 보호된 실제 앱 기능은 노출하지 않고, 동일한 시각 언어의 미리보기 위에 인증 패널을 띄운다. */
.auth-entry-shell{position:relative;min-height:100dvh;overflow:hidden;background:#eef3fb;color:#151923}
.auth-app-background{position:absolute;inset:0;overflow:hidden;background:#fff;pointer-events:none;user-select:none}
.auth-app-background .app-shell{min-height:100dvh}
/* The public entry shell uses the real home renderer as its backdrop.  Keep it
   crisp: the shield blocks interaction without blurring or dimming the app. */
.auth-entry-scrim{position:absolute;z-index:1;inset:0;background:rgba(7,25,56,.015);pointer-events:auto}
.auth-entry-stage{z-index:2}
.auth-app-preview{position:absolute;inset:0;display:grid;grid-template-columns:92px minmax(0,1fr);min-height:100%;background:linear-gradient(135deg,#f7faff 0%,#edf3fc 52%,#e8effa 100%);pointer-events:none;user-select:none}
.auth-preview-sidebar{display:flex;flex-direction:column;align-items:center;gap:17px;padding:24px 12px;background:rgba(255,255,255,.84);border-right:1px solid rgba(198,210,232,.78);box-shadow:8px 0 24px rgba(50,72,110,.04)}
.auth-preview-seal{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:linear-gradient(145deg,#071a38,#254d87);color:#fff;font-weight:900;font-size:20px;box-shadow:0 8px 18px rgba(15,39,79,.24)}
.auth-preview-plus{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#fff;color:#526e9e;font-size:18px;box-shadow:0 3px 10px rgba(40,64,100,.09)}
.auth-preview-nav{width:100%;min-height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:13px;color:#6f7c91;font-size:10px;font-weight:700}.auth-preview-nav i{font-size:17px}.auth-preview-nav.is-active{background:#e6ecf7;color:#263c62}
.auth-preview-main{padding:26px clamp(30px,7vw,108px);filter:blur(.3px);opacity:.83}.auth-preview-header{display:flex;align-items:center;justify-content:space-between;padding-bottom:22px;border-bottom:1px solid rgba(197,210,231,.72)}.auth-preview-brand{font-weight:800;color:#263552;font-size:17px}.auth-preview-header-actions{display:flex;gap:10px}.auth-preview-header-actions span{width:34px;height:34px;border-radius:12px;background:#fff;border:1px solid #e2e9f4}
.auth-preview-welcome{max-width:850px;margin:clamp(58px,10vh,110px) auto 0;text-align:center}.auth-preview-welcome p{font-size:13px;font-weight:700;color:#6c7790;margin:0 0 16px}.auth-preview-welcome h1{font-size:clamp(36px,4.8vw,66px);line-height:1.12;letter-spacing:-.055em;margin:0;color:#1a2945}.auth-preview-welcome h1 b{font-weight:850;background:linear-gradient(105deg,#6555e8,#327ce4);-webkit-background-clip:text;background-clip:text;color:transparent}.auth-preview-prompt{display:flex;align-items:center;gap:16px;width:min(100%,680px);height:72px;margin:38px auto 0;padding:0 22px;border-radius:23px;background:rgba(255,255,255,.94);box-shadow:0 18px 42px rgba(62,85,126,.11);color:#68758b;font-weight:600;text-align:left}.auth-preview-prompt i:last-child{margin-left:auto;color:#5462da}.auth-preview-prompt i:first-child{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#edf2fa;color:#6277a1}
.auth-preview-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;max-width:1030px;margin:58px auto 0}.auth-preview-tool{min-height:138px;padding:22px;border:1px solid rgba(219,227,241,.92);border-radius:22px;background:rgba(255,255,255,.76);box-shadow:0 8px 22px rgba(56,77,113,.04)}.auth-preview-tool i{display:grid;place-items:center;width:37px;height:37px;margin-bottom:16px;border-radius:12px;background:linear-gradient(135deg,#6d5cf1,#3f85e8);color:#fff}.auth-preview-tool strong,.auth-preview-tool span{display:block}.auth-preview-tool strong{font-size:15px;color:#263552}.auth-preview-tool span{margin-top:5px;font-size:12px;color:#78849a}.auth-preview-learning{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:1030px;margin:18px auto}.auth-preview-learning>div{display:grid;grid-template-columns:42px 1fr;column-gap:12px;align-items:center;padding:18px 21px;border-radius:20px;background:rgba(255,255,255,.55)}.auth-preview-learning i{grid-row:1/3;font-size:24px;color:#625ce7}.auth-preview-learning strong{font-size:14px;color:#2a3750}.auth-preview-learning span{font-size:12px;color:#7a879a;margin-top:4px}
.auth-entry-stage{position:relative;display:grid;place-items:center;min-height:100dvh;padding:32px 20px}.auth-entry-panel{position:relative;isolation:isolate;width:min(100%,760px);max-height:calc(100dvh - 48px);overflow-y:auto;padding:34px 40px;border:2px solid transparent;border-radius:46px;background:linear-gradient(#f8fbff,#f8fbff) padding-box,linear-gradient(135deg,#ffffff 0%,#b7c7e8 20%,#ffffff 42%,#8098ca 67%,#ffffff 100%) border-box;box-shadow:0 34px 92px rgba(8,24,56,.38),0 13px 30px rgba(36,62,106,.20),inset 0 2px 0 rgba(255,255,255,1),inset 0 -4px 13px rgba(104,132,183,.15),inset 4px 0 10px rgba(255,255,255,.72),inset -4px 0 11px rgba(117,143,188,.12);backdrop-filter:none;-webkit-backdrop-filter:none}.auth-entry-panel::before{content:"";position:absolute;z-index:0;pointer-events:none;left:14px;right:14px;top:2px;height:42%;border-radius:40px 40px 60% 60%;background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.42) 43%,rgba(255,255,255,0));box-shadow:inset 0 1px 0 rgba(255,255,255,.92);opacity:.96}.auth-entry-panel::after{content:"";position:absolute;z-index:0;pointer-events:none;inset:4px;border:1px solid rgba(123,150,198,.30);border-radius:40px;box-shadow:inset 0 1px 2px rgba(255,255,255,.92)}.auth-entry-panel>*{position:relative;z-index:1}.auth-entry-pane form{max-width:520px;margin-inline:auto}
.auth-entry-brand{display:flex;align-items:center;justify-content:center;gap:10px;font-size:20px;font-weight:850;color:#172642;letter-spacing:-.03em}.auth-entry-brand .sidebar-logo{width:36px;height:36px;font-size:17px}.auth-entry-kicker{margin:8px 0 22px;text-align:center;font-size:12px;font-weight:700;color:#66738a}.auth-entry-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:6px;border-radius:17px;background:rgba(228,235,247,.68);border:1px solid rgba(210,220,237,.76)}.auth-entry-tab{min-height:43px;border:0;border-radius:12px;background:transparent;color:#657188;font:inherit;font-size:13px;font-weight:750;cursor:pointer;transition:background .18s ease,color .18s ease,box-shadow .18s ease}.auth-entry-tab i{margin-right:6px}.auth-entry-tab:hover,.auth-entry-tab:focus-visible{background:rgba(255,255,255,.65);color:#35486f}.auth-entry-tab.is-active{background:linear-gradient(135deg,#7660f1,#3e86e9);color:#fff;box-shadow:0 6px 15px rgba(84,91,222,.28)}.auth-entry-pane{display:none;padding-top:25px}.auth-entry-pane.is-active{display:block}.auth-pane-heading{text-align:center;margin-bottom:23px}.auth-pane-heading h1{margin:0;color:#172642;font-size:25px;letter-spacing:-.045em}.auth-pane-heading p{margin:8px 0 0;color:#657188;font-size:14px;line-height:1.55}.field-help{margin-top:6px;font-size:12px;color:var(--text-muted)}.auth-agreements{display:grid;gap:8px;font-size:13px;line-height:1.5}.auth-agreements label{display:flex;align-items:flex-start;gap:8px}.auth-agreements input{margin-top:3px;flex:none}.auth-master-note{display:flex;align-items:center;justify-content:center;gap:7px;margin:18px 0 0;color:#647087;font-size:12px}.auth-master-note i{color:#506fe3}
@media (max-width:720px){.auth-app-preview{grid-template-columns:62px minmax(0,1fr)}.auth-preview-sidebar{padding:18px 7px;gap:14px}.auth-preview-sidebar .auth-preview-nav{font-size:0;min-height:44px}.auth-preview-nav i{font-size:16px}.auth-preview-seal{width:37px;height:37px;border-radius:12px}.auth-preview-main{padding:20px 18px}.auth-preview-header{padding-bottom:16px}.auth-preview-brand{font-size:14px}.auth-preview-welcome{margin-top:72px}.auth-preview-welcome h1{font-size:36px}.auth-preview-prompt{height:60px;margin-top:27px;font-size:12px}.auth-preview-tools{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:38px;gap:10px}.auth-preview-tool{min-height:100px;padding:15px}.auth-preview-tool i{margin-bottom:9px}.auth-preview-learning{display:none}.auth-entry-stage{align-items:start;padding:18px 13px}.auth-entry-panel{max-height:calc(100dvh - 36px);padding:22px 18px;border-radius:24px}.auth-entry-brand{font-size:17px}.auth-entry-kicker{font-size:11px;margin-bottom:17px}.auth-entry-tab{font-size:11px;white-space:nowrap}.auth-entry-tab i{display:none}.auth-pane-heading h1{font-size:22px}.auth-entry-pane{padding-top:20px}}

/* ========================================================================
   마스터 게이트 모달
   ===================================================================== */
.master-gate { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; }
.mg-backdrop { position: absolute; inset: 0; background: rgba(10,12,18,.6); backdrop-filter: blur(3px); }
.mg-card {
  position: relative; width: min(380px, 92vw); background: var(--workspace); border: 1px solid var(--border);
  border-radius: 18px; padding: 28px 26px; box-shadow: var(--shadow-lg); text-align: center;
}
.mg-icon { width: 52px; height: 52px; border-radius: 14px; background: #181B24; color: #fff; display: grid; place-items: center; font-size: 22px; margin: 0 auto 14px; }
.mg-card h3 { margin: 0 0 4px; font-size: 18px; }
.mg-card p { margin: 0 0 16px; color: var(--text-muted); font-size: 13px; }
.mg-input {
  width: 100%; text-align: center; letter-spacing: .5em; font-size: 22px; font-weight: 700;
  padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text);
}
.mg-input:focus { outline: none; border-color: #181B24; }
.mg-error { color: var(--danger); font-size: 13px; min-height: 18px; margin: 8px 0; }
.mg-actions { display: flex; gap: 10px; }
.mg-btn { flex: 1; padding: 11px; border-radius: 11px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; }
.mg-primary { background: #181B24; color: #fff; border-color: #181B24; }
.mg-btn:hover { opacity: .9; }

/* ========================================================================
   마스터 관리자 콘솔 (독립 레이아웃, 흑백 테마)
   ===================================================================== */
.mc-root { display: flex; min-height: 100vh; background: #0F1116; color: #E8EAF0; }
.mc-side { width: 220px; flex-shrink: 0; background: #15181F; border-right: 1px solid #262B36; display: flex; flex-direction: column; padding: 18px 14px; }
.mc-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; padding: 6px 8px 18px; color: #fff; }
.mc-brand i { color: #fff; }
.mc-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.mc-nav-group { margin: 14px 9px 4px; color: #707A8E; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mc-nav-group:first-child { margin-top: 0; }
.mc-navitem { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; background: transparent; border: none; color: #A2A9B8; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; }
.mc-navitem i { width: 18px; text-align: center; }
.mc-navitem:hover { background: #1E232E; color: #fff; }
.mc-navitem.active { background: #2A303D; color: #fff; font-weight: 700; }
.mc-side-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid #262B36; }
.mc-back, .mc-exit { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; font-size: 13px; color: #A2A9B8; background: transparent; border: none; cursor: pointer; text-decoration: none; }
.mc-back:hover { color: #fff; background: #1E232E; }
.mc-exit:hover { color: #FF6B6B; background: #1E232E; }

.mc-main { flex: 1; padding: 26px 30px; overflow-y: auto; max-height: 100vh; }
.mc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.mc-top h1 { font-size: 22px; margin: 0; color: #fff; }
.mc-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: #0F1116; background: #E8EAF0; padding: 3px 9px; border-radius: 6px; }

.mc-card { background: #171B23; border: 1px solid #262B36; border-radius: 14px; padding: 18px; margin-bottom: 16px; }
.mc-card h3 { margin: 0 0 12px; font-size: 15px; color: #fff; }
.mc-member-stars-popup { display:grid; gap:10px; }
.mc-member-stars-toggle { display:flex; align-items:center; gap:8px; color:#f3f5fa; font-weight:750; }
.mc-member-stars-textarea { width:100%; min-height:88px; padding:10px 11px; resize:vertical; font:inherit; line-height:1.5; }
.mc-member-stars-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.mc-member-star-card { display:grid; gap:9px; min-width:0; padding:14px; border:1px solid #2b3341; border-radius:12px; background:#11161f; }
.mc-member-star-card label { display:grid; gap:6px; min-width:0; color:#c9d0dd; font-size:12px; font-weight:700; }
.mc-member-star-card .mc-form-row { margin:0; gap:8px; }
.mc-member-star-card .mc-form-row label { flex:1; }
.mc-member-star-card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.mc-member-star-card-head b { color:#ffd66c; font-size:13px; }
.mc-member-star-card-head label { display:flex; align-items:center; gap:5px; color:#aeb9c9; font-size:11px; white-space:nowrap; }
.mc-member-star-card .mc-hint { margin:0; font-size:11px; line-height:1.45; }
@media (max-width:720px) { .mc-member-stars-grid { grid-template-columns:1fr; } .mc-member-star-card .mc-form-row { flex-direction:column; } .mc-member-star-card-head { align-items:flex-start; flex-direction:column; } }
.mc-hint { color: #9098A8; font-size: 13px; margin: 0 0 16px; }
.mc-hint b { color: #fff; }
.mc-muted { color: #6B7280; }

.mc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mc-stat { display: flex; align-items: center; gap: 12px; background: #171B23; border: 1px solid #262B36; border-radius: 12px; padding: 16px; }
.mc-stat i { font-size: 20px; color: #7C8698; width: 26px; text-align: center; }
.mc-stat-v { font-size: 22px; font-weight: 800; color: #fff; line-height: 1; }
.mc-stat-l { font-size: 12px; color: #9098A8; margin-top: 4px; }
.mc-bytype { display: flex; flex-wrap: wrap; gap: 8px; }
.mc-chip { background: #1E232E; border: 1px solid #2E3542; border-radius: 8px; padding: 6px 12px; font-size: 13px; color: #C4CAD6; }
.mc-chip b { color: #fff; margin-left: 4px; }

/* Master operations center: read-only overview, deliberately separate from mutating controls. */
.mc-operations-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin:0 0 16px; padding:18px; border:1px solid #303849; border-radius:14px; background:linear-gradient(135deg,#1a202c 0%,#171b23 65%,#202434 100%); }
.mc-operations-head h2 { margin:0 0 7px; font-size:18px; color:#fff; }
.mc-operations-head p { margin:0; color:#AAB3C5; font-size:13px; line-height:1.55; }
.mc-operations-refresh { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; min-width:240px; }
.mc-operations-alerts { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:10px; margin-bottom:16px; }
.mc-operation-alert { display:flex; align-items:center; gap:10px; width:100%; min-height:76px; padding:12px 14px; text-align:left; color:#dce2eb; background:#171b23; border:1px solid #303849; border-radius:12px; cursor:pointer; }
.mc-operation-alert > .fas:first-child { width:24px; font-size:19px; color:#aab4c8; }
.mc-operation-alert > span { display:grid; gap:4px; flex:1; min-width:0; }
.mc-operation-alert b { color:#fff; font-size:13px; }
.mc-operation-alert small { color:#aab3c5; font-size:12px; line-height:1.35; }
.mc-operation-alert > .fas:last-child { color:#707a8e; font-size:11px; }
.mc-operation-alert.attention { border-color:#704046; background:#23191d; }
.mc-operation-alert.attention > .fas:first-child { color:#ff929c; }
.mc-operation-alert.notice { border-color:#594f7b; background:#1d1b2a; }
.mc-operation-alert.notice > .fas:first-child { color:#c0adff; }
.mc-operation-alert.ok { border-color:#315d49; background:#17221d; }
.mc-operation-alert.ok > .fas:first-child { color:#72e3a6; }
.mc-operation-alert:hover { transform:translateY(-1px); border-color:#68758b; }
.mc-operations-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.mc-operations-grid .mc-card { margin:0; min-height:156px; }
.mc-operations-grid h3 i { margin-right:8px; color:#AAB4C8; }
.mc-operations-checklist { margin:0; padding-left:20px; color:#B8C0CD; font-size:13px; line-height:1.9; }
.mc-audit-toolbar { align-items:center; flex-wrap:wrap; }
.mc-audit-toolbar .mc-input { min-width:130px; }
.mc-audit-toolbar #mc-audit-q { min-width:230px; flex:1 1 260px; }
.mc-audit-toolbar select.mc-input { flex:0 1 170px; }
.mc-audit-toolbar input[type="date"].mc-input { flex:0 1 150px; }

.mc-toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.mc-input { background: #10141B; border: 1px solid #2E3542; border-radius: 9px; padding: 10px 12px; color: #E8EAF0; font-size: 14px; flex: 1; min-width: 0; }
.mc-input:focus { outline: none; border-color: #4B5568; }
.mc-btn { background: #232936; border: 1px solid #333B4A; border-radius: 9px; padding: 10px 16px; color: #E8EAF0; font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; }
.mc-btn:hover { background: #2C3342; }
.mc-btn-primary { background: #E8EAF0; color: #0F1116; border-color: #E8EAF0; }
.mc-btn-primary:hover { background: #fff; }

.mc-table-wrap { overflow-x: auto; border: 1px solid #262B36; border-radius: 12px; }
.mc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mc-table th { text-align: left; padding: 11px 12px; background: #1A1F28; color: #8891A2; font-weight: 600; border-bottom: 1px solid #262B36; white-space: nowrap; }
.mc-table td { padding: 10px 12px; border-bottom: 1px solid #20252F; color: #D4D9E2; }
.mc-table tr:last-child td { border-bottom: none; }
.mc-actions { display: flex; gap: 5px; flex-wrap: wrap; }
.mc-mini { background: #232936; border: 1px solid #333B4A; border-radius: 7px; padding: 5px 9px; color: #C4CAD6; font-size: 12px; cursor: pointer; }
.mc-mini:hover { background: #2C3342; color: #fff; }
.mc-mini.ok { border-color: #1E5C3E; color: #4ADE80; }
.mc-root button:disabled { opacity: .5; cursor: not-allowed; }
.mc-support-list{display:grid;gap:14px}.mc-support-item{margin:0}.mc-support-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.mc-support-head h3{margin:0}.mc-support-head time{color:#8d95a5;font-size:12px}.mc-support-message{margin:12px 0;padding:14px;border-radius:10px;background:#141820;white-space:pre-wrap;line-height:1.7}.mc-support-reply{margin:10px 0;padding:12px;border-left:3px solid #4ade80;background:#172019}.mc-support-reply p{white-space:pre-wrap}.mc-support-reply small{color:#9ba3b2}.mc-support-item label{display:grid;gap:6px;margin-top:14px;color:#c8cdd7;font-size:13px}.mc-support-reply-input{resize:vertical;min-height:96px}.mc-support-item>[data-support-reply]{margin-top:8px}
.mc-scroll-hint { display:none; }
#mc-user-page { align-self:center; font-size:13px; }
@media (max-width: 720px) {
  .mc-scroll-hint { display:block; margin:8px 0; font-size:12px; color:#A2A9B8; }
  #mc-users-table, #mc-schools-table, #mc-payments-table { min-width:650px; }
  #mc-users-table th:last-child, #mc-schools-table th:last-child, #mc-payments-table th:last-child,
  #mc-users-table td:last-child:not([colspan]), #mc-schools-table td:last-child:not([colspan]), #mc-payments-table td:last-child:not([colspan]) {
    position:sticky; right:0; z-index:1; display:table-cell; background:#171B23; box-shadow:-5px 0 8px #0F111633;
  }
  #mc-users-table td:last-child:not([colspan]) { min-width:112px; max-width:140px; }
  #mc-payments-table td:last-child:not([colspan]) { min-width:104px; }
  .mc-table .mc-mini { min-height:40px; white-space:nowrap; margin:2px; }
  #mc-payments-table td:nth-child(3), #mc-payments-table td:nth-child(4) { white-space:nowrap; }
}

.mc-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; background: #262B36; color: #9098A8; }
.mc-badge.ok { background: #10331F; color: #4ADE80; }
.mc-badge.bad { background: #3A1416; color: #FF7B7B; }
.mc-badge.admin { background: #2A2140; color: #B79CFF; }

.mc-apis { display: grid; gap: 14px; margin-bottom: 20px; }
.mc-key-label { display: block; margin-bottom: 8px; font-weight: 700; }
.mc-key-row { display: flex; align-items: stretch; gap: 8px; }
.mc-key-row input { width: 0; flex: 1; }
.mc-key-row button { flex-shrink: 0; }
.mc-key-state, .mc-key-result, .mc-key-time { margin: 8px 0; word-break: keep-all; overflow-wrap: anywhere; }
.mc-key-state a { color: #A9C4FF; text-decoration: underline; }
.mc-key-help { margin-top: 8px; }
.mc-api button:disabled { opacity: .5; cursor: not-allowed; }
.mc-api-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 15px; }
.mc-form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.mc-api-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.mc-model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.mc-model-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mc-model-label { font-size: 12px; color: #9AA3B2; font-weight: 600; }
.mc-model-field select.mc-input { width: 100%; max-width: 100%; }
@media (max-width: 720px) { .mc-model-grid { grid-template-columns: 1fr; } }
.mc-switch { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #C4CAD6; }
.mc-add-api { border-style: dashed; }
.k-result { font-size: 12px; }

@media (max-width: 720px) {
  .mc-root { flex-direction: column; }
  .mc-side { width: 100%; padding: 12px; border-right: none; border-bottom: 1px solid #262B36; }
  .mc-brand { padding: 0 4px 10px; font-size: 14px; }
  .mc-nav { flex-direction: row; flex: none; overflow-x: auto; padding-bottom: 6px; }
  .mc-nav-group { display:none; }
  .mc-navitem { flex: 0 0 auto; white-space: nowrap; min-height: 44px; padding: 10px; gap: 7px; }
  .mc-navitem i { flex-shrink: 0; }
  .mc-side-foot { flex-direction: row; justify-content: flex-end; border-top: none; padding-top: 4px; }
  .mc-main { padding: 20px 16px; min-width: 0; max-height: none; overflow-y: visible; }
  .mc-form-row { flex-direction: column; }
  .mc-operations-head { flex-direction:column; }
  .mc-operations-refresh { justify-content:flex-start; min-width:0; }
  .mc-operations-grid { grid-template-columns:1fr; }
  .mc-audit-toolbar .mc-input, .mc-audit-toolbar #mc-audit-q, .mc-audit-toolbar select.mc-input, .mc-audit-toolbar input[type="date"].mc-input { width:100%; flex:1 1 100%; }
}

/* ===== 기능 페이지 생성 결과 표시 ===== */
.feature-result { max-width: 860px; width: 100%; margin: 8px auto 12px; flex: 0 0 auto; }
.fr-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.fr-prompt { font-size: 15px; font-weight: 600; color: var(--text); }
.fr-body { background: var(--workspace); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.fr-loading { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; }
.fr-image { width: 100%; max-height: 560px; object-fit: contain; border-radius: 12px; background: #0d0f14; display: block; }
.fr-video { width: 100%; max-height: 560px; border-radius: 12px; background: #000; display: block; }
.fr-frame { width: 100%; height: 460px; border: none; border-radius: 12px; background: #fff; }
.fr-code { background: #0f1116; color: #e6e8ee; border-radius: 12px; padding: 16px; overflow: auto; max-height: 460px; font-size: 13px; line-height: 1.6; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; margin: 0; }
.fr-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fr-note { color: var(--text-muted); font-size: 14px; padding: 12px; }
/* 다중 이미지 그리드 */
.fr-imgs.fr-image-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fr-img-cell { display: block; }
.fr-image-grid .fr-image { max-height: 320px; }

/* ---------- 하단 도크 옵션 pill + 팝오버 ---------- */
.pill-model { cursor: default; opacity: .95; }
.opt-pill-wrap { position: relative; }
.opt-pill { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.opt-pill .opt-label { color: var(--text-muted); }
.opt-pill .opt-value { font-weight: 600; color: var(--text); }
.opt-pill .opt-caret { font-size: 9px; opacity: .55; margin-left: 2px; }
.opt-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 40;
  min-width: 200px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.18));
  padding: 6px; display: none; max-height: 320px; overflow-y: auto;
}
.opt-menu.open { display: block; animation: opt-pop .14s ease; }
@keyframes opt-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.opt-choice {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border: none; background: none; border-radius: 10px; cursor: pointer;
  font-size: 13.5px; color: var(--text); text-align: left;
}
.opt-choice i:first-child { width: 16px; text-align: center; color: var(--text-muted); }
.opt-choice span { flex: 1; }
.opt-choice .opt-check { opacity: 0; color: var(--primary); font-size: 12px; }
.opt-choice:hover { background: var(--side-hover-bg, rgba(0,0,0,.04)); }
.opt-choice.is-active { color: var(--primary); font-weight: 600; }
.opt-choice.is-active .opt-check { opacity: 1; }
.opt-choice.is-active i:first-child { color: var(--primary); }

/* 모델 선택 메뉴 (풍부한 카탈로그 뷰) */
.opt-menu-model { min-width: 320px; max-width: 380px; }
.opt-menu-loading { padding: 14px 12px; color: var(--text-muted); font-size: 13px; text-align: center; }
.cs-model-choice { align-items: flex-start; padding: 10px 12px; }
.cs-model-choice .opt-check { margin-top: 3px; align-self: flex-start; }
.cs-model-main { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cs-model-name { font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cs-model-rec { font-size: 10px; font-weight: 700; color: #fff; background: var(--primary, #4f46e5); padding: 1px 7px; border-radius: 999px; }
.cs-model-desc { font-size: 12px; color: var(--text-muted); font-weight: 400; line-height: 1.4; white-space: normal; }
.cs-model-tags { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-top: 2px; }
.cs-model-badge { font-size: 10.5px; color: var(--text-muted); background: var(--workspace, rgba(0,0,0,.05)); border: 1px solid var(--border); padding: 1px 7px; border-radius: 999px; }
.cs-model-price { font-size: 10.5px; color: var(--text-muted); font-weight: 500; }
.cs-model-choice.is-active .cs-model-name { color: var(--primary); }
.cs-model-choice:disabled { cursor: not-allowed; opacity: .48; background: transparent; }
.cs-model-choice:disabled:hover { background: transparent; }

/* ============================================================
   코드 스튜디오 (좌우 분할 IDE) — Genspark 스타일
   ============================================================ */
.code-studio { display: flex; width: 100%; height: 100%; min-height: 0; }
.code-builder { flex:0 0 auto; padding:9px 12px 8px; border-bottom:1px solid var(--border); background:color-mix(in srgb,var(--primary) 4%,var(--workspace)); }
.code-builder-row { display:flex; align-items:center; gap:6px; min-width:0; }
.code-builder-row + .code-builder-row { margin-top:6px; }
.code-builder-row>b { flex:0 0 88px; color:var(--text-muted); font-size:11px; }
.code-builder-row button { min-height:34px; padding:6px 10px; border:1px solid var(--border); border-radius:10px; background:var(--surface); color:var(--text); font:inherit; font-size:11px; font-weight:750; cursor:pointer; white-space:nowrap; }
.code-builder-row button:hover { border-color:color-mix(in srgb,var(--primary) 50%,var(--border)); }
.code-builder-row button.is-active { border-color:var(--primary); background:color-mix(in srgb,var(--primary) 11%,var(--surface)); color:var(--primary); box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--primary) 18%,transparent); }
.code-builder-row button:focus-visible { outline:3px solid color-mix(in srgb,var(--primary) 30%,transparent); outline-offset:2px; }
.code-builder p { margin:6px 0 0 94px; color:var(--text-muted); font-size:10.5px; line-height:1.4; }
.code-builder p i { color:var(--primary); margin-right:4px; }

/* 대학교 AI-LMS '큰 창 모드' embed: iframe 안에서 사이드바 없이 스튜디오만 꽉 채움 */
.app-shell.studio-embed { min-height: 100vh; height: 100vh; }
.app-shell.studio-embed > .main { height: 100vh; min-height: 0; }
.app-shell.studio-embed .studio,
.app-shell.studio-embed .code-studio { height: 100%; }

/* 대학교 AI-LMS: 학생이 클래스 안에서 AI 사용 시 외곽 테두리만 클래스 컬러로 차별화 (요구사항 #7) */
.studio.studio-lms-framed {
  position: relative;
  border: 4px solid var(--lms-class-color, #397CF6);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lms-class-color, #397CF6) 30%, transparent);
  overflow: hidden;
}
.studio-lms-badge {
  position: absolute;
  top: 10px; right: 14px;
  z-index: 40;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  pointer-events: none;
}
.studio-lms-badge i { font-size: 11px; }

/* 왼쪽: 대화/명령 패널 */
.cs-left {
  display: flex; flex-direction: column; min-height: 0;
  width: 42%; min-width: 340px; max-width: 560px;
  border-right: 1px solid var(--border); background: var(--bg);
}
.cs-left-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border);
}
.cs-left-title { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.cs-conversation { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }

/* 환영/빈 상태 */
.cs-welcome { margin: auto; text-align: center; max-width: 340px; }
.cs-welcome-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 24px; margin: 0 auto 16px; }
.cs-welcome h2 { font-size: 22px; margin-bottom: 8px; }
.cs-welcome p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.cs-samples { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.cs-sample { padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--workspace); color: var(--text); font-size: 13.5px; text-align: left; cursor: pointer; transition: .12s; }
.cs-sample:hover { border-color: var(--blue); color: var(--blue); }

/* 대화 메시지 */
.cs-msg { display: flex; gap: 10px; align-items: flex-start; }
.cs-msg-user { justify-content: flex-end; }
.cs-msg-user .cs-bubble { background: var(--blue); color: #fff; border-radius: 14px 14px 4px 14px; max-width: 85%; }
.cs-msg-ai .cs-bubble { background: var(--workspace); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; max-width: 90%; }
.cs-bubble { padding: 11px 14px; font-size: 14px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.cs-ai-avatar { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.cs-done { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cs-model-tag { font-size: 11px; color: var(--text-muted); background: var(--surface); padding: 2px 8px; border-radius: 999px; font-weight: 500; }
.cs-done-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cs-share-note { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.cs-share-link { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.cs-share-link input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); font-size: 12.5px; color: var(--text); }

/* 왼쪽 하단 고정 도크 */
.cs-dock { flex: 0 0 auto; padding: 12px 16px 16px; background: var(--bg); border-top: 1px solid var(--border); }
.cs-dock-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }

/* 오른쪽: 미리보기/코드 */
.cs-right { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; background: var(--workspace); }
.cs-right-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.cs-tabs { display: flex; gap: 4px; background: var(--surface); padding: 4px; border-radius: 10px; }
.cs-tab { border: none; background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.cs-tab.is-active { background: var(--workspace); color: var(--text); box-shadow: var(--shadow-sm); }
.cs-right-actions { display: flex; gap: 2px; }

.cs-right-body { flex: 1 1 auto; min-height: 0; position: relative; }
.cs-pane { position: absolute; inset: 0; display: none; }
.cs-pane.is-active { display: block; }
.cs-frame { width: 100%; height: 100%; border: 0; background: #fff; }
.cs-preview-empty { width: 100%; height: 100%; display: grid; place-items: center; color: var(--text-muted); text-align: center; }
.cs-preview-empty i { font-size: 34px; opacity: .4; margin-bottom: 12px; display: block; }
.cs-preview-empty p { font-size: 14px; }
.cs-preview-note { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-muted); padding: 24px; text-align: center; }
.cs-code { width: 100%; height: 100%; margin: 0; overflow: auto; padding: 18px; background: #0d1117; color: #e6edf3; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13px; line-height: 1.6; white-space: pre; }
.cs-code code { white-space: pre; }
.code-revision-tools { display:flex; align-items:center; flex-wrap:wrap; gap:6px; margin:0 0 6px; font-size:11px; color:var(--text-muted); }
.code-local-save { display:inline-flex; align-items:center; gap:6px; margin-left:auto; min-height:32px; padding:5px 9px; border:1px solid var(--border); border-radius:9px; background:var(--surface); color:var(--text); font-weight:700; cursor:pointer; white-space:nowrap; }
.code-local-save input { width:17px; height:17px; margin:0; accent-color:var(--primary); }
.code-local-save i { color:var(--primary); }
.code-local-save:focus-within { outline:3px solid color-mix(in srgb,var(--primary) 30%,transparent); outline-offset:2px; }
.cs-code:focus-visible { outline:2px solid var(--blue); outline-offset:-2px; }

/* ===== 유형별 결과물(이미지/영상/문서) ===== */
.cs-result { width: 100%; height: 100%; overflow: auto; }
.cs-note { padding: 24px; color: var(--text-muted); text-align: center; }
.cs-muted { color: var(--text-muted); }

/* 이미지 결과 */
.cs-imgs { width: 100%; height: 100%; display: grid; place-items: center; padding: 20px; box-sizing: border-box; }
.cs-imgs.cs-img-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: center; }
.cs-img-cell { display: block; max-width: 100%; max-height: 100%; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cs-img-cell img { display: block; max-width: 100%; max-height: calc(100vh - 160px); object-fit: contain; border-radius: 12px; }
.cs-img-grid .cs-img-cell img { max-height: 42vh; }

/* 영상 결과 */
.cs-video { width: 100%; height: 100%; max-height: 100%; background: #000; object-fit: contain; }

/* 문서(텍스트) 결과 — 오른쪽 미리보기에 렌더 */
.cs-doc { padding: 32px 40px; max-width: 820px; margin: 0 auto; line-height: 1.75; color: var(--text); }
.cs-doc h1 { font-size: 26px; margin: 18px 0 12px; }
.cs-doc h2 { font-size: 21px; margin: 20px 0 10px; }
.cs-doc h3 { font-size: 17px; margin: 16px 0 8px; }
.cs-doc h4 { font-size: 15px; margin: 14px 0 6px; }
.cs-doc p { margin: 10px 0; font-size: 15px; }
.cs-doc ul, .cs-doc ol { margin: 10px 0 10px 22px; }
.cs-doc li { margin: 4px 0; font-size: 15px; }
.cs-doc code { background: var(--surface); padding: 2px 6px; border-radius: 6px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.cs-doc strong { font-weight: 700; }

/* 반응형: 좁은 화면은 상하 분할 */
@media (max-width: 900px) {
  .code-studio { flex-direction: column; }
  .cs-left { width: 100%; max-width: none; min-width: 0; height: 50%; border-right: 0; border-bottom: 1px solid var(--border); }
  .cs-right { height: 50%; }
}

/* ============================================================
   공개 공유 열람 페이지 (/s/:token)
   ============================================================ */
.shared-wrap { min-height: 100vh; background: var(--workspace, #f5f6f8); display: flex; flex-direction: column; }
.shared-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.shared-brand { font-weight: 800; font-size: 17px; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.shared-logo { width: 28px; height: 28px; border-radius: 8px; background: var(--grad, linear-gradient(135deg,#6366f1,#8b5cf6)); color: #fff; display: grid; place-items: center; font-weight: 900; }
.shared-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 32px 16px 48px; }
.shared-card { width: 100%; max-width: 860px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 6px 30px rgba(0,0,0,.06); overflow: hidden; }
.shared-meta { padding: 26px 28px 18px; border-bottom: 1px solid var(--border); }
.shared-type { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.shared-title { font-size: 22px; margin: 12px 0 6px; }
.shared-prompt { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 6px 0; }
.shared-model { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); background: var(--workspace); border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px; margin-top: 6px; }
.shared-body { padding: 22px 28px; }
.shared-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 12px; }
.shared-images img { width: 100%; border-radius: 12px; border: 1px solid var(--border); display: block; }
.shared-video { width: 100%; border-radius: 12px; background: #000; }
.shared-audio { width: 100%; margin: 28px 0; }
.shared-frame { width: 100%; height: 540px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.shared-code-toggle { margin-top: 14px; }
.shared-code-toggle summary { cursor: pointer; font-weight: 600; color: var(--primary); font-size: 13.5px; }
.shared-code { margin-top: 10px; background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 12px; overflow: auto; max-height: 420px; font-size: 12.5px; line-height: 1.5; }
.shared-doc { font-size: 15px; line-height: 1.75; color: var(--text); }
.shared-doc h1 { font-size: 24px; margin: 18px 0 10px; } .shared-doc h2 { font-size: 20px; margin: 16px 0 8px; }
.shared-doc h3 { font-size: 17px; margin: 14px 0 6px; } .shared-doc h4 { font-size: 15px; margin: 12px 0 6px; }
.shared-doc p { margin: 8px 0; } .shared-doc ul, .shared-doc ol { margin: 8px 0 8px 22px; } .shared-doc li { margin: 4px 0; }
.shared-doc code { background: var(--workspace); padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.shared-actions { display: flex; gap: 10px; padding: 16px 28px 24px; border-top: 1px solid var(--border); }
.shared-footer { color: var(--text-muted); font-size: 12.5px; margin-top: 18px; text-align: center; }
@media (max-width: 640px) { .shared-frame { height: 400px; } .shared-meta, .shared-body, .shared-actions { padding-left: 18px; padding-right: 18px; } }

/* ============================================================
   AI 회의록 (STT) — meeting.tsx
   ============================================================ */
.mtg-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 20px 40px; }
.mtg-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.mtg-head-left { display: flex; align-items: center; gap: 14px; }
.mtg-logo { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, #16A36A, #0EA5A0); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; box-shadow: 0 6px 16px rgba(22,163,106,.32); }
.mtg-title { font-size: 20px; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.mtg-sub { font-size: 12.5px; color: var(--text-muted); margin: 2px 0 0; }
.mtg-head-right { display: flex; align-items: center; gap: 12px; }
.mtg-timer { font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 800; letter-spacing: .02em; color: var(--text); }
.mtg-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); }
.mtg-chip i { font-size: 8px; }
.mtg-chip-idle { color: var(--text-muted); }
.mtg-chip-ready { color: #16A36A; border-color: color-mix(in srgb, #16A36A 40%, var(--border)); background: color-mix(in srgb, #16A36A 10%, transparent); }
.mtg-chip-rec { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.mtg-chip-rec i { animation: mtgBlink 1s infinite; }
.mtg-chip-paused { color: #F97316; }
.mtg-chip-done { color: var(--blue); }
.mtg-chip-denied { color: var(--danger); }
@keyframes mtgBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.mtg-titlebar { display: flex; align-items: center; gap: 10px; background: var(--workspace, #fff); border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; margin-bottom: 16px; }
.mtg-titlebar > i { color: var(--text-muted); font-size: 13px; }
.mtg-title-input { flex: 1; border: none; background: transparent; padding: 13px 0; font-size: 15px; font-weight: 600; color: var(--text); outline: none; }
.mtg-title-input::placeholder { color: var(--text-muted); font-weight: 500; }

.mtg-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mtg-panel { background: var(--workspace, #fff); border: 1px solid var(--border); border-radius: var(--radius-card, 16px); padding: 16px; display: flex; flex-direction: column; min-height: 520px; }
.mtg-panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 700; margin-bottom: 12px; }
.mtg-panel-head > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.mtg-panel-head i { color: var(--primary); }
.mtg-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; color: var(--danger); }
.mtg-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); animation: mtgBlink 1s infinite; }

.mtg-wave-box { position: relative; height: 120px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 60%, transparent); border: 1px solid var(--border); overflow: hidden; margin-bottom: 12px; }
.mtg-wave { width: 100%; height: 100%; display: block; }
.mtg-wave-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 12.5px; }
.mtg-wave-hint i { font-size: 22px; opacity: .5; }

.mtg-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mtg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px; border-radius: 11px; font-size: 13.5px; font-weight: 700; border: 1px solid var(--border); cursor: pointer; transition: transform .05s, background .15s, opacity .15s; background: var(--workspace, #fff); color: var(--text); }
.mtg-btn:active { transform: scale(.98); }
.mtg-btn:disabled { opacity: .45; cursor: not-allowed; }
.mtg-btn-prepare { background: color-mix(in srgb, #16A36A 12%, transparent); color: #16A36A; border-color: color-mix(in srgb, #16A36A 35%, var(--border)); }
.mtg-btn-record { grid-column: 1 / -1; background: var(--danger); color: #fff; border-color: var(--danger); font-size: 14.5px; padding: 13px; }
.mtg-btn-record:not(:disabled):hover { background: color-mix(in srgb, var(--danger) 88%, #000); }
.mtg-btn-record i { color: #fff; }
.mtg-btn-stop { background: #1F2430; color: #fff; border-color: #1F2430; }
.mtg-btn-ghost { background: transparent; }
.mtg-btn-ghost:not(:disabled):hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.mtg-btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.mtg-btn-primary:not(:disabled):hover { background: color-mix(in srgb, var(--primary) 88%, #000); }
.mtg-btn-accent { background: #8C5EFF; color: #fff; border-color: #8C5EFF; }
.mtg-btn-accent:not(:disabled):hover { background: color-mix(in srgb, #8C5EFF 88%, #000); }

.mtg-transcript-head { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px; }
.mtg-transcript-head > span { display: inline-flex; align-items: center; gap: 7px; }
.mtg-mini { border: 1px solid var(--border); background: transparent; color: var(--text-muted); border-radius: 8px; padding: 4px 9px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.mtg-mini:hover { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.mtg-transcript { flex: 1; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 14px; font-size: 14.5px; line-height: 1.75; min-height: 150px; background: color-mix(in srgb, var(--bg) 40%, transparent); }
.mtg-final { color: var(--text); white-space: pre-wrap; word-break: break-word; }
.mtg-interim { color: var(--text-muted); font-style: italic; }
.mtg-audio { width: 100%; margin-top: 12px; }

.mtg-result-tabs { display: inline-flex; gap: 4px; background: color-mix(in srgb, var(--bg) 70%, transparent); border-radius: 10px; padding: 3px; }
.mtg-tab { border: none; background: transparent; padding: 6px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-muted); cursor: pointer; }
.mtg-tab.active { background: var(--workspace, #fff); color: var(--primary); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.mtg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.mtg-actions-3 { grid-template-columns: 1fr 1fr 1fr; }
.mtg-actions-3 .mtg-btn { font-size: 12.5px; padding: 10px 8px; }
.mtg-btn-neutral { background: color-mix(in srgb, var(--text) 6%, transparent); color: var(--text); border-color: var(--border); }
.mtg-btn-neutral:not(:disabled):hover { background: color-mix(in srgb, var(--text) 12%, transparent); }
.mtg-result { flex: 1; overflow-y: auto; border: 1px solid var(--border); border-radius: 12px; padding: 18px; min-height: 200px; background: color-mix(in srgb, var(--bg) 40%, transparent); }
.mtg-original-pre { margin: 0; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; font-family: inherit; font-size: 14px; line-height: 1.85; color: var(--text); }
.mtg-result-body { font-size: 14.5px; line-height: 1.8; color: var(--text); }
.mtg-result-body h2 { font-size: 17px; font-weight: 800; margin: 18px 0 10px; }
.mtg-result-body h3 { font-size: 15px; font-weight: 800; margin: 16px 0 8px; color: var(--primary); }
.mtg-result-body h2:first-child, .mtg-result-body h3:first-child { margin-top: 0; }
.mtg-result-body p { margin: 0 0 10px; }
.mtg-result-body ul { margin: 0 0 12px; padding-left: 20px; }
.mtg-result-body li { margin: 4px 0; }
.mtg-result-body ul.mtg-checklist { list-style: none; padding-left: 4px; }
.mtg-result-body code { background: color-mix(in srgb, var(--primary) 12%, transparent); padding: 1px 6px; border-radius: 5px; font-size: 13px; }

.mtg-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--text-muted); padding: 40px 20px; height: 100%; }
.mtg-empty i { font-size: 30px; opacity: .4; }
.mtg-empty p { font-size: 13.5px; margin: 0; }

.mtg-file-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.mtg-file-actions-4 { grid-template-columns: 1fr 1fr; }
.mtg-file-actions-4 .mtg-btn { font-size: 12.5px; padding: 10px 10px; }
@media (max-width: 520px) { .mtg-file-actions-4 { grid-template-columns: 1fr; } .mtg-actions-3 { grid-template-columns: 1fr; } }

.mtg-overlay { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(3px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.mtg-overlay p { font-size: 15px; font-weight: 700; color: var(--text); }
.mtg-spinner { width: 46px; height: 46px; border: 4px solid color-mix(in srgb, var(--primary) 25%, transparent); border-top-color: var(--primary); border-radius: 50%; animation: mtgSpin .8s linear infinite; }
@keyframes mtgSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .mtg-body { grid-template-columns: 1fr; }
  .mtg-panel { min-height: auto; }
  .mtg-transcript { min-height: 200px; }
}

/* ================= AI 시트 (스프레드시트) ================= */
.sht-wrap { display: grid; grid-template-columns: 765px 1fr; height: 100%; min-height: 0; background: var(--bg); overflow: hidden; }
.sht-wrap.full { position: fixed; inset: 0; z-index: 60; grid-template-columns: 1fr; }
.sht-wrap.full .sht-left { display: none; }

/* ---- 좌측 요청 패널 ---- */
.sht-left { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; border-right: 1px solid var(--border); background: var(--workspace); overflow: hidden; min-height: 0; }
/* 상단 소개/가이드는 고정, 대화 로그(sht-chat)만 스크롤, 입력 도크(sht-dock)는 항상 하단 고정 */
.sht-left-head, .sht-points, .sht-dock { flex: none; }
/* 입력 도크: 대화가 많아도 항상 좌측 패널 최하단에 고정되어 밀려나지 않음 */
.sht-dock { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); background: var(--workspace); }
.sht-left-head { display: flex; align-items: center; gap: 11px; }
.sht-logo { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #16A36A, #12B981); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.sht-title { font-size: 18px; font-weight: 800; margin: 0; color: var(--text); }
.sht-sub { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.sht-points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sht-points li { font-size: 12.5px; color: var(--text-muted); line-height: 1.55; display: flex; gap: 8px; }
.sht-points li i { color: #16A36A; margin-top: 3px; flex: none; }
.sht-points b { color: var(--text); font-weight: 700; }

.sht-chat { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; padding: 4px 2px; }
.sht-msg { display: flex; gap: 8px; font-size: 12.5px; line-height: 1.5; padding: 9px 11px; border-radius: 11px; }
.sht-msg i { margin-top: 2px; flex: none; opacity: .7; }
.sht-msg-user { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--text); align-self: flex-end; max-width: 92%; }
.sht-msg-ai { background: color-mix(in srgb, var(--text) 5%, transparent); color: var(--text); max-width: 96%; }

.sht-file-chip { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); font-size: 12px; color: var(--text); }
.sht-file-chip i { color: #16A36A; }
.sht-file-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sht-file-x { border: none; background: transparent; color: var(--text-muted); cursor: pointer; padding: 2px; }
.sht-file-x:hover { color: var(--danger, #E14D52); }

.sht-composer { border: 1px solid var(--border); border-radius: 14px; background: var(--bg); padding: 10px 12px; }
.sht-composer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

/* ---- AI 시트 모델 선택 드롭다운 ---- */
.sht-model-select { position: relative; }
.sht-model-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--workspace); color: var(--text); border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 700; cursor: pointer; max-width: 260px; }
.sht-model-btn:hover { border-color: #16A36A; }
.sht-model-btn > i:first-child { color: #16A36A; }
.sht-model-btn #sht-model-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sht-model-btn .fa-chevron-down { font-size: 10px; color: var(--text-muted); margin-left: 2px; }
.sht-model-menu { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 40; width: 320px; max-height: 340px; overflow-y: auto; background: var(--workspace); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.18); padding: 6px; }
.sht-model-loading { padding: 14px; font-size: 12.5px; color: var(--text-muted); text-align: center; }
.sht-model-item { position: relative; display: block; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 9px; padding: 9px 30px 9px 11px; cursor: pointer; color: var(--text); }
.sht-model-item:hover { background: color-mix(in srgb, #16A36A 8%, transparent); }
.sht-model-item.is-active { background: color-mix(in srgb, #16A36A 12%, transparent); border-color: color-mix(in srgb, #16A36A 30%, transparent); }
.sht-model-item-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sht-model-item-name { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.sht-model-rec { font-size: 10px; font-weight: 700; color: #fff; background: #16A36A; border-radius: 5px; padding: 1px 5px; }
.sht-model-price { font-size: 11px; color: #16A36A; font-weight: 700; }
.sht-model-item-desc { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; line-height: 1.45; }
.sht-model-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.sht-model-tag { font-size: 10px; color: var(--text-muted); background: color-mix(in srgb, var(--text) 7%, transparent); border-radius: 5px; padding: 1px 6px; }
.sht-model-check { position: absolute; right: 11px; top: 12px; color: #16A36A; font-size: 12px; opacity: 0; }
.sht-model-item.is-active .sht-model-check { opacity: 1; }
.sht-mode { font-size: 12px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; }
.sht-mode i { color: #16A36A; }
.sht-balance { font-size: 11px; color: var(--text-muted); }
.sht-input { width: 100%; border: none; background: transparent; resize: none; font-size: 13px; color: var(--text); outline: none; font-family: inherit; line-height: 1.5; }
.sht-composer-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.sht-composer-left { display: flex; align-items: center; gap: 10px; }
.sht-icon-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border); background: var(--workspace); color: var(--text); cursor: pointer; }
.sht-icon-btn:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.sht-conn { font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.sht-send { width: 34px; height: 34px; border-radius: 10px; border: none; background: #16A36A; color: #fff; cursor: pointer; font-size: 14px; }
.sht-send:hover { background: #12905d; }
.sht-send:disabled { opacity: .5; cursor: default; }

.sht-summary { flex: none; font-size: 12px; color: var(--text-muted); line-height: 1.6; background: color-mix(in srgb, #16A36A 8%, transparent); border: 1px solid color-mix(in srgb, #16A36A 20%, transparent); border-radius: 10px; padding: 10px 12px; max-height: 18vh; overflow-y: auto; }
.sht-file-chip { flex: none; }
.sht-summary i { color: #16A36A; margin-right: 5px; }

/* ---- 우측 스프레드시트 ---- */
.sht-right { display: flex; flex-direction: column; min-width: 0; background: var(--workspace); }
.sht-topbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.sht-topbar-left { display: flex; align-items: center; gap: 10px; }
.sht-file-open { background: #16A36A; color: #fff; border: none; padding: 7px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.sht-file-open:hover { background: #12905d; }
.sht-export { position: relative; }
.sht-export-btn { background: var(--bg); color: var(--text); border: 1px solid var(--border); padding: 7px 12px; border-radius: 8px; font-size: 12.5px; cursor: pointer; }
.sht-export-menu { position: absolute; top: 38px; left: 0; z-index: 20; background: var(--workspace); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 8px 28px rgba(0,0,0,.15); padding: 6px; min-width: 210px; }
.sht-export-menu button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; border: none; background: transparent; padding: 9px 11px; border-radius: 7px; font-size: 12.5px; color: var(--text); cursor: pointer; }
.sht-export-menu button:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.sht-export-menu i { width: 16px; color: #16A36A; }
.sht-fullscreen { background: transparent; border: 1px solid var(--border); color: var(--text); padding: 7px 12px; border-radius: 8px; font-size: 12.5px; cursor: pointer; }

.sht-ribbon-tabs { display: flex; gap: 2px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg); }
.sht-rtab { font-size: 12.5px; padding: 8px 12px; color: var(--text-muted); cursor: default; border-bottom: 2px solid transparent; }
.sht-rtab.active { color: #16A36A; border-bottom-color: #16A36A; font-weight: 700; }

.sht-ribbon { display: flex; align-items: stretch; gap: 0; padding: 8px 12px; border-bottom: 1px solid var(--border); background: var(--workspace); overflow-x: auto; }
.sht-ribbon-group { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 10px; position: relative; padding-bottom: 16px; }
.sht-ribbon-sep { width: 1px; background: var(--border); margin: 2px 0; }
.sht-ribbon-label { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 10px; color: var(--text-muted); }
.sht-tool { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--text); cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.sht-tool:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); border-color: var(--border); }
.sht-tool-danger:hover { background: color-mix(in srgb, var(--danger, #E14D52) 12%, transparent); color: var(--danger, #E14D52); }

.sht-formula-bar { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--border); background: var(--workspace); }
.sht-cellref { width: 80px; text-align: center; font-size: 12.5px; color: var(--text); padding: 6px 8px; border-right: 1px solid var(--border); }
.sht-fx { padding: 0 10px; color: var(--text-muted); font-style: italic; border-right: 1px solid var(--border); font-size: 13px; }
.sht-formula-input { flex: 1; border: none; background: transparent; padding: 7px 12px; font-size: 13px; color: var(--text); outline: none; font-family: inherit; }

/* ---- 그리드 시인성 강화용 변수 (테마별 대비 최적화) ---- */
.sht-right {
  --sht-gridline: #C7CDD9;        /* 격자선(뚜렷) */
  --sht-cell-bg: #FFFFFF;         /* 데이터 셀 배경 */
  --sht-cell-alt: #F7F9FC;        /* 짝수 행 얼룩무늬 */
  --sht-head-bg: #EEF1F6;         /* 행/열 헤더 배경 */
  --sht-head-text: #47506B;       /* 헤더 글자 */
  --sht-head-line: #B4BCCC;       /* 헤더 경계선(진하게) */
  --sht-cell-text: #1B2233;       /* 셀 글자(진한 대비) */
  --sht-hover: #E8F5EE;           /* hover 하이라이트 */
  --sht-sel: #16A36A;             /* 선택 강조 */
  --sht-sel-fill: rgba(22,163,106,.10);
  --sht-headhi: rgba(22,163,106,.18); /* 선택 셀의 행/열 헤더 강조 */
}
[data-theme="dark"] .sht-right {
  --sht-gridline: #3A4152;
  --sht-cell-bg: #1C2130;
  --sht-cell-alt: #20263A;
  --sht-head-bg: #2A3142;
  --sht-head-text: #B9C2D6;
  --sht-head-line: #454E63;
  --sht-cell-text: #EAEEF7;
  --sht-hover: #223b30;
  --sht-sel: #29C084;
  --sht-sel-fill: rgba(41,192,132,.16);
  --sht-headhi: rgba(41,192,132,.30);
}

.home-title { word-break: keep-all; overflow-wrap: break-word; }
.topbar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cs-chat-answer { margin-top: 12px; line-height: 1.7; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .home-title { font-size: 24px; }
  .topbar { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .topbar-title { font-size: 13px; }
  .topbar .top-icon { width: 30px; min-width: 30px; }
  .launch-toolbar { gap:4px; }
  .launch-tool { width:32px; height:32px; border-radius:10px; font-size:14px; }
  .launch-tool-badge { right:2px; bottom:2px; }
  .launch-modal { padding:8px; }
  .launch-modal-card { width:calc(100vw - 16px); max-height:calc(100dvh - 16px); border-radius:19px; }
  .launch-modal-head { padding:14px 15px 12px; }
  .launch-modal-head h2 { font-size:17px; }
  .launch-panel { padding:16px; }
  .launch-qr-frame { width:min(274px,76vw); padding:10px; border-radius:18px; }
  .launch-guide-grid { grid-template-columns:1fr; }
  .launch-scan-tip { display:none; }
  .cs-right-head { flex-wrap: wrap; gap: 6px; padding: 8px; }
  .cs-right-actions { margin-left: auto; }
  .cs-tab { padding: 7px 9px; }
}
.sht-grid-scroll { flex: 1; overflow: auto; position: relative; background: var(--sht-cell-bg); }
.sht-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
/* 모든 칸에 오른쪽/아래 격자선을 그려 칸 구분을 또렷하게 */
.sht-grid th, .sht-grid td { border-right: 1px solid var(--sht-gridline); border-bottom: 1px solid var(--sht-gridline); }
.sht-grid thead th { position: sticky; top: 0; z-index: 3; background: var(--sht-head-bg); color: var(--sht-head-text); font-weight: 700; height: 30px; text-align: center; font-size: 12px; border-bottom: 2px solid var(--sht-head-line); }
.sht-corner { position: sticky; left: 0; top: 0; z-index: 5 !important; width: 46px; min-width: 46px; background: var(--sht-head-bg); border-right: 2px solid var(--sht-head-line) !important; }
.sht-colh { user-select: none; }
.sht-colh.hl { background: var(--sht-headhi); color: var(--sht-sel); }
.sht-rowh { position: sticky; left: 0; z-index: 2; background: var(--sht-head-bg); color: var(--sht-head-text); width: 46px; min-width: 46px; text-align: center; font-weight: 700; font-size: 12px; border-right: 2px solid var(--sht-head-line); }
.sht-rowh.hl { background: var(--sht-headhi); color: var(--sht-sel); }
.sht-cell { height: 30px; padding: 3px 9px; color: var(--sht-cell-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; cursor: cell; background: var(--sht-cell-bg); }
.sht-cell.sht-multiline { white-space: pre-wrap; overflow-wrap: anywhere; }
.sht-formula-input { resize: none; }
.sht-grid:focus-visible { outline: 2px solid #16a36a; outline-offset: -2px; }
.sht-cell-edit { resize: none; }
/* 짝수 행 얼룩무늬 — 값이 있든 없든 모든 셀에 적용 */
.sht-grid tbody tr:nth-child(even) .sht-cell { background: var(--sht-cell-alt); }
.sht-cell:hover { background: var(--sht-hover); }
.sht-cell.b { font-weight: 700; }
.sht-cell.a-left { text-align: left; }

/* ============================================================
   스마트폰 전용 사용성 계층
   데스크톱 계약은 유지하고 640px 이하에서만 엄지손가락 동선으로 전환한다.
   ============================================================ */
.mobile-bottom-nav,.mobile-studio-switch,.mobile-nav-backdrop,.sidebar-mobile-actions { display:none; }
@media (max-width:640px) {
  :root { --mobile-nav-h:64px; --sidebar-w:0px; }
  html,body { width:100%; max-width:100%; overflow-x:hidden; }
  body.mobile-nav-open { overflow:hidden; }
  .app-shell { width:100%; min-height:100dvh; }
  .main { width:100%; min-height:0; padding-bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom)); }
  .topbar { height:48px; min-height:48px; padding:0 10px; border-bottom:1px solid var(--border); }
  .topbar .topbar-secondary { display:none; }
  .topbar .mobile-only { display:grid; }
  .topbar-title { font-size:14px; }
  .content { padding:0 12px 16px; }

  /* 폭을 빼앗던 세로 막대는 필요할 때만 여는 큰 터치 메뉴로 전환 */
  .sidebar { position:fixed; inset:0 auto 0 0; width:min(82vw,300px); height:100dvh; z-index:120; align-items:stretch; transform:translateX(-105%); transition:transform .22s ease; box-shadow:18px 0 50px rgba(0,0,0,.22); }
  .sidebar.mobile-open { transform:translateX(0); }
  .sidebar-brand { justify-content:start; grid-template-columns:44px 1fr; padding:14px 18px 10px; }
  .sidebar-brand::after { content:"세종AI인재개발원 LMS시스템"; margin-left:12px; font-size:13px; font-weight:850; color:var(--text); white-space:nowrap; }
  .sidebar-scroll { align-items:stretch; padding:4px 12px 18px; gap:2px; }
  .nav-section { align-items:stretch; margin-top:8px; padding-top:8px; }
  .nav-section-title { padding:5px 10px; text-align:left; font-size:10px; }
  .nav-item,.sidebar-new { width:100%; min-height:46px; padding:9px 12px; flex-direction:row; justify-content:flex-start; gap:13px; border-radius:12px; font-size:14px; text-align:left; }
  .nav-item i,.sidebar-new i { width:24px; font-size:18px; text-align:center; }
  .nav-item span { max-width:none; }
  .ai-human-nav { min-height:46px; align-items:center; }
  .ai-human-nav>img { width:40px; height:40px; }
  .sidebar-footer { justify-items:stretch; gap:8px; padding:10px 12px calc(14px + env(safe-area-inset-bottom)); border-top:1px solid var(--border); }
  .sidebar-mobile-actions { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
  .sidebar-mobile-actions button,.sidebar-mobile-actions a { min-height:44px; display:flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--border); border-radius:11px; background:var(--surface); color:var(--text); font:inherit; font-size:12px; font-weight:750; }
  .sidebar-avatar { width:42px; height:42px; }
  .member-star-orbit { width:58px; height:58px; justify-self:center; }
  .member-orbit-star { transform:translate(-50%,-50%) rotate(var(--member-star-angle)) translateY(-27px) rotate(calc(-1 * var(--member-star-angle))); }
  .mobile-nav-backdrop { position:fixed; inset:0; z-index:110; border:0; background:rgba(8,13,25,.48); backdrop-filter:blur(2px); }
  .mobile-nav-backdrop.show { display:block; }

  .mobile-bottom-nav { position:fixed; left:0; right:0; bottom:0; z-index:90; height:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom)); padding:5px 7px env(safe-area-inset-bottom); display:grid; grid-template-columns:repeat(5,1fr); align-items:start; border-top:1px solid var(--border); background:color-mix(in srgb,var(--workspace) 94%,transparent); backdrop-filter:blur(16px); box-shadow:0 -8px 28px rgba(15,23,42,.08); }
  .mobile-bottom-nav a,.mobile-bottom-nav button { min-width:0; min-height:52px; border:0; border-radius:12px; background:transparent; color:var(--text-muted); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font:inherit; font-size:10px; font-weight:700; }
  .mobile-bottom-nav i { font-size:18px; }
  .mobile-bottom-nav .active { color:var(--primary); background:color-mix(in srgb,var(--primary) 9%,transparent); }
  .mobile-bottom-nav .mobile-create { width:52px; min-width:52px; height:52px; margin:-14px auto 0; border-radius:18px; background:var(--text); color:var(--workspace); box-shadow:0 7px 20px rgba(15,23,42,.2); }
  .mobile-bottom-nav .mobile-create i { font-size:20px; }
  .mobile-bottom-nav .mobile-create span { font-size:9px; }
  .profile-menu { left:12px; right:12px; bottom:calc(var(--mobile-nav-h) + 10px + env(safe-area-inset-bottom)); width:auto; max-height:70dvh; overflow:auto; }
  .member-star-modal { padding:8px; }
  .member-star-card { width:min(680px,calc(100vw - 16px)); max-height:calc(100dvh - 16px); border-radius:19px; }
  .member-star-card>header { padding:15px 16px 12px; }
  .member-star-card h2 { font-size:19px; }
  .member-star-intro { margin:13px 16px; }
  .member-star-progress { margin:0 16px; }
  .member-star-card h3 { margin:17px 16px 8px; }
  .member-star-rule-list,.member-star-benefit-list { grid-template-columns:1fr; padding:0 16px; }
  .member-star-rule p { min-height:0; }
  .member-star-post-section { margin:17px 16px 16px; }

  /* 홈: 한 화면에서 질문, 8개 핵심 기능, 교육과 LMS까지 도달 */
  .content:has(.home-hero) { padding:0 12px 8px; }
  .home-hero { margin:10px auto 0; padding:0; }
  .home-title { margin:0 0 11px; font-size:22px; }
  .home-institute-plaque { width:min(60%, 420px); margin:0 auto 17px; border-radius:10px; overflow:visible; }
  .home-institute-plaque::before { inset:-20% -4%; filter:blur(13px); }
  .home-institute-plaque::after { filter:blur(10px); box-shadow:0 -10px 21px #fff4d87d, 0 12px 23px #a7742e52; }
  .home-institute-plaque img { border-radius:8px; box-shadow:0 2px 1px #fff9, 0 3px 7px #17100a8c, 0 12px 17px #39220a57; }
  .prompt-box { padding:11px 12px 9px; border-radius:18px; }
  .prompt-textarea { min-height:42px; max-height:96px; font-size:14px; line-height:1.45; }
  .prompt-toolbar { flex-wrap:nowrap; margin-top:5px; }
  .prompt-toolbar .home-optional { display:none; }
  .prompt-toolbar .pill-dark { height:38px; margin-left:auto; padding:0 15px; }
  .cat-groups { margin:15px auto 0; }
  .cat-row { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px 4px; overflow:visible; padding:0; }
  .cat-row .cat-group,.cat-row .cat-items { display:contents; }
  .cat-row .cat-group-content .cat-items,.cat-row .cat-group-lecture .cat-items,.cat-row .cat-group-portfolio .cat-items { width:auto; max-width:none; overflow:visible; padding:0; }
  .cat-group-title { display:none; }
  .cat-item { width:auto; min-width:0; min-height:56px; justify-content:center; gap:4px; border-radius:12px; background:var(--surface); }
  .cat-item .cat-ic-flat { font-size:19px; }
  .cat-item .cat-label { max-width:100%; font-size:10px; overflow:hidden; text-overflow:ellipsis; }
  .ai-human-cat { min-height:56px; }
  .ai-human-face>img { width:38px; height:38px; border-radius:10px; }
  .academy-home-banner { width:100%; min-height:64px; margin:0 0 12px; padding:10px 12px; grid-template-columns:38px 1fr auto; gap:10px; border-radius:14px; }
  .academy-home-banner::before { background-position:64% center; }
  .academy-home-banner::after { background:linear-gradient(90deg,rgba(5,17,39,.98),rgba(8,24,51,.88)); }
  .academy-home-icon { width:38px; height:38px; border-radius:11px; font-size:16px; }
  .academy-home-banner span,.academy-home-banner p { display:none; }
  .academy-home-banner h2 { margin:0; font-size:14px; line-height:1.3; }
  .academy-home-banner>a { grid-column:auto; padding:9px 11px; font-size:0; }
  .academy-home-banner>a::before { content:"시작"; font-size:12px; }
  .academy-home-banner>a i { font-size:11px; }
  .lms-links { grid-template-columns:1fr;gap:9px;width:calc(100% - 24px);margin:14px auto 0;padding:0; }
  .lms-btn { min-height:93px;border-radius:14px; }
  .lms-btn-content { min-height:93px;padding:12px 18px;gap:3px; }
  .lms-btn-content strong { font-size:18px; }.lms-btn-content em { font-size:11px; }.lms-btn-content i { display:none; }
  .creator-starter { margin:0;padding:0;border-radius:0; }
  .creator-starter-head { display:block;margin-bottom:10px; }.creator-starter-head h2 { font-size:14px; }.creator-starter-head p { margin-top:3px;font-size:10px; }.creator-starter-count { margin-top:8px;padding:6px 9px;font-size:10px; }
  .creator-special-links { margin:0 0 12px;padding:8px;border-radius:12px; }.creator-special-groups { min-width:820px; }.creator-special-link { min-height:42px;gap:5px;padding:6px; }.creator-special-link span:last-child { font-size:10px; }.creator-special-logo { width:24px;height:24px;border-radius:7px;font-size:7px; }
  .creator-category-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:7px; }.creator-category { border-radius:12px; }.creator-category summary { grid-template-columns:29px minmax(0,1fr) auto 9px;gap:6px;min-height:60px;padding:8px; }.creator-category-icon { width:29px;height:29px;border-radius:9px;font-size:13px; }.creator-category-copy strong { font-size:11px; }.creator-category-copy small { font-size:9px; }.creator-category-count { min-width:18px;height:18px;font-size:9px; }.creator-category-menu { padding:8px; }.creator-resource-list { grid-template-columns:1fr;max-height:300px;gap:5px; }.creator-resource { padding:6px; }.creator-resource-tooltip { display:none; }
  .home-divider { display:none; }
  .content-app-store { display:block; margin:20px 0 0; padding:0 0 calc(var(--mobile-nav-h) + 24px); }
  .content-app-store-head { align-items:center; margin-bottom:12px; }
  .content-app-store h2 { font-size:19px; }
  .content-app-store-head>strong { font-size:10px; }
  .content-app-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .content-app-card { border-radius:14px; }
  .content-app-visual { height:92px; padding:10px; }
  .content-app-visual>i { width:36px; height:36px; border-radius:10px; font-size:16px; }
  .content-app-visual>span { padding:4px 6px; font-size:7px; }
  .content-app-info { min-height:76px; padding:10px; gap:8px; }
  .content-app-info h3 { font-size:12px; }
  .content-app-info>span { font-size:10px; }

  /* 새 작업은 중앙 모달 대신 하단 시트 */
  #new-task-menu .card { top:auto !important; bottom:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom)); transform:translateX(-50%) !important; width:100% !important; max-width:none; border-radius:22px 22px 0 0; padding:18px !important; }
  #new-task-menu .suggest-grid { grid-template-columns:repeat(3,1fr) !important; gap:8px; }
  #new-task-menu .suggest-card { padding:11px 8px; text-align:center; }
  #new-task-menu .suggest-icon { width:36px; height:36px; margin:0 auto 7px; }
  #new-task-menu .suggest-card strong { font-size:12px; }

  /* 제작 화면: 상하로 두 화면을 쌓지 않고 대화/결과 중 하나만 표시 */
  .app-shell:has(.code-studio) { height:100dvh; }
  .content:has(.code-studio) { min-height:0; }
  .code-studio { position:relative; flex-direction:column; height:100%; }
  .mobile-studio-switch { flex:0 0 40px; display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px 8px; border-bottom:1px solid var(--border); background:var(--workspace); }
  .mobile-studio-switch button { border:0; border-radius:9px; background:transparent; color:var(--text-muted); font:inherit; font-size:12px; font-weight:750; }
  .mobile-studio-switch button.is-active { background:var(--surface); color:var(--text); }
  .cs-left { flex:1 1 auto; width:100%; max-width:none; min-width:0; height:auto; border:0; }
  .cs-right { display:none; flex:1 1 auto; height:auto; min-height:0; }
  .code-studio.mobile-result .cs-left { display:none; }
  .code-studio.mobile-result .cs-right { display:flex; }
  .cs-left-head { min-height:42px; padding:7px 12px; }
  .cs-left-head .pill-model { display:none; }
  .cs-left-title { font-size:14px; }
  .cs-conversation { padding:10px 12px; gap:9px; }
  .cs-welcome { max-width:100%; }
  .cs-welcome-icon { width:42px; height:42px; margin-bottom:8px; border-radius:13px; font-size:18px; }
  .cs-welcome h2 { margin:0 0 7px; font-size:19px; }
  .cs-welcome p { display:none; }
  .cs-samples { display:grid; grid-template-columns:1fr; gap:6px; margin-top:8px; }
  .cs-sample { min-height:38px; padding:8px 11px; font-size:12px; }
  .cs-sample:nth-child(n+3) { display:none; }
  .cs-dock { padding:7px 10px 8px; }
  .chat-memory { padding:0 0 5px; }
  .chat-memory-head>span,.chat-memory details,.chat-memory small { display:none; }
  .chat-memory-head { justify-content:flex-end; }
  .chat-memory-head .btn { min-height:32px; padding:5px 10px; font-size:11px; }
  .chat-memory-controls { flex-wrap:nowrap; gap:5px; overflow-x:auto; }
  .chat-memory-controls label { flex:1 0 135px; font-size:0; }
  .chat-memory-controls select { width:100%; min-height:34px; max-width:none; font-size:11px; }
  .cs-dock-tools { flex-wrap:nowrap; gap:6px; overflow-x:auto; padding:1px 0 4px; margin-bottom:3px; scrollbar-width:none; }
  .cs-dock-tools::-webkit-scrollbar { display:none; }
  .cs-dock-tools .opt-pill-wrap { flex:0 0 auto; }
  .cs-dock-tools .pill { height:34px; padding:0 10px; font-size:11px; }
  .cs-dock-tools .opt-label { display:none; }
  .cs-dock .prompt-box { padding:9px 10px 7px; }
  .cs-dock .prompt-textarea { min-height:38px; max-height:82px; }
  .cs-dock .prompt-toolbar .pill:not(.pill-round),.cs-dock .prompt-toolbar>.top-icon { display:none; }
  .cs-right-head { flex:0 0 42px; flex-wrap:nowrap; padding:5px 8px; }
  .cs-tab { min-height:32px; padding:5px 9px; font-size:11px; }
  .cs-right-actions .top-icon { width:34px; height:34px; }
  .studio[data-type="app"] .cs-right-head { flex:0 0 auto; flex-wrap:wrap; }
  .studio[data-type="app"] .cs-right-actions { margin-left:auto; }
  .studio[data-type="app"] .cs-right-actions .top-icon { width:40px; height:40px; }
  .cs-doc { padding:16px 14px; }
  .cs-doc p,.cs-doc li { font-size:14px; }
  .studio[data-type="image"] .cs-dock:after { display:none; }
  .image-references { max-height:92px; }

  /* 일반 카드/목록 페이지도 뷰포트 안에서 내부 스크롤 */
  .lms-app { height:calc(100dvh - 48px - var(--mobile-nav-h)); overflow-y:auto; padding:10px 10px 18px; }
  .lms-header { flex-direction:row; align-items:center; gap:8px; padding:0; }
  .lms-logo { width:38px; height:38px; }
  .lms-h1 { font-size:16px; }
  .lms-sub { display:none; }
  .lms-header-right { margin-left:auto; gap:5px; }
  .lms-role-chip { font-size:10px; padding:4px 7px; }
  .lms-panel { padding:13px; border-radius:13px; }
  .lms-entry { gap:10px; }
  .lms-entry-actions { grid-template-columns:1fr 1fr; gap:8px; }
  .lms-panel>.lms-muted,.lms-course-desc,.lms-ai-intro { display:none; }
  .lms-org-list,.lms-course-grid { grid-template-columns:1fr; gap:8px; }
  .lms-org-card { padding:11px; }
  .lms-course-head { flex-direction:row; padding:12px; gap:10px; }
  .lms-course-badge { width:40px; height:40px; border-radius:11px; font-size:17px; }
  .lms-course-head-txt h2 { font-size:16px; }
  .lms-course-head-txt p { display:none; }
  .lms-tabs { position:sticky; top:0; z-index:5; border-radius:10px; padding:4px; }
  .lms-tab { min-height:40px; padding:8px 11px; font-size:11px; }
  .lms-stats { display:flex; overflow-x:auto; gap:8px; }
  .lms-stat { flex:0 0 110px; padding:11px; }
  .lms-modal-overlay { align-items:flex-end; }
  .lms-modal { width:100%; max-height:88dvh; border-radius:20px 20px 0 0; }

  /* 마스터도 상단 설명과 여백을 줄이고 화면 내부 스크롤 사용 */
  .mc-root { min-height:100dvh; }
  .mc-side { padding:8px; }
  .mc-brand { padding:2px 4px 7px; }
  .mc-side-foot { display:none; }
  .mc-main { padding:14px 12px; }
  .mc-top { margin-bottom:12px; }
  .mc-stats { grid-template-columns:repeat(2,1fr); gap:8px; }
  .mc-stat { padding:12px; }
}

@media (max-width:640px) {
  .code-builder { padding:6px 8px; }
  .code-builder-row { overflow-x:auto; scrollbar-width:none; }
  .code-builder-row::-webkit-scrollbar { display:none; }
  .code-builder-row>b { flex-basis:68px; position:sticky; left:0; z-index:1; padding:8px 4px; background:color-mix(in srgb,var(--primary) 4%,var(--workspace)); }
  .code-builder-row button { min-height:36px; padding:6px 9px; }
  .code-builder p { margin:5px 2px 0; font-size:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .code-local-save { width:100%; justify-content:center; margin-left:0; }
}
.sht-cell.a-center { text-align: center; }
.sht-cell.a-right { text-align: right; }
.sht-cell.sel { outline: 2.5px solid var(--sht-sel); outline-offset: -2px; background: var(--sht-sel-fill) !important; box-shadow: inset 0 0 0 9999px var(--sht-sel-fill); position: relative; z-index: 1; }
.sht-cell-edit { width: 100%; border: none; outline: none; background: var(--sht-cell-bg); color: var(--sht-cell-text); font-size: 13px; font-family: inherit; padding: 2px; }

.sht-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--text-muted); pointer-events: none; }
.sht-empty i { font-size: 42px; opacity: .3; }
.sht-empty p { font-size: 13.5px; line-height: 1.6; margin: 0; }
.sht-empty b { color: #16A36A; }

.sht-tabbar { display: flex; align-items: center; gap: 8px; padding: 5px 14px; border-top: 1px solid var(--border); background: var(--bg); font-size: 12px; color: var(--text-muted); }
.sht-sheet-tab { padding: 4px 14px; border: 1px solid var(--border); border-bottom: none; border-radius: 6px 6px 0 0; background: var(--workspace); color: var(--text); font-weight: 600; }
.sht-sheet-tab.active { color: #16A36A; }
.sht-sheet-add { border: none; background: transparent; color: var(--text-muted); cursor: pointer; }
.sht-status { margin-left: auto; }
.sht-zoom { padding-left: 10px; }

.sht-overlay { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(3px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.sht-overlay p { font-size: 15px; font-weight: 700; color: var(--text); }
.sht-spinner { width: 46px; height: 46px; border: 4px solid color-mix(in srgb, #16A36A 25%, transparent); border-top-color: #16A36A; border-radius: 50%; animation: mtgSpin .8s linear infinite; }

@media (max-width: 960px) {
  .sht-wrap { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .content:has(.sht-wrap) { overflow-y: auto; }
  .sht-left { border-right: none; border-bottom: 1px solid var(--border); max-height: 52vh; }
  .sht-right { min-height: 60vh; }
}

@media print {
  .sht-left, .sht-topbar, .sht-ribbon-tabs, .sht-ribbon, .sht-formula-bar, .sht-tabbar, .app-nav, .app-sidebar { display: none !important; }
  .sht-wrap { grid-template-columns: 1fr; }
  .sht-grid th, .sht-grid td { border: 1px solid #999; }
}

.mobile-work-switch { display:none; }
@media (max-width:640px) {
  .mobile-work-switch { flex:0 0 40px; display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px 8px; border-bottom:1px solid var(--border); background:var(--workspace); }
  .mobile-work-switch button { min-height:32px; border:0; border-radius:9px; background:transparent; color:var(--text-muted); font:inherit; font-size:12px; font-weight:750; }
  .mobile-work-switch button.is-active { background:var(--surface); color:var(--text); }

  /* 회의록: 녹음과 결과를 한 화면씩 사용 */
  .content:has(.mtg-wrap) { padding:0; overflow:hidden; }
  .mtg-wrap { height:calc(100dvh - 48px - var(--mobile-nav-h)); padding:0 10px 8px; display:flex; flex-direction:column; overflow:hidden; }
  .mtg-wrap>.mobile-work-switch { margin:0 -10px 7px; }
  .mtg-header { flex:0 0 38px; margin:0 0 6px; flex-wrap:nowrap; }
  .mtg-logo { width:34px; height:34px; border-radius:10px; font-size:15px; }
  .mtg-title { font-size:16px; }
  .mtg-sub { display:none; }
  .mtg-head-right { gap:6px; }
  .mtg-chip { padding:4px 7px; font-size:10px; }
  .mtg-timer { font-size:17px; }
  .mtg-titlebar { flex:0 0 38px; margin-bottom:7px; padding:0 10px; }
  .mtg-title-input { padding:8px 0; font-size:13px; }
  .mtg-body { flex:1; min-height:0; display:block; }
  .mtg-panel { height:100%; min-height:0; padding:10px; border-radius:13px; }
  .mtg-right { display:none; }
  .mtg-wrap.mobile-result-view .mtg-left { display:none; }
  .mtg-wrap.mobile-result-view .mtg-right { display:flex; }
  .mtg-panel-head { margin-bottom:7px; }
  .mtg-wave-box { height:72px; margin-bottom:7px; }
  .mtg-wave-hint span { display:none; }
  .mtg-controls { gap:6px; margin-bottom:8px; }
  .mtg-btn { min-height:40px; padding:8px 9px; font-size:12px; }
  .mtg-btn-record { min-height:42px; padding:9px; font-size:12px; }
  .mtg-transcript { min-height:0; padding:10px; font-size:13px; }
  .mtg-actions-3 { grid-template-columns:repeat(3,1fr); gap:5px; margin-bottom:7px; }
  .mtg-actions-3 .mtg-btn { min-height:40px; padding:6px 3px; font-size:10px; }
  .mtg-result-tabs { overflow-x:auto; }
  .mtg-tab { padding:5px 8px; font-size:10px; }
  .mtg-result { min-height:0; padding:11px; }
  .mtg-file-actions-4 { grid-template-columns:repeat(4,1fr); gap:4px; margin-top:7px; }
  .mtg-file-actions-4 .mtg-btn {
    min-height:52px;
    padding:5px 2px;
    flex-direction:column;
    gap:3px;
    font-size:9.5px;
    line-height:1.15;
    white-space:normal;
    word-break:keep-all;
  }
  .mtg-file-actions-4 .mtg-btn i { font-size:14px; }

  /* AI 시트: 요청/표를 전환해 이중 세로 스크롤 제거 */
  .app-shell:has(.sht-wrap) { height:100dvh; }
  .content:has(.sht-wrap) { height:100%; overflow:hidden; }
  .sht-wrap { position:relative; display:flex; flex-direction:column; height:100%; overflow:hidden; }
  .sht-left,.sht-right { flex:1; min-height:0; width:100%; max-height:none; }
  .sht-left { padding:10px; border:0; }
  .sht-right { display:none; }
  .sht-wrap.mobile-sheet-view .sht-left { display:none; }
  .sht-wrap.mobile-sheet-view .sht-right { display:flex; }
  .sht-left-head { gap:8px; }
  .sht-logo { width:34px; height:34px; }
  .sht-title { font-size:16px; }
  .sht-sub,.sht-points { display:none; }
  .sht-chat { min-height:0; }
  .sht-dock { padding-top:6px; gap:5px; }
  .sht-input { min-height:58px; max-height:90px; font-size:13px; }
  .sht-conn { display:none; }
  .sht-topbar { min-height:40px; padding:4px 8px; }
  .sht-fullscreen { display:none; }
  .sht-ribbon-tabs { overflow-x:auto; white-space:nowrap; }
  .sht-ribbon { min-height:48px; overflow-x:auto; }
  .sht-ribbon-label { display:none; }
  .sht-formula-bar { min-height:36px; }
  .sht-empty p { font-size:12px; }
}

/* ── National AI & Content Notice Radar ─────────────────────────────── */
.notice-radar{position:relative;margin:26px auto 0;max-width:1500px;padding:30px;border:1px solid #dbe5f5;border-radius:28px;background:linear-gradient(125deg,#fbfdff 0%,#f3f7ff 54%,#f9fbff 100%);box-shadow:0 18px 48px rgba(48,71,118,.08);color:#15233a}
.notice-radar::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:radial-gradient(circle at 88% 9%,rgba(87,92,239,.13),transparent 25%),radial-gradient(circle at 7% 100%,rgba(26,169,139,.08),transparent 27%)}
.notice-radar>*{position:relative}.notice-radar-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}.notice-radar-eyebrow{margin:0 0 6px;font-size:11px;font-weight:800;letter-spacing:.13em;color:#5c5dde}.notice-radar-eyebrow i{margin-right:5px}.notice-radar h2{margin:0;font-size:24px;letter-spacing:-.045em}.notice-radar-head>div>p:last-child{margin:8px 0 0;color:#65738a;font-size:14px}.notice-radar-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.notice-radar-actions a,.notice-radar-actions button{border:1px solid #dbe1f1;background:#fff;border-radius:12px;padding:9px 12px;color:#354467;font:inherit;font-size:13px;font-weight:750;text-decoration:none;cursor:pointer}.notice-radar-actions i{margin-right:5px;color:#625fe2}.notice-all-link{background:#252a5c!important;color:#fff!important;border-color:#252a5c!important}.notice-all-link i{color:#fff!important;margin-left:5px!important;margin-right:0!important}.notice-radar:not(.notice-radar-admin) .notice-admin-link{display:none!important}
.notice-radar-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) minmax(220px,1.65fr);gap:9px;margin:23px 0 15px}.notice-stat,.notice-update{min-height:76px;border:1px solid #e1e8f5;border-radius:16px;background:rgba(255,255,255,.86);padding:12px 13px;display:flex;flex-direction:column;justify-content:center;gap:3px}.notice-stat i{color:#6763e7;font-size:16px}.notice-stat span,.notice-update span{font-size:11px;color:#75829a;font-weight:700}.notice-stat b{font-size:22px;line-height:1;color:#192741}.notice-update{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-content:center}.notice-update i{grid-row:span 2;color:#3a8ac1}.notice-update b{font-size:12px;color:#304157;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.notice-filter-row{display:grid;grid-template-columns:minmax(210px,1.8fr) minmax(130px,.9fr) minmax(110px,.7fr) minmax(90px,.55fr) auto;gap:8px}.notice-filter-row input,.notice-filter-row select{width:100%;height:42px;border:1px solid #d9e2ef;border-radius:11px;background:#fff;color:#26354d;padding:0 12px;font:inherit;font-size:13px;outline:none}.notice-search{position:relative;display:block}.notice-search i{position:absolute;left:13px;top:14px;color:#7d8ba2;font-size:13px}.notice-search input{padding-left:35px}.notice-filter-row input:focus,.notice-filter-row select:focus{border-color:#756cf1;box-shadow:0 0 0 3px rgba(117,108,241,.12)}.notice-search-button{border:0;border-radius:11px;padding:0 16px;background:linear-gradient(120deg,#5147d9,#6785ed);color:#fff;font:inherit;font-weight:800;cursor:pointer}.notice-search-button i{margin-right:5px}.notice-quick-regions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:11px 0 0}.notice-quick-regions>span{font-size:11px;color:#748199;font-weight:800;margin-right:1px}.notice-quick-regions button{border:1px solid #dce5f1;background:#fff;border-radius:999px;padding:5px 9px;color:#53617a;font:inherit;font-size:11px;font-weight:750;cursor:pointer}.notice-quick-regions button:hover{border-color:#8378ed;color:#584ade}
.notice-radar-content{margin-top:18px;border-top:1px solid #dfe7f3;padding-top:15px}.notice-list-meta{display:flex;justify-content:space-between;gap:16px;font-size:13px;color:#43536d}.notice-list-meta strong{font-size:14px}.notice-list-meta span{font-size:11px;color:#738199}.notice-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}.notice-card{min-width:0;border:1px solid #e0e7f2;border-radius:15px;background:rgba(255,255,255,.93);padding:15px;transition:transform .16s ease,box-shadow .16s ease}.notice-card:hover{transform:translateY(-2px);box-shadow:0 10px 20px rgba(43,62,102,.1)}.notice-card.is-read{opacity:.68}.notice-card-head{display:flex;justify-content:space-between;gap:8px}.notice-region-badge,.notice-status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 7px;font-size:10px;font-weight:800}.notice-region-badge{color:#53627d;background:#f1f4fa}.notice-status{color:#68738a;background:#edf0f5}.notice-status-open{color:#16704c;background:#e5f8ef}.notice-status-urgent{color:#b55c00;background:#fff2da}.notice-status-closed{color:#8a5560;background:#f7eaec}.notice-status-always_open{color:#2c61a8;background:#eaf3ff}.notice-title{width:100%;border:0;background:transparent;padding:9px 0 6px;text-align:left;color:#1a2942;font:inherit;font-size:15px;font-weight:800;line-height:1.4;cursor:pointer;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.notice-title:hover{text-decoration:underline}.notice-meta{margin:0;color:#718096;font-size:11px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.notice-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.notice-origin{color:#5368d8;font-size:11px;font-weight:800;text-decoration:none}.notice-origin:hover{text-decoration:underline}.notice-favorite{border:0;background:#f3f5fa;width:28px;height:28px;border-radius:9px;color:#8794aa;cursor:pointer}.notice-favorite.is-on{background:#fff0bc;color:#d18e00}.notice-loading,.notice-empty{grid-column:1/-1;min-height:150px;border:1px dashed #d4deec;border-radius:16px;background:rgba(255,255,255,.55);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;color:#718096;font-size:13px;padding:22px}.notice-empty i{font-size:26px;color:#6d69df}.notice-empty strong{color:#33415a}.notice-empty p{max-width:500px;margin:0;line-height:1.6}.notice-pagination{display:flex;justify-content:center;align-items:center;gap:10px;margin-top:15px}.notice-pagination button{border:1px solid #dbe3ef;border-radius:9px;background:#fff;padding:6px 10px;color:#40506b;font:inherit;font-size:12px;cursor:pointer}.notice-pagination button:disabled{opacity:.45;cursor:not-allowed}.notice-pagination span{font-size:12px;color:#66748a}
.notice-detail{margin-top:13px;border:1px solid #d8e0fa;border-radius:16px;background:#fff;padding:20px;box-shadow:0 8px 18px rgba(48,62,109,.08)}.notice-detail-close{float:right;border:0;background:#f0f3f9;color:#5e6e88;border-radius:8px;width:30px;height:30px;cursor:pointer}.notice-detail h3{margin:0 38px 7px 0;font-size:18px}.notice-detail-meta{margin:0;color:#66758d;font-size:12px}.notice-detail-copy{white-space:pre-wrap;color:#405069;font-size:13px;line-height:1.65}.notice-detail-rows{display:grid;grid-template-columns:100px 1fr;gap:7px 12px;font-size:12px}.notice-detail-rows dt{color:#748199}.notice-detail-rows dd{margin:0;color:#263650}.notice-origin-large{display:inline-flex;margin-top:16px;border-radius:10px;background:#4c55ca;color:#fff;padding:10px 13px;font-size:13px}.notice-origin-large:hover{text-decoration:none;background:#3c46b7}
.notice-settings-dialog{border:0;border-radius:20px;padding:0;width:min(94vw,500px);box-shadow:0 20px 60px rgba(15,23,42,.25)}.notice-settings-dialog::backdrop{background:rgba(20,28,49,.35)}.notice-settings-form{position:relative;padding:28px}.notice-settings-form h3{margin:0;font-size:20px}.notice-settings-form>p{color:#68768d;font-size:13px;line-height:1.6}.notice-settings-form label{display:block;margin-top:14px;color:#3c4b64;font-size:12px;font-weight:800}.notice-settings-form select,.notice-settings-form textarea{box-sizing:border-box;width:100%;margin-top:6px;border:1px solid #d9e2ee;border-radius:10px;padding:9px;font:inherit;font-size:13px}.notice-settings-form select{height:116px}.notice-settings-form textarea{min-height:90px;resize:vertical}.notice-close{position:absolute;right:14px;top:14px;border:0;background:#f1f4f8;border-radius:9px;width:31px;height:31px;cursor:pointer}.notice-settings-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.notice-settings-actions button{border:1px solid #d9e0ed;background:#fff;border-radius:10px;padding:9px 13px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.notice-settings-actions button:last-child{border-color:#5046d6;background:#564add;color:#fff}
.notice-radar-compact{margin-top:24px}.notice-radar-compact .notice-radar-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.notice-radar-compact .notice-update{display:none}.notice-radar-compact .notice-filter-row{grid-template-columns:minmax(210px,1.8fr) minmax(120px,.8fr) minmax(110px,.7fr) auto}.notice-radar-compact .notice-filter-row [data-notice-status]{display:none}.notice-radar-compact .notice-list{grid-template-columns:repeat(2,minmax(0,1fr))}.notice-radar-compact .notice-card:nth-child(n+5){display:none}
.notice-radar-compact{padding-bottom:60px}.notice-radar-compact .notice-radar-expandable{display:grid;grid-template-rows:0fr;transition:grid-template-rows 3s cubic-bezier(.22,1,.36,1);margin-top:0}.notice-radar-compact .notice-radar-expandable-inner{min-height:0;overflow:hidden}.notice-radar-compact.is-expanded .notice-radar-expandable{grid-template-rows:1fr}.notice-radar-expand-button{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;width:min(420px,calc(100% - 80px));min-height:42px;margin:10px auto -30px;border-radius:0 0 15px 15px!important;box-shadow:0 13px 25px rgba(5,9,30,.36),inset 0 1px 0 rgba(255,255,255,.28)!important;letter-spacing:-.02em}.notice-radar-expand-button span{display:block}
/* Premium photographic presentation for the radar.  Controls retain a solid
   contrast surface so the functional search interface stays readable. */
.notice-radar{isolation:isolate;overflow:hidden;border-color:rgba(200,220,255,.42);background-color:#13213a;background-image:radial-gradient(circle at 82% 14%,rgba(180,123,255,.16),transparent 30%),linear-gradient(102deg,rgba(3,10,24,.64) 0%,rgba(5,16,37,.49) 43%,rgba(7,19,42,.28) 100%),url('/static/notice-radar/premium-opportunity-radar-city-bright.webp?v=20261030-bright1');background-position:center;background-size:cover;box-shadow:0 26px 68px rgba(5,11,25,.28),inset 0 1px 0 rgba(255,255,255,.28);color:#f7fbff}.notice-radar::before{background:linear-gradient(90deg,rgba(255,255,255,.12),transparent 22%,transparent 75%,rgba(193,165,255,.08)),radial-gradient(circle at 7% 100%,rgba(33,181,167,.10),transparent 30%)}.notice-radar::after{content:'';position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(180deg,rgba(2,8,20,.015),rgba(2,8,20,.12))}.notice-radar>*{z-index:1}.notice-radar h2{color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.54)}.notice-radar-eyebrow{color:#e0d6ff;text-shadow:0 1px 8px rgba(0,0,0,.65)}.notice-radar-head>div>p:last-child{color:#edf5ff;text-shadow:0 1px 8px rgba(0,0,0,.62)}.notice-radar-actions a,.notice-radar-actions button{border-color:rgba(224,235,255,.48);background:rgba(6,17,39,.76);color:#f8fbff;box-shadow:inset 0 1px 0 rgba(255,255,255,.18),0 8px 18px rgba(0,0,0,.22)}.notice-radar-actions i{color:#d7caff}.notice-radar .notice-all-link{background:linear-gradient(120deg,#5146d8,#8e67f5)!important;border-color:rgba(235,230,255,.54)!important;color:#fff!important}.notice-radar .notice-all-link i{color:#fff!important}.notice-radar-stats{gap:10px}.notice-radar .notice-stat,.notice-radar .notice-update{border-color:rgba(222,234,255,.34);background:rgba(5,17,39,.59);backdrop-filter:blur(4px);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 10px 24px rgba(0,0,0,.16)}.notice-radar .notice-stat i,.notice-radar .notice-update i{color:#dfd0ff}.notice-radar .notice-stat span,.notice-radar .notice-update span{color:#e1ebf8}.notice-radar .notice-stat b,.notice-radar .notice-update b{color:#fff}.notice-radar .notice-filter-row input,.notice-radar .notice-filter-row select{border-color:rgba(229,238,255,.82);background:rgba(253,254,255,.97);color:#16243b;box-shadow:0 8px 18px rgba(0,0,0,.18)}.notice-radar .notice-filter-row input::placeholder{color:#68778d}.notice-radar .notice-search i{color:#54647a}.notice-radar .notice-search-button{background:linear-gradient(120deg,#6d5cf2,#a169e9);box-shadow:0 9px 18px rgba(31,19,97,.34)}.notice-radar .notice-quick-regions>span{color:#f1f5fc;text-shadow:0 1px 5px rgba(0,0,0,.55)}.notice-radar .notice-quick-regions button{border-color:rgba(233,241,255,.55);background:rgba(6,18,42,.70);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 4px 10px rgba(0,0,0,.14)}.notice-radar .notice-quick-regions button:hover{border-color:#d9ceff;color:#fff;background:rgba(82,66,177,.80)}.notice-radar-content{border-color:rgba(221,234,255,.32)}.notice-radar .notice-list-meta{color:#edf3fb;text-shadow:0 1px 5px rgba(0,0,0,.5)}.notice-radar .notice-list-meta strong{color:#fff}.notice-radar .notice-list-meta span{color:#dce7f5}.notice-radar .notice-card,.notice-radar .notice-loading,.notice-radar .notice-empty{border-color:rgba(222,234,255,.30);background:rgba(5,17,39,.65);color:#e2ebf6;backdrop-filter:blur(4px);box-shadow:inset 0 1px 0 rgba(255,255,255,.10)}.notice-radar .notice-card:hover{box-shadow:0 14px 28px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.12)}.notice-radar .notice-title,.notice-radar .notice-empty strong{color:#fff}.notice-radar .notice-meta,.notice-radar .notice-empty p{color:#dce6f2}.notice-radar .notice-region-badge{color:#e1ebfa;background:rgba(174,198,237,.21)}.notice-radar .notice-status{background:rgba(235,242,255,.19);color:#f1f6ff}.notice-radar .notice-origin{color:#e0d0ff}.notice-radar .notice-favorite{background:rgba(241,245,255,.16);color:#d9e4f4}.notice-radar .notice-favorite.is-on{background:rgba(255,211,105,.24);color:#ffe99b}.notice-radar .notice-pagination button{border-color:rgba(225,235,255,.34);background:rgba(7,19,43,.72);color:#f8fbff}.notice-radar .notice-pagination span{color:#e0eafa}.notice-radar :is(button,a,input,select):focus-visible{outline:3px solid #e3d9ff;outline-offset:3px}
.notice-radar-admin{max-width:1300px;margin:0 auto;padding:30px}.notice-radar-admin>header{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:25px 28px;border-radius:22px;background:linear-gradient(125deg,#172d55,#5c4bd5);color:#fff}.notice-radar-admin>header p{margin:0 0 6px;font-size:11px;font-weight:800;letter-spacing:.12em;opacity:.78}.notice-radar-admin>header h2{margin:0;font-size:25px}.notice-radar-admin>header a{border:1px solid rgba(255,255,255,.35);border-radius:10px;padding:9px 12px;color:#fff;text-decoration:none;font-size:13px;font-weight:800}.notice-admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:18px}.notice-admin-grid section,.notice-admin-table{border:1px solid #dfe6f1;border-radius:18px;background:#fff;padding:22px}.notice-admin-grid h3,.notice-admin-table h3{margin:0 0 9px;font-size:17px}.notice-admin-grid h3 i,.notice-admin-table h3 i{color:#6558d7;margin-right:6px}.notice-admin-grid p{margin:0 0 14px;color:#65738b;font-size:12px;line-height:1.65}.notice-admin-grid form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.notice-admin-grid label{display:flex;flex-direction:column;gap:5px;color:#58677e;font-size:11px;font-weight:800}.notice-admin-grid label:nth-child(3),.notice-admin-grid label:nth-child(4),.notice-admin-grid label:nth-child(6){grid-column:1/-1}.notice-admin-grid input,.notice-admin-grid select,.notice-admin-grid textarea{box-sizing:border-box;width:100%;border:1px solid #dbe2ec;border-radius:9px;padding:9px;font:inherit;font-size:13px}.notice-admin-grid textarea{min-height:68px;resize:vertical}.notice-admin-grid button{grid-column:1/-1;border:0;border-radius:10px;background:#4d61d5;color:#fff;padding:10px;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.notice-admin-table{margin-top:16px;overflow:auto}.notice-admin-table table{width:100%;border-collapse:collapse;font-size:12px}.notice-admin-table th,.notice-admin-table td{padding:10px;border-bottom:1px solid #edf0f5;text-align:left;white-space:nowrap}.notice-admin-table td button{border:1px solid #d5deed;border-radius:8px;background:#fff;padding:5px 8px;color:#475a7a;font:inherit;font-size:11px;cursor:pointer}.notice-admin-table a{color:#4e5fd4;font-weight:750;text-decoration:none}
.notice-collection-control{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:16px;border:1px solid #dddaf7;border-radius:18px;padding:17px 19px;background:linear-gradient(120deg,#fafaff,#f5f7ff)}.notice-collection-control h3{margin:0 0 6px;color:#293750;font-size:16px}.notice-collection-control h3 i{color:#645be1;margin-right:6px}.notice-collection-control p{margin:0;color:#66758c;font-size:12px;line-height:1.55}.notice-collection-control strong{color:#443bb3}.notice-collection-actions{display:flex;gap:8px;flex-shrink:0}.notice-collection-actions button{border:1px solid #d8d3ff;border-radius:10px;background:#fff;color:#554bd0;padding:9px 11px;font:inherit;font-size:12px;font-weight:850;cursor:pointer}.notice-collection-actions button:first-child{border-color:#5c57dd;background:#5c57dd;color:#fff}.notice-collection-actions button:disabled{opacity:.55;cursor:wait}
.mc-panel-radar .notice-radar-admin{max-width:none;margin:0;padding:0}.notice-radar-admin>header>div>span{display:block;margin-top:7px;font-size:13px;line-height:1.55;color:rgba(255,255,255,.82)}.notice-admin-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.notice-radar-admin>header .notice-admin-head-actions button{border:1px solid rgba(255,255,255,.35);border-radius:10px;padding:9px 12px;background:rgba(12,22,57,.35);color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer}.notice-radar-admin>header .notice-admin-head-actions button:hover{background:rgba(255,255,255,.15)}.notice-collection-control-primary{align-items:flex-start;background:linear-gradient(125deg,#f5f4ff,#f8fbff);border-color:#cbc8f5}.notice-collection-control-primary>div:first-child{flex:1;min-width:0}.notice-collection-setting-row{display:grid;grid-template-columns:minmax(145px,180px) minmax(145px,180px) auto;gap:9px;align-items:end;margin-top:13px}.notice-collection-setting-row label{display:flex;flex-direction:column;gap:5px;color:#53637c;font-size:11px;font-weight:800}.notice-collection-setting-row input{box-sizing:border-box;width:100%;border:1px solid #d9e1ee;border-radius:9px;background:#fff;padding:9px;font:inherit;font-size:13px;color:#263650}.notice-collection-setting-row button{border:0;border-radius:9px;background:#393c88;color:#fff;padding:10px 12px;font:inherit;font-size:12px;font-weight:850;cursor:pointer}.notice-collection-setting-row button:disabled{opacity:.55;cursor:wait}.notice-collection-control small{display:block;margin-top:10px;color:#73819a;font-size:11px;line-height:1.5}.notice-collection-actions{align-items:center;flex-wrap:wrap;justify-content:flex-end}.notice-collection-actions strong{flex-basis:100%;font-size:12px;text-align:right}.notice-admin-table-hint{margin:-2px 0 13px;color:#65738b;font-size:12px;line-height:1.6}.notice-admin-table td{white-space:pre-line}
@media (max-width:950px){.notice-radar{padding:22px}.notice-radar-head{flex-direction:column}.notice-radar-actions{justify-content:flex-start}.notice-radar-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.notice-update{display:none}.notice-filter-row{grid-template-columns:1fr 1fr 1fr auto}.notice-search{grid-column:1/-1}.notice-list{grid-template-columns:1fr}.notice-admin-grid{grid-template-columns:1fr}.notice-collection-control{align-items:flex-start;flex-direction:column}.notice-collection-actions{justify-content:flex-start}.notice-collection-actions strong{text-align:left}.notice-admin-head-actions{justify-content:flex-start}}
@media (max-width:620px){.notice-radar{margin-top:16px;padding:16px;border-radius:20px}.notice-radar h2{font-size:20px}.notice-radar-head>div>p:last-child{font-size:12px}.notice-radar-actions a,.notice-radar-actions button{padding:8px 10px;font-size:12px}.notice-radar-stats,.notice-radar-compact .notice-radar-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.notice-stat{min-height:64px;padding:10px}.notice-stat b{font-size:19px}.notice-filter-row,.notice-radar-compact .notice-filter-row{grid-template-columns:1fr 1fr}.notice-search{grid-column:1/-1}.notice-search-button{height:42px}.notice-list-meta{align-items:flex-start;flex-direction:column;gap:4px}.notice-radar-compact .notice-list{grid-template-columns:1fr}.notice-radar-compact .notice-card:nth-child(n+5){display:block}.notice-detail-rows{grid-template-columns:82px 1fr}.notice-radar-admin{padding:15px}.notice-radar-admin>header{align-items:flex-start;flex-direction:column;padding:20px}.notice-radar-admin>header h2{font-size:21px}.notice-admin-grid form{grid-template-columns:1fr}.notice-admin-grid label:nth-child(3),.notice-admin-grid label:nth-child(4),.notice-admin-grid label:nth-child(6){grid-column:auto}.notice-collection-setting-row{grid-template-columns:1fr}.notice-collection-actions{width:100%}.notice-radar-admin>header .notice-admin-head-actions{width:100%}}
/* Keep every LMS card reachable without pushing the mobile entry below navigation. */
@media(max-width:760px){
 .content .lms-links{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:6px;gap:10px;}
 .content .lms-links .lms-btn{flex:0 0 calc(100% - 28px);width:auto;padding:0;scroll-snap-align:start;}
}
.library-autosave-notice{position:fixed;right:16px;bottom:80px;max-width:min(420px,calc(100vw - 32px));padding:10px 14px;border:1px solid #bfd2e8;border-radius:10px;background:#f2f8ff;color:#1a3b60;font-size:13px;line-height:1.5;z-index:80;box-shadow:0 3px 12px #10203018;overflow-wrap:anywhere}
.notice-radar-eyebrow{display:flex;align-items:center;gap:9px}
.notice-apply-button{background:linear-gradient(120deg,#14675a,#36a780)!important}.notice-radar-disclaimer{margin:15px 0 0;color:#dce8f5;font-size:11px;line-height:1.65}.radar-application-dialog{width:min(860px,calc(100vw - 28px));max-height:88vh;border:0;border-radius:20px;padding:0;box-shadow:0 28px 85px rgba(0,0,0,.45)}.radar-application-dialog::backdrop{background:rgba(4,12,28,.72)}.radar-application-form{display:flex;flex-direction:column;gap:12px;padding:30px;overflow:auto;max-height:82vh;background:#f8fbff;color:#192741}.radar-application-form h3{margin:0;font-size:22px}.radar-application-form>p{margin:0;color:#60708a;font-size:13px;line-height:1.55}.radar-application-form label{display:flex;flex-direction:column;gap:5px;color:#43536d;font-size:12px;font-weight:800}.radar-application-form input,.radar-application-form select,.radar-application-form textarea{box-sizing:border-box;width:100%;border:1px solid #d8e1ef;border-radius:9px;padding:10px;background:#fff;color:#1b2a43;font:inherit;font-size:14px}.radar-application-form textarea{min-height:76px;resize:vertical}.radar-apply-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.radar-apply-files{padding:10px 12px;border-radius:10px;background:#fff4d9!important;color:#76551a!important}.radar-application-form [data-radar-application-status]{font-weight:750;color:#13795b}@media(max-width:620px){.radar-apply-grid{grid-template-columns:1fr}.radar-application-form{padding:22px}.notice-radar-disclaimer{font-size:10px}}
.notice-cheonan-logo{width:30px;height:30px;flex:0 0 30px;object-fit:contain;border-radius:50%;background:rgba(255,255,255,.96);padding:3px;box-shadow:0 2px 10px rgba(1,11,31,.24)}
.notice-community-links{display:flex;align-items:stretch;gap:9px;flex-wrap:wrap;margin:18px 0 2px;padding:10px 12px;border:1px solid rgba(220,232,255,.35);border-radius:15px;background:linear-gradient(100deg,rgba(5,16,38,.69),rgba(24,30,79,.46));box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 10px 25px rgba(0,0,0,.16)}.notice-community-links-label{display:inline-flex;align-items:center;gap:6px;align-self:center;padding:0 7px;color:#ebe7ff;font-size:11px;font-weight:850;white-space:nowrap}.notice-community-links-label i{color:#d7c9ff}.notice-community-link{display:flex;align-items:center;gap:8px;min-width:220px;flex:1 1 230px;padding:8px 10px;border:1px solid rgba(228,238,255,.28);border-radius:11px;background:rgba(255,255,255,.10);color:#fff;text-decoration:none;transition:transform .16s ease,background .16s ease,border-color .16s ease}.notice-community-link:hover{transform:translateY(-2px);border-color:rgba(242,234,255,.74);background:rgba(255,255,255,.17)}.notice-community-link>span:nth-child(2){display:grid;gap:2px;min-width:0}.notice-community-link b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.25}.notice-community-link small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dce7f8;font-size:10px;line-height:1.25}.notice-community-link>i{margin-left:auto;color:#e7dcff;font-size:11px}.notice-community-logo{display:inline-flex;align-items:center;justify-content:center;width:29px;height:29px;flex:0 0 29px;overflow:hidden;border-radius:9px;background:linear-gradient(135deg,#62bfff,#386de2);color:#fff;font-family:Arial,sans-serif;font-size:14px;font-weight:900;letter-spacing:-.08em;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 3px 9px rgba(0,0,0,.22)}.notice-community-logo img{display:block;width:100%;height:100%;object-fit:contain;padding:3px;background:#fff}.notice-community-serpa .notice-community-logo{background:linear-gradient(135deg,#5c8cf5,#304bbc);font-size:18px;letter-spacing:-.04em}.notice-community-serpa .notice-community-logo img{padding:0;background:transparent}.notice-community-learn .notice-community-logo{background:linear-gradient(135deg,#7d54ef,#c04ee8)}
.notice-kakao-links{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:10px 0 2px;padding:9px 12px;border:1px solid rgba(240,207,93,.38);border-radius:15px;background:linear-gradient(100deg,rgba(75,48,8,.42),rgba(80,49,5,.18));box-shadow:inset 0 1px 0 rgba(255,244,190,.14)}.notice-kakao-links-label{display:inline-flex;align-items:center;gap:6px;padding:0 7px;color:#fff3b7;font-size:11px;font-weight:850;white-space:nowrap}.notice-kakao-links-label i{color:#fee45b}.notice-kakao-link{display:flex;align-items:center;gap:8px;min-width:255px;flex:1 1 290px;padding:8px 10px;border:1px solid rgba(255,229,111,.28);border-radius:11px;background:rgba(255,255,255,.09);color:#fff;text-decoration:none;transition:transform .16s ease,background .16s ease,border-color .16s ease}.notice-kakao-link:hover{transform:translateY(-2px);border-color:rgba(255,232,125,.8);background:rgba(255,255,255,.16)}.notice-kakao-link>span:nth-child(2){display:grid;gap:2px;min-width:0}.notice-kakao-link b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1.25}.notice-kakao-link small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f7eac8;font-size:10px;line-height:1.25}.notice-kakao-link>i{margin-left:auto;color:#ffeb7d;font-size:11px}.notice-kakao-link-mark{display:grid;place-items:center;width:42px;height:29px;flex:0 0 42px;border-radius:8px;background:#fee500;color:#381f00;font-size:10px;font-weight:950;letter-spacing:-.04em;box-shadow:inset 0 1px 0 rgba(255,255,255,.78)}
@media(max-width:620px){.notice-cheonan-logo{width:25px;height:25px;flex-basis:25px}.notice-radar-eyebrow{gap:7px}.notice-community-links,.notice-kakao-links{gap:7px;padding:9px}.notice-community-links-label,.notice-kakao-links-label{width:100%;padding:0 2px}.notice-community-link,.notice-kakao-link{min-width:0;flex-basis:100%;padding:8px 9px}}

/* ── 폰 티칭: scrcpy 창을 강사 PC에서만 보는 로컬 미러링 ───────────── */
.phone-teaching{width:min(1180px,calc(100% - 36px));margin:26px auto 46px;color:#162238}.phone-teaching-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 30px;border:1px solid #dbe4f2;border-radius:22px;background:radial-gradient(circle at 88% 8%,rgba(99,102,241,.18),transparent 30%),linear-gradient(120deg,#f9fbff,#edf4ff);box-shadow:0 16px 34px rgba(35,59,104,.08)}.phone-teaching-title{display:flex;align-items:center;gap:16px}.phone-teaching-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:linear-gradient(145deg,#5968e9,#7b5ff0);color:#fff;font-size:23px;box-shadow:0 10px 18px rgba(84,91,220,.25)}.phone-teaching-kicker,.phone-teaching-section-label{margin:0;color:#6571c8;font-size:11px;font-weight:900;letter-spacing:.12em}.phone-teaching-title h1{margin:3px 0 5px;font-size:30px;letter-spacing:-.055em}.phone-teaching-title p:last-child{margin:0;color:#65738b;font-size:14px}.phone-teaching-local{display:inline-flex;align-items:center;gap:7px;flex:none;border:1px solid #bfdfce;border-radius:999px;padding:8px 11px;background:#f4fff8;color:#16724d;font-size:12px;font-weight:850;white-space:nowrap}.phone-teaching-layout{display:grid;grid-template-columns:minmax(0,1.52fr) minmax(280px,.78fr);gap:18px;margin-top:18px}.phone-teaching-stage,.phone-teaching-guide{border:1px solid #dce4f0;border-radius:20px;background:#fff;box-shadow:0 10px 26px rgba(35,59,104,.06)}.phone-teaching-stage{padding:22px}.phone-teaching-stage-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}.phone-teaching-stage h2,.phone-teaching-guide h2{margin:3px 0 0;font-size:20px;letter-spacing:-.04em}.phone-teaching-status{display:inline-flex;align-items:center;gap:6px;flex:none;border-radius:999px;padding:7px 10px;background:#f0f3f8;color:#617087;font-size:12px;font-weight:800}.phone-teaching-status i{font-size:8px}.phone-teaching-status.is-idle i{color:#94a3b8}.phone-teaching-status.is-connecting{background:#fff7e4;color:#8c6418}.phone-teaching-status.is-connecting i{color:#e9a52c;animation:phone-teaching-pulse 1.1s ease-in-out infinite}.phone-teaching-status.is-connected{background:#e9fff4;color:#14714d}.phone-teaching-status.is-connected i{color:#16a36a}.phone-teaching-status.is-warning{background:#fff6da;color:#9a6916}.phone-teaching-status.is-warning i{color:#e8a11e}.phone-teaching-status.is-error{background:#fff0f1;color:#b33f4e}.phone-teaching-status.is-error i{color:#de5361}.phone-teaching-preview{position:relative;display:grid;place-items:center;min-height:440px;overflow:hidden;border:1px solid #d7e0ef;border-radius:18px;background:radial-gradient(circle at 50% 4%,#33465f,#111d2e 64%);isolation:isolate}.phone-teaching-preview::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(135deg,rgba(101,117,255,.22),transparent 36%,rgba(9,175,142,.08));pointer-events:none}.phone-teaching-preview:fullscreen{width:100%;height:100%;border-radius:0;background:#05080d}.phone-teaching-placeholder{display:grid;justify-items:center;gap:9px;max-width:290px;padding:24px;text-align:center;color:#dce8fa}.phone-teaching-placeholder[hidden]{display:none}.phone-teaching-placeholder-icon{display:grid;place-items:center;width:64px;height:64px;border:1px solid rgba(212,223,255,.32);border-radius:21px;background:rgba(255,255,255,.1);font-size:28px;color:#b8c5ff;box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}.phone-teaching-placeholder strong{font-size:16px}.phone-teaching-placeholder p{margin:0;color:#b8c6d8;font-size:13px;line-height:1.55}.phone-teaching-video{display:none;width:100%;height:100%;max-height:72vh;object-fit:contain;background:#05080d}.phone-teaching-preview.is-connected .phone-teaching-video{display:block}.phone-teaching-controls{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}.phone-teaching-controls button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;border-radius:11px;padding:0 14px;font:inherit;font-size:13px;font-weight:850;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}.phone-teaching-controls button:hover:not(:disabled){transform:translateY(-1px)}.phone-teaching-controls button:disabled{opacity:.48;cursor:not-allowed}.phone-teaching-primary{border:0;background:linear-gradient(120deg,#5b5eea,#417fee);color:#fff;box-shadow:0 8px 16px rgba(72,91,224,.23)}.phone-teaching-secondary{border:1px solid #d7e1ee;background:#fff;color:#41516b}.phone-teaching-help{display:flex;gap:7px;margin:14px 1px 0;color:#64738b;font-size:12px;line-height:1.55}.phone-teaching-help i{margin-top:2px;color:#6975d6}.phone-teaching-guide{padding:22px;background:linear-gradient(165deg,#fff,#f7f9fd)}.phone-teaching-guide-heading{display:flex;align-items:center;gap:10px}.phone-teaching-guide-heading>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e9edff;color:#5c65d8}.phone-teaching-steps{display:grid;gap:13px;margin:19px 0;padding:0;list-style:none;counter-reset:phone-steps}.phone-teaching-steps li{position:relative;display:grid;gap:4px;padding:0 0 0 31px;color:#263650;counter-increment:phone-steps}.phone-teaching-steps li::before{content:counter(phone-steps);position:absolute;left:0;top:0;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#edf0ff;color:#5660d0;font-size:11px;font-weight:900}.phone-teaching-steps b{font-size:13px}.phone-teaching-steps span{color:#708098;font-size:12px;line-height:1.55}.phone-teaching-steps em{font-style:normal;color:#4b57cc;font-weight:850}.phone-teaching-scrcpy-link{display:inline-flex;align-items:center;gap:6px;margin:2px 0 17px;color:#5260cf;font-size:12px;font-weight:850;text-decoration:none}.phone-teaching-scrcpy-link:hover{text-decoration:underline}.phone-teaching-boundary{display:flex;gap:9px;padding:12px;border:1px solid #d8ebe2;border-radius:12px;background:#f2fbf6;color:#496458}.phone-teaching-boundary i{margin-top:2px;color:#259264}.phone-teaching-boundary p{margin:0;font-size:11px;line-height:1.55}.phone-teaching-boundary b{color:#16724d}.phone-teaching-notice{display:flex;align-items:flex-start;gap:9px;margin-top:16px;padding:13px 15px;border:1px solid #f2dfae;border-radius:14px;background:#fff9e9;color:#806126;font-size:12px;line-height:1.6}.phone-teaching-notice i{margin-top:3px;color:#d3951f}.phone-teaching-notice p{margin:0}@keyframes phone-teaching-pulse{50%{transform:scale(.7);opacity:.5}}@media(max-width:840px){.phone-teaching{width:min(100% - 24px,680px);margin-top:16px}.phone-teaching-hero{align-items:flex-start;flex-direction:column;padding:21px}.phone-teaching-layout{grid-template-columns:1fr}.phone-teaching-preview{min-height:400px}}@media(max-width:520px){.phone-teaching{width:calc(100% - 18px);margin-bottom:24px}.phone-teaching-hero,.phone-teaching-stage,.phone-teaching-guide{border-radius:16px}.phone-teaching-title{align-items:flex-start;gap:11px}.phone-teaching-mark{width:45px;height:45px;border-radius:14px;font-size:20px}.phone-teaching-title h1{font-size:25px}.phone-teaching-title p:last-child{font-size:12px;line-height:1.5}.phone-teaching-local{font-size:11px}.phone-teaching-stage{padding:15px}.phone-teaching-preview{min-height:340px;border-radius:14px}.phone-teaching-stage-head{align-items:flex-start;flex-direction:column}.phone-teaching-controls{display:grid;grid-template-columns:1fr 1fr}.phone-teaching-primary{grid-column:1/-1}.phone-teaching-controls button{padding:0 9px;font-size:12px}.phone-teaching-guide{padding:17px}.phone-teaching-notice{padding:11px 12px;font-size:11px}}
