:root {
  color-scheme: light;
  --ink:#1d2926;
  --muted:#66726e;
  --paper:#f4f6f3;
  --panel:#ffffff;
  --line:#d5dcd7;
  --line-soft:#e8ece9;
  --moss:#2f7168;
  --moss-dark:#1d514a;
  --ochre:#d59a38;
  --coral:#c9543f;
  --charcoal:#1b2926;
  font-family:"Noto Sans SC","Source Han Sans SC","Microsoft YaHei","PingFang SC",system-ui,sans-serif;
}

* { box-sizing:border-box; }
body { margin:0; min-width:320px; color:var(--ink); background:var(--paper); }
button,input,textarea,select { font:inherit; color:inherit; }
button,a { -webkit-tap-highlight-color:transparent; }
.skip-link { position:fixed; left:16px; top:12px; z-index:1000; padding:9px 12px; border:1px solid var(--moss); border-radius:4px; color:#fff; background:var(--moss-dark); transform:translateY(-160%); transition:transform .16s ease; }
.skip-link:focus { transform:translateY(0); }

.app-frame { min-height:100vh; }
.app-header { height:76px; padding:0 30px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.96); display:grid; grid-template-columns:240px minmax(0,1fr) auto; align-items:center; gap:24px; position:sticky; top:0; z-index:10; backdrop-filter:blur(12px); }
.brand { display:flex; align-items:center; gap:12px; }
.brand-mark { width:38px; height:38px; display:grid; place-items:center; background:var(--coral); color:#fff; font-family:Georgia,"Songti SC",serif; font-size:19px; }
.brand strong,.brand small { display:block; }.brand strong { font-size:17px; }.brand small { margin-top:2px; color:var(--muted); font-size:9px; letter-spacing:.12em; }
.primary-nav { height:100%; display:flex; align-items:stretch; justify-content:center; overflow-x:auto; scrollbar-width:none; }.primary-nav::-webkit-scrollbar { display:none; }
.primary-nav button { min-width:max-content; padding:0 22px; border:0; border-bottom:3px solid transparent; background:transparent; color:#626860; cursor:pointer; font-weight:600; }
.primary-nav button:hover { background:#f0f4f1; color:var(--ink); }.primary-nav button.active { border-bottom-color:var(--coral); color:var(--ink); }
.header-actions { display:flex; align-items:center; gap:8px; }
.mode-badge { padding:6px 8px; border:1px solid var(--line); color:#7f776a; font-size:10px; }.mode-badge.live { border-color:#789c82; color:var(--moss-dark); }
.workspace-strip { min-height:48px; padding:0 34px; border-bottom:1px solid var(--line); background:#e9e4d8; display:flex; align-items:center; gap:22px; }.workspace-strip > span { color:var(--coral); font:700 9px ui-monospace,Consolas,monospace; letter-spacing:.12em; white-space:nowrap; }.workspace-strip nav { display:flex; align-self:stretch; overflow-x:auto; scrollbar-width:none; }.workspace-strip nav::-webkit-scrollbar { display:none; }.workspace-strip button { min-width:max-content; padding:0 17px; border:0; border-left:1px solid transparent; border-right:1px solid transparent; background:transparent; color:#626860; cursor:pointer; }.workspace-strip button b { margin-right:6px; color:#9b7a42; font:700 8px ui-monospace,Consolas,monospace; }.workspace-strip button.active { border-color:var(--line); background:#fffdf8; color:var(--ink); }
.context-bar { min-height:58px; padding:10px 34px; border-bottom:1px solid var(--line-soft); background:#f9faf8; display:flex; align-items:center; justify-content:space-between; gap:18px; }
.context-bar > div { display:grid; grid-template-columns:38px auto; align-items:center; column-gap:12px; }.context-bar > div > span { grid-row:1/3; color:var(--ochre); font:700 11px ui-monospace,Consolas,monospace; }.context-bar strong { font-size:18px; }.context-bar small { color:var(--muted); font-size:12px; }
.app-main { min-height:calc(100vh - 134px); }

.btn { min-height:36px; padding:8px 13px; border:1px solid var(--line); border-radius:4px; background:#fff; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; }
.btn:hover { background:#ece7da; }.btn.strong { background:var(--charcoal); border-color:var(--charcoal); color:#fff; }.btn.accent { background:var(--moss); border-color:var(--moss); color:#fff; }.btn.teal { background:var(--moss); border-color:var(--moss); color:#fff; }.btn.primary { background:var(--charcoal); border-color:var(--charcoal); color:#fff; }.btn.danger { color:#9e3f35; border-color:#d5a59d; background:#fff7f4; }.btn:disabled { opacity:.45; cursor:not-allowed; }
.text-action,.linkish { padding:0; border:0; background:transparent; color:var(--moss-dark); font-weight:700; cursor:pointer; text-decoration:none; }
.page { width:100%; max-width:none; margin:0; padding:clamp(24px,2vw,40px) clamp(18px,2.2vw,46px) 64px; }
.page > * { min-width:0; }
.section-head { padding:0 0 22px; display:flex; align-items:flex-end; justify-content:space-between; gap:20px; }
.section-head h1 { margin:0 0 7px; font-size:32px; letter-spacing:0; }.section-head p { margin:0; max-width:820px; color:var(--muted); font-size:15px; line-height:1.75; }
.eyebrow { color:var(--coral); font:700 11px ui-monospace,Consolas,monospace; letter-spacing:.1em; text-transform:uppercase; }
.panel { border:1px solid var(--line); border-radius:6px; background:var(--panel); }.panel-head { min-height:52px; padding:13px 16px; border-bottom:1px solid var(--line-soft); display:flex; align-items:center; justify-content:space-between; gap:12px; }.panel-body { padding:16px; }
.tag { padding:4px 7px; border:1px solid #b9c9bc; color:var(--moss-dark); background:#edf2ec; font-size:10px; }
.input,.search,.model-select { width:100%; min-height:40px; padding:9px 11px; border:1px solid var(--line); border-radius:0; background:#fff; outline:none; }.input:focus,.search:focus,textarea:focus { border-color:var(--moss); }
textarea.input { min-height:150px; resize:vertical; line-height:1.7; }
.row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }

/* Home: archive discovery, asymmetric capabilities, and migration intake. */
.command-home { display:grid; gap:38px; }.panel-index,.section-label > span { color:var(--coral); font:700 10px ui-monospace,Consolas,monospace; letter-spacing:.12em; }.section-label h2 { margin:8px 0; font-size:24px; }.section-label p { margin:0; color:var(--muted); font-size:12px; line-height:1.7; }
.discovery-hero { min-height:520px; position:relative; border:0; border-radius:8px; background:#10211e; color:#fff; overflow:hidden; box-shadow:0 18px 55px rgba(24,47,42,.12); }.hero-backdrop { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(.72) contrast(1.08); }.hero-shade { position:absolute; inset:0; background:linear-gradient(90deg,rgba(11,26,24,.91) 0%,rgba(11,26,24,.67) 52%,rgba(11,26,24,.22) 100%); }.hero-copy { min-height:520px; position:relative; z-index:2; padding:54px 48px 92px; display:flex; flex-direction:column; justify-content:center; }.hero-kicker,.stage-heading span { color:#e6b15d; font:700 10px ui-monospace,Consolas,monospace; letter-spacing:.14em; }.hero-copy h1 { max-width:900px; margin:18px 0; font-family:Georgia,"Songti SC",serif; font-size:clamp(42px,4.6vw,70px); font-weight:500; line-height:1.07; }.hero-copy > p { max-width:760px; margin:0 0 28px; color:#e0e5e1; line-height:1.8; }.home-search { width:min(790px,100%); padding:7px; border:1px solid rgba(255,255,255,.35); border-radius:5px; background:rgba(255,255,255,.97); display:grid; grid-template-columns:minmax(0,1fr) auto; box-shadow:0 16px 36px rgba(4,16,14,.2); }.home-search input { min-width:0; padding:11px 12px; border:0; background:transparent; outline:none; }.home-search button { padding:11px 20px; border:0; border-radius:3px; background:var(--ochre); color:#171b18; font-weight:700; cursor:pointer; }.hero-actions { margin-top:16px; display:flex; align-items:center; gap:15px; }.hero-actions span { color:#c1c9c3; font-size:11px; }.hero-stats { position:absolute; z-index:2; right:0; bottom:0; border-top:1px solid rgba(255,255,255,.22); border-left:1px solid rgba(255,255,255,.22); background:rgba(11,31,27,.76); display:grid; grid-template-columns:repeat(3,110px); backdrop-filter:blur(10px); }.hero-stats div { padding:13px 18px; border-right:1px solid rgba(255,255,255,.18); }.hero-stats div:last-child { border-right:0; }.hero-stats strong,.hero-stats span { display:block; }.hero-stats strong { font:500 24px Georgia,"Songti SC",serif; }.hero-stats span { margin-top:3px; color:#b8c1bb; font-size:9px; }
.stage-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:16px; }.stage-heading h2 { margin:7px 0 0; font-size:28px; }.stage-heading > p { max-width:560px; margin:0; color:var(--muted); line-height:1.7; font-size:12px; }.capability-map { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }.capability-card { min-height:190px; padding:22px; border:1px solid var(--line); border-top:5px solid var(--ochre); background:#fffdf8; text-align:left; cursor:pointer; display:flex; flex-direction:column; align-items:flex-start; }.capability-card:hover { transform:translateY(-3px); border-color:#8e968e; }.capability-card > span { color:var(--coral); font:700 9px ui-monospace,Consolas,monospace; letter-spacing:.1em; }.capability-card strong { margin-top:25px; font-size:21px; }.capability-card p { margin:9px 0 18px; color:var(--muted); line-height:1.65; font-size:12px; }.capability-card em { margin-top:auto; color:var(--moss-dark); font-size:11px; font-style:normal; font-weight:700; }.capability-lead { grid-column:span 3; min-height:260px; background:var(--moss); border-color:var(--moss-dark); color:#fff; }.capability-lead > span,.capability-lead em { color:#f1c77e; }.capability-lead strong { margin-top:42px; font:500 34px Georgia,"Songti SC",serif; }.capability-lead p { max-width:500px; color:#e0e7e1; }.knowledge-card { grid-column:span 3; background:#e9e1d2; }.knowledge-card strong { font-size:29px; }.capability-card:not(.capability-lead):not(.knowledge-card) { grid-column:span 2; }.image-card { border-top-color:var(--coral); }.asset-card { border-top-color:var(--moss); }.flow-card { border-top-color:var(--charcoal); }
.ai-suite-grid { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:16px; }.ai-card { min-width:0; min-height:390px; padding:0; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; display:flex; flex-direction:column; align-items:stretch; overflow:hidden; box-shadow:0 10px 30px rgba(26,46,41,.06); transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease; }.ai-card:hover { transform:translateY(-5px); border-color:#aebbb4; box-shadow:0 18px 38px rgba(26,46,41,.12); }.story-suite { grid-column:span 7; }.visual-suite { grid-column:span 5; }.canvas-suite,.language-suite,.connect-suite { grid-column:span 4; min-height:350px; }.ai-card-media { min-height:214px; position:relative; overflow:hidden; background-color:#17302b; background-repeat:no-repeat; background-position:center; background-size:cover; isolation:isolate; }.story-media { background-image:linear-gradient(120deg,rgba(40,34,27,.02),rgba(40,34,27,.2)),url('/images/poster-story-workflow.jpg'); background-position:center; }.visual-media { background-image:linear-gradient(120deg,rgba(40,34,27,.02),rgba(40,34,27,.18)),url('/images/poster-material-hub.jpg'); background-position:center; }.canvas-media { background-image:linear-gradient(120deg,rgba(20,55,45,.02),rgba(20,55,45,.18)),url('/images/poster-infinite-canvas.jpg'); background-position:center; }.language-media { background-image:linear-gradient(120deg,rgba(73,46,29,.02),rgba(73,46,29,.18)),url('/images/poster-modern-drama.jpg'); background-position:center; }.connect-media { background-image:linear-gradient(120deg,rgba(18,54,46,.04),rgba(18,54,46,.24)),url('/images/poster-access-portal.jpg'); background-position:center; }.canvas-suite .ai-card-media,.language-suite .ai-card-media,.connect-suite .ai-card-media { min-height:176px; }.media-glow { width:140px; height:140px; position:absolute; right:-25px; bottom:-55px; border-radius:50%; background:rgba(231,178,83,.2); filter:blur(2px); }.media-grid { position:absolute; inset:0; opacity:.16; background-image:linear-gradient(rgba(255,255,255,.3) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.3) 1px,transparent 1px); background-size:32px 32px; mask-image:linear-gradient(to left,#000,transparent 72%); }.ai-card-body { min-height:0; padding:20px 22px 21px; display:flex; flex:1; flex-direction:column; }.ai-card-top { display:flex; justify-content:space-between; align-items:center; }.ai-card-top span { padding:4px 7px; border:1px solid #b8c9c1; border-radius:999px; color:var(--moss-dark); background:#f3f8f5; font-size:9px; }.ai-card-top b { color:#cbd2ce; font:700 20px ui-monospace,Consolas,monospace; }.ai-card-body > strong { margin-top:18px; font-size:22px; }.ai-card-body > p { margin:8px 0 20px; color:var(--muted); line-height:1.7; font-size:12px; }.ai-card-body > em { margin-top:auto; padding-top:13px; border-top:1px solid var(--line-soft); color:var(--moss-dark); font-size:11px; font-style:normal; font-weight:700; display:flex; justify-content:space-between; }.ai-card-body > em i { font-style:normal; transition:transform .2s ease; }.ai-card:hover .ai-card-body > em i { transform:translateX(4px); }.connect-suite .ai-card-top span { border-color:#e0cba2; color:#8a6120; background:#fff9ec; }
.library-window { padding-top:6px; }.library-split { border-top:3px solid var(--charcoal); display:grid; grid-template-columns:minmax(340px,.8fr) minmax(0,1.2fr); }.library-categories { border-right:1px solid var(--line); }.library-categories > button { width:100%; min-height:82px; padding:14px 18px; border:0; border-bottom:1px solid var(--line); background:transparent; display:grid; grid-template-columns:42px 1fr 34px; align-items:center; gap:12px; text-align:left; cursor:pointer; }.library-categories > button:hover { background:#e9e4d8; }.library-categories > button > span { color:var(--ochre); font:700 10px ui-monospace,Consolas,monospace; }.library-categories strong,.library-categories small { display:block; }.library-categories small { margin-top:4px; color:var(--muted); font-size:10px; }.library-categories b { text-align:right; font-size:20px; }.recent-materials { padding:18px 0 0 24px; }.recent-head { min-height:45px; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; gap:16px; }.recent-head span { color:var(--muted); font-size:10px; }.recent-materials > button { width:100%; min-height:80px; padding:12px 0; border:0; border-bottom:1px solid var(--line); background:transparent; display:grid; grid-template-columns:58px 1fr auto; gap:14px; align-items:center; text-align:left; cursor:pointer; }.recent-materials > button > span { color:var(--coral); font-size:10px; }.recent-materials > button strong,.recent-materials > button small { display:block; }.recent-materials > button small { margin-top:4px; color:var(--muted); }.recent-materials > button em { color:var(--moss-dark); font-size:10px; font-style:normal; }.home-resource-empty { min-height:260px; padding:34px; border-bottom:1px solid var(--line); display:grid; align-content:center; justify-items:start; }.home-resource-empty strong { font:500 27px Georgia,"Songti SC",serif; }.home-resource-empty p { max-width:520px; color:var(--muted); line-height:1.7; }
.home-tail { display:grid; grid-template-columns:1fr; gap:32px; }.quick-draft { border-top:3px solid var(--charcoal); padding-top:18px; }.quick-draft textarea { width:100%; min-height:170px; margin-top:18px; padding:16px; border:1px solid var(--line); background:#fffdf8; resize:vertical; outline:none; line-height:1.7; }.start-actions { padding-top:14px; display:flex; align-items:center; justify-content:space-between; gap:12px; }.start-actions span { color:var(--muted); font-size:11px; }

/* Functional workspaces share one original visual system. */
.workspace { display:grid; grid-template-columns:280px minmax(0,1fr); gap:18px; min-height:650px; }.tools { display:grid; gap:0; padding:0; }.tool { padding:16px; border:0; border-bottom:1px solid var(--line-soft); background:transparent; text-align:left; cursor:pointer; }.tool:last-child { border-bottom:0; }.tool:hover,.tool.active { background:#ebe6da; }.tool strong,.tool small { display:block; }.tool small { margin-top:5px; color:var(--muted); }
.editor { display:flex; flex-direction:column; }.editor textarea { flex:1; min-height:420px; padding:20px; border:0; background:#fff; resize:vertical; outline:none; line-height:1.75; }.result { margin:0 20px 20px; padding:18px; border-left:4px solid var(--moss); background:#edf1eb; white-space:pre-wrap; line-height:1.7; }.editor-foot { padding:13px 16px; border-top:1px solid var(--line-soft); display:flex; align-items:center; justify-content:space-between; gap:12px; }
.prompt-layout { display:grid; grid-template-columns:280px minmax(0,1fr); gap:18px; }.prompt-list { display:grid; max-height:610px; overflow:auto; margin-top:12px; }.prompt-list button { padding:12px; border:0; border-bottom:1px solid var(--line-soft); background:transparent; text-align:left; cursor:pointer; }.prompt-list button:hover,.prompt-list button.active { background:#ebe6da; }.prompt-detail textarea { width:100%; min-height:470px; padding:20px; border:0; background:#fff; resize:vertical; outline:none; line-height:1.75; }.prompt-actions { padding:13px 16px; border-top:1px solid var(--line-soft); display:flex; justify-content:space-between; gap:10px; }
.image-studio { display:grid; grid-template-columns:minmax(320px,.72fr) minmax(0,1.28fr); gap:18px; }.form-stack { display:grid; gap:14px; }.preview-grid { min-height:560px; padding:24px; display:grid; place-items:center; background:#e9e4d8; }.empty-art { max-width:350px; text-align:center; color:var(--muted); }.empty-art .orb { width:140px; height:90px; margin:0 auto 24px; background:url('/images/poster-ai-team.jpg') center/cover; border:1px solid #8f877a; }.generated { width:100%; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.generated img { width:100%; display:block; }
.canvas-mobile-note { display:none; }.flow-shell { display:grid; grid-template-columns:230px minmax(0,1fr) 270px; gap:12px; height:690px; }.node-palette { padding:14px; display:grid; align-content:start; gap:0; }.palette-item { padding:12px; border:0; border-bottom:1px solid var(--line-soft); background:transparent; text-align:left; cursor:grab; }.palette-item:hover { background:#ebe6da; }.palette-item small { display:block; margin-top:4px; color:var(--muted); }.flow-canvas { position:relative; overflow:hidden; border:1px solid var(--line); background-color:#f7f4ed; background-image:linear-gradient(#ded9cf 1px,transparent 1px),linear-gradient(90deg,#ded9cf 1px,transparent 1px); background-size:24px 24px; }.flow-lines { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }.node { position:absolute; width:180px; min-height:92px; padding:13px; border:1px solid #9d968a; background:#fffdf8; cursor:grab; user-select:none; }.node.selected { outline:3px solid var(--ochre); outline-offset:2px; }.node-type { color:var(--coral); font:700 9px ui-monospace,Consolas,monospace; text-transform:uppercase; }.node strong,.node small { display:block; }.node strong { margin:8px 0 5px; }.node small { color:var(--muted); }.port { width:9px; height:9px; border:1px solid #fff; background:var(--moss); position:absolute; top:42px; }.port.in { left:-5px; }.port.out { right:-5px; }.inspector { padding:16px; }.notice { padding:12px; border-left:4px solid var(--ochre); background:#f3ead8; color:#765f36; font-size:12px; line-height:1.6; }
.asset-drop { min-height:170px; padding:20px; border:1px dashed #9e9689; background:#f8f5ee; display:grid; place-items:center; text-align:center; cursor:pointer; }.asset-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); gap:12px; margin-top:18px; }.asset-card { border:1px solid var(--line); background:#fff; }.asset-thumb { height:130px; display:grid; place-items:center; overflow:hidden; background:#e9e4d8; font-size:32px; }.asset-thumb img { width:100%; height:100%; object-fit:cover; }.asset-meta { padding:12px; }.asset-meta strong,.asset-meta small { display:block; }.asset-meta strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.asset-meta small { margin-top:5px; color:var(--muted); }

/* Knowledge projects and Yuque intake. */
.compact-head { align-items:flex-start; }.library-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }.project-layout { display:grid; grid-template-columns:250px minmax(0,1fr); gap:22px; align-items:start; }.project-nav { border-top:3px solid var(--charcoal); }.project-nav-title { padding:13px 0; border-bottom:1px solid var(--line); display:flex; justify-content:space-between; }.project-nav > button { width:100%; padding:14px 0; border:0; border-bottom:1px solid var(--line); background:transparent; display:grid; grid-template-columns:38px 1fr; align-items:center; gap:10px; text-align:left; cursor:pointer; }.project-nav > button.active { color:var(--moss-dark); background:#ebe6da; padding-left:10px; }.project-icon { width:34px; height:34px; display:grid; place-items:center; border:1px solid #a8b8aa; color:var(--moss-dark); }.project-nav button strong,.project-nav button small { display:block; }.project-nav button small { margin-top:4px; color:var(--muted); }.yuque-note { padding:16px 0; }.yuque-note p { color:var(--muted); font-size:11px; line-height:1.7; }
.project-overview { min-height:150px; padding:24px; border:1px solid var(--line); border-top:5px solid var(--moss); background:#f8f5ee; display:flex; align-items:center; justify-content:space-between; gap:24px; }.project-label { color:var(--coral); font:700 9px ui-monospace,Consolas,monospace; }.project-overview h2 { margin:8px 0; font-size:25px; }.project-overview p { margin:0; color:var(--muted); font-size:12px; }.project-overview-stats { display:grid; grid-template-columns:repeat(4,82px); }.project-overview-stats div { padding:11px; border-left:1px solid var(--line); text-align:center; }.project-overview-stats strong,.project-overview-stats span { display:block; }.project-overview-stats strong { font-size:21px; }.project-overview-stats span { color:var(--muted); font-size:9px; }
.category-strip { display:flex; flex-wrap:wrap; gap:0; margin:18px 0 12px; border-bottom:1px solid var(--line); }.category-strip button { padding:9px 13px; border:0; border-right:1px solid var(--line); background:transparent; color:var(--muted); cursor:pointer; }.category-strip button.active { background:var(--charcoal); color:#fff; }.library-toolbar { display:grid; grid-template-columns:minmax(220px,1fr) 140px 160px auto; gap:10px; padding-bottom:16px; }.resource-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }.resource-card { border:1px solid var(--line); background:#fff; }.resource-open { width:100%; height:100%; padding:0; border:0; background:transparent; text-align:left; cursor:pointer; }.resource-cover { height:118px; position:relative; display:grid; place-items:center; overflow:hidden; background:#e8e1d3; color:var(--moss-dark); }.resource-cover img { width:100%; height:100%; object-fit:cover; }.resource-cover > span { font:500 30px Georgia,"Songti SC",serif; }.resource-cover em { position:absolute; right:0; top:0; padding:5px 8px; background:var(--charcoal); color:#fff; font-size:9px; font-style:normal; }.resource-content { padding:13px; }.resource-content h2 { margin:9px 0 7px; font-size:15px; }.resource-content p { margin:0 0 10px; color:var(--muted); font-size:12px; line-height:1.6; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }.resource-meta { display:flex; justify-content:space-between; gap:8px; color:var(--muted); font-size:9px; }.status-ready { color:var(--moss-dark); }.status-pending { color:#9a671b; }.status-external { color:var(--coral); }.resource-tags { display:flex; flex-wrap:wrap; gap:4px; margin-top:10px; }.resource-tags span { padding:3px 5px; border:1px solid var(--line-soft); font-size:9px; }.library-empty { grid-column:1/-1; min-height:240px; border:1px dashed #9e9689; display:grid; place-items:center; align-content:center; text-align:center; }.library-empty p { color:var(--muted); }.pagination { display:flex; justify-content:center; align-items:center; gap:12px; margin-top:18px; color:var(--muted); }.library-updated-line { margin-top:14px; text-align:right; color:#9c9487; font-size:9px; }

.resource-dialog { width:min(820px,calc(100vw - 28px)); max-height:88vh; padding:22px; border:1px solid #817a6e; border-radius:0; background:#fffdf8; color:var(--ink); overflow:auto; }.resource-dialog::backdrop { background:rgba(29,34,30,.66); }.dialog-head { padding-bottom:14px; border-bottom:1px solid var(--line); display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }.dialog-head h2 { margin:7px 0 0; }.icon-button { width:34px; height:34px; border:1px solid var(--line); border-radius:0; background:#fff; cursor:pointer; font-size:20px; }.dialog-summary { color:var(--muted); line-height:1.7; }.resource-detail-meta { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0; }.resource-detail-meta span { padding:5px 7px; border:1px solid var(--line-soft); font-size:10px; }.resource-body { max-height:42vh; margin:16px 0; padding:16px; border:1px solid var(--line); background:#fff; overflow:auto; line-height:1.8; }.dialog-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:16px; }.dialog-grid .full { grid-column:1/-1; }.dialog-grid textarea.tall { min-height:180px; }.dialog-actions { padding-top:15px; margin-top:16px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:10px; }.resource-links { display:flex; flex-wrap:wrap; gap:7px; }
.toast { position:fixed; right:20px; bottom:20px; z-index:30; padding:11px 14px; background:var(--charcoal); color:#fff; border-left:5px solid var(--ochre); }.hidden { display:none !important; }

.login-body { min-height:100vh; padding:24px; display:grid; place-items:center; background:var(--paper); }.login-card { width:min(440px,100%); padding:30px; border:1px solid var(--line); border-top:7px solid var(--coral); background:#fffdf8; }.login-card h1 { margin:14px 0 8px; font-family:Georgia,"Songti SC",serif; font-size:42px; font-weight:500; }.login-card > p { color:var(--muted); line-height:1.7; }.login-card form { display:grid; gap:14px; margin-top:24px; }.login-error { min-height:20px; color:var(--coral); font-size:12px; text-align:center; }
.phone-login-card { width:min(540px,100%); }.auth-tabs { margin-top:24px; border-bottom:1px solid var(--line); display:grid; grid-template-columns:repeat(2,1fr); }.auth-tab { padding:12px 6px; border:0; border-bottom:3px solid transparent; background:transparent; cursor:pointer; font-weight:700; }.auth-tab.active { border-color:var(--coral); color:var(--coral); }.auth-panel { display:none !important; }.auth-panel.active { display:grid !important; }.code-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }.code-row .btn { min-width:112px; }.login-hint { color:var(--muted); font-size:11px; line-height:1.65; text-align:center; }.login-error.success { color:var(--moss); }
.connection-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }.connection-grid article { min-height:260px; padding:22px; border:1px solid var(--line); border-top:5px solid var(--moss); background:#fffdf8; display:flex; flex-direction:column; }.connection-grid article > span { color:var(--ochre); font:700 10px ui-monospace,Consolas,monospace; }.connection-grid article strong { margin-top:34px; font-size:21px; }.connection-grid article p { color:var(--muted); line-height:1.7; }.connection-grid article em { margin-top:auto; font-size:10px; font-style:normal; }.connection-grid article em.ready { color:var(--moss-dark); }.connection-grid article em.planned { color:#9b681c; }.connection-note { margin-top:22px; padding:18px; border-left:5px solid var(--ochre); background:#f3ead8; }.connection-note p { margin:7px 0 0; color:#765f36; line-height:1.7; }

@media (max-width:1120px) {
  .app-header { grid-template-columns:200px minmax(0,1fr); }.header-actions { display:none; }
  .story-suite,.visual-suite { grid-column:span 6; }.canvas-suite,.language-suite,.connect-suite { grid-column:span 4; }.connection-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.library-split { grid-template-columns:1fr; }.library-categories { border-right:0; }.recent-materials { padding-left:0; margin-top:20px; }
  .flow-shell { grid-template-columns:210px minmax(0,1fr); }.inspector { display:none; }
  .project-overview { align-items:flex-start; flex-direction:column; }.project-overview-stats { width:100%; grid-template-columns:repeat(4,1fr); }
}

@media (max-width:820px) {
  .app-header { height:auto; min-height:72px; padding:12px 16px; grid-template-columns:1fr auto; }.brand { grid-column:1; }.top-nav { grid-column:1/-1; order:3; margin:5px -16px -12px; border-top:1px solid var(--line); }.top-nav button { padding:12px 14px; }.header-actions { display:flex; grid-column:2; }.mode-badge { display:none; }
  .primary-nav { grid-column:1/-1; order:3; margin:5px -16px -12px; border-top:1px solid var(--line); }.primary-nav button { min-height:44px; padding:0 16px; }.workspace-strip { padding:0 16px; gap:10px; }
  .context-bar { padding:9px 16px; }.app-main { min-height:auto; }.page { padding:22px 16px 40px; }
  .hero-copy { padding:32px 30px 90px; }.hero-copy h1 { font-size:43px; }.ai-suite-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }.story-suite,.visual-suite,.canvas-suite,.language-suite { grid-column:span 1; }.connect-suite { grid-column:1/-1; }.stage-heading { align-items:flex-start; flex-direction:column; }.library-split { border-top-width:2px; }
  .workspace,.prompt-layout,.image-studio,.project-layout { grid-template-columns:1fr; }.project-nav { display:flex; flex-wrap:wrap; gap:0; }.project-nav-title,.yuque-note { width:100%; }.project-nav > button { width:50%; padding:12px; border:1px solid var(--line); }
  .canvas-mobile-note { margin-bottom:10px; padding:10px 12px; border-left:4px solid var(--ochre); background:#f3ead8; display:flex; align-items:flex-start; gap:10px; font-size:12px; line-height:1.55; }.canvas-mobile-note strong { flex:0 0 auto; }.canvas-mobile-note span { color:#765f36; }
  .flow-shell { grid-template-columns:1fr; height:auto; }.node-palette { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }.node-palette > strong { grid-column:1/-1; padding-bottom:10px; }.palette-item { min-width:0; padding:10px 8px; }.palette-item small { display:none; }.flow-canvas { min-height:620px; overflow:auto; }.inspector { display:block; }
  .library-toolbar { grid-template-columns:1fr 1fr; }.library-toolbar .search { grid-column:1/-1; }
}

@media (max-width:560px) {
  .brand small,.context-bar small { display:none; }.header-actions .btn { padding:7px 9px; }.context-bar > div { grid-template-columns:24px auto; }
  .primary-nav { height:auto; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); overflow:visible; }.primary-nav button { min-width:0; min-height:42px; padding:7px 2px; justify-content:center; font-size:12px; white-space:nowrap; }.workspace-strip > span { display:none; }.workspace-strip nav { width:100%; }.workspace-strip button { padding:0 12px; }
  .section-head { align-items:flex-start; flex-direction:column; }.library-actions { justify-content:flex-start; }
  .discovery-hero { min-height:520px; }.hero-shade { background:rgba(11,26,24,.72); }.hero-copy { min-height:520px; padding:28px 18px 92px; }.hero-kicker { font-size:8px; }.hero-copy h1 { margin:12px 0; font-size:32px; line-height:1.06; }.hero-copy > p { margin-bottom:16px; font-size:13px; line-height:1.65; }.home-search { padding:5px; grid-template-columns:minmax(0,1fr) auto; }.home-search input { padding:8px; font-size:11px; }.home-search button { width:auto; padding:8px 9px; font-size:11px; }.hero-actions { margin-top:10px; }.hero-actions span { display:none; }.hero-actions .btn { width:auto; }.hero-stats { left:0; right:0; grid-template-columns:repeat(3,1fr); border-left:0; }.hero-stats div { padding:8px 12px; }.hero-stats strong { font-size:20px; }.ai-suite-grid { grid-template-columns:1fr; }.story-suite,.visual-suite,.canvas-suite,.language-suite,.connect-suite { grid-column:1; min-height:0; }.ai-card-media,.canvas-suite .ai-card-media,.language-suite .ai-card-media,.connect-suite .ai-card-media { min-height:190px; }.connection-grid { grid-template-columns:1fr; }.library-categories > button { grid-template-columns:34px 1fr 28px; padding:13px 8px; }.library-categories small { line-height:1.5; }.recent-head { align-items:flex-start; flex-direction:column; padding-bottom:12px; }.home-resource-empty { padding:26px 10px; }.home-tail { gap:28px; }.start-actions,.editor-foot,.dialog-actions { align-items:stretch; flex-direction:column; }.start-actions .btn { width:100%; }
  .row,.dialog-grid { grid-template-columns:1fr; }.dialog-grid .full { grid-column:auto; }.project-nav > button { width:100%; }.node-palette { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .project-overview-stats { grid-template-columns:1fr 1fr; }.project-overview-stats div { border-top:1px solid var(--line); border-left:0; }
  .library-toolbar { grid-template-columns:1fr; }.library-toolbar .search { grid-column:auto; }.resource-grid { grid-template-columns:1fr; }
}

/* 2026 original visual refresh: warm 2D manju studio with a distinct AI lab. */
:root {
  --ink:#28251f;
  --muted:#716c62;
  --paper:#f7f1e5;
  --panel:#fffdf7;
  --line:#cfc4b1;
  --line-soft:#e8dfcf;
  --moss:#27715e;
  --moss-dark:#174d40;
  --ochre:#f0b748;
  --coral:#dc5b3f;
  --charcoal:#242821;
}

body {
  background-color:var(--paper);
  background-image:radial-gradient(circle at 1px 1px,rgba(52,44,33,.08) 1px,transparent 0);
  background-size:24px 24px;
}

.app-header { border-bottom:2px solid var(--ink); background:rgba(255,253,247,.96); }
.brand-mark { width:40px; height:40px; border:2px solid var(--ink); border-radius:50%; box-shadow:3px 3px 0 var(--ink); transform:rotate(-4deg); }
.workspace-strip { background:#eadfca; }
.context-bar { background:#fffaf0; }
.btn { border-color:var(--ink); border-radius:3px; background:#fffdf7; box-shadow:2px 2px 0 rgba(40,37,31,.16); transition:transform .18s ease,box-shadow .18s ease,background .18s ease; }
.btn:hover { transform:translate(-1px,-1px); box-shadow:3px 3px 0 rgba(40,37,31,.2); }
.btn.strong,.btn.primary { background:var(--charcoal); }
.panel { border-radius:4px; background:var(--panel); box-shadow:4px 5px 0 rgba(74,61,43,.05); }
.input,.search,.model-select,.editor textarea,.prompt-detail textarea { background:#fffdf7; }
.tool:hover,.tool.active,.prompt-list button:hover,.prompt-list button.active,.project-nav > button.active { background:#f0e2c8; }

.command-home { gap:44px; }
.discovery-hero { min-height:540px; border:2px solid var(--ink); border-radius:5px; background:#2d2822; box-shadow:8px 9px 0 rgba(40,37,31,.13); }
.hero-backdrop { object-position:center; filter:saturate(.92) contrast(1.03); transform:scale(1.015); }
.hero-shade { background:linear-gradient(90deg,rgba(37,32,27,.96) 0%,rgba(37,32,27,.86) 36%,rgba(37,32,27,.35) 67%,rgba(37,32,27,.08) 100%); }
.hero-copy { min-height:540px; padding:52px 48px 92px; }
.hero-kicker,.stage-heading span { color:#f1b84b; font-weight:800; }
.hero-copy h1 { max-width:710px; margin:15px 0; font-family:"Noto Sans SC","Source Han Sans SC","Microsoft YaHei",sans-serif; font-size:clamp(39px,4.2vw,64px); font-weight:900; line-height:1.08; text-shadow:0 3px 0 rgba(0,0,0,.16); }
.hero-copy > p { max-width:640px; margin:0 0 16px; color:#f1eadd; }
.hero-chips { margin-bottom:22px; display:flex; flex-wrap:wrap; gap:8px; }
.hero-chips span { padding:5px 9px; border:1px solid rgba(255,255,255,.46); border-radius:99px; background:rgba(255,255,255,.09); color:#fff6df; font-size:10px; }
.home-search { width:min(720px,100%); border:2px solid var(--ink); border-radius:4px; background:#fffdf7; box-shadow:5px 5px 0 rgba(0,0,0,.22); }
.home-search button { border-radius:2px; background:var(--ochre); color:#24211d; font-weight:800; }
.hero-actions span { color:#ddd2c1; }
.hero-stats { border-top:2px solid var(--ink); border-left:2px solid var(--ink); background:rgba(255,246,226,.93); color:var(--ink); backdrop-filter:none; }
.hero-stats div { border-right-color:#cdbd9f; }
.hero-stats strong { font:900 24px ui-monospace,Consolas,monospace; }
.hero-stats span { color:#766c5d; }

.ai-suite { padding:24px; border:2px solid var(--ink); border-radius:5px; background:#202923; box-shadow:8px 9px 0 rgba(40,37,31,.12); }
.ai-lab-feature { min-height:365px; position:relative; overflow:hidden; border:1px solid rgba(255,255,255,.25); background:#eaf0ea; }
.ai-lab-feature > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.ai-lab-feature::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(20,32,28,.08) 0%,rgba(20,32,28,.2) 48%,rgba(20,32,28,.9) 72%,rgba(20,32,28,.97) 100%); }
.ai-lab-copy { width:min(430px,45%); position:relative; z-index:2; margin-left:auto; padding:48px 42px; color:#fff; }
.ai-lab-copy > span { color:#68e1c0; font:800 10px ui-monospace,Consolas,monospace; letter-spacing:.16em; }
.ai-lab-copy h2 { margin:15px 0 12px; font-size:34px; line-height:1.16; }
.ai-lab-copy p { margin:0 0 23px; color:#cbd8d2; font-size:13px; line-height:1.8; }
.ai-lab-button { border-color:#78e0c3; background:#78e0c3; color:#16332a; font-weight:800; box-shadow:3px 3px 0 #0c1713; }
.ai-stage-heading { margin-top:26px; color:#fff; }
.ai-stage-heading > p { color:#aebbb5; }
.ai-stage-heading h2 { font-size:25px; }
.ai-suite-grid { gap:13px; }
.ai-card { min-height:365px; border:2px solid #101a16; border-radius:3px; background:#fffdf7; box-shadow:4px 4px 0 #101a16; transition:transform .18s ease,box-shadow .18s ease; }
.ai-card:hover { transform:translate(-2px,-2px); border-color:#101a16; box-shadow:7px 7px 0 #101a16; }
.canvas-suite,.language-suite,.connect-suite { min-height:330px; }
.ai-card-media { min-height:190px; background-color:#173a31; }
.story-media { background-image:linear-gradient(120deg,rgba(16,48,40,.05),rgba(16,48,40,.2)),url('/images/poster-story-workflow.jpg'); background-position:center; }
.visual-media { background-image:linear-gradient(120deg,rgba(220,91,63,.03),rgba(16,48,40,.18)),url('/images/poster-material-hub.jpg'); background-position:center; }
.canvas-media { background-image:linear-gradient(120deg,rgba(16,48,40,.03),rgba(16,48,40,.2)),url('/images/poster-infinite-canvas.jpg'); background-position:center; }
.language-media { background-color:#e8d2aa; background-image:linear-gradient(120deg,rgba(73,46,29,.02),rgba(73,46,29,.18)),url('/images/poster-modern-drama.jpg'); background-position:center; }
.connect-media { background-color:#d8c49a; background-image:linear-gradient(120deg,rgba(18,54,46,.03),rgba(18,54,46,.2)),url('/images/poster-access-portal.jpg'); background-position:center; }
.canvas-suite .ai-card-media,.language-suite .ai-card-media,.connect-suite .ai-card-media { min-height:176px; }
.media-glow { background:rgba(104,225,192,.28); }
.media-grid { opacity:.28; background-size:28px 28px; }
.ai-card-top span { border-color:#8db4a7; background:#eef8f3; }
.ai-card-body > em { font-weight:800; }

.library-window { padding:27px; border:2px solid var(--ink); border-radius:5px; background:#fffaf0; box-shadow:7px 8px 0 rgba(40,37,31,.1); }
.library-categories > button:hover { background:#f2e3c9; }
.library-categories > button > span { width:30px; height:30px; display:grid; place-items:center; border:1px solid var(--ink); border-radius:50%; background:var(--ochre); color:var(--ink); font-weight:800; }
.home-resource-empty strong { font-family:"Noto Sans SC","Source Han Sans SC","Microsoft YaHei",sans-serif; font-weight:900; }
.quick-draft { position:relative; padding:24px; border:2px solid var(--ink); border-radius:5px; background:#e4f0e8; box-shadow:7px 8px 0 rgba(40,37,31,.1); }
.quick-draft::before { content:"创意冒泡"; position:absolute; right:24px; top:-15px; padding:6px 10px; border:2px solid var(--ink); background:var(--ochre); font-size:10px; font-weight:800; transform:rotate(2deg); }
.quick-draft textarea { border:2px solid var(--ink); border-radius:3px; background:#fffdf8; box-shadow:4px 4px 0 rgba(40,37,31,.1); }

.preview-grid,.asset-thumb { background:#eadfc9; }
.empty-art .orb { width:210px; height:118px; background:url('/images/poster-ai-team.jpg') 36% center/cover; border:2px solid var(--ink); box-shadow:5px 5px 0 rgba(40,37,31,.13); }
.project-overview { border:2px solid var(--ink); border-top:7px solid var(--moss); background:#fff8e9; box-shadow:5px 5px 0 rgba(40,37,31,.08); }
.resource-card,.asset-card { border:1px solid var(--ink); background:#fffdf7; box-shadow:3px 3px 0 rgba(40,37,31,.08); }
.resource-cover { background:#e9ddc7; }
.flow-canvas { background-color:#f5eddd; }
.connection-grid article { border:2px solid var(--ink); border-top:7px solid var(--moss); background:#fffaf0; box-shadow:4px 4px 0 rgba(40,37,31,.08); }
.connection-note,.notice,.canvas-mobile-note { background:#f7e4bd; }

@media (max-width:820px) {
  .ai-lab-feature { min-height:540px; }
  .ai-lab-feature > img { object-position:28% center; }
  .ai-lab-feature::after { background:linear-gradient(0deg,rgba(20,32,28,.96) 0%,rgba(20,32,28,.72) 48%,rgba(20,32,28,.04) 78%); }
  .ai-lab-copy { width:100%; position:absolute; left:0; right:0; bottom:0; padding:34px 30px; }
}

@media (max-width:560px) {
  .discovery-hero { min-height:560px; }
  .hero-backdrop { object-position:58% center; }
  .hero-shade { background:linear-gradient(0deg,rgba(37,32,27,.96) 0%,rgba(37,32,27,.82) 68%,rgba(37,32,27,.25) 100%); }
  .hero-copy { min-height:560px; padding:94px 18px 86px; justify-content:flex-start; }
  .hero-copy h1 { max-width:330px; font-size:31px; line-height:1.08; }
  .hero-copy > p { margin-bottom:12px; font-size:12px; }
  .hero-chips { margin-bottom:14px; }
  .hero-chips span { font-size:9px; }
  .ai-suite { padding:12px; }
  .ai-lab-feature { min-height:500px; }
  .ai-lab-feature > img { object-position:25% center; }
  .ai-lab-copy { padding:26px 18px; }
  .ai-lab-copy h2 { font-size:28px; }
  .library-window { padding:18px 12px; }
}

/* Cohesive generated illustration series and original footer. */






.library-feature { min-height:320px; margin-bottom:26px; position:relative; overflow:hidden; border:2px solid var(--ink); background:#2a2c27; }
.library-feature > img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.library-feature::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(36,34,29,.02) 0%,rgba(36,34,29,.12) 48%,rgba(36,34,29,.88) 72%,rgba(36,34,29,.96) 100%); }
.library-feature-copy { width:min(430px,43%); position:relative; z-index:2; margin-left:auto; padding:45px 38px; color:#fff; }
.library-feature-copy > span { color:#ffd268; font:800 10px ui-monospace,Consolas,monospace; letter-spacing:.15em; }
.library-feature-copy h2 { margin:14px 0 10px; font-size:32px; line-height:1.15; }
.library-feature-copy p { margin:0 0 22px; color:#e0ddd5; font-size:12px; line-height:1.8; }
.library-feature-copy .btn { background:var(--ochre); color:var(--ink); font-weight:800; }

.site-footer { margin-top:44px; border-top:2px solid var(--ink); background:#202821; color:#f7f0e4; }
.footer-main { width:min(1480px,100%); margin:0 auto; padding:48px 34px 38px; display:grid; grid-template-columns:minmax(280px,1.35fr) minmax(150px,.65fr) minmax(170px,.75fr) minmax(250px,1fr); gap:48px; }
.footer-brand-line { display:flex; align-items:center; gap:13px; }
.footer-brand-line .brand-mark { flex:0 0 auto; box-shadow:3px 3px 0 #0e120f; }
.footer-brand-line strong,.footer-brand-line small { display:block; }
.footer-brand-line strong { font-size:19px; }
.footer-brand-line small { margin-top:3px; color:#aeb8af; font-size:9px; letter-spacing:.12em; }
.footer-brand > p { max-width:390px; margin:20px 0 16px; color:#cbd2cc; font-size:12px; line-height:1.8; }
.footer-brand > span { color:#f0b748; font:700 11px ui-monospace,Consolas,monospace; }
.footer-column { display:flex; flex-direction:column; align-items:flex-start; gap:11px; }
.footer-column > strong { margin-bottom:7px; color:#fff; font-size:14px; }
.footer-column button { padding:0; border:0; background:transparent; color:#bdc8c0; cursor:pointer; font-size:12px; text-align:left; }
.footer-column button:hover { color:#ffd268; }
.footer-status { align-self:start; padding:20px; border:1px solid #5e6a61; background:#29342c; box-shadow:5px 5px 0 #111712; }
.footer-status > span { color:#68e1c0; font:800 9px ui-monospace,Consolas,monospace; letter-spacing:.13em; }
.footer-status > strong { display:block; margin:10px 0 8px; font-size:18px; }
.footer-status > p { margin:0 0 17px; color:#bac5bd; font-size:11px; line-height:1.7; }
.footer-status .icp-link { color:#f7f0e4; text-underline-offset:3px; }
.footer-status .icp-link:hover,
.footer-status .icp-link:focus-visible { color:#ffd268; }
.footer-status .btn { border-color:#819086; background:transparent; color:#fff; box-shadow:none; }
.footer-bottom { width:min(1480px,100%); margin:0 auto; padding:18px 34px 24px; border-top:1px solid #465149; color:#9eaaa1; display:flex; justify-content:space-between; gap:24px; font-size:10px; }

@media (max-width:900px) {
  .footer-main { grid-template-columns:1.2fr 1fr 1fr; gap:32px; }
  .footer-status { grid-column:1/-1; }
}

@media (max-width:820px) {
  .library-feature { min-height:500px; }
  .library-feature > img { object-position:34% center; }
  .library-feature::after { background:linear-gradient(0deg,rgba(36,34,29,.96) 0%,rgba(36,34,29,.68) 46%,rgba(36,34,29,.04) 76%); }
  .library-feature-copy { width:100%; position:absolute; left:0; right:0; bottom:0; padding:32px 28px; }
}

@media (max-width:620px) {
  .site-footer { margin-top:28px; }
  .footer-main { padding:38px 18px 28px; grid-template-columns:1fr 1fr; gap:30px 22px; }
  .footer-brand { grid-column:1/-1; }
  .footer-status { grid-column:1/-1; }
  .footer-bottom { padding:17px 18px 22px; align-items:flex-start; flex-direction:column; gap:8px; }
}

@media (max-width:560px) {
  .library-feature { min-height:430px; }
  .library-feature > img { object-position:37% center; }
  .library-feature-copy { padding:25px 18px; }
  .library-feature-copy h2 { font-size:27px; }
}

/* Member access and customer read-only states. */
.user-badge { max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#6f675b; font-size:10px; }
.member-readonly { padding:8px 12px; border:1px solid #b7aa95; background:#f5ecdb; color:#765f36; font-size:11px; }
.admin-summary { margin-bottom:18px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.admin-summary > div { padding:20px; border:2px solid var(--ink); background:#fffaf0; box-shadow:4px 4px 0 rgba(40,37,31,.1); }
.admin-summary strong,.admin-summary span { display:block; }
.admin-summary strong { font-size:28px; }
.admin-summary span { margin-top:5px; color:var(--muted); font-size:11px; }
.application-list { display:grid; gap:10px; }
.member-create-form { margin:0 0 18px; padding:18px 20px; border:1px solid var(--line); border-left:5px solid var(--moss); background:#fffdf8; display:grid; grid-template-columns:1fr 1fr 1fr auto; gap:12px; align-items:end; }
.member-create-form label { display:grid; gap:7px; color:var(--muted); font-size:11px; }
.member-create-form .btn { min-height:42px; }
.application-card { padding:18px 20px; border:1px solid var(--line); background:#fff; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.application-card h2 { margin:8px 0 4px; font-size:17px; }
.application-card p { margin:0 0 8px; color:#554f46; }
.application-card small { color:var(--muted); line-height:1.6; }
.application-status { padding:4px 7px; border:1px solid var(--line); font-size:9px; }
.application-status.pending { background:#fff2ce; color:#8b5a12; }
.application-status.approved { background:#e3f1e8; color:#285b3b; }
.application-status.rejected { background:#f6ded9; color:#8a352c; }
.application-actions { display:flex; gap:8px; flex:0 0 auto; }
@media (max-width:560px) {
  .admin-summary { grid-template-columns:1fr; }
  .member-create-form { grid-template-columns:1fr; }
  .application-card { align-items:flex-start; flex-direction:column; }
  .application-actions { width:100%; }
  .application-actions .btn { flex:1; }
}

/* Bright teaching workspace: visually separate from the dark AI creation lab. */
.app-main.page-library {
  --learn-bg:#f4f8fc;
  --learn-surface:#ffffff;
  --learn-surface-soft:#f8fbfe;
  --learn-text:#1f2937;
  --learn-muted:#64748b;
  --learn-line:#dce5ef;
  --learn-teal:#168a7a;
  --learn-teal-soft:#e7f6f2;
  --learn-blue:#3b82f6;
  --learn-blue-soft:#eaf2ff;
  --learn-yellow:#f4b740;
  --learn-coral:#f26b5b;
  background:var(--learn-bg);
  background-image:linear-gradient(rgba(255,255,255,.58),rgba(255,255,255,.58)),radial-gradient(circle at 1px 1px,rgba(76,109,146,.08) 1px,transparent 0);
  background-size:auto,24px 24px;
}
.library-page { color:var(--learn-text); }
.library-page-head { margin-bottom:22px; padding:24px 26px; border:1px solid var(--learn-line); border-radius:8px; background:rgba(255,255,255,.92); box-shadow:0 14px 38px rgba(45,78,113,.07); }
.library-page-head h1 { margin:6px 0 8px; color:var(--learn-text); font-family:"Noto Sans SC","Source Han Sans SC","Microsoft YaHei",sans-serif; font-size:30px; font-weight:800; }
.library-page-head p { margin:0; color:var(--learn-muted); }
.library-kicker { color:var(--learn-teal); font:800 10px ui-monospace,Consolas,monospace; letter-spacing:.14em; }
.library-page .btn { border-color:var(--learn-line); border-radius:6px; background:#fff; color:var(--learn-text); box-shadow:none; }
.library-page .btn:hover { border-color:#b9c9da; background:#f8fbfe; box-shadow:none; transform:none; }
.library-page .btn.primary { border-color:#24313d; background:#24313d; color:#fff; }
.library-page .btn.teal { border-color:var(--learn-teal); background:var(--learn-teal); color:#fff; }
.library-page .member-readonly { border-color:#b7d7cf; border-radius:6px; background:var(--learn-teal-soft); color:#256a5f; }

.library-education-shell { width:100%; display:grid; grid-template-columns:clamp(330px,18vw,380px) minmax(0,1fr); gap:28px; align-items:start; }
.library-sidebar { position:sticky; top:18px; overflow:hidden; border:1px solid var(--learn-line); border-radius:8px; background:var(--learn-surface); box-shadow:0 12px 32px rgba(50,84,120,.08); }
.library-project-picker { padding:23px; border-bottom:1px solid var(--learn-line); background:linear-gradient(135deg,#f7fffc,#f4f8ff); }
.library-project-picker label,.library-project-picker small { display:block; }
.library-project-picker label { margin-bottom:9px; color:var(--learn-text); font-size:14px; font-weight:800; }
.library-project-picker .input { width:100%; min-height:46px; border-color:#cbd8e5; border-radius:6px; background:#fff; font-size:13px; }
.library-project-picker small { margin-top:9px; color:var(--learn-muted); font-size:12px; }
.library-side-nav { padding:16px 12px 12px; display:grid; grid-template-columns:1fr; gap:6px; }
.library-side-title { grid-column:1; padding:9px 11px 7px; color:#8a99aa; font-size:12px; letter-spacing:.08em; }
.library-side-title.topic-title { margin-top:9px; padding-top:16px; border-top:1px solid var(--learn-line); }
.library-side-nav > button { width:100%; min-width:0; min-height:58px; padding:10px 11px; border:1px solid transparent; border-radius:6px; background:transparent; display:grid; grid-template-columns:40px minmax(0,1fr) auto; gap:11px; align-items:center; color:var(--learn-text); cursor:pointer; text-align:left; transition:background .16s ease,border-color .16s ease,color .16s ease; }
.library-side-nav > button:hover { border-color:var(--learn-line); background:var(--learn-surface-soft); }
.library-side-nav > button.active { border-color:#c9dcff; background:var(--learn-blue-soft); color:#1859bd; }
.library-side-nav > button.quick-item { padding:10px 11px; grid-template-columns:40px minmax(0,1fr) auto; gap:11px; }
.library-side-nav > button.quick-item small { display:block; }
.library-side-nav > button.topic-item { grid-column:1; }
.library-side-nav > button > span:nth-child(2) { min-width:0; }
.library-side-nav b,.library-side-nav small { display:block; }
.library-side-nav b { overflow:hidden; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.library-side-nav small { margin-top:4px; overflow:hidden; color:var(--learn-muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.library-side-nav button.active small { color:#587aa5; }
.library-side-nav em { min-width:28px; padding:4px 7px; border-radius:99px; background:#eef3f8; color:#6b7b8e; font-size:11px; font-style:normal; text-align:center; }
.library-side-nav button.active em { background:#fff; color:var(--learn-blue); }
.library-nav-icon { width:38px; height:38px; display:grid; place-items:center; border-radius:7px; background:var(--learn-teal-soft); color:var(--learn-teal); font-size:13px; font-weight:900; }
.quick-item .library-nav-icon { width:38px; height:38px; }
.library-nav-icon.topic { background:#fff5d9; color:#9a6814; }
.library-side-nav button.active .library-nav-icon { background:var(--learn-blue); color:#fff; }
.library-storage-note { margin:12px; padding:17px; border:1px solid #f3d891; border-radius:7px; background:#fff9e8; }
.library-storage-note strong { color:#72551d; font-size:13px; }
.library-storage-note p { margin:7px 0 0; color:#806d49; font-size:11px; line-height:1.7; }

.library-main { min-width:0; }
.library-section-overview { min-height:154px; padding:28px 30px; border:1px solid var(--learn-line); border-radius:8px; background:linear-gradient(135deg,#fff 0%,#f9fffd 58%,#edf6ff 100%); display:flex; align-items:center; justify-content:space-between; gap:28px; box-shadow:0 12px 32px rgba(50,84,120,.07); }
.library-section-overview .project-label { color:var(--learn-coral); letter-spacing:.08em; }
.library-section-overview h2 { margin:9px 0 8px; color:var(--learn-text); font-size:30px; }
.library-section-overview p { margin:0; color:var(--learn-muted); font-size:14px; }
.library-section-stats { display:grid; grid-template-columns:repeat(3,104px); flex:0 0 auto; }
.library-section-stats div { padding:9px 14px; border-left:1px solid var(--learn-line); text-align:center; }
.library-section-stats strong,.library-section-stats span { display:block; }
.library-section-stats strong { color:var(--learn-text); font-size:27px; }
.library-section-stats span { margin-top:3px; color:var(--learn-muted); font-size:11px; }

.library-course-filter { margin-top:16px; padding:20px 22px; border:1px solid var(--learn-line); border-radius:8px; background:var(--learn-surface); display:grid; grid-template-columns:170px minmax(0,1fr); gap:20px; align-items:start; }
.library-course-filter > div:first-child strong,.library-course-filter > div:first-child span { display:block; }
.library-course-filter > div:first-child strong { font-size:14px; }
.library-course-filter > div:first-child span { margin-top:5px; color:var(--learn-muted); font-size:11px; }
.course-chips { display:flex; flex-wrap:wrap; gap:8px; }
.course-chips button { min-height:38px; padding:8px 13px; border:1px solid var(--learn-line); border-radius:99px; background:#fff; color:#506174; cursor:pointer; font-size:12px; }
.course-chips button:hover { border-color:#8fcabd; background:#f6fffc; color:#176f62; }
.course-chips button.active { border-color:var(--learn-teal); background:var(--learn-teal); color:#fff; }
.course-chips em { margin-left:4px; opacity:.72; font-style:normal; }

.library-page .library-toolbar { margin-top:16px; padding:16px; border:1px solid var(--learn-line); border-radius:8px; background:var(--learn-surface); grid-template-columns:minmax(300px,1fr) 180px auto auto; align-items:center; }
.library-search-field { height:46px; border:1px solid #cbd8e5; border-radius:6px; background:#fff; display:grid; grid-template-columns:42px minmax(0,1fr); align-items:center; }
.library-search-field > span { color:#7890a8; font-size:20px; text-align:center; }
.library-search-field .search { width:100%; height:44px; padding:0 14px 0 0; border:0; background:transparent; box-shadow:none; font-size:13px; }
.library-page .library-toolbar .input { height:46px; border-color:#cbd8e5; border-radius:6px; background:#fff; font-size:13px; }
.library-search-button { min-height:46px; padding-inline:17px; border-color:var(--learn-teal) !important; background:var(--learn-teal) !important; color:#fff !important; font-weight:800; }
.library-reset-button { min-height:46px; padding-inline:17px; color:var(--learn-coral) !important; }
.library-results-head { padding:22px 2px 14px; display:flex; align-items:end; justify-content:space-between; gap:16px; }
.library-results-head > div { display:flex; align-items:baseline; gap:9px; }
.library-results-head strong { font-size:19px; }
.library-results-head span,.library-results-head small { color:var(--learn-muted); font-size:12px; }

.library-page .resource-grid { width:100%; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:18px; }
.library-page .resource-card { overflow:hidden; border:1px solid var(--learn-line); border-radius:8px; background:var(--learn-surface); box-shadow:0 8px 22px rgba(43,75,108,.07); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.library-page .resource-card:hover { border-color:#b9d0e7; box-shadow:0 13px 28px rgba(43,75,108,.12); transform:translateY(-2px); }
.library-page .resource-cover { height:168px; background:linear-gradient(135deg,#e8f4ff,#f4f9ff); color:var(--learn-blue); }
.library-page .resource-card.type-video .resource-cover { background:linear-gradient(135deg,#e6f8f3,#f4fffc); color:var(--learn-teal); }
.library-page .resource-card.type-file .resource-cover { background:linear-gradient(135deg,#fff4da,#fffaf0); color:#ad7415; }
.library-page .resource-cover > span { width:52px; height:52px; display:grid; place-items:center; border:1px solid currentColor; border-radius:50%; background:rgba(255,255,255,.72); font-family:"Noto Sans SC","Microsoft YaHei",sans-serif; font-size:18px; font-weight:800; }
.library-page .resource-cover em { right:10px; top:10px; padding:5px 8px; border-radius:4px; background:rgba(31,41,55,.86); }
.library-page .resource-content { padding:18px 19px 20px; }
.library-page .resource-content h2 { margin:11px 0 8px; color:var(--learn-text); font-size:17px; line-height:1.5; }
.library-page .resource-content p { color:var(--learn-muted); font-size:13px; }
.library-page .resource-content > small { display:block; overflow:hidden; color:#52677d; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.library-page .resource-meta { color:#718399; font-size:11px; }
.library-page .status-ready { color:var(--learn-teal); }
.library-page .status-pending { color:#a36d13; }
.library-page .status-external { color:var(--learn-coral); }
.library-page .resource-tags span { padding:4px 7px; border-color:#dce8f3; border-radius:4px; background:#f8fbfe; color:#60758b; font-size:10px; }
.library-page .library-empty { min-height:280px; border-color:#b9cde1; border-radius:8px; background:rgba(255,255,255,.72); }
.library-page .library-empty > span { width:52px; height:52px; display:grid; place-items:center; margin-bottom:12px; border-radius:50%; background:var(--learn-blue-soft); color:var(--learn-blue); font-size:24px; }
.library-page .library-empty p { color:var(--learn-muted); }
.library-page .pagination .btn { min-width:86px; }
.library-page .library-updated-line { color:#8b9bad; }

@media (max-width:1180px) {
  .library-education-shell { grid-template-columns:280px minmax(0,1fr); gap:18px; }
  .library-section-overview { align-items:flex-start; flex-direction:column; }
  .library-section-stats { width:100%; grid-template-columns:repeat(3,1fr); }
  .library-section-stats div:first-child { border-left:0; }
  .library-course-filter { grid-template-columns:1fr; gap:12px; }
}

@media (max-width:900px) {
  .library-education-shell { grid-template-columns:1fr; }
  .library-sidebar { position:static; }
  .library-side-nav { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
  .library-side-title { grid-column:1/-1; }
  .library-storage-note { margin:8px 10px 12px; }
  .library-page .library-toolbar { grid-template-columns:minmax(0,1fr) 145px; }
  .library-search-field { grid-column:1/-1; }
  .library-search-button,.library-reset-button { width:100%; }
}

@media (max-width:620px) {
  .page { padding:18px 14px 46px; }
  .library-page-head { padding:20px 18px; }
  .library-page-head h1 { font-size:25px; }
  .library-actions { width:100%; }
  .library-actions .btn { flex:1; }
  .library-side-nav { grid-template-columns:1fr; }
  .library-side-title { grid-column:1; }
  .library-section-overview { padding:20px 18px; }
  .library-section-overview h2 { font-size:22px; }
  .library-course-filter { padding:15px; }
  .course-chips { flex-wrap:nowrap; padding-bottom:4px; overflow-x:auto; }
  .course-chips button { flex:0 0 auto; }
  .library-page .library-toolbar { grid-template-columns:1fr; }
  .library-search-field { grid-column:1; }
  .library-results-head { align-items:flex-start; flex-direction:column; }
}

/* Ordered course learning flow */
.library-page .library-toolbar { grid-template-columns:minmax(260px,1fr) 150px 150px auto auto; }
.course-catalog { margin-top:16px; padding:24px; border:1px solid var(--learn-line); border-radius:5px; background:#fff; }
.course-catalog-head { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding-bottom:20px; border-bottom:1px solid var(--learn-line); }
.course-catalog-head > div { min-width:0; }
.course-catalog-head span { color:var(--learn-teal); font-size:11px; font-weight:800; letter-spacing:.08em; }
.course-catalog-head h2 { margin:6px 0 7px; color:var(--learn-text); font-size:24px; }
.course-catalog-head p { margin:0; color:var(--learn-muted); font-size:13px; line-height:1.7; }
.course-catalog-head > strong { flex:0 0 auto; color:var(--learn-text); font-size:34px; font-variant-numeric:tabular-nums; }
.course-catalog-head > strong small { display:block; color:var(--learn-muted); font-size:10px; font-weight:500; text-align:right; }
.course-catalog-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; padding-top:18px; }
.course-catalog-card { position:relative; min-width:0; min-height:170px; border:1px solid var(--learn-line); border-radius:5px; background:#fbfdfb; color:var(--learn-text); overflow:hidden; transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease,opacity .16s ease; }
.course-catalog-card:hover,.course-catalog-card:focus-within { border-color:#8fb9aa; background:#f5faf7; box-shadow:0 8px 20px rgba(45,80,65,.08); }
.course-catalog-card.is-unassigned { background:#fbf8f1; }
.course-catalog-open { width:100%; min-height:168px; padding:18px; border:0; background:transparent; color:inherit; cursor:pointer; display:grid; grid-template-columns:38px minmax(0,1fr); grid-template-rows:1fr auto; gap:12px; text-align:left; }
.course-catalog-open:focus-visible { outline:2px solid var(--learn-teal); outline-offset:-3px; }
.course-catalog-card.is-sortable .course-catalog-open { padding-top:62px; }
.course-catalog-number { width:38px; height:38px; border:1px solid #cfded6; border-radius:4px; color:var(--learn-teal); display:grid; place-items:center; font-size:12px; font-weight:800; font-variant-numeric:tabular-nums; }
.course-catalog-open > div { min-width:0; }
.course-catalog-open > div small { color:var(--learn-teal); font-size:10px; font-weight:700; }
.course-catalog-card h3 { margin:5px 0 8px; color:var(--learn-text); font-size:16px; line-height:1.45; overflow-wrap:anywhere; }
.course-catalog-card p { margin:0; color:var(--learn-muted); font-size:11px; line-height:1.6; }
.course-catalog-open > em { grid-column:1; align-self:end; color:var(--learn-muted); font-size:10px; font-style:normal; }
.course-catalog-open > b { grid-column:2; justify-self:end; align-self:end; color:var(--learn-teal); font-size:12px; }
.library-sort-controls { display:flex; align-items:center; gap:4px; }
.course-catalog-card > .library-sort-controls { position:absolute; z-index:2; top:8px; right:8px; }
.library-sort-handle,.library-sort-move { width:44px; height:44px; padding:0; border:1px solid #cfded6; border-radius:4px; background:#fff; color:var(--learn-teal); display:grid; place-items:center; cursor:pointer; touch-action:manipulation; transition:border-color .15s ease,background-color .15s ease,color .15s ease; }
.library-sort-handle { cursor:grab; user-select:none; touch-action:none; }
.library-sort-handle:active { cursor:grabbing; }
.library-sort-handle:hover,.library-sort-handle:focus-visible,.library-sort-move:hover,.library-sort-move:focus-visible { border-color:var(--learn-teal); background:#eef7f2; outline:2px solid rgba(31,111,87,.2); outline-offset:1px; }
.library-sort-move:disabled { opacity:.35; cursor:not-allowed; }
.library-sort-handle svg,.library-sort-move svg { width:18px; height:18px; fill:currentColor; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.course-catalog-card.is-dragging,.course-lesson-group.is-dragging { opacity:.48; border-color:var(--learn-teal); box-shadow:0 12px 28px rgba(31,111,87,.16); pointer-events:none; }
.course-catalog-grid.is-saving,.course-lesson-list.is-saving { pointer-events:none; opacity:.68; }
.library-back-to-courses { min-height:34px; padding:6px 10px; border:1px solid var(--learn-line); border-radius:4px; background:#fff; color:var(--learn-teal); cursor:pointer; font-size:12px; }
.library-back-to-courses:hover,.library-back-to-courses:focus-visible { border-color:var(--learn-teal); outline:none; }
.course-lesson-list { display:grid; gap:10px; }
.course-lesson-group { min-width:0; display:grid; gap:7px; }
.course-lesson-group.is-sortable { padding:8px; border:1px dashed #bfd2c8; border-radius:6px; background:#f8fbf9; transition:border-color .16s ease,background-color .16s ease,opacity .16s ease; }
.course-lesson-group.is-sortable:focus-within { border-color:var(--learn-teal); }
.course-lesson-sortbar { min-height:44px; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.course-lesson-sortbar > span { padding-left:6px; color:var(--learn-muted); font-size:11px; font-weight:700; }
.course-lesson { border:1px solid var(--learn-line); border-radius:5px; background:#fff; overflow:hidden; }
.course-lesson-open { width:100%; min-height:132px; padding:0; border:0; background:transparent; color:var(--learn-text); cursor:pointer; display:grid; grid-template-columns:92px minmax(0,1fr) 66px; align-items:stretch; text-align:left; }
.course-lesson-open:hover,.course-lesson-open:focus-visible { background:#f7faf8; outline:none; }
.course-lesson-index { padding:18px 14px; border-right:1px solid var(--learn-line); background:#f1f6f3; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.course-lesson-index small { color:var(--learn-muted); font-size:10px; }
.course-lesson-index strong { margin:3px 0; color:var(--learn-teal); font-size:27px; font-variant-numeric:tabular-nums; }
.course-lesson-index em { color:var(--learn-muted); font-size:9px; font-style:normal; font-variant-numeric:tabular-nums; }
.course-lesson-content { min-width:0; padding:17px 20px; }
.course-lesson-meta { display:flex; flex-wrap:wrap; gap:7px; color:var(--learn-muted); font-size:10px; }
.course-lesson-meta span { padding-right:7px; border-right:1px solid var(--learn-line); }
.course-lesson-meta span:last-child { padding-right:0; border-right:0; }
.course-lesson-content h3 { margin:8px 0 6px; font-size:17px; line-height:1.45; overflow-wrap:anywhere; }
.course-lesson-content p { margin:0; color:var(--learn-muted); font-size:12px; line-height:1.65; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.course-lesson-content .resource-tags { margin-top:9px; }
.course-lesson-action { align-self:center; justify-self:center; color:var(--learn-teal); font-size:12px; font-weight:700; }

@media (max-width:1050px) {
  .course-catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .library-page .library-toolbar { grid-template-columns:minmax(0,1fr) 145px 145px; }
  .library-search-field { grid-column:1/-1; }
}
@media (max-width:620px) {
  .course-catalog { padding:17px 12px; }
  .course-catalog-head { align-items:flex-start; flex-direction:column; gap:12px; }
  .course-catalog-head h2 { font-size:20px; }
  .course-catalog-head > strong small { text-align:left; }
  .course-catalog-grid { grid-template-columns:1fr; }
  .course-catalog-card { min-height:150px; }
  .course-catalog-open { min-height:148px; padding:15px 13px; }
  .course-catalog-card.is-sortable .course-catalog-open { padding-top:62px; }
  .course-lesson-sortbar { align-items:flex-start; flex-direction:column; }
  .course-lesson-sortbar .library-sort-controls { width:100%; justify-content:flex-end; }
  .library-page .library-toolbar { grid-template-columns:1fr; }
  .library-search-field { grid-column:1; }
  .library-results-head > div { align-items:flex-start; flex-wrap:wrap; }
  .course-lesson-open { min-height:0; grid-template-columns:68px minmax(0,1fr); }
  .course-lesson-index { padding:14px 8px; }
  .course-lesson-index strong { font-size:22px; }
  .course-lesson-content { padding:14px 12px; }
  .course-lesson-content h3 { font-size:15px; }
  .course-lesson-action { display:none; }
}

/* Side-by-side homepage concepts for final layout selection. */
.layout-preview-bar {
  min-height:68px;
  padding:12px 14px 12px 18px;
  border:1px solid var(--line);
  border-left:4px solid var(--moss);
  border-radius:6px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.layout-preview-bar > div:first-child { min-width:0; }
.layout-preview-bar > div:first-child > span,.layout-preview-bar > div:first-child > strong,.layout-preview-bar > div:first-child > small { display:block; }
.layout-preview-bar > div:first-child > span { color:var(--moss); font-size:10px; font-weight:800; letter-spacing:.08em; }
.layout-preview-bar > div:first-child > strong { margin-top:3px; font-size:16px; }
.layout-preview-bar > div:first-child > small { margin-top:3px; color:var(--muted); font-size:11px; }
.layout-preview-actions { flex:0 0 auto; display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.layout-preview-actions button { min-width:132px; min-height:44px; padding:6px 12px; border:1px solid var(--line); border-radius:4px; color:var(--muted); background:#f8faf8; cursor:pointer; display:flex; align-items:center; gap:9px; text-align:left; }
.layout-preview-actions button b { width:26px; height:26px; border-radius:3px; color:var(--moss-dark); background:#e9f2ee; display:grid; place-items:center; font-size:11px; }
.layout-preview-actions button span { font-size:12px; font-weight:700; }
.layout-preview-actions button:hover { border-color:#abc8c0; background:#f2f7f4; }
.layout-preview-actions button.active { border-color:var(--moss); color:var(--moss-dark); background:#edf5f1; box-shadow:inset 0 -2px var(--moss); }
.layout-preview-actions button:focus-visible { outline:3px solid rgba(35,107,97,.24); outline-offset:2px; }

.home-layout-a { gap:22px; }
.home-layout-a .discovery-hero { margin-top:0; }
.home-layout-a .home-library-window { border-top:3px solid var(--moss); }
.home-layout-a .home-quick-section { padding-top:4px; }
.home-layout-a .quick-draft { max-width:none; }

.home-layout-b { gap:20px; }
.layout-b .layout-preview-bar { border-left-color:var(--ochre); }
.layout-b .layout-preview-actions button.active { border-color:#a77a30; color:#76551f; background:#faf5ea; box-shadow:inset 0 -2px #a77a30; }
.layout-b .layout-preview-actions button.active b { color:#76551f; background:#f1e5ce; }
.studio-command-panel {
  min-height:270px;
  border:1px solid var(--line);
  border-radius:6px;
  background:#fff;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(280px,.38fr);
  overflow:hidden;
}
.studio-command-copy { padding:34px clamp(26px,3vw,48px); display:flex; flex-direction:column; justify-content:center; }
.studio-command-copy > span { color:var(--ochre); font-size:10px; font-weight:800; letter-spacing:.1em; }
.studio-command-copy h1 { margin:10px 0 9px; font-size:clamp(32px,3.5vw,48px); line-height:1.15; }
.studio-command-copy p { max-width:720px; margin:0 0 20px; color:var(--muted); font-size:14px; line-height:1.7; }
.studio-command-copy .home-search { width:min(760px,100%); }
.studio-command-panel .hero-stats { grid-column:2; grid-row:1; border-top:0; border-left:1px solid var(--line); grid-template-columns:1fr; }
.studio-command-panel .hero-stats div { padding:18px 24px; border-right:0; border-bottom:1px solid var(--line); display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
.studio-command-panel .hero-stats div:last-child { border-bottom:0; }
.studio-command-panel .hero-stats strong { font-size:28px; }
.studio-command-panel .hero-stats span { font-size:11px; }
.studio-workspace-grid { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(330px,.65fr); gap:16px; align-items:stretch; }
.studio-canvas-card { min-width:0; min-height:360px; border:1px solid var(--line); border-radius:6px; background:#fff; overflow:hidden; display:grid; grid-template-columns:minmax(280px,.9fr) minmax(0,1.1fr); }
.studio-canvas-card > img { width:100%; height:100%; min-height:360px; display:block; object-fit:cover; filter:saturate(.58) contrast(.96) brightness(1.03); }
.studio-canvas-card > div { padding:34px clamp(24px,3vw,42px); display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }
.studio-canvas-card > div > span { color:var(--moss); font-size:10px; font-weight:800; letter-spacing:.1em; }
.studio-canvas-card h2 { margin:10px 0 8px; font-size:30px; }
.studio-canvas-card p { max-width:520px; margin:0 0 22px; color:var(--muted); font-size:13px; line-height:1.75; }
.studio-workspace-grid .quick-draft { min-width:0; height:100%; display:flex; flex-direction:column; }
.studio-workspace-grid .quick-draft textarea { flex:1; min-height:160px; }
.studio-workspace-grid .start-actions { align-items:flex-start; flex-direction:column; }
.studio-workspace-grid .start-actions .btn { width:100%; }
.studio-tools-section { padding:20px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.studio-tools-section .home-quick-dock { margin-top:2px; }
.home-layout-b .home-library-window { border-top:3px solid var(--ochre); }

@media (max-width:1050px) {
  .studio-workspace-grid { grid-template-columns:1fr; }
  .studio-workspace-grid .quick-draft textarea { min-height:130px; }
  .studio-workspace-grid .start-actions { align-items:center; flex-direction:row; }
  .studio-workspace-grid .start-actions .btn { width:auto; }
}

@media (max-width:820px) {
  .layout-preview-bar { align-items:flex-start; }
  .studio-command-panel { grid-template-columns:1fr; }
  .studio-command-panel .hero-stats { grid-column:1; grid-row:2; border-top:1px solid var(--line); border-left:0; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .studio-command-panel .hero-stats div { padding:12px 14px; border-right:1px solid var(--line); border-bottom:0; display:block; }
  .studio-command-panel .hero-stats div:last-child { border-right:0; }
  .studio-canvas-card { grid-template-columns:1fr; }
  .studio-canvas-card > img { height:240px; min-height:240px; }
  .studio-canvas-card > div { padding:26px 24px; }
}

@media (max-width:620px) {
  .layout-preview-bar { padding:12px; flex-direction:column; }
  .layout-preview-actions { width:100%; }
  .layout-preview-actions button { min-width:0; width:100%; }
  .studio-command-copy { padding:24px 20px; }
  .studio-command-copy h1 { font-size:29px; }
  .studio-command-copy p { font-size:13px; }
  .studio-command-copy .home-search input,.home-layout-a .home-search input { font-size:16px; }
  .studio-command-panel .hero-stats strong { font-size:21px; }
  .studio-canvas-card > img { height:205px; min-height:205px; }
  .studio-canvas-card > div { padding:22px 20px; }
  .studio-canvas-card h2 { font-size:25px; }
  .studio-workspace-grid .start-actions { align-items:stretch; flex-direction:column; }
  .studio-workspace-grid .start-actions .btn { width:100%; }
  .studio-tools-section { padding:16px 14px; }
}

/* 2026 bright teaching system and complete AI quick access. */
:root {
  --ink:#1f2937;
  --muted:#64748b;
  --paper:#f4f8fc;
  --panel:#ffffff;
  --line:#dce5ef;
  --line-soft:#edf2f7;
  --moss:#168a7a;
  --moss-dark:#0f6f63;
  --ochre:#f4b740;
  --coral:#f26b5b;
  --charcoal:#24313d;
}

body {
  color:var(--ink);
  background-color:var(--paper);
  background-image:radial-gradient(circle at 1px 1px,rgba(76,109,146,.07) 1px,transparent 0);
  background-size:24px 24px;
}
.app-frame { background:rgba(244,248,252,.9); }
.app-header { border-bottom:1px solid var(--line); background:rgba(255,255,255,.96); box-shadow:0 8px 28px rgba(40,73,108,.06); z-index:60; }
.brand-mark { border-radius:7px; background:linear-gradient(145deg,var(--coral),#ff8c70); box-shadow:0 6px 16px rgba(242,107,91,.2); }
.primary-nav { overflow:visible; }
.primary-nav > button,.primary-ai-menu > button { color:#536579; }
.primary-nav > button:hover,.primary-ai-menu > button:hover { background:#f6f9fc; color:var(--ink); }
.primary-nav > button.active,.primary-ai-menu > button.active { border-bottom-color:var(--learn-blue,#3b82f6); color:#1859bd; }
.header-actions .btn { border-color:var(--line); box-shadow:none; }
.header-actions .btn.strong { border-color:var(--moss); background:var(--moss); }
.workspace-strip { border-color:var(--line); background:#edf4fa; }
.workspace-strip > span { color:var(--moss); }
.workspace-strip button { color:#5f7185; }
.workspace-strip button b { color:#3b82f6; }
.workspace-strip button.active { border-color:#cad9e8; background:#fff; color:var(--ink); }
.context-bar { border-color:var(--line); background:rgba(255,255,255,.94); }
.context-bar > div > span { color:var(--coral); }
.btn { border-color:var(--line); border-radius:6px; box-shadow:none; }
.btn:hover { border-color:#b9c9da; background:#f8fbfe; }
.btn.accent,.btn.teal { border-color:var(--moss); background:var(--moss); color:#fff; }
.btn.accent:hover,.btn.teal:hover { border-color:var(--moss-dark); background:var(--moss-dark); }
.panel { border-color:var(--line); border-radius:8px; background:#fff; box-shadow:0 12px 30px rgba(42,74,107,.06); }
.panel-head { border-color:var(--line-soft); }
.input,.search,.model-select { border-color:#cbd8e5; border-radius:6px; }

.primary-ai-menu { height:100%; position:relative; display:flex; align-items:stretch; }
.primary-ai-menu > button:first-child { padding-right:10px; }
.ai-quick-toggle { width:32px; min-width:32px !important; padding:0 6px !important; color:#73869a !important; font-size:16px; }
.ai-quick-toggle[aria-expanded="true"] { color:#1859bd !important; background:#f0f6ff !important; }
.ai-quick-dropdown { width:430px; padding:10px; position:absolute; z-index:90; top:calc(100% - 3px); left:50%; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 22px 56px rgba(34,66,99,.18); display:none; grid-template-columns:1fr 1fr; gap:5px; transform:translateX(-50%); }
.ai-quick-dropdown.open { display:grid; }
.ai-quick-dropdown-head { grid-column:1/-1; padding:7px 9px 11px; border-bottom:1px solid var(--line-soft); display:flex; align-items:baseline; justify-content:space-between; }
.ai-quick-dropdown-head strong { font-size:13px; }
.ai-quick-dropdown-head span { color:var(--muted); font-size:9px; }
.ai-quick-dropdown > button,.ai-quick-dropdown > a { min-width:0; min-height:64px; padding:10px; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--ink); display:grid; grid-template-columns:34px minmax(0,1fr); gap:9px; align-items:center; cursor:pointer; text-align:left; text-decoration:none; }
.ai-quick-dropdown > button:hover,.ai-quick-dropdown > a:hover { border-color:#d7e4f0; background:#f4f8fc; }
.ai-quick-dropdown > button > span,.ai-quick-dropdown > a > span { width:32px; height:32px; border-radius:7px; background:#e7f6f2; color:var(--moss); display:grid; place-items:center; font-size:11px; font-weight:900; }
.ai-quick-dropdown > button:nth-of-type(2n) > span { background:#eaf2ff; color:#3b82f6; }
.ai-quick-dropdown > a { grid-column:1/-1; border-color:#f2dfac; background:#fff9e8; }
.ai-quick-dropdown > a > span { background:#ffe9e4; color:var(--coral); }
.ai-quick-dropdown strong,.ai-quick-dropdown small { display:block; }
.ai-quick-dropdown small { margin-top:3px; overflow:hidden; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }

.command-home { width:100%; gap:28px; padding-top:14px; }
.home-quick-dock { margin-top:0; padding:22px; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.96); box-shadow:0 14px 38px rgba(45,78,113,.08); display:grid; grid-template-columns:260px minmax(0,1fr); gap:22px; align-items:stretch; }
.home-quick-intro { padding:10px 22px 10px 6px; border-right:1px solid var(--line); display:flex; flex-direction:column; justify-content:center; }
.home-quick-intro > span { color:var(--coral); font:800 9px ui-monospace,Consolas,monospace; letter-spacing:.14em; }
.home-quick-intro > strong { margin-top:8px; font-size:22px; }
.home-quick-intro > small { margin-top:8px; color:var(--muted); font-size:11px; line-height:1.7; }
.home-quick-dock nav { min-width:0; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; }
.home-quick-dock nav > button,.home-quick-dock nav > a { min-width:0; min-height:108px; padding:14px 12px; border:1px solid #e3eaf2; border-radius:7px; background:#fbfdff; color:var(--ink); cursor:pointer; display:flex; flex-direction:column; align-items:flex-start; justify-content:flex-start; text-align:left; text-decoration:none; transition:transform .16s ease,border-color .16s ease,background .16s ease; }
.home-quick-dock nav > button:hover,.home-quick-dock nav > a:hover { border-color:#9accc1; background:#f4fffc; transform:translateY(-2px); }
.home-quick-dock nav > button > span,.home-quick-dock nav > a > span { width:28px; height:28px; border-radius:7px; background:#e7f6f2; color:var(--moss); display:grid; place-items:center; font-size:10px; font-weight:900; }
.home-quick-dock nav > button:nth-child(2n) > span { background:#eaf2ff; color:#3b82f6; }
.home-quick-dock nav > a > span { background:#ffe9e4; color:var(--coral); }
.home-quick-dock nav strong,.home-quick-dock nav small { display:block; }
.home-quick-dock nav strong { margin-top:9px; overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.home-quick-dock nav small { display:block; margin-top:4px; color:var(--muted); font-size:9px; line-height:1.5; }

.ai-suite { padding:22px; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 14px 38px rgba(45,78,113,.08); }
.core-ai-suite { grid-template-columns:repeat(2,minmax(0,1fr)); }
.core-ai-suite .story-suite,.core-ai-suite .connect-suite { grid-column:auto; min-height:360px; }
.ai-lab-feature { border:1px solid var(--line); border-radius:7px; background:#edf5fb; }
.ai-lab-feature::after { background:linear-gradient(90deg,rgba(244,248,252,.02) 0%,rgba(244,248,252,.16) 48%,rgba(244,248,252,.9) 72%,rgba(244,248,252,.98) 100%); }
.ai-lab-copy { color:var(--ink); }
.ai-lab-copy > span { color:var(--moss); }
.ai-lab-copy > p { color:#52677d; }
.ai-lab-button { border-color:var(--moss); background:var(--moss); color:#fff; }
.haiwuya-home-feature { min-height:310px; margin-top:14px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:linear-gradient(135deg,#f7fffc,#edf5ff); display:grid; grid-template-columns:minmax(320px,1.08fr) minmax(300px,.92fr); }
.haiwuya-home-feature > img { width:100%; height:100%; min-height:310px; object-fit:cover; }
.haiwuya-home-feature > div { padding:34px; display:flex; flex-direction:column; justify-content:center; }
.haiwuya-home-feature > div > span { color:#3b82f6; font:800 9px ui-monospace,Consolas,monospace; letter-spacing:.14em; }
.haiwuya-home-feature h2 { margin:11px 0 10px; font-size:27px; }
.haiwuya-home-feature p { margin:0 0 20px; color:var(--muted); font-size:12px; line-height:1.75; }
.haiwuya-home-feature > div > div { display:flex; flex-wrap:wrap; gap:8px; }
.ai-stage-heading { margin-top:28px; }
.ai-card { border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 9px 24px rgba(43,75,108,.07); }
.ai-card:hover { border-color:#b9d0e7; box-shadow:0 14px 30px rgba(43,75,108,.12); transform:translateY(-3px); }
.ai-card-top span { border-color:#b9ddd5; background:#eefaf7; color:var(--moss-dark); }
.quick-draft { padding:24px; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 12px 32px rgba(50,84,120,.07); }
.quick-draft::before { display:none; }
.quick-draft textarea { border:1px solid #cbd8e5; border-radius:6px; background:#fbfdff; box-shadow:none; }

.haiwuya-page,.connections-page { color:var(--ink); }
.haiwuya-mode-note { margin-bottom:16px; padding:16px 18px; border:1px solid #b7d7cf; border-radius:8px; background:#f2fbf8; display:grid; grid-template-columns:auto 1fr; gap:7px 14px; align-items:start; }
.haiwuya-mode-note strong { color:var(--moss-dark); }
.haiwuya-mode-note span { color:#3e5f59; font-size:12px; }
.haiwuya-mode-note em { grid-column:2; color:var(--muted); font-size:10px; font-style:normal; line-height:1.6; }
.haiwuya-frame-shell { height:min(780px,calc(100vh - 210px)); min-height:620px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:#eef4f9; box-shadow:0 18px 42px rgba(42,74,107,.1); }
.haiwuya-frame-shell iframe { width:100%; height:100%; border:0; background:#f4f8fc; }
.external-provider-feature { margin-bottom:20px; padding:24px; border:1px solid var(--line); border-radius:8px; background:linear-gradient(135deg,#fff 0%,#f6fffc 58%,#edf5ff 100%); display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:22px; align-items:center; box-shadow:0 12px 32px rgba(50,84,120,.07); }
.external-provider-icon { width:64px; height:64px; border-radius:8px; background:linear-gradient(145deg,var(--moss),#3b82f6); color:#fff; display:grid; place-items:center; font-size:19px; font-weight:900; }
.external-provider-feature span { color:var(--coral); font:800 9px ui-monospace,Consolas,monospace; letter-spacing:.12em; }
.external-provider-feature h2 { margin:7px 0 6px; font-size:24px; }
.external-provider-feature p { margin:0; color:var(--muted); font-size:12px; line-height:1.7; }
.provider-points { margin-top:13px; display:flex; flex-wrap:wrap; gap:6px; }
.provider-points span { padding:5px 7px; border:1px solid #dce8f3; border-radius:4px; background:#fff; color:#60758b; letter-spacing:0; }
.connection-grid article { border-color:var(--line); border-top-color:var(--moss); border-radius:8px; background:#fff; box-shadow:0 8px 22px rgba(43,75,108,.06); }
.connection-note { border-left-color:var(--ochre); border-radius:0 7px 7px 0; background:#fff9e8; }
.site-footer { border-top:1px solid var(--line); background:#24313d; }
.footer-status { border-color:#526274; background:#2e3d4a; box-shadow:none; }

.login-body { background-color:var(--paper); background-image:radial-gradient(circle at 1px 1px,rgba(76,109,146,.08) 1px,transparent 0); background-size:24px 24px; }
.login-card { border-color:var(--line); border-top-color:var(--moss); border-radius:8px; background:#fff; box-shadow:0 20px 60px rgba(42,74,107,.13); }
.login-card h1 { color:var(--ink); font-family:"Noto Sans SC","Microsoft YaHei",sans-serif; font-size:36px; font-weight:800; }
.auth-tab.active { border-color:#3b82f6; color:#1859bd; }

/* Generated visual series: make every major workspace recognizable at a glance. */
.app-main.page-script { --section-visual:url('/images/poster-story-workflow.jpg'); }
.app-main.page-prompts { --section-visual:url('/images/poster-modern-drama.jpg'); }
.app-main.page-library { --section-visual:url('/images/poster-teaching-library.jpg'); }
.app-main.page-image { --section-visual:url('/images/poster-ai-team.jpg'); }
.app-main.page-flow { --section-visual:url('/images/poster-infinite-canvas.jpg'); }
.app-main.page-assets { --section-visual:url('/images/poster-material-hub.jpg'); }
.app-main.page-toolbox { --section-visual:url('/images/poster-access-portal.jpg'); }
.app-main.page-connections { --section-visual:url('/images/poster-access-portal.jpg'); }
.app-main.page-script > .page > .section-head,
.app-main.page-prompts > .page > .section-head,
.app-main.page-library > .page > .section-head,
.app-main.page-image > .page > .section-head,
.app-main.page-flow > .page > .section-head,
.app-main.page-assets > .page > .section-head,
.app-main.page-toolbox > .page > .section-head,
.app-main.page-connections > .page > .section-head {
  min-height:240px;
  margin-bottom:22px;
  padding:34px;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border:1px solid rgba(68,111,137,.28);
  border-radius:8px;
  color:#fff;
  background-image:linear-gradient(90deg,rgba(12,34,42,.94) 0%,rgba(12,34,42,.78) 48%,rgba(12,34,42,.22) 100%),var(--section-visual);
  background-position:center;
  background-size:cover;
  box-shadow:0 14px 36px rgba(42,74,107,.12);
}
.app-main.page-script > .page > .section-head > *,
.app-main.page-prompts > .page > .section-head > *,
.app-main.page-library > .page > .section-head > *,
.app-main.page-image > .page > .section-head > *,
.app-main.page-flow > .page > .section-head > *,
.app-main.page-assets > .page > .section-head > *,
.app-main.page-toolbox > .page > .section-head > *,
.app-main.page-connections > .page > .section-head > * { position:relative; z-index:1; }
.app-main:is(.page-script,.page-prompts,.page-library,.page-image,.page-flow,.page-assets,.page-toolbox,.page-connections) > .page > .section-head h1 { color:#fff; font-size:36px; text-shadow:0 2px 14px rgba(0,0,0,.22); }
.app-main:is(.page-script,.page-prompts,.page-library,.page-image,.page-flow,.page-assets,.page-toolbox,.page-connections) > .page > .section-head p { max-width:760px; color:#e9f4f4; font-size:15px; }
.app-main:is(.page-script,.page-prompts,.page-library,.page-image,.page-flow,.page-assets,.page-toolbox,.page-connections) > .page > .section-head .eyebrow,
.app-main.page-library > .page > .section-head .library-kicker { color:#ffd16d; }
.app-main:is(.page-prompts,.page-library,.page-flow,.page-toolbox) > .page > .section-head .btn { border-color:rgba(255,255,255,.5); color:#10262d; background:rgba(255,255,255,.94); }

.toolbox-toolbar { margin-bottom:20px; padding:18px; border:1px solid var(--line); border-radius:8px; background:#fff; display:grid; grid-template-columns:minmax(0,1fr) minmax(320px,520px); gap:18px; align-items:center; box-shadow:0 10px 28px rgba(42,74,107,.06); }
.toolbox-tabs { min-width:0; display:flex; flex-wrap:wrap; gap:8px; }
.toolbox-tabs button { min-height:38px; padding:8px 14px; border:1px solid var(--line); border-radius:99px; background:#f8fbfe; color:#536579; cursor:pointer; font-size:12px; }
.toolbox-tabs button:hover { border-color:#9accc1; color:var(--moss-dark); background:#f4fffc; }
.toolbox-tabs button.active { border-color:var(--moss); color:#fff; background:var(--moss); }
#toolboxSearchForm { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; }
#toolboxSearchForm .search { min-height:44px; font-size:13px; }
.toolbox-grid { width:100%; display:grid; grid-template-columns:repeat(auto-fill,minmax(310px,1fr)); gap:20px; }
.toolbox-card { min-width:0; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:#fff; box-shadow:0 10px 28px rgba(42,74,107,.07); transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.toolbox-card:hover { border-color:#b9d0e7; box-shadow:0 15px 34px rgba(43,75,108,.12); transform:translateY(-3px); }
.toolbox-cover { height:190px; position:relative; overflow:hidden; background:#eaf2f8; }
.toolbox-cover img { width:100%; height:100%; object-fit:cover; display:block; }
.toolbox-cover::after { content:""; position:absolute; inset:auto 0 0; height:52%; background:linear-gradient(transparent,rgba(9,27,34,.7)); pointer-events:none; }
.toolbox-cover > span,.toolbox-cover > em { position:absolute; z-index:1; top:13px; padding:6px 9px; border-radius:4px; color:#fff; font-size:11px; font-style:normal; }
.toolbox-cover > span { left:13px; background:rgba(15,111,99,.9); }
.toolbox-cover > em { right:13px; background:rgba(36,49,61,.88); }
.toolbox-card-body { min-height:235px; padding:21px; display:flex; flex-direction:column; }
.toolbox-card-body h2 { margin:0 0 9px; font-size:20px; line-height:1.4; }
.toolbox-card-body > p { margin:0 0 16px; color:var(--muted); font-size:13px; line-height:1.7; }
.toolbox-card-body > small { margin-top:12px; color:#8a6120; font-size:12px; }
.toolbox-tags { display:flex; flex-wrap:wrap; gap:6px; }
.toolbox-tags span { padding:4px 7px; border:1px solid #dce8f3; border-radius:4px; background:#f8fbfe; color:#60758b; font-size:10px; }
.toolbox-card-actions { margin-top:auto; padding-top:18px; display:flex; flex-wrap:wrap; gap:9px; }
.toolbox-card-actions .btn { min-height:42px; }
.toolbox-empty { grid-column:1/-1; min-height:360px; overflow:hidden; border:1px solid var(--line); border-radius:8px; background:#fff; display:grid; grid-template-columns:minmax(300px,.85fr) minmax(320px,1.15fr); align-items:stretch; box-shadow:0 12px 32px rgba(42,74,107,.07); }
.toolbox-empty > img { width:100%; height:100%; min-height:360px; object-fit:cover; }
.toolbox-empty > div { padding:48px; display:flex; flex-direction:column; justify-content:center; }
.toolbox-empty span { color:var(--coral); font:800 11px ui-monospace,Consolas,monospace; letter-spacing:.13em; }
.toolbox-empty h2 { margin:12px 0 10px; font-size:30px; }
.toolbox-empty p { max-width:620px; margin:0; color:var(--muted); font-size:14px; line-height:1.8; }
.haiwuya-mode-note {
  min-height:168px;
  align-content:center;
  border-color:#b8dbe1;
  color:#fff;
  background-image:linear-gradient(90deg,rgba(13,37,44,.94) 0%,rgba(13,37,44,.72) 58%,rgba(13,37,44,.18) 100%),url('/images/poster-infinite-canvas.jpg');
  background-position:center;
  background-size:cover;
  box-shadow:0 12px 30px rgba(42,74,107,.1);
}
.haiwuya-mode-note strong { color:#fff; font-size:24px; }
.haiwuya-mode-note span { color:#e3f3f3; }
.haiwuya-mode-note em { color:#cfe4e5; }

@media (max-width:1180px) {
  .home-quick-dock { grid-template-columns:1fr; }
  .home-quick-intro { padding:2px 2px 12px; border-right:0; border-bottom:1px solid var(--line); }
  .home-quick-dock nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .home-quick-dock nav > button,.home-quick-dock nav > a { min-height:72px; }
  .home-quick-dock nav small { display:block; margin-top:3px; overflow:hidden; color:var(--muted); font-size:8px; text-overflow:ellipsis; white-space:nowrap; }
}

@media (max-width:820px) {
  .primary-ai-menu { min-width:0; }
  .primary-ai-menu > button:first-child { flex:1; }
  .ai-quick-dropdown { width:min(430px,calc(100vw - 24px)); left:0; transform:none; }
  .ai-lab-feature::after { background:linear-gradient(0deg,rgba(244,248,252,.98) 0%,rgba(244,248,252,.84) 48%,rgba(244,248,252,.04) 78%); }
  .haiwuya-home-feature { grid-template-columns:1fr; }
  .haiwuya-home-feature > img { min-height:240px; max-height:320px; }
  .external-provider-feature { grid-template-columns:64px minmax(0,1fr); }
  .external-provider-feature > .btn { grid-column:1/-1; }
  .home-quick-dock nav { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .core-ai-suite { grid-template-columns:1fr; }
}

@media (max-width:620px) {
  .primary-nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .primary-ai-menu { display:grid; grid-template-columns:minmax(0,1fr) 28px; }
  .primary-ai-menu > button:first-child { padding:7px 0 7px 4px; }
  .ai-quick-toggle { width:28px; min-width:28px !important; }
  .ai-quick-dropdown { position:fixed; top:122px; right:12px; left:12px; width:auto; max-height:calc(100vh - 142px); overflow:auto; transform:none; }
  .home-quick-dock { padding:14px; }
  .home-quick-dock nav { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-quick-dock nav > button,.home-quick-dock nav > a { min-height:78px; }
  .haiwuya-home-feature > div { padding:24px 18px; }
  .haiwuya-home-feature h2 { font-size:23px; }
  .haiwuya-frame-shell { min-height:540px; height:calc(100vh - 176px); }
  .haiwuya-mode-note { grid-template-columns:1fr; }
  .haiwuya-mode-note em { grid-column:1; }
  .external-provider-feature { grid-template-columns:1fr; padding:20px 18px; }
  .external-provider-feature > .btn { grid-column:1; }
  .app-main.page-script > .page > .section-head,
  .app-main.page-prompts > .page > .section-head,
  .app-main.page-library > .page > .section-head,
  .app-main.page-image > .page > .section-head,
  .app-main.page-flow > .page > .section-head,
  .app-main.page-assets > .page > .section-head,
  .app-main.page-toolbox > .page > .section-head,
  .app-main.page-connections > .page > .section-head { min-height:220px; padding:24px 18px; background-position:58% center; }
  .app-main:is(.page-script,.page-prompts,.page-library,.page-image,.page-flow,.page-assets,.page-toolbox,.page-connections) > .page > .section-head h1 { font-size:28px; }
  .toolbox-toolbar { grid-template-columns:1fr; }
  .toolbox-empty { grid-template-columns:1fr; }
  .toolbox-empty > img { min-height:220px; max-height:300px; }
  .toolbox-empty > div { padding:30px 24px; }
  .haiwuya-mode-note { min-height:190px; padding:24px 18px; background-position:58% center; }
  .haiwuya-mode-note strong { font-size:21px; }
}

/* Current shell: one persistent navigation system for the site and embedded canvas. */
.app-frame { min-height:100vh; display:grid; grid-template-columns:276px minmax(0,1fr); background:var(--paper); }
.app-content { min-width:0; }
.app-sidebar { height:100vh; position:sticky; top:0; z-index:90; overflow:hidden; color:#eefafb; background:#12323a; display:flex; flex-direction:column; box-shadow:8px 0 30px rgba(28,66,77,.1); }
.sidebar-brand { min-height:78px; padding:17px 15px; border-bottom:1px solid rgba(255,255,255,.1); display:grid; grid-template-columns:38px minmax(0,1fr) auto; gap:11px; align-items:center; }
.sidebar-brand .brand-mark { width:38px; height:38px; border-radius:5px; background:#ff745f; box-shadow:3px 3px 0 rgba(255,209,109,.9); }
.sidebar-brand strong,.sidebar-brand small { display:block; }
.sidebar-brand strong { color:#fff; font-size:16px; }
.sidebar-brand small { margin-top:3px; overflow:hidden; color:#9fc4ca; font-size:8px; letter-spacing:.1em; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-close { display:none; width:30px; height:30px; padding:0; border:1px solid rgba(255,255,255,.16); border-radius:5px; color:#fff; background:rgba(255,255,255,.06); cursor:pointer; }
.sidebar-nav { min-height:0; padding:14px 10px; overflow:auto; scrollbar-width:thin; scrollbar-color:rgba(255,255,255,.2) transparent; }
.sidebar-group { margin-bottom:15px; display:grid; gap:4px; }
.sidebar-group-label { padding:6px 10px; color:#77a7af; font-size:11px; font-weight:800; letter-spacing:.12em; }
.sidebar-nav button,.sidebar-nav a { width:100%; min-height:46px; padding:8px 10px; border:1px solid transparent; border-radius:6px; color:#c9dde1; background:transparent; display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:9px; align-items:center; text-align:left; text-decoration:none; cursor:pointer; font-size:13px; }
.sidebar-nav button:hover,.sidebar-nav a:hover { border-color:rgba(255,255,255,.1); color:#fff; background:rgba(255,255,255,.06); }
.sidebar-nav button.active { border-color:rgba(116,231,218,.28); color:#fff; background:#1c5257; box-shadow:inset 3px 0 #64e0cf; }
.sidebar-icon { width:30px; height:30px; border-radius:6px; color:#9ac8cb; background:rgba(255,255,255,.07); display:grid; place-items:center; font:800 10px ui-monospace,Consolas,monospace; }
.sidebar-icon.external { color:#ffd36d; }
.sidebar-chevron,.sidebar-arrow { color:#7fb0b7; font-size:13px; text-align:right; }
.canvas-subnav { margin:3px 0 5px 18px; padding:5px 0 5px 9px; border-left:1px solid rgba(122,225,213,.28); display:grid; gap:2px; }
.canvas-subnav button { min-height:31px; padding:4px 8px; grid-template-columns:25px minmax(0,1fr); color:#a9c9cd; font-size:10px; }
.canvas-subnav button span { color:#62cfc1; font:700 8px ui-monospace,Consolas,monospace; }
.canvas-subnav button.active { border-color:transparent; background:rgba(100,224,207,.12); box-shadow:none; }
.sidebar-account { min-height:70px; margin-top:auto; padding:13px 15px; border-top:1px solid rgba(255,255,255,.1); display:grid; grid-template-columns:10px minmax(0,1fr) 32px; gap:10px; align-items:center; }
.account-dot { width:9px; height:9px; border-radius:50%; background:#62d5a8; box-shadow:0 0 0 4px rgba(98,213,168,.12); }
.sidebar-account strong,.sidebar-account small { display:block; }
.sidebar-account strong { overflow:hidden; color:#fff; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.sidebar-account small { margin-top:3px; color:#86aeb5; font-size:9px; }
.sidebar-account button { width:30px; height:30px; padding:0; border:1px solid rgba(255,255,255,.12); border-radius:5px; color:#a8c7cb; background:transparent; cursor:pointer; }
.sidebar-backdrop { display:none; }
.app-header { height:64px; padding:0 24px; grid-template-columns:auto minmax(0,1fr) auto; gap:15px; }
.sidebar-toggle { display:none; width:38px; height:38px; padding:0; border:1px solid var(--line); border-radius:6px; color:#3c5363; background:#fff; cursor:pointer; }
.header-location { min-width:0; display:flex; align-items:center; gap:9px; color:#8a99a8; font-size:11px; }
.app-header .header-location,.app-header .header-actions { grid-column:auto; }
.header-location b { color:#c9d3dc; }
.header-location strong { overflow:hidden; color:var(--ink); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.context-bar { padding-inline:24px; }
.app-main { min-width:0; }

@media (max-width:920px) {
  .app-frame { display:block; }
  .app-sidebar { width:min(300px,88vw); position:fixed; inset:0 auto 0 0; z-index:120; transform:translateX(-104%); transition:transform .22s ease; }
  .app-sidebar.open { transform:translateX(0); }
  .sidebar-close { display:grid; place-items:center; }
  .sidebar-backdrop { position:fixed; inset:0; z-index:110; border:0; background:rgba(11,30,36,.5); opacity:0; pointer-events:none; display:block; transition:opacity .22s ease; }
  .app-sidebar.open + .sidebar-backdrop { opacity:1; pointer-events:auto; }
  .sidebar-toggle { display:grid; place-items:center; }
  .app-header { padding:0 16px; }
  .context-bar { padding-inline:16px; }
}

@media (max-width:620px) {
  .app-header { height:58px; min-height:58px; padding:8px 12px; grid-template-columns:38px minmax(0,1fr) auto; }
  .header-actions .btn { min-height:34px; }
  .header-location > span,.header-location > b { display:none; }
  .context-bar { padding:8px 12px; }
  .context-bar .btn { min-height:34px; padding-inline:9px; }
  .toolbox-grid { grid-template-columns:1fr; }
  #toolboxSearchForm { grid-template-columns:1fr; }
  .toolbox-empty > div { padding:24px 18px; }
  .toolbox-empty h2 { font-size:25px; }
}

/* Original Xinghe symbol: scalable at favicon, sidebar and footer sizes. */
.brand-mark {
  overflow:visible;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  transform:none !important;
}
.brand-mark img { width:100%; height:100%; display:block; object-fit:contain; }
.sidebar-brand .brand-mark { width:44px; height:44px; background:transparent !important; box-shadow:none !important; }
.footer-brand-line .brand-mark { width:46px; height:46px; background:transparent !important; box-shadow:none !important; }
.login-card .brand-mark { width:48px; height:48px; }

/* Minimal workspace visual system: one quiet language across the entire site. */
:root {
  --ink:#20302c;
  --muted:#6b7773;
  --paper:#f4f6f4;
  --panel:#ffffff;
  --line:#d8dfdb;
  --line-soft:#e8ece9;
  --moss:#236b61;
  --moss-dark:#18544c;
  --ochre:#a77a30;
  --coral:#a95144;
  --charcoal:#203b36;
}

body { background:#f4f6f4; }
.app-frame { background:#f4f6f4; }
.app-header { border-color:var(--line); background:rgba(255,255,255,.98); box-shadow:none; }
.context-bar { background:#fafbfa; }
.app-sidebar { background:#193f3b; box-shadow:none; }
.sidebar-nav button:hover,.sidebar-nav a:hover { background:rgba(255,255,255,.055); }
.sidebar-nav button.active { border-color:rgba(148,211,201,.24); background:#28554f; box-shadow:inset 3px 0 #8fc9bf; }
.page { padding:28px clamp(18px,2.2vw,42px) 56px; }
.section-head h1 { font-size:28px; }
.section-head p { font-size:13px; }
.eyebrow,.panel-index,.section-label > span,.hero-kicker,.stage-heading span { color:var(--moss); }
.btn,.panel,.input,.search,.model-select { border-radius:5px; }
.btn:hover { background:#f0f3f1; }
.btn.strong,.btn.primary { border-color:var(--charcoal); background:var(--charcoal); }
.btn.accent,.btn.teal { border-color:var(--moss); background:var(--moss); }

.command-home { gap:28px; }
.discovery-hero {
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  grid-template-rows:auto auto;
  border:1px solid var(--line);
  border-radius:6px;
  color:var(--ink);
  background:#fff;
  box-shadow:none;
}
.hero-backdrop {
  position:relative;
  inset:auto;
  grid-column:2;
  grid-row:1;
  width:100%;
  height:100%;
  min-height:300px;
  object-fit:cover;
  filter:saturate(.48) contrast(.94) brightness(1.04);
  opacity:.82;
}
.hero-shade { display:none; }
.hero-copy {
  min-height:300px;
  grid-column:1;
  grid-row:1;
  padding:34px 36px;
  justify-content:center;
}
.hero-copy h1 {
  max-width:720px;
  margin:12px 0;
  color:var(--ink);
  font-family:inherit;
  font-size:clamp(31px,3.2vw,45px);
  font-weight:800;
  line-height:1.18;
}
.hero-copy > p { max-width:680px; margin-bottom:20px; color:var(--muted); line-height:1.7; }
.home-search { width:min(680px,100%); padding:5px; border:1px solid var(--line); background:#fff; box-shadow:none; }
.home-search button { border-radius:3px; color:#fff; background:var(--moss); }
.hero-actions { margin-top:12px; }
.hero-actions span { color:var(--muted); }
.hero-stats {
  position:static;
  grid-column:1 / -1;
  grid-row:2;
  border:0;
  border-top:1px solid var(--line);
  background:#f8faf8;
  grid-template-columns:repeat(3,minmax(0,1fr));
  backdrop-filter:none;
}
.hero-stats div { padding:12px 18px; border-right:1px solid var(--line); }
.hero-stats strong { color:var(--ink); font:700 20px inherit; }
.hero-stats span { color:var(--muted); font-size:10px; }

.home-quick-dock,.ai-lab-feature,.haiwuya-home-feature,.library-feature,.external-provider-feature,.project-overview,.haiwuya-mode-note {
  border-color:var(--line) !important;
  border-radius:6px !important;
  background-color:#fff !important;
  box-shadow:none !important;
}
.home-quick-dock nav > button,.home-quick-dock nav > a { border-color:var(--line-soft); background:#fff; }
.home-quick-dock nav > button:hover,.home-quick-dock nav > a:hover { background:#f5f8f6; transform:none; }
.ai-lab-feature::before,.ai-lab-feature::after { opacity:.18; }
.haiwuya-home-feature > img,.library-feature > img { filter:saturate(.5) contrast(.95); }
.haiwuya-mode-note {
  min-height:0 !important;
  padding:22px 24px !important;
  color:var(--ink) !important;
  background-image:none !important;
}
.haiwuya-mode-note strong { color:var(--ink) !important; font-size:19px !important; }
.haiwuya-mode-note span,.haiwuya-mode-note em { color:var(--muted) !important; }

.stage-heading h2 { font-size:24px; }
.capability-map { gap:10px; }
.capability-card,.capability-lead,.knowledge-card {
  min-height:170px;
  border:1px solid var(--line);
  border-top:1px solid var(--line);
  border-radius:5px;
  color:var(--ink);
  background:#fff;
  box-shadow:none;
}
.capability-card:hover { border-color:#a9b8b2; transform:none; }
.capability-card > span,.capability-card em,.capability-lead > span,.capability-lead em { color:var(--moss); }
.capability-card strong,.capability-lead strong,.knowledge-card strong { margin-top:20px; font:700 21px inherit; }
.capability-card p,.capability-lead p { color:var(--muted); }

.ai-suite-grid { gap:12px; }
.ai-card {
  min-height:300px;
  border-radius:6px;
  box-shadow:none;
  transition:border-color .18s ease;
}
.ai-card:hover { border-color:#a9b8b2; box-shadow:none; transform:none; }
.canvas-suite,.language-suite,.connect-suite { min-height:285px; }
.ai-card-media,.canvas-suite .ai-card-media,.language-suite .ai-card-media,.connect-suite .ai-card-media {
  min-height:118px;
  filter:saturate(.5) contrast(.95) brightness(1.02);
}
.media-glow,.media-grid { display:none; }
.ai-card-body { padding:17px 18px; }
.ai-card-body > strong { margin-top:13px; font-size:19px; }
.ai-card-body > p { margin:6px 0 14px; }
.ai-card:hover .ai-card-body > em i { transform:none; }

.library-split { border-top:1px solid var(--line); }
.library-categories > button:hover,.recent-materials > button:hover { background:#f3f6f4; }
.quick-draft { border-top:1px solid var(--line); }
.quick-draft textarea { background:#fff; }
.workspace,.prompt-layout,.image-studio,.flow-shell { gap:14px; }
.tool:hover,.tool.active,.prompt-list button:hover,.prompt-list button.active,.palette-item:hover { background:#f1f4f2; }
.preview-grid,.flow-canvas { background-color:#f7f9f8; }
.result,.notice { background:#f2f6f3; }

.app-main.page-script > .page > .section-head,
.app-main.page-prompts > .page > .section-head,
.app-main.page-library > .page > .section-head,
.app-main.page-image > .page > .section-head,
.app-main.page-flow > .page > .section-head,
.app-main.page-assets > .page > .section-head,
.app-main.page-toolbox > .page > .section-head,
.app-main.page-connections > .page > .section-head {
  min-height:0;
  margin-bottom:18px;
  padding:20px 22px;
  border:1px solid var(--line);
  border-left:4px solid var(--moss);
  border-radius:5px;
  color:var(--ink);
  background:#fff !important;
  box-shadow:none;
}
.app-main:is(.page-script,.page-prompts,.page-library,.page-image,.page-flow,.page-assets,.page-toolbox,.page-connections) > .page > .section-head h1 {
  color:var(--ink);
  font-size:28px;
  text-shadow:none;
}
.app-main:is(.page-script,.page-prompts,.page-library,.page-image,.page-flow,.page-assets,.page-toolbox,.page-connections) > .page > .section-head p { color:var(--muted); font-size:13px; }
.app-main:is(.page-script,.page-prompts,.page-library,.page-image,.page-flow,.page-assets,.page-toolbox,.page-connections) > .page > .section-head .eyebrow,
.app-main.page-library > .page > .section-head .library-kicker { color:var(--moss); }
.app-main:is(.page-prompts,.page-library,.page-flow,.page-toolbox) > .page > .section-head .btn { border-color:var(--line); color:var(--ink); background:#fff; }

.toolbox-toolbar,.toolbox-card,.toolbox-empty,.resource-card,.project-card,.connection-card {
  border-radius:6px;
  box-shadow:none !important;
}
.toolbox-toolbar { padding:14px; }
.toolbox-tabs button { border-radius:5px; background:#fff; }
.toolbox-card { transition:border-color .18s ease; }
.toolbox-card:hover { border-color:#a9b8b2; box-shadow:none; transform:none; }
.toolbox-cover { height:112px; background:#edf2ef; }
.toolbox-cover img { filter:saturate(.48) contrast(.95); }
.toolbox-cover::after { height:36%; background:linear-gradient(transparent,rgba(23,48,43,.56)); }
.toolbox-card-body { min-height:205px; padding:18px; }
.toolbox-card-body h2 { font-size:18px; }
.toolbox-empty { min-height:260px; }
.toolbox-empty > img { min-height:260px; max-height:300px; filter:saturate(.48) contrast(.95); }
.toolbox-empty > div { padding:34px; }
.toolbox-empty h2 { font-size:25px; }

.login-body { background:#f4f6f4; background-image:none; }
.login-card { border-radius:6px; box-shadow:none; }

@media (max-width:820px) {
  .discovery-hero { grid-template-columns:1fr; }
  .hero-backdrop { grid-column:1; grid-row:1; min-height:170px; height:170px; }
  .hero-copy { grid-column:1; grid-row:2; min-height:0; padding:24px 20px; }
  .hero-stats { grid-column:1; grid-row:3; }
  .hero-copy h1 { font-size:30px; }
  .ai-card-media,.canvas-suite .ai-card-media,.language-suite .ai-card-media,.connect-suite .ai-card-media { min-height:110px; }
}

@media (max-width:620px) {
  .page { padding:18px 12px 42px; }
  .command-home { gap:20px; }
  .hero-backdrop { height:145px; min-height:145px; }
  .hero-copy h1 { font-size:27px; }
  .hero-copy > p { font-size:12px; }
  .hero-stats div { padding:10px; }
  .hero-stats strong { font-size:17px; }
  .app-main.page-script > .page > .section-head,
  .app-main.page-prompts > .page > .section-head,
  .app-main.page-library > .page > .section-head,
  .app-main.page-image > .page > .section-head,
  .app-main.page-flow > .page > .section-head,
  .app-main.page-assets > .page > .section-head,
  .app-main.page-toolbox > .page > .section-head,
  .app-main.page-connections > .page > .section-head { padding:17px 16px; }
  .app-main:is(.page-script,.page-prompts,.page-library,.page-image,.page-flow,.page-assets,.page-toolbox,.page-connections) > .page > .section-head h1 { font-size:24px; }
  .toolbox-cover { height:96px; }
}

/* Top navigation workspace: a quiet two-level header with no permanent left rail. */
.app-frame { display:block; min-height:100vh; background:var(--paper); }
.app-content { width:100%; min-width:0; }
.app-sidebar {
  width:100%;
  height:auto;
  position:sticky;
  inset:auto;
  top:0;
  z-index:120;
  overflow:visible;
  color:var(--ink);
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 5px 18px rgba(35,63,56,.05);
  display:grid;
  grid-template-columns:minmax(230px,1fr) auto;
  grid-template-areas:
    "brand account"
    "nav nav"
    "canvas canvas";
  align-items:stretch;
}
.sidebar-brand {
  grid-area:brand;
  min-height:64px;
  padding:10px clamp(16px,2.2vw,34px);
  border:0;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto auto;
  gap:11px;
  align-items:center;
}
.sidebar-brand .brand-mark { width:42px; height:42px; }
.sidebar-brand strong,.sidebar-brand small { display:block; }
.sidebar-brand strong { color:var(--ink); font-size:15px; }
.sidebar-brand small { margin-top:2px; color:#7a8a85; }
.sidebar-toggle,.sidebar-close { display:none; color:var(--muted); border-color:var(--line); background:#fff; }
.sidebar-nav {
  grid-area:nav;
  width:100%;
  min-width:0;
  min-height:52px;
  height:auto;
  padding:5px clamp(12px,2vw,30px);
  border-top:1px solid var(--line-soft);
  overflow:visible;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.sidebar-nav button,.sidebar-nav a {
  width:auto;
  min-width:max-content;
  min-height:40px;
  padding:6px 12px;
  border:1px solid transparent;
  border-radius:5px;
  color:#52625d;
  background:transparent;
  display:flex;
  grid-template-columns:none;
  gap:7px;
  align-items:center;
  text-decoration:none;
  cursor:pointer;
  font-size:12px;
  font-weight:650;
}
.sidebar-nav button:hover,.sidebar-nav a:hover { border-color:var(--line); color:var(--ink); background:#f4f7f5; }
.sidebar-nav button.active { border-color:#a9c7bf; color:var(--moss-dark); background:var(--accent-soft,#e9f2ef); box-shadow:inset 0 -3px var(--moss); }
.sidebar-icon {
  width:24px;
  height:24px;
  border-radius:4px;
  color:#5f756f;
  background:#edf3f0;
  display:grid;
  place-items:center;
  font-size:8px;
}
.sidebar-icon.external { color:#8f6a28; background:#f7f1e5; }
.sidebar-arrow { color:#7d8e88; }
.canvas-subnav { display:none; }
.canvas-topnav {
  grid-area:canvas;
  min-width:0;
  padding:8px clamp(14px,2.2vw,34px);
  border-top:1px solid var(--line-soft);
  background:#f7f9f7;
  display:flex;
  justify-content:center;
  gap:7px;
  overflow-x:auto;
  scrollbar-width:thin;
  scrollbar-color:#cbd5d0 transparent;
}
.canvas-topnav button {
  min-width:max-content;
  min-height:34px;
  padding:7px 11px;
  border:1px solid transparent;
  border-radius:4px;
  color:#677771;
  background:transparent;
  cursor:pointer;
  font-size:11px;
  font-weight:650;
}
.canvas-topnav button span { margin-right:6px; color:#8a9b95; font:700 9px ui-monospace,Consolas,monospace; }
.canvas-topnav button:hover { border-color:var(--line); color:var(--ink); background:#fff; }
.canvas-topnav button.active { border-color:#abc8c0; color:var(--moss-dark); background:#fff; box-shadow:inset 0 -2px var(--moss); }
.sidebar-account {
  grid-area:account;
  min-height:64px;
  min-width:350px;
  margin:0;
  padding:10px clamp(16px,2vw,28px);
  border:0;
  border-left:1px solid var(--line-soft);
  color:var(--ink);
  display:flex;
  align-items:center;
  gap:10px;
}
.sidebar-account > div { min-width:0; flex:1; }
.sidebar-account .mode-badge { flex:0 0 auto; white-space:nowrap; }
.sidebar-account #saveAll { width:auto; height:34px; padding:0 12px; flex:0 0 auto; }
.sidebar-account #logout { width:34px; height:34px; flex:0 0 34px; }
.sidebar-account strong { color:var(--ink); }
.sidebar-account small { color:#7d8c87; }
.sidebar-account button { border-color:var(--line); color:#6e7f79; background:#fff; }
.sidebar-backdrop { display:none; }
.app-header {
  height:58px;
  min-height:58px;
  padding:0 clamp(18px,2.2vw,34px);
  position:relative;
  top:auto;
  z-index:10;
  grid-template-columns:minmax(0,1fr) auto;
}
.page { width:min(100%,1680px); margin:0 auto; }

@media (max-width:1180px) and (min-width:921px) {
  .sidebar-nav button,.sidebar-nav a { padding-inline:9px; }
  .sidebar-account { min-width:280px; }
  .sidebar-account .mode-badge { display:none; }
}

@media (max-width:920px) {
  .app-sidebar {
    position:sticky;
    inset:auto;
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "brand account"
      "nav nav"
      "canvas canvas";
    transform:none;
  }
  .sidebar-brand {
    min-height:60px;
    padding:8px 12px;
    grid-template-columns:38px minmax(0,1fr) 34px 34px;
  }
  .sidebar-brand .brand-mark { width:38px; height:38px; }
  .sidebar-toggle { width:34px; height:34px; padding:0; display:grid; place-items:center; }
  .sidebar-close { width:34px; height:34px; padding:0; display:none; place-items:center; }
  .app-sidebar.open .sidebar-toggle { display:none; }
  .app-sidebar.open .sidebar-close { display:grid; }
  .sidebar-nav {
    display:none;
    padding:10px 12px 13px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:6px;
    background:#fff;
  }
  .app-sidebar.open .sidebar-nav { display:grid; }
  .sidebar-nav button,.sidebar-nav a { width:100%; min-width:0; justify-content:flex-start; }
  .sidebar-account { min-width:0; min-height:60px; padding:8px 12px; gap:8px; }
  .sidebar-account > div { display:none; }
  .sidebar-account .mode-badge,.sidebar-account #saveAll { display:none; }
  .canvas-topnav { justify-content:flex-start; padding:7px 12px; }
  .app-header { height:54px; min-height:54px; padding:0 14px; }
}

@media (max-width:620px) {
  .sidebar-brand small { display:none; }
  .sidebar-brand strong { font-size:14px; }
  .sidebar-account { gap:8px; }
  .sidebar-nav { grid-template-columns:1fr; }
  .app-header { grid-template-columns:minmax(0,1fr) auto; }
  .header-location > span,.header-location > b { display:none; }
  .header-actions .mode-badge { display:none; }
}

/* Separate generated artwork from copy so busy images never reduce readability. */
.ai-lab-feature {
  min-height:330px;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(340px,.92fr);
  align-items:stretch;
  background:#f4f7f5 !important;
}
.ai-lab-feature::before,.ai-lab-feature::after { display:none !important; }
.ai-lab-feature > img {
  position:relative;
  inset:auto;
  width:100%;
  height:100%;
  min-height:330px;
  object-fit:cover;
  object-position:center;
  filter:saturate(.9) contrast(1.02);
}
.ai-lab-copy {
  width:auto;
  min-width:0;
  position:relative;
  inset:auto;
  z-index:1;
  margin:0;
  padding:40px clamp(28px,3vw,48px);
  color:var(--ink);
  background:#f4f7f5;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.ai-lab-copy h2 { max-width:460px; font-size:31px; }
.ai-lab-copy p { max-width:520px; color:var(--muted); }
.hero-backdrop,.haiwuya-home-feature > img,.library-feature > img,.ai-card-media {
  filter:saturate(.82) contrast(1.01) brightness(1.01);
}

@media (max-width:820px) {
  .ai-lab-feature { grid-template-columns:1fr; }
  .ai-lab-feature > img { min-height:220px; max-height:310px; }
  .ai-lab-copy { position:relative; padding:28px 24px; }
}

/* Cleaner home hierarchy and in-page teaching categories. */
.command-home { gap:24px; }
.discovery-hero { grid-template-columns:minmax(0,1.18fr) minmax(260px,.82fr); border-color:#dbe2dd; }
.hero-copy { padding:34px clamp(24px,3vw,46px); }
.hero-copy h1 { font-size:clamp(30px,3vw,42px); }
.hero-kicker { color:var(--moss-dark); }
.hero-stats { background:#f7f9f7; }
.hero-stats div { padding:11px 16px; }
.home-search input { min-height:42px; font-size:14px; }
.home-search button { min-width:112px; }
.home-quick-section { display:grid; gap:8px; }
.home-quick-section .stage-heading { margin:0; align-items:center; }
.home-quick-section .stage-heading h2 { margin-top:5px; font-size:22px; }
.home-quick-section .stage-heading > div > span { color:var(--moss-dark); font-size:10px; font-weight:700; }
.home-quick-section .text-action { min-height:40px; padding:8px 10px; }
.home-quick-dock { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.home-quick-item { min-width:0; min-height:92px; padding:15px 16px; border:1px solid var(--line); border-radius:5px; color:var(--ink); background:#fff; display:grid; grid-template-columns:34px minmax(0,1fr) 18px; gap:11px; align-items:center; text-align:left; text-decoration:none; cursor:pointer; transition:border-color .16s ease,background .16s ease; }
.home-quick-item:hover { border-color:#abc8c0; background:#f8fbf9; }
.home-quick-item > span { width:34px; height:34px; border:1px solid #dfe9e4; border-radius:4px; color:var(--moss-dark); background:#f0f6f3; display:grid; place-items:center; font-size:11px; font-weight:800; }
.home-quick-item:nth-child(2) > span { color:#8b6728; background:#faf5e9; }
.home-quick-item > div { min-width:0; }
.home-quick-item strong,.home-quick-item small { display:block; }
.home-quick-item strong { overflow:hidden; font-size:14px; text-overflow:ellipsis; white-space:nowrap; }
.home-quick-item small { margin-top:5px; overflow:hidden; color:var(--muted); font-size:11px; line-height:1.45; text-overflow:ellipsis; }
.home-quick-item > b { color:#84938d; font-size:13px; font-weight:500; }
.home-library-window { padding:24px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.home-library-head { padding:0 0 18px; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.home-library-head > div > span { color:var(--moss-dark); font-size:11px; font-weight:700; }
.home-library-head h2 { margin:5px 0 5px; font-size:23px; }
.home-library-head p { margin:0; color:var(--muted); font-size:13px; line-height:1.6; }
.home-library-body { display:grid; grid-template-columns:minmax(300px,.9fr) minmax(0,1.1fr); gap:24px; border-top:1px solid var(--line-soft); }
.home-library-body .library-categories { border-right:1px solid var(--line-soft); }
.home-library-body .library-categories > button { min-height:72px; padding:12px 14px 12px 0; }
.home-library-body .library-categories > button > span { width:28px; height:28px; border:1px solid #dce5df; border-radius:4px; background:#f7f9f7; color:#62766d; display:grid; place-items:center; font-size:9px; }
.home-library-body .library-categories strong { font-size:14px; }
.home-library-body .library-categories small { font-size:11px; }
.home-library-body .library-categories b { font-size:17px; }
.home-library-body .recent-materials { margin:0; padding:16px 0 0 0; }
.home-library-body .recent-head { min-height:36px; align-items:center; }
.home-library-body .recent-head strong { font-size:14px; }
.home-library-body .recent-head span { font-size:11px; }
.home-library-body .recent-materials > button { min-height:68px; grid-template-columns:48px minmax(0,1fr) auto; gap:10px; }
.home-library-body .recent-materials > button > span { padding:5px 6px; background:#f4f7f5; text-align:center; font-size:10px; }
.home-library-body .recent-materials > button strong { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.home-library-body .recent-materials > button small { overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.home-library-body .recent-materials > button em { min-width:34px; text-align:right; }
.quick-draft { padding:22px; border:1px solid var(--line); border-radius:6px; background:#fff; }
.quick-draft::before { display:none; }
.quick-draft textarea { min-height:120px; border-radius:4px; }

.app-main.page-library { --learn-bg:#f4f6f4; --learn-surface:#fff; --learn-surface-soft:#f8faf8; --learn-text:#28251f; --learn-muted:#68736e; --learn-line:#dce3de; --learn-teal:#2f7168; --learn-teal-soft:#edf5f1; --learn-blue:#426f62; --learn-blue-soft:#edf5f1; --learn-yellow:#d59a38; --learn-coral:#a96545; background:#f4f6f4; background-image:none; }
.library-page { width:min(100%,1680px); margin-inline:auto; color:var(--learn-text); }
.library-page-head { margin-bottom:18px; border-radius:5px; box-shadow:none; }
.library-page-head h1 { color:var(--learn-text); }
.library-page-head p { max-width:760px; color:var(--learn-muted); font-size:14px; }
.library-education-shell { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
.library-project-picker { padding:16px 18px; border:1px solid var(--learn-line); border-radius:5px; background:#fff; }
.library-project-picker label { display:inline-block; margin:0 12px 0 0; font-size:13px; }
.library-project-picker .input { width:min(420px,55%); min-height:40px; border-color:var(--learn-line); border-radius:4px; }
.library-project-picker small { display:inline-block; margin:0 0 0 12px; color:var(--learn-muted); font-size:12px; }
.library-discovery { padding:20px; border:1px solid var(--learn-line); border-radius:5px; background:#fff; }
.library-discovery-title,.library-topic-heading { display:flex; justify-content:space-between; align-items:end; gap:12px; }
.library-discovery-title > div > span { color:var(--learn-teal); font-size:11px; font-weight:700; }
.library-discovery-title h2 { margin:4px 0 0; color:var(--learn-text); font-size:21px; }
.library-discovery-title > small,.library-topic-heading > span { color:var(--learn-muted); font-size:12px; }
.library-type-filters { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin-top:16px; }
.library-type-chip { min-width:0; min-height:48px; padding:8px 10px; border:1px solid var(--learn-line); border-radius:4px; background:#fff; color:var(--learn-text); display:flex; align-items:center; gap:7px; cursor:pointer; text-align:left; }
.library-type-chip:hover,.library-topic-card:hover { border-color:#b2c8bd; background:#f8fbf9; }
.library-type-chip > span { width:23px; height:23px; flex:0 0 auto; border-radius:3px; background:#eff5f1; color:var(--learn-teal); display:grid; place-items:center; font-size:10px; font-weight:800; }
.library-type-chip > b { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.library-type-chip > em { margin-left:auto; color:var(--learn-muted); font-size:11px; font-style:normal; }
.library-type-chip.active { border-color:var(--learn-teal); background:#edf5f1; color:var(--learn-teal); }
.library-type-chip.active > em { color:var(--learn-teal); }
.library-topic-heading { margin-top:22px; padding-bottom:9px; border-bottom:1px solid var(--learn-line); }
.library-topic-heading > strong { font-size:15px; }
.library-topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:10px; }
.library-topic-card { min-width:0; min-height:72px; padding:11px 12px; border:1px solid var(--learn-line); border-radius:4px; background:#fff; display:grid; grid-template-columns:30px minmax(0,1fr) auto; gap:10px; align-items:center; color:var(--learn-text); cursor:pointer; text-align:left; }
.library-topic-card.active { border-color:var(--learn-teal); background:#edf5f1; }
.library-topic-card > span { width:30px; height:30px; border:1px solid #dfe8e2; border-radius:4px; color:var(--learn-teal); background:#f5f8f6; display:grid; place-items:center; font-size:11px; font-weight:800; }
.library-topic-card > div { min-width:0; }
.library-topic-card b { display:block; overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.library-topic-card small { display:block; margin-top:4px; overflow:hidden; color:var(--learn-muted); font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.library-topic-card > em { min-width:26px; padding:4px 6px; border-radius:99px; background:#f0f4f1; color:var(--learn-muted); font-size:10px; font-style:normal; text-align:center; }
.library-main { min-width:0; }
.library-section-overview { min-height:116px; padding:20px 22px; border-radius:5px; background:#fff; box-shadow:none; }
.library-section-overview h2 { color:var(--learn-text); font-size:24px; }
.library-section-overview p { color:var(--learn-muted); font-size:13px; }
.library-section-stats strong { color:var(--learn-text); font-size:23px; }
.library-course-filter { padding:15px 17px; border-radius:5px; }
.course-chips button { border-radius:4px; }
.library-page .library-toolbar { border-radius:5px; }
.library-page .resource-card { border-radius:5px; box-shadow:none; }
.library-page .resource-card:hover { border-color:#b2c8bd; box-shadow:none; transform:translateY(-1px); }
.library-page .resource-cover { background:#edf3ef; color:var(--learn-teal); }
.library-page .resource-card.type-video .resource-cover { background:#edf5f1; }
.library-page .resource-card.type-file .resource-cover { background:#f7f2e8; color:#8b6728; }
.library-page .resource-tags span { border-color:#e1e8e3; border-radius:3px; background:#f7f9f7; color:#65746c; }
.library-results-head { padding-top:20px; }
.library-results-head strong { font-size:17px; }
.library-results-head span,.library-results-head small { color:var(--learn-muted); }
.library-page .library-empty { border-color:var(--learn-line); border-radius:5px; background:#fff; }
.library-page .library-empty > span { background:#edf5f1; color:var(--learn-teal); }
.library-page .library-updated-line { color:#78847d; }
.library-page .btn.primary { border-color:var(--charcoal); background:var(--charcoal); }
.library-page .btn.teal,.library-search-button { border-color:var(--moss) !important; background:var(--moss) !important; }

@media (max-width:1050px) {
  .home-quick-dock { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .home-library-body { grid-template-columns:minmax(250px,.85fr) minmax(0,1.15fr); gap:16px; }
  .library-type-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:820px) {
  .discovery-hero { grid-template-columns:1fr; }
  .hero-backdrop { grid-column:1; grid-row:1; min-height:190px; max-height:240px; }
  .hero-copy { grid-column:1; grid-row:2; min-height:0; padding:24px; }
  .hero-stats { grid-column:1; grid-row:3; }
  .home-library-body { grid-template-columns:1fr; }
  .home-library-body .library-categories { border-right:0; }
  .home-library-body .recent-materials { padding-top:15px; border-top:1px solid var(--line-soft); }
  .library-topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .library-section-overview { align-items:flex-start; flex-direction:column; }
  .library-section-stats { width:100%; grid-template-columns:repeat(3,1fr); }
  .library-section-stats div:first-child { border-left:0; }
  .library-course-filter { grid-template-columns:1fr; gap:12px; }
  .library-page .library-toolbar { grid-template-columns:minmax(0,1fr) 145px; }
  .library-search-field { grid-column:1/-1; }
}
@media (max-width:620px) {
  .command-home { gap:18px; }
  .home-quick-dock { grid-template-columns:1fr; }
  .home-quick-item { min-height:72px; }
  .home-quick-section .stage-heading { align-items:flex-start; }
  .home-quick-section .text-action { padding:5px 0; font-size:11px; text-align:right; }
  .home-library-window { padding:17px 14px; }
  .home-library-head { align-items:flex-start; flex-direction:column; }
  .home-library-head h2 { font-size:21px; }
  .home-library-body .library-categories > button { grid-template-columns:34px minmax(0,1fr) 30px; padding-right:4px; }
  .home-library-body .recent-materials > button { grid-template-columns:44px minmax(0,1fr); }
  .home-library-body .recent-materials > button em { display:none; }
  .home-tail { gap:18px; }
  .quick-draft { padding:17px 14px; }
  .home-search { grid-template-columns:minmax(0,1fr) auto; }
  .home-search input { font-size:13px; }
  .home-search button { min-width:88px; padding-inline:10px; }
  .hero-copy h1 { font-size:27px; }
  .hero-copy > p { font-size:13px; }
  .library-page-head { padding:18px 16px; }
  .library-page-head h1 { font-size:24px; }
  .library-project-picker { display:grid; grid-template-columns:auto minmax(0,1fr); gap:8px 10px; padding:14px; }
  .library-project-picker label { margin:0; align-self:center; }
  .library-project-picker .input { width:100%; min-width:0; }
  .library-project-picker small { grid-column:2; margin:0; }
  .library-discovery { padding:15px 12px; }
  .library-discovery-title { align-items:flex-start; flex-direction:column; gap:4px; }
  .library-type-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; }
  .library-type-chip { padding-inline:8px; }
  .library-topic-grid { grid-template-columns:1fr; }
  .library-topic-card { min-height:62px; }
  .library-section-overview { padding:17px 14px; }
  .library-section-overview h2 { font-size:21px; }
  .library-course-filter { padding:14px 12px; }
  .course-chips { flex-wrap:nowrap; padding-bottom:4px; overflow-x:auto; }
  .course-chips button { flex:0 0 auto; }
  .library-page .library-toolbar { grid-template-columns:1fr; padding:12px; }
  .library-search-field { grid-column:1; }
  .library-search-button,.library-reset-button { width:100%; }
  .library-results-head { align-items:flex-start; flex-direction:column; }
}
