/* NOVYR OS app styles. Base is the glass overview (dashboard-overview-glass.html),
   page styles follow at the end. Loaded after assets/apple.css. */

/* ===================================================================
   NOVYR OS · Overview that fits on one screen
   Everything is on the page at once, no scroll on a desktop. A bento
   of cards fills the full width; the contrast cards are the inverse
   colour, the way the reference does it.
   Light theme uses Apple's own neutrals, the ones apple.css names in
   its header (#f5f5f7 #1d1d1f #86868b #6e6e73 #d2d2d7). Dark theme is
   the novyr.agency site. Blue #2997ff stays an accent only.
   =================================================================== */
:root,[data-theme="light"]{
  --x-bg:#f5f5f7; --x-card:#fff; --x-ink:#1d1d1f; --x-sub:#6e6e73; --x-mute:#86868b;
  --x-line:#d2d2d7; --x-soft:rgba(0,0,0,.06); --x-fill:rgba(0,0,0,.045);
  --x-strong:#1d1d1f; --x-on:#f5f5f7; --x-on-sub:#86868b; --x-on-line:rgba(255,255,255,.12);
  --x-tile:rgba(255,255,255,.07); --x-act:#1d1d1f; --x-act-ink:#fff; --x-shadow:0 1px 2px rgba(0,0,0,.04);
}
[data-theme="dark"]{
  --x-bg:#000; --x-card:#101012; --x-ink:#f5f5f7; --x-sub:#86868b; --x-mute:#6e6e73;
  --x-line:rgba(255,255,255,.14); --x-soft:rgba(255,255,255,.08); --x-fill:rgba(255,255,255,.06);
  --x-strong:#1d1d1f; --x-on:#f5f5f7; --x-on-sub:#86868b; --x-on-line:rgba(255,255,255,.12);
  --x-tile:rgba(255,255,255,.06); --x-act:#f5f5f7; --x-act-ink:#000; --x-shadow:none;
}
html,body{height:100%;overflow:hidden}
body{background:var(--x-bg);color:var(--x-ink);font-size:14.5px;transition:background .3s var(--ease)}
::-webkit-scrollbar-track{background:var(--x-bg)}

.xapp{display:grid;grid-template-columns:212px minmax(0,1fr);gap:14px;height:100dvh;padding:14px}

/* ── sidebar ── */
.xside{display:flex;flex-direction:column;min-height:0;background:var(--x-card);border-radius:var(--rad);
  padding:20px 12px 12px;box-shadow:var(--x-shadow);outline:1px solid var(--x-soft);outline-offset:-1px}
.xbrand{display:flex;align-items:center;gap:10px;padding:0 10px 22px}
.xbrand .logoclip img{filter:var(--x-logo,none)}
[data-theme="light"] .xbrand .logoclip img{filter:invert(1)}
.xbrand span{font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--x-mute)}
.xnav{flex:1;min-height:0;overflow-y:auto}
.xgh{font-size:12px;color:var(--x-mute);padding:14px 12px 6px}
.xgh:first-child{padding-top:0}
.xi{display:flex;align-items:center;gap:11px;width:100%;padding:9px 12px;border-radius:980px;border:none;
  background:none;color:var(--x-sub);font-family:var(--sf);font-size:14.5px;letter-spacing:-.008em;
  cursor:pointer;text-align:left;transition:color .22s var(--ease),background .22s var(--ease)}
.xi:hover{color:var(--x-ink);background:var(--x-fill)}
.xi.on{background:var(--x-act);color:var(--x-act-ink);font-weight:500}
.xi .c{margin-left:auto;font-size:12.5px;opacity:.6;font-variant-numeric:tabular-nums}
.xi.lock .c{opacity:1}
.ic{width:17px;height:17px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;
  stroke-linejoin:round;flex:none}
.xme{display:flex;align-items:center;gap:10px;margin-top:10px;padding:12px 10px 4px;border-top:1px solid var(--x-soft)}
.xme .av{width:32px;height:32px;border-radius:50%;background:var(--x-act);color:var(--x-act-ink);
  display:grid;place-items:center;font-size:13px;font-weight:600;flex:none}
.xme b{display:block;font-size:14px;font-weight:500}
.xme span{display:block;font-size:12px;color:var(--x-mute)}
.xme .ib{margin-left:auto}

/* ── main ── */
.xmain{display:grid;grid-template-rows:auto minmax(0,1fr);gap:14px;min-width:0;min-height:0}
.xtop{display:flex;align-items:center;gap:14px;padding:4px 4px 0}
.xtop .eyebrow{font-size:14px;margin-bottom:2px}
.xtop h1{font-size:clamp(26px,2.3vw,34px);font-weight:600;letter-spacing:-.018em;line-height:1.05}
.xweek{display:flex;gap:4px;margin-left:clamp(10px,3vw,48px);background:var(--x-card);padding:5px;
  border-radius:980px;outline:1px solid var(--x-soft);outline-offset:-1px}
.xweek span{display:flex;flex-direction:column;align-items:center;min-width:44px;padding:5px 0;border-radius:980px;
  font-size:11px;color:var(--x-mute);line-height:1.15}
.xweek span b{font-size:14px;color:var(--x-ink);font-weight:500}
.xweek span.now{background:var(--x-act);color:var(--x-act-ink)}
.xweek span.now b{color:var(--x-act-ink)}
.xr{margin-left:auto;display:flex;align-items:center;gap:8px}
.xsearch{display:flex;align-items:center;gap:9px;width:clamp(180px,18vw,280px);padding:10px 16px;border-radius:980px;
  background:var(--x-card);outline:1px solid var(--x-soft);outline-offset:-1px;color:var(--x-mute);font-size:14px;cursor:text}
.ib{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:none;cursor:pointer;
  background:var(--x-card);color:var(--x-sub);position:relative;outline:1px solid var(--x-soft);outline-offset:-1px;
  transition:color .22s var(--ease)}
.ib:hover{color:var(--x-ink)}
.ib .n{position:absolute;top:-2px;right:-2px;min-width:17px;height:17px;padding:0 4px;border-radius:980px;
  background:var(--blue);color:#fff;font-size:10px;font-weight:600;line-height:17px;text-align:center;
  box-shadow:0 0 0 2px var(--x-bg)}
.xme .ib{outline:none;background:none;width:34px;height:34px}

/* ── the bento ── */
.grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:minmax(0,1.12fr) minmax(0,1fr);
  gap:14px;min-height:0}
.card{background:var(--x-card);border-radius:var(--rad);padding:clamp(16px,1.4vw,22px);min-width:0;min-height:0;
  display:flex;flex-direction:column;overflow:hidden;position:relative;box-shadow:var(--x-shadow);
  outline:1px solid var(--x-soft);outline-offset:-1px}
.card.strong{background:var(--x-strong);color:var(--x-on);outline-color:rgba(255,255,255,.06)}
.s3{grid-column:span 3}.s6{grid-column:span 6}
.ch{display:flex;align-items:center;gap:10px;margin-bottom:12px;flex:none}
.ch h2{font-size:17px;font-weight:600;letter-spacing:-.008em}
.ch .nt{font-size:13px;color:var(--x-mute)}
.ch .r{margin-left:auto;display:flex;gap:6px;align-items:center}
.cnt{font-size:12px;font-weight:600;min-width:24px;height:24px;padding:0 8px;border-radius:980px;display:grid;place-items:center;
  background:var(--x-act);color:var(--x-act-ink)}
.strong .cnt{background:var(--x-on);color:#000}
.seg{display:inline-flex;padding:3px;border-radius:980px;background:var(--x-fill)}
.seg button{font-family:var(--sf);font-size:12.5px;color:var(--x-sub);background:none;border:none;padding:5px 12px;
  border-radius:980px;cursor:pointer}
.seg button.on{background:var(--x-card);color:var(--x-ink);font-weight:500;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.mini{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;color:var(--x-mute);
  border:1px solid var(--x-soft);background:none;cursor:pointer}
.mini .ic{width:14px;height:14px}

/* timeline: Needs you on a date axis, like a Gantt */
.tl{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}
.tl .lanes{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;justify-content:space-around}
.lane{position:relative;height:30px;flex:none}
.lane::before{content:"";position:absolute;left:0;right:0;top:50%;border-top:1px dashed var(--x-soft)}
.bar{position:absolute;top:0;height:30px;display:flex;align-items:center;gap:8px;padding:0 12px 0 5px;
  border-radius:980px;font-size:12.5px;white-space:nowrap;overflow:hidden;max-width:100%}
.bar.late{background:var(--x-act);color:var(--x-act-ink);justify-content:flex-end;padding:0 5px 0 12px}
.bar.late .tt{overflow:hidden;text-overflow:ellipsis}
.bar.open{background:var(--x-card);color:var(--x-ink);border:1px solid var(--x-line)}
.bar.prog{background:var(--x-fill);color:var(--x-ink);border:1px solid var(--x-line)}
.bar .tt{overflow:hidden;text-overflow:ellipsis}
.bar .who{width:22px;height:22px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:10px;font-weight:600}
.bar.late .who{background:var(--x-act-ink);color:var(--x-act)}
.bar.open .who,.bar.prog .who{background:var(--x-fill);color:var(--x-sub)}
.bar .d{font-size:11px;opacity:.6;flex:none}
.axis{position:relative;height:22px;flex:none;border-top:1px solid var(--x-soft);margin-top:6px}
.axis span{position:absolute;top:6px;transform:translateX(-50%);font-size:11px;color:var(--x-mute);white-space:nowrap}
.today{position:absolute;top:0;bottom:22px;width:0;border-left:1.5px solid var(--blue);pointer-events:none}
.today b{position:absolute;top:-2px;left:50%;transform:translate(-50%,-100%);font-size:10.5px;font-weight:600;color:var(--blue);
  white-space:nowrap}

/* delivered */
.big{font-size:clamp(40px,4vw,64px);font-weight:600;letter-spacing:-.03em;line-height:1;font-variant-numeric:tabular-nums}
.big small{font-size:.32em;font-weight:500;color:var(--x-mute);letter-spacing:0;margin-left:6px}
.sub{font-size:13px;color:var(--x-mute);margin-top:8px}
.split{display:flex;height:8px;border-radius:980px;overflow:hidden;gap:3px;margin:auto 0 14px}
.split i{display:block;height:100%;border-radius:980px;background:var(--x-act)}
.split i+i{background:var(--x-line)}
.lg{display:flex;align-items:center;gap:9px;font-size:13.5px;padding:7px 0;border-top:1px solid var(--x-soft)}
.lg i{width:8px;height:8px;border-radius:50%;background:var(--x-act);flex:none}
.lg i.b{background:var(--x-line)}
.lg b{margin-left:auto;font-weight:600;font-variant-numeric:tabular-nums}

/* site card: the site's own hero photo */
.photo{padding:0;color:#fff}
.photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 35%;
  filter:brightness(.62) saturate(.9)}
.photo::after{content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.35) 0%,transparent 35%,transparent 45%,rgba(0,0,0,.85) 100%)}
.photo .in{position:relative;z-index:1;display:flex;flex-direction:column;height:100%;padding:clamp(16px,1.4vw,22px)}
.photo .ch h2{color:#fff}
.photo .st{margin-top:auto}
.photo .st .k{font-size:13px;color:rgba(255,255,255,.7)}
.photo .st h3{font-size:clamp(20px,1.8vw,26px);font-weight:600;letter-spacing:-.015em;line-height:1.15;margin:4px 0 8px}
.photo .st p{font-size:13px;color:rgba(255,255,255,.72);line-height:1.45}
.photo .btn{margin-top:14px;font-size:13.5px;padding:8px 16px;background:#fff;color:#000;align-self:flex-start}
.glasspill{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;padding:4px 10px;border-radius:980px;
  background:rgba(255,255,255,.14);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,.2)}
.glasspill i{width:6px;height:6px;border-radius:50%;background:#ffb340}

/* inbox: rounded item rows */
.list{display:flex;flex-direction:column;gap:7px;flex:1;min-height:0;overflow:hidden}
.it{display:flex;align-items:center;gap:10px;padding:9px 12px 9px 9px;border-radius:16px;border:1px solid var(--x-soft);
  font-size:13.5px;min-width:0;cursor:pointer;transition:background .22s var(--ease)}
.it:hover{background:var(--x-fill)}
.it .bx{width:30px;height:30px;border-radius:10px;background:var(--x-fill);display:grid;place-items:center;flex:none;color:var(--x-sub)}
.it .bx .ic{width:15px;height:15px}
.it .tx{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.it .tm{font-size:12px;color:var(--x-mute);flex:none}

/* clients: inverse panel with tiles */
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;flex:1;min-height:0}
.tile{background:var(--x-tile);border-radius:calc(var(--rad) - 8px);padding:14px 15px;display:flex;flex-direction:column;
  min-width:0;border:1px solid var(--x-on-line);cursor:pointer;transition:background .22s var(--ease)}
.tile:hover{background:rgba(255,255,255,.1)}
.tile .nm{font-size:15px;font-weight:600;letter-spacing:-.008em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .ty{font-size:12.5px;color:var(--x-on-sub);margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .ps{align-self:flex-start;font-size:11.5px;padding:3px 10px;border-radius:980px;border:1px solid var(--x-on-line);
  color:var(--x-on-sub);margin-top:10px}
.tile .ps.live{color:var(--blue);border-color:rgba(41,151,255,.4);background:rgba(41,151,255,.1)}
.tile .kv{margin-top:14px;font-size:12.5px}
.tile .kv div{display:flex;gap:8px;padding:6px 0;border-top:1px solid var(--x-on-line)}
.tile .kv span{color:var(--x-on-sub)}
.tile .kv b{margin-left:auto;font-weight:500;white-space:nowrap}
.tile .nb{margin-top:auto;display:flex;align-items:baseline;gap:6px;padding-top:12px}
.tile .nb b{font-size:clamp(26px,2.4vw,38px);font-weight:600;letter-spacing:-.025em;line-height:1}
.tile .nb span{font-size:12px;color:var(--x-on-sub)}

/* focus: vertical bars */
.vb{flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,1fr);gap:10px;align-items:end}
.vb .col{display:flex;flex-direction:column;align-items:center;height:100%;min-height:0}
.vb .pc{font-size:13px;font-weight:600;margin-bottom:6px;font-variant-numeric:tabular-nums}
.vb .tr{flex:1;width:100%;max-width:46px;border-radius:14px;background:var(--x-fill);display:flex;align-items:flex-end;overflow:hidden;min-height:0}
.vb .tr i{display:block;width:100%;border-radius:14px;background:var(--x-act)}
.vb .col:not(:first-child) .tr i{background:var(--x-line)}
[data-theme="dark"] .vb .col:not(:first-child) .tr i{background:rgba(255,255,255,.28)}
.vb .lb{font-size:11.5px;color:var(--x-mute);margin-top:8px;text-align:center;line-height:1.25;min-height:2.5em}

/* theme icons */
.i-sun{display:none}
[data-theme="dark"] .i-sun{display:block}
[data-theme="dark"] .i-moon{display:none}

/* Too small to hold it all on one screen: let it scroll, stack the bento. */
@media (max-height:720px),(max-width:1180px){
  html,body{overflow:auto;height:auto}
  .xapp{height:auto;min-height:100dvh;align-items:start}
  .xside{position:sticky;top:14px;height:calc(100dvh - 28px)}
  .grid{grid-template-rows:none;grid-auto-rows:minmax(300px,auto)}
}
@media (max-width:1180px){
  .s3{grid-column:span 6}.s6{grid-column:span 12}
  .xweek{display:none}
}
@media (max-width:760px){
  .xapp{grid-template-columns:1fr;padding:10px;gap:10px}
  .xside{position:static;height:auto;padding:12px}
  .xbrand{padding-bottom:10px}
  .xnav{display:flex;gap:4px;overflow-x:auto}
  .xgh,.xme{display:none}
  .xi{white-space:nowrap;width:auto}
  .xi .c{margin-left:6px}
  .xsearch{display:none}
  .s3,.s6{grid-column:span 12}
  .tiles{grid-template-columns:1fr 1fr}
}

/* ═══════════ LIQUID GLASS ═══════════
   The site's own material from apple.css: .g-core blur, .g-rim Fresnel
   rim, .g-sheen, lit from one fixed direction, no colour in it. The
   bloom is what it refracts. Inside the glass, content is tier 2: flat
   translucent tiles with a hairline, never glass on glass. */
body{background:#000}
.bloom{position:fixed;z-index:0}
.bloom i{opacity:.6}
.xapp{position:relative;z-index:1}
.xside,.card:not(.photo),.xweek,.xsearch,.xtop .ib{background:transparent;outline:none;isolation:isolate;overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),inset 0 -18px 34px rgba(0,0,0,.26),0 26px 60px -22px rgba(0,0,0,.9)}
.xside,.xweek,.xsearch{position:relative}
.xside > *:not(.g-core):not(.g-rim):not(.g-sheen),
.card > *:not(.g-core):not(.g-rim):not(.g-sheen):not(img),
.xweek > *:not(.g-core):not(.g-rim):not(.g-sheen),
.xsearch > *:not(.g-core):not(.g-rim):not(.g-sheen),
.xtop .ib > *:not(.g-core):not(.g-rim):not(.g-sheen):not(.n){position:relative;z-index:1}
.xtop .ib{overflow:visible}
.xtop .ib .n{position:absolute;z-index:2}
.xtop .ib .g-core,.xtop .ib .g-rim,.xtop .ib .g-sheen{border-radius:50%}
/* down a tall narrow rail the 138deg rim reads as a white stripe: light it from the top */
.xside .g-rim{background:linear-gradient(180deg,rgba(255,255,255,.6) 0%,rgba(255,255,255,.14) 7%,
  rgba(255,255,255,.07) 50%,rgba(255,255,255,.12) 100%)}
.xme{border-top-color:rgba(255,255,255,.08)}

/* the smoked panel: same glass, darker core, for the client tiles */
.card.strong{background:transparent;color:var(--white)}
.card.strong .g-core{background:rgba(0,0,0,.34)}
.tile{background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.09)}
.tile:hover{background:rgba(255,255,255,.08)}

/* the liquid blob material: active nav row, today pill, the segment */
.xnav{position:relative}
.xi{position:relative;z-index:1}
.xi.on{background:transparent;color:#fff}
.xi:hover{background:transparent}
.xblob,.xweek span.now,.seg button.on{background:rgba(255,255,255,.14);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55),inset 0 -6px 14px rgba(0,0,0,.18),0 4px 14px -4px rgba(0,0,0,.5);
  backdrop-filter:blur(6px) saturate(1.3) brightness(1.12);-webkit-backdrop-filter:blur(6px) saturate(1.3) brightness(1.12)}
.xblob{position:absolute;left:0;right:0;top:0;height:0;border-radius:980px;pointer-events:none;opacity:0;z-index:0;
  transition:opacity .22s var(--ease)}
.xblob.on{opacity:1}
.xweek span.now,.xweek span.now b{color:#fff}
.seg{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.seg button.on{color:#fff}
.mini{border-color:rgba(255,255,255,.12)}
.it{border-color:rgba(255,255,255,.08)}
.it:hover{background:rgba(255,255,255,.04)}
.it .bx{background:rgba(255,255,255,.06)}
.lane::before,.axis{border-top-color:rgba(255,255,255,.08)}
.bar.open{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.14)}
.bar.prog{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.2)}
.vb .tr{background:rgba(255,255,255,.06)}

/* glass over the photograph is desaturated, or the frog tints it */
.photo{outline:1px solid rgba(255,255,255,.1);outline-offset:-1px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.3),0 26px 60px -22px rgba(0,0,0,.9)}
.photo img{filter:brightness(.7) saturate(.9)}
.photo::after{background:linear-gradient(180deg,rgba(0,0,0,.3) 0%,transparent 30%,transparent 55%,rgba(0,0,0,.5) 100%)}
.photo .st{position:relative;isolation:isolate;overflow:hidden;padding:16px;border-radius:calc(var(--rad) - 8px);
  border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 18px 40px -18px rgba(0,0,0,.9);
  background:rgba(0,0,0,.22);backdrop-filter:blur(16px) saturate(.45) brightness(.92);
  -webkit-backdrop-filter:blur(16px) saturate(.45) brightness(.92)}
.photo .st h3{font-size:clamp(18px,1.6vw,23px)}
@media (max-width:760px){.xblob{display:none}.xi.on{background:rgba(255,255,255,.14)}}
@media (prefers-reduced-transparency:reduce){
  .g-core{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:#16161a!important}
  .photo .st{backdrop-filter:none;-webkit-backdrop-filter:none;background:rgba(16,16,18,.94)}}
