/* The product parts, one copy for the whole site: chips, tiles, avatars, tool logos, small buttons, live dots, and the
   BraindOS window (muted macOS dots, the mark, "BraindOS" and a breadcrumb, a status chip, an icon rail on the large
   windows with the current view lit, a glass body, a small "Illustrative" tag). Inside every product screen one type
   scale (11, 12.5, 14, 16px) and an 8px grid. Also the plain product card (a deliverable or a flow, not a window). */

/* Small parts */
.chip{display:inline-flex;align-items:center;gap:6px;padding:3px 9px 3px 8px;border-radius:999px;background:rgba(11,17,16,.055);color:var(--ink-2);font:500 11px/1.3 var(--sans);white-space:nowrap}
.chip>i{width:6px;height:6px;border-radius:50%;background:#9AA29F}
.chip-live>i{background:var(--live);box-shadow:0 0 0 3px rgba(47,143,106,.16)}
.chip-ok{background:rgba(47,143,106,.12);color:#15463A}
.chip-ok>i{background:var(--teal)}
.chip-wait{background:#FBF0DC;color:#6E4A10}
.chip-wait>i{background:var(--wait)}
.chip-ink{background:var(--ink);color:#fff}
.chip-ink>i{background:#9BE0BF}
.tile{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:rgba(11,17,16,.06);color:var(--ink)}
.tile-ink{background:linear-gradient(160deg,#1C2622,#0B1110);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.tile-sm{width:22px;height:22px;border-radius:7px}
.tile-sm .i{width:12px;height:12px}
.av{display:inline-grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;font:600 9.5px/1 var(--sans);letter-spacing:.02em;background:#E2E7E5;color:var(--ink-2)}
.av-g{background:#D8EAE1;color:#15463A}
.av-b{background:#DCE5F1;color:#1D3F66}
.av-p{background:#E7E1F4;color:#3E3270}
.lg{display:inline-grid;place-items:center;flex:none;width:28px;height:28px;border-radius:8px;background:#fff;border:1px solid rgba(11,17,16,.08)}
.lg img{width:15px;height:15px;object-fit:contain}
.lg-xs{width:20px;height:20px;border-radius:6px}
.lg-xs img{width:12px;height:12px}
.btn-s{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:8px;border:1px solid rgba(11,17,16,.12);background:rgba(255,255,255,.8);font:500 11.5px/1.3 var(--sans);color:var(--ink);white-space:nowrap}
.btn-s-ink{background:linear-gradient(180deg,#1E2724,#0B1110);border-color:#0B1110;color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 6px 14px -8px rgba(8,20,16,.6)}
.dot-w,.dot-l{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:var(--wait)}
.dot-l{background:var(--live);box-shadow:0 0 0 3px rgba(47,143,106,.18)}
.wave{display:inline-flex;gap:3px}
.wave i{width:4px;height:4px;border-radius:50%;background:var(--live)}
/* A rank: five segments, n lit (never a figure) */
.seg{display:inline-flex;gap:3px}
.seg i{width:14px;height:6px;border-radius:2px;background:rgba(11,17,16,.1)}
.seg i.on{background:linear-gradient(90deg,#4FA982,var(--live))}
.spark{display:block;width:100%;height:30px;overflow:visible}
.spark path{fill:none;stroke:var(--live);stroke-width:1.8;stroke-linecap:round;vector-effect:non-scaling-stroke}

/* The window */
.bos{position:relative;width:100%;margin:0;border-radius:16px;background:var(--g-bg);border:1px solid var(--g-line);box-shadow:var(--g-shadow);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);color:var(--ink);font:400 12.5px/1.45 var(--sans);text-align:left;overflow:hidden;container-type:inline-size}
.bos-bar{display:flex;align-items:center;gap:12px;height:38px;padding:0 14px;background:linear-gradient(180deg,rgba(255,255,255,.66),rgba(255,255,255,.4));border-bottom:1px solid rgba(11,17,16,.07)}
.bos-dots{display:flex;gap:6px;flex:none}
.bos-dots i{width:10px;height:10px;border-radius:50%;background:#DE8E83;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.14)}
.bos-dots i:nth-child(2){background:#E4BC6E}
.bos-dots i:nth-child(3){background:#93C49F}
.bos-title{flex:1;display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap;overflow:hidden}
.bos-title b{font-weight:600;letter-spacing:-.005em}
.bos-mark{display:inline-block;flex:none;width:10px;height:10px;border-radius:3px;background:var(--ink)}
.bos-crumb{display:inline-flex;align-items:center;gap:6px;color:var(--grey)}
.bos-crumb .i{color:#A0A8A5}
.bos-name{display:inline-flex;align-items:center;gap:8px;min-width:0;color:var(--ink-2);font-weight:500;overflow:hidden;text-overflow:ellipsis}
.bos-name::before{content:"";flex:none;width:3px;height:3px;border-radius:50%;background:#A0A8A5}
.bos-right{flex:none;display:flex}
.bos-main{display:grid;grid-template-columns:minmax(0,1fr)}
.bos-main:has(.bos-rail){grid-template-columns:52px minmax(0,1fr)}
.bos-rail{display:flex;flex-direction:column;align-items:center;gap:6px;padding:14px 0 44px;background:rgba(255,255,255,.28);border-right:1px solid rgba(11,17,16,.06)}
.bos-ri{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;color:#8A928F}
.bos-ri.on{background:linear-gradient(160deg,#1C2622,#0B1110);color:#fff;box-shadow:0 6px 14px -8px rgba(8,20,16,.7)}
.bos-body{display:grid;gap:16px;min-width:0;padding:18px 18px 40px}
.bos-tag{position:absolute;left:12px;bottom:10px;padding:2px 7px;border-radius:5px;background:rgba(255,255,255,.7);font:500 9.5px/1.4 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--grey)}
.bos-main:has(.bos-rail)~.bos-tag{left:64px}
.bos-k{font:500 10.5px/1.3 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--grey)}
.bos-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:12px;border-top:1px solid rgba(11,17,16,.07);color:var(--ink-2);font-weight:500}
.bos-foot>span:first-child{display:inline-flex;align-items:center;gap:6px}
.bos-foot .i{color:var(--live)}
.bos-sm .bos-bar{height:32px;padding:0 10px;gap:8px}
.bos-sm .bos-dots i{width:8px;height:8px}
.bos-sm .bos-body{padding:12px 12px 32px;gap:8px}
.bos-sm .bos-tag{left:10px;bottom:8px}

/* Inside a screen: the view's title row, panels with a head, a select */
.os-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.os-h b{font:600 16px/1.2 var(--sans);letter-spacing:-.02em}
.os-sel{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:8px;background:rgba(255,255,255,.75);border:1px solid rgba(11,17,16,.1);font-size:11.5px;font-weight:500}
.os-panel{display:grid;align-content:start;gap:4px;padding:12px 14px 10px;border-radius:12px;background:rgba(255,255,255,.68);border:1px solid rgba(255,255,255,.8);box-shadow:0 1px 2px rgba(8,30,24,.05)}
.os-ph{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-bottom:8px;border-bottom:1px solid rgba(11,17,16,.07)}
.os-ph b{font-weight:600;font-size:12.5px}
.os-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 9px 3px 7px;border-radius:999px;background:var(--ink);color:#fff;font:500 11px/1.3 var(--sans)}
.os-chip .bos-mark{width:8px;height:8px;border-radius:2px;background:#fff}

/* The plain product card: a deliverable or a flow, on a photograph, white glass without window chrome */
.card{position:relative;display:grid;gap:12px;padding:16px 16px 40px;border-radius:16px;background:linear-gradient(160deg,rgba(255,255,255,.9),color-mix(in srgb,var(--tint) 22%,rgba(255,255,255,.78)));border:1px solid rgba(255,255,255,.8);box-shadow:var(--g-shadow);-webkit-backdrop-filter:var(--g-blur);backdrop-filter:var(--g-blur);color:var(--ink);font:400 12.5px/1.45 var(--sans);container-type:inline-size}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid rgba(11,17,16,.07)}
.card-t{display:flex;align-items:center;gap:10px;min-width:0}
.card-t b{display:block;font:600 14px/1.25 var(--sans);letter-spacing:-.01em}
.card-t small{display:block;color:var(--grey);font-size:11px}
.card-f{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;padding-top:12px;border-top:1px solid rgba(11,17,16,.07)}
.card .bos-tag{left:16px}

@media (prefers-reduced-motion:no-preference){
  .chip-live>i,.dot-l{animation:os-pulse 2.6s ease-in-out infinite}
  .wave i{animation:os-wave 1.4s ease-in-out infinite}
  .wave i:nth-child(2){animation-delay:.18s}
  .wave i:nth-child(3){animation-delay:.36s}
}
@keyframes os-pulse{50%{box-shadow:0 0 0 5px rgba(47,143,106,0)}}
@keyframes os-wave{0%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-2px)}}
.is-paused :is(.chip-live>i,.dot-l,.wave i){animation-play-state:paused}

/* Small windows keep only what matters */
@container (max-width:560px){
  .bos-main:has(.bos-rail){grid-template-columns:minmax(0,1fr)}
  .bos-rail{display:none}
  .bos-main:has(.bos-rail)~.bos-tag{left:12px}
  .bos-crumb{display:none}
  .bos-body{padding:14px 12px 40px}
}
@container (max-width:380px){
  .bos-name{display:none}
  .bos-bar{gap:8px;padding:0 10px}
  .bos-right .chip{padding:2px 7px;font-size:10px}
}
