@font-face { font-family: 'Inter'; src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

/* Limelight Workspace - "Glass Aurora": aurora background, frosted glass panels, Limelight yellow accent */
:root {
  --bg: #000000; /* default: Pure Black (Aurora and the other colours are themes in workspace.js) */
  --brand: #fdba74;
  --ink: 255 255 255;
  --field: #00000033;
  --pop: #1b1b24ee;
  --a1: #000000; --a2: #000000; --a3: #000000; --a4: #000000;
  --glass: rgb(var(--ink) / 0.07);
  --glass-2: rgb(var(--ink) / 0.11);
  --glass-3: rgb(var(--ink) / 0.16);
  --edge: rgb(var(--ink) / 0.15);
  --edge-2: rgb(var(--ink) / 0.25);
  --text: rgb(var(--ink));
  --muted: rgb(var(--ink) / 0.65);
  --dim: rgb(var(--ink) / 0.42);
  --acc: #ffc21a;
  --acc-2: #ffd75c;
  --acc-ink: #1a1300;
  --acc-soft: #ffc21a24;
  --green: #3ddc84;
  --red: #ff6b6b;
  --r: 20px;
  --blur: blur(22px) saturate(140%);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; color: var(--text); font: 14px/1.5 Inter, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body { background:
  radial-gradient(circle at 14% 18%, color-mix(in srgb, var(--a1) 66%, transparent), transparent 46%),
  radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--a2) 64%, transparent), transparent 43%),
  radial-gradient(circle at 62% 96%, color-mix(in srgb, var(--a3) 58%, transparent), transparent 50%),
  radial-gradient(circle at 4% 92%, color-mix(in srgb, var(--a4) 28%, transparent), transparent 40%),
  var(--base, var(--bg)); background-attachment: fixed; overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgb(var(--ink) / 0.14); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
.glass { background: var(--glass); border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-radius: var(--r); }

.ws { display: flex; flex-direction: column; height: 100%; padding: 16px 22px 0; gap: 14px; }

/* ---------- colour themes: set as inline CSS variables on <html> by workspace.js (THEMES / custom) ---------- */
.theme-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--edge); background: var(--glass); display: grid; place-items: center; color: var(--text); }
.theme-btn:hover { border-color: var(--acc); color: var(--acc); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-pop { position: absolute; right: 52px; top: 58px; z-index: 30; padding: 14px; width: 320px; max-height: calc(100vh - 90px); overflow-y: auto; background: var(--pop); border: 1px solid var(--edge);
  border-radius: 16px; box-shadow: 0 20px 60px #000a; backdrop-filter: var(--blur); }
.theme-pop b { display: block; font-size: 13px; margin-bottom: 10px; }
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.swatches button { border: 2px solid transparent; border-radius: 12px; padding: 0; background: none; color: var(--muted); font-size: 11.5px; overflow: hidden; }
.swatches button i { display: block; height: 40px; border-radius: 10px; margin-bottom: 4px; }
.swatches button.on { border-color: var(--acc); color: var(--text); }

/* ---------- top bar ---------- */
.top { display: grid; grid-template-columns: 1fr minmax(0, 820px) 1fr; align-items: center; gap: 18px; width: 100%; margin: 0; padding: 8px 8px 8px 24px; border-radius: 40px !important;
  background: rgb(var(--ink) / .10); border-color: rgb(var(--ink) / .18); box-shadow: 0 10px 40px #0003, inset 0 1px 0 rgb(var(--ink) / .12); flex: none; position: relative; z-index: 20; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.brand { justify-self: start; }
.brand img { height: 36px; }
.brand span { display: none !important; }
.brand span { color: var(--brand); font-weight: 300; font-size: 12px; letter-spacing: 5px; text-transform: uppercase; padding-left: 2px; }
.pills { display: flex; gap: 2px; }
/* page tabs: a small floating pill under the tray, in the middle */
.pills.float { align-self: center; margin-top: -4px; padding: 4px; border-radius: 30px !important; position: relative; z-index: 15; flex: none;
  background: rgb(var(--ink) / .10); border: 1px solid rgb(var(--ink) / .16); box-shadow: 0 10px 30px #0003, inset 0 1px 0 rgb(var(--ink) / .12); }
.pills.float .pill { border-radius: 24px; padding: 6px 18px; }
.pill { position: relative; border: 0; background: none; color: var(--muted); padding: 6px 17px; border-radius: 10px; font-weight: 500; font-size: 13.5px; transition: color .15s, background .15s; }
.pill:hover { color: var(--text); }
.pill.on { background: rgb(var(--ink) / .16); color: var(--text); box-shadow: inset 0 1px 0 rgb(var(--ink) / .12); }
.pill.on::after { display: none;  content: ''; position: absolute; left: 50%; bottom: 2px; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px; background: var(--acc); }
button:focus { outline: none; }
button:focus-visible, a:focus-visible { outline: 2px solid color-mix(in srgb, var(--acc) 70%, transparent); outline-offset: 2px; }
.badge { position: absolute; top: 1px; right: 2px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--acc); color: var(--acc-ink);
  font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.right { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.dock { display: flex; gap: 5px; padding-right: 8px; margin-right: 2px; border-right: 1px solid var(--edge); }
.dock button { width: 30px; height: 30px; border-radius: 10px; box-shadow: inset 0 1px 0 #ffffff55, 0 4px 12px #0004; border: 0; display: grid; place-items: center; color: #111; font-weight: 800; font-size: 11px; opacity: .8;
  transition: transform .15s, opacity .15s; position: relative; }
.dock button svg { width: 16px; height: 16px; }
.dock button:hover, .dock button.on { opacity: 1; transform: translateY(-1px); }
.dock button.on::after { content: ''; position: absolute; bottom: -6px; width: 4px; height: 4px; border-radius: 50%; background: var(--text); }
.av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #2a1500; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; border: 0; }
.menu-pop { position: absolute; right: 0; top: 54px; width: 230px; padding: 16px; display: flex; flex-direction: column; gap: 2px; z-index: 30;
  background: var(--pop); border: 1px solid var(--edge); border-radius: 16px; box-shadow: 0 20px 60px #000a; }
.menu-pop small { color: var(--muted); font-size: 12px; margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- views ---------- */
.main { flex: 1; min-height: 0; position: relative; }
.view { height: 100%; overflow-y: auto; overflow-x: hidden; padding-bottom: 30px; }
.inner { max-width: 1180px; margin: 0 auto; }

/* home */
.hero { position: relative; text-align: center; padding: 2.2vh 0 20px; flex: none; }
.hero::before { content: ""; position: absolute; left: 50%; top: -10px; width: 520px; height: 180px; margin-left: -260px; pointer-events: none;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--acc) 16%, transparent), transparent 70%); }
.hero .logo { position: relative; height: clamp(42px, 5.4vw, 66px); }
/* hero, split: greeting + quote on the left, logo + search from the centre to the right */
.hero.split { display: block; text-align: center; padding: 3.2vh 8px 24px; }
.hero.split::before { left: 50%; right: auto; margin-left: -260px; }
.greet { min-width: 0; }
.greet .when { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--brand); font-variant-numeric: tabular-nums; }
.greet h1 { margin: 6px 0 8px; font-size: clamp(32px, 3.8vw, 54px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.greet .quote { margin: 0 auto; max-width: 720px; font-size: 16px; line-height: 1.5; color: rgb(var(--ink) / .78); font-style: italic; font-weight: 400; letter-spacing: .1px; }
.greet .quote span { display: block; margin-top: 4px; font-style: normal; font-size: 12px; color: rgb(var(--ink) / .45); }
.top .spot { width: 100%; margin: 0; z-index: auto; }
.top .right { justify-self: end; }
.top .spot-bar { height: 48px; padding: 0 18px; gap: 10px; border-radius: 24px; box-shadow: none; background: rgb(var(--ink) / .08); border-color: rgb(var(--ink) / .14); }
.top .spot-bar svg { width: 18px; height: 18px; }
.top .spot-bar input { font-size: 17px; }
.top .spot-bar kbd { font-size: 10px; padding: 1px 6px; }
.top .spot.open .spot-bar { border-radius: 24px; }
.top .spot-res { top: 56px; left: 0; right: 0; width: auto; margin-left: 0; border: 1px solid rgb(var(--ink) / .18); border-radius: 16px; }
.in-app .top .spot { app-region: no-drag; -webkit-app-region: no-drag; }
@media (max-width: 760px) { .greet h1 { white-space: normal; } .top { grid-template-columns: auto 1fr auto; } .brand img { height: 26px; } .top .spot { width: 100%; } .top .spot-bar kbd { display: none; } .top .spot-res { width: 92vw; margin-left: -46vw; } }
.hello { position: relative; display: inline-flex; align-items: center; gap: 9px; margin: 12px 0 16px; padding: 0; font-size: 14px; background: none !important; border: 0 !important;
  color: var(--muted); background: rgb(var(--ink) / .06); border: 1px solid rgb(var(--ink) / .09); }
.hello b { color: rgb(var(--ink) / .85); font-weight: 500; }
.hello i { width: 4px; height: 4px; border-radius: 50%; background: rgb(var(--ink) / .35); }
.hello #nowTime { font-variant-numeric: tabular-nums; }
.hello, .hello b, .hello span { color: rgb(var(--ink) / .70); }
/* Spotlight-style search */
.spot { position: relative; width: min(620px, 100%); margin: 0 auto; z-index: 6; }
.spot-bar { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px; border-radius: 26px; cursor: text;
  background: rgb(var(--ink) / 0.10); border: 1px solid rgb(var(--ink) / 0.19); backdrop-filter: blur(40px) saturate(180%); -webkit-backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 20px 60px #0006, inset 0 1px 0 rgb(var(--ink) / 0.15); transition: border-color .15s, background .15s; }
.spot-bar:hover { border-color: rgb(var(--ink) / 0.30); }
.spot-bar:focus-within { background: rgb(var(--ink) / 0.14); border-color: color-mix(in srgb, var(--acc) 55%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 14%, transparent), 0 20px 60px #0006; }
.spot-bar svg { width: 22px; height: 22px; color: rgb(var(--ink) / 0.63); }
.spot-bar input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 17px; font-weight: 400; letter-spacing: -.2px; color: var(--text); }
.spot-bar input::placeholder { color: rgb(var(--ink) / 0.50); }
.spot-bar kbd { font: 500 11px Inter, sans-serif; color: rgb(var(--ink) / 0.50); border: 1px solid rgb(var(--ink) / 0.19); border-radius: 6px; padding: 2px 7px; }
.spot.open .spot-bar { border-radius: 26px 26px 0 0; border-bottom-color: rgb(var(--ink) / 0.10); }
.spot-res { position: absolute; left: 0; right: 0; top: 52px; max-height: 420px; overflow-y: auto; padding: 6px; text-align: left;
  background: var(--pop); border: 1px solid rgb(var(--ink) / 0.19); border-top: 0; border-radius: 0 0 18px 18px; backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%); box-shadow: 0 30px 70px #000a; }
.spot-res button { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: none; color: var(--text); padding: 8px 10px; border-radius: 10px; text-align: left; font-size: 14px; }
.spot-res button.sel { background: color-mix(in srgb, var(--acc) 18%, transparent); }
.spot-res i { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgb(var(--ink) / 0.08); flex: none; }
.spot-res i.ai { background: var(--acc); color: var(--acc-ink); }
.spot-res i svg { width: 17px; height: 17px; }
.spot-res .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-res .t small { color: var(--dim); margin-left: 8px; font-size: 12px; }
.spot-res em { font-style: normal; font-size: 11px; color: var(--dim); }
.seg { display: inline-flex; gap: 3px; background: var(--field); border-radius: 11px; padding: 3px; }
.seg button { display: flex; align-items: center; gap: 6px; border: 0; background: none; color: var(--muted); padding: 6px 11px; border-radius: 8px; font-weight: 500; font-size: 13px; white-space: nowrap; }
.seg button.on { background: var(--glass-3); color: var(--text); }
.go { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: var(--acc); color: var(--acc-ink);
  font-weight: 700; padding: 10px 18px; white-space: nowrap; }
.go:hover { background: var(--acc-2); }
.go:disabled { opacity: .5; cursor: wait; }
.go.wide { width: 100%; margin-top: 18px; padding: 12px; }

/* apps: thin line icons, no boxes; each app's label in its own colour */
.apps { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 46px; margin: 4px 0 30px; }
.app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--c); font-size: 13px; font-weight: 600; padding: 6px 4px;
  transition: transform .18s; }
.app svg { width: 40px; height: 40px; stroke-width: 1.45; color: var(--text); transition: color .18s, filter .18s; }
.app:hover { transform: translateY(-3px); }
.app:hover svg { color: var(--c); filter: drop-shadow(0 0 10px var(--c)); }
.app .dot { position: absolute; top: 2px; right: -4px; width: 7px; height: 7px; }
.app .cnt { position: absolute; top: -4px; right: -10px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--ink) / 0.25); flex: none; }
.dot.up { background: var(--green); box-shadow: 0 0 8px #3ddc84aa; }
.dot.down { background: var(--red); }

/* Home uses the whole screen: logo + search + apps on top, widgets and the "Aaj" feed fill the rest */
#v-home { padding-bottom: 16px; }
/* Home fills the screen on a big monitor and grows (the page scrolls) on a shorter laptop screen - never cut off */
#v-home > .inner { max-width: none; min-height: 100%; display: flex; flex-direction: column; padding: 0 2px; }
#v-home .apps { flex: none; margin-bottom: 22px; }
.home-lower { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(280px, 26%) 1fr; gap: 14px; }
/* dashboard: glass bento tiles, each tinted with its app's colour (--c) */
.dash { flex: 1 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto max(260px, calc(100vh - 830px)) minmax(112px, auto); gap: 14px; }
/* (the middle row - Today, Projects, Team updates - keeps a steady height and scrolls inside; on a tall monitor it
   stretches to fill the screen; everything above and below it is about 830 px) */
.dt { position: relative; overflow: hidden; min-width: 0; min-height: 0; text-align: left; color: var(--text); font: inherit; border-radius: 22px; padding: 18px 20px;
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--c) 26%, transparent), transparent 62%), var(--glass);
  border: 1px solid var(--edge); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); display: flex; flex-direction: column; transition: transform .18s, border-color .18s; }
button.dt, form.dt { cursor: pointer; }
button.dt:hover, form.dt:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.dt b { font-size: 15px; font-weight: 650; }
.dt small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt .big { font-size: 44px; font-weight: 800; letter-spacing: -2px; line-height: 1; color: var(--c); margin-bottom: 10px; }
.dt.stat > svg { position: absolute; right: -10px; bottom: -14px; width: 104px; height: 104px; color: var(--c); opacity: .14; }
.dt.wide { grid-column: span 2; }
.dh { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.dh .date { color: var(--muted); font-size: 12.5px; }
.dh .ftabs { margin: 0 0 0 auto; }
.dh .more { margin-left: auto; background: none; border: 0; color: var(--dim); font-size: 12px; }
.dh .more:hover { color: var(--acc); }
.dt #feed, .dt.list > div:last-child { flex: 1; min-height: 0; overflow-y: auto; }
.dl { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgb(var(--ink) / .07); font-size: 13px; min-width: 0; }
.dl:last-child { border-bottom: 0; }
.dl .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl em { font-style: normal; color: var(--dim); font-size: 11.5px; white-space: nowrap; }
.dl .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.dt .none { padding: 8px 0; }
.app-t > svg { width: 30px; height: 30px; color: var(--c); margin-bottom: 10px; }
.app-t small { white-space: normal; }
.dthumbs { display: flex; gap: 6px; margin-top: 10px; }
.dthumbs img { width: 46px; height: 46px; object-fit: cover; border-radius: 9px; border: 1px solid var(--edge); }
.ai-t .field { margin-top: 10px; padding: 8px 11px; font-size: 13px; cursor: text; position: relative; z-index: 1; }
.dt.stat.ai-t .big { margin-bottom: 6px; }
.dt.stat.sm .big { font-size: 34px; }
.dt.stat.sm { justify-content: center; }
.widgets { display: grid; grid-template-columns: 1fr; align-content: start; gap: 14px; }
.wg { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 18px; text-align: left; color: var(--text); font: inherit; }
.wg:hover { background: var(--glass-2); }
.wg .big { font-size: 34px; font-weight: 800; letter-spacing: -1px; min-width: 30px; line-height: 1; }
.wg .wt { flex: 1; min-width: 0; } .wg b { display: block; font-size: 14px; }
.wg small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg .go-link { color: var(--acc); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.today { padding: 20px 24px 12px; display: flex; flex-direction: column; min-height: 0; }
#feed { flex: 1; min-height: 0; overflow-y: auto; margin-right: -10px; padding-right: 10px; }
.today h3 { margin: 0; font-size: 20px; }
.today .date { color: var(--muted); font-size: 13px; }
.ftabs { display: flex; gap: 6px; margin: 12px 0 6px; }
.ftabs button { border: 1px solid var(--edge); background: none; color: var(--muted); border-radius: 20px; padding: 4px 13px; font-size: 12px; }
.ftabs button.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }
.fi { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgb(var(--ink) / 0.07); font-size: 13.5px; cursor: pointer; min-width: 0; }
.fi:last-child { border-bottom: 0; }
.fi:hover .ft { color: var(--text); }
.fi > i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #111; }
.fi > i svg { width: 18px; height: 18px; }
.fi .ft { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgb(var(--ink) / 0.85); }
.fi em { font-style: normal; color: var(--dim); font-size: 12px; white-space: nowrap; }
.fi .n { background: var(--acc); color: var(--acc-ink); font-size: 10px; font-weight: 800; border-radius: 9px; padding: 1px 6px; }
.li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgb(var(--ink) / 0.07); font-size: 13px; cursor: pointer; min-width: 0; }
.li:last-child { border-bottom: 0; }
.li .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li .t b { font-weight: 600; margin-right: 6px; }
.li em { font-style: normal; color: var(--dim); font-size: 12px; white-space: nowrap; }
.li .n { background: var(--acc); color: var(--acc-ink); font-size: 10px; font-weight: 800; border-radius: 9px; padding: 1px 6px; }
.none { color: var(--dim); font-size: 13px; padding: 14px 0; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs a, .thumbs button { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: rgb(var(--ink) / 0.06); border: 1px solid var(--edge); padding: 0; display: block; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* create / library */
.vh { display: flex; align-items: flex-end; gap: 16px; margin: 6px 0 18px; }
.vh h1 { font-size: 28px; margin: 0; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; }
.vh p { color: var(--muted); margin: 2px 0 0; }
.vh .seg { margin-left: auto; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; background: var(--acc-soft); color: var(--acc); padding: 3px 8px; border-radius: 6px; letter-spacing: .5px; }
.gen { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { padding: 18px; position: sticky; top: 0; }
.panel label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 14px 0 7px; }
.panel label:first-child { margin-top: 0; }
.field, .panel textarea, .panel input:not([type=file]) { width: 100%; background: var(--field); border: 1px solid var(--edge); border-radius: 12px; padding: 10px 12px; outline: 0; resize: vertical; }
.panel textarea:focus, .panel input:focus, .field:focus { border-color: color-mix(in srgb, var(--acc) 60%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--edge); background: none; color: var(--muted); border-radius: 9px; padding: 5px 10px; font-size: 12px; }
.chips button.on { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
details { margin-top: 14px; font-size: 12px; color: var(--muted); }
details summary { cursor: pointer; margin-bottom: 8px; }
.note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.note.err { color: var(--red); }
.drop { display: grid !important; place-items: center; border: 1.5px dashed var(--edge-2); border-radius: 12px; padding: 18px; cursor: pointer;
  color: var(--muted) !important; font-weight: 500 !important; text-align: center; background-size: cover; background-position: center; min-height: 70px; }
.drop.has span { background: #000a; padding: 3px 8px; border-radius: 6px; }
.out { min-height: 420px; min-width: 0; }
.empty { height: 100%; min-height: 420px; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--dim); border: 1px dashed var(--edge-2); border-radius: var(--r); }
.empty svg { width: 40px; height: 40px; }
.empty p { margin: 0; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.results button { padding: 0; border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; background: rgb(var(--ink) / 0.06); }
.results img { width: 100%; display: block; }
.loading { display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; border: 1px solid var(--edge); color: var(--muted); font-size: 12px;
  background: linear-gradient(110deg, rgb(var(--ink) / 0.04) 30%, rgb(var(--ink) / 0.11) 50%, rgb(var(--ink) / 0.04) 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.player { aspect-ratio: 16 / 9; max-height: 460px; }
.player .empty { min-height: 0; height: 100%; }
.out h3 { font-size: 13px; color: var(--muted); font-weight: 600; margin: 22px 0 10px; }
.jobs { display: flex; flex-direction: column; gap: 8px; }
.job { display: flex; align-items: center; gap: 12px; padding: 11px 14px; font-size: 13px; border-radius: 14px; }
.job p { margin: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job small { color: var(--muted); white-space: nowrap; }
.job .tag { text-transform: none; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.lib button { aspect-ratio: 1; padding: 0; border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; background: rgb(var(--ink) / 0.06); }
.lib img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* apps inside the workspace */
#v-app { overflow: hidden; padding: 0 0 16px; display: flex; flex-direction: column; }
.appbar { display: flex; align-items: center; gap: 10px; padding: 0 4px 10px 8px; flex: none; }
.appbar b { font-size: 14px; }
.appbar .grow { flex: 1; }
.appbody { flex: 1; min-height: 0; display: flex; gap: 12px; }
.omenu { width: 210px; flex: none; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 1px; }
.ohead { display: flex; align-items: center; gap: 10px; padding: 4px 8px 10px; margin-bottom: 4px; border-bottom: 1px solid rgb(var(--ink) / .08); }
.ohead .oi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, #5b8cff 30%, transparent); color: #b9cdff; flex: none; }
.ohead .oi svg { width: 18px; height: 18px; }
.ohead b { font-size: 15px; display: block; line-height: 1.2; }
.ohead small { color: var(--muted); font-size: 11.5px; }
.ofoot { margin-top: auto; padding-top: 10px; display: flex; gap: 6px; border-top: 1px solid rgb(var(--ink) / .08); }
.ofoot button, .ofoot a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 6px; border-radius: 10px; font-size: 12px;
  border: 1px solid rgb(var(--ink) / .12); background: rgb(var(--ink) / .05); color: var(--muted); }
.ofoot button:hover, .ofoot a:hover { color: var(--text); border-color: var(--acc); }
.ofoot svg { width: 14px; height: 14px; }
.omenu .osec { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--dim); font-weight: 600; padding: 12px 10px 5px; }
.omenu .osec:first-child { padding-top: 4px; }
.omenu .osep { height: 1px; background: rgb(var(--ink) / 0.08); margin: 10px 6px; }
.omenu button { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--muted); padding: 7px 10px; border-radius: 10px; text-align: left; font-size: 13px; font-weight: 500; }
.omenu button svg { width: 17px; height: 17px; }
.omenu button:hover { color: var(--text); background: rgb(var(--ink) / 0.05); }
.omenu button.on { color: var(--text); background: rgb(var(--ink) / .14); box-shadow: inset 2px 0 0 var(--acc); }
.omenu button.on svg { color: var(--acc); }
/* full screen: only the open app, edge to edge (Esc or the small button at the top brings everything back) */
/* an open app (appwin) fills the window; full screen (focus) is the same plus the browser's own full screen. Only a slim
   bar stays: the logo (= Home), the page tabs, the apps' icons and Share / Reload / Full screen. Office keeps its menu. */
body.appwin .top, body.appwin .appbar, body.focus .top, body.focus .appbar { display: none !important; }
body.appwin .ws, body.focus .ws { padding: 4px 6px 0; gap: 4px; }
body.focus .ws { padding: 4px 0 0; }
body.appwin .pills.float, body.focus .pills.float { align-self: stretch; margin: 0; padding: 2px 4px; align-items: center; border-radius: 14px !important; }
body.focus .pills.float { margin: 0 6px; }
body.appwin .pills.float .pill, body.focus .pills.float .pill { padding: 3px 14px; font-size: 12.5px; }
.pbrand, .pacts, .pdock { display: none; }
body.appwin .pbrand, body.focus .pbrand { display: flex; align-items: center; padding: 0 12px 0 8px; margin-right: 4px; border-right: 1px solid rgb(var(--ink) / .16); }
.pbrand img { height: 18px; display: block; }
/* (Share / Reload / Full screen stay off the bar: the user wants its right end clear) */
.pacts button { display: flex; align-items: center; gap: 5px; border: 0; background: none; color: var(--muted); padding: 4px 9px; border-radius: 9px; font-size: 12.5px; cursor: pointer; }
.pacts button:hover { color: var(--text); background: rgb(var(--ink) / .08); }
.pacts svg { width: 15px; height: 15px; }
body.appwin .pdock, body.focus .pdock { display: flex; align-items: center; gap: 4px; margin-left: 6px; padding-left: 8px; border-left: 1px solid rgb(var(--ink) / .16); }
.pdock button { width: 24px; height: 24px; border: 0; border-radius: 7px; display: grid; place-items: center; color: #1a1300; cursor: pointer; opacity: .85; }
.pdock button:hover, .pdock button.on { opacity: 1; box-shadow: 0 0 0 2px rgb(var(--ink) / .5); }
.pdock button svg { width: 14px; height: 14px; }
body.focus #v-app, body.appwin #v-app { padding: 0; }
body.appwin .frames { border-radius: 12px; }
body.focus .frames { border-radius: 0; border: 0; }
.exit-full { display: none; position: fixed; top: 5px; right: 10px; z-index: 70; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px; border: 1px solid rgb(var(--ink) / .2); background: rgba(20, 18, 30, .75); color: #fff; font-size: 12px;
  backdrop-filter: blur(12px); opacity: .35; transition: opacity .2s; }
.exit-full svg { width: 14px; height: 14px; }
.exit-full:hover { opacity: 1; }
/* (the bar's own button takes you out of full screen now) */
.frames { position: relative; flex: 1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge); background: rgb(var(--ink) / .05); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.frames iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: dark; }
#v-app.office-mode .appbar { display: none; }
#v-app.office-mode { padding-top: 2px; }
.btn { border: 1px solid var(--edge); background: var(--glass); color: var(--text); border-radius: 10px; padding: 8px 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: var(--acc); }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.btn.danger { color: var(--red); }

/* ---------- chats ---------- */
#v-chats { overflow: hidden; padding-bottom: 16px; }
.chatwrap { height: 100%; display: grid; grid-template-columns: 340px 1fr; gap: 14px; }
.clist { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.clist-h { display: flex; align-items: center; gap: 8px; padding: 16px 16px 10px; }
.clist-h h2 { margin: 0; font-size: 20px; flex: 1; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--edge); background: var(--glass); display: grid; place-items: center; color: var(--text); }
.icon-btn:hover { border-color: var(--acc); color: var(--acc); }
.search { margin: 0 14px 8px; display: flex; align-items: center; gap: 8px; background: var(--field); border: 1px solid var(--edge); border-radius: 12px; padding: 0 12px; }
.search input { flex: 1; background: none; border: 0; outline: 0; padding: 9px 0; }
.ctabs { display: flex; gap: 6px; padding: 0 14px 8px; }
.ctabs button { border: 1px solid var(--edge); background: none; color: var(--muted); border-radius: 20px; padding: 4px 12px; font-size: 12px; }
.ctabs button.on { background: var(--acc-soft); border-color: var(--acc); color: var(--acc); }
.citems { flex: 1; overflow-y: auto; padding: 0 8px 10px; }
.citem { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; cursor: pointer; }
.citem:hover { background: rgb(var(--ink) / 0.05); }
.citem.on { background: var(--glass-2); }
.cav { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #111; flex: none; }
.cav.sm { width: 34px; height: 34px; font-size: 12px; }
.cav .on-dot { position: absolute; right: 0; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid #1a1a22; }
.cmeta { flex: 1; min-width: 0; }
.cmeta .r1, .cmeta .r2 { display: flex; align-items: center; gap: 8px; }
.cmeta b { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cmeta time { font-size: 11px; color: var(--dim); }
.cmeta .r2 span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.cmeta .r2 .typing { color: var(--acc); }
.cmeta .r2 .unread { flex: none; }
.unread { background: var(--acc); color: var(--acc-ink); font-size: 11px; font-weight: 800; border-radius: 10px; min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; }
.citem.has-unread time { color: var(--acc); }

.conv { display: flex; flex-direction: column; min-height: 0; overflow: hidden; position: relative; }
.conv-empty { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); gap: 6px; }
.conv-empty img { height: 44px; opacity: .9; margin-bottom: 8px; }
.conv-h { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgb(var(--ink) / 0.08); cursor: pointer; }
.conv-h .cmeta small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-h .back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 18px 6% 10px; display: flex; flex-direction: column; gap: 3px; }
.day { align-self: center; font-size: 11px; color: var(--muted); background: var(--field); padding: 3px 12px; border-radius: 10px; margin: 12px 0 8px; }
.sys { align-self: center; font-size: 12px; color: var(--muted); background: rgb(var(--ink) / 0.06); padding: 4px 12px; border-radius: 10px; margin: 6px 0; text-align: center; max-width: 80%; }
.m { max-width: min(68%, 560px); padding: 7px 11px 6px; border-radius: 14px; position: relative; word-wrap: break-word; align-self: flex-start;
  background: rgb(var(--ink) / 0.10); border: 1px solid rgb(var(--ink) / 0.08); }
.m.me { align-self: flex-end; background: color-mix(in srgb, var(--acc) 18%, transparent); border-color: color-mix(in srgb, var(--acc) 25%, transparent); }
.m.tail-me { border-top-right-radius: 4px; } .m.tail-them { border-top-left-radius: 4px; }
.m.gap { margin-top: 8px; }
.m .tx { white-space: pre-wrap; }
.m .who { display: block; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.m .meta { float: right; margin: 6px 0 -2px 10px; font-size: 10.5px; color: var(--muted); display: inline-flex; gap: 3px; align-items: center; white-space: nowrap; }
.m .tick { color: var(--dim); } .m .tick.read { color: #53bdeb; }
.m .del { font-style: italic; color: var(--muted); }
.m .quote { display: block; border-left: 3px solid var(--acc); background: var(--field); border-radius: 8px; padding: 4px 8px; margin-bottom: 5px; font-size: 12px; color: var(--muted); cursor: pointer; }
.m .quote b { display: block; color: var(--acc); font-size: 11.5px; }
.m img.ph { display: block; max-width: 300px; max-height: 300px; border-radius: 10px; margin: 2px 0 4px; cursor: zoom-in; }
.m .file { display: flex; align-items: center; gap: 10px; background: var(--field); border-radius: 10px; padding: 8px 10px; margin-bottom: 4px; min-width: 220px; }
.m .file b { display: block; font-size: 13px; } .m .file small { color: var(--muted); font-size: 11px; }
.m .acts { position: absolute; top: 4px; right: -96px; display: none; gap: 2px; }
.m.me .acts { right: auto; left: -96px; }
.m:hover .acts { display: flex; }
.m .acts button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgb(var(--ink) / 0.10); display: grid; place-items: center; color: var(--text); }
.m .acts button svg { width: 14px; height: 14px; }
.m.flash { animation: flash 1.2s; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--acc); } 100% { box-shadow: none; } }
.replybar { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 8px 12px; border-left: 3px solid var(--acc); background: var(--field); border-radius: 10px 10px 0 0; font-size: 12.5px; }
.replybar div { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.replybar b { color: var(--acc); }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px 14px; }
.composer textarea { flex: 1; resize: none; max-height: 140px; background: var(--field); border: 1px solid var(--edge); border-radius: 14px; padding: 10px 14px; outline: 0; line-height: 1.4; }
.composer textarea:focus { border-color: color-mix(in srgb, var(--acc) 60%, transparent); }
.composer .go { width: 42px; height: 42px; padding: 0; border-radius: 50%; }
.composer .icon-btn { width: 42px; height: 42px; border-radius: 50%; }
/* 😀 the emoji panel above the message box (glitch #75) */
.composer { position: relative; }
.composer .emoji-btn { display: grid; place-items: center; padding: 0; flex: none; }
.emoji-pane { position: absolute; left: 14px; bottom: calc(100% - 2px); z-index: 30; width: min(360px, calc(100% - 28px)); max-height: 300px; overflow: auto; padding: 8px 10px 10px;
  background: #15161a; border: 1px solid var(--edge); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); }
.emoji-pane.hidden { display: none; }
.emoji-h { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin: 8px 2px 4px; }
.emoji-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px; }
.emoji-g button { height: 34px; padding: 0; border: 0; border-radius: 8px; background: none; font-size: 21px; line-height: 1; cursor: pointer; font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; }
.emoji-g button:hover, .emoji-g button:focus-visible { background: color-mix(in srgb, var(--acc) 22%, transparent); outline: 0; }
.dropzone { position: absolute; inset: 0; background: #000b; border: 2px dashed var(--acc); border-radius: var(--r); display: grid; place-items: center; font-size: 18px; color: var(--acc); z-index: 3; }

.info { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 100%); background: var(--pop); border-left: 1px solid var(--edge); z-index: 4;
  display: flex; flex-direction: column; overflow-y: auto; backdrop-filter: var(--blur); }
.info-h { display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid rgb(var(--ink) / 0.08); }
.info-h b { flex: 1; }
.info-b { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.info-b .big { margin: 0 auto; width: 90px; height: 90px; font-size: 30px; }
.info-b h3 { text-align: center; margin: 0; font-size: 19px; }
.info-b .sub { text-align: center; color: var(--muted); font-size: 13px; margin-top: -8px; }
.info-b h5 { margin: 8px 0 0; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.mem { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.mem > div:not(.cav) { flex: 1; min-width: 0; }
.mem small { display: block; color: var(--dim); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.mem .tag { text-transform: none; font-size: 10px; }
.mem button { background: none; border: 0; color: var(--dim); font-size: 12px; }
.mem button:hover { color: var(--red); }

/* modal (new chat / new group) */
.modal { position: fixed; inset: 0; background: #000a; display: grid; place-items: center; z-index: 40; padding: 16px; }
.modal-card { width: min(460px, 100%); max-height: min(640px, 90vh); display: flex; flex-direction: column; background: var(--pop); border: 1px solid var(--edge); border-radius: 20px; overflow: hidden; }
.modal-card header { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid rgb(var(--ink) / 0.08); }
.modal-card header h3 { margin: 0; font-size: 17px; flex: 1; }
.modal-card .mb { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: hidden; flex: 1; }
.plist { overflow-y: auto; flex: 1; margin: 0 -8px; }
.prow { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; cursor: pointer; }
.prow:hover { background: rgb(var(--ink) / 0.05); }
.prow > div:not(.cav) { flex: 1; min-width: 0; }
.prow small { display: block; color: var(--dim); font-size: 12px; }
.prow .chk { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--edge-2); display: grid; place-items: center; font-size: 13px; color: var(--acc-ink); }
.prow.sel .chk { background: var(--acc); border-color: var(--acc); }
.picked { display: flex; flex-wrap: wrap; gap: 6px; }
.picked span { background: var(--acc-soft); color: var(--acc); border-radius: 14px; padding: 2px 10px; font-size: 12px; }
.modal-card footer { padding: 12px 18px; border-top: 1px solid rgb(var(--ink) / 0.08); display: flex; justify-content: flex-end; gap: 8px; }

/* viewer + toast */
.viewer { position: fixed; inset: 0; background: #000d; display: grid; place-items: center; z-index: 50; padding: 30px; }
.viewer img { max-width: 100%; max-height: calc(100vh - 130px); border-radius: 12px; }
.viewer-bar { display: flex; gap: 8px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--pop); border: 1px solid var(--edge); padding: 10px 18px; border-radius: 12px; z-index: 60; box-shadow: 0 10px 40px #0008; }

@media (max-width: 1000px) {
  .dock { display: none; }
  .omenu { width: 58px; } .omenu span, .omenu .osec { display: none; } .omenu button { justify-content: center; }
}
@media (max-width: 760px) {
  .ws { padding: 10px 12px 0; }
  .top { grid-template-columns: auto 1fr auto; padding-left: 12px; }
  .brand span { display: none; }
  .pills { justify-self: center; } .pill { padding: 6px 9px; font-size: 13px; }
  .ask { flex-wrap: wrap; padding: 10px; } .ask input { flex-basis: 100%; padding: 4px 6px; }
  .apps { gap: 14px 26px; } .home-lower { grid-template-columns: 1fr; } #v-home > .inner { height: auto; }
  .dash { grid-template-columns: 1fr 1fr; grid-template-rows: none; } .dt.wide { grid-column: span 2; } .dt.today { min-height: 320px; }
  .gen { grid-template-columns: 1fr; } .panel { position: static; }
  .chatwrap { grid-template-columns: 1fr; }
  .chatwrap.open .clist { display: none; } .chatwrap:not(.open) .conv { display: none; }
  .conv-h .back { display: grid; }
  .msgs { padding: 14px 10px; } .m { max-width: 86%; } .m .acts { display: none !important; }
}

/* light themes (Editorial Light, or a custom light background) */
:root[data-mode="light"] { color-scheme: light; }
:root[data-mode="light"] img.lg { content: url(../img/limelight-logo-black.png); }
:root[data-mode="light"] .app { color: color-mix(in srgb, var(--c) 45%, var(--text)); }
:root[data-mode="light"] .hero .logo { filter: none; }
.custom { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--edge); }
.custom .crow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0 10px; }
.custom label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--muted); }
.custom input[type=color] { width: 34px; height: 34px; border: 1px solid var(--edge-2); border-radius: 10px; padding: 0; background: none; cursor: pointer; }
.custom input[type=color]::-webkit-color-swatch-wrapper { padding: 3px; }
.custom input[type=color]::-webkit-color-swatch { border: 0; border-radius: 7px; }

/* inside Lighthouse.exe: the top bar is the window's title bar (drag to move, double-click to maximise) */
.in-app .top, .in-app .drag-strip { app-region: drag; -webkit-app-region: drag; }
.in-app .top a, .in-app .top button, .in-app .top input, .in-app .pills, .in-app .theme-pop, .in-app .menu-pop { app-region: no-drag; -webkit-app-region: no-drag; }
.drag-strip { position: fixed; left: 0; right: 0; top: 0; height: 62px; z-index: 1; }
.winbtns { display: flex; gap: 2px; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--edge); app-region: no-drag; -webkit-app-region: no-drag; }
.winbtns button { width: 34px; height: 30px; border: 0; border-radius: 9px; background: none; color: var(--muted); display: grid; place-items: center; }
.winbtns button svg { width: 16px; height: 16px; }
.winbtns button:hover { background: var(--glass-3); color: var(--text); }
.winbtns button.x:hover { background: #e81123; color: #fff; }
.in-app .top { padding-right: 150px; }
.winbtns.float { position: fixed; top: 27px; right: 30px; background: none !important; backdrop-filter: none !important; z-index: 50; border: 0; padding: 4px; border-radius: 12px; background: var(--glass); backdrop-filter: var(--blur); }

/* ---------- Share (every app) and Forward (Chats) ---------- */
.shwhat { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--acc-soft); color: var(--text); font-size: 13.5px; font-weight: 600; }
.shwhat .i { width: 18px; height: 18px; color: var(--acc); flex: none; }
.shwhat span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shsec { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding: 8px 8px 2px; }
#shareNote { resize: none; }
#shareGo:disabled { opacity: .5; cursor: default; }
.m .shcard { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 230px; text-align: left; margin-bottom: 4px; padding: 9px 11px; border-radius: 10px;
  background: var(--field); border: 1px solid var(--edge); color: var(--text); font: inherit; cursor: pointer; }
.m .shcard:hover { border-color: var(--acc); }
.m .shcard .i { width: 22px; height: 22px; color: var(--acc); flex: none; }
.m .shcard b { display: block; font-size: 13px; } .m .shcard small { color: var(--acc); font-size: 11.5px; font-weight: 600; }
.m .fwd { display: flex; align-items: center; gap: 4px; font-size: 11px; font-style: italic; color: var(--dim); margin-bottom: 3px; }
.m .fwd .i { width: 12px; height: 12px; }
/* the Gita line: English, the Hindi beside it and the verse, all on one line */
.greet .quote { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(1100px, 94vw); }
.greet .quote .q-hi { font-style: normal; font-family: "Nirmala UI", "Noto Sans Devanagari", "Kohinoor Devanagari", sans-serif; opacity: .8; margin-left: 6px; }
.greet .quote .q-src { display: inline; margin: 0 0 0 8px; }
@media (max-width: 760px) { .greet .quote { white-space: normal; } }
/* the app bar (an app open): page tabs on the left, the search in the middle, the apps on the right - no logo */
body.appwin .pbrand, body.focus .pbrand { display: none !important; }
.pspot { display: none; }
body.appwin .pspot, body.focus .pspot { display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(680px, 46vw); }
.pspot .spot { width: 100%; margin: 0; }
.pspot .spot-bar { height: 30px; padding: 0 14px; gap: 9px; border-radius: 10px; box-shadow: none; background: rgb(var(--ink) / .08); border-color: rgb(var(--ink) / .14); }
.pspot .spot-bar svg { width: 14px; height: 14px; }
.pspot .spot-bar input { font-size: 13.5px; }
.pspot .spot-bar kbd { font-size: 9.5px; padding: 0 5px; }
.pspot .spot.open .spot-bar { border-radius: 10px; }
.pspot .spot-res { top: 34px; left: 0; right: 0; width: auto; margin-left: 0; border: 1px solid rgb(var(--ink) / .18); border-radius: 14px; }
body.appwin .pdock, body.focus .pdock { margin-left: auto; border-left: 0; padding-left: 0; }

/* ---------- Home: the four apps as uniform cards ---------- */
.dash .app-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 196px; padding: 20px 22px 18px;
  text-align: left; border-radius: 22px; overflow: hidden; cursor: pointer; color: var(--text);
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), var(--glass);
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--edge)); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.dash .app-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--c) 60%, transparent); }
.dash .app-card .ac-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 8px; }
.dash .app-card .ac-ic { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 92%, #fff), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 10px 24px -10px var(--c), inset 0 1px 0 #ffffff55; }
.dash .app-card .ac-ic svg { width: 28px; height: 28px; }
.dash .app-card .ac-st { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgb(var(--ink) / .08); color: var(--muted); }
.dash .app-card .ac-st i { width: 7px; height: 7px; border-radius: 50%; background: #8b93a3; }
.dash .app-card .ac-st.up i { background: #3ddc84; box-shadow: 0 0 0 3px #3ddc8433; } .dash .app-card .ac-st.up { color: var(--text); }
.dash .app-card .ac-st.down i { background: #ff6369; }
.dash .app-card .ac-name { font-size: 22px; font-weight: 700; letter-spacing: -.3px; }
.dash .app-card .ac-desc { color: var(--muted); font-size: 13px; line-height: 1.4; min-height: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dash .app-card .ac-foot { margin-top: auto; display: flex; align-items: baseline; gap: 7px; width: 100%; padding-top: 12px; border-top: 1px solid rgb(var(--ink) / .08); font-size: 12.5px; color: var(--muted); }
.dash .app-card .ac-foot em { font-style: normal; font-size: 20px; font-weight: 700; color: var(--c); }
.dash .app-card .ac-go { margin-left: auto; color: var(--c); font-weight: 600; opacity: 0; transform: translateX(-4px); transition: .18s; }
.dash .app-card:hover .ac-go { opacity: 1; transform: none; }
.dash .ai-card { cursor: default; }
.dash .ai-card .ac-ask { align-items: center; }
.dash .ai-card .ac-ask input { flex: 1; height: 34px; border-radius: 10px; font-size: 13px; }
.dash .ai-card .ac-send { width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--c); color: #1a0b2e; font-weight: 700; cursor: pointer; }

/* the app bar with breathing room: a little taller, the tabs spaced out, and the search a real item in the middle of
   the free space (centred on the window it ran into the tabs on narrower screens) */
body.appwin .pills.float, body.focus .pills.float { padding: 5px 10px; gap: 4px; min-height: 42px; }
body.appwin .pills.float .pill, body.focus .pills.float .pill { padding: 5px 16px; }
body.appwin .pspot, body.focus .pspot { position: static; transform: none; flex: 0 1 600px; min-width: 160px; width: auto; margin: 0 auto; padding: 0 28px; box-sizing: content-box; }
.pspot .spot-bar { height: 32px; }
body.appwin .pdock, body.focus .pdock { margin-left: 0; gap: 8px; padding-right: 4px; }
.pdock button { width: 26px; height: 26px; }
