/* BioStudio AI — BioStudioAI 1 theme.
   Activated when #os carries the `theme-bs1` marker class (and <body> for
   popups rendered outside #os). A science-first premium workspace: deep navy
   glassmorphism, violet/teal neon accents, soft glow depth, and an adaptive
   dashboard home (js/core/bs1-dashboard.js) instead of desktop icon clutter.
   Scoped entirely under .theme-bs1 so the Windows and macOS themes are
   untouched. Customization (accent strength, glass alpha, mood, density,
   icons, motion) arrives as --bs1-* vars + bs1-* classes from bs1-prefs.js. */

/* ---- Design tokens ---- */
body.theme-bs1,
#os.theme-bs1 {
  /* customization knobs (JS overrides these; defaults keep CSS standalone) */
  --bs1-accent-strength: 0.8;
  --bs1-glass-alpha: 0.72;

  /* palette */
  --bs1-navy: #0a0f1e;
  --bs1-indigo: #121b33;
  --bs1-violet: #8b5cf6;
  --bs1-teal: #00e6c3;
  --bs1-cyan: #38bdf8;
  --bs1-glass: rgba(22, 27, 43, var(--bs1-glass-alpha));
  --bs1-border: rgba(148, 163, 184, 0.18);
  --bs1-border-active: rgba(139, 92, 246, calc(0.65 * var(--bs1-accent-strength)));
  --bs1-glow:
    0 0 24px rgba(139, 92, 246, calc(0.25 * var(--bs1-accent-strength))),
    0 0 48px rgba(0, 230, 195, calc(0.08 * var(--bs1-accent-strength)));
  --bs1-grad-primary: linear-gradient(135deg, #8b5cf6 0%, #6d5dfb 55%, #00b8d9 100%);

  /* base token overrides — BS1 is always a dark premium surface */
  --ink: #e6ecf7;
  --ink-soft: #a3aec7;
  --radius: 14px;

  /* taller band so the floating dock taskbar has air around it */
  --taskbar-h: 74px;

  /* window + flyout chrome consumed by window.css / flyouts.css */
  --win-bg: rgba(18, 27, 51, 0.86);
  --win-body-bg: rgba(13, 19, 38, 0.8);
  --win-border: var(--bs1-border);
  --win-border-focus: var(--bs1-border-active);
  --titlebar-bg: rgba(16, 23, 42, 0.78);
  --flyout-bg: rgba(18, 27, 51, 0.88);
  --flyout-border: var(--bs1-border);
  --tile-bg: rgba(255, 255, 255, 0.06);
  --tile-hover: rgba(139, 92, 246, 0.16);
  --input-bg: rgba(10, 15, 30, 0.6);
  --input-border: rgba(148, 163, 184, 0.24);

  /* legacy app aliases */
  --surface: var(--win-body-bg);
  --text: var(--ink);
  --muted: var(--ink-soft);
  --border: var(--bs1-border);

  /* taskbar */
  --taskbar-bg: rgba(10, 15, 30, 0.78);
  --taskbar-border: rgba(148, 163, 184, 0.14);
  --tb-hover: rgba(139, 92, 246, 0.18);
  --tb-active: rgba(139, 92, 246, 0.12);

  /* shared app chrome */
  --app-btn-hover: rgba(255, 255, 255, 0.1);

  color: var(--ink);
}

/* ---- Wallpaper moods ---- */
#os.wp-bs1,
#os.wp-bs1.dark {
  background:
    radial-gradient(circle at top center, rgba(139, 92, 246, 0.22), transparent 35%),
    radial-gradient(circle at bottom right, rgba(0, 230, 195, 0.12), transparent 35%),
    linear-gradient(135deg, #0a0f1e 0%, #10172a 50%, #121b33 100%);
}
#os.wp-bs1.bs1-mood-aurora {
  background:
    radial-gradient(900px 640px at 22% 12%, rgba(0, 230, 195, 0.2), transparent 55%),
    radial-gradient(1000px 720px at 78% 30%, rgba(139, 92, 246, 0.26), transparent 58%),
    linear-gradient(150deg, #071120 0%, #0c1a2e 52%, #14213f 100%);
}
#os.wp-bs1.bs1-mood-oceanic {
  background:
    radial-gradient(1000px 700px at 70% 15%, rgba(56, 189, 248, 0.24), transparent 58%),
    radial-gradient(800px 640px at 20% 88%, rgba(0, 230, 195, 0.16), transparent 60%),
    linear-gradient(140deg, #051020 0%, #0a1c33 55%, #0d2742 100%);
}
#os.wp-bs1.bs1-mood-minimal {
  background:
    radial-gradient(circle at top center, rgba(139, 92, 246, 0.08), transparent 40%),
    linear-gradient(135deg, #0a0f1e 0%, #0e1526 60%, #101a2e 100%);
}

/* ---- White appearance ------------------------------------------------- */
/* bs1-prefs.js drops the `dark` class when appearance = white; the same
   violet/teal identity on bright glass surfaces. */
body.theme-bs1:not(.dark),
#os.theme-bs1:not(.dark) {
  --bs1-navy: #f4f6fc;
  --bs1-indigo: #e8ecf8;
  --bs1-glass: rgba(255, 255, 255, calc(var(--bs1-glass-alpha) * 0.9 + 0.1));
  --bs1-border: rgba(71, 85, 120, 0.16);
  --bs1-border-active: rgba(109, 66, 234, calc(0.55 * var(--bs1-accent-strength)));
  --bs1-glow:
    0 0 24px rgba(139, 92, 246, calc(0.16 * var(--bs1-accent-strength))),
    0 10px 30px rgba(15, 23, 42, 0.08);

  --ink: #17203a;
  --ink-soft: #5a668a;

  --win-bg: rgba(255, 255, 255, 0.92);
  --win-body-bg: rgba(250, 251, 255, 0.9);
  --titlebar-bg: rgba(244, 246, 252, 0.88);
  --flyout-bg: rgba(255, 255, 255, 0.94);
  --tile-bg: rgba(15, 23, 42, 0.05);
  --tile-hover: rgba(139, 92, 246, 0.12);
  --input-bg: rgba(255, 255, 255, 0.85);
  --input-border: rgba(71, 85, 120, 0.24);

  --taskbar-bg: rgba(255, 255, 255, 0.82);
  --taskbar-border: rgba(71, 85, 120, 0.14);
  --tb-hover: rgba(139, 92, 246, 0.14);
  --tb-active: rgba(139, 92, 246, 0.1);

  --app-btn-hover: rgba(15, 23, 42, 0.07);
}
#os.wp-bs1:not(.dark) {
  background:
    radial-gradient(circle at top center, rgba(139, 92, 246, 0.14), transparent 38%),
    radial-gradient(circle at bottom right, rgba(0, 200, 170, 0.1), transparent 38%),
    linear-gradient(135deg, #eef1fa 0%, #e7ebf7 50%, #dfe6f5 100%);
}
#os.wp-bs1.bs1-mood-aurora:not(.dark) {
  background:
    radial-gradient(900px 640px at 22% 12%, rgba(0, 200, 170, 0.16), transparent 55%),
    radial-gradient(1000px 720px at 78% 30%, rgba(139, 92, 246, 0.18), transparent 58%),
    linear-gradient(150deg, #eef4fb 0%, #e6eefa 52%, #e2e7fa 100%);
}
#os.wp-bs1.bs1-mood-oceanic:not(.dark) {
  background:
    radial-gradient(1000px 700px at 70% 15%, rgba(56, 189, 248, 0.2), transparent 58%),
    radial-gradient(800px 640px at 20% 88%, rgba(0, 200, 170, 0.12), transparent 60%),
    linear-gradient(140deg, #ecf4fb 0%, #e3eefa 55%, #dcebf9 100%);
}
#os.wp-bs1.bs1-mood-minimal:not(.dark) {
  background:
    radial-gradient(circle at top center, rgba(139, 92, 246, 0.06), transparent 40%),
    linear-gradient(135deg, #f2f4fa 0%, #edf0f8 60%, #e9edf7 100%);
}
/* surfaces tuned for dark glass need brighter fills on the white appearance */
#os.theme-bs1:not(.dark) .bs1-rail { background: rgba(255, 255, 255, 0.66); }
#os.theme-bs1:not(.dark) .bs1-rail-item:hover,
#os.theme-bs1:not(.dark) .bs1-panel-row:hover,
#os.theme-bs1:not(.dark) .bs1-flyout-item:hover { background: rgba(139, 92, 246, 0.1); }
#os.theme-bs1:not(.dark) .bs1-panel-row,
#os.theme-bs1:not(.dark) .bs1-flyout-item { background: rgba(15, 23, 42, 0.03); }
#os.theme-bs1:not(.dark) .bs1-cmd-keys kbd { color: var(--ink-soft); background: rgba(15, 23, 42, 0.06); }
#os.theme-bs1:not(.dark) .bs1-greeting h1 { background: linear-gradient(120deg, #1d2a4d, #4c3d9e); -webkit-background-clip: text; background-clip: text; }

/* ====================================================================== */
/* Dashboard home — replaces the icon desktop                              */
/* A three-zone workspace: left category rail, centered stage (command bar */
/* + project overview + action dock) and a right "Today's Workflow" panel. */
/* ====================================================================== */
#os.theme-bs1 .desktop-icons,
#os.theme-bs1 .desktop-widgets { display: none; }

.bs1-home {
  position: absolute;
  /* The parent desktop surface already represents the live taskbar work area. */
  inset: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* ---- Left category rail ------------------------------------------------ */
.bs1-rail {
  flex: none;
  width: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 8px;
  border-right: 1px solid var(--bs1-border);
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  z-index: 3;
}
.bs1-rail-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: 13px;
  color: #fff;
  background: var(--bs1-grad-primary);
  box-shadow: var(--bs1-glow);
}
.bs1-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 10px 4px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: none;
  color: var(--ink-soft);
  font: inherit;
  cursor: pointer;
  transition: background 0.13s ease, color 0.13s ease, border-color 0.13s ease;
}
.bs1-rail-item:hover { background: rgba(139, 92, 246, 0.12); color: var(--ink); }
.bs1-rail-item.open {
  background: rgba(139, 92, 246, 0.16);
  border-color: var(--bs1-border-active);
  color: var(--ink);
  box-shadow: var(--bs1-glow);
}
.bs1-rail-glyph { display: inline-flex; }
.bs1-rail-label { font-size: 10.5px; font-weight: 600; letter-spacing: -0.01em; }

/* ---- Rail fly-out (app list for a category) --------------------------- */
.bs1-flyout {
  position: absolute;
  top: 82px;
  left: 96px;
  z-index: 4;
  width: min(300px, 42vw);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--bs1-border);
  background: var(--flyout-bg);
  backdrop-filter: blur(28px) saturate(1.3);
  -webkit-backdrop-filter: blur(28px) saturate(1.3);
  box-shadow: 0 30px 80px rgba(2, 6, 18, 0.6), var(--bs1-glow);
  animation: bs1-flyin 0.16s ease;
}
@keyframes bs1-flyin { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.bs1-flyout-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.bs1-flyout-head h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.bs1-flyout-close {
  border: none; background: none; cursor: pointer;
  color: var(--ink-soft); font-size: 13px; line-height: 1;
  width: 26px; height: 26px; border-radius: 8px;
}
.bs1-flyout-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--ink); }
.bs1-flyout-list { display: flex; flex-direction: column; gap: 3px; }
.bs1-flyout-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  text-align: left; padding: 9px 10px; border-radius: 12px;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.03);
  color: var(--ink); font: inherit; cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.bs1-flyout-item:hover { background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.3); }
.bs1-flyout-icon { display: inline-flex; flex: none; }
.bs1-flyout-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bs1-flyout-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs1-flyout-sub { font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs1-flyout-all {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; padding: 10px 12px; border-radius: 12px;
  border: none; cursor: pointer; font: 600 12.5px var(--font);
  color: var(--bs1-cyan); background: rgba(56, 189, 248, 0.08);
}
.bs1-flyout-all:hover { background: rgba(56, 189, 248, 0.16); }
.bs1-flyout-all-caret { font-size: 15px; }

/* ---- Center stage ------------------------------------------------------ */
.bs1-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: clamp(14px, 2.4vh, 26px) clamp(16px, 3vw, 40px) 0;
  overflow: hidden;
}
.bs1-topbar { display: flex; justify-content: center; margin-bottom: clamp(14px, 3vh, 32px); }
.bs1-cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(640px, 100%);
  padding: 13px 18px;
  border-radius: 14px;
  border: 1px solid var(--bs1-border);
  background: var(--bs1-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bs1-cmd:hover, .bs1-cmd:focus-visible, .bs1-cmd:focus-within { border-color: var(--bs1-border-active); box-shadow: var(--bs1-glow); }
.bs1-cmd-glyph { display: inline-flex; color: var(--bs1-cyan); }
.bs1-cmd-ph { flex: 1; text-align: left; }
.bs1-cmd-keys { display: inline-flex; gap: 4px; }
.bs1-cmd-keys kbd {
  font: 600 11px/1 var(--font);
  color: var(--ink-soft);
  border: 1px solid var(--bs1-border);
  border-radius: 6px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.05);
}

/* main = center content + right panel */
.bs1-main {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: clamp(18px, 2.5vw, 40px);
  overflow: hidden;
}
.bs1-center {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(16px, 3vh, 30px);
  overflow-y: auto;
  padding-bottom: 96px;
}
.bs1-greeting h1 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.bs1-greeting p { color: var(--ink-soft); font-size: 14.5px; margin-top: 6px; }

/* project overview gallery */
.bs1-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1500px) { .bs1-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bs1-proj {
  display: flex;
  flex-direction: column;
  text-align: left;
  border-radius: 18px;
  border: 1px solid var(--bs1-border);
  background: var(--bs1-glass);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.bs1-proj:hover { transform: translateY(-3px); border-color: var(--bs1-border-active); box-shadow: var(--bs1-glow); }
.bs1-proj-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 118px;
  color: #fff;
  background: var(--bs1-grad-primary);
}
.bs1-proj.bs1-t0 .bs1-proj-thumb { background: linear-gradient(135deg, #8b5cf6, #6d28d9 55%, #4c1d95); }
.bs1-proj.bs1-t1 .bs1-proj-thumb { background: linear-gradient(135deg, #0ea5e9, #0369a1 55%, #075985); }
.bs1-proj.bs1-t2 .bs1-proj-thumb { background: linear-gradient(135deg, #14b8a6, #0d9488 55%, #115e59); }
.bs1-proj.bs1-t3 .bs1-proj-thumb { background: linear-gradient(135deg, #6366f1, #4f46e5 55%, #7c3aed); }
.bs1-proj-thumb.new { background: rgba(255, 255, 255, 0.05); color: var(--ink-soft); font-size: 34px; font-weight: 300; }
.bs1-proj-body { display: flex; flex-direction: column; gap: 3px; padding: 13px 15px 14px; }
.bs1-proj-title { font-size: 14.5px; font-weight: 650; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs1-proj-sub { font-size: 12px; color: var(--ink-soft); }
.bs1-proj-foot { display: flex; align-items: center; margin-top: 6px; }
.bs1-proj-people { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.bs1-proj-people .icon { color: var(--bs1-cyan); }
.bs1-proj-new {
  display: flex; flex-direction: column; text-align: left; cursor: pointer;
  border-radius: 18px; border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.02); color: var(--ink); font: inherit; overflow: hidden;
}
.bs1-proj-new:hover { border-color: var(--bs1-border-active); }

/* ---- Right "Today's Workflow" panel ----------------------------------- */
.bs1-panel {
  flex: none;
  width: clamp(260px, 24vw, 320px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  margin-bottom: 20px;
  border-radius: 20px;
  border: 1px solid var(--bs1-border);
  background: var(--bs1-glass);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(2, 6, 18, 0.4);
  overflow-y: auto;
}
.bs1-panel-head { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
.bs1-panel-sec { display: flex; flex-direction: column; gap: 8px; }
.bs1-panel-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-soft);
}
.bs1-panel-title.ai .icon { color: var(--bs1-violet); }
.bs1-panel-list { display: flex; flex-direction: column; gap: 4px; }
.bs1-panel-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; padding: 9px 8px; border-radius: 12px;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.03);
  color: var(--ink); font: inherit; cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.bs1-panel-row:hover { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); }
.bs1-panel-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  color: var(--bs1-cyan); background: rgba(139, 92, 246, 0.14);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.22);
}
.bs1-panel-icon.check { color: var(--bs1-violet); font-size: 16px; background: none; box-shadow: none; }
.bs1-panel-row.unread .bs1-panel-icon { color: var(--bs1-teal); }
.bs1-panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.bs1-panel-row-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs1-panel-row-sub { font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs1-panel-caret { flex: none; color: var(--ink-soft); font-size: 15px; opacity: 0.6; }
.bs1-panel-empty { font-size: 12px; color: var(--ink-soft); padding: 4px 8px; }

/* ---- Floating action dock --------------------------------------------- */
.bs1-dock {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid var(--bs1-border);
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(26px) saturate(1.3);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  box-shadow: 0 24px 70px rgba(2, 6, 18, 0.55), var(--bs1-glow);
  z-index: 5;
}
.bs1-dock-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: none;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font: 600 13px var(--font);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.bs1-dock-btn:hover { background: rgba(139, 92, 246, 0.16); }
.bs1-dock-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--bs1-cyan); }
.bs1-dock-more { padding: 9px 12px; color: var(--ink-soft); }
.bs1-dock-more .bs1-dock-icon { color: var(--ink-soft); font-size: 16px; letter-spacing: 1px; }

/* icon style preference */
#os.theme-bs1.bs1-icons-outlined .bs1-flyout-icon .icon { filter: saturate(0.35) brightness(1.1); }
#os.theme-bs1.bs1-icons-duotone .bs1-flyout-icon .icon { filter: hue-rotate(12deg) saturate(0.7); }
#os.theme-bs1.bs1-icons-gradient .bs1-flyout-icon .icon { filter: saturate(1.25) drop-shadow(0 2px 6px rgba(139, 92, 246, 0.45)); }

/* density preference */
#os.theme-bs1.bs1-density-compact .bs1-gallery { gap: 12px; }
#os.theme-bs1.bs1-density-compact .bs1-proj-thumb { height: 96px; }
#os.theme-bs1.bs1-density-compact .bs1-panel { padding: 14px; gap: 14px; }
#os.theme-bs1.bs1-density-compact .bs1-panel-row { padding: 7px 8px; }

/* ---- Narrow desktops: fold the workflow panel below ------------------- */
@media (max-width: 1180px) {
  .bs1-main { flex-direction: column; overflow-y: auto; }
  .bs1-panel { width: auto; }
  #os.theme-bs1 .bsw-panel { justify-content: flex-start; }
  .bs1-center { overflow: visible; padding-bottom: 0; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .bs1-rail { width: 68px; }
  .bs1-rail-label { display: none; }
  .bs1-gallery { grid-template-columns: 1fr; }
  .bs1-dock-label { display: none; }
}

/* ====================================================================== */
/* Window chrome — glass panels with violet focus glow                     */
/* ====================================================================== */
#os.theme-bs1 .window {
  border-radius: 16px;
  backdrop-filter: blur(28px) saturate(1.25);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  box-shadow: 0 24px 70px rgba(2, 6, 18, 0.55), 0 0 0 1px rgba(148, 163, 184, 0.1);
}
#os.theme-bs1 .window.focused {
  box-shadow: 0 28px 80px rgba(2, 6, 18, 0.6), var(--bs1-glow), 0 0 0 1px var(--bs1-border-active);
}
#os.theme-bs1 .window.maximized { border-radius: 0; }
#os.theme-bs1 .window-titlebar { border-bottom-color: rgba(148, 163, 184, 0.12); }
#os.theme-bs1 .window-title-text { font-weight: 600; letter-spacing: -0.01em; }
#os.theme-bs1 .win-btn:hover { background: rgba(255, 255, 255, 0.1); }
#os.theme-bs1 .win-btn.close:hover { background: #ef4444; color: #fff; }
#os.theme-bs1 .window.drop-target { outline-color: var(--bs1-teal); }

/* ====================================================================== */
/* Taskbar — a true floating glass dock, not the conventional bar          */
/* taskbar.js adds .bs-dock to .taskbar while a BioStudioAI profile is     */
/* active; everything below reshapes the Win11 bar into a centered,        */
/* detached neon-glass dock. `translate` (not transform) centers it so the */
/* auto-hide translateY transform still composes.                          */
/* ====================================================================== */
#os.theme-bs1 .taskbar.bs-dock {
  left: 50%;
  right: auto;
  bottom: 10px;
  translate: -50% 0;
  width: max-content;
  max-width: calc(100vw - 24px);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--bs1-border);
  border-radius: 20px;
  background: var(--taskbar-bg);
  backdrop-filter: blur(30px) saturate(1.35);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  box-shadow: 0 22px 60px rgba(2, 6, 18, 0.55), var(--bs1-glow);
}
/* conventional-bar furniture that has no place on a floating dock */
#os.theme-bs1 .taskbar.bs-dock .taskbar-left,
#os.theme-bs1 .taskbar.bs-dock .tb-show-desktop,
#os.theme-bs1 .taskbar.bs-dock .tray-chevron { display: none; }

#os.theme-bs1 .taskbar.bs-dock .taskbar-center { gap: 6px; }
#os.theme-bs1 .taskbar.bs-dock .taskbar-right {
  margin-left: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--bs1-border);
}
#os.theme-bs1 .taskbar.bs-dock .tb-icon-btn,
#os.theme-bs1 .taskbar.bs-dock .task-btn {
  height: 42px;
  min-width: 42px;
  border-radius: 13px;
}
/* Start = gradient identity tile */
#os.theme-bs1 .taskbar.bs-dock .taskbar-start {
  background: var(--bs1-grad-primary);
  box-shadow: var(--bs1-glow);
}
#os.theme-bs1 .taskbar.bs-dock .taskbar-start .icon { color: #fff; }
#os.theme-bs1 .taskbar.bs-dock .taskbar-start:hover { filter: brightness(1.1); }

/* running/active app states — glowing dot + violet pill */
#os.theme-bs1 .task-btn-indicator { bottom: 4px; }
#os.theme-bs1 .task-btn.running .task-btn-indicator {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--bs1-teal);
  box-shadow: 0 0 8px var(--bs1-teal);
}
#os.theme-bs1 .task-btn.active {
  background: rgba(139, 92, 246, 0.16);
  box-shadow: inset 0 0 0 1px var(--bs1-border-active);
}
#os.theme-bs1 .task-btn.active .task-btn-indicator {
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: var(--bs1-teal);
  box-shadow: 0 0 10px var(--bs1-teal);
}
#os.theme-bs1 .task-btn.multi.running .task-btn-indicator { box-shadow: 6px 0 0 -1px var(--bs1-teal), 0 0 8px var(--bs1-teal); }

/* virtual-desktop pill + tray + clock as quiet glass capsules */
#os.theme-bs1 .tb-desktop-pill {
  border: 1px solid var(--bs1-border);
  background: rgba(255, 255, 255, 0.04);
}
#os.theme-bs1 .tb-desktop-pill:hover { border-color: var(--bs1-border-active); background: var(--tb-hover); }
#os.theme-bs1 .tb-desktop-pill .tb-desktop-dot { background: var(--bs1-teal); box-shadow: 0 0 8px var(--bs1-teal); }
#os.theme-bs1 .taskbar.bs-dock .tray-cluster,
#os.theme-bs1 .taskbar.bs-dock .tray-notif-btn,
#os.theme-bs1 .taskbar.bs-dock .tray-clock { border-radius: 12px; }

/* style toggle opens the OS-style chooser; skin it like a BS1 pill */
#os.theme-bs1 .tb-style-toggle {
  border: 1px solid var(--bs1-border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bs1-violet) calc(12% * var(--bs1-accent-strength, 0.8)), transparent);
  color: var(--ink-soft);
}
#os.theme-bs1 .tb-style-toggle:hover { color: var(--ink); border-color: var(--bs1-violet); }

/* ====================================================================== */
/* Start menu + flyouts + notifications                                    */
/* ====================================================================== */
#os.theme-bs1 .start-menu,
#os.theme-bs1 .flyout {
  border-radius: 20px;
  border: 1px solid var(--bs1-border);
  box-shadow: 0 30px 80px rgba(2, 6, 18, 0.6), var(--bs1-glow);
}
#os.theme-bs1 .qs-tile { border-radius: 14px; }
#os.theme-bs1 .qs-tile.on { background: var(--bs1-grad-primary); }
#os.theme-bs1 .cal-cell.today { background: var(--bs1-violet); }
#os.theme-bs1 .toast {
  border-radius: 16px;
  border: 1px solid var(--bs1-border);
  background: rgba(18, 27, 51, 0.92);
  color: var(--ink);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 18px 50px rgba(2, 6, 18, 0.55), var(--bs1-glow);
}

/* ====================================================================== */
/* Context menus, taskbar previews, snap flyout (rendered on <body>)       */
/* ====================================================================== */
body.theme-bs1 .ctx-menu,
body.theme-bs1 .tb-preview-popover,
body.theme-bs1 .snap-flyout {
  --menu-bg: #ffffff;
  --menu-border: rgba(71, 85, 120, 0.16);
  --menu-hover: rgba(139, 92, 246, 0.12);
  color: var(--ink, #17203a);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(2, 6, 18, 0.18), 0 0 24px rgba(139, 92, 246, 0.12);
}
body.theme-bs1 .ctx-menu {
  background: #ffffff;
}
body.theme-bs1 .ctx-item { border-radius: 9px; }
body.theme-bs1 .ctx-item.danger:hover:not([disabled]) { background: rgba(239, 68, 68, 0.18); color: #f87171; }
body.theme-bs1 .snap-preview { background: rgba(139, 92, 246, 0.2); border-color: var(--bs1-border-active); }
body.theme-bs1 .snap-cell { background: var(--bs1-violet); }

/* ====================================================================== */
/* Shared app chrome — buttons, fields, toolbars, tables, dialogs          */
/* ====================================================================== */
#os.theme-bs1 .app-toolbar,
#os.theme-bs1 .files-toolbar {
  background: rgba(16, 23, 42, 0.66);
  border-bottom-color: rgba(148, 163, 184, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
#os.theme-bs1 .app-statusbar {
  background: rgba(10, 15, 30, 0.5);
  border-top-color: rgba(148, 163, 184, 0.12);
}

#os.theme-bs1 .btn,
body.theme-bs1 .btn {
  border-radius: 11px;
  border: 1px solid var(--input-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font-weight: 550;
}
#os.theme-bs1 .btn:hover,
body.theme-bs1 .btn:hover { background: rgba(255, 255, 255, 0.1); }
#os.theme-bs1 .btn.primary,
body.theme-bs1 .btn.primary {
  background: var(--bs1-grad-primary);
  border-color: transparent;
  color: #fff;
}
#os.theme-bs1 .btn.primary:hover,
body.theme-bs1 .btn.primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 18px rgba(139, 92, 246, calc(0.45 * var(--bs1-accent-strength)));
}
#os.theme-bs1 .btn.ghost,
body.theme-bs1 .btn.ghost { background: transparent; border-color: transparent; }
#os.theme-bs1 .btn.ghost:hover,
body.theme-bs1 .btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }

#os.theme-bs1 .field,
#os.theme-bs1 input[type="text"],
#os.theme-bs1 input[type="search"],
#os.theme-bs1 input[type="number"],
#os.theme-bs1 input[type="email"],
#os.theme-bs1 input[type="password"],
#os.theme-bs1 textarea,
#os.theme-bs1 select,
#os.theme-bs1 .bs-select {
  border-radius: 10px;
  background: var(--input-bg);
  border-color: var(--input-border);
  color: var(--ink);
  color-scheme: dark;
}
#os.theme-bs1 .field:focus,
#os.theme-bs1 input:focus-visible,
#os.theme-bs1 textarea:focus-visible,
#os.theme-bs1 select:focus-visible {
  outline: none;
  border-color: var(--bs1-border-active);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, calc(0.3 * var(--bs1-accent-strength)));
}

/* tables — dark glass container, soft dividers, hover highlight */
#os.theme-bs1 table { border-color: var(--bs1-border); }
#os.theme-bs1 th {
  background: rgba(16, 23, 42, 0.85);
  color: var(--ink-soft);
  border-color: rgba(148, 163, 184, 0.14);
}
#os.theme-bs1 td { border-color: rgba(148, 163, 184, 0.1); }
#os.theme-bs1 tbody tr:hover td { background: rgba(139, 92, 246, 0.07); }

/* settings option cards reuse the BS1 card language */
#os.theme-bs1 .theme-card,
#os.theme-bs1 .settings-section {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--bs1-border);
}
#os.theme-bs1 .theme-card.active {
  border-color: var(--bs1-border-active);
  box-shadow: var(--bs1-glow);
}

/* dialogs / modals (rendered on <body>) */
body.theme-bs1 .platform-dialog-overlay {
  background: rgba(4, 7, 16, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
body.theme-bs1 .platform-dialog {
  border-radius: 18px;
  border: 1px solid var(--bs1-border);
  background: rgba(18, 27, 51, 0.96);
  color: var(--ink, #e6ecf7);
  box-shadow: 0 30px 90px rgba(2, 6, 18, 0.65), var(--bs1-glow);
}
body.theme-bs1 .platform-dialog-input {
  background: rgba(10, 15, 30, 0.6);
  border-color: rgba(148, 163, 184, 0.24);
  color: #e6ecf7;
}

/* ====================================================================== */
/* Motion preferences                                                      */
/* ====================================================================== */
#os.theme-bs1.bs1-motion-dynamic .bs1-card:hover { transform: translateY(-2px); box-shadow: var(--bs1-glow); }
#os.theme-bs1.bs1-motion-reduced *,
#os.theme-bs1.bs1-motion-reduced *::before,
#os.theme-bs1.bs1-motion-reduced *::after {
  transition-duration: 0.01ms !important;
  animation-duration: 0.01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  #os.theme-bs1 *,
  #os.theme-bs1 *::before,
  #os.theme-bs1 *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ====================================================================== */
/* Responsive                                                              */
/* ====================================================================== */
@media (max-width: 980px) {
  .bs1-hero { flex-direction: column; align-items: stretch; }
  .bs1-search { min-width: 0; }
  .bs1-grid { grid-template-columns: 1fr; }
}

/* Accessible focus ring everywhere in BS1 */
#os.theme-bs1 :focus-visible,
body.theme-bs1 :focus-visible {
  outline: 2px solid var(--bs1-cyan);
  outline-offset: 2px;
}

/* ====================================================================== */
/* Global search palette — matches the dashboard command bar               */
/* (overrides the generic styles palette.js injects at runtime)            */
/* ====================================================================== */
body.theme-bs1 .bs-search-overlay {
  background: rgba(4, 7, 16, 0.55);
  backdrop-filter: blur(8px) saturate(1.1);
  -webkit-backdrop-filter: blur(8px) saturate(1.1);
}
body.theme-bs1 .bs-search-box {
  background: var(--flyout-bg, rgba(18, 27, 51, 0.92));
  color: var(--ink, #e6ecf7);
  border: 1px solid var(--bs1-border, rgba(148, 163, 184, 0.18));
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(2, 6, 18, 0.65), var(--bs1-glow, 0 0 24px rgba(139, 92, 246, 0.2));
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
}
body.theme-bs1 .bs-search-head { border-bottom-color: var(--bs1-border, rgba(148, 163, 184, 0.18)); padding: 14px 16px; }
body.theme-bs1 .bs-search-mag { color: var(--bs1-cyan, #38bdf8); opacity: 1; }
body.theme-bs1 .bs-search-esc {
  color: var(--ink-soft);
  border-color: var(--bs1-border);
  background: rgba(255, 255, 255, 0.05);
  opacity: 1;
}
body.theme-bs1 .bs-search-group { color: var(--bs1-cyan, #38bdf8); opacity: 0.85; }
body.theme-bs1 .bs-search-row { border-radius: 12px; border: 1px solid transparent; }
body.theme-bs1 .bs-search-row.active {
  background: rgba(139, 92, 246, 0.16);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 0 16px rgba(139, 92, 246, calc(0.25 * var(--bs1-accent-strength, 0.8)));
}
body.theme-bs1 .bs-search-sub,
body.theme-bs1 .bs-search-hint { color: var(--ink-soft, #a3aec7); }
body.theme-bs1 .bs-search-app { color: var(--ink-soft); border-color: var(--bs1-border); opacity: 1; }

/* ====================================================================== */
/* Start menu internals — dark glass, violet tiles                         */
/* ====================================================================== */
#os.theme-bs1 .start-menu {
  background: var(--flyout-bg);
  backdrop-filter: blur(30px) saturate(1.3);
  -webkit-backdrop-filter: blur(30px) saturate(1.3);
  color: var(--ink);
}
#os.theme-bs1 .start-search {
  border-radius: 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--ink);
}
#os.theme-bs1 .start-search:focus {
  border-color: var(--bs1-border-active);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, calc(0.3 * var(--bs1-accent-strength)));
}
#os.theme-bs1 .start-section-title { color: var(--bs1-cyan); }
#os.theme-bs1 .start-tile { border-radius: 14px; }
#os.theme-bs1 .start-tile:hover,
#os.theme-bs1 .start-all-row:hover,
#os.theme-bs1 .start-rec:hover { background: rgba(139, 92, 246, 0.14); }
#os.theme-bs1 .start-allapps,
#os.theme-bs1 .start-back { color: var(--bs1-cyan); }
#os.theme-bs1 .start-footer {
  background: rgba(10, 15, 30, 0.5);
  border-top: 1px solid var(--bs1-border);
}

/* ====================================================================== */
/* Task view — glass cards over a deep-navy scrim                          */
/* ====================================================================== */
#os.theme-bs1 .tv-scrim {
  background: rgba(4, 7, 16, 0.6);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}
#os.theme-bs1 .tv-window {
  border-radius: 16px;
  border: 1px solid var(--bs1-border);
  background: rgba(18, 27, 51, 0.8);
  box-shadow: 0 20px 60px rgba(2, 6, 18, 0.5);
}
#os.theme-bs1 .tv-window:hover {
  border-color: var(--bs1-border-active);
  box-shadow: 0 24px 70px rgba(2, 6, 18, 0.6), var(--bs1-glow);
}
#os.theme-bs1 .tv-desktop { border-radius: 14px; border: 1px solid var(--bs1-border); }
#os.theme-bs1 .tv-desktop.active { border-color: var(--bs1-border-active); box-shadow: var(--bs1-glow); }
#os.theme-bs1 .tv-add { border: 1px dashed rgba(148, 163, 184, 0.4); border-radius: 14px; }
#os.theme-bs1 .tv-add:hover { border-color: var(--bs1-border-active); }

/* ====================================================================== */
/* Customizable widget panel (js/core/bs-widgets.js) — neon glass stack    */
/* ====================================================================== */
#os.theme-bs1 .bsw-panel {
  flex: none;
  width: clamp(260px, 24vw, 320px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  margin-bottom: 20px;
  border-radius: 20px;
  border: 1px solid var(--bs1-border);
  background: var(--bs1-glass);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 20px 60px rgba(2, 6, 18, 0.4);
  overflow-y: auto;
}
#os.theme-bs1 .bsw-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#os.theme-bs1 .bsw-head-title { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); }
#os.theme-bs1 .bsw-edit-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--bs1-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft); font: 600 11.5px var(--font); cursor: pointer;
  transition: border-color 0.13s ease, color 0.13s ease, box-shadow 0.13s ease;
}
#os.theme-bs1 .bsw-edit-btn:hover { color: var(--ink); border-color: var(--bs1-border-active); }
#os.theme-bs1 .bsw-edit-btn.on {
  color: #fff;
  border-color: transparent;
  background: var(--bs1-grad-primary);
  box-shadow: var(--bs1-glow);
}

#os.theme-bs1 .bsw-widget { display: flex; flex-direction: column; gap: 8px; }
#os.theme-bs1 .bsw-widget.editing {
  padding: 10px;
  border-radius: 14px;
  border: 1px dashed rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.05);
}
#os.theme-bs1 .bsw-widget-head { display: flex; align-items: center; gap: 6px; }
#os.theme-bs1 .bsw-widget-glyph { display: inline-flex; color: var(--bs1-violet); }
#os.theme-bs1 .bsw-widget-title {
  flex: 1;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-soft);
}
#os.theme-bs1 .bsw-widget-tools { display: inline-flex; gap: 3px; }
#os.theme-bs1 .bsw-tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 8px;
  border: 1px solid var(--bs1-border); background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft); cursor: pointer;
}
#os.theme-bs1 .bsw-tool:hover:not([disabled]) { color: var(--ink); border-color: var(--bs1-border-active); }
#os.theme-bs1 .bsw-tool.danger:hover:not([disabled]) { color: #f87171; border-color: rgba(239, 68, 68, 0.5); background: rgba(239, 68, 68, 0.12); }
#os.theme-bs1 .bsw-tool[disabled] { opacity: 0.35; cursor: default; }

#os.theme-bs1 .bsw-list { display: flex; flex-direction: column; gap: 4px; }
#os.theme-bs1 .bsw-row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  text-align: left; padding: 9px 8px; border-radius: 12px;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.03);
  color: var(--ink); font: inherit; cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
#os.theme-bs1 .bsw-row:hover { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.3); }
#os.theme-bs1 .bsw-row-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  color: var(--bs1-cyan); background: rgba(139, 92, 246, 0.14);
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.22);
}
#os.theme-bs1 .bsw-row.unread .bsw-row-icon { color: var(--bs1-teal); }
#os.theme-bs1 .bsw-row.check .bsw-row-icon { color: var(--bs1-violet); background: none; box-shadow: none; }
#os.theme-bs1 .bsw-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
#os.theme-bs1 .bsw-row-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#os.theme-bs1 .bsw-row-sub { font-size: 11px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#os.theme-bs1 .bsw-row-caret { flex: none; color: var(--ink-soft); opacity: 0.6; display: inline-flex; }
#os.theme-bs1 .bsw-empty { font-size: 12px; color: var(--ink-soft); padding: 2px 4px; }
#os.theme-bs1 .bsw-empty.center { text-align: center; padding: 8px; }

/* clock */
#os.theme-bs1 .bsw-clock { display: flex; flex-direction: column; gap: 2px; padding: 2px 4px; }
#os.theme-bs1 .bsw-clock-time {
  font-size: 34px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(120deg, #e6ecf7, #b7a8f5 60%, #7fe7d6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#os.theme-bs1 .bsw-clock-date { font-size: 12.5px; color: var(--ink-soft); }

/* lab stats */
#os.theme-bs1 .bsw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#os.theme-bs1 .bsw-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 11px; border-radius: 12px;
  border: 1px solid var(--bs1-border); background: rgba(255, 255, 255, 0.03);
}
#os.theme-bs1 .bsw-stat-value { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--bs1-cyan); }
#os.theme-bs1 .bsw-stat-label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

/* quick launch */
#os.theme-bs1 .bsw-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#os.theme-bs1 .bsw-quick-app {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 4px; border-radius: 12px;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.03);
  color: var(--ink); font: inherit; cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
#os.theme-bs1 .bsw-quick-app:hover { background: rgba(139, 92, 246, 0.14); border-color: rgba(139, 92, 246, 0.3); }
#os.theme-bs1 .bsw-quick-name { font-size: 10px; font-weight: 600; color: var(--ink-soft); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* add-widget picker (edit mode) */
#os.theme-bs1 .bsw-add {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.02);
}
#os.theme-bs1 .bsw-add-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
#os.theme-bs1 .bsw-add-list { display: flex; flex-wrap: wrap; gap: 6px; }
#os.theme-bs1 .bsw-add-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 999px;
  border: 1px solid var(--bs1-border); background: rgba(255, 255, 255, 0.04);
  color: var(--ink); font: 600 11.5px var(--font); cursor: pointer;
  transition: border-color 0.13s ease, background 0.13s ease, box-shadow 0.13s ease;
}
#os.theme-bs1 .bsw-add-chip:hover {
  border-color: var(--bs1-border-active);
  background: rgba(139, 92, 246, 0.14);
  box-shadow: var(--bs1-glow);
}

/* white appearance: brighter fills for the widget stack */
#os.theme-bs1:not(.dark) .bsw-row,
#os.theme-bs1:not(.dark) .bsw-quick-app,
#os.theme-bs1:not(.dark) .bsw-stat { background: rgba(15, 23, 42, 0.03); }
#os.theme-bs1:not(.dark) .bsw-row:hover,
#os.theme-bs1:not(.dark) .bsw-quick-app:hover { background: rgba(139, 92, 246, 0.1); }
#os.theme-bs1:not(.dark) .bsw-clock-time {
  background: linear-gradient(120deg, #1d2a4d, #4c3d9e 60%, #0d7f6f);
  -webkit-background-clip: text; background-clip: text;
}
/* compact density applies to widgets too */
#os.theme-bs1.bs1-density-compact .bsw-panel { padding: 14px; gap: 11px; }
#os.theme-bs1.bs1-density-compact .bsw-row { padding: 7px 8px; }
