/* Bula Score - flat design, all widths. Loads LAST so it wins over the glass / lightups / metric themes.
   Language: pale sky page, white 20px cards with a soft shadow, pale-blue inner rows, dark readable text,
   soft status pills, one blue accent. Colours that carry meaning (bars, warnings) keep their own colour. */

@layer bula-flat {
:root{
  --bf-page:#EEF4F8; --bf-card:#FFFFFF; --bf-row:#EEF5FA; --bf-line:rgba(13,31,43,.08);
  --bf-ink:#1B2B38; --bf-body:#2F4350; --bf-muted:#4A5D6B; --bf-blue:#2962FF; --bf-brand:#1B5E80;
  --bf-shadow:0 1px 4px rgba(13,31,43,.08);
}

:root body{background:var(--bf-page)!important;color:var(--bf-ink)!important}
:root body .content,:root body .main{background:transparent!important}

/* no glass, no glow, no text shadows anywhere in the content */
:root body .content *{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:none!important}

/* ---- cards ---- */
:root body .content .card{
  background:var(--bf-card)!important;background-image:none!important;border:0!important;
  border-radius:20px!important;box-shadow:var(--bf-shadow)!important;padding:22px!important;color:var(--bf-ink)!important;
}
:root body .content .card:hover{transform:none!important;box-shadow:var(--bf-shadow)!important}
:root body .content .card h2,:root body .content .card h3{color:var(--bf-ink)!important;font-size:20px!important;font-weight:700!important;margin:0 0 6px!important}
:root body .content .card p{color:var(--bf-body)!important;font-size:16px!important;line-height:1.5!important;opacity:1!important}
:root body .content .card .sub,:root body .content .card .muted,:root body .content .card small,
:root body .content .card .meta,:root body .content .card .band-range,:root body .content .card .time,
:root body .content .card .ago,:root body .content .card .date{color:var(--bf-muted)!important;opacity:1!important;font-size:15px!important}

/* ---- the "metric" dark theme: undone ---- */
:root body .content .tiles{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:0 0 16px!important;gap:12px!important}
:root body .content .tile{
  background:var(--bf-card)!important;background-image:none!important;border:0!important;border-left:0!important;
  border-radius:16px!important;box-shadow:var(--bf-shadow)!important;padding:16px!important;min-height:88px!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;color:var(--bf-ink)!important;
}
:root body .content .tile::before,:root body .content .tile::after{display:none!important}
:root body .content .tile:hover{transform:none!important;box-shadow:var(--bf-shadow)!important}
:root body .content .tile .k{color:var(--bf-muted)!important;font-size:13px!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;margin:0 0 4px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
:root body .content .tile .v{color:var(--bf-ink)!important;font-size:26px!important;font-weight:700!important;letter-spacing:-.02em!important;line-height:1.1!important;white-space:nowrap!important;margin:0!important}
:root body .content .tile .v small{color:var(--bf-muted)!important;font-size:14px!important}

:root body .content .card:has(.factor),:root body .content .card:has(.chart-svg){background:var(--bf-card)!important;background-image:none!important;color:var(--bf-ink)!important}
:root body .content .card:has(.factor)::before,:root body .content .card:has(.factor)::after,
:root body .content .card:has(.chart-svg)::before,:root body .content .card:has(.chart-svg)::after{display:none!important}
:root body .content .card:has(.factor) h3,:root body .content .card:has(.chart-svg) h3{color:var(--bf-ink)!important}
:root body .content .card:has(.factor) .sub,:root body .content .card:has(.chart-svg) .sub{color:var(--bf-muted)!important}

/* ---- factors ---- */
:root body .content .factor{background:var(--bf-row)!important;border:0!important;border-radius:14px!important;padding:14px 16px!important;margin:0 0 10px!important;box-shadow:none!important}
:root body .content .factor .top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;margin-bottom:10px!important}
:root body .content .factor .name{color:var(--bf-ink)!important;font-size:16px!important;font-weight:600!important}
:root body .content .factor .name span{color:var(--bf-muted)!important;font-size:13px!important;font-weight:500!important;margin-left:6px!important}
:root body .content .track{background:#DCE6EE!important;height:8px!important;border-radius:8px!important;overflow:hidden!important;border:0!important}
:root body .content .fill{height:8px!important;border-radius:8px!important;opacity:1!important}
:root body .content .rate{border:0!important;border-radius:999px!important;padding:4px 12px!important;font-size:13px!important;font-weight:700!important;line-height:1.3!important;box-shadow:none!important;background-image:none!important}
:root body .content .rate.tag-help{background:#E3F5E8!important;color:#1E6B3A!important}
:root body .content .rate.tag-hurt{background:#FDE8E4!important;color:#9A3B2A!important}

/* ---- inner rows: accounts, alerts, searches ---- */
:root body .content .card .alert,:root body .content .card .acct,:root body .content .card .account,
:root body .content .card .search,:root body .content .card .item,:root body .content .card li{
  background:var(--bf-row)!important;background-image:none!important;border:0!important;border-left:0!important;
  box-shadow:none!important;border-radius:14px!important;padding:14px 16px!important;margin:0 0 10px!important;color:var(--bf-ink)!important;
}
:root body .content .card .alert:hover{transform:none!important}
:root body .content .card .card{background:var(--bf-row)!important;box-shadow:none!important;border-radius:14px!important;padding:14px 16px!important;margin:0 0 10px!important}

/* ---- hero bits ---- */
:root body .content .band-pill{background:var(--bf-row)!important;color:var(--bf-ink)!important;border:0!important;box-shadow:none!important;font-weight:700!important}
:root body .content .freeze-tag{background:#FFF4DE!important;background-image:none!important;border:0!important;border-radius:14px!important;color:#5A3D00!important;padding:14px 16px!important;font-size:14px!important}
:root body .content .freeze-tag b{color:#7A4F00!important}
:root body .content .freeze-tag .ic{color:#B8860B!important}
:root body .content .badge,:root body .content .chip,:root body .content .pill,:root body .content .status{background:#E3EEF7!important;color:var(--bf-ink)!important;border:0!important;font-weight:700!important}

/* ---- links and buttons inside content ---- */
:root body .content .card a:not(.btn){color:var(--bf-blue)!important;font-weight:600!important;text-decoration:none!important}
:root body .content .btn,:root body .content button.primary{background:var(--bf-brand)!important;color:#fff!important;border:0!important;border-radius:10px!important;font-weight:700!important;box-shadow:none!important}

/* ---- no glow / outline light-ups on anything ---- */
:root body .content .card,:root body .content .tile,:root body .content .factor,:root body .content .alert,
:root body .content .acct,:root body .content .search,:root body .content .item,
:root body .content .card:hover,:root body .content .card:focus-within,:root body .content .tile:hover,:root body .content .tile:focus-within,
:root body .content .factor:hover,:root body .content .alert:hover,:root body .content .acct:hover,:root body .content .search:hover,
:root body .content .clickable:hover,:root body .content .clickable:focus-within{
  outline:0!important;filter:none!important;
}
:root body .content .card:hover,:root body .content .card:focus-within{box-shadow:var(--bf-shadow)!important}
:root body .content .tile:hover,:root body .content .tile:focus-within{box-shadow:var(--bf-shadow)!important}
:root body .content .factor,:root body .content .alert,:root body .content .acct,:root body .content .search,:root body .content .item,
:root body .content .factor:hover,:root body .content .alert:hover,:root body .content .acct:hover,:root body .content .search:hover{box-shadow:none!important;border:0!important}
:root body .content .alert.unseen{background:#E3EEF7!important;background-image:none!important}
:root body .content .card::before,:root body .content .card::after,:root body .content .alert::before,:root body .content .alert::after,
:root body .content .acct::before,:root body .content .acct::after,:root body .content .search::before,:root body .content .search::after{display:none!important}
:root body .content .card :focus-visible{outline:2px solid var(--bf-blue)!important;outline-offset:2px!important}

/* ---- section wrappers lose tints ---- */
:root body .content .grid,:root body .content section,:root body .content .section{background:none!important;border:0!important;box-shadow:none!important;padding:0!important}

/* ---- desktop sidebar: calm it to match ---- */
:root body .side{background:#fff!important;background-image:none!important;border-right:1px solid var(--bf-line)!important;box-shadow:none!important;color:var(--bf-ink)!important}
:root body .side .nav a{color:var(--bf-body)!important;border-radius:12px!important;border:0!important;background:none!important;box-shadow:none!important;backdrop-filter:none!important;font-weight:600!important;margin:0 0 2px!important}
:root body .side .nav a:hover{background:var(--bf-row)!important}
:root body .side .nav a.active{background:var(--bf-row)!important;color:var(--bf-brand)!important}
:root body .side .brand .mark,:root body .side .dimau-owner-logo-frame{box-shadow:0 1px 4px rgba(13,31,43,.14)!important;border:0!important}
@media (min-width:769px){ :root body .dm-acct{display:none!important} }
:root body .content .factor .name{display:flex!important;flex-direction:column!important;gap:2px!important;white-space:nowrap!important}
:root body .content .factor .name span{margin-left:0!important}
:root body .side .side-tag,:root body .side .nav-section,:root body .side .side-foot{color:var(--bf-muted)!important}
:root body .topbar{background:#fff!important;background-image:none!important;border-bottom:1px solid var(--bf-line)!important;box-shadow:none!important;color:var(--bf-ink)!important;
  display:flex!important;align-items:center!important;gap:10px!important;min-height:60px!important;padding:8px 20px!important}
:root body .topbar h2{font-size:17px!important;font-weight:700!important;color:var(--bf-ink)!important;margin:0 auto 0 4px!important}
:root body .topbar .menu-btn{border:0!important;background:none!important;box-shadow:none!important;color:var(--bf-ink)!important;width:40px!important;height:40px!important;border-radius:50%!important}
:root body .topbar .menu-btn:hover{background:var(--bf-row)!important}
:root body .topbar .region-bar{background:none!important;border:0!important;padding:0!important;margin:0!important;box-shadow:none!important}
:root body .topbar .region-label{display:none!important}
:root body .topbar .ctry-pill,:root body .topbar .share-btn{height:38px!important;padding:0 14px!important;border:1px solid var(--bf-line)!important;border-radius:999px!important;
  background:#fff!important;color:var(--bf-ink)!important;font-size:14px!important;font-weight:600!important;box-shadow:none!important;backdrop-filter:none!important}
:root body .topbar .ctry-pill:hover,:root body .topbar .share-btn:hover{background:var(--bf-row)!important}
:root body .topbar .share-live{display:none!important}
:root body .topbar .who{display:none!important}
:root body .topbar .avatar{width:40px!important;height:40px!important;border-radius:50%!important;border:0!important;background:var(--bf-row)!important;color:var(--bf-brand)!important;font-weight:700!important;font-size:14px!important;box-shadow:none!important}
:root body .topbar .dimau-mobile-brand{gap:10px!important}
:root body .topbar .dimau-mobile-brand span{font-size:17px!important;font-weight:700!important;color:var(--bf-ink)!important}

/* floating helpers (demo guide, tour, Bula) sit as calm pills, never over content */
:root body #dg-launcher,:root body #gt-launcher{background:#fff!important;border:1px solid var(--bf-line)!important;border-radius:999px!important;box-shadow:0 2px 10px rgba(13,31,43,.12)!important;
  color:var(--bf-ink)!important;font-weight:600!important;font-size:14px!important;height:40px!important;padding:0 14px 0 10px!important;backdrop-filter:none!important}
:root body #dg-launcher{right:16px!important;bottom:16px!important}
:root body #gt-launcher{right:16px!important;bottom:64px!important}
:root body .bw-pill{background:#fff!important;border:1px solid var(--bf-line)!important;box-shadow:0 2px 10px rgba(13,31,43,.12)!important;color:var(--bf-ink)!important;backdrop-filter:none!important}
:root body .content{padding-bottom:72px!important}
}
