/* WooEdu tokens */

@charset "UTF-8";
/*
 * WooEdu / 武创大智统一视觉规范 v2.3
 * 第三方合作伙伴前端基础样式包
 * 来源：《WooEdu 统一视觉规范》（PDF）
 * 原则：语义 Token 优先，禁止业务页面临时硬编码品牌色。
 */

/* ========================================================================== 
   1. Raw color scales
   ========================================================================== */
:root {
  color-scheme: light;

  /* Primary */
  --woo-primary-50: #F0F7FF;
  --woo-primary-100: #DCEBFF;
  --woo-primary-200: #B9D8FF;
  --woo-primary-300: #8CB6EF;
  --woo-primary-400: #5F94E5;
  --woo-primary-500: #3476D9;
  --woo-primary-600: #275CA8;
  --woo-primary-700: #1F4D8F;
  --woo-primary-800: #183B6E;
  --woo-primary-900: #122B52;
  --woo-primary-950: #0D1F3D;

  /* Neutral */
  --woo-neutral-50: #F7F9FC;
  --woo-neutral-100: #EEF2F7;
  --woo-neutral-200: #E1E7EF;
  --woo-neutral-300: #C6D0DE;
  --woo-neutral-400: #98A6BA;
  --woo-neutral-500: #6B7788;
  --woo-neutral-600: #4E5A6C;
  --woo-neutral-700: #394455;
  --woo-neutral-800: #2E3A4B;
  --woo-neutral-900: #1F2937;
  --woo-neutral-950: #111827;

  /* Accent Cyan */
  --woo-accent-50: #ECFEFF;
  --woo-accent-100: #CFFAFE;
  --woo-accent-200: #A5F3FC;
  --woo-accent-300: #67E8F9;
  --woo-accent-400: #22D3EE;
  --woo-accent-500: #13C7D8;
  --woo-accent-600: #0891B2;
  --woo-accent-700: #0E7490;
  --woo-accent-800: #155E75;
  --woo-accent-900: #164E63;
  --woo-accent-950: #083344;

  /* Indigo */
  --woo-indigo-50: #F2F3FF;
  --woo-indigo-100: #E2E4FF;
  --woo-indigo-200: #C6CBFF;
  --woo-indigo-300: #A7AFFA;
  --woo-indigo-400: #7C86EF;
  --woo-indigo-500: #5863DD;
  --woo-indigo-600: #3F49C2;
  --woo-indigo-700: #303997;
  --woo-indigo-800: #1E2170;
  --woo-indigo-900: #171A55;
  --woo-indigo-950: #10123A;

  /* Core named colors */
  --woo-base-white: #F7F9FC;
  --woo-mist-blue: #EEF4FA;
  --woo-ice-blue: #E4EEF9;
  --woo-primary-blue: #3476D9;
  --woo-deep-blue: #275CA8;
  --woo-light-blue: #8CB6EF;
  --woo-accent-cyan: #13C7D8;
  --woo-text-dark: #2E3A4B;
  --woo-text-secondary-fixed: #6B7788;
  --woo-border-fixed: #E1E7EF;

  /* -----------------------------------------------------------------------
     Compatibility implementation tokens.
     v2.3 展示了成功、警告、异常状态，但未在数值表中给出明确色值。
     为便于第三方直接落地，这里保留兼容默认值，并集中定义，便于后续替换。
     ----------------------------------------------------------------------- */
  --woo-success-50: #ECFDF3;
  --woo-success-600: #128A47;
  --woo-warning-50: #FFF7E6;
  --woo-warning-600: #C76A05;
  --woo-danger-50: #FFF0F0;
  --woo-danger-600: #D93636;
  --woo-info-50: var(--woo-primary-50);
  --woo-info-600: var(--woo-primary-600);

  /* Semantic tokens, light theme */
  --woo-bg-base: #F7F9FC;
  --woo-bg-surface: #FFFFFF;
  --woo-bg-surface-2: #EEF4FA;
  --woo-border-base: #E1E7EF;
  --woo-text-primary: #2E3A4B;
  --woo-text-secondary: #6B7788;
  --woo-text-tertiary: #98A6BA;
  --woo-text-disabled: #98A6BA;
  --woo-brand-primary: #3476D9;
  --woo-brand-primary-hover: #275CA8;
  --woo-brand-primary-active: #1F4D8F;
  --woo-brand-accent: #13C7D8;
  --woo-focus-ring: #5F94E5;

  /* Surface */
  --woo-radius-xs: 4px;
  --woo-radius-sm: 6px;
  --woo-radius-md: 8px;
  --woo-radius-lg: 12px;
  --woo-radius-xl: 16px;
  --woo-radius-2xl: 24px;
  --woo-shadow-sm: 0 1px 2px rgba(30, 70, 120, .05);
  --woo-shadow-md: 0 4px 12px rgba(30, 70, 120, .07);
  --woo-shadow-lg: 0 8px 24px rgba(30, 70, 120, .09);

  /* Typography */
  --woo-font-sans-cn: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --woo-font-sans-en: Inter, "SF Pro Text", Roboto, Arial, sans-serif;
  --woo-font-number: DIN, "Barlow Semi Condensed", "Arial Narrow", var(--woo-font-sans-en);
  --woo-font-weight-regular: 400;
  --woo-font-weight-medium: 500;
  --woo-font-weight-semibold: 600;
  --woo-font-weight-bold: 700;

  --woo-font-display: 40px;
  --woo-line-display: 48px;
  --woo-font-h1: 32px;
  --woo-line-h1: 40px;
  --woo-font-h2: 24px;
  --woo-line-h2: 32px;
  --woo-font-h3: 20px;
  --woo-line-h3: 28px;
  --woo-font-body: 14px;
  --woo-line-body: 22px;
  --woo-font-caption: 12px;
  --woo-line-caption: 18px;

  /* Spacing: 4pt base, 8pt main rhythm */
  --woo-space-1: 4px;
  --woo-space-2: 8px;
  --woo-space-3: 12px;
  --woo-space-4: 16px;
  --woo-space-5: 20px;
  --woo-space-6: 24px;
  --woo-space-8: 32px;
  --woo-space-10: 40px;
  --woo-space-12: 48px;
  --woo-space-16: 64px;

  /* Motion */
  --woo-motion-fast: 120ms;
  --woo-motion-base: 200ms;
  --woo-motion-slow: 320ms;
  --woo-motion-screen-min: 400ms;
  --woo-motion-screen-max: 600ms;
  --woo-ease-standard: cubic-bezier(.2, 0, 0, 1);
  --woo-ease-enter: cubic-bezier(0, 0, .2, 1);
  --woo-ease-exit: cubic-bezier(.4, 0, 1, 1);
  --woo-ai-loading-duration: 1.4s;

  /* Layout */
  --woo-container-max: 1200px;
  --woo-container-max-wide: 1440px;
  --woo-page-gutter: 32px;
  --woo-grid-gap: 24px;
  --woo-platform-bar-height: 56px;
  --woo-sidebar-width: 240px;
  --woo-sidebar-collapsed: 64px;
  --woo-table-row-height: 48px;
  --woo-card-padding: 24px;

  /* Brand background language */
  --woo-brand-glow-light: rgba(140, 182, 239, .30);
  --woo-brand-glow-strong: rgba(95, 148, 229, .32);
  --woo-brand-gradient: linear-gradient(135deg, rgba(228, 238, 249, .95) 0%, rgba(140, 182, 239, .74) 55%, rgba(52, 118, 217, .76) 100%);
}

/* ========================================================================== 
   2. Dark semantic mapping
   ========================================================================== */
[data-theme="dark"],
.woo-theme-dark {
  color-scheme: dark;
  --woo-bg-base: #0D1220;
  --woo-bg-surface: #151C2E;
  --woo-bg-surface-2: #1D2639;
  --woo-border-base: rgba(255, 255, 255, .10);
  --woo-text-primary: #EAF0F8;
  --woo-text-secondary: #A3B0C4;
  --woo-text-tertiary: #718096;
  --woo-text-disabled: #6B7788;
  --woo-brand-primary: #5F94E5;
  --woo-brand-primary-hover: #8CB6EF;
  --woo-brand-primary-active: #3476D9;
  --woo-brand-accent: #35DEEA;
  --woo-focus-ring: #8CB6EF;
  --woo-shadow-sm: none;
  --woo-shadow-md: none;
  --woo-shadow-lg: none;
  --woo-brand-glow-light: rgba(95, 148, 229, .10);
  --woo-brand-glow-strong: rgba(19, 199, 216, .10);
}

/* ========================================================================== 
   3. Base / typography
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { background: var(--woo-bg-base); }

body.woo-ui,
.woo-ui {
  margin: 0;
  color: var(--woo-text-primary);
  background: var(--woo-bg-base);
  font-family: var(--woo-font-sans-cn);
  font-size: var(--woo-font-body);
  line-height: var(--woo-line-body);
  font-weight: var(--woo-font-weight-regular);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.woo-display { font-size: var(--woo-font-display); line-height: var(--woo-line-display); font-weight: 700; }
.woo-h1, .woo-ui h1 { font-size: var(--woo-font-h1); line-height: var(--woo-line-h1); font-weight: 700; margin: 0; }
.woo-h2, .woo-ui h2 { font-size: var(--woo-font-h2); line-height: var(--woo-line-h2); font-weight: 600; margin: 0; }
.woo-h3, .woo-ui h3 { font-size: var(--woo-font-h3); line-height: var(--woo-line-h3); font-weight: 600; margin: 0; }
.woo-body { font-size: var(--woo-font-body); line-height: var(--woo-line-body); font-weight: 400; }
.woo-caption { font-size: var(--woo-font-caption); line-height: var(--woo-line-caption); color: var(--woo-text-secondary); }
.woo-number { font-family: var(--woo-font-number); font-variant-numeric: tabular-nums; }
.woo-text-primary { color: var(--woo-text-primary); }
.woo-text-secondary { color: var(--woo-text-secondary); }
.woo-text-brand { color: var(--woo-brand-primary); }
.woo-text-accent { color: var(--woo-brand-accent); }

/* ========================================================================== 
   4. Focus and accessibility
   ========================================================================== */
.woo-ui :where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--woo-focus-ring);
  outline-offset: 2px;
}

.woo-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========================================================================== 
   5. Layout
   ========================================================================== */
.woo-container {
  width: min(100%, calc(var(--woo-container-max) + var(--woo-page-gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--woo-page-gutter);
}

.woo-container-wide { max-width: calc(var(--woo-container-max-wide) + var(--woo-page-gutter) * 2); }

.woo-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--woo-grid-gap);
}
.woo-col-12 { grid-column: span 12; }
.woo-col-8 { grid-column: span 8; }
.woo-col-6 { grid-column: span 6; }
.woo-col-4 { grid-column: span 4; }
.woo-col-3 { grid-column: span 3; }

.woo-stack { display: flex; flex-direction: column; gap: var(--woo-space-4); }
.woo-row { display: flex; align-items: center; gap: var(--woo-space-3); flex-wrap: wrap; }
.woo-section { padding-block: var(--woo-space-12); }

/* ========================================================================== 
   6. Background levels and gradients
   ========================================================================== */
.woo-bg-level-0 { background: var(--woo-bg-base); }
.woo-bg-level-1 {
  background:
    radial-gradient(70% 60% at 100% 100%, var(--woo-brand-glow-light) 0%, transparent 68%),
    var(--woo-bg-base);
}
.woo-bg-level-2 {
  background:
    radial-gradient(58% 72% at 100% 100%, var(--woo-brand-glow-strong) 0%, transparent 64%),
    linear-gradient(145deg, var(--woo-bg-base) 0%, var(--woo-bg-base) 62%, var(--woo-mist-blue) 100%);
}
.woo-bg-level-3 {
  background:
    radial-gradient(54% 70% at 100% 100%, rgba(52, 118, 217, .38) 0%, transparent 65%),
    radial-gradient(30% 45% at 82% 75%, rgba(140, 182, 239, .42) 0%, transparent 72%),
    var(--woo-bg-base);
}

.woo-brand-gradient {
  background: var(--woo-brand-gradient);
}

/* ========================================================================== 
   7. Surface / card / panel
   ========================================================================== */
.woo-card,
.woo-panel {
  background: var(--woo-bg-surface);
  border: 1px solid var(--woo-border-base);
  border-radius: var(--woo-radius-lg);
  padding: var(--woo-card-padding);
  color: var(--woo-text-primary);
}

.woo-card-flat { box-shadow: none; }
.woo-card-elevated { border-color: transparent; box-shadow: var(--woo-shadow-md); }
[data-theme="dark"] .woo-card-elevated,
.woo-theme-dark .woo-card-elevated { border-color: var(--woo-border-base); box-shadow: none; }

.woo-card-title { margin: 0 0 var(--woo-space-2); font-size: 20px; line-height: 28px; font-weight: 600; }
.woo-card-desc { margin: 0; color: var(--woo-text-secondary); }

/* ========================================================================== 
   8. Buttons
   ========================================================================== */
.woo-btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--woo-radius-md);
  min-height: 40px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--woo-motion-fast) var(--woo-ease-standard),
    border-color var(--woo-motion-fast) var(--woo-ease-standard),
    color var(--woo-motion-fast) var(--woo-ease-standard),
    transform var(--woo-motion-fast) var(--woo-ease-standard);
}
.woo-btn:hover { text-decoration: none; }
.woo-btn:active { transform: translateY(1px); }
.woo-btn[disabled], .woo-btn.is-disabled { cursor: not-allowed; transform: none; }

.woo-btn-primary { background: var(--woo-brand-primary); color: #fff; }
.woo-btn-primary:hover { background: var(--woo-brand-primary-hover); }
.woo-btn-primary:active { background: var(--woo-brand-primary-active); }
.woo-btn-primary[disabled], .woo-btn-primary.is-disabled { background: var(--woo-neutral-300); color: var(--woo-text-disabled); }

.woo-btn-secondary { background: transparent; border-color: var(--woo-brand-primary); color: var(--woo-brand-primary); }
.woo-btn-secondary:hover { background: var(--woo-primary-50); }
[data-theme="dark"] .woo-btn-secondary:hover, .woo-theme-dark .woo-btn-secondary:hover { background: rgba(95, 148, 229, .10); }
.woo-btn-secondary[disabled], .woo-btn-secondary.is-disabled { border-color: var(--woo-neutral-300); color: var(--woo-text-disabled); }

.woo-btn-text { background: transparent; color: var(--woo-brand-primary); padding-inline: 8px; }
.woo-btn-text:hover { background: var(--woo-primary-50); }
[data-theme="dark"] .woo-btn-text:hover, .woo-theme-dark .woo-btn-text:hover { background: rgba(95, 148, 229, .10); }

.woo-btn-danger { background: var(--woo-danger-600); color: #fff; }
.woo-btn-danger:hover { filter: brightness(.94); }
.woo-btn-danger[disabled], .woo-btn-danger.is-disabled { background: var(--woo-neutral-300); color: var(--woo-text-disabled); }

.woo-btn-sm { min-height: 28px; padding-inline: 12px; border-radius: var(--woo-radius-sm); font-size: 12px; }
.woo-btn-md { min-height: 32px; padding-inline: 16px; }
.woo-btn-lg { min-height: 40px; padding-inline: 20px; }

/* 全站唯一首要行动可选用。常规业务按钮禁止渐变。 */
.woo-btn-hero {
  color: #fff;
  background: linear-gradient(135deg, var(--woo-brand-accent), var(--woo-brand-primary));
  border-color: transparent;
}

/* ========================================================================== 
   9. Forms
   ========================================================================== */
.woo-field { display: grid; gap: 8px; }
.woo-label { font-weight: 500; color: var(--woo-text-primary); }
.woo-input,
.woo-select,
.woo-textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--woo-border-base);
  border-radius: var(--woo-radius-md);
  background: var(--woo-bg-surface);
  color: var(--woo-text-primary);
  font: inherit;
  transition: border-color var(--woo-motion-fast) var(--woo-ease-standard), box-shadow var(--woo-motion-fast) var(--woo-ease-standard);
}
.woo-textarea { padding-block: 10px; min-height: 96px; resize: vertical; }
.woo-input::placeholder, .woo-textarea::placeholder { color: var(--woo-text-tertiary); opacity: 1; }
.woo-input:focus, .woo-select:focus, .woo-textarea:focus { border-color: var(--woo-brand-primary); outline: none; box-shadow: 0 0 0 2px color-mix(in srgb, var(--woo-focus-ring) 25%, transparent); }
.woo-input.is-error, .woo-select.is-error, .woo-textarea.is-error { border-color: var(--woo-danger-600); }
.woo-error-text { color: var(--woo-danger-600); font-size: 12px; line-height: 18px; display: flex; gap: 6px; align-items: center; }

/* ========================================================================== 
   10. Tables
   ========================================================================== */
.woo-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--woo-border-base); border-radius: var(--woo-radius-lg); background: var(--woo-bg-surface); }
.woo-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.woo-table th, .woo-table td { height: var(--woo-table-row-height); padding: 0 16px; text-align: left; border-bottom: 1px solid var(--woo-border-base); white-space: nowrap; }
.woo-table th { background: var(--woo-bg-surface-2); font-weight: 600; color: var(--woo-text-primary); }
.woo-table tbody tr:last-child td { border-bottom: 0; }
.woo-table tbody tr:hover td { background: var(--woo-primary-50); }
[data-theme="dark"] .woo-table tbody tr:hover td, .woo-theme-dark .woo-table tbody tr:hover td { background: rgba(95, 148, 229, .08); }

/* ========================================================================== 
   11. Navigation / app shell
   ========================================================================== */
.woo-platform-bar {
  height: var(--woo-platform-bar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--woo-space-6);
  background: var(--woo-bg-surface);
  border-bottom: 1px solid var(--woo-border-base);
}
.woo-platform-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.woo-platform-logo { height: 28px; width: auto; display: block; }
.woo-breadcrumb { font-size: 12px; color: var(--woo-text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.woo-app-shell { min-height: 100vh; background: var(--woo-bg-base); }
.woo-app-body { display: grid; grid-template-columns: var(--woo-sidebar-width) minmax(0, 1fr); min-height: calc(100vh - var(--woo-platform-bar-height)); }
.woo-sidebar { background: var(--woo-bg-surface-2); border-right: 1px solid var(--woo-border-base); padding: 12px; }
.woo-sidebar.is-collapsed { width: var(--woo-sidebar-collapsed); }
.woo-content { min-width: 0; padding: var(--woo-space-8); }

.woo-nav-item {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: var(--woo-radius-md);
  color: var(--woo-text-secondary);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.woo-nav-item:hover { background: var(--woo-primary-50); color: var(--woo-text-primary); }
.woo-nav-item.is-active {
  color: var(--woo-brand-primary);
  background: var(--woo-primary-50);
  border-left-color: var(--woo-brand-primary);
  font-weight: 600;
}
[data-theme="dark"] .woo-nav-item:hover,
[data-theme="dark"] .woo-nav-item.is-active,
.woo-theme-dark .woo-nav-item:hover,
.woo-theme-dark .woo-nav-item.is-active { background: rgba(95, 148, 229, .10); }

/* ========================================================================== 
   12. Tags / badges / states
   ========================================================================== */
.woo-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  border: 1px solid transparent;
}
.woo-tag-success { background: var(--woo-success-50); color: var(--woo-success-600); }
.woo-tag-warning { background: var(--woo-warning-50); color: var(--woo-warning-600); }
.woo-tag-danger { background: var(--woo-danger-50); color: var(--woo-danger-600); }
.woo-tag-ai { background: var(--woo-accent-50); color: var(--woo-accent-700); }
.woo-tag-selected { background: var(--woo-primary-50); color: var(--woo-primary-600); }

/* ========================================================================== 
   13. AI four-point star / loading / skeleton
   ========================================================================== */
.woo-ai-star {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex: 0 0 auto;
  background: var(--woo-brand-accent);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
}
.woo-ai-star-sm { width: 18px; height: 18px; }
.woo-ai-star-lg { width: 44px; height: 44px; }

.woo-ai-loading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--woo-text-secondary);
}
.woo-ai-loading .woo-ai-star {
  background: linear-gradient(135deg, var(--woo-brand-accent), var(--woo-brand-primary));
  animation: woo-ai-breathe var(--woo-ai-loading-duration) var(--woo-ease-standard) infinite;
  transform-origin: center;
}

@keyframes woo-ai-breathe {
  0%, 100% { opacity: .55; transform: scale(.86) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(90deg); }
}

.woo-skeleton {
  position: relative;
  overflow: hidden;
  background: var(--woo-neutral-100);
  border-radius: var(--woo-radius-md);
  min-height: 14px;
}
[data-theme="dark"] .woo-skeleton, .woo-theme-dark .woo-skeleton { background: #1D2639; }
.woo-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(95, 148, 229, .20), transparent);
  animation: woo-skeleton-shine 1.6s linear infinite;
}
@keyframes woo-skeleton-shine { to { transform: translateX(100%); } }

/* ========================================================================== 
   14. Data visualization helpers
   ========================================================================== */
.woo-chart-color-1 { --woo-chart-color: #13C7D8; }
.woo-chart-color-2 { --woo-chart-color: #3476D9; }
.woo-chart-color-3 { --woo-chart-color: #5863DD; }
.woo-chart-color-4 { --woo-chart-color: #34D399; }
.woo-chart-color-5 { --woo-chart-color: #F5B33C; }
.woo-chart-color-6 { --woo-chart-color: #FF7A7A; }
.woo-chart-color-7 { --woo-chart-color: #A78BFA; }
.woo-chart-color-8 { --woo-chart-color: #7DD3FC; }

.woo-chart-bar {
  background: var(--woo-chart-color, var(--woo-brand-primary));
  border-radius: 4px 4px 0 0;
  min-width: 18px;
}
.woo-chart-gridline { border-top: 1px solid color-mix(in srgb, var(--woo-border-base) 40%, transparent); }

/* ========================================================================== 
   15. Responsive and device modes
   ========================================================================== */
@media (min-width: 1440px) {
  :root { --woo-page-gutter: 48px; }
}

@media (max-width: 1199px) {
  .woo-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 20px; }
  .woo-col-8, .woo-col-6, .woo-col-4, .woo-col-3 { grid-column: span 4; }
  :root { --woo-page-gutter: 24px; }
}

@media (max-width: 767px) {
  :root {
    --woo-page-gutter: 16px;
    --woo-grid-gap: 16px;
    --woo-card-padding: 16px;
    --woo-font-body: 15px;
    --woo-line-body: 23px;
  }
  .woo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .woo-col-12, .woo-col-8, .woo-col-6, .woo-col-4, .woo-col-3 { grid-column: 1 / -1; }
  .woo-display { font-size: 32px; line-height: 40px; }
  .woo-ui h1, .woo-h1 { font-size: 24px; line-height: 32px; font-weight: 700; }
  .woo-ui h2, .woo-h2 { font-size: 20px; line-height: 28px; }
  .woo-ui h3, .woo-h3 { font-size: 17px; line-height: 24px; }
  .woo-btn { min-height: 44px; padding-inline: 20px; border-radius: 12px; }
  .woo-input, .woo-select { min-height: 44px; border-radius: 12px; }
  .woo-app-body { grid-template-columns: 1fr; }
  .woo-sidebar { display: none; }
  .woo-content { padding: 20px 16px calc(56px + 34px + 16px); }
  .woo-platform-logo { height: 24px; }
}

/* Touch display mode */
[data-platform="touch"] {
  --woo-page-gutter: 48px;
  --woo-grid-gap: 32px;
  --woo-card-padding: 32px;
  --woo-table-row-height: 72px;
  --woo-radius-md: 16px;
  --woo-radius-lg: 16px;
}
[data-platform="touch"] .woo-btn { min-width: 88px; min-height: 64px; padding-inline: 40px; border-radius: 16px; font-size: 20px; }
[data-platform="touch"] .woo-btn.woo-touch-primary { min-height: 120px; }
[data-platform="touch"] .woo-input, [data-platform="touch"] .woo-select { min-height: 64px; font-size: 20px; border-radius: 16px; }
[data-platform="touch"] .woo-nav-item { min-height: 88px; font-size: 20px; }
[data-platform="touch"] .woo-ai-star { width: 40px; height: 40px; }

/* Big screen mode */
[data-platform="big-screen"] {
  --woo-page-gutter: 40px;
  --woo-grid-gap: 24px;
  --woo-card-padding: 28px;
  --woo-font-body: 18px;
  --woo-line-body: 28px;
  --woo-font-caption: 16px;
  --woo-line-caption: 24px;
}
[data-platform="big-screen"] .woo-kpi { font-family: var(--woo-font-number); font-size: clamp(56px, 4vw, 96px); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .woo-ai-loading .woo-ai-star { opacity: 1; transform: none; }
}

/* Teacher workbench */

/* WooEdu V2.3 presentation layer for the existing teacher workspace. */
.woo-ui {
  --workspace-bg: var(--woo-bg-base, #F7F9FC);
  --workspace-surface: var(--woo-bg-surface, #FFFFFF);
  --workspace-surface-2: var(--woo-bg-surface-2, #EEF4FA);
  --workspace-border: var(--woo-border-base, #E1E7EF);
  --workspace-text: var(--woo-text-primary, #2E3A4B);
  --workspace-muted: var(--woo-text-secondary, #6B7788);
  --workspace-brand: var(--woo-brand-primary, #3476D9);
  min-height: 100%;
  color: var(--workspace-text);
  background: var(--workspace-bg);
  font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

.woo-ui,
.woo-ui * { letter-spacing: 0; }
.woo-ui :where(h1) { font-size: 32px; line-height: 40px; }
.woo-ui :where(h2) { font-size: 24px; line-height: 32px; }
.woo-ui :where(h3) { font-size: 20px; line-height: 28px; }
.woo-ui h1 { font-family: "HarmonyOS Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif; }
.woo-ui .main h1 { font-size: 32px; line-height: 40px; }
.woo-ui .main h2 { font-size: 24px; line-height: 32px; }
.woo-ui :where(button, input, select, textarea) { font: inherit; }
.woo-ui :where(button) { min-height: 40px; cursor: pointer; }
.woo-ui :where(input, select, textarea) {
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  background: var(--workspace-surface);
  color: var(--workspace-text);
}
.woo-ui :where(.card, .soft, .panel, .dialog, .experience-record, .demo-card) {
  border: 1px solid var(--workspace-border);
  border-radius: 8px !important;
  box-shadow: none;
}
.woo-ui :where(.muted, .status, .subtitle, .navlabel) { color: var(--workspace-muted); }
.woo-ui :where(progress) { accent-color: var(--workspace-brand); }

.woo-ui.workbench-ui header {
  background: var(--workspace-surface);
  border-bottom-color: var(--workspace-border);
}
.woo-ui.workbench-ui header a { color: var(--workspace-text); }
.woo-ui.workbench-ui .layout { gap: 16px; }
.woo-ui.workbench-ui nav {
  padding: 12px;
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  background: var(--workspace-surface);
}
.woo-ui.workbench-ui nav a {
  min-height: 44px;
  border-left: 0;
  border-radius: 8px;
  color: var(--workspace-muted);
}
.woo-ui.workbench-ui nav a:hover,
.woo-ui.workbench-ui nav a[aria-current="page"] {
  background: var(--woo-primary-50, #F0F7FF);
  color: var(--workspace-brand);
}
.woo-ui.workbench-ui table { color: var(--workspace-text); }
.woo-ui.workbench-ui th,
.woo-ui.workbench-ui td { border-bottom-color: var(--workspace-border); }
.woo-ui.workbench-ui pre { background: var(--workspace-surface-2); color: var(--workspace-text); }
.woo-ui.workbench-ui #toast { background: var(--workspace-brand); border-radius: 8px; }

.woo-ui.report-ui { min-height: 100vh; padding: 32px 16px; }
.woo-ui.report-ui main {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  background: var(--workspace-surface);
}
.woo-ui.report-ui pre { white-space: pre-wrap; overflow-wrap: anywhere; }

.woo-ui.legacy-ui { background: var(--workspace-bg); color: var(--workspace-text); }
.woo-ui.legacy-ui .intro,
.woo-ui.legacy-ui .outline,
.woo-ui.legacy-ui .graph,
.woo-ui.legacy-ui .feature,
.woo-ui.legacy-ui .work-panel,
.woo-ui.legacy-ui .experience-record,
.woo-ui.legacy-ui .nav-drawer,
.woo-ui.legacy-ui .nav-entry,
.woo-ui.legacy-ui .ppt-card,
.woo-ui.legacy-ui .activity-box,
.woo-ui.legacy-ui .avatar-shell {
  border-color: var(--workspace-border);
  border-radius: 8px;
  background: var(--workspace-surface);
  box-shadow: none;
}
.woo-ui.legacy-ui :where(.headline, .workspace-header h1, .work-content h2, .nav-entry h3) { color: var(--workspace-text); }
.woo-ui.legacy-ui .headline { font-size: 40px; line-height: 1.25; }
.woo-ui.legacy-ui .workspace-header h1 { font-size: 32px; line-height: 40px; }
.woo-ui.legacy-ui .work-content h2 { font-size: 24px; line-height: 32px; }
.woo-ui.legacy-ui .work-content h3 { font-size: 20px; line-height: 28px; }
.woo-ui.legacy-ui :where(.intro p, .work-content p, .work-content li, .experience-record p, .nav-entry p) { color: var(--workspace-muted); }
.woo-ui.legacy-ui :where(.primary, .nav-button.active) { background: var(--workspace-brand); border-color: var(--workspace-brand); color: #fff; }
.woo-ui.legacy-ui :where(.work-tool, .back-home, .avatar-bar) { border-radius: 8px; background: var(--workspace-surface-2); color: var(--workspace-text); }
.woo-ui.legacy-ui .nav-entry { background: var(--workspace-surface); }
.woo-ui.legacy-ui .lesson-tags span { background: var(--workspace-surface-2); color: var(--workspace-muted); }
.woo-ui.legacy-ui .timeline-item { border-left-color: var(--workspace-border); }
.woo-ui.legacy-ui .timeline-item::before { background: var(--workspace-brand); box-shadow: 0 0 0 4px var(--workspace-surface-2); }
.woo-ui.legacy-ui :where(.skeleton-line) { background: var(--workspace-surface-2); }

.woo-ui.analysis-ui { background: var(--workspace-bg); color: var(--workspace-text); }
.woo-ui.analysis-ui .sidebar { background: var(--workspace-surface); border-right-color: var(--workspace-border); }
.woo-ui.analysis-ui .navitem { color: var(--workspace-muted); border-radius: 8px; }
.woo-ui.analysis-ui .navitem.active,
.woo-ui.analysis-ui .navitem:hover { background: var(--woo-primary-50, #F0F7FF); color: var(--workspace-brand); }
.woo-ui.analysis-ui .ink { background: var(--workspace-brand); border-color: var(--workspace-brand); color: #fff; }
.woo-ui.analysis-ui .soft,
.woo-ui.analysis-ui .ai-summary { background: var(--workspace-surface) !important; border-color: var(--workspace-border); }
.woo-ui.analysis-ui .main h1,
.woo-ui.analysis-ui .main h2,
.woo-ui.analysis-ui .main h3,
.woo-ui.analysis-ui .main article > p:nth-child(2) { color: var(--workspace-text); }
.woo-ui.analysis-ui .recommendation { border-bottom-color: var(--workspace-border); }
.woo-ui.analysis-ui .dialog { color: var(--workspace-text); background: var(--workspace-surface); }
.woo-ui.analysis-ui .dialog::backdrop { background: #2E3A4B66; }

@media (max-width: 760px) {
  .woo-ui :where(button) { min-height: 44px; }
  .woo-ui.report-ui main { padding: 16px; }
}

.woo-ui button,
.woo-ui input,
.woo-ui select,
.woo-ui textarea {
  font-family: inherit;
  letter-spacing: 0;
}

.woo-ui :focus-visible {
  outline: 2px solid var(--woo-focus-ring, #5F94E5);
  outline-offset: 2px;
}

.woo-ui > div:first-child > header,
.woo-ui.workspace-open > div:first-child > header {
  height: 56px !important;
  border-bottom: 1px solid var(--workspace-border);
}

.woo-ui > div:first-child > header > div:first-child > a:first-child {
  border-color: var(--workspace-border);
  border-radius: 8px;
  background: var(--workspace-surface);
}

.woo-ui nav[aria-label="主导航"] a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--workspace-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.woo-ui nav[aria-label="主导航"] a:hover,
.woo-ui nav[aria-label="主导航"] a[aria-current="page"] {
  color: var(--workspace-brand);
}

.woo-ui nav[aria-label="主导航"] a[aria-current="page"] {
  border-bottom-color: var(--workspace-brand);
}

.woo-ui .bento { gap: 16px; }
.woo-ui .tile,
.woo-ui .work-panel,
.woo-ui .experience-record,
.woo-ui .ppt-card,
.woo-ui .activity-box,
.woo-ui .avatar-shell,
.woo-ui .drawer,
.woo-ui .nav-drawer,
.woo-ui .nav-entry {
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  box-shadow: none;
}

.woo-ui .intro { background: var(--workspace-surface); }
.woo-ui .graph { background: var(--workspace-surface-2); }
.woo-ui .outline { background: var(--workspace-surface-2); }
.woo-ui .headline { color: var(--workspace-text); font-size: 34px; line-height: 1.35; }
.woo-ui .feature:hover { border-color: var(--woo-primary-300, #8CB6EF); background: var(--workspace-surface); }
.woo-ui .lesson-tags span { border-radius: 4px; background: var(--workspace-surface-2); color: var(--workspace-muted); }

.woo-ui .workspace-header h1,
.woo-ui .work-content h2 { color: var(--workspace-text); }

.woo-ui .work-side {
  border-radius: 8px;
  background: var(--workspace-surface);
}

.woo-ui .course-context {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.woo-ui .course-context label {
  display: grid;
  gap: 5px;
  color: var(--workspace-muted);
  font-size: 12px;
  line-height: 1.4;
}

.woo-ui .course-context select {
  min-width: 132px;
  min-height: 40px;
  padding: 0 32px 0 12px;
  border: 1px solid var(--workspace-border);
  border-radius: 6px;
  background: var(--workspace-surface);
  color: var(--workspace-text);
  font-size: 13px;
}

.woo-ui .course-context-summary {
  display: block;
  margin: 14px 0 0;
  color: var(--workspace-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.woo-ui .course-context-lesson {
  display: block;
  margin-top: 4px;
  color: var(--workspace-muted);
  font-size: 11px;
  line-height: 1.6;
}

.woo-ui .prep-module-nav {
  display: grid;
  gap: 3px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid var(--workspace-border);
}

.woo-ui .prep-module-button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--workspace-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: left;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.woo-ui .prep-module-button:hover,
.woo-ui .prep-module-button[aria-current="true"] {
  border-color: var(--woo-primary-100, #DCEBFF);
  background: var(--woo-primary-50, #F0F7FF);
  color: var(--workspace-brand);
}

.woo-ui .prep-module-button[aria-current="true"] { font-weight: 600; }

body.workspace-open .work-side { min-height: 0; overflow-y: auto; }

.woo-ui .work-tab {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--workspace-muted);
}

.woo-ui .work-tab:hover,
.woo-ui .work-tab[aria-selected="true"] {
  border-color: var(--woo-primary-100, #DCEBFF);
  background: var(--woo-primary-50, #F0F7FF);
  color: var(--workspace-brand);
}

.woo-ui .work-content,
.woo-ui .work-tools { background: var(--workspace-surface); }
.woo-ui .work-content p,
.woo-ui .work-content li,
.woo-ui .work-tool-note { color: var(--workspace-muted); }

.woo-ui .work-tool,
.woo-ui .back-home,
.woo-ui .button,
.woo-ui .button.primary,
.woo-ui .button.danger,
.woo-ui .nav-button,
.woo-ui .student-share-drawer,
.woo-ui .student-share-layer,
.woo-ui .button-row button {
  border-radius: 8px;
}

.woo-ui .work-tool,
.woo-ui .back-home,
.woo-ui .button {
  border: 1px solid var(--workspace-border);
  background: var(--workspace-surface-2);
  color: var(--workspace-text);
}

.woo-ui .button.primary,
.woo-ui .work-tool.primary,
.woo-ui .nav-button.active {
  border-color: var(--workspace-brand);
  background: var(--workspace-brand);
  color: #fff;
}

.woo-ui input,
.woo-ui select,
.woo-ui textarea {
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  background: var(--workspace-surface);
  color: var(--workspace-text);
}

.woo-ui .card {
  border: 1px solid var(--workspace-border);
  border-radius: 8px;
  background: var(--workspace-surface);
  box-shadow: none;
}

.woo-ui .slide,
.woo-ui .summary,
.woo-ui .group-list,
.woo-ui .knowledge-row,
.woo-ui .activity-box {
  border-radius: 8px;
}

.woo-ui .slide,
.woo-ui .activity-box { background: var(--workspace-surface-2); }
.woo-ui .summary { background: var(--woo-primary-50, #F0F7FF); color: var(--workspace-text); }
.woo-ui .fill { background: var(--workspace-brand); }

.woo-ui .navigation { gap: 4px; }
.woo-ui .nav-button {
  min-height: 44px;
  border: 1px solid transparent;
  color: var(--workspace-muted);
}

.woo-ui .nav-button:hover,
.woo-ui .nav-button.active {
  border-color: var(--woo-primary-100, #DCEBFF);
  background: var(--woo-primary-50, #F0F7FF);
  color: var(--workspace-brand);
}

.woo-ui .nav-button.active { font-weight: 600; }

@media (max-width: 760px) {
  .woo-ui .headline { font-size: 30px; }
  .woo-ui .course-context { width: 100%; }
  .woo-ui .course-context label { flex: 1 1 140px; }
  .woo-ui .course-context select { width: 100%; }
}

/* Align the legacy workspace shell with the WooEdu v2.3 platform frame. */
.woo-ui.legacy-ui {
  font-family: var(--woo-font-sans-cn);
  font-size: var(--woo-font-body);
  line-height: var(--woo-line-body);
  background: var(--woo-bg-base);
}

.woo-ui.legacy-ui > div:first-child {
  width: min(100%, calc(var(--woo-container-max-wide) + 96px));
  margin-inline: auto;
}

.woo-ui.legacy-ui > div:first-child > header {
  height: var(--woo-platform-bar-height) !important;
  min-height: var(--woo-platform-bar-height);
  border-bottom: 1px solid var(--woo-border-base);
}

.woo-ui .woo-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.woo-ui .woo-brand-lockup > a {
  color: var(--woo-text-primary);
  text-decoration: none;
}

.woo-ui .woo-brand-divider {
  width: 1px;
  height: 20px;
  background: var(--woo-border-base);
}

.woo-ui .woo-brand-context {
  color: var(--woo-text-secondary);
  font-size: var(--woo-font-caption);
  line-height: var(--woo-line-caption);
}

.woo-ui.legacy-ui .bento {
  gap: 24px;
}

.woo-ui.legacy-ui .tile,
.woo-ui.legacy-ui .work-panel,
.woo-ui.legacy-ui .experience-record,
.woo-ui.legacy-ui .ppt-card,
.woo-ui.legacy-ui .activity-box,
.woo-ui.legacy-ui .avatar-shell,
.woo-ui.legacy-ui .drawer,
.woo-ui.legacy-ui .nav-drawer,
.woo-ui.legacy-ui .nav-entry {
  border-color: var(--woo-border-base);
  border-radius: var(--woo-radius-md);
  background: var(--woo-bg-surface);
  box-shadow: none;
}

.woo-ui.legacy-ui .intro {
  padding: 32px;
}

.woo-ui.legacy-ui .headline {
  max-width: 10em;
  color: var(--woo-text-primary);
  font-size: var(--woo-font-display);
  font-weight: var(--woo-font-weight-bold);
  line-height: var(--woo-line-display);
}

.woo-ui.legacy-ui .headline span {
  white-space: normal;
}

.woo-ui.legacy-ui .graph,
.woo-ui.legacy-ui .outline,
.woo-ui.legacy-ui .ppt-card,
.woo-ui.legacy-ui .activity-box,
.woo-ui.legacy-ui .work-tools {
  background: var(--woo-bg-surface-2);
}

.woo-ui.legacy-ui .outline article {
  border-color: var(--woo-border-base);
  border-radius: var(--woo-radius-md);
  background: var(--woo-bg-surface);
  box-shadow: none;
}

.woo-ui.legacy-ui .feature {
  min-height: 88px;
  border-color: var(--woo-border-base);
  background: var(--woo-bg-surface);
  color: var(--woo-text-primary);
  text-decoration: none;
}

.woo-ui.legacy-ui .feature i {
  color: var(--woo-brand-primary);
}

.woo-ui.legacy-ui .feature:hover {
  border-color: var(--woo-primary-300);
  background: var(--woo-primary-50);
}

.woo-ui.legacy-ui #startLesson,
.woo-ui.legacy-ui #enterStudio,
.woo-ui.legacy-ui .button.primary,
.woo-ui.legacy-ui .work-tool.primary {
  border: 1px solid var(--woo-brand-primary);
  border-radius: var(--woo-radius-md);
  background: var(--woo-brand-primary);
  color: #fff;
  box-shadow: none;
}

.woo-ui.legacy-ui #startLesson:hover,
.woo-ui.legacy-ui #enterStudio:hover,
.woo-ui.legacy-ui .button.primary:hover,
.woo-ui.legacy-ui .work-tool.primary:hover {
  border-color: var(--woo-brand-primary-hover);
  background: var(--woo-brand-primary-hover);
}

.woo-ui.legacy-ui #browseExperience,
.woo-ui.legacy-ui .back-home,
.woo-ui.legacy-ui .work-tool,
.woo-ui.legacy-ui .button,
.woo-ui.legacy-ui .nav-button {
  min-height: 40px;
  border: 1px solid var(--woo-border-base);
  border-radius: var(--woo-radius-md);
  background: var(--woo-bg-surface);
  color: var(--woo-text-primary);
  box-shadow: none;
}

.woo-ui.legacy-ui #browseExperience:hover,
.woo-ui.legacy-ui .back-home:hover,
.woo-ui.legacy-ui .work-tool:hover,
.woo-ui.legacy-ui .button:hover,
.woo-ui.legacy-ui .nav-button:hover {
  border-color: var(--woo-primary-200);
  background: var(--woo-primary-50);
  color: var(--woo-brand-primary);
}

.woo-ui.legacy-ui .workspace {
  grid-template-columns: var(--woo-sidebar-width) minmax(0, 1fr) 240px;
  gap: var(--woo-grid-gap);
}

.woo-ui.legacy-ui .workspace.feedback-mode {
  grid-template-columns: var(--woo-sidebar-width) minmax(0, 1fr);
}

.woo-ui.legacy-ui .work-side,
.woo-ui.legacy-ui .work-tools {
  padding: 20px;
}

.woo-ui.legacy-ui .work-content {
  padding: 24px;
}

.woo-ui.legacy-ui .work-content h2,
.woo-ui.legacy-ui .workspace-header h1 {
  color: var(--woo-text-primary);
}

.woo-ui.legacy-ui .work-content h3 {
  color: var(--woo-text-primary);
  font-size: var(--woo-font-h3);
  line-height: var(--woo-line-h3);
}

.woo-ui.legacy-ui :where(input, select, textarea) {
  min-height: 40px;
  border-color: var(--woo-border-base);
  border-radius: var(--woo-radius-sm);
  background: var(--woo-bg-surface);
  color: var(--woo-text-primary);
}

.woo-ui.legacy-ui textarea {
  min-height: 120px;
}

.woo-ui.legacy-ui .work-tab[aria-selected="true"],
.woo-ui.legacy-ui .prep-module-button[aria-current="true"] {
  border-color: var(--woo-primary-100);
  border-radius: var(--woo-radius-sm);
  background: var(--woo-primary-50);
  color: var(--woo-brand-primary);
}

.woo-ui.legacy-ui .work-toast {
  border-radius: var(--woo-radius-md);
  background: var(--woo-neutral-800);
  box-shadow: var(--woo-shadow-md);
}

.woo-ui.legacy-ui .nav-drawer {
  top: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--woo-border-base);
  background: var(--woo-bg-surface);
}

@media (max-width: 1050px) {
  .woo-ui.legacy-ui .workspace,
  .woo-ui.legacy-ui .workspace.feedback-mode {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .woo-ui .woo-brand-context,
  .woo-ui .woo-brand-divider {
    display: none;
  }

  .woo-ui.legacy-ui .bento {
    gap: 16px;
  }

  .woo-ui.legacy-ui .intro {
    padding: 24px 20px;
  }

  .woo-ui.legacy-ui .headline {
    font-size: 30px;
    line-height: 38px;
  }

  .woo-ui.legacy-ui .workspace,
  .woo-ui.legacy-ui .workspace.feedback-mode {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

/* Page layout */

* { box-sizing: border-box; letter-spacing: 0 !important; }
    body { margin: 0; color: #334155; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif; background: linear-gradient(145deg,#f8fafc,#f1f5f9); }
    button,input,select { font: inherit; }
    body.workspace-open { height:100dvh; overflow:hidden; background:#f5f7fa; }
    body.workspace-open > div:first-child { max-width:none; height:100%; padding:0 24px 16px; display:flex; flex-direction:column; }
    body.workspace-open > div:first-child > header { height:72px; flex-shrink:0; }
    body.workspace-open > div:first-child > footer { display:none; }
    body.workspace-open #workspace { flex:1; min-height:0; display:flex; flex-direction:column; }
    body.workspace-open .workspace-header { margin:0 0 14px; flex-shrink:0; }
    body.workspace-open .workspace-header h1 { font-size:22px; margin-top:4px; }
    body.workspace-open .workspace { flex:1; min-height:0; align-items:stretch; gap:18px; }
    body.workspace-open .work-side { padding:20px; background:#fff; }
    body.workspace-open .work-content { min-height:0; height:100%; background:transparent; border:0; }
    body.workspace-open .feedback-frame { height:100%!important; }
    body.workspace-open.feedback-full { height:auto; min-height:100dvh; overflow-y:auto; overflow-x:hidden; }
    body.workspace-open.feedback-full > div:first-child { height:auto; min-height:100dvh; }
    body.workspace-open.feedback-full #workspace { flex:none; }
    body.workspace-open.feedback-full .workspace { flex:none; min-height:0; align-items:start; }
    body.workspace-open.feedback-full .work-content { height:auto; min-height:0; overflow:visible; }
    body.workspace-open.feedback-full .feedback-frame { height:1100px!important; min-height:1100px; }
    body.workspace-open .work-tab { padding:10px 13px; }
    @media(max-height:760px) {
      body.workspace-open > div:first-child > header { height:58px; }
      body.workspace-open .work-side { padding:16px; }
      body.workspace-open .work-side nav { margin-top:16px!important; }
    }
    button,a { -webkit-tap-highlight-color: transparent; }
    button { cursor: pointer; }
    .serif { font-family: "Noto Serif SC","Source Han Serif SC","Songti SC","SimSun",serif; }
    .bento { display: grid; grid-template-columns: 1.12fr 1fr .8fr; grid-template-areas: "intro graph graph" "outline outline features"; gap: 18px; }
    .tile { border: 1px solid rgba(203,213,225,.58); border-radius: 24px; overflow: hidden; }
    .intro { grid-area: intro; min-width: 0; padding: 38px 32px; background: rgba(255,255,255,.5); }
    .graph { grid-area: graph; min-width: 0; position: relative; background: #e9eef2; height: 442px; }
    .outline { grid-area: outline; padding: 28px; background: rgba(241,245,249,.6); }
    .features { grid-area: features; display: grid; grid-template-rows:1fr 1fr; gap: 16px; }
    .features > .feature { min-height:140px; align-items:center; }
    .headline { font-size: 38px; font-weight: 800; line-height: 1.45; color: #1e293b; }
    .headline span { display: block; white-space: nowrap; }
    .step { position: relative; min-width: 0; padding-top: 48px; }
    .step-number { position: absolute; top: -12px; left: 8px; font-size: 96px; line-height: 1; color: #dce3ea; font-weight: 300; }
    .feature { transition: border-color .2s,background .2s; }
    .feature:hover { border-color: #94a3b8; background: rgba(255,255,255,.85); }
    .drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px,100%); z-index: 30; padding: 28px; background: rgba(255,255,255,.91); backdrop-filter: blur(18px); border-left: 1px solid #d7dfe6; box-shadow: -12px 0 40px #3341550c; transform: translateX(105%); visibility: hidden; transition: transform .35s,visibility .35s; overflow-y: auto; }
    .drawer.open { transform: translateX(0); visibility: visible; }
    [hidden] { display:none!important; }
    .lesson-tags { display:flex; flex-wrap:wrap; gap:6px; margin-top:14px; }
    .lesson-tags span { padding:4px 7px; border-radius:6px; background:#f1f5f9; font-size:10px; color:#64748b; }
    .experience-list { display:grid; gap:16px; max-width:1000px; margin:24px auto; }
    .experience-record { padding:28px; border:1px solid #dce3ea; border-radius:24px; background:#ffffffa8; }
    .experience-record h2 { margin:12px 0; font-size:20px; }
    .experience-record p { color:#64748b; font-size:13px; line-height:1.9; }
    nav[aria-label="主导航"] a { cursor:pointer; }
    nav[aria-label="主导航"] a[aria-current="page"] { color:#253443; font-weight:600; }
    .nav-mask { position:fixed; inset:0; z-index:60; background:#25344320; backdrop-filter:blur(5px); opacity:0; visibility:hidden; transition:opacity .3s,visibility .3s; }
    .nav-mask.open { opacity:1; visibility:visible; }
    .nav-drawer { position:fixed; top:16px; right:16px; bottom:16px; width:min(420px,calc(100% - 32px)); z-index:61; padding:30px; border:1px solid #ffffffbb; border-radius:24px; background:#ffffffeb; backdrop-filter:blur(20px); box-shadow:-12px 0 40px #3341550c; overflow-y:auto; transform:translateX(calc(100% + 32px)); visibility:hidden; transition:transform .35s,visibility .35s; }
    .nav-drawer.open { transform:translateX(0); visibility:visible; }
    .nav-entry { margin-top:16px; padding:20px; border:1px solid #dce3ea; border-radius:16px; background:#ffffff85; }
    .nav-entry h3 { font-size:14px; font-weight:600; color:#334155; }
    .nav-entry p { margin-top:10px; font-size:12px; line-height:1.9; color:#64748b; }
    .nav-connection { margin:12px 0 -4px 20px; border-left:1px solid #b8c6d4; padding:8px 16px; color:#8190a0; font-size:11px; }
    .view { transition: opacity .28s ease, transform .28s ease; }
    .view-leaving { opacity: 0; transform: translateY(8px); }
    .workspace { display: grid; grid-template-columns: 220px minmax(0,1fr) 240px; gap: 18px; align-items: start; }
    .work-panel { border: 1px solid rgba(203,213,225,.7); border-radius: 22px; background: rgba(255,255,255,.72); }
    .work-side,.work-tools { padding: 22px; }
    .work-tab { width: 100%; text-align: left; padding: 12px 13px; margin-top: 5px; border-radius: 12px; color: #64748b; background: transparent; transition: background .2s,color .2s; }
    .work-tab:hover,.work-tab[aria-selected="true"] { color: #253443; background: #e9eef3; }
    .workspace.feedback-mode { grid-template-columns:220px minmax(0,1fr); }
    .workspace.feedback-mode .work-tools { display:none; }
    .workspace.feedback-mode .work-content { padding:0;overflow:hidden; }
    .feedback-frame { display:block;width:100%;height:1250px;border:0;background:transparent; }
    @media(max-width:700px) { .workspace.feedback-mode { grid-template-columns:minmax(0,1fr); } .feedback-frame { height:1500px; } }
    .work-content { min-height: 600px; padding: clamp(22px,4vw,42px); }
    .work-content h2 { font-size: 25px; font-weight: 600; color: #253443; }
    .work-content h3 { margin: 28px 0 13px; font-size: 15px; color: #334155; }
    .work-content p,.work-content li { color: #64748b; font-size: 13px; line-height: 1.9; }
    .work-content ol { padding-left: 20px; }
    .work-meta { margin: 10px 0 24px; padding-bottom: 18px; color: #94a3b8; border-bottom: 1px solid #e2e8f0; font-size: 12px; }
    .timeline-item { border-left: 1px solid #d8e1e9; margin-left: 5px; padding: 0 0 23px 23px; position: relative; }
    .timeline-item:last-child { padding-bottom: 0; }
    .timeline-item:before { content:""; position:absolute; left:-5px; top:4px; width:8px; height:8px; border-radius:50%; background:#71879c; box-shadow:0 0 0 4px #edf2f6; }
    .timeline-item small,.ppt-card small { color:#94a3b8; font-size:11px; }
    .timeline-item h4 { margin:8px 0; font-size:14px; }
    .work-tool { display:block; width:100%; margin-top:9px; padding:12px; text-align:left; border:1px solid #e2e8f0; border-radius:12px; background:#ffffffa8; color:#475569; font-size:12px; transition:background .2s,border-color .2s; }
    .work-tool:hover { background:white; border-color:#aebdca; }
    .ppt-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:24px; }
    .ppt-card { min-height:145px; padding:19px; border:1px solid #e2e8f0; border-radius:16px; background:linear-gradient(145deg,#fff,#f4f7fa); }
    .ppt-card h3 { margin:13px 0 8px; }
    .activity-box { margin-top:14px; padding:17px; border:1px solid #e2e8f0; border-radius:15px; background:#ffffffaa; }
    .skeleton-line { height:13px; margin:16px 0; border-radius:8px; background:linear-gradient(90deg,#e8edf2,#f7f9fb,#e8edf2); background-size:200% 100%; animation:shimmer 1.2s linear infinite; }
    .skeleton-line.title { height:29px; width:62%; margin-top:27px; }
    @keyframes shimmer { to { background-position:-200% 0; } }
    .workspace-header { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:8px 0 20px; }
    .workspace-header h1 { margin-top:10px; font-size:28px; font-weight:600; }
    .work-loading { color:#94a3b8; font-size:12px; }
    .work-tool-note { margin-top:15px; color:#94a3b8; font-size:11px; line-height:1.8; }
    .back-home { border:1px solid #d7e0e8; border-radius:999px; padding:9px 14px; color:#526477; background:#ffffff82; font-size:12px; }
    .work-toast { position:fixed; z-index:80; bottom:24px; left:50%; transform:translateX(-50%); padding:12px 18px; border-radius:12px; background:#253443; color:#fff; font-size:12px; box-shadow:0 8px 28px #25344325; }
    :focus-visible { outline: 2px solid #647d98; outline-offset: 4px; }
    /* AI 数字人：备课栏目内的转载页面容器 */
    .avatar-shell { margin-top: 4px; border: 1px solid #dde5ee; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 8px 28px #33415512; }
    .avatar-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid #e8eef4; background:linear-gradient(180deg,#fbfdff,#f4f8fc); }
    .avatar-bar h3 { margin:0; font-size:13px; font-weight:600; color:#334155; }
    .avatar-bar p { margin:2px 0 0; font-size:11px; color:#94a3b8; }
    .avatar-shell iframe { display:block; width:100%; height:min(76vh,760px); border:0; background:#fff; }
    .avatar-note { margin:12px 0 0; color:#94a3b8; font-size:11px; line-height:1.8; }
    @media(max-width:1100px) { .bento { grid-template-columns: 1fr 1.15fr; grid-template-areas:"intro graph" "outline outline" "features features"; } .features { grid-template-columns:repeat(3,minmax(0,1fr)); } .intro { padding:32px 24px; } .headline { font-size:32px; } }
    @media(max-width:760px) { .bento { grid-template-columns: minmax(0,1fr); grid-template-areas:"intro" "graph" "outline" "features"; } .features { grid-template-columns:1fr; } .headline { font-size:30px; } .intro { padding:30px 22px; } .graph { height:400px; } }
    @media(max-width:1050px) { .workspace { grid-template-columns:190px minmax(0,1fr); } .work-tools { grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; } .work-tools h2,.work-tool-note { grid-column:1/-1; } .work-tool { margin-top:0; } }
    @media(max-width:700px) { .workspace { grid-template-columns:minmax(0,1fr); } .work-side { padding:14px; } .work-side .work-tab { width:auto; display:inline-block; margin:4px 3px 0 0; } .work-tools { grid-column:auto; } .work-content { min-height:420px; } .workspace-header { align-items:flex-start; flex-direction:column; } }
    @media(max-width:370px) { .headline { font-size:25px; } }
    @media(prefers-reduced-motion:reduce) { * { transition:none!important; } }
    /* 评审修改：主页内容在现有模板内铺满视口，不改变组件结构。 */
    body:not(.workspace-open) > div:first-child { width:100%; max-width:none; padding-left:clamp(20px,3vw,52px); padding-right:clamp(20px,3vw,52px); }
    body:not(.workspace-open) #studio { width:100%; min-height:calc(100vh - 132px); }
    .course-searches { display:flex; align-items:flex-end; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
    .course-searches label { display:grid; gap:6px; color:#64748b; font-size:12px; }
    .course-searches input { width:190px; min-height:40px; border:1px solid #d9e2ec; border-radius:8px; background:#fff; padding:9px 12px; color:#334155; outline:none; }
    .course-searches input:focus { border-color:#6f92b3; box-shadow:0 0 0 3px #6f92b31c; }
    @media(max-width:700px) { .course-searches { justify-content:flex-start; width:100%; } .course-searches label,.course-searches input { width:100%; } }
    .prep-module-nav { display:flex; flex-direction:column; gap:8px; }
    .prep-module-nav .prep-module-button { width:100%; min-height:42px; text-align:left; white-space:normal; padding:10px 12px; border-radius:6px; }
    .prep-module-nav .prep-module-button[aria-current="step"] { background:#e8eef4; color:#183d55; font-weight:600; }
    @media(max-width:700px) {
      body.workspace-open .work-content { min-height:850px; }
      body.workspace-open .feedback-frame { min-height:850px; }
    }

/* Experience drawer */

.expert-overlay{position:fixed;inset:0;z-index:10050;visibility:hidden;pointer-events:none;transition:visibility .28s}
.expert-overlay.is-open{visibility:visible;pointer-events:auto}
.expert-mask{position:absolute;inset:0;background:rgba(15,23,42,.42);opacity:0;transition:opacity .28s}
.expert-overlay.is-open .expert-mask{opacity:1}
.expert-drawer{position:absolute;right:0;top:0;width:min(720px,52vw);height:100dvh;display:flex;flex-direction:column;background:#f5f7fa;box-shadow:-12px 0 40px #14243d18;transform:translateX(100%);transition:transform .28s ease;letter-spacing:0;color:#183d55;font-family:inherit}
.expert-overlay.is-open .expert-drawer{transform:translateX(0)}
.expert-header{flex:none;padding:32px 32px 22px;background:#fff;border-bottom:1px solid #e5eaf0}
.expert-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.expert-heading h2{font-size:26px;line-height:1.4;font-weight:700;margin:0}
.expert-header p{font-size:14px;line-height:1.7;color:#718096;margin:8px 0 0}
.expert-close{width:36px;height:36px;border:1px solid #e1e7ef;border-radius:6px;background:#fff;display:grid;place-items:center;cursor:pointer;flex:none}
.expert-close svg,.expert-search svg,.expert-stats svg{width:18px;height:18px}
.expert-filters{padding:22px 32px 18px;background:#fff;flex:none}
.expert-search{display:flex;align-items:center;gap:10px;border:1px solid #dce4ee;background:#f8fafc;padding:10px 14px;border-radius:6px;color:#8290a3}
.expert-search:focus-within{outline:2px solid #91b6f6;outline-offset:2px}
.expert-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:14px;color:#183d55}
.expert-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.expert-tags button{font:inherit;font-size:12px;border:1px solid #e1e7ef;border-radius:5px;background:#fff;color:#64748b;padding:7px 10px;cursor:pointer}
.expert-tags button[aria-pressed=true]{color:#2466cc;background:#edf4ff;border-color:#b9d2fb}
.expert-count{margin:14px 0 0;font-size:12px;color:#8290a3}
.expert-list{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:22px 32px 32px;display:flex;flex-direction:column;gap:16px}
.expert-card{background:#fff;border:1px solid #e5eaf0;border-radius:8px;box-shadow:0 2px 8px #183d5506;padding:20px;flex:none}
.expert-card-body{display:grid;grid-template-columns:100px minmax(0,1fr);gap:20px}
.expert-author img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#e8eef7}
.expert-author strong{display:block;font-size:14px;margin-top:10px}
.expert-author p{font-size:11px;line-height:1.6;color:#8290a3;margin:4px 0 0}
.expert-copy h3{font-size:17px;line-height:1.6;font-weight:650;margin:0 0 8px}
.expert-copy p{font-size:13px;line-height:1.8;color:#718096;margin:0}
.expert-keywords{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;font-size:11px;color:#4d7a91}
.expert-stats{display:flex;align-items:center;gap:16px;border-top:1px solid #eff2f6;margin-top:18px;padding-top:12px;font-size:11px;color:#8290a3}
.expert-stats span{display:flex;align-items:center;gap:5px}.expert-stats time{margin-left:auto}
.expert-empty{text-align:center;color:#718096;padding:40px 12px;font-size:14px}
.expert-filters[hidden]{display:none}
.expert-detail-link{border:0;background:transparent;color:#2466a0;font:inherit;font-size:13px;cursor:pointer;padding:6px 0;text-align:left;align-self:flex-start}
.expert-detail{background:#fff;border:1px solid #e5eaf0;border-radius:8px;padding:28px;flex:none}
.expert-detail h3{font-size:23px;line-height:1.6;margin:0 0 12px}
.expert-detail-meta{font-size:13px;color:#718096;line-height:1.8}
.expert-detail-note{border-left:3px solid #b5cbd7;padding:12px;background:#f4f8fa;font-size:12px;line-height:1.8;color:#617487}
.expert-detail section{padding:18px 0;border-bottom:1px solid #edf1f5}
.expert-detail section:last-child{border-bottom:0}
.expert-detail h4{font-size:16px;margin:0 0 10px}
.expert-detail section p{font-size:14px;line-height:1.9;margin:0;color:#52677b;overflow-wrap:anywhere}
.expert-detail a{display:inline-block;margin-top:12px;color:#2466a0;font-size:13px}
.expert-detail-actions{flex:none;padding:0 0 12px}.expert-use{border:0;border-radius:6px;background:#2d5062;color:white;padding:12px 20px;font:inherit;font-size:14px;cursor:pointer}.expert-use:disabled{opacity:.7;cursor:default}.expert-detail-actions p{font-size:13px;line-height:1.8;color:#52677b}

/* Workbench viewport fill: preserve the existing UI while removing dead space. */
html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body.workspace-open {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

body.workspace-open > div:first-child {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}

body.workspace-open > div:first-child > header {
  flex: 0 0 auto;
}

body.workspace-open .platform-shell,
body.workspace-open .platform-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

body.workspace-open #workspace {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

body.workspace-open #workspace.hidden {
  display: none;
}

body.workspace-open .workspace-header {
  flex: 0 0 auto;
}

body.workspace-open .workspace {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  height: auto;
  align-items: stretch;
}

body.workspace-open .work-side,
body.workspace-open .work-content,
body.workspace-open .work-tools {
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
}

body.workspace-open .work-side {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

body.workspace-open .prep-module-nav {
  flex: 1 1 auto;
}

body.workspace-open .work-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

body.workspace-open .feedback-frame,
body.workspace-open #integratedWorkspace {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
  border: 0;
}

@media (max-width: 700px) {
  body.workspace-open {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  body.workspace-open > div:first-child {
    height: auto;
    min-height: 100dvh;
  }

  body.workspace-open .workspace {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 150px);
  }

  body.workspace-open .work-side {
    height: auto;
    min-height: 0;
  }

  body.workspace-open .work-content {
    flex: 1 1 auto;
    min-height: 720px;
  }
}

/* Full-width home composition and consistent enclosed cards. */
body:not(.workspace-open) {
  height: auto !important;
  min-height: 100vh !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body:not(.workspace-open) > div:first-child {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 20px 32px !important;
  overflow: visible !important;
}

body:not(.workspace-open) .platform-shell,
body:not(.workspace-open) .platform-content,
body:not(.workspace-open) #studio {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}

body:not(.workspace-open) #studio.bento {
  margin: 0 !important;
}

.woo-ui .tile,
.woo-ui .feature,
.woo-ui .outline article,
.woo-ui .experience-record,
.woo-ui .ppt-card,
.woo-ui .activity-box,
.woo-ui .avatar-shell {
  box-sizing: border-box;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.045) !important;
}

body:not(.workspace-open) footer {
  box-sizing: border-box;
  width: 100%;
  margin-bottom: 0 !important;
  padding: 10px 2px 0;
  overflow: visible !important;
}

@media (max-width: 700px) {
  body:not(.workspace-open) > div:first-child {
    padding-right: 14px !important;
    padding-left: 14px !important;
  }
}

/* Compact, fully enclosed preparation workspace. */
body.workspace-open .workspace {
  gap: 0;
  flex: 1 1 0;
  min-height: 0;
  height: auto;
  overflow: hidden;
  border: 1px solid #dfe5eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(37, 52, 67, 0.06);
}

body.workspace-open .work-panel {
  box-sizing: border-box;
  min-height: 0;
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.workspace-open .work-side {
  border-right: 1px solid #dfe5eb;
}

body.workspace-open .work-content {
  min-width: 0;
  border-right: 0;
  background: #fff;
}

body.workspace-open .work-content p,
body.workspace-open .work-content li {
  margin-top: 0;
  margin-bottom: 0.55em;
  line-height: 1.55;
}

body.workspace-open .feedback-frame,
body.workspace-open #integratedWorkspace {
  box-sizing: border-box;
  min-height: 0 !important;
  max-height: none !important;
}

@media (max-width: 700px) {
  body.workspace-open .workspace {
    overflow: visible;
  }

  body.workspace-open .work-side {
    border-right: 0;
    border-bottom: 1px solid #dfe5eb;
  }
}
@media(max-width:760px){.expert-drawer{width:100%}.expert-header{padding:24px 20px 18px}.expert-filters{padding:18px 20px}.expert-list{padding:18px 20px}.expert-card{padding:16px}.expert-card-body{grid-template-columns:76px minmax(0,1fr);gap:12px}.expert-heading h2{font-size:23px}}
@media(prefers-reduced-motion:reduce){.expert-overlay,.expert-mask,.expert-drawer{transition:none}}

/* Natural-height workbench: the browser owns vertical scrolling. */
html,
body,
body.workspace-open {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: visible !important;
}

body.workspace-open > div:first-child,
body.workspace-open .platform-shell,
body.workspace-open .platform-content,
body.workspace-open #workspace {
  height: auto !important;
  min-height: 100vh !important;
  overflow: visible !important;
}

body.workspace-open .workspace {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: stretch !important;
  height: auto !important;
  min-height: calc(100vh - 150px) !important;
  overflow: visible !important;
}

body.workspace-open .work-side,
body.workspace-open .work-content,
body.workspace-open .work-tools,
body.workspace-open .work-panel {
  align-self: stretch !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

body.workspace-open .work-side {
  flex: 0 0 220px !important;
  border-right: 1px solid #dfe5eb !important;
}

body.workspace-open .work-content {
  flex: 1 1 auto !important;
}

body.workspace-open .feedback-frame,
body.workspace-open #integratedWorkspace {
  display: block !important;
  width: 100% !important;
  height: auto;
  min-height: 720px;
  max-height: none !important;
  overflow: hidden !important;
  border: 0 !important;
}

@media (max-width: 700px) {
  body.workspace-open .workspace {
    flex-direction: column !important;
  }

  body.workspace-open .work-side {
    flex-basis: auto !important;
    border-right: 0 !important;
    border-bottom: 1px solid #dfe5eb !important;
  }
}
