/* KeApps UI — generated from deploy/demo/styles/*.css. Do not edit directly. */

/* ---- 00-tokens.css ---- */
/* KeApps design tokens — light theme, logo-matched green/ink palette */
:root {
  --bg: #f5f8f6;
  --bg-grid: rgba(12, 31, 22, .028);
  --surface: #ffffff;
  --surface-2: #f0f5f1;
  --surface-3: #e8f1ea;
  --border: #e1e8e2;
  --border-strong: #cfdcd3;
  --text: #0b1f16;
  --text-2: #344054;
  --muted: #66756e;
  --muted-2: #84938c;
  --accent: #00a651;
  --accent-hover: #008f45;
  --accent-ink: #046a38;
  --accent-soft: #e7f6ee;
  --accent-line: #b7e3c8;
  --warn: #b45309;
  --warn-soft: #fffaeb;
  --warn-line: #f0d9b5;
  --danger: #d92d20;
  --danger-soft: #fef3f2;
  --danger-line: #f3c6c0;
  --info: #067647;
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --shadow-xs: 0 1px 2px rgba(12, 31, 22, .05);
  --shadow-sm: 0 4px 14px rgba(12, 31, 22, .05);
  --shadow: 0 10px 30px rgba(12, 31, 22, .08);
  --shadow-lg: 0 24px 60px rgba(12, 31, 22, .12);
  --header-h: 64px;
  --page-max: 1200px;
  --portal-max: 1440px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

/* ---- 10-base.css ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 6% -12%, rgba(0, 166, 81, .10), transparent 62%),
    radial-gradient(760px 440px at 100% 0%, rgba(0, 120, 70, .06), transparent 55%),
    repeating-linear-gradient(0deg, var(--bg-grid) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, var(--bg-grid) 0 1px, transparent 1px 56px),
    linear-gradient(180deg, #f9fcf9 0%, #eef4ef 100%);
}
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.2px; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }
code {
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface-2);
  color: var(--text-2);
  font: 12px/1.5 var(--mono);
}
.ca-hidden { display: none !important; }
.ca-muted { color: var(--muted); }
.ca-error { color: var(--danger); font-size: 13px; }
.ca-warn { color: var(--warn); font-size: 13px; }
.ca-result { color: var(--text-2); }
.ca-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ca-page { width: 100%; display: block; }
.ca-center { min-height: 60vh; display: grid; place-items: center; padding: 24px; }

/* ---- 20-shell.css ---- */
.ca-shell { min-height: 100vh; display: flex; flex-direction: column; }
.ca-header {
  position: sticky; top: 0; z-index: 40;
  width: 100%; max-width: var(--portal-max); margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 10px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
}
.ca-brand-logo {
  width: 32px; height: 32px; flex: 0 0 32px;
  border-radius: 9px; object-fit: cover; display: block;
  box-shadow: var(--shadow-xs); cursor: pointer;
}
.ca-brand { font-size: 16px; font-weight: 700; color: var(--text); white-space: nowrap; }
.ca-topnav { display: flex; gap: 2px; margin-left: 12px; overflow: auto; }
.ca-topnav-item {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 12px; border-radius: 9px; cursor: pointer;
  font-size: 13px; white-space: nowrap;
}
.ca-topnav-item:hover { color: var(--text); background: #f1f8f4; }
.ca-topnav-active { color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.ca-spacer { flex: 1; }
.ca-public-tag { color: var(--muted); font-size: 12px; }
.ca-user-menu { position: relative; }
.ca-user-menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.ca-user-menu summary::-webkit-details-marker { display: none; }
.ca-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--text); color: #fff; font-size: 13px; font-weight: 700;
  border: 2px solid #fff; box-shadow: var(--shadow-xs);
}
.ca-menu {
  position: absolute; right: 0; top: 42px; width: 196px;
  display: grid; gap: 2px; padding: 6px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 60;
}
.ca-user-menu:not([open]) .ca-menu { display: none; }
.ca-menu-item {
  border: 0; background: transparent; color: var(--text);
  text-align: left; padding: 8px 10px; border-radius: var(--radius-sm);
  font-size: 13px; cursor: pointer;
}
.ca-menu-item:hover { background: var(--accent-soft); color: var(--accent-ink); }
.ca-menu-sep { height: 1px; margin: 4px 6px; background: var(--border); }

.ca-content, .ca-main {
  width: 100%; max-width: var(--page-max);
  margin: 0 auto; padding: 28px 32px 64px;
}
.ca-center-main { width: 100%; }
.ca-app-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ca-app-content > .ca-main { width: 100%; max-width: var(--page-max); margin: 0 auto; }
.ca-subnav {
  display: flex; gap: 4px; align-items: center;
  width: 100%; max-width: var(--page-max); margin: 0 auto;
  padding: 14px 32px 0;
}
.ca-subnav-item {
  padding: 8px 12px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; color: var(--muted); font-size: 13px; cursor: pointer;
}
.ca-subnav-item:hover { color: var(--text); }
.ca-subnav-item.ca-active { color: var(--accent-ink); border-bottom-color: var(--accent); font-weight: 600; }
.ca-subnav-single { padding: 6px 2px; color: var(--muted); font-size: 12px; }
.ca-public { width: 100%; max-width: var(--portal-max); margin: 0 auto; padding: 32px 48px 72px; }
.ca-result { color: var(--text-2); }

.ca-menu-user { padding: 8px 10px 6px; display: grid; gap: 2px; }
.ca-menu-user-name { font-size: 13px; font-weight: 700; color: var(--text); }
.ca-menu-user-meta { font-size: 11px; color: var(--muted); }
.ca-menu-user-role-label { color: var(--muted); font-size: 10px; margin-right: 5px; }
.ca-menu-user-roles { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; }
.ca-menu-role { display: inline-flex; padding: 1px 6px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; line-height: 1.6; }
.ca-menu-role-empty { background: #f1f3f2; color: var(--muted); }

/* ---- 21-platform.css ---- */
/* four platforms: portal / learn / service / admin have their own layout */
.platform-shell { min-height: 100vh; }
.platform-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.platform-rail {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--border);
  background: #fff;
}
.platform-brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px 18px; }
.platform-brand-text { display: grid; gap: 1px; min-width: 0; }
.platform-brand-name { font-size: 15.5px; font-weight: 700; color: var(--text); }
.platform-brand-sub { color: var(--muted); font-size: 11px; }
.platform-nav { display: grid; gap: 3px; }
.platform-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border: 1px solid transparent; border-radius: 11px;
  background: transparent; color: var(--text); text-align: left; cursor: pointer;
  font-size: 13.5px; font-weight: 600;
}
.platform-nav-item:hover { background: #f3f9f5; }
.platform-nav-text { display: grid; gap: 1px; }
.platform-nav-label { font-size: 13.5px; font-weight: 600; }
.platform-nav-note { color: var(--muted); font-size: 11px; }
.platform-nav-active { background: var(--accent-soft); border-color: var(--accent-line); }
.platform-nav-active .platform-nav-label { color: var(--accent-ink); }
.platform-nav-active .platform-nav-note { color: #4c8a68; }
.platform-rail-spacer { flex: 1; }
.platform-rail-foot {
  display: grid; gap: 2px; padding: 12px 8px 0;
  border-top: 1px solid var(--border);
}
.platform-foot-user { font-size: 12.5px; font-weight: 600; }
.platform-foot-note { color: var(--muted); font-size: 11px; }
.platform-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.platform-topbar {
  position: sticky; top: 0; z-index: 25;
  height: 60px; display: flex; align-items: center; gap: 10px;
  padding: 0 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(12px);
}
.platform-crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.platform-crumb-platform { color: var(--accent-ink); font-weight: 600; }
.platform-crumb-sep { color: var(--border-strong); }
.platform-crumb-page { color: var(--text); font-weight: 600; }
.platform-body { flex: 1; min-width: 0; }

/* service: teacher workspace has a warmer accent */
.platform-service .platform-rail { background: #fbfdf8; }
.platform-service .platform-nav-active { background: #f2f9ee; border-color: #cfe8c0; }
.platform-service .platform-nav-active .platform-nav-label { color: #3f6b2a; }

/* admin: dark console rail */
.platform-admin .platform-rail { background: #0c1f16; border-right-color: #16321f; }
.platform-admin .platform-brand-name { color: #f1f8f4; }
.platform-admin .platform-brand-sub { color: #9fb7aa; }
.platform-admin .platform-nav-item { color: #d3e4da; }
.platform-admin .platform-nav-item:hover { background: #13291d; }
.platform-admin .platform-nav-active { background: #163a27; border-color: #1f5a3a; }
.platform-admin .platform-nav-active .platform-nav-label { color: #7ee2a8; }
.platform-admin .platform-nav-active .platform-nav-note { color: #8fc9a8; }
.platform-admin .platform-nav-note { color: #8fa99a; }
.platform-admin .platform-rail-foot { border-top-color: #1c3a29; }
.platform-admin .platform-foot-user { color: #f1f8f4; }
.platform-admin .platform-foot-note { color: #9fb7aa; }
.platform-admin .platform-crumb-platform { color: #7ee2a8; }

/* public portal navigation */
.portal-nav { display: flex; gap: 2px; margin-left: 18px; }
.portal-nav-item {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 12px; border-radius: 9px; font-size: 13px; cursor: pointer;
}
.portal-nav-item:hover { color: var(--text); background: #f1f8f4; }

@media (max-width: 980px) {
  .platform-layout { grid-template-columns: 1fr; }
  .platform-rail {
    position: static; height: auto; flex-direction: row; align-items: center;
    overflow-x: auto; padding: 10px 16px;
    border-right: 0; border-bottom: 1px solid var(--border);
  }
  .platform-brand { padding: 0 12px 0 0; }
  .platform-brand-sub { display: none; }
  .platform-brand-name { font-size: 14px; }
  .platform-nav { display: flex; gap: 4px; }
  .platform-nav-item { width: auto; padding: 8px 10px; white-space: nowrap; }
  .platform-rail-spacer, .platform-rail-foot { display: none; }
  .platform-topbar { height: 54px; padding: 0 16px; }
  .portal-nav { display: none; }
}

/* keep the dark console rail background continuous on tall pages */
.platform-admin .platform-layout { background: linear-gradient(90deg, #0c1f16 0 236px, transparent 236px); }
@media (max-width: 980px) {
  .platform-admin .platform-layout { background: none; }
}

/* icons + grouped navigation */
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: currentColor; flex: 0 0 18px; }
.nav-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ca-menu-item { display: flex; align-items: center; gap: 8px; }
.platform-nav-item { gap: 10px; align-items: center; }
.platform-nav-group {
  padding: 14px 10px 6px;
  color: var(--muted-2); font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
}
.platform-nav-group:first-child { padding-top: 4px; }
.platform-nav-item .platform-nav-text { flex: 1; }
.platform-admin .platform-nav-group { color: #7c9a8a; }

.portal-nav-item { display: inline-flex; align-items: center; gap: 6px; }
.platform-nav-item .nav-icon { color: var(--muted); }
.platform-nav-active .nav-icon { color: var(--accent-ink); }
.platform-admin .platform-nav-item .nav-icon { color: #8fa99a; }
.platform-admin .platform-nav-active .nav-icon { color: #7ee2a8; }

/* sidebar: scrollable grouped nav + bottom collapse control */
.platform-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  padding-right: 2px;
  scrollbar-width: thin;
}
.platform-nav::-webkit-scrollbar { width: 6px; }
.platform-nav::-webkit-scrollbar-thumb { background: #d8e3da; border-radius: 999px; }
.platform-rail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}
.platform-foot-user-box { display: grid; gap: 1px; min-width: 0; }
.platform-foot-user, .platform-foot-note { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.platform-rail-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.platform-rail-toggle:hover { color: var(--text); background: #f4f8f4; }
.platform-admin .platform-rail-toggle { background: #10271b; border-color: #1d4430; color: #9fbfac; }
.platform-admin .platform-rail-toggle:hover { background: #17351f; color: #d7ecde; }

.platform-layout-collapsed { grid-template-columns: 68px minmax(0, 1fr); }
.platform-rail-collapsed { padding-left: 8px; padding-right: 8px; }
.platform-rail-collapsed .platform-brand { justify-content: center; padding-left: 0; padding-right: 0; }
.platform-rail-collapsed .platform-brand-text { display: none; }
.platform-rail-collapsed .platform-nav { gap: 4px; }
.platform-rail-collapsed .platform-nav-item { justify-content: center; padding: 10px 0; }
.platform-rail-collapsed .platform-nav-label { display: none; }
.platform-rail-collapsed .platform-nav-group {
  height: 1px;
  margin: 8px 6px 4px;
  padding: 0;
  overflow: hidden;
  font-size: 0;
  letter-spacing: 0;
  background: var(--border);
  border-radius: 1px;
}
.platform-rail-collapsed .platform-foot-user-box { display: none; }
.platform-rail-collapsed .platform-rail-foot { justify-content: center; padding: 12px 0; }
.platform-admin .platform-layout-collapsed { background: linear-gradient(90deg, #0c1f16 0 68px, transparent 68px); }
@media (max-width: 980px) {
  .platform-rail-toggle { display: none; }
  .platform-layout-collapsed { grid-template-columns: 1fr; }
  .platform-rail-collapsed .platform-brand-text { display: grid; }
  .platform-rail-collapsed .platform-nav-label { display: inline; }
  .platform-rail-collapsed .platform-nav-item { justify-content: flex-start; padding: 8px 10px; }
  .platform-rail-collapsed .platform-nav-group { height: auto; margin: 0; padding: 0 6px; overflow: visible; font-size: 10.5px; letter-spacing: .12em; background: none; }
}

/* brand row: logo only, bottom border aligned with the 60px topbar */
.platform-rail { padding-top: 0; }
.platform-brand {
  height: 60px;
  flex: none;
  padding: 0 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.platform-brand .ca-brand-logo { width: 34px; height: 34px; cursor: pointer; }
.platform-admin .platform-brand { border-bottom-color: #1c3a29; }
.platform-rail-collapsed .platform-brand { justify-content: center; padding-left: 0; padding-right: 0; }
@media (max-width: 980px) {
  .platform-brand { height: auto; padding: 0 12px 0 0; border-bottom: 0; margin-bottom: 0; }
}

/* brand: logo + platform name, no subtitle */
.platform-brand { gap: 10px; }
.platform-brand-name { font-size: 15.5px; font-weight: 700; white-space: nowrap; }
.platform-rail-collapsed .platform-brand-name { display: none; }
@media (max-width: 980px) {
  .platform-brand-name { display: inline; font-size: 14px; }
}

/* sidebar footer: collapse control only, centered */
.platform-rail-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 8px;
  border-top: 1px solid var(--border);
}
.platform-admin .platform-rail-foot { border-top-color: #1c3a29; }
.platform-foot-user-box, .platform-foot-user { display: none; }

/* ---- 30-components.css ---- */
.ca-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 13.5px; cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}
.ca-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.ca-btn:focus-visible, .ca-link-btn:focus-visible, .platform-nav-item:focus-visible, .platform-rail-toggle:focus-visible, .ca-drawer-close:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.ca-btn:disabled { opacity: .55; cursor: not-allowed; }
.ca-btn-sm { padding: 5px 10px; font-size: 12px; border-radius: var(--radius-xs); }
.ca-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.ca-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.ca-btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.ca-btn-danger:hover { background: #b42318; border-color: #b42318; color: #fff; }
.ca-btn-ghost { background: transparent; }
a.ca-btn { text-decoration: none; }
.ca-link-btn {
  border: 0; background: transparent; color: var(--accent-ink);
  padding: 4px; font-size: 12.5px; cursor: pointer;
}
.ca-link-btn:hover { text-decoration: underline; }
.ca-input {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); font-size: 13.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ca-input::placeholder { color: #9aa8a1; }
.ca-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 166, 81, .12); }
textarea.ca-input { resize: vertical; }
.ca-field { display: grid; gap: 6px; }
.ca-field-label { color: var(--muted); font-size: 12px; }
.ca-row .ca-input { max-width: 260px; }

.todo-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted);
  font-size: 11.5px; white-space: nowrap;
}
.todo-ok, .todo-badge.todo-ok { color: #067647; border-color: var(--accent-line); background: var(--accent-soft); }
.todo-warn, .todo-badge.todo-warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }
.todo-bad, .todo-badge.todo-bad { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.todo-acc, .todo-badge.todo-acc { color: var(--accent-ink); border-color: var(--accent-line); background: var(--accent-soft); }

.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: auto; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8fbf9; }

.ca-empty {
  display: grid; gap: 4px; place-items: center;
  padding: 46px 20px; border: 1px dashed var(--border); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .6); color: var(--muted);
}
.ca-hero-eyebrow { color: var(--accent-ink); font-size: 11px; letter-spacing: .16em; font-weight: 700; }
.ca-hero-sub { max-width: 680px; color: var(--muted); font-size: 14px; }

/* ---- 40-auth.css ---- */
.ca-login {
  min-height: 100vh;
  display: grid; grid-template-columns: 1.05fr .95fr;
  background:
    radial-gradient(900px 520px at 8% -12%, rgba(0, 166, 81, .14), transparent 62%),
    radial-gradient(760px 420px at 100% 100%, rgba(0, 120, 70, .07), transparent 55%),
    linear-gradient(180deg, #fbfdfb, #eef5ef);
}
.ca-login-panel {
  display: flex; flex-direction: column;
  padding: 56px 56px;
  border-right: 1px solid var(--border);
  background-image:
    linear-gradient(rgba(12, 31, 22, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 31, 22, .05) 1px, transparent 1px);
  background-size: 52px 52px;
}
.ca-login-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; box-shadow: var(--shadow); margin-bottom: 28px; }
.ca-login-eyebrow { color: var(--accent-ink); font-size: 11.5px; letter-spacing: .18em; font-weight: 700; }
.ca-login-title { margin: 8px 0 10px; font-size: clamp(38px, 5vw, 56px); letter-spacing: -1px; color: var(--text); }
.ca-login-sub { max-width: 520px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.ca-login-features { list-style: none; max-width: 520px; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.ca-login-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text); }
.ca-login-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(0, 166, 81, .45); }
.ca-login-panel .ca-link-btn { align-self: flex-start; margin-top: 34px; color: var(--muted); }
.ca-login-foot { margin-top: auto; padding-top: 36px; color: var(--muted-2); font-size: 11.5px; }
.ca-login-card {
  align-self: center; justify-self: center;
  width: min(420px, calc(100% - 48px));
  display: grid; gap: 14px; padding: 32px;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: #fff; box-shadow: var(--shadow-lg);
}
.ca-login-card h2 { font-size: 22px; }
.ca-login-card > p { color: var(--muted); font-size: 13px; }
.ca-login-submit { padding: 11px 14px; font-weight: 650; }
.ca-login-hint { margin-top: 2px; color: var(--muted); font-size: 12px; }

/* ---- 40-course.css ---- */
.course-page-wrap { margin: 6px 0 4px; }
.course-page-frame { display: block; width: 100%; min-height: 620px; height: 72vh; border: 1px solid var(--border); border-radius: 14px; background: #071a13; }

/* ---- 45-allapps.css ---- */
.ca-center-main { display: grid; gap: 22px; align-content: start; }
.ca-center-hero {
  padding: 30px 32px;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background:
    radial-gradient(680px 260px at 85% -20%, rgba(0, 166, 81, .14), transparent 65%),
    linear-gradient(180deg, #fff, #f7fcf8);
  box-shadow: var(--shadow-xs);
}
.ca-center-hero h1 { margin: 8px 0; font-size: 30px; }
.ca-center-hero p { color: var(--muted); font-size: 13.5px; }
.ca-hero-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.ca-hero-stat {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 13px; border: 1px solid var(--border); border-radius: 11px; background: #fff;
}
.ca-hero-stat strong { font-size: 19px; }
.ca-hero-stat span { color: var(--muted); font-size: 11.5px; }
.ca-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ca-search { max-width: 320px; flex: 1 1 220px; }
.ca-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ca-chip {
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; color: var(--muted); font-size: 12.5px; cursor: pointer;
}
.ca-chip:hover { color: var(--accent-ink); border-color: var(--accent); }
.ca-chip-active { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.ca-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ca-app-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; color: var(--text); text-align: left; cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ca-app-card:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.ca-app-icon {
  flex: 0 0 46px; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; background: linear-gradient(145deg, #eafaf0, #d8f0e2);
  border: 1px solid var(--accent-line); color: var(--accent-ink); font-size: 16px; font-weight: 700;
}
.ca-app-body { flex: 1; min-width: 0; display: grid; gap: 5px; }
.ca-app-name { font-size: 15.5px; font-weight: 650; }
.ca-app-desc { color: var(--muted); font-size: 12.5px; }
.ca-app-meta { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.ca-app-category { padding: 2px 8px; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; }
.ca-app-enter { color: var(--muted); font-size: 11.5px; white-space: nowrap; }

/* ---- 50-portal.css ---- */
.portal-page { display: grid; gap: 24px; }
.portal-hero {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px;
  padding: 44px 46px 38px;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background:
    radial-gradient(720px 300px at 92% -12%, rgba(0, 166, 81, .16), transparent 62%),
    linear-gradient(180deg, #fff, #f5fbf7);
  box-shadow: var(--shadow-sm);
}
.portal-copy h1 { margin: 12px 0; font-size: clamp(34px, 4.4vw, 48px); letter-spacing: -.8px; }
.portal-eyebrow { color: var(--accent-ink); font-size: 11.5px; letter-spacing: .16em; font-weight: 700; }
.portal-lede { max-width: 600px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.portal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.portal-stats { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.portal-stat {
  display: flex; align-items: baseline; gap: 7px;
  padding: 8px 13px; border: 1px solid var(--border); border-radius: 11px; background: #fff;
}
.portal-stat strong { font-size: 19px; }
.portal-stat span { color: var(--muted); font-size: 11.5px; }
.portal-orbit {
  align-self: center; justify-self: center;
  width: 156px; height: 156px; border-radius: 40px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #0c1f16, #123326);
  color: #fff; font-size: 44px; font-weight: 800;
  box-shadow: 0 24px 50px rgba(12, 31, 22, .22);
  border: 1px solid #1d4a34;
}
.portal-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-feature { padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.portal-feature h3 { margin-bottom: 6px; font-size: 15px; }
.portal-feature p { color: var(--muted); font-size: 12.5px; }
.portal-sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.portal-sec-head h2 { font-size: 21px; }
.portal-sec-head p { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.portal-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; align-items: stretch; }
.portal-course {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; color: var(--text); cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.portal-course:hover { border-color: var(--accent-line); transform: translateY(-2px); box-shadow: var(--shadow); }
.portal-course-icon {
  flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; background: linear-gradient(145deg, #eafaf0, #d8f0e2);
  border: 1px solid var(--accent-line); color: var(--accent-ink); font-weight: 700;
}
.portal-course-body { display: grid; gap: 3px; min-width: 0; }
.portal-course-name { font-weight: 650; font-size: 14px; }
.portal-course-desc { color: var(--muted); font-size: 12px; }
.portal-course-enter { color: var(--accent-ink); font-size: 11.5px; margin-top: 2px; }
.portal-cta {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px; border: 1px dashed var(--border); border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, .6); text-align: center;
}
.portal-cta h2 { font-size: 22px; }
.portal-cta p { color: var(--muted); font-size: 13px; }

.portal-cases { display: grid; gap: 12px; }
.portal-footer {
  display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 30px;
  margin-top: 10px; padding: 30px 8px 10px;
  border-top: 1px solid var(--border);
}
.portal-footer-brand strong { font-size: 18px; }
.portal-footer-brand p { margin-top: 4px; font-size: 12.5px; }
.portal-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.portal-footer-col { display: grid; gap: 6px; align-content: start; }
.portal-footer-title { font-size: 12px; font-weight: 700; color: var(--text); }
.portal-footer-col .ca-muted, .portal-footer-col .ca-link-btn { font-size: 12.5px; text-align: left; padding: 0; color: var(--muted); }
.portal-footer-copy { grid-column: 1 / -1; color: var(--muted-2); font-size: 11.5px; padding-top: 12px; border-top: 1px solid var(--border); }
@media (max-width: 980px) {
  .portal-footer { grid-template-columns: 1fr; }
  .portal-footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* full-width portal header with divider line, inner content aligned to 1440 */
.ca-public-header {
  max-width: none;
  padding: 0;
  background: var(--bg);
  backdrop-filter: none;
  border-bottom: 1px solid var(--border);
}
.ca-public-header-inner {
  width: 100%;
  max-width: var(--portal-max);
  margin: 0 auto;
  padding: 0 48px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 12px;
}
.ca-public-header .portal-nav { margin-left: 24px; gap: 2px; }
.ca-public-header .portal-nav-item { padding: 8px 12px; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); }
.ca-public-header .portal-nav-item:hover { color: var(--text); background: transparent; }
.ca-public-header .portal-nav-item.portal-nav-active { color: var(--accent-ink); font-weight: 700; border-bottom-color: var(--accent); background: transparent; }
.portal-page-head { display: grid; gap: 10px; padding: 22px 0 10px; }
.portal-page-head h1 { margin: 0; font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -.6px; }
.portal-page-head .portal-lede { max-width: 820px; }
.portal-feature-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-feature-grid { margin-top: 4px; }
.portal-course-grid-wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.portal-home-courses { display: grid; gap: 12px; }
.portal-scenario-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portal-scenario { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); display: grid; gap: 8px; }
.portal-scenario h3 { margin: 0; font-size: 17px; }
.portal-scenario-list { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; display: grid; gap: 4px; }
.portal-about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 36px; padding: 12px 0; }
.portal-about-copy h2 { margin: 18px 0 6px; font-size: 18px; }
.portal-about-copy h2:first-child { margin-top: 0; }
.portal-about-copy p { margin: 0 0 8px; line-height: 1.8; }
.portal-about-facts { display: grid; gap: 10px; align-content: start; }
.portal-about-fact { padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #fff; display: grid; gap: 2px; }
.portal-about-fact strong { font-size: 26px; }
.portal-about-fact span { color: var(--muted); font-size: 12px; }
@media (max-width: 1280px) {
  .ca-public-header-inner { padding: 0 32px; }
}
@media (max-width: 980px) {
  .ca-public-header-inner { padding: 0 16px; }
  .portal-feature-strip, .portal-scenario-grid, .portal-about-grid { grid-template-columns: 1fr; }
}

/* portal richer sections */
.portal-band { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; padding: 4px 0 8px; }
.portal-band-item { padding: 15px 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; display: grid; gap: 2px; }
.portal-band-item strong { color: var(--accent-ink); font-size: 19px; }
.portal-band-item span { font-size: 12.5px; font-weight: 700; }
.portal-band-item small { color: var(--muted); font-size: 10.5px; line-height: 1.5; }
.portal-steps { display: grid; gap: 12px; }
.portal-step-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.portal-step { padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: #fff; display: grid; gap: 7px; }
.portal-step > span { color: var(--accent-ink); font: 700 10px var(--mono); }
.portal-step h3 { margin: 0; font-size: 14px; }
.portal-step p { margin: 0; font-size: 11.5px; line-height: 1.65; }
.portal-form-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; }
.portal-form { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: grid; gap: 2px; }
.portal-form strong { font-size: 12.5px; }
.portal-form span { color: var(--muted); font-size: 10.5px; }
.portal-boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.portal-boundary-card { padding: 18px 20px; border: 1px solid var(--border); border-radius: 13px; background: #fff; }
.portal-boundary-card h2 { margin: 0 0 8px; font-size: 14px; }
.portal-boundary-list { margin: 0; padding-left: 17px; display: grid; gap: 5px; color: var(--muted); font-size: 11.5px; }
.portal-principles { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.portal-principle { padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.portal-principle h3 { margin: 0 0 5px; font-size: 13px; }
.portal-principle p { margin: 0; font-size: 11px; line-height: 1.6; }
.portal-timeline { display: grid; gap: 8px; }
.portal-timeline-row { display: grid; grid-template-columns: 70px 180px minmax(0,1fr); gap: 12px; align-items: baseline; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.portal-timeline-row span { color: var(--accent-ink); font: 700 10px var(--mono); }
.portal-timeline-row strong { font-size: 12.5px; }
.portal-timeline-row p { margin: 0; font-size: 11px; }
@media (max-width: 980px) {
  .portal-band, .portal-step-grid, .portal-form-strip, .portal-principles { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .portal-boundary { grid-template-columns: 1fr; }
  .portal-timeline-row { grid-template-columns: 1fr; gap: 3px; }
}

/* professional public course cards */
.portal-course { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; text-align: left; align-items: stretch; }
.portal-course-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0b1f16, #2f6b4a); overflow: hidden; }
.portal-course-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portal-course-cover-mark { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 800; }
.portal-course-type { position: absolute; left: 10px; bottom: 10px; padding: 3px 7px; border-radius: 999px; background: rgba(6,20,12,.72); color: #dff4e8; font-size: 10px; }
.portal-course-body { display: grid; gap: 5px; padding: 13px 15px 15px; min-width: 0; }
.portal-course-name { font-size: 14px; font-weight: 700; line-height: 1.4; }
.portal-course-desc { color: var(--muted); font-size: 11.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.portal-course-meta { display: flex; gap: 8px; color: var(--muted); font-size: 10px; }
.portal-course-outcomes { display: flex; gap: 5px; flex-wrap: wrap; }
.portal-course-outcomes span { padding: 2px 7px; border-radius: 999px; background: #f2f8f4; color: var(--muted); font-size: 9.5px; }
.portal-course-enter { margin-top: 3px; }
.portal-course-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ---- 60-learning.css ---- */
.catalog-page { max-width: 1040px; margin: 0 auto; display: grid; gap: 16px; }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.catalog-head h2 { font-size: 26px; margin-bottom: 4px; }
.catalog-head p { color: var(--muted); font-size: 13px; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; align-items: stretch; }
.catalog-card {
  display: flex; align-items: stretch; gap: 14px;
  padding: 18px; min-height: 160px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-xs);
}
.catalog-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.catalog-icon {
  flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; background: linear-gradient(145deg, #eafaf0, #d8f0e2);
  border: 1px solid var(--accent-line); color: var(--accent-ink); font-weight: 700;
}
.catalog-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.catalog-body h3 { margin: 0; font-size: 15px; }
.catalog-body p {
  margin: 0; color: var(--muted); font-size: 12.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.catalog-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 22px; font-size: 12px; color: var(--muted); }
.catalog-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }

/* learning center workspace */
.learn-page { display: grid; gap: 20px; }
.learn-kicker { color: var(--accent-ink); font: 700 10px var(--mono); letter-spacing: .14em; }
.learn-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px 32px; border-radius: 18px; background: linear-gradient(120deg, #0d2117, #1c4630 60%, #2f6b4a); color: #eaf6ee; overflow: hidden; }
.learn-hero h1 { margin: 8px 0 6px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.6px; }
.learn-lede { margin: 0; color: #b9d5c3; font-size: 13px; line-height: 1.75; max-width: 640px; }
.learn-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.learn-hero-orbit { width: 92px; height: 92px; flex: none; display: grid; place-items: center; border-radius: 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 34px; font-weight: 800; }
.learn-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.learn-stat { padding: 16px 18px; border: 1px solid var(--border); border-radius: 13px; background: #fff; display: grid; gap: 2px; }
.learn-stat strong { font-size: 25px; }
.learn-stat span { font-size: 12px; color: var(--text); }
.learn-stat small { font-size: 10.5px; color: var(--muted); }
.learn-panel { padding: 20px 22px; border: 1px solid var(--border); border-radius: 15px; background: #fff; display: grid; gap: 14px; min-width: 0; }
.learn-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.learn-panel-head h3 { margin: 0; font-size: 15px; }
.learn-two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; align-items: start; }
.learn-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.learn-course-card { border: 1px solid var(--border); border-radius: 13px; background: #fff; overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; display: flex; flex-direction: column; }
.learn-course-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.learn-course-top { position: relative; }
.learn-cover { position: relative; height: 126px; background: linear-gradient(135deg, #0d2117, #2f6b4a); display: grid; place-items: center; overflow: hidden; }
.learn-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.learn-cover-mark { font-size: 34px; font-weight: 800; color: #fff; }
.learn-cover-type { position: absolute; left: 10px; bottom: 10px; padding: 3px 7px; border-radius: 999px; background: rgba(8,22,14,.72); color: #d9efe0; font-size: 10px; }
.learn-fav { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(8,22,14,.5); color: #fff; cursor: pointer; }
.learn-fav-on { color: #ffd166; }
.learn-course-body { padding: 13px 14px 14px; display: grid; gap: 7px; flex: 1; }
.learn-course-body h3 { margin: 0; font-size: 14px; line-height: 1.4; }
.learn-course-desc { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.learn-course-meta { display: flex; gap: 5px; flex-wrap: wrap; }
.learn-chip { padding: 2px 7px; border-radius: 999px; background: #f1f6f2; color: var(--muted); font-size: 10px; }
.learn-course-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.learn-course-actions .ca-btn { padding: 5px 10px; font-size: 11px; }
.learn-progress { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted); }
.learn-track { flex: 1; height: 4px; background: var(--border); border-radius: 99px; overflow: hidden; }
.learn-track-fill { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.learn-link { border: 0; background: transparent; color: var(--accent-ink); font-size: 11px; cursor: pointer; }
.learn-recommends { display: grid; gap: 7px; }
.learn-recommend { display: flex; gap: 10px; align-items: flex-start; padding: 10px 4px; border: 0; border-top: 1px solid var(--border); background: transparent; text-align: left; cursor: pointer; color: var(--text); }
.learn-recommend:hover { background: #f8fbf9; }
.learn-recommend-mark { color: var(--accent-ink); }
.learn-recommend-body { display: grid; gap: 2px; }
.learn-recommend-body strong { font-size: 12.5px; }
.learn-recommend-body span { font-size: 11px; color: var(--muted); }
.learn-bars { height: 162px; display: flex; align-items: flex-end; gap: 10px; padding: 0 4px; }
.learn-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.learn-bar-value { color: var(--muted); font-size: 9px; }
.learn-bar { width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent), #82c59b); min-height: 4px; }
.learn-bar-label { color: var(--muted); font-size: 9.5px; }
.learn-insights { display: grid; gap: 7px; }
.learn-insight { padding: 9px 11px; border-left: 2px solid var(--accent); background: #f7fbf8; border-radius: 0 7px 7px 0; color: var(--muted); font-size: 11.5px; line-height: 1.6; }
.learn-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.learn-page-head h1 { margin: 7px 0 4px; font-size: 28px; }
.learn-search { width: min(320px, 100%); }
.learn-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.learn-type-list { display: grid; gap: 10px; }
.learn-type-row { display: grid; grid-template-columns: 70px minmax(0,1fr) 80px; gap: 10px; align-items: center; font-size: 11.5px; }
.learn-type-bar { height: 7px; border-radius: 99px; background: var(--border); overflow: hidden; }
.learn-type-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #82c59b); }
.learn-progress-list { display: grid; gap: 8px; }
.learn-progress-row { display: grid; grid-template-columns: minmax(0,1fr) 42px minmax(80px,.7fr); gap: 10px; align-items: center; border: 0; background: transparent; padding: 7px 2px; border-top: 1px solid var(--border); cursor: pointer; text-align: left; color: var(--text); }
.learn-progress-name { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.learn-progress-value { font-size: 10.5px; color: var(--muted); text-align: right; }
.learn-progress-track { height: 5px; border-radius: 99px; background: var(--border); overflow: hidden; }
.learn-progress-track span { display: block; height: 100%; background: var(--accent); }
@media (max-width: 980px) {
  .learn-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .learn-two-col { grid-template-columns: 1fr; }
  .learn-hero { padding: 22px; }
  .learn-hero-orbit { display: none; }
  .learn-page-head { align-items: flex-start; }
}
.learn-heatmap { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.learn-heat-cell { width: 100%; aspect-ratio: 1; border-radius: 3px; background: #edf3ef; display: inline-block; }
.learn-heat-1 { background: #cfe8d8; }
.learn-heat-2 { background: #9bd2b0; }
.learn-heat-3 { background: #5eb681; }
.learn-heat-4 { background: #2f8f5b; }
.learn-heat-legend { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 9px; margin-top: 2px; }
.learn-heat-legend .learn-heat-cell { width: 14px; aspect-ratio: 1; }
.learn-donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.learn-donut { width: 132px; height: 132px; border-radius: 50%; flex: none; display: grid; place-items: center; position: relative; }
.learn-donut::after { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: #fff; }
.learn-donut-center { position: relative; z-index: 1; display: grid; gap: 1px; text-align: center; }
.learn-donut-center strong { font-size: 21px; }
.learn-donut-center span { color: var(--muted); font-size: 9px; }
.learn-donut-legend { display: grid; gap: 7px; flex: 1; min-width: 120px; }
.learn-donut-row { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.learn-donut-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.learn-donut-row .ca-muted { margin-left: auto; font-size: 10px; }
.learn-data-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.learn-data-strip-item { padding: 11px 14px; border: 1px solid var(--border); border-radius: 11px; background: #fff; display: grid; gap: 1px; }
.learn-data-strip-item span { color: var(--muted); font-size: 10px; }
.learn-data-strip-item strong { font-size: 16px; }
.learn-data-strip-item small { color: var(--muted); font-size: 9.5px; }
@media (max-width: 980px) { .learn-data-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.learn-profile-dna { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.learn-profile-dna-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fafcf9; display: grid; gap: 1px; }
.learn-profile-dna-item span { color: var(--muted); font-size: 9.5px; }
.learn-profile-dna-item strong { font-size: 14px; }
.learn-profile-dna-item small { color: var(--muted); font-size: 9.5px; }
.learn-account { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 11px; flex-wrap: wrap; }
.learn-account-label { color: var(--muted); font-size: 9.5px; }
.learn-profile-inline { margin-top: 2px; }
.learn-coach { padding: 18px 20px; border: 1px solid var(--accent-line); border-radius: 15px; background: linear-gradient(120deg, #f2faf5, #ffffff 65%); display: grid; gap: 10px; }
.learn-coach-head { display: flex; align-items: center; gap: 12px; }
.learn-coach-orb { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, #2f8f5b, #0d3a22); color: #dff4e6; font-size: 11px; font-weight: 800; }
.learn-coach-head > div { display: grid; gap: 2px; flex: 1; }
.learn-coach-head strong { font-size: 13px; }
.learn-coach-head span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.learn-coach-btn { border: 1px solid var(--accent); background: #fff; color: var(--accent-ink); padding: 7px 11px; border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.learn-coach-btn:hover { background: var(--accent-soft); }
.learn-coach-btn:disabled { opacity: .55; cursor: wait; }
.learn-coach-text { margin: 0; padding: 12px 14px; border-radius: 9px; background: #fff; border: 1px solid var(--border); color: var(--text); font-size: 12.5px; line-height: 1.85; white-space: pre-wrap; }
.learn-coach-source { color: var(--muted); font-size: 9.5px; }
.learn-hero-ai { flex: none; display: grid; gap: 4px; align-content: center; justify-items: end; text-align: right; padding: 14px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.08); min-width: 210px; }
.learn-hero-ai-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.18); color: #fff; font: 700 9px var(--mono); }
.learn-hero-ai strong { color: #fff; font-size: 12.5px; }
.learn-hero-ai span:last-child { color: #b9d5c3; font-size: 10px; }
.learn-password-form { display: grid; gap: 10px; }
.learn-field { display: grid; gap: 5px; font-size: 11px; color: var(--muted); }
.learn-field .ca-input { width: 100%; }
.learn-account .learn-link { margin-left: auto; }

/* ---- 70-course.css ---- */
.course-page { max-width: 1120px; margin: 0 auto; display: grid; gap: 14px; }
.course-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.course-head h2 { margin: 6px 0; font-size: 28px; }
.course-head p { color: var(--muted); font-size: 13px; }
.course-eyebrow { color: var(--accent-ink); font-size: 11px; letter-spacing: .14em; font-weight: 700; }
.course-progress-badge {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff;
  box-shadow: var(--shadow-xs);
}
.course-progress-badge strong { font-size: 24px; color: var(--accent-ink); }
.course-progress-badge span { color: var(--muted); font-size: 12px; }
.course-progress { display: flex; align-items: center; gap: 12px; }
.course-bar { flex: 1; height: 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.course-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #35c97d); }
.course-enroll {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border: 1px dashed var(--accent-line); border-radius: var(--radius);
  background: #f6fbf8;
}
.course-enroll p { color: var(--muted); font-size: 13px; }
.course-reader { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.course-toc {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: grid; gap: 4px; padding: 10px;
  max-height: calc(100vh - var(--header-h) - 48px); overflow: auto;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-xs);
}
.course-toc-title { padding: 6px 10px 8px; color: var(--muted); font-size: 11.5px; }
.course-toc-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: transparent; color: var(--text); text-align: left; cursor: pointer;
}
.course-toc-item:hover { background: #f4faf6; }
.course-toc-active { background: var(--accent-soft); border-color: var(--accent-line); }
.course-toc-index { flex: 0 0 22px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.course-toc-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.course-toc-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-toc-meta { color: var(--muted); font-size: 11px; }
.course-toc-mark { color: var(--accent-ink); font-size: 12px; }
.course-toc-done .course-toc-name { color: var(--muted-2); }
.course-reader-main {
  display: grid; gap: 16px; padding: 28px 30px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-xs);
}
.course-content-head h3 { margin: 6px 0; font-size: 23px; }
.course-content-head p { color: var(--muted); font-size: 13px; }
.course-prose { color: var(--text-2); font-size: 14.5px; line-height: 1.85; }
.course-prose p { margin: 0 0 12px; }
.course-prose-h { margin: 20px 0 8px; font-size: 17px; color: var(--text); }
.course-prose-list { margin: 0 0 14px; padding-left: 20px; }
.course-prose-list li { margin: 5px 0; }
.course-code {
  margin: 0 0 14px; padding: 14px; border-radius: var(--radius-sm);
  border: 1px solid #1d3328; background: #0e1a14; color: #c9f0d9;
  font: 12.5px/1.6 var(--mono); overflow: auto;
}
.course-content-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding-top: 6px; }
.course-content-actions .ca-btn:first-child { margin-right: auto; }

.course-notes { margin-top: 18px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; display: grid; gap: 12px; }
.course-notes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.course-notes-head h3 { margin: 0; font-size: 15px; }
.course-note-list { display: grid; gap: 8px; }
.course-note-item { padding: 10px 12px; border-radius: 9px; background: #f7faf6; border: 1px solid #e8f0e9; display: grid; gap: 4px; }
.course-note-item p { margin: 0; font-size: 13px; color: #354139; white-space: pre-wrap; }
.course-note-form { display: flex; gap: 8px; }
.course-note-form .ca-input { flex: 1; }

/* course type variants */
.course-video-hero { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 14px; background: linear-gradient(135deg, #0c1f16, #173826); color: #e6f4ea; }
.course-video-play { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 18px; }
.course-video-hero h3 { margin: 0 0 4px; font-size: 15px; color: #fff; }
.course-video-hero p { margin: 0; color: #b9d5c3; font-size: 12.5px; }
.course-workbench-note, .course-interactive-note { padding: 18px 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.course-workbench-note h3, .course-interactive-note h3 { margin: 0 0 4px; font-size: 15px; }
.course-workbench-note p, .course-interactive-note p { margin: 0; font-size: 12.5px; }
.course-reader-workspace { grid-template-columns: 280px minmax(0, 1fr); }
.course-reader-immersive { grid-template-columns: 240px minmax(0, 1fr); }
.course-reader-immersive .course-reader-main { border-color: var(--accent-line); }
@media (max-width: 980px) { .course-reader-workspace, .course-reader-immersive { grid-template-columns: 1fr; } }

.course-exercise { margin-top: 18px; padding: 20px; border: 1px solid var(--border); border-radius: 14px; background: #fff; display: grid; gap: 10px; }
.course-exercise h3 { margin: 0; font-size: 15px; }
.course-exercise p { margin: 0; font-size: 12.5px; }
.course-exercise-input { min-height: 96px; resize: vertical; }

/* structurally different course layouts */
.course-reader-video { display: flex; flex-direction: column; gap: 14px; }
.course-reader-video .course-reader-main { order: 1; width: 100%; }
.course-reader-video .course-toc { order: 2; position: static; display: flex; gap: 8px; overflow-x: auto; padding: 10px; }
.course-reader-video .course-toc-title { display: none; }
.course-reader-video .course-toc-item { min-width: 190px; flex: none; }
.course-reader-interactive { display: block; }
.course-reader-interactive .course-toc { display: none; }
.course-reader-interactive .course-reader-main { max-width: 820px; margin: 0 auto; border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.course-step-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.course-step { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--muted); font-size: 12px; white-space: nowrap; cursor: pointer; }
.course-step-index { font-family: var(--mono); font-size: 10px; }
.course-step-active { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); font-weight: 700; }
.course-step-done .course-step-index { color: var(--accent); }
.course-step-done::after { content: '✓'; color: var(--accent); font-weight: 700; }
@media (max-width: 980px) { .course-reader-video .course-toc { order: 0; } }

/* video player, quiz and code lab */
.course-video-player { width: 100%; border-radius: 12px; background: #0c1f16; margin-bottom: 16px; aspect-ratio: 16 / 9; }
.course-video-placeholder { display: flex; align-items: center; gap: 12px; padding: 22px; margin-bottom: 16px; border-radius: 12px; background: #0f1f17; color: #dcefe2; font-size: 13px; }
.course-video-play { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); }
.course-exercise-card, .course-quiz-card { margin-top: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: #fff; display: grid; gap: 10px; }
.course-exercise-card h3, .course-quiz-card h3 { margin: 0; font-size: 15px; }
.course-exercise-label { color: var(--accent-ink); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.course-code-editor { width: 100%; min-height: 160px; resize: vertical; padding: 12px; border: 1px solid #1d3328; border-radius: 10px; background: #0e1a14; color: #c9f0d9; font: 12.5px/1.6 var(--mono); }
.course-exercise-actions { display: flex; justify-content: flex-end; }
.course-code-output { margin: 0; padding: 12px; border-radius: 9px; background: #f6f9f5; border: 1px solid var(--border); color: #354139; font: 12px/1.6 var(--mono); white-space: pre-wrap; }
.course-exercise-pass { border-color: var(--accent-line); }
.course-quiz-options { display: grid; gap: 8px; }
.course-quiz-option { text-align: left; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: #fff; font-size: 13px; cursor: pointer; }
.course-quiz-option:hover { border-color: var(--accent-line); }
.course-quiz-correct { border-color: var(--accent); background: var(--accent-soft); }
.course-quiz-wrong { border-color: #d93025; background: #fff4f3; }

/* course app = standalone shell, no platform rail/topnav */
.shell-course .ca-header { max-width: var(--portal-max); margin: 0 auto; background: var(--bg); }
.shell-course .ca-main { max-width: 1360px; padding: 0 40px 56px; }
.shell-course .ca-app-content { max-width: none; }
.shell-course .ca-brand-secondary { color: var(--text); font-weight: 600; }
.course-back { display: inline-flex; align-items: center; gap: 4px; margin: 14px 0 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.course-back:hover { color: var(--accent-ink); }
@media (max-width: 980px) { .shell-course .ca-main { padding: 0 16px 40px; } }

/* course detail landing */
.course-detail { display: grid; gap: 18px; }
.course-detail-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 28px; align-items: stretch; padding: 24px 0 6px; }
.course-detail-copy { display: grid; gap: 12px; align-content: start; }
.course-detail-copy h1 { margin: 0; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.7px; line-height: 1.15; }
.course-detail-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 760px; }
.course-detail-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.course-detail-stat { min-width: 96px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; display: grid; gap: 2px; }
.course-detail-stat strong { font-size: 20px; }
.course-detail-stat span { font-size: 11px; color: var(--muted); }
.course-detail-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.course-detail-cover { position: relative; aspect-ratio: 16 / 9; min-height: 0; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #0d2117, #1d4630 60%, #2f6b4a); color: #e9f6ee; display: grid; align-content: end; gap: 6px; padding: 24px; }
.course-detail-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-detail-cover-mark { font-size: 58px; font-weight: 800; line-height: 1; opacity: .9; }
.course-detail-cover-title { font-size: 18px; font-weight: 700; max-width: 90%; }
.course-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.course-detail-card { padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.course-detail-card h2 { margin: 0 0 10px; font-size: 16px; }
.course-detail-list { margin: 0; padding-left: 18px; display: grid; gap: 7px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.course-detail-directory { padding: 20px 22px 8px; }
.course-detail-dir-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.course-detail-dir-head h2 { margin: 0; }
.course-detail-chapter { width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 4px; border: 0; border-top: 1px solid var(--border); background: transparent; text-align: left; cursor: pointer; }
.course-detail-chapter:hover { background: #f7fbf8; }
.course-detail-chapter-index { font-family: var(--mono); font-size: 11px; color: var(--accent-ink); }
.course-detail-chapter-body { flex: 1; display: grid; gap: 2px; min-width: 0; }
.course-detail-chapter-body strong { font-size: 13.5px; }
.course-detail-chapter-body span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.course-detail-chapter-minutes { color: var(--muted); font-size: 11px; white-space: nowrap; }
@media (max-width: 980px) {
  .course-detail-hero, .course-detail-grid { grid-template-columns: 1fr; }
  .course-detail-cover { min-height: 160px; }
  .course-detail-chapter-body span { white-space: normal; }
}

/* scene flow course */
.course-scene-top { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.course-scene-progress { font-size: 11px; color: var(--muted); white-space: nowrap; font-family: var(--mono); }
.course-scene-track { flex: 1; height: 4px; border-radius: 999px; background: var(--border); overflow: hidden; }
.course-scene-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .2s ease; }
.course-scene { display: grid; gap: 12px; }
.course-scene-label { width: fit-content; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.course-scene-title { margin: 0; font-size: 20px; }
.course-scene-placeholder { display: grid; place-items: center; min-height: 220px; border-radius: 12px; background: #0f1f17; color: #b9d5c3; font-size: 13px; }
.course-scene-files { display: grid; gap: 8px; }
.course-scene-file { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); text-decoration: none; }
.course-scene-file:hover { border-color: var(--accent-line); }
.course-scene-choices { display: flex; gap: 10px; flex-wrap: wrap; }
.course-scene-nav { display: flex; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.course-question-scene { display: grid; gap: 12px; }
.course-question-scene h3 { margin: 0; font-size: 18px; line-height: 1.55; }
.course-question-options { display: grid; gap: 8px; }
.course-question-option { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: #fff; text-align: left; font-size: 13px; cursor: pointer; }
.course-question-option:hover { border-color: var(--accent-line); }
.course-question-selected { border-color: var(--accent); background: var(--accent-soft); }
.course-question-letter { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #f1f6f2; color: var(--accent-ink); font-size: 11px; font-weight: 700; }
.course-question-result { padding: 12px 14px; border-radius: 10px; background: #f7fbf8; border: 1px solid var(--border); }
.course-question-correct { border-color: var(--accent-line); }
.course-question-wrong { border-color: #e8b4ae; background: #fff7f6; }
.course-question-result p { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.course-reader-interactive.course-reader-scenes { display: grid; grid-template-columns: 260px minmax(0, 1fr); }
.course-reader-interactive.course-reader-scenes .course-toc { display: block; }
@media (max-width: 980px) { .course-reader-interactive.course-reader-scenes { display: block; } .course-reader-interactive.course-reader-scenes .course-toc { display: none; } }
.course-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 12.5px; }
.course-table th { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--border); color: var(--accent-ink); background: var(--accent-soft); }
.course-table td { padding: 9px 11px; border-bottom: 1px solid var(--border); color: var(--muted); vertical-align: top; }

/* ---- 71-demand-course.css ---- */
.shell-chrome-none .ca-app-content { max-width: none; padding: 0; }
.shell-chrome-none .ca-main { max-width: none; padding: 0; }
.demand-app { min-height: 100vh; background: radial-gradient(1200px 600px at 80% -10%, #14385f 0%, transparent 60%), #071427; color: #eaf3ff; font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.demand-top { height: 64px; display: flex; align-items: center; gap: 24px; padding: 0 max(24px, calc((100vw - 1360px)/2)); border-bottom: 1px solid rgba(47,168,255,.18); background: rgba(5,15,30,.72); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); }
.demand-brand { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #eaf3ff; cursor: pointer; text-align: left; }
.demand-brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, #2fa8ff, #00e5d0); color: #04101f; font-weight: 800; }
.demand-brand-copy { display: grid; gap: 1px; }
.demand-brand-copy strong { font-size: 13px; }
.demand-brand-copy span { color: #8fb8de; font-size: 10px; letter-spacing: .06em; }
.demand-trail { display: flex; align-items: center; gap: 8px; color: #6f96b8; font-size: 12px; }
.demand-trail-active { color: #00e5d0; }
.demand-trail-sep { color: #31506e; }
.demand-top-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.demand-progress-label { color: #8fb8de; font-size: 11px; }
.demand-ghost-btn, .demand-primary { border-radius: 8px; padding: 9px 14px; font-size: 12px; cursor: pointer; }
.demand-ghost-btn { border: 1px solid rgba(143,184,222,.28); background: transparent; color: #b9d5ea; }
.demand-ghost-btn:hover { border-color: #2fa8ff; color: #fff; }
.demand-primary { border: 1px solid #2fa8ff; background: linear-gradient(135deg, #2fa8ff, #1976c9); color: #fff; font-weight: 700; }
.demand-primary:disabled, .demand-ghost-btn:disabled { opacity: .45; cursor: not-allowed; }
.demand-detail, .demand-learn { max-width: 1360px; margin: 0 auto; padding: 42px 24px 72px; }
.demand-kicker { color: #2fa8ff; font: 700 10px/1.4 "SFMono-Regular", Consolas, monospace; letter-spacing: .16em; }
.demand-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 42px; align-items: center; }
.demand-hero h1 { margin: 12px 0 10px; font-size: clamp(38px,5vw,64px); line-height: 1.08; letter-spacing: -1.5px; color: #fff; }
.demand-lede { max-width: 700px; margin: 0; color: #9fc0db; line-height: 1.8; font-size: 14px; }
.demand-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.demand-fact { min-width: 98px; padding: 11px 14px; border: 1px solid rgba(47,168,255,.2); border-radius: 10px; background: rgba(12,37,63,.5); display: grid; gap: 2px; }
.demand-fact strong { color: #00e5d0; font-size: 21px; }
.demand-fact span { color: #7da2c0; font-size: 10px; }
.demand-actions { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.demand-status { color: #00e5d0; font-size: 11px; }
.demand-cover { position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(47,168,255,.3); background: #0b2240; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.demand-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demand-cover-mark { position: absolute; left: 26px; bottom: 24px; font-size: 56px; font-weight: 800; }
.demand-brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.demand-brief-card { border: 1px solid rgba(47,168,255,.16); border-radius: 12px; padding: 20px 22px; background: rgba(10,28,49,.55); }
.demand-brief-card h2 { margin: 0 0 10px; font-size: 15px; color: #fff; }
.demand-bullets { margin: 0; padding-left: 17px; display: grid; gap: 6px; color: #9fc0db; font-size: 12.5px; line-height: 1.7; }
.demand-map { margin-top: 34px; }
.demand-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.demand-section-head h2 { margin: 0; font-size: 18px; color: #fff; }
.demand-section-head span { color: #6f96b8; font-size: 11px; }
.demand-route { display: grid; gap: 8px; }
.demand-route-node { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid rgba(47,168,255,.14); border-radius: 10px; background: rgba(10,28,49,.42); color: #dbeaf6; text-align: left; cursor: pointer; }
.demand-route-node:hover { border-color: #2fa8ff; background: rgba(19,52,85,.7); }
.demand-route-index { color: #2fa8ff; font: 700 11px "SFMono-Regular", monospace; }
.demand-route-body { flex: 1; display: grid; gap: 2px; }
.demand-route-body strong { font-size: 13px; }
.demand-route-body span { color: #7da2c0; font-size: 11px; }
.demand-route-mark { color: #00e5d0; }
.demand-learn { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 26px; align-items: start; }
.demand-rail { position: sticky; top: 88px; display: grid; gap: 5px; }
.demand-rail-head { display: grid; gap: 3px; margin-bottom: 8px; }
.demand-rail-head strong { color: #9fc0db; font-size: 12px; }
.demand-map-node { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #b9d5ea; text-align: left; cursor: pointer; }
.demand-map-node:hover { background: rgba(47,168,255,.08); }
.demand-map-active { border-color: rgba(47,168,255,.55); background: rgba(47,168,255,.12); color: #fff; }
.demand-map-index { color: #2fa8ff; font: 700 10px "SFMono-Regular", monospace; }
.demand-map-label { flex: 1; display: grid; gap: 1px; min-width: 0; }
.demand-map-label strong { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demand-map-label span { color: #6f96b8; font-size: 10px; }
.demand-map-mark { color: #00e5d0; }
.demand-map-done .demand-map-index { color: #00e5d0; }
.demand-rail-exit { margin-top: 14px; padding: 8px 10px; border: 1px solid rgba(143,184,222,.2); border-radius: 8px; background: transparent; color: #8fb8de; text-align: left; cursor: pointer; }
.demand-stage { min-width: 0; }
.demand-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.demand-stage-head h1 { margin: 8px 0 4px; font-size: 26px; color: #fff; }
.demand-hint { margin: 0; color: #7da2c0; font-size: 12.5px; line-height: 1.7; }
.demand-scene-progress { display: grid; gap: 5px; min-width: 160px; text-align: right; color: #8fb8de; font: 600 10px "SFMono-Regular", monospace; }
.demand-track { height: 4px; border-radius: 99px; background: rgba(143,184,222,.18); overflow: hidden; }
.demand-track-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #2fa8ff, #00e5d0); }
.demand-gate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border: 1px solid rgba(0,229,208,.3); border-radius: 10px; background: rgba(0,229,208,.06); }
.demand-gate strong { font-size: 12px; }
.demand-gate p { margin: 0; color: #8fb8de; font-size: 11.5px; flex: 1; }
.demand-gate .demand-primary { padding: 7px 12px; }
.demand-scene { border: 1px solid rgba(47,168,255,.2); border-radius: 14px; background: rgba(8,23,42,.78); padding: 26px 28px 30px; box-shadow: 0 18px 60px rgba(0,0,0,.22); }
.demand-scene-tag { display: inline-flex; padding: 3px 8px; border-radius: 99px; background: rgba(47,168,255,.12); color: #2fa8ff; font: 700 9px "SFMono-Regular", monospace; letter-spacing: .12em; }
.demand-scene h2 { margin: 10px 0 18px; color: #fff; font-size: 22px; line-height: 1.4; }
.demand-prose { color: #bcd3e6; font-size: 14px; line-height: 1.9; }
.demand-prose p { margin: 0 0 10px; }
.demand-prose h2, .demand-prose h3, .demand-prose h4 { color: #eaf3ff; margin: 18px 0 8px; font-size: 17px; }
.demand-prose ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 3px; }
.demand-prose li { color: #bcd3e6; }
.demand-prose strong { color: #fff; }
.demand-inline-code, .demand-prose code { padding: 1px 5px; border-radius: 4px; background: rgba(47,168,255,.12); color: #7ee7dc; font-family: "SFMono-Regular", Consolas, monospace; font-size: .9em; }
.demand-code { overflow: auto; padding: 12px; border-radius: 8px; background: #04101f; color: #9ee8d8; font: 12px/1.6 "SFMono-Regular", Consolas, monospace; }
.demand-quote { margin: 10px 0; padding-left: 12px; border-left: 2px solid #2fa8ff; color: #9fc0db; }
.demand-options { display: grid; gap: 8px; margin: 14px 0; }
.demand-option { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid rgba(143,184,222,.22); border-radius: 9px; background: rgba(8,23,42,.5); color: #c7dced; text-align: left; cursor: pointer; font-size: 13px; }
.demand-option:hover { border-color: #2fa8ff; }
.demand-option-selected { border-color: #00e5d0; background: rgba(0,229,208,.08); }
.demand-option-letter { color: #2fa8ff; font: 700 11px "SFMono-Regular", monospace; }
.demand-verdict { margin-top: 12px; padding: 13px 15px; border-radius: 9px; border: 1px solid rgba(143,184,222,.2); background: rgba(8,23,42,.6); }
.demand-verdict-ok { border-color: rgba(0,229,208,.45); }
.demand-verdict-no { border-color: rgba(255,137,120,.45); }
.demand-verdict p { margin: 6px 0 0; color: #9fc0db; font-size: 12.5px; line-height: 1.7; }
.demand-path-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.demand-path-card { display: grid; gap: 4px; padding: 18px; border: 1px solid rgba(47,168,255,.3); border-radius: 10px; background: rgba(47,168,255,.07); color: #eaf3ff; text-align: left; cursor: pointer; }
.demand-path-card:hover { border-color: #00e5d0; }
.demand-path-card span { color: #8fb8de; font-size: 11px; }
.demand-media-placeholder { display: grid; place-items: center; min-height: 260px; border: 1px dashed rgba(47,168,255,.35); border-radius: 10px; color: #6f96b8; font-size: 12px; }
.demand-video { width: 100%; border-radius: 10px; background: #000; }
.demand-resources { display: grid; gap: 8px; }
.demand-resource { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid rgba(143,184,222,.2); border-radius: 9px; background: rgba(8,23,42,.5); }
.demand-resource-mark { color: #2fa8ff; font: 700 9px "SFMono-Regular", monospace; }
.demand-resource strong { font-size: 12.5px; flex: 1; }
.demand-scene-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.demand-loading, .demand-error { padding: 80px 24px; color: #8fb8de; text-align: center; }
@media (max-width: 980px) {
  .demand-top { gap: 12px; padding: 0 16px; }
  .demand-trail { display: none; }
  .demand-detail, .demand-learn { padding: 24px 16px 48px; }
  .demand-hero, .demand-learn, .demand-brief-grid { grid-template-columns: 1fr; }
  .demand-rail { position: static; display: flex; overflow-x: auto; }
  .demand-map-node { min-width: 180px; }
}
.shell-chrome-none, .shell-chrome-none .ca-app-content, .shell-chrome-none .ca-main { width: 100%; max-width: none; margin: 0; padding: 0; background: #071427; }
.shell-chrome-none .ca-app-content > .ca-main { max-width: none; }
.demand-app { width: 100%; }
.demand-prose-img { display: block; width: min(100%, 760px); max-height: 430px; object-fit: contain; margin: 18px auto 8px; border-radius: 12px; border: 1px solid rgba(47,168,255,.25); background: #071427; }
.demand-resource-link { color: #eaf3ff; text-decoration: none; cursor: pointer; }
.demand-resource-link:hover { border-color: #00e5d0; }
.demand-complete { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 16px; border: 1px solid rgba(0,229,208,.45); border-radius: 12px; background: linear-gradient(135deg, rgba(0,229,208,.1), rgba(47,168,255,.08)); }
.demand-complete strong { color: #00e5d0; font-size: 15px; }
.demand-complete p { margin: 0; flex: 1; color: #9fc0db; font-size: 12px; }
.demand-complete .demand-primary, .demand-complete .demand-ghost-btn { padding: 7px 11px; }
.demand-module-head { margin: 18px 0 4px; padding-top: 10px; border-top: 1px solid rgba(47,168,255,.18); color: #2fa8ff; font: 700 10px "SFMono-Regular", monospace; letter-spacing: .12em; }
.demand-module-head:first-child { border-top: 0; margin-top: 0; }
.demand-rail-module { margin: 12px 0 3px; padding: 4px 8px; border-left: 2px solid #2fa8ff; color: #6f96b8; font: 700 9px "SFMono-Regular", monospace; letter-spacing: .08em; }
.demand-table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 12.5px; }
.demand-table th { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(47,168,255,.35); color: #2fa8ff; font-weight: 700; background: rgba(47,168,255,.06); }
.demand-table td { padding: 10px 12px; border-bottom: 1px solid rgba(143,184,222,.14); color: #bcd3e6; vertical-align: top; line-height: 1.65; }
.demand-table tr:hover td { background: rgba(47,168,255,.04); }

/* ---- 72-prompt-course.css ---- */
.pstudio-app { min-height: 100vh; background: #f4efe5; color: #1d2a3a; font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.pstudio-top { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 max(24px, calc((100vw - 1320px)/2)); border-bottom: 1px solid #ded3c2; background: rgba(248,244,236,.92); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); }
.pstudio-brand { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #1d2a3a; text-align: left; cursor: pointer; }
.pstudio-brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #e6532f; color: #fff; font-weight: 800; }
.pstudio-brand-copy { display: grid; gap: 1px; }
.pstudio-brand-copy strong { font-size: 13px; }
.pstudio-brand-copy span { color: #8a7b68; font-size: 9px; letter-spacing: .08em; }
.pstudio-top-spacer { flex: 1; }
.pstudio-top-right { display: flex; align-items: center; gap: 12px; }
.pstudio-progress { color: #e6532f; font: 700 11px "SFMono-Regular", monospace; }
.pstudio-ghost, .pstudio-primary { border-radius: 7px; padding: 9px 13px; font-size: 12px; cursor: pointer; }
.pstudio-ghost { border: 1px solid #d8c9b2; background: transparent; color: #6f6558; }
.pstudio-ghost:hover { border-color: #e6532f; color: #1d2a3a; }
.pstudio-primary { border: 1px solid #e6532f; background: #e6532f; color: #fff; font-weight: 700; }
.pstudio-primary:disabled, .pstudio-ghost:disabled { opacity: .45; cursor: not-allowed; }
.pstudio-detail, .pstudio-learn { max-width: 1320px; margin: 0 auto; padding: 40px 24px 72px; }
.pstudio-kicker { color: #e6532f; font: 700 10px "SFMono-Regular", monospace; letter-spacing: .14em; }
.pstudio-hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 42px; align-items: center; }
.pstudio-hero h1 { margin: 12px 0 12px; font-size: clamp(36px,4.6vw,58px); line-height: 1.12; letter-spacing: -1.2px; color: #1d2a3a; }
.pstudio-lede { margin: 0; color: #6f6558; line-height: 1.85; font-size: 14px; max-width: 720px; }
.pstudio-facts { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.pstudio-fact { min-width: 86px; padding: 10px 13px; border: 1px solid #ded3c2; border-radius: 9px; background: #fffdf8; display: grid; gap: 2px; }
.pstudio-fact strong { color: #e6532f; font-size: 20px; }
.pstudio-fact span { color: #8a7b68; font-size: 10px; }
.pstudio-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.pstudio-status { color: #6f6558; font-size: 11px; }
.pstudio-cover { aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid #d8c9b2; box-shadow: 0 24px 70px rgba(70,55,35,.14); background: #fffdf8; }
.pstudio-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pstudio-brief { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.pstudio-brief-card { padding: 20px 22px; border: 1px solid #ded3c2; border-radius: 12px; background: #fffdf8; }
.pstudio-brief-card h2 { margin: 0 0 10px; font-size: 15px; }
.pstudio-bullets { margin: 0; padding-left: 17px; display: grid; gap: 6px; color: #6f6558; font-size: 12.5px; line-height: 1.7; }
.pstudio-modules { margin-top: 34px; display: grid; gap: 14px; }
.pstudio-module { border: 1px solid #ded3c2; border-radius: 14px; background: #fffdf8; padding: 18px 20px; }
.pstudio-module h2 { margin: 0 0 8px; font-size: 15px; color: #e6532f; }
.pstudio-lesson { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 4px; border: 0; border-top: 1px solid #eee4d5; background: transparent; text-align: left; cursor: pointer; color: #1d2a3a; }
.pstudio-lesson:hover { background: #faf5ea; }
.pstudio-lesson-index { color: #b7a891; font: 700 10px "SFMono-Regular", monospace; }
.pstudio-lesson-body { flex: 1; display: grid; gap: 2px; }
.pstudio-lesson-body strong { font-size: 13px; }
.pstudio-lesson-body span { color: #8a7b68; font-size: 11px; }
.pstudio-lesson-mark { color: #e6532f; }
.pstudio-learn { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 28px; align-items: start; }
.pstudio-rail { position: sticky; top: 88px; display: grid; gap: 8px; }
.pstudio-module-tabs { display: grid; gap: 3px; }
.pstudio-tab { text-align: left; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #8a7b68; font-size: 11px; cursor: pointer; }
.pstudio-tab:hover { color: #1d2a3a; }
.pstudio-tab-active { border-color: #e6532f; color: #e6532f; background: #fbede7; font-weight: 700; }
.pstudio-lessons { display: grid; gap: 2px; margin-top: 6px; }
.pstudio-rail-lesson { display: flex; align-items: flex-start; gap: 8px; padding: 8px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #6f6558; text-align: left; font-size: 11.5px; cursor: pointer; }
.pstudio-rail-lesson:hover { background: #fbf5e9; }
.pstudio-rail-active { border-color: #e6532f; background: #fffdf8; color: #1d2a3a; font-weight: 700; }
.pstudio-rail-done { color: #3f7a5c; }
.pstudio-exit { margin-top: 12px; text-align: left; }
.pstudio-stage { min-width: 0; }
.pstudio-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.pstudio-stage-head h1 { margin: 7px 0 4px; font-size: 25px; color: #1d2a3a; }
.pstudio-hint { margin: 0; color: #8a7b68; font-size: 12.5px; line-height: 1.7; }
.pstudio-scene-progress { min-width: 150px; display: grid; gap: 5px; text-align: right; color: #8a7b68; font: 600 10px "SFMono-Regular", monospace; }
.pstudio-track { height: 4px; border-radius: 99px; background: #ded3c2; overflow: hidden; }
.pstudio-track-fill { display: block; height: 100%; border-radius: 99px; background: #e6532f; }
.pstudio-gate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; margin-bottom: 14px; border: 1px solid #e8b9a9; border-radius: 10px; background: #fdf1ec; }
.pstudio-gate strong { font-size: 12px; }
.pstudio-gate p { margin: 0; flex: 1; color: #8a7b68; font-size: 11.5px; }
.pstudio-scene { border: 1px solid #ded3c2; border-radius: 14px; background: #fffdf8; padding: 24px 26px 28px; box-shadow: 0 18px 50px rgba(70,55,35,.06); }
.pstudio-scene-tag { display: inline-flex; width: fit-content; padding: 3px 8px; border-radius: 99px; background: #fbede7; color: #e6532f; font: 700 9px "SFMono-Regular", monospace; letter-spacing: .1em; }
.pstudio-scene h2 { margin: 10px 0 14px; font-size: 20px; color: #1d2a3a; }
.pstudio-prose { color: #4d4439; font-size: 14px; line-height: 1.9; }
.pstudio-prose p { margin: 0 0 10px; }
.pstudio-prose h2, .pstudio-prose h3, .pstudio-prose h4 { margin: 17px 0 7px; color: #1d2a3a; font-size: 17px; }
.pstudio-prose ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 3px; }
.pstudio-prose strong { color: #1d2a3a; }
.pstudio-prose code, .pstudio-code { padding: 1px 5px; border-radius: 4px; background: #f3eadb; color: #b44726; font-family: "SFMono-Regular", Consolas, monospace; font-size: .9em; }
.pstudio-pre { overflow: auto; padding: 12px; border-radius: 8px; background: #1d2a3a; color: #f6ead6; font: 12px/1.6 "SFMono-Regular", Consolas, monospace; }
.pstudio-quote { margin: 10px 0; padding-left: 12px; border-left: 2px solid #e6532f; color: #6f6558; }
.pstudio-img { display: block; width: min(100%, 720px); max-height: 400px; object-fit: contain; margin: 14px auto; border-radius: 10px; border: 1px solid #ded3c2; }
.pstudio-table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 12.5px; }
.pstudio-table th { text-align: left; padding: 9px 10px; border-bottom: 1px solid #d8c9b2; color: #b44726; background: #faf3e7; }
.pstudio-table td { padding: 9px 10px; border-bottom: 1px solid #eee4d5; color: #4d4439; }
.pstudio-options { display: grid; gap: 8px; margin: 12px 0; }
.pstudio-option { display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border: 1px solid #ded3c2; border-radius: 8px; background: #fffdf8; color: #4d4439; text-align: left; font-size: 13px; cursor: pointer; }
.pstudio-option:hover { border-color: #e6532f; }
.pstudio-selected { border-color: #e6532f; background: #fdf1ec; }
.pstudio-letter { color: #e6532f; font: 700 11px "SFMono-Regular", monospace; }
.pstudio-verdict { margin-top: 12px; padding: 12px 14px; border-radius: 8px; border: 1px solid #ded3c2; background: #faf6ee; }
.pstudio-verdict-ok { border-color: #9fc7ad; background: #f1f8f3; }
.pstudio-verdict p { margin: 6px 0 0; color: #6f6558; font-size: 12.5px; line-height: 1.7; }
.pstudio-choices { display: grid; gap: 8px; margin-top: 12px; }
.pstudio-choice { text-align: left; padding: 12px 14px; border: 1px solid #ded3c2; border-radius: 8px; background: #fffdf8; color: #1d2a3a; font-size: 13px; cursor: pointer; }
.pstudio-choice:hover { border-color: #e6532f; }
.pstudio-lab { display: grid; gap: 12px; }
.pstudio-editor { width: 100%; min-height: 250px; resize: vertical; padding: 13px; border: 1px solid #d8c9b2; border-radius: 9px; background: #fffdf8; color: #1d2a3a; font: 12.5px/1.7 "SFMono-Regular", Consolas, monospace; }
.pstudio-editor:focus { outline: 2px solid #f0b8a5; border-color: #e6532f; }
.pstudio-lab-actions { display: flex; gap: 8px; justify-content: flex-end; }
.pstudio-criteria { display: grid; gap: 6px; padding: 14px; border: 1px solid #ded3c2; border-radius: 9px; background: #faf6ee; }
.pstudio-score { color: #e6532f; font: 700 11px "SFMono-Regular", monospace; margin-bottom: 2px; }
.pstudio-criterion { color: #8a7b68; font-size: 12px; }
.pstudio-ok { color: #3f7a5c; }
.pstudio-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.pstudio-loading, .pstudio-error { padding: 80px 24px; color: #8a7b68; text-align: center; }
@media (max-width: 980px) {
  .pstudio-top { padding: 0 16px; }
  .pstudio-detail, .pstudio-learn { padding: 24px 16px 48px; }
  .pstudio-hero, .pstudio-learn, .pstudio-brief { grid-template-columns: 1fr; }
  .pstudio-rail { position: static; }
}

/* prompt course focus mode */
.pstudio-learn-wrap { max-width: 1320px; margin: 0 auto; padding: 18px 24px 64px; display: grid; gap: 14px; }
.pstudio-module-bar { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; }
.pstudio-module-step { display: flex; align-items: center; gap: 8px; min-width: 180px; padding: 11px 13px; border: 1px solid #ded3c2; border-radius: 10px; background: #fffdf8; color: #6f6558; text-align: left; font-size: 12px; cursor: pointer; }
.pstudio-module-step:hover { border-color: #e6532f; }
.pstudio-module-step-active { border-color: #e6532f; background: #fdf1ec; color: #1d2a3a; }
.pstudio-module-number { color: #e6532f; font: 700 10px "SFMono-Regular", monospace; }
.pstudio-module-name { flex: 1; font-weight: 700; }
.pstudio-module-count { color: #8a7b68; font-size: 10px; }
.pstudio-learn { display: grid; grid-template-columns: 220px minmax(0,1fr) 230px; gap: 24px; align-items: start; padding: 0; }
.pstudio-rail { position: sticky; top: 80px; display: grid; gap: 8px; padding: 16px; border: 1px solid #ded3c2; border-radius: 12px; background: rgba(255,253,248,.7); }
.pstudio-rail-head { display: grid; gap: 3px; padding-bottom: 8px; border-bottom: 1px solid #eee4d5; }
.pstudio-rail-head h2 { margin: 0; font-size: 14px; color: #1d2a3a; }
.pstudio-rail-count { color: #8a7b68; font-size: 10px; }
.pstudio-lessons { display: grid; gap: 4px; }
.pstudio-rail-lesson { display: flex; gap: 8px; align-items: flex-start; padding: 9px 8px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #6f6558; text-align: left; cursor: pointer; }
.pstudio-rail-lesson:hover { background: #fbf5e9; }
.pstudio-rail-active { border-color: #e6532f; background: #fffdf8; color: #1d2a3a; }
.pstudio-rail-done { color: #3f7a5c; }
.pstudio-lesson-number { color: #b7a891; font: 700 10px "SFMono-Regular", monospace; padding-top: 2px; }
.pstudio-lesson-copy { display: grid; gap: 2px; min-width: 0; }
.pstudio-lesson-copy strong { font-size: 11.5px; line-height: 1.45; }
.pstudio-lesson-copy span { font-size: 9.5px; color: #9a8a76; }
.pstudio-lesson-state { margin-left: auto; color: #e6532f; font-size: 10px; }
.pstudio-stage { min-width: 0; }
.pstudio-stage-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; padding: 6px 2px; }
.pstudio-stage-head h1 { margin: 6px 0 4px; font-size: 25px; color: #1d2a3a; }
.pstudio-scene-progress { min-width: 150px; display: grid; gap: 5px; text-align: right; color: #8a7b68; font: 600 10px "SFMono-Regular", monospace; }
.pstudio-dots { display: flex; gap: 5px; flex-wrap: wrap; padding: 4px 2px; }
.pstudio-dot { min-width: 22px; height: 22px; padding: 0 5px; border: 1px solid #ded3c2; border-radius: 6px; background: #fffdf8; color: #9a8a76; font: 10px "SFMono-Regular", monospace; cursor: pointer; }
.pstudio-dot-active { border-color: #e6532f; background: #fdf1ec; color: #e6532f; font-weight: 700; }
.pstudio-learn-wrap .pstudio-exit { margin-top: 6px; }
.pstudio-learn-wrap .pstudio-nav { padding: 0 2px; }
@media (max-width: 980px) {
  .pstudio-learn-wrap { padding: 14px 16px 40px; }
  .pstudio-learn { grid-template-columns: 1fr; }
  .pstudio-rail { position: static; }
  .pstudio-module-step { min-width: 160px; }
  .pstudio-rail .pstudio-lessons { display: flex; overflow-x: auto; }
  .pstudio-rail-lesson { min-width: 180px; }
}

.pstudio-aside { position: sticky; top: 80px; display: grid; gap: 12px; }
.pstudio-focus-card, .pstudio-mini-card { padding: 16px; border: 1px solid #ded3c2; border-radius: 12px; background: #fffdf8; display: grid; gap: 8px; }
.pstudio-focus-card h2 { margin: 2px 0 0; font-size: 15px; line-height: 1.45; }
.pstudio-focus-progress { display: flex; justify-content: space-between; color: #8a7b68; font-size: 10px; }
.pstudio-tip { padding: 10px; border-left: 2px solid #e6532f; background: #fdf1ec; color: #6f6558; font-size: 11.5px; line-height: 1.65; border-radius: 0 7px 7px 0; }
.pstudio-focus-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pstudio-focus-actions button { padding: 7px 10px; font-size: 11px; }
.pstudio-mini-card strong { font-size: 18px; color: #1d2a3a; }
.pstudio-mini-card p { font-size: 11px; }
@media (max-width: 1180px) { .pstudio-learn { grid-template-columns: 200px minmax(0,1fr); } .pstudio-aside { display: none; } }

/* ---- 80-studio.css ---- */
.studio-page { max-width: 980px; margin: 0 auto; display: grid; gap: 16px; }
.studio-head h2 { font-size: 26px; margin-bottom: 4px; }
.studio-head p { color: var(--muted); font-size: 13px; }
.studio-hint { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.studio-card { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.studio-card h3 { font-size: 16px; }
.studio-textarea { min-height: 96px; }
.studio-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.studio-chip { padding: 6px 10px; border: 1px dashed var(--border-strong); border-radius: 999px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.studio-chip:hover { color: var(--accent-ink); border-color: var(--accent); }
.studio-preview-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.studio-preview-head h3 { margin: 0; }
.studio-badges { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.studio-chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.studio-chapter { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13px; }
.studio-chapter strong { grid-column: 1; grid-row: 1; }
.studio-chapter .todo-badge { grid-column: 2; grid-row: 1; justify-self: end; }
.studio-chapter span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 12px; }
.studio-warning { color: var(--warn); font-size: 12.5px; margin: 0; }
.studio-spec { border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; }
.studio-spec summary { cursor: pointer; padding: 10px 0; font-size: 13px; }
.studio-json { margin: 0 0 12px; padding: 12px; border-radius: var(--radius-sm); background: #0e1a14; color: #c9f0d9; font: 11.5px/1.55 var(--mono); overflow: auto; max-height: 320px; }
.studio-published { border-color: var(--accent-line); background: #fbfefc; }

.studio-course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.studio-course-card {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: #fff; color: var(--text); text-align: left; cursor: pointer;
  box-shadow: var(--shadow-xs);
}
.studio-course-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.studio-course-icon {
  flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink);
  border: 1px solid var(--accent-line); font-weight: 700;
}
.studio-course-body { display: grid; gap: 3px; min-width: 0; }
.studio-course-name { font-weight: 650; font-size: 13.5px; }
.studio-course-meta { color: var(--muted); font-size: 11.5px; }
.studio-template { align-content: start; }

.studio-type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.studio-type { display: grid; gap: 4px; text-align: left; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; }
.studio-type strong { font-size: 13px; }
.studio-type span { font-size: 11.5px; line-height: 1.5; }
.studio-type:hover { border-color: var(--accent-line); }
.studio-type-active { border-color: var(--accent); background: var(--accent-soft); }
@media (max-width: 980px) { .studio-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.studio-preview-type { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11px; font-weight: 700; width: fit-content; }
.studio-preview-drawer h3 { margin: 8px 0 4px; }
.studio-preview-drawer .studio-json { max-height: 240px; }

.studio-library-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.studio-library-tools .ca-search { flex: 1; min-width: 220px; }

.studio-mode-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.studio-mode { padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; font-size: 12px; cursor: pointer; color: var(--muted); }
.studio-mode-active { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.studio-chapter-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.studio-chapter-actions { margin-left: auto; display: flex; gap: 6px; }
.ca-btn-sm { min-height: 26px; padding: 2px 9px; font-size: 11px; }

/* ---- 81-studio-wizard.css ---- */
.studio-page { display: grid; gap: 16px; }
.studio-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.studio-step { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--muted); text-align: left; cursor: pointer; }
.studio-step span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f1f5f2; font-size: 10px; font-weight: 700; }
.studio-step strong { font-size: 12px; }
.studio-step-active { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.studio-step-active span { background: var(--accent); color: #fff; }
.studio-step-done { border-color: var(--accent-line); color: var(--text); }
.studio-project-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.studio-library-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.studio-library-head h1 { margin: 0 0 4px; font-size: 27px; }
.studio-form { display: grid; gap: 11px; }
.studio-field { display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.studio-field .ca-input { width: 100%; }
.studio-subhead { margin-top: 14px; font-size: 12px; font-weight: 700; }
.studio-outline { display: grid; gap: 7px; }
.studio-outline-row { display: grid; grid-template-columns: 36px minmax(0,1fr) minmax(0,1.2fr) 82px auto auto; gap: 8px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.studio-outline-index { color: var(--muted); font: 10px var(--mono); }
.studio-minutes { width: 70px; }
.studio-content-row { grid-template-columns: 36px minmax(0,1fr) auto auto; }
.studio-content-copy { display: grid; gap: 2px; min-width: 0; }
.studio-content-copy strong { font-size: 12px; }
.studio-content-copy span { font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.studio-project-card { display: grid; gap: 7px; text-align: left; padding: 18px; border: 1px solid var(--border); border-radius: 13px; background: #fff; color: var(--text); cursor: pointer; }
.studio-project-card:hover { border-color: var(--accent-line); }
.studio-project-card h3 { margin: 0; font-size: 14px; }
.studio-project-card p { margin: 0; font-size: 11.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.studio-release-done { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--accent-line); border-radius: 10px; background: var(--accent-soft); }
.studio-release-done strong { color: var(--accent-ink); }
.studio-version-list { display: grid; gap: 7px; margin-top: 6px; }
.studio-version-list h4 { margin: 0; font-size: 13px; }
.studio-version-row { display: grid; grid-template-columns: 70px minmax(0,1fr) 160px auto; gap: 9px; align-items: center; padding: 8px; border-top: 1px solid var(--border); font-size: 11px; }
.studio-preview-block { border-top: 1px solid var(--border); padding: 8px 0; }
.studio-preview-block summary { cursor: pointer; font-size: 12px; font-weight: 700; }
.studio-preview-block .studio-json { max-height: 220px; overflow: auto; white-space: pre-wrap; }
@media (max-width: 980px) {
  .studio-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .studio-outline-row { grid-template-columns: 30px minmax(0,1fr) 70px auto; }
  .studio-outline-row > :nth-child(2), .studio-outline-row > :nth-child(3) { grid-column: 2 / 5; }
  .studio-outline-row > :nth-child(4) { grid-column: 2 / 3; }
}

/* Agent creation workspace */
.studio-workspace { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(360px,.92fr); gap: 16px; align-items: start; }
.studio-chat, .studio-preview { border: 1px solid var(--border); border-radius: 14px; background: #fff; min-width: 0; }
.studio-chat { display: flex; flex-direction: column; min-height: 680px; }
.studio-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 8px; }
.studio-chat-head h2 { margin: 4px 0 0; font-size: 18px; }
.studio-kicker { color: var(--accent-ink); font: 700 9px var(--mono); letter-spacing: .14em; }
.studio-agent-roster { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; padding: 8px 18px; }
.studio-agent { display: flex; gap: 7px; align-items: center; padding: 7px 9px; border: 1px solid var(--border); border-radius: 9px; background: #fafcf9; min-width: 0; }
.studio-agent-mark { width: 25px; height: 25px; flex: none; display: grid; place-items: center; border-radius: 7px; background: #eef5ef; color: var(--accent-ink); font: 700 10px var(--mono); }
.studio-agent > div { display: grid; gap: 1px; }
.studio-agent strong { font-size: 10.5px; white-space: nowrap; }
.studio-agent span { color: var(--muted); font-size: 8.5px; white-space: nowrap; }
.studio-agent-active { border-color: var(--accent); background: var(--accent-soft); }
.studio-agent-active .studio-agent-mark { background: var(--accent); color: #fff; }
.studio-chat-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; padding: 4px 18px 10px; }
.studio-chat-step { display: flex; align-items: center; gap: 5px; padding: 6px 7px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); text-align: left; cursor: pointer; font-size: 10px; }
.studio-chat-step span { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #f1f5f2; font: 700 8px var(--mono); }
.studio-chat-step strong { font-weight: 600; }
.studio-chat-step-active { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-ink); }
.studio-chat-step-active span { background: var(--accent); color: #fff; }
.studio-feed { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 10px 18px; max-height: 430px; }
.studio-message { display: flex; gap: 8px; align-items: flex-start; max-width: 92%; }
.studio-message-agent { align-self: flex-start; }
.studio-message-user { align-self: flex-end; flex-direction: row-reverse; }
.studio-message-system { align-self: center; max-width: 100%; }
.studio-message-mark { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 7px; background: #eef5ef; color: var(--accent-ink); font: 700 9px var(--mono); }
.studio-message-body { display: grid; gap: 3px; padding: 9px 11px; border-radius: 10px; background: #f7fbf8; border: 1px solid var(--border); }
.studio-message-user .studio-message-body { background: #eaf6ee; border-color: var(--accent-line); }
.studio-message-system .studio-message-body { background: transparent; border: 0; padding: 2px; text-align: center; }
.studio-message-body p { margin: 0; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.studio-message-agent-name, .studio-message-body > span { color: var(--muted); font-size: 9px; }
.studio-composer { display: flex; gap: 8px; padding: 10px 18px 4px; align-items: flex-end; border-top: 1px solid var(--border); }
.studio-composer textarea { flex: 1; resize: vertical; min-height: 48px; max-height: 140px; }
.studio-chat-actions { display: flex; gap: 7px; flex-wrap: wrap; padding: 6px 18px 16px; }
.studio-chat-actions .ca-btn { padding: 6px 10px; font-size: 11px; }
.studio-preview { position: sticky; top: 77px; min-height: 680px; padding: 18px; }
.studio-preview-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.studio-preview-head h2 { margin: 4px 0 0; font-size: 19px; }
.studio-brief-preview { display: grid; gap: 9px; }
.studio-brief-row { padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.studio-brief-row span { color: var(--muted); font-size: 9.5px; }
.studio-brief-row p { margin: 3px 0 0; font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.studio-outline-preview { display: grid; gap: 5px; }
.studio-outline-preview-row { padding: 10px 11px; border: 1px solid var(--border); border-radius: 8px; background: #fafcf9; font-size: 11.5px; }
.studio-chapter-tabs { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.studio-chapter-tab { padding: 5px 8px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--muted); font-size: 10px; white-space: nowrap; cursor: pointer; }
.studio-chapter-tab-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.studio-content-preview { max-height: 460px; overflow: auto; padding: 12px; border-radius: 9px; background: #f7fbf8; border: 1px solid var(--border); color: var(--text); font: 11.5px/1.8 var(--mono); white-space: pre-wrap; }
.studio-release { display: grid; gap: 10px; }
.studio-release-done { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px; background: var(--accent-soft); border-radius: 8px; }
.studio-release-done strong { color: var(--accent-ink); }
.studio-version-list { display: grid; gap: 6px; }
.studio-version-list h4 { margin: 8px 0 0; font-size: 12px; }
.studio-version-row { display: grid; grid-template-columns: 60px minmax(0,1fr) 150px auto; gap: 8px; align-items: center; padding-top: 6px; border-top: 1px solid var(--border); font-size: 10px; }
@media (max-width: 1100px) { .studio-workspace { grid-template-columns: 1fr; } .studio-preview { position: static; min-height: 0; } }

/* full-width studio + agent dock */
.shell-studio .ca-main { max-width: 1460px; padding: 20px 40px 36px; }
.shell-studio .ca-subnav { max-width: 1460px; padding-left: 40px; padding-right: 40px; }
.studio-page { max-width: none; }
.studio-workspace { grid-template-columns: minmax(0,1.18fr) minmax(380px,.82fr); gap: 18px; }
.studio-agent-dock { padding: 0 18px 8px; }
.studio-agent-open { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 9px; background: #fafcf9; padding: 6px 10px 6px 7px; color: var(--text); cursor: pointer; font-size: 11px; }
.studio-agent-open:hover { border-color: var(--accent-line); background: #f4fbf6; }
.studio-agent-stack { display: flex; align-items: center; }
.studio-agent-stack-mark { width: 23px; height: 23px; margin-left: -5px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; color: #fff; font: 700 8px var(--mono); }
.studio-agent-stack-mark:first-child { margin-left: 0; }
.studio-agent-drawer { display: grid; gap: 8px; }
.studio-agent-drawer-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--border); border-radius: 9px; background: #fafcf9; }
.studio-agent-avatar { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; color: #fff; font: 700 12px var(--mono); }
.studio-agent-drawer-row > div { display: grid; gap: 3px; }
.studio-agent-drawer-row strong { font-size: 12px; }
.studio-agent-drawer-row span { color: var(--muted); font-size: 10px; }
.studio-agent-keywords { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.studio-agent-keywords .learn-chip { font-size: 9px; padding: 1px 6px; }
.studio-chat { min-height: 720px; }
.studio-preview { min-height: 720px; }
.studio-preview { background: linear-gradient(180deg, #fff, #fbfdfb); }
.studio-preview-head { padding-bottom: 12px; border-bottom: 1px solid var(--border); }
@media (max-width: 1100px) { .shell-studio .ca-main { padding: 16px 18px 28px; } .studio-workspace { grid-template-columns: 1fr; } }
.platform-service .ca-main { max-width: 1460px; padding: 20px 40px 36px; }
.platform-service .ca-subnav { max-width: 1460px; padding-left: 40px; padding-right: 40px; }
.studio-start { align-self: flex-start; padding: 8px 14px; font-size: 11.5px; }
.studio-preview-empty { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 520px; text-align: center; border: 1px dashed var(--border); border-radius: 12px; background: linear-gradient(180deg, #fbfdfb, #f6faf7); padding: 28px; }
.studio-preview-empty-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: 24px; }
.studio-preview-empty h3 { margin: 4px 0 0; font-size: 16px; }
.studio-preview-empty p { max-width: 330px; margin: 0; font-size: 11.5px; line-height: 1.7; }
.studio-preview-checklist { display: grid; gap: 4px; margin-top: 6px; color: var(--muted); font-size: 10.5px; text-align: left; }

/* fill-height workspace, readable composer and detailed outline */
.studio-workspace { align-items: stretch; }
.studio-chat { min-height: 640px; height: calc(100vh - 180px); max-height: 840px; }
.studio-preview { min-height: 640px; height: calc(100vh - 180px); max-height: 840px; overflow: auto; }
.studio-feed { max-height: none; min-height: 0; }
.studio-composer { padding-top: 12px; }
.studio-composer textarea { min-height: 76px; max-height: 180px; line-height: 1.65; }
.studio-composer .ca-btn { height: 38px; }
.studio-rich { display: grid; gap: 3px; font-size: 12px; line-height: 1.72; }
.studio-rich strong { font-weight: 750; color: var(--text); }
.studio-rich-item { position: relative; padding-left: 11px; }
.studio-rich-item::before { content: "·"; position: absolute; left: 2px; color: var(--accent); }
.studio-outline-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; margin-bottom: 12px; }
.studio-outline-stat { padding: 8px 9px; border: 1px solid var(--border); border-radius: 8px; background: #fafcf9; display: grid; gap: 1px; }
.studio-outline-stat strong { font-size: 13px; }
.studio-outline-stat span { color: var(--muted); font-size: 9px; }
.studio-outline-module { padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: grid; gap: 7px; }
.studio-outline-module-head { display: flex; gap: 8px; align-items: flex-start; }
.studio-outline-module-head > div { display: grid; gap: 2px; }
.studio-outline-module-head strong { font-size: 12px; }
.studio-outline-module-head span { font-size: 9.5px; }
.studio-outline-module p { margin: 0; font-size: 10.5px; line-height: 1.6; }
.studio-outline-label { color: var(--muted); font-size: 9px; margin-right: 2px; }
.studio-outline-objectives { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.studio-outline-objectives .learn-chip { font-size: 9px; padding: 2px 6px; }
.studio-outline-sections { display: grid; gap: 5px; border-top: 1px dashed var(--border); padding-top: 7px; }
.studio-outline-section { display: grid; gap: 2px; }
.studio-outline-section strong { font-size: 10.5px; }
.studio-outline-points { display: flex; gap: 4px 9px; flex-wrap: wrap; color: var(--muted); font-size: 9.5px; }
.studio-outline-preview { gap: 8px; }
.studio-outline-preview-row { display: none; }
.studio-preview-empty { min-height: 440px; }
@media (max-height: 900px) {
  .studio-chat, .studio-preview { height: auto; min-height: 580px; max-height: none; }
  .studio-feed { max-height: 380px; }
}
.studio-stage-guide { display: flex; gap: 8px; align-items: baseline; margin: 0 18px 8px; padding: 7px 9px; border-radius: 7px; background: #f6faf7; color: var(--muted); font-size: 10px; line-height: 1.5; }
.studio-stage-guide-label { color: var(--accent-ink); font-weight: 700; flex: none; }
.studio-chat-head-actions { display: flex; align-items: center; gap: 8px; }
.studio-save { color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.studio-save-error { color: #b33a3a; }
.studio-preview-tabs { display: flex; gap: 5px; margin: 6px 0 9px; }
.studio-preview-tab { padding: 5px 9px; border: 1px solid var(--border); border-radius: 7px; background: #fff; color: var(--muted); font-size: 10px; cursor: pointer; }
.studio-preview-tab-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.studio-page-frame { display: block; width: 100%; min-height: 420px; height: 46vh; border: 1px solid var(--border); border-radius: 10px; background: #071a13; }
.studio-page-empty { display: grid; place-content: center; gap: 6px; min-height: 320px; padding: 24px; border: 1px dashed var(--border); border-radius: 10px; background: #fbfdfb; text-align: center; }
.studio-page-empty p { max-width: 320px; margin: 0; font-size: 11px; line-height: 1.7; }
.studio-preview-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px; }
.studio-feedback-form { display: grid; gap: 8px; }
.studio-feedback-form .ca-input { width: 100%; }
.studio-agent-engine { width: fit-content; padding: 1px 5px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); font-size: 8px; }
.studio-agent-engine-ok { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }
.studio-app-frame { display: block; width: 100%; height: 58vh; min-height: 480px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }

/* DSH-style vibe + artifact workspace (readable type scale >= 11px) */
.studio-vibe { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(420px,.88fr); gap: 0; border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; min-height: 700px; height: calc(100vh - 156px); max-height: 920px; box-shadow: var(--shadow-xs); }
.studio-vibe-main { display: flex; flex-direction: column; min-width: 0; border-right: 1px solid var(--border); }
.studio-vibe-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 10px; }
.studio-vibe-head h2 { margin: 4px 0 0; font-size: 18px; }
.studio-vibe-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.studio-stage-chip { padding: 5px 10px; border: 1px solid var(--accent-line); border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); font: 700 11.5px var(--mono); cursor: pointer; }
.studio-vibe-agents { display: flex; align-items: center; gap: 10px; margin: 0 20px 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: #fafcf9; color: var(--text); font-size: 12px; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.studio-vibe-agents:hover { border-color: var(--accent-line); background: #f4fbf6; }
.studio-vibe .studio-feed { flex: 1; max-height: none; min-height: 0; padding: 10px 20px; }
.studio-vibe .studio-composer { padding: 10px 20px 8px; }
.studio-vibe .studio-composer textarea { min-height: 76px; font-size: 13.5px; }
.studio-vibe-next { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 20px 16px; }
.studio-vibe-next .ca-btn { padding: 7px 12px; font-size: 12.5px; }
.studio-artifact { display: flex; flex-direction: column; min-width: 0; background: #fbfdfb; }
.studio-artifact-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; }
.studio-artifact-head h2 { margin: 4px 0 0; font-size: 18px; }
.studio-artifact-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.studio-artifact-actions .ca-btn { padding: 6px 11px; font-size: 12px; }
.studio-artifact-tabs { display: flex; gap: 4px; padding: 0 18px 10px; border-bottom: 1px solid var(--border); }
.studio-artifact-tab { padding: 6px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--muted); font-size: 12.5px; cursor: pointer; }
.studio-artifact-tab:hover { color: var(--text); background: #f2f7f3; }
.studio-artifact-tab-active { border-color: var(--border); background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--shadow-xs); }
.studio-artifact-body { flex: 1; min-height: 0; overflow: auto; padding: 14px 18px 18px; }
.studio-doc-pane { display: grid; gap: 12px; }
.studio-doc-fields { display: grid; gap: 10px; }
.studio-doc-field { padding-bottom: 9px; border-bottom: 1px solid var(--border); }
.studio-doc-field span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.studio-doc-field p { margin: 3px 0 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.studio-doc-meta { margin: 0; color: var(--muted); font-size: 12px; }
.studio-doc-module { padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: grid; gap: 6px; }
.studio-doc-module-head { font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.studio-doc-module-head .ca-btn { padding: 4px 9px; font-size: 11.5px; }
.studio-doc-module p { margin: 0; font-size: 12px; line-height: 1.65; }
.studio-doc-section { display: grid; gap: 2px; padding-top: 6px; border-top: 1px dashed var(--border); }
.studio-doc-section strong { font-size: 12px; }
.studio-doc-section span { font-size: 11.5px; }
.studio-doc-deliverable { padding: 5px 8px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px !important; }
.studio-doc-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.studio-doc-nav-item { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--muted); font-size: 12px; cursor: pointer; }
.studio-doc-nav-item b { font: 700 11px var(--mono); color: var(--accent-ink); }
.studio-doc-nav-item.active { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); font-weight: 600; }
.studio-app-file { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: #fff; }
.studio-app-file code { font: 12px var(--mono); color: var(--text); }
.studio-app-file span { font-size: 11.5px; }
.studio-versions-pane { display: grid; gap: 10px; align-content: start; }
.studio-versions-pane .ca-input { width: 100%; }
.studio-artifact-body .studio-app-frame { height: 64vh; min-height: 440px; }
.studio-artifact-body .studio-page-frame { height: 56vh; min-height: 400px; }
.studio-save { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.studio-agent-engine { width: fit-content; padding: 2px 7px; border: 1px solid var(--border); border-radius: 5px; color: var(--muted); font-size: 11px; }
.studio-agent-engine-ok { border-color: var(--accent-line); color: var(--accent-ink); background: var(--accent-soft); }
.studio-rich { display: grid; gap: 4px; font-size: 13px; line-height: 1.72; }
@media (max-width: 1100px) { .studio-vibe { grid-template-columns: 1fr; height: auto; max-height: none; } .studio-vibe-main { border-right: 0; border-bottom: 1px solid var(--border); } .studio-artifact { min-height: 520px; } }
.studio-doc-outline-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---- 82-vibe-workbench.css ---- */
/* KeApps Vibe Coding Workbench — Light shell + Dark Code/Preview contrast */

.shell-studio .ca-main,
.platform-service .ca-main {
  max-width: none;
  padding: 12px 18px 16px;
}

.vibe-page {
  max-width: none;
  width: 100%;
  gap: 0;
}

/* ---- Launchpad (zero-friction prompt-to-prototype + Template Gallery) ---- */
.vibe-launch {
  max-width: 1080px;
  width: 100%;
  margin: 20px auto 40px;
  display: grid;
  gap: 20px;
}
.vibe-launch-hero {
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.vibe-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
  font: 700 10.5px var(--mono);
  letter-spacing: .1em;
}
.vibe-launch-hero h1 {
  margin: 4px 0 0;
  font-size: 32px;
  line-height: 1.22;
  letter-spacing: -.02em;
}
.vibe-launch-hero p {
  max-width: 620px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
}
.vibe-launch-box {
  background: #fff;
  border: 1px solid var(--border-strong, var(--border));
  border-radius: 16px;
  padding: 14px 16px 12px;
  box-shadow: 0 12px 32px rgba(15, 28, 21, .06);
  display: grid;
  gap: 10px;
}
.vibe-type-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.vibe-type-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fbf9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.vibe-type-pill:hover { border-color: var(--accent-line); color: var(--text); }
.vibe-type-pill.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 650;
}
.vibe-launch-input {
  width: 100%;
  border: 0;
  outline: none;
  resize: vertical;
  min-height: 82px;
  font: 14.5px/1.65 inherit;
  color: var(--text);
  background: transparent;
}
.vibe-launch-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.vibe-launch-hint {
  color: var(--muted);
  font-size: 11.5px;
}
.vibe-launch-cta {
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 650;
}
.vibe-section-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.vibe-starters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.vibe-starter-card {
  display: grid;
  gap: 5px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.vibe-starter-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 166, 81, .08);
}
.vibe-starter-tag {
  width: fit-content;
  padding: 2px 7px;
  border-radius: 6px;
  background: #f1f7f3;
  color: var(--accent-ink);
  font: 600 10.5px var(--mono);
}
.vibe-starter-card strong { font-size: 13.5px; }
.vibe-starter-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vibe-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.vibe-recent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.vibe-recent-card {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fafcfa;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}
.vibe-recent-card:hover { border-color: var(--accent-line); background: #fff; }
.vibe-recent-card strong { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vibe-recent-card span { font-size: 11px; }

/* ---- Full-Viewport IDE Workbench ---- */
.vibe-shell {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 88px);
  min-height: 640px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 28px rgba(13, 25, 19, .06);
}

/* Unified Light Top Bar */
.vibe-topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.vibe-topbar-left,
.vibe-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.vibe-title-input {
  min-width: 140px;
  max-width: 280px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
}
.vibe-title-input:hover { border-color: var(--border); background: #fafcfa; }
.vibe-title-input:focus { outline: none; border-color: var(--accent); background: #fff; }
.vibe-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f3;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.vibe-pill-ok { background: var(--accent-soft); color: var(--accent-ink); }
.vibe-save { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.vibe-save-error { color: #c0392b; }
.vibe-agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f8fbf9;
  color: var(--text);
  font-size: 11.5px;
  cursor: pointer;
}
.vibe-agent-pill:hover { border-color: var(--accent-line); }
.vibe-dot { width: 7px; height: 7px; border-radius: 50%; background: #9ca3af; }
.vibe-dot-ok { background: #00a651; box-shadow: 0 0 0 3px rgba(0, 166, 81, .16); }
.vibe-btn-pi {
  border-color: #1c3a2b;
  background: #13281e;
  color: #dff7ea;
}
.vibe-btn-pi:hover:not(:disabled) { background: #1a382a; color: #fff; }

/* Main Split: 35% Left Copilot : 65% Right Dark Workbench */
.vibe-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 35%) minmax(0, 65%);
}

/* ---- Left Copilot Panel (Light crisp surface) ---- */
.vibe-copilot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #fcfefd;
  border-right: 1px solid var(--border);
}
.vibe-mode-bar {
  flex: none;
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: #f6faf7;
  overflow-x: auto;
}
.vibe-mode-pill {
  flex: none;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}
.vibe-mode-pill:hover { color: var(--text); background: #eaf3ed; }
.vibe-mode-pill.active {
  border-color: var(--accent-line);
  background: #fff;
  color: var(--accent-ink);
  font-weight: 650;
  box-shadow: var(--shadow-xs);
}
.vibe-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vibe-msg { display: flex; gap: 8px; align-items: flex-start; max-width: 96%; }
.vibe-msg-user { align-self: flex-end; }
.vibe-msg-system { align-self: center; max-width: 100%; }
.vibe-msg-mark {
  width: 24px;
  height: 24px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #13281e;
  color: #6ee7a8;
  font: 700 10px var(--mono);
}
.vibe-msg-body {
  display: grid;
  gap: 5px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  min-width: 0;
}
.vibe-msg-user .vibe-msg-body {
  background: #eaf7ef;
  border-color: var(--accent-line);
}
.vibe-msg-system .vibe-msg-body {
  background: transparent;
  border: 0;
  padding: 2px 6px;
  color: var(--muted);
  font-size: 11.5px;
}
.vibe-msg-agent {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 650;
}
.vibe-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
}
.vibe-step {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f6faf7;
  color: var(--text);
  font: 500 11px var(--mono);
}
.vibe-step b { font-size: 10.5px; }
.vibe-step-done { border-color: #bfe4cd; background: #eef9f2; color: #106338; }
.vibe-step-pending { border-color: #dbe3df; background: #f4f7f5; color: #52635a; }
.vibe-step-error { border-color: #f1c0c0; background: #fdf2f2; color: #a93232; }
.vibe-step-link { cursor: pointer; }
.vibe-step-link:hover { border-color: var(--accent); background: #e2f5ea; }

.vibe-quick-chips {
  flex: none;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 8px 12px 4px;
  border-top: 1px solid var(--border);
  background: #f9fcfa;
}
.vibe-quick-chip {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px dashed #c2d9cb;
  background: #fff;
  color: #2f5741;
  font-size: 11px;
  cursor: pointer;
}
.vibe-quick-chip:hover:not(:disabled) {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-soft);
}
.vibe-composer {
  flex: none;
  padding: 8px 12px 12px;
  background: #f9fcfa;
  display: grid;
  gap: 6px;
}
.vibe-composer-input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: 13px/1.6 inherit;
  resize: none;
  min-height: 68px;
}
.vibe-composer-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 166, 81, .1); }
.vibe-composer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vibe-composer-hint {
  color: var(--muted);
  font: 11px var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Right Dark-Contrast Workbench (Preview + Code IDE) ---- */
.vibe-workbench-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #0e1613;
}
.vibe-chrome-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: #0b120f;
  border-bottom: 1px solid #1e2f28;
  flex-wrap: wrap;
}
.vibe-tabs {
  display: flex;
  gap: 4px;
}
.vibe-tab {
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #8ca397;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.vibe-tab:hover { color: #e2f1e8; background: #14221c; }
.vibe-tab.active {
  border-color: #264838;
  background: #14281f;
  color: #6ee7a8;
  font-weight: 650;
}
.vibe-chrome-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.vibe-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 7px;
  background: #14201b;
  border: 1px solid #22352d;
}
.vibe-seg-btn {
  padding: 3px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #8ba396;
  font-size: 11px;
  cursor: pointer;
}
.vibe-seg-btn.active {
  background: #1f3b2e;
  color: #e9fbf1;
  font-weight: 600;
}
.vibe-chapter-select {
  max-width: 210px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid #243930;
  background: #14201b;
  color: #e2f1e8;
  font-size: 11.5px;
}
.vibe-dark-btn {
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid #253b32;
  background: #14201b;
  color: #d6eae0;
  font-size: 11.5px;
  cursor: pointer;
}
.vibe-dark-btn:hover:not(:disabled) { border-color: #36634f; background: #1a2d25; color: #fff; }
.vibe-dark-btn:disabled { opacity: .5; cursor: not-allowed; }

.vibe-workbench-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Preview Stage */
.vibe-stage-canvas {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background-color: #111b17;
  background-image: radial-gradient(#1f312a 1px, transparent 1px);
  background-size: 16px 16px;
}
.vibe-device-frame {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #233830;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .38);
  transition: width .2s ease;
}
.vibe-vp-tablet .vibe-device-frame { width: min(768px, 100%); }
.vibe-vp-mobile .vibe-device-frame { width: min(390px, 100%); border-radius: 20px; border-width: 3px; }
.vibe-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.vibe-stage-empty {
  margin: auto;
  max-width: 460px;
  padding: 30px 28px;
  border-radius: 14px;
  border: 1px dashed #2b453a;
  background: #14221c;
  color: #e4f4ec;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
}
.vibe-stage-tag {
  padding: 3px 9px;
  border-radius: 999px;
  background: #1c362a;
  color: #6ee7a8;
  font: 700 10.5px var(--mono);
}
.vibe-stage-empty h3 { margin: 2px 0 0; font-size: 18px; color: #fff; }
.vibe-stage-empty p { margin: 0; color: #9ab3a6; font-size: 12.5px; line-height: 1.7; }
.vibe-stage-empty-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.vibe-stage-foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  background: #0b120f;
  border-top: 1px solid #1e2f28;
}
.vibe-stage-foot-info { color: #89a194; font: 11px var(--mono); }
.vibe-stage-foot-actions { display: flex; gap: 6px; }

/* Code IDE */
.vibe-ide {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  background: #0d1512;
}
.vibe-file-tree {
  overflow-y: auto;
  padding: 10px 8px;
  border-right: 1px solid #1d2e27;
  background: #0a110e;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vibe-tree-group {
  padding: 8px 8px 4px;
  color: #6b8578;
  font: 700 10px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.vibe-tree-item {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #a9bfb3;
  font: 11.5px var(--mono);
  text-align: left;
  cursor: pointer;
}
.vibe-tree-item:hover { background: #14221c; color: #e8f6ee; }
.vibe-tree-item.active { background: #173025; color: #7af0b2; font-weight: 600; }
.vibe-tree-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.vibe-tree-ro { padding: 1px 5px; border-radius: 4px; background: #1f2e28; color: #87a395; font: 600 9.5px var(--mono); }
.vibe-lang-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.vibe-lang-html { background: #f97316; }
.vibe-lang-css { background: #38bdf8; }
.vibe-lang-js { background: #facc15; }
.vibe-lang-json { background: #34d399; }
.vibe-lang-md { background: #94a3b8; }

.vibe-editor-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #0d1512;
}
.vibe-editor-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 7px 14px;
  border-bottom: 1px solid #1d2e27;
  background: #0f1915;
}
.vibe-editor-head-left,
.vibe-editor-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vibe-editor-path { color: #d9efe3; font: 600 12px var(--mono); }
.vibe-editor-meta { color: #759082; font: 11px var(--mono); }
.vibe-editor-lang {
  padding: 1px 6px;
  border-radius: 4px;
  font: 700 10px var(--mono);
  letter-spacing: 0.04em;
  background: #172720;
  color: #9dd4b8;
  border: 1px solid #263f34;
}
.vibe-lang-badge-html { color: #fdba74; border-color: #5b341b; background: #26170e; }
.vibe-lang-badge-css { color: #7dd3fc; border-color: #1d425c; background: #0f202e; }
.vibe-lang-badge-js { color: #fde047; border-color: #524716; background: #24200c; }
.vibe-lang-badge-json { color: #6ee7b7; border-color: #1d4b3a; background: #0f261e; }
.vibe-editor-btn {
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #263c33;
  background: #14221c;
  color: #cbe6d7;
  font: 500 11px var(--sans);
  cursor: pointer;
}
.vibe-editor-btn:hover { background: #1b2f27; color: #fff; border-color: #355648; }
.vibe-editor-btn.active { background: #183629; color: #7af0b2; border-color: #2f6b50; }
.vibe-code-surface {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background: #0d1512;
}
.vibe-code-gutter {
  flex: none;
  min-width: 46px;
  padding: 14px 10px 14px 8px;
  background: #0a110e;
  border-right: 1px solid #1a2a23;
  color: #4f6b5d;
  font: 12.5px/1.65 var(--mono);
  text-align: right;
  white-space: pre;
  overflow: hidden;
  user-select: none;
}
.vibe-code-surface.is-wrap .vibe-code-gutter { display: none; }
.vibe-code-textarea {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 14px 16px;
  border: 0;
  outline: none;
  resize: none;
  background: #0d1512;
  color: #dff5e9;
  font: 12.5px/1.65 var(--mono);
  tab-size: 2;
  white-space: pre;
  overflow: auto;
}
.vibe-code-textarea.is-wrap {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: hidden;
}

/* Light Content Pane inside Outline / Publish Tabs */
.vibe-light-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
  background: #fbfdfb;
  display: grid;
  gap: 14px;
  align-content: start;
}
.vibe-outline-brief {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  display: grid;
  gap: 10px;
}
.vibe-outline-brief h3 { margin: 0; font-size: 14px; }
.vibe-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.vibe-outline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vibe-module-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  display: grid;
  gap: 6px;
}
.vibe-module-card.active { border-color: var(--accent-line); background: #f8fdf9; }
.vibe-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.vibe-module-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vibe-module-idx { color: var(--accent-ink); font: 700 11.5px var(--mono); }
.vibe-module-actions { display: flex; gap: 5px; }
.vibe-module-card p { margin: 0; font-size: 12px; line-height: 1.6; }

.vibe-check-card {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  display: grid;
  gap: 6px;
}
.vibe-check-card h4 { margin: 0 0 2px; font-size: 13px; }
.vibe-check-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.vibe-check-row.ok b { color: #00a651; }
.vibe-check-row.fail b { color: #c0392b; }
.vibe-publish-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Database Inspector Pane (Dark IDE contrast) */
.vibe-db-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 18px;
  background: #0d1512;
  color: #dff5e9;
  display: grid;
  gap: 12px;
  align-content: start;
}
.vibe-db-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: 10px;
  background: #13201b;
  border: 1px solid #22382f;
  font: 600 12px var(--mono);
  color: #7af0b2;
}
.vibe-db-meta { color: #8da699; font-weight: 400; font-size: 11px; }
.vibe-db-provision-card {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, #13221c 0%, #0f1b16 100%);
  border: 1px solid #264438;
}
.vibe-db-provision-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.vibe-db-provision-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 12.5px var(--mono);
  color: #8af5bc;
  flex-wrap: wrap;
}
.vibe-db-engine-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font: 700 10.5px var(--mono);
  letter-spacing: 0.04em;
  background: #1f332a;
  color: #9be8bf;
  border: 1px solid #2f5444;
}
.vibe-db-engine-badge.eng-mysql { background: #142a3a; color: #7cd4ff; border-color: #24506d; }
.vibe-db-engine-badge.eng-postgres { background: #1a2442; color: #9ec5ff; border-color: #324880; }
.vibe-db-provision-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vibe-db-select { min-width: 260px; }
.vibe-db-cta {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #00c462;
  background: #00a651;
  color: #fff;
  font: 600 12px var(--sans);
  cursor: pointer;
  transition: background 0.15s ease;
}
.vibe-db-cta:hover:not(:disabled) { background: #00bd5c; }
.vibe-db-cta:disabled { opacity: 0.55; cursor: not-allowed; }
.vibe-db-cols { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.vibe-db-empty { color: #8ba396; font-size: 12.5px; line-height: 1.7; margin: 6px 0; }
.vibe-db-rows { display: grid; gap: 8px; }
.vibe-db-row {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #09100d;
  border: 1px solid #1e312a;
  color: #cdebd9;
  font: 11.5px/1.6 var(--mono);
  overflow-x: auto;
}

/* ---- Course App Templates & Wireframe Previews ---- */
.vibe-launch-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.vibe-active-tpl-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 600;
}
.vibe-swatch-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}
.vibe-chip-clear {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  opacity: .75;
}
.vibe-chip-clear:hover { opacity: 1; }

.vibe-tpl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.vibe-tpl-cats {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.vibe-tpl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.vibe-tpl-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.vibe-tpl-card:hover {
  border-color: var(--accent-line);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 28, 21, .07);
}
.vibe-tpl-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 166, 81, .16), 0 10px 24px rgba(0, 166, 81, .08);
}

/* Miniature CSS Wireframe Preview of Each Course App Style */
.vibe-tpl-wire {
  height: 124px;
  padding: 8px;
  background: var(--tpl-bg, #090f0d);
  color: var(--tpl-ink, #fff);
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  user-select: none;
}
.vibe-wire-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--tpl-surf);
  border: 1px solid var(--tpl-border);
}
.vibe-wire-badge {
  display: inline-grid;
  place-items: center;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--tpl-accent);
  color: #fff;
  font: 800 8.5px var(--mono);
  letter-spacing: .06em;
}
.vibe-wire-dots {
  font-size: 8.5px;
  opacity: .72;
}
.vibe-wire-body {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 6px;
}
.vibe-tpl-wire-topnav .vibe-wire-body {
  flex-direction: column;
  gap: 5px;
}
.vibe-wire-rail {
  width: 28%;
  padding: 5px;
  border-radius: 6px;
  background: var(--tpl-surf);
  border: 1px solid var(--tpl-border);
  display: grid;
  gap: 4px;
  align-content: start;
}
.vibe-wire-rail i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: var(--tpl-border);
}
.vibe-wire-rail i.active {
  background: var(--tpl-accent);
}
.vibe-wire-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vibe-wire-strip {
  display: flex;
  gap: 4px;
}
.vibe-wire-strip i {
  display: block;
  width: 28px;
  height: 6px;
  border-radius: 999px;
  background: var(--tpl-border);
}
.vibe-wire-strip i.active {
  background: var(--tpl-accent);
  width: 38px;
}
.vibe-wire-hero {
  padding: 7px 8px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--tpl-accent), var(--tpl-soft));
  color: #fff;
  font: 700 8px var(--mono);
  letter-spacing: .1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vibe-wire-cards {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.vibe-wire-cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.vibe-wire-cards i {
  display: block;
  border-radius: 6px;
  background: var(--tpl-surf);
  border: 1px solid var(--tpl-border);
}
.vibe-wire-immersive {
  width: 78%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vibe-wire-stage {
  flex: 1;
  padding: 6px;
  border-radius: 7px;
  background: var(--tpl-surf);
  border: 1px solid var(--tpl-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.vibe-wire-stage i.bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--tpl-border);
}
.vibe-wire-stage i.btn {
  width: 32px;
  height: 12px;
  border-radius: 4px;
  background: var(--tpl-accent);
}

.vibe-tpl-body {
  flex: 1;
  padding: 12px 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.vibe-tpl-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vibe-tpl-title-row strong {
  font-size: 14px;
  color: var(--text);
}
.vibe-tpl-mode {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f5f3;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}
.vibe-tpl-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.vibe-tpl-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.vibe-tpl-sample {
  font-size: 11.5px;
  color: var(--muted);
  padding: 6px 8px;
  border-radius: 7px;
  background: #f7faf8;
  border: 1px solid var(--border);
}
.vibe-tpl-actions {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  gap: 6px;
  justify-content: space-between;
}
.vibe-tpl-actions button { flex: 1; justify-content: center; }
.vibe-btn-picked {
  border-color: var(--accent) !important;
  background: var(--accent-soft) !important;
  color: var(--accent-ink) !important;
  font-weight: 650;
}

/* Workbench Style Switcher Drawer */
.vibe-style-drawer {
  display: grid;
  gap: 12px;
}
.vibe-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.vibe-style-card {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.vibe-style-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.vibe-style-card.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 166, 81, .2); }
.vibe-style-card .vibe-tpl-wire { height: 96px; }
.vibe-style-meta {
  padding: 9px 11px;
  display: grid;
  gap: 2px;
}
.vibe-style-meta strong { font-size: 13px; }
.vibe-style-meta span { font-size: 11px; }

.vibe-wire-split-l {
  width: 40%;
  padding: 5px;
  border-radius: 6px;
  background: var(--tpl-surf);
  border: 1px solid var(--tpl-border);
  display: grid;
  gap: 4px;
  align-content: start;
}
.vibe-wire-split-l i {
  display: block;
  height: 7px;
  border-radius: 3px;
  background: var(--tpl-border);
}
.vibe-wire-split-l i.active { background: var(--tpl-accent); }
.vibe-wire-split-r {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ---- 4-Stage Fused Pipeline Stepper & Stage Canvases ---- */
.vibe-launch-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vibe-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: #f3f7f4;
  border: 1px solid var(--border);
}
.vibe-step-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.vibe-step-tab b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e1eae4;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  font: 700 10.5px var(--mono);
}
.vibe-step-tab:hover { color: var(--text); }
.vibe-step-tab.done b { background: var(--accent-soft); color: var(--accent-ink); }
.vibe-step-tab.active {
  background: #fff;
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}
.vibe-step-tab.active b { background: var(--accent); color: #fff; }

.vibe-workbench-light {
  background: #f7faf8;
  color: var(--text);
}
.vibe-stage-pane {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px 24px 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}
.vibe-stage-pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.vibe-stage-pane-head h2 { margin: 4px 0 4px; font-size: 19px; }
.vibe-stage-pane-head p { margin: 0; font-size: 12.5px; max-width: 640px; }
.vibe-stage-kicker {
  display: inline-block;
  font: 700 10.5px var(--mono);
  letter-spacing: .08em;
  color: var(--accent-ink);
}
.vibe-stage-head-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.vibe-canvas-card {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  display: grid;
  gap: 12px;
}
.vibe-canvas-card h3 { margin: 0; font-size: 14.5px; }
.vibe-canvas-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.vibe-canvas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.vibe-field-block { display: grid; gap: 6px; }
.vibe-field-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.vibe-stage-pane-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.vibe-outline-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.vibe-outline-secs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}
.vibe-outline-sec {
  padding: 9px 11px;
  border-radius: 9px;
  background: #f6faf7;
  border: 1px solid var(--border);
  display: grid;
  gap: 3px;
  font-size: 12px;
}
.vibe-outline-deliv {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-ink);
}
.vibe-courseware-box {
  font-size: 12.5px;
  line-height: 1.6;
  background: #fcfefd;
}
.vibe-layout-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.vibe-layout-card {
  display: grid;
  gap: 6px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafcfa;
  color: var(--text);
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease;
}
.vibe-layout-card:hover { border-color: var(--accent-line); background: #fff; }
.vibe-layout-card.active {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 166, 81, .16);
}
.vibe-layout-top { font-size: 14px; font-weight: 700; }
.vibe-layout-card p { margin: 0; font-size: 12px; line-height: 1.55; }

/* ---- Clean Master-Detail Stage 2 (Course Outline) ---- */
.vibe-ol-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f8fbf9;
}
.vibe-ol-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.vibe-ol-head-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.vibe-ol-head-left h2 {
  margin: 0;
  font-size: 16px;
}
.vibe-ol-stat {
  color: var(--muted);
  font-size: 12px;
}
.vibe-ol-empty {
  margin: auto;
  max-width: 420px;
  text-align: center;
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 36px 24px;
}
.vibe-ol-empty h3 { margin: 0; font-size: 17px; }
.vibe-ol-empty p { margin: 0; font-size: 13px; }
.vibe-ol-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
}
.vibe-ol-rail {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f4f8f5;
  border-right: 1px solid var(--border);
  padding: 10px;
  gap: 8px;
}
.vibe-ol-rail-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.vibe-ol-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font-size: 12.5px;
  transition: background .12s ease, border-color .12s ease;
}
.vibe-ol-item:hover { background: #eaf3ed; }
.vibe-ol-item.active {
  background: #fff;
  border-color: var(--accent-line);
  box-shadow: var(--shadow-xs);
  font-weight: 650;
}
.vibe-ol-idx {
  flex: none;
  font: 700 10.5px var(--mono);
  color: var(--muted);
  width: 18px;
}
.vibe-ol-item.active .vibe-ol-idx { color: var(--accent-ink); }
.vibe-ol-item-title {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vibe-ol-item-min {
  flex: none;
  font: 500 10.5px var(--mono);
  color: var(--muted);
}
.vibe-ol-cw-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.vibe-ol-add {
  flex: none;
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px dashed var(--border-strong, var(--border));
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.vibe-ol-add:hover { border-color: var(--accent); color: var(--accent-ink); background: #fff; }

.vibe-ol-detail {
  min-height: 0;
  overflow-y: auto;
  padding: 24px 30px 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vibe-ol-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vibe-ol-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vibe-ol-chapter-badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font: 700 11px var(--mono);
}
.vibe-ol-min-tag {
  color: var(--muted);
  font-size: 12px;
}
.vibe-ol-detail-acts {
  display: flex;
  gap: 12px;
  align-items: center;
}
.vibe-ol-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.vibe-ol-link:hover { color: var(--text); text-decoration: underline; }
.vibe-ol-link-danger:hover { color: #c0392b; }

.vibe-ol-title-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 6px;
  margin: 0 -6px;
  font-size: 21px;
  font-weight: 750;
  color: var(--text);
  background: transparent;
  letter-spacing: -.015em;
}
.vibe-ol-title-input:hover { border-color: var(--border); background: #fafcfa; }
.vibe-ol-title-input:focus { outline: none; border-color: var(--accent); background: #fff; }
.vibe-ol-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.vibe-ol-subtabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--border);
  margin-top: 6px;
}
.vibe-ol-subtab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 8px 2px;
  margin-bottom: -1px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.vibe-ol-subtab:hover { color: var(--text); }
.vibe-ol-subtab.active {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.vibe-ol-struct {
  display: grid;
  gap: 20px;
  padding-top: 6px;
}
.vibe-ol-block {
  display: grid;
  gap: 8px;
}
.vibe-ol-block-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  text-transform: uppercase;
}
.vibe-ol-bullets {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
}
.vibe-ol-bullets li::marker { color: var(--accent); }
.vibe-ol-seclist {
  display: grid;
}
.vibe-ol-secrow {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eef3f0;
}
.vibe-ol-secrow:last-child { border-bottom: 0; }
.vibe-ol-secnum {
  flex: none;
  font: 700 12px var(--mono);
  color: var(--accent-ink);
  padding-top: 2px;
}
.vibe-ol-secbody {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.vibe-ol-secbody strong { font-size: 13.5px; font-weight: 650; }
.vibe-ol-secbody p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }

.vibe-ol-deliverable {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  background: #f3faf6;
  border-left: 3px solid var(--accent);
  font-size: 13px;
  line-height: 1.55;
}
.vibe-ol-deliv-label {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-ink);
}
.vibe-ol-cw {
  display: grid;
  gap: 10px;
  padding-top: 6px;
}
.vibe-ol-cw-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vibe-ol-cw-area {
  font: 13px/1.75 inherit;
  min-height: 260px;
  background: #fbfdfb;
}
.vibe-ol-cw-empty {
  padding: 40px 20px;
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #fafcfa;
}
.vibe-ol-cw-empty p { margin: 0; font-size: 13px; }

.vibe-async-bar {
  flex: none;
  padding: 8px 14px 9px;
  background: #102019;
  border-bottom: 1px solid #1f392e;
  display: grid;
  gap: 6px;
}
.vibe-async-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vibe-async-text {
  font-size: 12px;
  color: #a9f0c8;
  font-weight: 500;
}
.vibe-async-track {
  height: 4px;
  border-radius: 99px;
  background: #1d342a;
  overflow: hidden;
}
.vibe-async-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00a651, #4ade80);
  transition: width .35s ease;
}

@media (max-width: 1120px) {
  .vibe-shell { height: auto; min-height: 0; }
  .vibe-split { grid-template-columns: 1fr; }
  .vibe-copilot { border-right: 0; border-bottom: 1px solid var(--border); max-height: 520px; }
  .vibe-workbench-pane { min-height: 580px; }
  .vibe-ol-split { grid-template-columns: 1fr; }
  .vibe-ol-rail { border-right: 0; border-bottom: 1px solid var(--border); max-height: 180px; }
  .vibe-tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vibe-canvas-grid, .vibe-layout-grid { grid-template-columns: 1fr; }
  .vibe-starters, .vibe-recent-grid, .vibe-brief-grid { grid-template-columns: 1fr; }
  .vibe-ide { grid-template-columns: 1fr; }
  .vibe-file-tree { border-right: 0; border-bottom: 1px solid #1d2e27; max-height: 180px; }
}
@media (max-width: 720px) {
  .vibe-tpl-grid, .vibe-style-grid { grid-template-columns: 1fr; }
}

/* ---- Reference Source Materials Uploader ---- */
.vibe-launch-box.is-dragover,
.vibe-dropzone.is-dragover {
  border-color: #00a651 !important;
  background: #edf9f2 !important;
}
.vibe-launch-sources {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 2px 2px;
}
.vibe-src-pick-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px dashed #9fc9b1;
  background: #f4fbf7;
  color: #166534;
  font: 600 12px var(--sans);
  cursor: pointer;
}
.vibe-src-pick-btn:hover:not(:disabled) {
  border-color: #00a651;
  background: #e7f7ee;
}
.vibe-src-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px 3px 10px;
  border-radius: 999px;
  border: 1px solid #bfe3ce;
  background: #eef9f2;
  color: #0f3d26;
  font-size: 12px;
}
.vibe-src-chip-name {
  border: 0;
  background: transparent;
  color: inherit;
  font: 500 12px var(--sans);
  cursor: pointer;
  padding: 0;
}
.vibe-src-chip-name:hover { text-decoration: underline; }
.vibe-composer-actions { display: flex; align-items: center; gap: 6px; }
.vibe-dropzone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1.5px dashed #b7d8c5;
  border-radius: 12px;
  background: #f7fcf9;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.vibe-dropzone-copy { display: grid; gap: 4px; }
.vibe-dropzone-copy strong { font-size: 13.5px; color: #102a1d; }
.vibe-dropzone-copy span { font-size: 12px; }
.vibe-source-list { display: grid; gap: 8px; }
.vibe-source-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.vibe-source-info { display: grid; gap: 5px; min-width: 0; flex: 1; }
.vibe-source-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.vibe-source-ext {
  padding: 2px 6px;
  border-radius: 5px;
  background: #e6f6ec;
  color: #007a3d;
  font: 700 10.5px var(--mono);
}
.vibe-source-excerpt {
  font-size: 12px;
  color: #5b7266;
  line-height: 1.55;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.vibe-source-warn { font-size: 12px; color: #b45309; line-height: 1.5; }
.vibe-source-actions { display: flex; gap: 6px; flex: none; }
.vibe-source-preview-pre {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f6faf7;
  color: #163023;
  font: 12px/1.65 var(--mono);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 60vh;
  overflow-y: auto;
}
.vibe-src-chip.is-locked {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #92400e;
}
.vibe-source-item.is-locked {
  border-color: #fcd34d;
  background: #fffdf5;
}
.vibe-dropzone-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.vibe-src-pw-input {
  width: 150px;
  padding: 5px 10px !important;
  font-size: 12px !important;
}
.vibe-zip-manifest {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f2f8f4;
  border: 1px solid var(--border);
}
.vibe-zip-manifest-row {
  font: 11.5px/1.5 var(--mono);
  color: #1d3c2b;
}

/* ---- Teacher-First Immersive Experience Picker, Batch Bar, Cover & Project Cards (v0.13.0) ---- */
.vibe-agent-pill.is-dev-on {
  border-color: #1c3a2b;
  background: #13281e;
  color: #86efac;
}
.vibe-exp-picker {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #d5e8dc;
  background: #f5fbf7;
  display: grid;
  gap: 8px;
}
.vibe-exp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.vibe-exp-tip {
  font-size: 12px;
  color: #3f6250;
}
.vibe-exp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.vibe-exp-chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .14s ease;
}
.vibe-exp-chip:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}
.vibe-exp-chip.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(0, 166, 81, .2);
}
.vibe-batch-cta-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: #10241b;
  border-bottom: 1px solid #1f3c2f;
}
.vibe-cover-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.vibe-cover-row .studio-field {
  flex: 1;
  min-width: 240px;
}
.vibe-auto-note {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #d8eadf;
  background: #f4fbf7;
  color: #2f5741;
  font-size: 12.5px;
  line-height: 1.6;
}
.vibe-project-card {
  cursor: default;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.vibe-proj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.vibe-proj-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* ---- v0.14.0 Course Assets & AI Teaching Quality Review ---- */
.vibe-asset-box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed #c2dccd;
  background: #f8fcf9;
  display: grid;
  gap: 8px;
}
.vibe-asset-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.vibe-asset-list {
  display: grid;
  gap: 6px;
}
.vibe-asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12.5px;
}
.vibe-asset-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}
.vibe-asset-left a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}
.vibe-asset-left a:hover { text-decoration: underline; }
.vibe-review-card {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #cce3d5;
  background: #fff;
  display: grid;
  gap: 12px;
}
.vibe-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.vibe-review-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.vibe-review-title-wrap h4 { margin: 0; font-size: 15px; }
.vibe-score-badge {
  padding: 2px 9px;
  border-radius: 999px;
  font: 700 12px var(--mono);
}
.vibe-score-badge.good { background: #dcfce7; color: #166534; }
.vibe-score-badge.mid { background: #fef3c7; color: #92400e; }
.vibe-score-badge.low { background: #fee2e2; color: #991b1b; }
.vibe-review-summary {
  margin: 0;
  font-size: 13px;
  color: #244032;
  line-height: 1.65;
}
.vibe-review-dims {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.vibe-review-dim {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fafcfa;
  display: grid;
  gap: 6px;
}
.vibe-review-dim-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--muted);
}
.vibe-review-dim-top strong { color: var(--text); font: 700 12px var(--mono); }
.vibe-review-track {
  height: 5px;
  border-radius: 99px;
  background: #e3ece7;
  overflow: hidden;
}
.vibe-review-track i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.vibe-review-ok {
  padding: 10px 12px;
  border-radius: 10px;
  background: #eefaf3;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
}
.vibe-review-issues { display: grid; gap: 8px; }
.vibe-review-issue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fcfefd;
}
.vibe-review-issue.sev-high { border-left: 3px solid #dc2626; background: #fff9f9; }
.vibe-review-issue.sev-medium { border-left: 3px solid #d97706; background: #fffdf6; }
.vibe-review-issue.sev-tip { border-left: 3px solid var(--accent); }
.vibe-review-issue-copy { display: grid; gap: 3px; flex: 1; min-width: 220px; }
.vibe-review-issue-title { font-size: 13px; font-weight: 650; color: var(--text); }
.vibe-review-issue-copy p { margin: 0; font-size: 12px; line-height: 1.55; }
@media (max-width: 820px) {
  .vibe-review-dims { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- 85-ui.css ---- */
.ca-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(21, 28, 24, 0.28);
  display: flex;
  justify-content: flex-end;
  animation: ca-fade-in 120ms ease-out;
}
.ca-drawer {
  position: relative;
  width: min(460px, 94vw);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--line, #e7e9e4);
  box-shadow: -18px 0 48px rgba(20, 32, 24, 0.12);
  display: flex;
  flex-direction: column;
  animation: ca-slide-in 160ms ease-out;
}
.ca-drawer-head { padding: 20px 22px 12px; border-bottom: 1px solid var(--line, #e7e9e4); }
.ca-drawer-head h2 { margin: 0 0 4px; font-size: 17px; }
.ca-drawer-head p { margin: 0; font-size: 12px; }
.ca-drawer-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #687068;
  cursor: pointer;
}
.ca-drawer-close:hover { background: #f2f5f0; }
.ca-drawer-wide { width: min(860px, 96vw); }
.ca-drawer-body { flex: 1; overflow: auto; padding: 18px 22px; }
.ca-drawer-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px 20px; border-top: 1px solid var(--line, #e7e9e4); }
.ca-drawer .ca-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ca-drawer .ca-field > span { font-size: 12px; color: #687068; }
.ca-drawer .ca-input { width: 100%; }
.ca-btn-danger { background: #d93025; color: #fff; border-color: #d93025; }
.ca-toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 90; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.ca-toast {
  min-width: 220px;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dfe5dc;
  box-shadow: 0 10px 28px rgba(20, 32, 24, 0.12);
  font-size: 12.5px;
  color: #263028;
  pointer-events: auto;
  animation: ca-toast-in 140ms ease-out;
}
.ca-toast-success { border-left: 3px solid #00a651; }
.ca-toast-error { border-left: 3px solid #d93025; }
.ca-toast-info { border-left: 3px solid #2c6ecb; }
.ca-toast-out { opacity: 0; transform: translateY(-4px); transition: all 160ms ease; }
@keyframes ca-slide-in { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes ca-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ca-toast-in { from { transform: translateY(-6px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 640px) { .ca-drawer { width: 100vw; } }

/* ---- 86-docs.css ---- */
.docs-app {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 64px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.docs-nav {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow: auto;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.docs-nav-title { font-size: 14px; font-weight: 700; color: var(--text); }
.docs-nav-sub { margin-top: 2px; color: var(--muted); font-size: 11px; }
.docs-nav-group { margin: 16px 0 6px; color: var(--muted-2); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.docs-nav-item {
  display: block;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 12.5px;
  line-height: 1.4;
  cursor: pointer;
}
.docs-nav-item:hover { background: #f3f9f5; }
.docs-nav-active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); font-weight: 600; }
.docs-main { min-width: 0; padding: 10px 0; }
.docs-eyebrow { margin-bottom: 14px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.docs-prose { max-width: 860px; color: var(--text); font-size: 14px; line-height: 1.75; }
.docs-prose h1 { margin: 0 0 18px; font-size: 30px; line-height: 1.25; letter-spacing: -.01em; }
.docs-prose h2 { margin: 34px 0 12px; padding-top: 10px; font-size: 21px; line-height: 1.3; border-top: 1px solid var(--border); }
.docs-prose h3 { margin: 24px 0 8px; font-size: 16px; }
.docs-prose h4 { margin: 18px 0 6px; font-size: 14px; }
.docs-prose p { margin: 0 0 14px; color: #354139; }
.docs-prose ul, .docs-prose ol { margin: 0 0 14px; padding-left: 22px; }
.docs-prose li { margin: 4px 0; }
.docs-prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.docs-prose code { padding: 2px 5px; border-radius: 5px; background: #f2f5f1; color: #1f5a3a; font-size: 12.5px; }
.docs-prose pre { margin: 0 0 16px; padding: 14px 16px; overflow: auto; border-radius: 10px; background: #0f1f17; color: #dcefe2; font-size: 12.5px; line-height: 1.6; }
.docs-prose pre code { display: block; padding: 0; border: 0; background: transparent; color: inherit; white-space: pre; }
.docs-prose blockquote { margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--accent); background: #f7faf6; color: #4b5a50; }
.docs-prose table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 12.5px; }
.docs-prose th, .docs-prose td { padding: 8px 10px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.docs-prose th { background: #f7faf6; font-weight: 700; }
.docs-prose hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
.docs-prose img { max-width: 100%; border-radius: 10px; border: 1px solid var(--border); }
@media (max-width: 900px) {
  .docs-app { grid-template-columns: 1fr; padding: 18px 16px 40px; }
  .docs-nav { position: static; max-height: 260px; }
}

/* docs app: 1440 layout, aligned header brand */
.shell-docs .ca-header { max-width: var(--portal-max); margin: 0 auto; background: var(--bg); }
.shell-docs .ca-main { max-width: var(--portal-max); padding: 0 48px 64px; }
.shell-docs .ca-page { max-width: none; }
.ca-brand-sep { color: var(--muted-2); font-size: 14px; margin: 0 2px; }
.ca-brand-secondary { color: var(--muted); font-size: 14px; font-weight: 500; }
.docs-app {
  max-width: var(--portal-max);
  padding: 24px 0 64px;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
}
.docs-prose { max-width: 980px; }
@media (max-width: 1280px) {
  .shell-docs .ca-main { padding: 0 32px 56px; }
  .docs-app { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 980px) {
  .shell-docs .ca-main { padding: 0 16px 40px; }
  .docs-app { grid-template-columns: 1fr; padding-top: 16px; }
}

/* ---- 90-admin.css ---- */
.admin-page { max-width: 1120px; margin: 0 auto; display: grid; gap: 16px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.admin-head h2 { margin: 6px 0 4px; font-size: 26px; }
.admin-head p { color: var(--muted); font-size: 13px; }
.admin-eyebrow { color: var(--accent-ink); font-size: 11px; letter-spacing: .16em; font-weight: 700; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.admin-stats-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.admin-stat { display: grid; gap: 3px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.admin-stat-k { color: var(--muted); font-size: 12px; }
.admin-stat-v { font-size: 26px; letter-spacing: -.5px; }
.admin-stat-note { color: var(--muted); font-size: 11.5px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-card { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.admin-card h3 { font-size: 15px; }
.admin-card p { color: var(--muted); font-size: 12.5px; }
.admin-l1 { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin-l1-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.admin-dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.admin-ok .admin-dot { background: var(--accent); }
.admin-warn .admin-dot { background: #d97706; }
.admin-bad .admin-dot { background: var(--danger); }
.admin-l1-name { min-width: 128px; }
.admin-l1-note { color: var(--muted); }
.admin-apps { display: grid; gap: 6px; max-height: 300px; overflow: auto; }
.admin-app-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid #e8f1eb; border-radius: var(--radius-sm); background: #f8fbf9; font-size: 12px; }
.admin-app-name { font-weight: 600; }
.admin-app-cat { color: var(--muted); font-size: 11px; }
.admin-app-id { margin-left: auto; color: var(--muted); font-size: 10.5px; }
.admin-audit { font-size: 11.5px; }
.admin-detail { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.admin-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }

.admin-form-row { display: grid; grid-template-columns: 1fr 1fr 180px auto; gap: 10px; align-items: center; }
.admin-model { display: flex; align-items: center; gap: 10px; }
.admin-model-name { font-size: 18px; font-weight: 700; }
.admin-stats-small { margin-top: 12px; }
.admin-perms { color: var(--text-2); word-break: break-word; }
@media (max-width: 980px) {
  .admin-form-row { grid-template-columns: 1fr; }
}

.admin-file-actions { white-space: nowrap; }
.admin-file-actions .ca-btn { display: inline-flex; align-items: center; padding: 5px 9px; margin-right: 6px; font-size: 11.5px; text-decoration: none; }
.admin-audit td { vertical-align: middle; }

.admin-multi { min-height: 76px; }
.admin-role-block { border-top: 1px solid var(--line, #e7e9e4); padding: 14px 0; }
.admin-role-block:first-of-type { border-top: 0; }
.admin-role-block h4 { margin: 0 0 8px; font-size: 13px; }
.admin-perms-edit { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 10px; }
.admin-perm-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted, #687068); }
.admin-role-block { background: transparent; }

.admin-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.admin-card-head h3 { margin: 0; }

.admin-data-preview { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; min-height: 300px; }
.admin-data-preview-nav { display: grid; gap: 4px; align-content: start; border-right: 1px solid var(--border); padding-right: 12px; }
.admin-data-preview-title { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.admin-data-preview-item { text-align: left; padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; background: transparent; font-size: 12px; cursor: pointer; word-break: break-all; }
.admin-data-preview-item:hover { background: #f3f9f5; }
.admin-data-preview-item.ca-active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.admin-data-preview-main { min-width: 0; overflow: auto; }
.admin-data-preview-main h4 { margin: 0 0 2px; }
.admin-data-preview-main .table-wrap { max-height: 56vh; }
@media (max-width: 720px) { .admin-data-preview { grid-template-columns: 1fr; } .admin-data-preview-nav { border-right: 0; border-bottom: 1px solid var(--border); padding-right: 0; padding-bottom: 8px; } }

/* ---- 95-todo-wxwatch.css ---- */
/* shared page header action row (used by todo/studio/catalog/wxwatch) */
.wx-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wx-page { max-width: 1180px; margin: 0 auto; display: grid; gap: 16px; }
.wx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.wx-head h2 { font-size: 24px; margin-bottom: 4px; }
.wx-head p { color: var(--muted); font-size: 13px; }
.wx-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wx-chip { padding: 3px 9px; border: 1px solid var(--border); border-radius: 999px; background: #f3f8f5; color: var(--muted); font-size: 12px; }
.wx-chip.wx-ok { color: #067647; border-color: var(--accent-line); background: var(--accent-soft); }
.wx-chip.wx-warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-soft); }
.wx-chip.wx-bad { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.wx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wx-stat { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.wx-stat-k { display: block; color: var(--muted); font-size: 11.5px; }
.wx-stat-v { display: block; margin-top: 2px; font-size: 22px; font-weight: 700; }
.wx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.wx-col { display: grid; gap: 14px; }
.wx-card { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-xs); }
.wx-card h3 { font-size: 15px; }
.wx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wx-account, .wx-article, .wx-run { padding: 10px 12px; border: 1px solid #e8f1eb; border-radius: var(--radius-sm); background: #f8fbf9; }
.wx-account-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.wx-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; }
.wx-note { color: var(--muted); font-size: 11.5px; }
.wx-account-actions { margin-top: 8px; display: flex; gap: 8px; }
.wx-account-actions .ca-btn { padding: 5px 10px; font-size: 12px; }
.wx-article-title { font-weight: 600; font-size: 13px; }
.wx-summary, .wx-result { margin: 6px 0 0; color: var(--text-2); font-size: 12.5px; }
.wx-log { max-height: 260px; overflow: auto; }
.wx-banner { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 13px; }
.wx-banner.wx-bad { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.wx-banner.wx-info { color: #067647; border-color: var(--accent-line); background: var(--accent-soft); }
.wx-login-card { max-width: 480px; }
.wx-qr { width: 220px; height: 220px; align-self: center; padding: 8px; border-radius: var(--radius-sm); background: #fff; }

/* todo */
.todo-page { max-width: 1040px; margin: 0 auto; display: grid; gap: 16px; }
.todo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.todo-head h2 { font-size: 24px; margin-bottom: 4px; }
.todo-head p { color: var(--muted); font-size: 13px; }
.todo-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.todo-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.todo-stat-k { color: var(--muted); font-size: 12px; }
.todo-stat-v { font-size: 22px; font-weight: 700; }
.todo-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.todo-tab { padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font-size: 13px; cursor: pointer; }
.todo-tab:hover { color: var(--accent-ink); border-color: var(--accent); }
.todo-tab-active { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-line); }
.todo-search { margin-left: auto; max-width: 260px; }
.todo-form { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.todo-form h3 { font-size: 16px; }
.todo-form-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.todo-field { display: grid; gap: 6px; }
.todo-field-label { color: var(--muted); font-size: 12px; }
.todo-board { display: grid; gap: 8px; }
.todo-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.todo-item-done { opacity: .64; }
.todo-check {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 2px;
  display: grid; place-items: center; border: 1.5px solid var(--border-strong); border-radius: 50%;
  background: transparent; color: #fff; font-size: 12px; cursor: pointer;
}
.todo-check:hover { border-color: var(--accent); }
.todo-check-done { background: var(--accent); border-color: var(--accent); }
.todo-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.todo-title { font-weight: 600; }
.todo-item-done .todo-title { text-decoration: line-through; }
.todo-desc { margin: 0; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 11.5px; }
.todo-avatar { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; }
.todo-assignee { color: var(--muted); }
.todo-list-tag { color: var(--muted-2); }
.todo-actions { display: flex; gap: 6px; }
.todo-small { padding: 5px 10px; font-size: 12px; }
.todo-danger { color: var(--danger); }
.todo-group-title { margin-top: 10px; color: var(--muted); font-size: 11.5px; }

/* ---- 99-responsive.css ---- */
/* Breakpoints ordered desktop → tablet → mobile so narrower rules win cleanly */
@media (max-width: 1280px) {
  .ca-header { padding: 0 24px; }
  .ca-public { padding: 28px 32px 64px; }
}

@media (max-width: 1100px) {
  .admin-stats, .admin-stats-5, .wx-stats, .todo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .portal-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .ca-topnav { display: none; }
  .ca-header { padding: 0 16px; }
  .ca-content, .ca-main { padding: 20px 16px 48px; }
  .ca-subnav { padding: 10px 16px 0; overflow-x: auto; }
  .ca-public { padding: 20px 16px 48px; }
  .ca-login { grid-template-columns: 1fr; }
  .ca-login-panel { padding: 30px 24px; border-right: 0; border-bottom: 1px solid var(--border); }
  .ca-login-panel .ca-link-btn { margin-top: 20px; }
  .ca-login-card { margin: 26px auto 40px; }
  .portal-hero { grid-template-columns: 1fr; padding: 26px; }
  .portal-orbit { display: none; }
  .portal-features { grid-template-columns: 1fr; }
  .course-reader { grid-template-columns: 1fr; }
  .course-toc { position: static; max-height: none; }
  .wx-grid { grid-template-columns: 1fr; }
  .todo-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .todo-search { margin-left: 0; max-width: none; width: 100%; }
  .catalog-page, .course-page, .studio-page, .admin-page, .todo-page, .wx-page { width: 100%; }
}

@media (max-width: 700px) {
  .ca-brand { font-size: 15px; }
  .ca-header .ca-btn { padding: 8px 10px; }
  .portal-stats { gap: 8px; }
  .portal-course-grid, .catalog-grid, .ca-apps, .ca-home-row { grid-template-columns: 1fr; }
  .catalog-head, .wx-head, .todo-head, .course-head, .studio-preview-head { flex-direction: column; align-items: flex-start; }
  .catalog-card, .ca-app-card, .ca-home-app { min-height: 0; }
  .admin-stats, .admin-stats-5, .wx-stats, .todo-stats { grid-template-columns: 1fr; }
  .todo-form-row { grid-template-columns: 1fr; }
  .course-reader-main { padding: 20px; }
  .portal-hero { padding: 22px; }
}
