/* BERU Orbit — optional visual layer. The classic theme remains the source CSS. */
.crm-brand-logo-orbit,
.crm-theme-toggle,
.crm-sidebar-icon { display: none; }

html[data-crm-theme="orbit"] body {
  background: #edf1f8;
}

html[data-crm-theme="orbit"] .crm-app,
html[data-crm-theme="orbit"] .login-page {
  --bg: #edf1f8;
  --surface: #fff;
  --text: #17223b;
  --muted: #69768f;
  --line: #dce3ef;
  --accent: #1744e4;
  --accent-soft: #e8eeff;
  --t2-black: #0c1730;
  --t2-pink: #5479ff;
  --t2-lime: #90e9e9;
  --t2-turquoise: #4f70ec;
  --btn-primary: #294de3;
  --btn-secondary: #dceafb;
  --shadow: 0 14px 42px rgba(27, 46, 96, .075);
  --radius: 18px;
  --sheet-radius: 0px;
  --sheet-tail: 0px;
  font-family: "Century Gothic", CenturyGothic, "Avenir Next", Avenir, "Trebuchet MS", sans-serif;
  color: #17223b;
  background: #edf1f8;
}

/* The technical drawing keeps its existing typography and design tokens. */
html[data-crm-theme="orbit"] #dealRoomFloorPlanModal {
  --bg: #f5f5f5;
  --surface: #fff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e4e4e4;
  --accent: #000;
  --accent-soft: rgba(191, 255, 0, .18);
  --t2-black: #000;
  --t2-pink: #ff1b8d;
  --t2-lime: #bfff00;
  --t2-turquoise: #20cdff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --radius: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-crm-theme="orbit"] .crm-site-head,
html[data-crm-theme="orbit"] .crm-topbar,
html[data-crm-theme="orbit"] .crm-intro-stack {
  background: #0c1730;
}

html[data-crm-theme="orbit"] .crm-site-head {
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 10px 28px rgba(10, 23, 50, .12), inset 0 -1px rgba(130, 222, 239, .12);
}

html[data-crm-theme="orbit"] .crm-topbar { padding: 0; }
html[data-crm-theme="orbit"] .crm-topbar-inner { min-height: 70px; padding: 7px 28px; }
html[data-crm-theme="orbit"] .crm-brand-logo { width: 154px; overflow: hidden; }
html[data-crm-theme="orbit"] .crm-brand-logo-video { display: none; }
html[data-crm-theme="orbit"] .crm-brand-logo-orbit { display: block; width: 148px; height: 48px; object-fit: cover; object-position: 50% 50%; mix-blend-mode: screen; }

html[data-crm-theme="orbit"] .crm-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 24px;
  padding: 8px 13px;
  border: 1px solid rgba(157, 183, 246, .27);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #dbe7ff;
  font: 700 11px/1.2 "Century Gothic", CenturyGothic, "Trebuchet MS", sans-serif;
  letter-spacing: .025em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
html[data-crm-theme="orbit"] .crm-theme-toggle:hover { background: rgba(107, 146, 255, .2); border-color: #8badff; transform: translateY(-1px); }
html[data-crm-theme="orbit"] .crm-theme-toggle-mark { color: #91e9ec; font-size: 17px; line-height: 1; }
html[data-crm-theme="classic"] .crm-theme-toggle { display: inline-flex; margin-left: 12px; padding: 5px 10px; border: 1px solid #697385; border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
html[data-crm-theme="classic"] .crm-theme-toggle-mark { margin-right: 6px; }

html[data-crm-theme="orbit"] .crm-user-menu { gap: 14px; }
html[data-crm-theme="orbit"] .crm-profile-trigger { border: 1px solid rgba(191, 210, 255, .18); background: rgba(255,255,255,.045); padding: 5px 12px 5px 5px; }
html[data-crm-theme="orbit"] .crm-avatar { background: #91e9ec; color: #102146; }
html[data-crm-theme="orbit"] .crm-logout-btn { color: #abbfe8; text-decoration: none; font-size: 12px; }
html[data-crm-theme="orbit"] .crm-logout-btn:hover { color: #fff; }
html[data-crm-theme="orbit"] .crm-task-bell-count { background: #5c7cff; }

html[data-crm-theme="orbit"] .crm-promo-bar,
html[data-crm-theme="orbit"] .crm-intro-stack--with-hero .crm-promo-bar::after { display: none; }
html[data-crm-theme="orbit"] .crm-page-hero {
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: 0 28px;
  border-radius: 0;
  --beru-pointer-x: 76%;
  --beru-pointer-y: 35%;
  background: radial-gradient(330px circle at var(--beru-pointer-x) var(--beru-pointer-y), rgba(100, 176, 255, .26), transparent 75%),
              radial-gradient(circle at 78% -30%, rgba(78, 117, 255, .38), transparent 29%),
              radial-gradient(circle at 23% 130%, rgba(42, 194, 208, .14), transparent 35%),
              linear-gradient(115deg, #0e1d40, #142751 62%, #162756);
}
html[data-crm-theme="orbit"] .crm-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .25;
  pointer-events: none;
  background-image: linear-gradient(rgba(173, 204, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(173, 204, 255, .13) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 62%);
}
html[data-crm-theme="orbit"] .crm-page-hero::after {
  content: "";
  display: block;
  position: absolute;
  width: 320px;
  height: 320px;
  top: -116px;
  right: 8%;
  margin: 0;
  border: 1px solid rgba(161, 221, 255, .23);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 0 26%, rgba(137, 200, 255, .18) 26.3% 26.8%, transparent 27.1% 48%, rgba(137, 200, 255, .13) 48.3% 48.8%, transparent 49%);
  box-shadow: 0 0 68px rgba(58, 154, 243, .13), inset 0 0 48px rgba(76, 141, 255, .08);
  animation: beru-orbit-drift 13s ease-in-out infinite alternate;
}
html[data-crm-theme="orbit"] .crm-page-hero-inner {
  min-height: 146px;
  padding: 25px 0 25px calc(var(--crm-sidebar-width, 240px) + 22px);
  position: relative;
  z-index: 1;
}
html[data-crm-theme="orbit"] .crm-shell.is-sidebar-collapsed .crm-page-hero-inner { padding-left: 62px; }
html[data-crm-theme="orbit"] .crm-page-title { font-size: clamp(27px, 3vw, 38px); font-weight: 700; letter-spacing: -.045em; }
html[data-crm-theme="orbit"] .crm-page-subtitle { margin-top: 6px; color: #b8c9ea; font-size: 13px; }
html[data-crm-theme="orbit"] .crm-page-hero-meta-label { color: #aabde3; }
html[data-crm-theme="orbit"] .crm-page-hero-meta-value { color: #fff; }
html[data-crm-theme="orbit"] .crm-page-hero .crm-sidebar-rail-btn { left: calc(var(--crm-sidebar-width, 240px) - 18px); }
html[data-crm-theme="orbit"] .crm-sidebar-rail-btn { background: #dff6ff; color: #17336f; box-shadow: 0 6px 16px rgba(4, 17, 48, .22); }
html[data-crm-theme="orbit"] .crm-shell.is-sidebar-collapsed .crm-page-hero .crm-sidebar-rail-btn { left: 16px; }

html[data-crm-theme="orbit"] .crm-shell-row { background: #edf1f8; }
html[data-crm-theme="orbit"] .crm-sidebar {
  background: #101d3b;
  border-right: 1px solid rgba(135, 164, 224, .18);
  color: #c7d5f0;
  box-shadow: 12px 0 26px rgba(25, 42, 82, .06);
}
html[data-crm-theme="orbit"] .crm-sidebar-head { border-color: rgba(166, 191, 243, .12); padding: 20px 17px 10px; }
html[data-crm-theme="orbit"] .crm-sidebar-label { color: #7f95bd; letter-spacing: .17em; font-size: 10px; }
html[data-crm-theme="orbit"] .crm-sidebar-nav { padding: 10px 11px 20px; gap: 3px; }
html[data-crm-theme="orbit"] .crm-sidebar-item { justify-content: flex-start; color: #c8d7f3; border: 1px solid transparent; border-radius: 11px; padding: 11px 12px; font-weight: 600; transition: background .16s ease, color .16s ease, transform .16s ease; }
html[data-crm-theme="orbit"] .crm-sidebar-icon { display: block; width: 18px; height: 18px; flex: 0 0 18px; margin-right: 4px; color: #91a9d8; }
html[data-crm-theme="orbit"] .crm-sidebar-item.is-active .crm-sidebar-icon { color: #91e9ec; }
html[data-crm-theme="orbit"] .crm-sidebar-item:hover { background: rgba(116, 151, 221, .14); color: #fff; border-color: rgba(160, 196, 255, .08); transform: translateX(2px); }
html[data-crm-theme="orbit"] .crm-sidebar-item.is-active { background: linear-gradient(100deg, #3455b5, #244586); border-color: rgba(160, 197, 255, .35); color: #fff; box-shadow: inset 3px 0 0 #91e9ec, 0 8px 20px rgba(4, 14, 45, .16); }
html[data-crm-theme="orbit"] .crm-sidebar-badge { background: #6d8dff; }
html[data-crm-theme="orbit"] .crm-sidebar-badge,
html[data-crm-theme="orbit"] .crm-sidebar-chevron { margin-left: auto; }
html[data-crm-theme="orbit"] .crm-sidebar-item--sub { padding-left: 22px; font-size: 12px; }
html[data-crm-theme="orbit"] .crm-sidebar-chevron { border-color: #9cb4e0; }

html[data-crm-theme="orbit"] .crm-workspace { background: #edf1f8; }
html[data-crm-theme="orbit"] .crm-workspace--below-hero { margin-top: 0; }
html[data-crm-theme="orbit"] .card:not(#dealRoomFloorPlanModal .card),
html[data-crm-theme="orbit"] .crm-dashboard-card,
html[data-crm-theme="orbit"] .deal-panel,
html[data-crm-theme="orbit"] .price-sidebar,
html[data-crm-theme="orbit"] .crm-module-placeholder-card {
  border: 1px solid #dce4f1;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 28px rgba(24, 43, 91, .055);
}
html[data-crm-theme="orbit"] .card:not(#dealRoomFloorPlanModal .card):hover,
html[data-crm-theme="orbit"] .crm-dashboard-card:hover { box-shadow: 0 13px 30px rgba(26, 52, 111, .095); }
html[data-crm-theme="orbit"] input:not(#dealRoomFloorPlanModal input):not([type="checkbox"]):not([type="radio"]),
html[data-crm-theme="orbit"] select:not(#dealRoomFloorPlanModal select),
html[data-crm-theme="orbit"] textarea:not(#dealRoomFloorPlanModal textarea) { font-family: inherit; }
html[data-crm-theme="orbit"] :focus-visible:not(#dealRoomFloorPlanModal :focus-visible) { outline: 2px solid #4870ed; outline-offset: 2px; }

html[data-crm-theme="orbit"] .crm-dashboard-section-head h2,
html[data-crm-theme="orbit"] .deal-section-title,
html[data-crm-theme="orbit"] .price-title { color: #172951; letter-spacing: -.035em; }
html[data-crm-theme="orbit"] .crm-dashboard-card { border-top: 3px solid #9ab0f8; }
html[data-crm-theme="orbit"] .crm-dashboard-card--success { border-top-color: #4ac9b6; }
html[data-crm-theme="orbit"] .crm-dashboard-card--danger { border-top-color: #eeaa78; }
html[data-crm-theme="orbit"] .crm-dashboard-card-value,
html[data-crm-theme="orbit"] .deals-metric-value { color: #19336b; letter-spacing: -.04em; }
html[data-crm-theme="orbit"] .crm-dashboard-tab.is-active { background: #244ee4; color: #fff; border-color: #244ee4; }
html[data-crm-theme="orbit"] .crm-dashboard-funnel-item { border-top: 3px solid var(--stage-color, #6788ee); }

html[data-crm-theme="orbit"] .deals-page { padding-top: 22px; }
html[data-crm-theme="orbit"] .deals-filters { border-radius: 18px; }
html[data-crm-theme="orbit"] .deals-metric { border: 1px solid #dce4f1; border-radius: 16px; background: #fff; box-shadow: 0 7px 28px rgba(24, 43, 91, .055); }
html[data-crm-theme="orbit"] .deals-kanban { gap: 14px; }
html[data-crm-theme="orbit"] .deals-kanban-col { border-color: #d6e0f0; border-radius: 17px; background: #f7f9fe; box-shadow: 0 10px 28px rgba(23, 46, 105, .07); }
html[data-crm-theme="orbit"] .deals-kanban-head { background: #fff; color: #172951; text-align: left; border-top: 4px solid var(--stage-color, #627fe8); border-bottom: 1px solid #e2e8f2; padding: 13px 14px 12px; }
html[data-crm-theme="orbit"] .deals-kanban-title { font-size: 12px; }
html[data-crm-theme="orbit"] .deals-kanban-sum { color: #697991; }
html[data-crm-theme="orbit"] .deals-kanban-body { background: #f7f9fe; padding: 9px; }
html[data-crm-theme="orbit"] .deals-kanban-card { border-color: #dce4f1; border-radius: 13px; padding: 13px; box-shadow: 0 3px 12px rgba(25, 44, 89, .05); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
html[data-crm-theme="orbit"] .deals-kanban-card:hover { transform: translateY(-3px); border-color: #8ba5ef; box-shadow: 0 12px 26px rgba(26, 54, 115, .14); }
html[data-crm-theme="orbit"] .deals-kanban-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% -20%, rgba(112, 162, 255, .18), transparent 60%);
  transition: opacity .2s ease;
}
html[data-crm-theme="orbit"] .deals-kanban-card:hover::after { opacity: 1; }
html[data-crm-theme="orbit"] .deals-kanban-card--contract { background: #f0faf7; }
html[data-crm-theme="orbit"] .deals-kanban-card--installation { background: #f1f4ff; }
html[data-crm-theme="orbit"] .deals-kanban-card--warranty { background: #f7f3ff; }
html[data-crm-theme="orbit"] .deals-btn--green,
html[data-crm-theme="orbit"] .deal-btn--primary:not(#dealRoomFloorPlanModal .deal-btn--primary) { background: #294de3; border-color: #294de3; color: #fff; }
html[data-crm-theme="orbit"] .deals-btn--green:hover,
html[data-crm-theme="orbit"] .deal-btn--primary:not(#dealRoomFloorPlanModal .deal-btn--primary):hover { background: #163bc4; border-color: #163bc4; }
html[data-crm-theme="orbit"] .deals-btn--new { box-shadow: 0 5px 15px rgba(41, 77, 227, .22); }
html[data-crm-theme="orbit"] .price-tool-btn:not(#dealRoomFloorPlanModal .price-tool-btn) { background: #294de3; color: #fff; border-radius: 10px; }
html[data-crm-theme="orbit"] .price-tool-btn--secondary:not(#dealRoomFloorPlanModal .price-tool-btn--secondary) { background: #dceafb; color: #2148b1; }
html[data-crm-theme="orbit"] .deal-btn--pink:not(#dealRoomFloorPlanModal .deal-btn--pink) { background: #4261e5; border-color: #4261e5; }
html[data-crm-theme="orbit"] .deal-page-topbar,
html[data-crm-theme="orbit"] .deal-estimate-room-topbar { background: #edf1f8; margin: 0; padding: 12px 24px 0; }
html[data-crm-theme="orbit"] .deal-page-topbar-back,
html[data-crm-theme="orbit"] .deal-estimate-room-topbar-back {
  background: #fff;
  color: #2547b7;
  border: 1px solid #d9e3f4;
  box-shadow: 0 3px 10px rgba(24, 43, 91, .07);
}
html[data-crm-theme="orbit"] .crm-tasks-create-btn { background: #294de3; border-color: #294de3; color: #fff; }
html[data-crm-theme="orbit"] .crm-tasks-create-btn:hover { background: #163bc4; border-color: #163bc4; }
html[data-crm-theme="orbit"] .estimate-admin-page .deal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid #d9e3f4;
  border-radius: 10px;
  background: #fff;
  color: #2547b7;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
html[data-crm-theme="orbit"] .estimate-admin-page .deal-btn--primary {
  background: #294de3;
  border-color: #294de3;
  color: #fff;
}
html[data-crm-theme="orbit"] .estimate-admin-page .deal-btn--ghost:hover { background: #eaf0ff; }
html[data-crm-theme="orbit"] .estimate-admin-page .deal-btn--primary:hover { background: #163bc4; border-color: #163bc4; }

html[data-crm-theme="orbit"] .login-page { min-height: 100vh; background: radial-gradient(circle at 80% 20%, #32569f 0, #132b5f 35%, #0c1730 75%); }
html[data-crm-theme="orbit"] .login-page-body { background: transparent; }
html[data-crm-theme="orbit"] .login-card { border: 1px solid rgba(150, 193, 255, .23); background: rgba(255,255,255,.97); box-shadow: 0 26px 70px rgba(0, 5, 23, .3); border-radius: 24px; }
html[data-crm-theme="orbit"] .login-btn { background: #294de3; color: #fff; border-radius: 10px; }

html[data-crm-theme="orbit"] :is(.crm-theme-toggle, .deals-btn, .price-tool-btn, .deal-btn, .login-btn, .crm-tasks-create-btn):not(#dealRoomFloorPlanModal *) {
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
}
html[data-crm-theme="orbit"] :is(.crm-theme-toggle, .deals-btn, .price-tool-btn, .deal-btn, .login-btn, .crm-tasks-create-btn):not(#dealRoomFloorPlanModal *):active { transform: translateY(1px) scale(.985); }
html[data-crm-theme="orbit"] .beru-click-wave {
  position: absolute;
  z-index: 1;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .43);
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: beru-click-wave .58s ease-out forwards;
}

@keyframes beru-orbit-drift {
  from { transform: translate3d(0, 0, 0) rotate(-6deg); opacity: .65; }
  to { transform: translate3d(-34px, 14px, 0) rotate(10deg); opacity: 1; }
}
@keyframes beru-click-wave {
  to { transform: translate(-50%, -50%) scale(17); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html[data-crm-theme="orbit"] .crm-page-hero::after { animation: none; }
  html[data-crm-theme="orbit"] .beru-click-wave { display: none; }
  html[data-crm-theme="orbit"] .crm-theme-toggle,
  html[data-crm-theme="orbit"] .crm-sidebar-item,
  html[data-crm-theme="orbit"] .deals-kanban-card,
  html[data-crm-theme="orbit"] :is(.deals-btn, .price-tool-btn, .deal-btn, .login-btn, .crm-tasks-create-btn):not(#dealRoomFloorPlanModal *) { transition: none; }
}

@media (max-width: 900px) {
  html[data-crm-theme="orbit"] .crm-topbar-inner { padding: 7px 15px; }
  html[data-crm-theme="orbit"] .crm-theme-toggle { margin-left: auto; }
  html[data-crm-theme="orbit"] .crm-theme-toggle-label { display: none; }
  html[data-crm-theme="orbit"] .crm-page-hero { padding: 0 16px; }
  html[data-crm-theme="orbit"] .crm-page-hero-inner { min-height: 126px; padding: 22px 0 22px 46px; }
  html[data-crm-theme="orbit"] .crm-workspace--below-hero { padding-top: 16px; }
}
