/* ==========================================================================
   INSIDE THE COMPUTER (js/inside.js)
   Pages from Modern Computer, built from the app's own layout and tokens: the 240px rail,
   the top bar, Radar's glass tiles, Workforce cards, Create's composer and Chat's two panes.
   The window is always the app's dark theme.
   ========================================================================== */
.inside { position: relative; padding: 15vh 0 12vh; }
.in-wrap { max-width: calc(78rem + var(--gutter) * 2); }
.inside .sec-head { text-align: center; max-width: 52rem; margin: 0 auto; }
.in-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .3rem; margin: 2.4rem 0 2.6rem; }
.in-tabs button { position: relative; padding: .6rem 1.05rem; border: 0; background: none; color: var(--muted-foreground); font: 500 1rem/1 var(--font-display); cursor: pointer; transition: color .2s; }
.in-tabs button::after { content: ""; position: absolute; left: 1.05rem; right: 1.05rem; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #a78bfa, #e879f9); transform: scaleX(0); transform-origin: left; }
.in-tabs button:hover { color: var(--foreground); }
.in-tabs button[aria-selected="true"] { color: var(--foreground); }
.in-tabs button[aria-selected="true"]::after { transform: scaleX(var(--f, 1)); }
@media (max-width: 560px) { .in-tabs { display: grid; grid-template-columns: 1fr 1fr; max-width: 22rem; margin-left: auto; margin-right: auto; } } /* two by two, never three and one */
.in-stage { position: relative; perspective: 1800px; display: flex; justify-content: center; }
.in-stage::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -8%; height: 40%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgb(124 58 237 / .35), rgb(219 39 119 / .12) 55%, transparent 75%); filter: blur(30px); }
.in-cap { max-width: 36rem; min-height: 3.2em; margin: 2.2rem auto 0; text-align: center; font-size: 1.05rem; line-height: 1.55; color: var(--muted-foreground); }

/* ---------- the window ---------- */
.iw {
  --bg: #0b0910; --card: #18141f; --pop: #241f2b; --border: #352f3b; --fg: #f4f3f7; --mute: #b2a6c2; --ghost: #8d82a3;
  --violet: #a78bfa; --side: #09070e; --side-acc: #21172f; --side-border: #282330; --warn: #f5a93c; --live: #2bb7ff;
  --t: 0;
  position: relative; display: flex; width: 100%; height: clamp(34rem, 46vw, 44rem); overflow: hidden; border-radius: 20px; text-align: left;
  background: radial-gradient(60% 50% at 8% 0%, rgb(124 84 240 / .42), transparent 70%), radial-gradient(50% 45% at 100% 0%, rgb(42 116 210 / .24), transparent 70%), radial-gradient(50% 50% at 100% 100%, rgb(206 74 168 / .26), transparent 70%), #08060f;
  border: 1px solid rgb(255 255 255 / .12); box-shadow: 0 60px 140px -30px rgb(76 29 149 / .6), 0 0 0 1px rgb(0 0 0 / .4);
  color: var(--fg); font: 400 13px/1.45 var(--font-body); color-scheme: dark;
  transform: rotateX(calc(var(--t) * 16deg)) scale(calc(1 - var(--t) * .06)); transform-origin: 50% 0; will-change: transform;
}
.iw p { margin: 0; }
.iw img { display: block; border-radius: 50%; object-fit: cover; flex: none; }
.iw svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the rail */
.iw-rail { position: relative; width: 232px; flex: none; display: flex; flex-direction: column; padding: 14px 10px 0; background: rgb(9 7 14 / .86); border-right: 1px solid var(--side-border); overflow: hidden; }
.iw-rail::after { content: ""; position: absolute; left: 0; right: 0; bottom: 64px; height: 70px; pointer-events: none; background: linear-gradient(transparent, rgb(9 7 14)); }
.iw-pill { display: flex; align-items: center; gap: 8px; align-self: flex-start; height: 36px; padding: 0 14px 0 9px; margin: 0 0 6px 4px; border-radius: 999px; background: rgb(139 92 246 / .2); box-shadow: inset 0 0 0 1px rgb(167 139 250 / .45); font: 600 13.5px/1 var(--font-display); }
.iw-pill img { width: 18px; height: 18px; }
.iw-g { margin: 12px 0 3px 10px !important; font-size: 11px; font-weight: 500; color: var(--ghost); }
.iw-i { display: flex; align-items: center; gap: 10px; padding: 6.5px 10px; border-radius: 8px; color: var(--mute); white-space: nowrap; transition: background .3s, color .3s; }
.iw-i.on { background: var(--side-acc); color: var(--fg); font-weight: 500; }
.iw-i em { margin-left: auto; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--violet); color: #1a1030; font: 600 10px/16px var(--font-body); text-align: center; font-style: normal; }
.iw-adv svg:first-child { transform: none; }
.iw-me { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 8px 14px; border-top: 1px solid var(--side-border); background: rgb(9 7 14); }
.iw-me > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--side-acc); font: 600 11px/1 var(--font-display); }
.iw-me b { display: block; font-weight: 500; }
.iw-me small { display: block; font-size: 11px; color: var(--ghost); }

/* the top bar and pages */
.iw-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.iw-top { display: flex; align-items: center; gap: 12px; height: 60px; flex: none; padding: 0 22px; border-bottom: 1px solid rgb(255 255 255 / .06); background: rgb(11 9 16 / .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.iw-top h3 { flex: 1; margin: 0; font: 600 22px/1 var(--font-display); letter-spacing: -.01em; }
.iw-kbd { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--border); color: var(--ghost); font-size: 12px; }
.iw-kbd i { width: 11px; height: 11px; border: 1.6px solid currentColor; border-radius: 50%; }
.iw-kbd kbd { padding: 2px 6px; border-radius: 6px; background: var(--pop); font: 500 10.5px/1.2 var(--font-body); color: var(--mute); }
.iw-live { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgb(43 183 255 / .15); }
.iw-bell { width: 16px; height: 16px; border: 1.7px solid var(--mute); border-radius: 8px 8px 3px 3px; }
.iw-pages { position: relative; flex: 1; min-height: 0; }
.iw-page { position: absolute; inset: 0; padding: 18px 22px 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.iw-page.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.iw-page::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none; background: linear-gradient(transparent, #0b0914); }

/* shared: arrivals, glass tiles, faces */
.iw [data-in] { opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .55s var(--ease); }
.iw [data-in].in { opacity: 1; transform: none; }
.tile {
  position: relative; min-width: 0; padding: 16px 18px; border-radius: 22px;
  background: linear-gradient(160deg, rgb(36 30 52 / .64), rgb(24 20 31 / .54)), rgb(139 108 246 / .05);
  -webkit-backdrop-filter: blur(18px) saturate(1.15); backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: inset 0 0 0 1px rgb(244 243 247 / .08);
}
.t-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px !important; font-size: 13.5px; font-weight: 500; }
.t-h span { font-size: 11.5px; font-weight: 400; color: var(--ghost); }
.faces { display: flex; }
.faces img { width: 22px; height: 22px; box-shadow: 0 0 0 2px #1b1625; }
.faces img + img { margin-left: -7px; }
.cur { position: absolute; z-index: 5; width: 22px; height: 28px; left: 0; top: 0; opacity: 0; pointer-events: none; background: #fff; clip-path: polygon(0 0, 0 78%, 22% 60%, 40% 100%, 54% 94%, 37% 56%, 66% 56%); filter: drop-shadow(0 4px 8px rgb(0 0 0 / .6)); transition: transform .9s cubic-bezier(.4, 0, .2, 1), opacity .3s ease; }
.cur.on { opacity: 1; }
.typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: currentColor; animation: iw-blink 1s steps(2) infinite; }
@keyframes iw-blink { 50% { opacity: 0; } }

/* ---------- My Radar ---------- */
.iw-page[data-page="radar"] { background: radial-gradient(90% 60% at 18% -14%, rgb(139 108 246 / .34), transparent 70%); }
.rr-ask { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rr-ask p { flex: 1; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px; background: rgb(255 255 255 / .05); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); color: var(--ghost); }
.rr-ask > span { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 10px; color: var(--mute); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.clu { width: 28px; height: 28px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fde68a, #f472b6 45%, #7c3aed 80%); box-shadow: 0 0 14px rgb(167 139 250 / .55); }
.rr-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.rr-today { grid-column: span 4; }
.rr-needs { grid-column: span 8; }
.rr-grid .tile.sm { grid-column: span 4; }
.td-date { font-size: 12.5px; color: var(--mute); }
.td-hi { margin-top: 2px !important; font: 400 25px/1.15 var(--font-display); }
.td-in { margin-top: 16px !important; font-size: 13.5px; color: #c4b5fd; }
.td-clock { font: 300 70px/1 var(--font-display); letter-spacing: -.03em; text-shadow: 0 0 30px rgb(167 139 250 / .55); font-variant-numeric: tabular-nums; }
.td-clock small { margin-left: 4px; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--mute); text-shadow: none; }
.td-title { margin-top: 6px !important; font: 400 21px/1.2 var(--font-display); }
.td-who { display: flex; align-items: center; gap: 8px; margin-top: 8px !important; color: var(--mute); font-size: 12.5px; }
.td-note { display: flex; align-items: center; gap: 7px; margin-top: 12px !important; color: var(--mute); font-size: 12.5px; }
.td-note .clu { width: 18px; height: 18px; box-shadow: none; }
.td-later { margin-top: 14px !important; padding-top: 10px; border-top: 1px solid rgb(255 255 255 / .07); color: var(--ghost); font-size: 12px; }
.td-later b { color: var(--mute); font-weight: 500; margin-right: 6px; }

.nd-meta { display: flex; align-items: center; gap: 10px; }
.nd-ring { width: 20px; height: 20px; }
.nd-ring circle { fill: none; stroke-width: 3; }
.nd-ring .a { stroke: rgb(255 255 255 / .12); }
.nd-ring .b { stroke: var(--violet); stroke-dasharray: var(--d, 0) 100; transition: stroke-dasharray .6s ease; transform: rotate(-90deg); transform-origin: center; }
.nd-meta em { font-style: normal; font-size: 12px; color: var(--mute); }
.deck { position: relative; height: 330px; }
.dk {
  position: absolute; inset: 0 0 auto; padding: 18px 22px 16px; border-radius: 24px;
  z-index: 3; background: linear-gradient(160deg, #2a2240, #1c1729); box-shadow: inset 0 0 0 1px rgb(244 243 247 / .1), 0 24px 50px -24px rgb(0 0 0 / .7);
  transition: transform .6s var(--ease), opacity .45s ease;
}
.dk.back { z-index: 2; transform: translateY(16px) scale(.95); opacity: .55; }
.dk.gone { z-index: 4; transform: translateX(60%) rotate(6deg); opacity: 0; }
.dk.hidden { z-index: 1; opacity: 0; transform: translateY(28px) scale(.9); }
.dk-who { display: flex; align-items: center; gap: 10px; }
.dk-who img { width: 34px; height: 34px; }
.dk-who b { display: block; font: 500 14px/1.2 var(--font-display); }
.dk-who small { display: block; font-size: 11.5px; color: var(--ghost); }
.dk-theirs { margin-top: 12px !important; padding: 10px 14px; border-radius: 4px 16px 16px 16px; background: rgb(255 255 255 / .06); font-size: 13.5px; color: #e6e1f2; }
.dk-take { display: flex; align-items: center; gap: 8px; margin-top: 12px !important; font-size: 12px; color: #c4b5fd; }
.dk-take .clu { width: 18px; height: 18px; box-shadow: none; }
.dk-draft { margin-top: 6px !important; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: rgb(167 139 250 / .14); box-shadow: inset 0 0 0 1px rgb(167 139 250 / .35); font-size: 13.5px; }
.dk-chips { display: flex; gap: 6px; margin-top: 8px !important; }
.dk-chips span { padding: 4px 10px; border-radius: 999px; font-size: 11.5px; color: var(--mute); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.dk-acts { display: flex; gap: 8px; margin-top: 14px !important; }
.dk-acts span { padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: 12.5px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); color: var(--mute); }
.dk-acts .ok { background: #6fdc9f; color: #0b2b1c; box-shadow: none; transition: transform .15s ease, filter .15s ease; }
.dk-acts .ok.press { transform: scale(.93); filter: brightness(1.15); }
.dk-acts .ch { color: #f2c46f; } .dk-acts .no { color: #f39a9a; }
.dk-stamp { position: absolute; right: 22px; top: 18px; padding: 5px 12px; border-radius: 8px; border: 2px solid #6fdc9f; color: #6fdc9f; font: 700 12px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; transform: rotate(-8deg) scale(1.6); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .2s ease; }
.dk.stamped .dk-stamp { transform: rotate(-8deg) scale(1); opacity: 1; }
.ms-row { padding: 6px 0; }
.ms-row b { display: flex; justify-content: space-between; font-weight: 500; font-size: 13px; }
.ms-row b span { color: var(--ghost); font-weight: 400; font-size: 12px; }
.ms-bar { height: 4px; margin: 6px 0 4px; border-radius: 4px; background: rgb(255 255 255 / .08); overflow: hidden; }
.ms-bar i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: inherit; background: linear-gradient(90deg, #714dff, #e770ff); }
.ms-row small { font-size: 11.5px; color: var(--ghost); }
.tc-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12.5px; color: #d9d3e6; border-top: 1px solid rgb(255 255 255 / .06); }
.tc-row:first-of-type { border-top: 0; }
.tc-row img { width: 20px; height: 20px; }
.tc-row .clu { width: 20px; height: 20px; box-shadow: none; }

/* ---------- Workforce ---------- */
.wf-h { font: 600 24px/1.15 var(--font-display); letter-spacing: -.01em; }
.wf-s { margin-top: 4px !important; color: var(--mute); }
.wf-stats { display: grid; grid-template-columns: 1.25fr 1fr 1.25fr; gap: 12px; margin-top: 14px; }
.wf-stat { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.wf-stat small { display: block; font-size: 11.5px; color: var(--ghost); }
.wf-stat b { display: block; margin-top: 2px; font: 600 19px/1.2 var(--font-display); }
.ring { position: relative; width: 44px; height: 44px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.4; }
.ring .a { stroke: rgb(255 255 255 / .1); }
.ring .b { stroke: url(#iwRing); stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s var(--ease); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 12.5px/1 var(--font-display); }
.wf-tools { display: flex; align-items: center; gap: 8px; margin: 14px 0 12px; }
.wf-search { flex: 1; max-width: 200px; height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--ghost); box-shadow: inset 0 0 0 1px var(--border); }
.seg { display: flex; padding: 3px; border-radius: 10px; background: rgb(255 255 255 / .04); box-shadow: inset 0 0 0 1px var(--border); }
.seg span { padding: 4px 10px; border-radius: 7px; font-size: 12px; color: var(--mute); }
.seg span.on { background: var(--pop); color: var(--fg); }
.wf-tools .pick { height: 32px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; font-size: 12px; color: var(--mute); box-shadow: inset 0 0 0 1px var(--border); }
.wf-body { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 14px; }
.wf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.iwc { padding: 13px; border-radius: 16px; background: linear-gradient(145deg, rgb(30 28 48 / .38), var(--card)); box-shadow: inset 0 0 0 1px var(--border), 0 1px 2px rgb(0 0 0 / .3); }
.iwc-top { display: flex; align-items: center; gap: 10px; }
.iwc-av { position: relative; flex: none; }
.iwc-av img { width: 40px; height: 40px; border-radius: 12px; }
.iwc-av i { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px var(--card); }
.iwc-n { flex: 1; min-width: 0; }
.iwc-n b { display: block; font: 600 14.5px/1.2 var(--font-display); }
.iwc-n small { display: block; font-size: 11px; color: var(--ghost); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iwc .ring { width: 40px; height: 40px; }
.iwc-fig { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 11px; padding: 8px 10px; border-radius: 11px; background: rgb(255 255 255 / .03); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .05); }
.iwc-fig small { display: block; font-size: 10.5px; color: var(--ghost); }
.iwc-fig b { display: block; font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.iwc-foot { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.iwc-foot i { width: 6px; height: 6px; border-radius: 50%; background: rgb(255 255 255 / .25); flex: none; transition: background .3s; }
.iwc-foot span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; transition: opacity .25s; }
.iwc-foot em { font-style: normal; color: var(--violet); }
.iwc.busy .iwc-foot i { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.iwc.busy .iwc-foot span { color: #e6e1f2; }
.wf-side { display: grid; gap: 12px; align-content: start; }
.wf-panel { padding: 13px 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.wf-panel > b { display: flex; justify-content: space-between; font: 500 13px/1 var(--font-display); margin-bottom: 8px; }
.wf-panel > b span { font: 400 11.5px var(--font-body); color: var(--violet); }
.wl-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 12px; color: #d9d3e6; border-top: 1px solid rgb(255 255 255 / .06); }
.wl-row img { width: 24px; height: 24px; border-radius: 8px; }
.wl-row small { display: block; font-size: 11px; color: var(--ghost); }
.wl-row .pp { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--side-acc); font: 600 9.5px var(--font-display); flex: none; }
.wl-warn { color: var(--warn); }

/* ---------- Create ---------- */
.cg { padding: 18px 20px; border-radius: 22px; background: rgb(27 20 48 / .72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.cg-hero { position: relative; overflow: hidden; background: radial-gradient(60% 80% at 0% 0%, rgb(167 139 250 / .28), transparent 70%), radial-gradient(50% 70% at 100% 100%, rgb(232 121 249 / .2), transparent 70%), rgb(27 20 48 / .72); }
.cg-hh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cg-hh b { font: 600 28px/1.1 var(--font-display); letter-spacing: -.03em; }
.cg-hh span { font-size: 12.5px; color: var(--mute); }
.cg-box { min-height: 62px; margin-top: 12px !important; padding: 12px 14px; border-radius: 16px; background: rgb(8 6 15 / .5); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); font: 400 15px/1.45 var(--font-display); color: #f5f3fb; }
.cg-row { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.cg-row small { margin-right: 4px; color: var(--ghost); font-size: 12px; }
.ich { padding: 5px 11px; border-radius: 999px; font-size: 12px; color: var(--mute); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); transition: background .3s, color .3s, box-shadow .3s; }
.ich.on { background: rgb(167 139 250 / .2); color: #f1edff; box-shadow: inset 0 0 0 1px rgb(167 139 250 / .55); }
.cg-make { margin-left: auto; padding: 9px 16px; border-radius: 12px; background: linear-gradient(112deg, #5950d5, #793acb 62%, #a92d86); font-weight: 600; font-size: 13px; transition: transform .15s ease, filter .15s ease; }
.cg-make kbd { margin-left: 6px; font: 500 10.5px var(--font-body); opacity: .7; }
.cg-make.press { transform: scale(.94); filter: brightness(1.2); }
.cg-tools { position: relative; margin-top: 12px; }
.cg-cards, .cg-made { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cg-made { display: none; grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr)); }
.cg-tools.made .cg-cards { display: none; }
.cg-tools.made .cg-made { display: grid; animation: iw-up .5s var(--ease) both; }
@keyframes iw-up { from { opacity: 0; transform: translateY(10px); } }
.tool { padding: 10px 10px 12px; border-radius: 18px; background: rgb(27 20 48 / .72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.tool i { display: block; height: 84px; border-radius: 12px; }
.tool b { display: flex; justify-content: space-between; margin-top: 9px; font: 500 13.5px/1.2 var(--font-display); }
.tool b span { font: 400 11.5px var(--font-body); color: var(--violet); }
.tool small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ghost); line-height: 1.35; }
.tool em { display: inline-block; margin-top: 7px; font-style: normal; font-size: 10.5px; color: #c4b5fd; }
.mk-note { padding: 14px; border-radius: 18px; background: rgb(27 20 48 / .72); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1); }
.mk-note b { display: flex; align-items: center; gap: 8px; font: 500 13.5px/1.3 var(--font-display); }
.mk-note b img { width: 26px; height: 26px; }
.mk-note p { margin-top: 8px !important; font-size: 12px; color: var(--mute); }
.mk-note .done { color: #6fdc9f; }
.iad { position: relative; overflow: hidden; border-radius: 16px; background: #17132c; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .08); }
.iad-art { position: relative; height: 150px; display: flex; align-items: flex-end; padding: 10px 12px; overflow: hidden; }
.iad.a1 .iad-art { background: linear-gradient(160deg, #f9c87a, #f472b6 55%, #7c3aed); }
.iad.a2 .iad-art { background: linear-gradient(160deg, #fde68a, #f97316 60%, #db2777); }
.iad.a3 .iad-art { background: linear-gradient(160deg, #fbcfe8, #a78bfa 55%, #4338ca); }
.iad-art::before { content: ""; position: absolute; width: 110px; height: 110px; right: -20px; top: -14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgb(255 255 255 / .6), rgb(255 255 255 / .08) 60%, transparent 70%); }
.iad-art b { position: relative; font: 600 20px/1 var(--font-display); color: #fff; letter-spacing: -.02em; text-shadow: 0 2px 12px rgb(0 0 0 / .25); }
.iad p { padding: 8px 10px 10px; font-size: 11.5px; color: #cfc9e0; }
.iad .sk { position: absolute; inset: 0; background: linear-gradient(90deg, #1b1630, #2a2245, #1b1630) 0 0 / 200% 100%; animation: iw-shim 1.3s linear infinite; transition: opacity .5s ease; }
.iad.ready .sk { opacity: 0; }
@keyframes iw-shim { to { background-position: -200% 0; } }
.cg-low { display: grid; grid-template-columns: 2.15fr 1fr; gap: 12px; margin-top: 12px; }
.cg-low .cg { padding: 14px 16px; }
.cg-low b { font: 500 13.5px/1 var(--font-display); }
.cg-low p { margin-top: 8px !important; font-size: 12px; color: var(--ghost); }
.cg-low .soon { margin-left: 6px; font-size: 10.5px; color: var(--warn); }

/* ---------- Chat ---------- */
.iw-page[data-page="chat"] { display: flex; padding: 0; }
.ct-rail { width: 270px; flex: none; padding: 14px 14px 0; border-right: 1px solid rgb(255 255 255 / .06); }
.ct-find { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px 9px; border-bottom: 1px solid rgb(255 255 255 / .12); color: var(--ghost); }
.ct-tabs { display: flex; gap: 12px; margin: 12px 2px 10px; font-size: 12.5px; color: var(--ghost); }
.ct-tabs span.on { position: relative; color: var(--fg); }
.ct-tabs span.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #a78bfa, #e879f9); }
.ct-k { margin: 10px 2px 4px !important; font-size: 12px; color: var(--ghost); }
.ct-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; }
.ct-row.on { background: rgb(167 139 250 / .14); }
.ct-face { position: relative; flex: none; }
.ct-face img { width: 34px; height: 34px; }
.ct-face i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 2px #0b0914; }
.ct-face .ch { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--side-acc); font: 600 15px var(--font-display); color: var(--mute); }
.ct-face .pp { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #2a2440; font: 600 11px var(--font-display); }
.ct-t { flex: 1; min-width: 0; }
.ct-t b { display: flex; justify-content: space-between; font-weight: 500; font-size: 13px; }
.ct-t b small { font-weight: 400; font-size: 11px; color: var(--ghost); }
.ct-t span { display: block; font-size: 12px; color: var(--ghost); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ct-t span em { font-style: normal; color: var(--warn); }
.ct-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--violet); color: #1a1030; font: 600 10.5px/18px var(--font-body); text-align: center; }
.ct-conv { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ct-head { display: flex; align-items: center; gap: 10px; padding: 12px 22px; border-bottom: 1px solid rgb(255 255 255 / .06); }
.ct-head img { width: 30px; height: 30px; }
.ct-head b { display: block; font: 500 14.5px/1.2 var(--font-display); }
.ct-head small { display: block; font-size: 11.5px; color: var(--ghost); }
.ct-head span { margin-left: auto; color: var(--ghost); letter-spacing: 2px; }
.ct-log { flex: 1; min-height: 0; overflow: hidden; padding: 10px 34px 0; display: flex; flex-direction: column; gap: 14px; }
.ct-day { align-self: center; font-size: 11.5px; color: var(--ghost); }
.ct-me { align-self: flex-end; max-width: 70%; padding: 9px 15px; border-radius: 18px 18px 6px 18px; background: rgb(167 139 250 / .2); font-size: 14px; }
.ct-msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; }
.ct-msg > img { width: 32px; height: 32px; }
.ct-msg b { font: 500 14px/1.3 var(--font-display); }
.ct-msg b small { margin-left: 8px; font: 400 11.5px var(--font-body); color: var(--ghost); }
.ct-tool { display: flex; align-items: center; gap: 6px; margin-top: 4px !important; font-size: 12px; color: var(--ghost); }
.ct-work { margin-top: 4px !important; font-size: 12.5px; font-style: italic; color: var(--mute); }
.ct-say { margin-top: 4px !important; font-size: 14px; line-height: 1.6; color: #ece9f5; min-height: 1.6em; }
.ct-card { margin-top: 10px; padding: 12px 16px 8px; border-radius: 16px; background: rgb(96 165 250 / .08); box-shadow: inset 0 0 0 1px rgb(96 165 250 / .25); }
.ct-card .big { font: 600 40px/1 var(--font-display); letter-spacing: -.03em; background: linear-gradient(90deg, #93c5fd, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.ct-card small { display: block; margin-top: 2px; font-size: 12px; color: #a9b4d0; }
.ct-card svg { display: block; width: 100%; height: 64px; margin-top: 6px; overflow: visible; }
.ct-card .ln { fill: none; stroke: #93c5fd; stroke-width: 2.2; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); filter: drop-shadow(0 0 6px rgb(96 165 250 / .7)); }
.ct-card .ar { stroke: none; fill: rgb(96 165 250 / .12); opacity: 0; transition: opacity .8s ease .8s; }
.ct-card.drawn .ln { stroke-dashoffset: 0; }
.ct-card.drawn .ar { opacity: 1; }
.ct-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ct-src span { padding: 3px 9px; border-radius: 8px; background: rgb(255 255 255 / .06); font-size: 11px; color: var(--mute); }
.ct-comp { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0 26px 16px; padding: 7px 7px 7px 18px; border-radius: 22px; background: rgb(24 20 31 / .75); box-shadow: inset 0 0 0 1px rgb(167 139 250 / .3); color: var(--ghost); }
.ct-comp span { flex: 1; }
.ct-comp i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #e879f9); color: #1a1030; font-style: normal; font-weight: 700; }

/* ---------- smaller windows ---------- */
@media (max-width: 1100px) {
  .iw-rail { display: none; }
  .wf-body { grid-template-columns: 1fr; }
  .wf-side { display: none; }
}
@media (max-width: 760px) {
  .iw { height: 40rem; border-radius: 16px; transform: none; }
  .iw-top { height: 52px; padding: 0 14px; }
  .iw-top h3 { font-size: 18px; }
  .iw-kbd kbd, .iw-live { display: none; }
  .iw-page { padding: 12px 12px 0; }
  .rr-ask > span { display: none; }
  .rr-grid { grid-template-columns: 1fr; }
  .rr-today, .rr-needs { grid-column: auto; }
  .rr-grid .tile.sm, .rr-today { display: none; }
  .td-clock { font-size: 54px; }
  .td-hi { font-size: 20px; }
  .rr-today { padding: 12px 14px; }
  .deck { height: 300px; }
  .dk { padding: 14px 16px; }
  .dk-chips { display: none; }
  .wf-stats { grid-template-columns: 1fr 1fr; }
  .wf-stats .wf-stat:last-child { display: none; }
  .wf-tools { display: none; }
  .wf-grid { grid-template-columns: 1fr; margin-top: 12px; }
  .cg-hh { flex-direction: column; }
  .cg-hh b { font-size: 22px; }
  .cg-row .ich:nth-of-type(n+3) { display: none; }
  .cg-cards { grid-template-columns: 1fr 1fr; }
  .cg-cards .tool:nth-child(n+3) { display: none; }
  .cg-made { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cg-made .mk-note { display: none; }
  .iad-art { height: 110px; }
  .iad-art b { font-size: 15px; }
  .cg-low { display: none; }
  .ct-rail { display: none; }
  .ct-log { padding: 10px 14px 0; }
  .ct-comp { margin: 0 12px 12px; }
}
@media (prefers-reduced-motion: reduce) { .iw { transform: none; } }
/* the tab that's playing fills its underline over the scene */
.in-tabs button.run::after { animation: in-run var(--dur, 9s) linear forwards; }
@keyframes in-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }
