/* Life OS shell kit v1 (docs/LIFE-OS-KIT.md). Every class starts with .los- so it never clashes with a product's own CSS.
   Brand gradients and glass cards, never black backgrounds. Override the colours with --los-* on :root. */
:root {
  --los-bar: linear-gradient(90deg, #00a8ff 0%, #00a8ff 30%, #64dd17 100%);
  --los-accent: #0086d1;
  --los-ink: #1b2a41;
  --los-muted: #5b6b82;
  --los-glass: rgba(255, 255, 255, 0.96);
  --los-line: rgba(27, 42, 65, 0.10);
  --los-shadow: 0 18px 48px rgba(20, 60, 120, 0.22);
  --los-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* the full bar (data-mode="bar") */
.los-bar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 16px;
  background: var(--los-bar); font-family: var(--los-font); color: #fff; box-shadow: 0 2px 12px rgba(0, 90, 160, 0.18); }
.los-brand { display: flex; align-items: center; gap: 10px; color: #fff !important; text-decoration: none !important; font-weight: 800; font-size: 18px; min-width: 0; }
.los-brand img { width: 34px; height: 34px; border-radius: 10px; }
.los-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.los-spacer { flex: 1 1 auto; }
.los-tools { display: flex; align-items: center; gap: 4px; flex: none; }

/* round buttons (launcher, bell, AI, country, account) */
.los-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; font: 600 15px var(--los-font); padding: 0; text-decoration: none !important; }
.los-btn:hover, .los-btn[aria-expanded="true"] { background: rgba(255, 255, 255, 0.2); }
.los-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.los-btn svg { width: 20px; height: 20px; fill: currentColor; }
.los-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff;
  font: 700 11px/18px var(--los-font); text-align: center; box-shadow: 0 0 0 2px rgba(0, 120, 200, 0.5); }
.los-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.28); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.los-country { width: auto; padding: 0 10px; border-radius: 20px; font-size: 13px; }
.los-signin { width: auto; padding: 0 14px; border-radius: 20px; background: rgba(255, 255, 255, 0.22); }

/* panels (launcher, bell, account) */
.los-panel { position: fixed; z-index: 2000; top: 64px; right: 12px; width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 80px); overflow: auto;
  background: var(--los-glass); backdrop-filter: blur(14px); border: 1px solid var(--los-line); border-radius: 18px; box-shadow: var(--los-shadow);
  color: var(--los-ink); font: 14px/1.4 var(--los-font); padding: 14px; text-align: left; }
.los-panel[hidden] { display: none; }
.los-panel h3 { margin: 4px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--los-muted); text-align: center; }
.los-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 10px; }
.los-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px 8px; border-radius: 14px; color: var(--los-ink) !important;
  text-decoration: none !important; text-align: center; min-width: 0; }
.los-tile:hover, .los-tile:focus-visible { background: #eef7ff; }
.los-ico { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
  box-shadow: 0 4px 12px rgba(20, 60, 120, 0.15); }
.los-name { font-size: 12.5px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.los-chip { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: linear-gradient(90deg, #00a8ff, #64dd17); color: #fff; white-space: nowrap; }
.los-chip.los-soon { background: #e8eef7; color: var(--los-muted); }
.los-chip.los-18 { background: #f1e8ff; color: #6d28d9; }
.los-admin { display: block; font-size: 10px; font-style: normal; color: var(--los-muted); }
.los-locked .los-ico { filter: saturate(.55); opacity: .85; }

.los-suggest { display: flex; align-items: center; gap: 10px; padding: 10px; margin: 0 0 12px; border-radius: 14px; background: linear-gradient(90deg, rgba(0,168,255,.10), rgba(100,221,23,.12));
  color: var(--los-ink) !important; text-decoration: none !important; }
.los-suggest b { display: block; font-size: 13.5px; }
.los-suggest small { color: var(--los-muted); }
.los-suggest .los-chip { margin-left: auto; }

.los-org { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.los-org label { font-size: 12px; font-weight: 700; color: var(--los-muted); white-space: nowrap; }
.los-org select { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--los-line); border-radius: 10px; background: #fff; color: var(--los-ink); font: inherit; }

.los-foot { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; border-top: 1px solid var(--los-line); padding-top: 10px; margin-top: 4px; }
.los-foot a { flex: 1 1 0; min-width: 120px; text-align: center; padding: 8px 10px; border-radius: 12px; font-weight: 700; font-size: 13px; text-decoration: none !important;
  color: #fff !important; background: var(--los-bar); }
.los-foot a.los-ghost { background: #eef7ff; color: var(--los-accent) !important; }
.los-works { margin: 8px 0 0; font-size: 12px; color: var(--los-muted); text-align: center; }

.los-list { list-style: none; margin: 0; padding: 0; }
.los-list a { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 12px; color: var(--los-ink) !important; text-decoration: none !important; }
.los-list a:hover { background: #eef7ff; }
.los-list .los-ico { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }
.los-list em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--los-accent); font-size: 12.5px; }
.los-empty { text-align: center; color: var(--los-muted); padding: 14px 6px; margin: 0; }

/* the AI drawer */
.los-drawer { position: fixed; z-index: 2100; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); display: flex; flex-direction: column;
  background: var(--los-glass); backdrop-filter: blur(16px); box-shadow: var(--los-shadow); font: 14px/1.45 var(--los-font); color: var(--los-ink);
  transform: translateX(105%); transition: transform .22s ease; }
.los-drawer.los-open { transform: none; }
.los-drawer header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--los-bar); color: #fff; }
.los-drawer header b { flex: 1; text-align: center; font-size: 15px; }
.los-drawer header .los-btn { width: 34px; height: 34px; }
.los-scope { margin: 0; padding: 8px 14px; font-size: 12px; color: var(--los-muted); text-align: center; border-bottom: 1px solid var(--los-line); }
.los-msgs { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.los-msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.los-msg.los-me { align-self: flex-end; background: var(--los-bar); color: #fff; }
.los-msg.los-ai { align-self: flex-start; background: #eef7ff; }
.los-msg small { display: block; margin-top: 4px; font-size: 10.5px; color: var(--los-muted); }
.los-ask { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--los-line); }
.los-ask textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px; border: 1px solid var(--los-line); border-radius: 12px; font: inherit; color: var(--los-ink); background: #fff; }
.los-ask button { flex: none; padding: 0 16px; border: 0; border-radius: 12px; background: var(--los-bar); color: #fff; font-weight: 800; cursor: pointer; }
.los-ask button:disabled { opacity: .6; cursor: default; }
.los-label { margin: 0; padding: 0 14px 10px; font-size: 11px; color: var(--los-muted); text-align: center; }

@media (max-width: 600px) {
  .los-bar { padding: 0 8px; gap: 4px; }
  .los-brand span { font-size: 16px; }
  .los-btn { width: 36px; height: 36px; }
  .los-panel { top: 60px; right: 8px; left: 8px; width: auto; }
  .los-hide-sm { display: none !important; }
}

/* enhance mode inside brainmify.com's bar: phones and tablets keep the centred logo clear; Ask AI is in the launcher */
@media (max-width: 1199.98px) {
  .bm-nav-right .los-btn[data-los-toggle="ai"] { display: none; }
  .bm-nav-right .los-btn { width: 34px; height: 34px; }
}
.los-foot button { flex: 1 1 0; min-width: 120px; padding: 8px 10px; border: 0; border-radius: 12px; font: 700 13px var(--los-font); cursor: pointer;
  color: #fff; background: var(--los-bar); }
