/* CRM Uchebka: scoped native-panel skin; no changes to shared visual tokens. */
.aiw-internal-frame{
  position:absolute;inset:0;z-index:8;overflow-y:auto;overscroll-behavior:contain;
  background:var(--ui-bg,#121b1b);color:var(--ui-text,#ecf5ee);
  font:inherit;scrollbar-color:var(--ui-border,#425a4b) transparent;
}
[data-admin-shell] main.ui-canvas{position:relative}
.aiw-inner{max-width:1400px;padding:28px clamp(18px,3vw,48px) 80px;margin:0 auto;min-height:100%}
.aiw-hero{border:1px solid var(--ui-border,#425c4a);border-radius:23px;background:
  radial-gradient(ellipse at 80% 15%,color-mix(in srgb,var(--ui-link,#73c34e) 16%,transparent),transparent 50%),
  var(--ui-surface,#1b2824);padding:clamp(22px,3vw,44px);margin-bottom:24px}
.aiw-eyebrow{color:var(--ui-link,#83d769);font-size:12px;font-weight:760;letter-spacing:.12em;text-transform:uppercase}
.aiw-hero h1{font-size:clamp(26px,3vw,42px);letter-spacing:-.03em;line-height:1.14;margin:12px 0}
.aiw-hero p{color:var(--ui-muted,#a4b5aa);line-height:1.65;max-width:810px;font-size:14px}
.aiw-hero p:last-child{margin-bottom:0}
.aiw-warning{margin:18px 0 26px;border-radius:16px;border:1px solid var(--ui-border,#4c6d4d);
  background:var(--ui-surface-soft,#203027);padding:17px 21px;
  font-size:13px;line-height:1.7;color:var(--ui-muted,#aebcb2)}
.aiw-warning strong{color:var(--ui-text,#e9f6ec)}
.aiw-quick{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 26px}
.aiw-primary,.aiw-secondary{display:inline-flex;align-items:center;padding:11px 16px;
  border-radius:12px;font-size:13px;font-weight:750;text-decoration:none}
.aiw-primary{background:var(--ui-link,#75c74e);color:#102211}
.aiw-secondary{color:var(--ui-text,#f2fff6);border:1px solid var(--ui-border,#405c46);background:var(--ui-surface,#213127)}
.aiw-inner h2{font-size:clamp(20px,2vw,26px);letter-spacing:-.02em;margin:34px 0 18px;font-weight:760}
.aiw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:35px}
.aiw-card{display:flex;flex-direction:column;align-items:flex-start;background:var(--ui-surface,#202c29);
  border:1px solid var(--ui-border,#40584a);border-radius:17px;padding:21px;min-width:0}
.aiw-card-top{display:flex;gap:9px;align-items:center;margin-bottom:13px;color:var(--ui-muted,#b4c4b9);font-size:11px}
.aiw-dot{width:7px;height:7px;border-radius:50%;background:#9cae9c}
.aiw-card h3{font-size:17px;font-weight:750;line-height:1.3;margin:0 0 10px}
.aiw-card p{color:var(--ui-muted,#adc1b0);font-size:13px;line-height:1.56;margin:0 0 20px}
.aiw-card-link{margin-top:auto;color:var(--ui-link,#92d966);font-size:13px;font-weight:700}
.aiw-card-link:hover,.aiw-crumbs a:hover{text-decoration:underline}
.aiw-timeline{display:grid;gap:11px;margin-bottom:34px}
.aiw-step{display:flex;align-items:flex-start;gap:15px;background:var(--ui-surface,#21302b);
  border:1px solid var(--ui-border,#486052);padding:19px;border-radius:15px}
.aiw-number{display:grid;place-items:center;flex:0 0 29px;width:29px;height:29px;
  border:1px solid var(--ui-border,#496955);background:var(--ui-surface-soft,#2d4335);
  color:var(--ui-link,#8fd36d);border-radius:50%;font-size:12px;font-weight:800}
.aiw-step strong{font-size:14px;font-weight:700}
.aiw-step p{font-size:12px;line-height:1.6;margin:7px 0 0;color:var(--ui-muted,#b0bfba)}
.aiw-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 17px;font-size:12px;color:var(--ui-muted,#adbeaa)}
.aiw-crumbs a{color:var(--ui-link,#87d465)}
.aiw-desktop-menu-entry{margin-top:2px}
.aiw-menu-link{display:flex;gap:12px;align-items:center;margin:0 8px;padding:11px 16px;border-radius:9px;
  font-size:14px;min-height:46px;font-weight:600;color:var(--ui-muted,#bdcdbb);text-decoration:none;transition:background .15s}
.aiw-menu-link:hover,.aiw-menu-link[aria-current=page]{background:var(--ui-hover,#283b31);color:var(--ui-text,#edffef)}
.aiw-menu-link svg{display:block;flex:0 0 22px;color:currentColor}
.aiw-mobile-menu-entry{border:1px solid var(--ui-border,#405249);border-radius:12px;margin-bottom:12px}
.aiw-mobile-menu-entry .aiw-menu-link{margin:0}
@media(min-width:1050px){.aiw-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.aiw-inner{padding:19px 15px 95px}.aiw-grid{grid-template-columns:1fr}
  .aiw-hero{border-radius:16px;padding:21px}.aiw-card{padding:19px}
  .aiw-quick{gap:7px}.aiw-primary,.aiw-secondary{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.aiw-menu-link{transition:none}}

/* Synthetic Qwen pilot, visually scoped within each department. */
.aiw-demo-pilot,.aiw-demo-pending{
  padding:22px;margin:24px 0;border-radius:19px;
  border:1px solid var(--ui-border,#42654e);background:var(--ui-surface,#1c2922)}
.aiw-demo-heading{display:flex;align-items:center;gap:12px}
.aiw-demo-heading h2,.aiw-demo-pending h2{margin:4px 0 12px;font-size:22px}
.aiw-demo-dot{width:10px;height:10px;border-radius:50%;background:var(--ui-link,#73c45a);box-shadow:0 0 13px #65be5470}
.aiw-demo-pilot p,.aiw-demo-pending p{font-size:13px;line-height:1.65;color:var(--ui-muted,#9eaca5)}
.aiw-demo-question{margin:18px 0 15px;padding:15px;border:1px dashed var(--ui-border,#467046);
  border-radius:12px;background:var(--ui-surface-soft,#253b2d);font-size:13px;line-height:1.6}
.aiw-demo-button{border:0;cursor:pointer;font:inherit;font-size:13px}
.aiw-demo-button:disabled{opacity:.55;cursor:wait}
.aiw-demo-result{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ui-text,#ecfff0);
  font-size:13px;line-height:1.68;margin-top:15px}
.aiw-demo-result:not(:empty){border-radius:13px;padding:15px;background:var(--ui-surface-soft,#23352b);
  border:1px solid var(--ui-border,#4a6553)}
.aiw-demo-disclaimer{margin-bottom:0}

/* R40 UI graphite correction, aligned with real CRM Graphite V24.3.
   Only the embedded AI workspace receives these neutral, no-green surfaces.
   The small action/link accent continues to inherit the CRM brand color. */
.aiw-internal-frame{
  --ui-bg:#090b0f;
  --ui-canvas:#090b0f;
  --ui-surface:#121720;
  --ui-surface-soft:#171d27;
  --ui-border:#2b3545;
  --ui-hover:#1d2632;
  background:#090b0f;
  color:var(--ui-text,#f2f5f8);
}
.aiw-internal-frame .aiw-hero{
  background:#121720;
  border-color:#2b3545;
}
.aiw-internal-frame .aiw-card,
.aiw-internal-frame .aiw-step,
.aiw-internal-frame .aiw-demo-pilot,
.aiw-internal-frame .aiw-demo-pending{
  background:#121720;
  border-color:#2b3545;
}
.aiw-internal-frame .aiw-warning,
.aiw-internal-frame .aiw-demo-question,
.aiw-internal-frame .aiw-demo-result:not(:empty){
  background:#171d27;
  border-color:#2b3545;
}
.aiw-internal-frame .aiw-secondary,
.aiw-internal-frame .aiw-number{
  background:#171d27;
  border-color:#2b3545;
}
.aiw-internal-frame .aiw-dot{background:#8993a2}
html[data-theme="light"] .aiw-internal-frame{
  --ui-bg:#f3f5f8;
  --ui-canvas:#f3f5f8;
  --ui-surface:#fff;
  --ui-surface-soft:#f7f9fc;
  --ui-border:#dfe5ed;
  --ui-hover:#eaf1f7;
  background:#f3f5f8;
  color:var(--ui-text,#202833);
}
html[data-theme="light"] .aiw-internal-frame .aiw-hero,
html[data-theme="light"] .aiw-internal-frame .aiw-card,
html[data-theme="light"] .aiw-internal-frame .aiw-step,
html[data-theme="light"] .aiw-internal-frame .aiw-demo-pilot,
html[data-theme="light"] .aiw-internal-frame .aiw-demo-pending{
  background:#fff;
  border-color:#dfe5ed;
}
html[data-theme="light"] .aiw-internal-frame .aiw-warning,
html[data-theme="light"] .aiw-internal-frame .aiw-demo-question,
html[data-theme="light"] .aiw-internal-frame .aiw-demo-result:not(:empty),
html[data-theme="light"] .aiw-internal-frame .aiw-secondary,
html[data-theme="light"] .aiw-internal-frame .aiw-number{
  background:#f7f9fc;
  border-color:#dfe5ed;
}
html[data-theme="light"] .aiw-internal-frame .aiw-dot{background:#8b96a3}

/* Ten department integration roadmaps — graphite-only, no green-tinted surfaces. */
.aiw-spec-section{margin:28px 0 36px}
.aiw-spec-label{font-size:11px;letter-spacing:.13em;text-transform:uppercase;font-weight:800;color:var(--ui-muted,#b7c0ca)}
.aiw-spec-explainer{font-size:13px;line-height:1.7;color:var(--ui-muted,#bbc4cc);margin:0 0 20px;max-width:860px}
.aiw-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.aiw-spec-card{background:var(--ui-surface,#121720);border:1px solid var(--ui-border,#2b3545);border-radius:16px;padding:21px;min-width:0}
.aiw-spec-card h3{font-size:14px;font-weight:750;line-height:1.5;margin:0 0 13px;color:var(--ui-text,#f2f5f8)}
.aiw-spec-card ul{margin:0;padding-left:18px;color:var(--ui-muted,#b7c2cf);font-size:12px;line-height:1.75}
.aiw-spec-card li{margin:0 0 3px;overflow-wrap:anywhere}
.aiw-spec-footer{margin:17px 0;border:1px solid var(--ui-border,#2b3545);background:var(--ui-surface-soft,#171d27);padding:15px;border-radius:12px;font-size:12px;line-height:1.8;color:var(--ui-muted,#b8c2cd)}
.aiw-spec-footer strong{color:var(--ui-text,#f2f5f8)}
.aiw-spec-separator{padding:0 8px;opacity:.5}
@media(max-width:740px){.aiw-spec-grid{grid-template-columns:1fr}.aiw-spec-card{padding:17px}}
