/* Scoped to the launcher: login, OAuth and native account forms stay unchanged. */
.emb-workspace-active #root { display: none !important; }
#emb-workspace { min-height: 100dvh; background: #f8fafc; color: #1e293b; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; line-height: 1.5; }
#emb-workspace * { box-sizing: border-box; }
#emb-workspace a { text-decoration: none; color: inherit; }
#emb-workspace a:focus-visible, #emb-workspace button:focus-visible, #emb-workspace-return:focus-visible { outline: 3px solid #2563eb; outline-offset: 5px; }
#emb-workspace .ew-header { height: 88px; max-width: 1248px; margin: auto; padding: 0 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid #e2e8f0; }
#emb-workspace .ew-brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 750; letter-spacing: -.5px; white-space: nowrap; }
#emb-workspace .ew-brand img { width: 42px; height: 42px; object-fit: contain; }
#emb-workspace .ew-brand-sub { font-size: 15px; margin-left: 12px; color: #64748b; font-weight: 500; letter-spacing: 0; }
#emb-workspace nav { display: flex; align-items: center; gap: 6px; }
#emb-workspace nav a, #emb-workspace nav button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 8px; background: transparent; color: #475569; font: inherit; font-size: 14px; cursor: pointer; }
#emb-workspace nav a:hover, #emb-workspace nav button:hover { background: #eef2f7; color: #1e293b; }
#emb-workspace .ew-main { max-width: 1248px; margin: auto; padding: 76px 48px 36px; }
#emb-workspace .ew-eyebrow { color: #2563eb; font-size: 13px; font-weight: 650; letter-spacing: 2px; }
#emb-workspace h1 { margin: 14px 0 12px; font-size: clamp(30px, 3.3vw, 44px); line-height: 1.3; font-weight: 700; letter-spacing: -1.4px; overflow-wrap: anywhere; }
#emb-workspace .ew-intro p { margin: 0; color: #64748b; font-size: 16px; }
#emb-workspace .ew-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 60px 0 20px; }
#emb-workspace h2 { margin: 0; font-size: 18px; font-weight: 650; }
#emb-workspace .ew-section-heading > span { font-size: 13px; color: #64748b; }
#emb-workspace .ew-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
#emb-workspace .ew-app { --accent: #2563eb; --tint: #eff6ff; display: flex; flex-direction: column; min-height: 280px; padding: 30px; border: 1px solid #e2e8f0; border-radius: 18px; background: white; box-shadow: 0 3px 8px #0f172a03; transition: border-color .18s, box-shadow .18s, transform .18s; }
#emb-workspace .ew-violet { --accent: #7c3aed; --tint: #f5f3ff; }
#emb-workspace .ew-teal { --accent: #0f766e; --tint: #f0fdfa; }
#emb-workspace .ew-app:hover { border-color: var(--accent); box-shadow: 0 12px 30px #0f172a0a; transform: translateY(-3px); }
#emb-workspace .ew-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 14px; background: var(--tint); color: var(--accent); margin-bottom: 28px; }
#emb-workspace svg { width: 28px; height: 28px; }
#emb-workspace .ew-app-top { display: flex; justify-content: space-between; align-items: center; }
#emb-workspace .ew-app strong { font-size: 27px; letter-spacing: -.5px; font-weight: 700; }
#emb-workspace .ew-arrow { display: flex; color: var(--accent); }
#emb-workspace .ew-arrow svg { width: 22px; height: 22px; }
#emb-workspace .ew-label { font-size: 15px; font-weight: 600; margin: 5px 0 14px; }
#emb-workspace .ew-description { color: #64748b; font-size: 13px; }
#emb-workspace .ew-bottom { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: #64748b; font-size: 12px; }
#emb-workspace .ew-dot { width: 6px; height: 6px; background: #0f766e; border-radius: 50%; }
#emb-workspace .ew-bottom-right { margin-left: auto; letter-spacing: 1px; }
#emb-workspace #ew-error { color: #b91c1c; }
#emb-workspace-return { position: fixed; right: 24px; bottom: 24px; z-index: 100; padding: 12px 20px; background: #1e293b; color: #fff; border-radius: 24px; box-shadow: 0 4px 20px #0f172a26; font: 14px/1.5 "Microsoft YaHei", sans-serif; }
@media (max-width: 850px) {
  #emb-workspace .ew-header { padding: 0 24px; }
  #emb-workspace .ew-main { padding: 48px 24px 28px; }
  #emb-workspace .ew-grid { gap: 14px; }
  #emb-workspace .ew-app { padding: 22px; }
  #emb-workspace .ew-description { max-width: 160px; }
}
@media (max-width: 600px) {
  #emb-workspace .ew-header { height: auto; min-height: 76px; padding: 16px 20px; flex-wrap: wrap; gap: 10px; }
  #emb-workspace .ew-brand-sub { margin-left: 8px; }
  #emb-workspace nav { margin-left: auto; gap: 0; }
  #emb-workspace nav a, #emb-workspace nav button { font-size: 12px; padding: 8px 10px; }
  #emb-workspace .ew-main { padding: 38px 20px 28px; }
  #emb-workspace .ew-section-heading { margin-top: 38px; }
  #emb-workspace .ew-section-heading > span { display: none; }
  #emb-workspace .ew-grid { grid-template-columns: 1fr; }
  #emb-workspace .ew-app { min-height: 0; display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding: 22px; }
  #emb-workspace .ew-icon { grid-row: 1 / 4; margin: 0; }
  #emb-workspace .ew-app strong { font-size: 24px; }
  #emb-workspace .ew-label { margin: 0 0 8px; }
  #emb-workspace .ew-description { max-width: none; }
  #emb-workspace .ew-bottom-right { display: none; }
}
@media (prefers-reduced-motion: reduce) { #emb-workspace .ew-app { transition: none; transform: none; } }
