/* The console: an app shell, separate from the marketing pages. */
body.console { background: #0c0b0a; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 22px; }
.bootmark svg { width: 44px; height: 44px; color: var(--text); animation: turn 6s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
i.sk { display: block; border-radius: 3px; background: linear-gradient(90deg, rgba(244, 241, 234, 0.07) 25%, rgba(244, 241, 234, 0.17) 50%, rgba(244, 241, 234, 0.07) 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--text); cursor: pointer; text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; }
.link:hover { color: var(--orange); }
.btn.wide { width: 100%; justify-content: center; }
.btn.sm { padding: 9px 14px; font-size: 13px; }
.small { font-size: 13px; }
.msg { font-size: 14px; min-height: 1.4em; color: var(--muted); }
.msg.err { color: #ff9479; }

/* ---- sign up / log in ---- */
.authwrap { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; animation: rise .8s var(--ease); }
.authside { padding: 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.authside .logo { color: var(--ink); font-size: 24px; }
.authside .logo svg { color: var(--ink); width: 26px; height: 26px; }
.authside .logo svg circle:last-child { fill: var(--ink); }
.authside h1 { font-size: clamp(34px, 3.6vw, 54px); line-height: 1; letter-spacing: -0.035em; max-width: 420px; }
.authside ul { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 0; max-width: 380px; }
.authside li { padding: 14px 0; border-top: 1px solid rgba(18, 16, 14, 0.25); font-size: 17px; }
.authside li b { font-weight: 500; }
.authside .mono { color: rgba(18, 16, 14, 0.7); }
.authmain { display: grid; place-items: center; padding: 44px 24px; }
.authform { width: min(400px, 100%); display: grid; gap: 16px; }
.authform h2 { font-size: 34px; letter-spacing: -0.03em; }
.authform > p.muted { margin-top: -8px; }
.authform .switch { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.pending { background: var(--panel); border-left: 2px solid var(--orange); padding: 14px 16px; }
.pending .mono { color: var(--faint); }
.pending p { margin-top: 8px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 860px) { .authwrap { grid-template-columns: 1fr; } .authside { padding: 28px 24px; gap: 28px; } .authside ul { display: none; } }

/* ---- shell ---- */
.app { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; animation: rise .7s var(--ease); }
.side { position: sticky; top: 0; height: 100vh; background: #121110; border-right: 1px solid var(--line); padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 26px; }
.side .logo { padding: 0 10px; font-size: 21px; }
.sidenav { display: grid; gap: 2px; }
.sidenav button { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; border-radius: 8px; padding: 10px 10px; color: var(--muted); font: 500 14.5px var(--sans); cursor: pointer; text-align: left; transition: background .25s, color .25s; }
.sidenav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sidenav button:hover:not(:disabled) { background: rgba(244, 241, 234, 0.05); color: var(--text); }
.sidenav button[aria-selected="true"] { background: rgba(244, 241, 234, 0.09); color: var(--text); }
.sidenav button[aria-selected="true"] svg { color: var(--orange); }
.sidenav button:disabled { opacity: .35; cursor: default; }
.sidelinks { display: grid; gap: 2px; padding-top: 18px; border-top: 1px solid var(--line); }
.sidelinks a { display: flex; justify-content: space-between; padding: 9px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; transition: color .25s; }
.sidelinks a:hover { color: var(--text); }
.sidelinks span { color: var(--faint); }
.sidefoot { margin-top: auto; display: grid; gap: 14px; }
.balance { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; }
.balance .mono { color: var(--faint); }
.balance div { color: var(--muted); font-size: 14px; }
.balance b { font: 500 22px var(--display); color: var(--text); letter-spacing: -0.02em; margin-right: 4px; }
.me { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 0 6px; font-size: 13px; color: var(--muted); }
.me span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .link { flex: none; color: var(--muted); }
.appmain { padding: 30px 40px 80px; min-width: 0; max-width: 1180px; width: 100%; }
.apptop { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; }
.apptop h1 { font-size: 30px; letter-spacing: -0.03em; }
.pill { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line-2); border-radius: 99px; padding: 9px 14px; color: var(--muted); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.pill b { color: var(--text); font-weight: 500; }
.callout { background: var(--panel); border-left: 2px solid var(--orange); padding: 13px 16px; margin-bottom: 20px; font-size: 14.5px; color: var(--muted); border-radius: 0 8px 8px 0; }
[data-panel] { display: grid; gap: 14px; animation: rise .5s var(--ease); }
[data-panel][hidden] { display: none; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidenav { display: flex; order: 3; width: 100%; overflow-x: auto; }
  .sidenav button { width: auto; white-space: nowrap; }
  .sidelinks, .balance { display: none; }
  .sidefoot { margin: 0 0 0 auto; }
  .appmain { padding: 22px 16px 60px; }
}

/* ---- cards and stats ---- */
.card { background: #141312; border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-width: 0; }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.card h2, .settings h2 { font-size: 17px; letter-spacing: -0.01em; font-family: var(--sans); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat { background: #141312; border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 10px; }
.stat .mono { color: var(--faint); }
.num { font: 500 38px/1 var(--display); letter-spacing: -0.035em; }
.stat .sub { color: var(--faint); font-size: 13px; }
.hot { background: var(--orange); border-color: transparent; color: var(--ink); border-radius: 12px; overflow: hidden; }
.hot .mono, .hot .sub { color: rgba(18, 16, 14, 0.7); }
.card.hot { display: grid; gap: 12px; align-content: start; }
.card.hot .num { font-size: 52px; }
.card.hot p { color: rgba(18, 16, 14, 0.8); font-size: 14.5px; }
.cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } .cols { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .stats.three { grid-template-columns: 1fr; } }
.bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; height: 150px; align-items: end; }
.bars.tall { height: 230px; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; min-width: 0; }
.bar i { display: block; background: var(--orange); min-height: 2px; height: 0; border-radius: 3px 3px 0 0; transition: height 1.1s var(--ease), background .2s; }
.bar:hover i { background: #ff8a4a; }
.bar span { font: 10px var(--mono); color: var(--faint); text-align: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 26px 1fr auto; column-gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; }
.steps li::before { content: ""; grid-row: 1 / 3; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.steps li.done::before { content: "\2713"; display: grid; place-items: center; background: var(--orange); border-color: var(--orange); color: var(--ink); font-size: 11px; }
.steps b { font-weight: 500; }
.steps span { grid-column: 2; color: var(--faint); font-size: 13px; }
.steps .link { grid-column: 3; grid-row: 1 / 3; align-self: center; font-size: 13px; }
.steps li.done .link { display: none; }
pre.code { margin: 0; background: #0c0b0a; border: 1px solid var(--line); border-radius: 8px; padding: 16px; font: 12.5px/1.7 var(--mono); color: #ddd8ce; white-space: pre-wrap; overflow-wrap: anywhere; }
.table { display: grid; }
.trow { display: grid; grid-template-columns: var(--cols, 1.4fr 1fr 1fr auto); gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; }
.trow.head { border-top: 0; padding-top: 0; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.trow code { font: 12.5px var(--mono); color: var(--muted); }
.trow .dim { color: var(--faint); }
.trow .right { text-align: right; }
.empty { padding: 26px 0 8px; color: var(--faint); font-size: 14px; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .trow { grid-template-columns: 1fr auto; } .trow > :nth-child(n+2):not(:last-child) { display: none; } }
.newkey { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.newkey input { flex: 1; min-width: 200px; }
.reveal { padding: 18px; border-radius: 8px; margin-bottom: 18px; }
.reveal code { display: block; font: 13px var(--mono); overflow-wrap: anywhere; margin: 10px 0 14px; }
.reveal .actions { font-size: 13px; color: rgba(18, 16, 14, 0.75); }
.reveal .code { font: 12px var(--mono); }
.topups { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
#paymentElement { margin: 0 0 18px; min-height: 110px; }
#paymentElement i.sk { height: 44px; margin-bottom: 12px; }
.setup { background: #141312; border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 14px; }
.setup h2 { font-size: 19px; font-family: var(--sans); font-weight: 500; }
.setup p { margin: 8px 0 16px; font-size: 14.5px; max-width: 720px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.checks div { display: flex; align-items: center; gap: 10px; font: 12px var(--mono); color: var(--muted); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.checks div::before { content: "\2715"; color: #ff9479; }
.checks div.ok::before { content: "\2713"; color: var(--orange); }

/* ---- playground ---- */
[data-panel="playground"] { display: block; }
.pg { display: flex; flex-direction: column; min-height: calc(100vh - 130px); min-width: 0; }
.pg-scroll { flex: 1; min-width: 0; padding: 4px 4px 36px; }
.pg-empty { max-width: 720px; margin: 0 auto; padding-top: min(9vh, 80px); text-align: center; animation: rise .7s var(--ease); }
.pg-empty .mono { color: var(--orange); }
.pg-empty h2 { font: 500 clamp(30px, 3.6vw, 46px)/1.02 var(--display); letter-spacing: -0.035em; margin: 18px 0 14px; }
.pg-empty p { color: var(--muted); max-width: 480px; margin: 0 auto; }
.pg-starters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 40px; text-align: left; }
@media (max-width: 760px) { .pg-starters { grid-template-columns: 1fr; } }
.pg-starters button { display: grid; gap: 8px; align-content: start; background: #141312; border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: inherit; font: inherit; cursor: pointer; text-align: left; transition: border-color .3s, transform .5s var(--ease), background .3s; }
.pg-starters button:hover { border-color: rgba(255, 91, 10, 0.6); background: #1a1816; transform: translateY(-3px); }
.pg-starters b { font-weight: 500; font-size: 14.5px; }
.pg-starters span { color: var(--faint); font-size: 13px; line-height: 1.45; }
.pg-thread { max-width: 760px; margin: 0 auto; display: grid; gap: 34px; }
.pg-turn { display: grid; gap: 16px; animation: rise .5s var(--ease); }
.pg-user { justify-self: end; max-width: 84%; background: rgba(244, 241, 234, 0.08); border: 1px solid var(--line); border-radius: 18px 18px 4px 18px; padding: 12px 16px; font-size: 15.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.pg-agent { display: grid; gap: 12px; min-width: 0; padding-left: 16px; border-left: 1px solid var(--line); }
.pg-tool { max-width: 560px; }
.pg-tool-error > button span { color: #ff9479; }
.pg-answer { font-size: 16px; line-height: 1.62; color: var(--text); overflow-wrap: anywhere; }
.pg-answer > * { margin: 0 0 12px; }
.pg-answer > :last-child { margin-bottom: 0; }
.pg-answer h4 { font: 500 17px var(--sans); margin-top: 6px; }
.pg-answer ul, .pg-answer ol { padding-left: 20px; display: grid; gap: 6px; }
.pg-answer a { color: var(--text); text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.pg-answer a:hover { color: var(--orange); }
.pg-answer code { font: 0.86em var(--mono); background: rgba(244, 241, 234, 0.08); padding: 2px 6px; border-radius: 5px; }
.pg-answer pre { background: #0c0b0a; border: 1px solid var(--line); border-radius: 10px; padding: 14px; font: 12.5px/1.65 var(--mono); white-space: pre-wrap; }
.pg-error { color: #ff9479; font: 13px var(--mono); }
/* the input stays at the bottom of the window while the conversation scrolls behind it */
.pg-dock { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 22px 0 14px; background: linear-gradient(transparent, #0c0b0a 26px); }
.pg-bar { width: min(720px, 100%); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; min-height: 34px; }
.pg-key { display: flex; align-items: center; gap: 8px; flex: 1 1 100%; flex-wrap: wrap; min-width: 240px; text-transform: none; letter-spacing: 0; }
.pg-key select, .pg-key input:not([type="checkbox"]) { flex: 1 1 150px; min-width: 0; height: 36px; background: #141312; border: 1px solid var(--line-2); border-radius: 9px; color: var(--text); font: 13px var(--mono); padding: 0 10px; }
.pg-key select { flex: 0 1 auto; max-width: 100%; font: 500 13px var(--sans); cursor: pointer; appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a39e94' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; background-size: 10px 6px; }
.pg-key select option { background: #141312; color: var(--text); }
.pg-key input[data-field="key"] { flex-grow: 2; }
.pg-key select:focus, .pg-key input:not([type="checkbox"]):focus { outline: none; border-color: var(--orange); }
.pg-key input::-webkit-calendar-picker-indicator { filter: invert(.7); }
.pg-remember { display: flex; align-items: center; gap: 6px; font: 12.5px var(--sans); color: var(--muted); text-transform: none; letter-spacing: 0; white-space: nowrap; }
.pg-remember input { accent-color: var(--orange); }
.pg-keyset { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--muted); font: 13px var(--sans); cursor: pointer; padding: 0; }
.pg-keyset i { width: 7px; height: 7px; border-radius: 50%; background: #6fcf8b; }
.pg-keyset u { color: var(--faint); text-underline-offset: 3px; }
.pg-keyset:hover u { color: var(--text); }
.pg-meta { display: inline-flex; align-items: center; gap: 14px; margin-left: auto; color: var(--faint); }
.pg-meta button { background: none; border: 1px solid var(--line-2); border-radius: 99px; color: var(--muted); font: 12.5px var(--sans); padding: 6px 12px; cursor: pointer; transition: color .3s, border-color .3s; }
.pg-meta button:hover { color: var(--text); border-color: var(--text); }
.pg-need { width: min(720px, 100%); margin: 0 auto; color: var(--orange); font-size: 13.5px; }
.pg .ppc-root { font-family: var(--sans); --ppc-glass: rgba(28, 26, 24, 0.86); --ppc-line: rgba(240, 236, 228, 0.14); }
.pg .ppc-hint { margin: 0; }
@media (max-width: 900px) { .pg { min-height: 70vh; } }
.app:has([data-panel="playground"]:not([hidden])) .appmain { padding-bottom: 0; }
.app section { padding: 0; }
.app > *, .side, .sidenav { min-width: 0; }

/* ---- ask a site, watches ---- */
.stack { display: grid; gap: 10px; }
.card + .card, #watches .card, section[data-panel] > .card + div { margin-top: 14px; }
.answer p { font-size: 16.5px; line-height: 1.6; white-space: pre-wrap; margin-bottom: 22px; max-width: 760px; }
.answer p.muted { font-size: 14.5px; }
.sources { display: grid; }
.source { padding: 14px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; min-width: 0; }
.sourcehead { display: flex; gap: 10px; align-items: baseline; font-size: 14px; min-width: 0; }
.sourcehead b { font: 11.5px var(--mono); color: var(--orange); }
.sourcehead a, .watch .cardhead a { color: var(--text); text-decoration-color: var(--line-2); text-underline-offset: 3px; overflow-wrap: anywhere; }
.source blockquote { margin: 0; padding-left: 14px; border-left: 2px solid var(--line-2); color: var(--muted); font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.watch .cardhead { align-items: flex-start; margin-bottom: 10px; }
.watch .cardhead a { display: block; font-size: 13px; color: var(--faint); margin-top: 4px; }
.watch .actions { margin: 0; flex: none; }
.small.err { color: #ff9479; }
.card.empty { border-top: 1px solid var(--line); padding: 26px 22px; }
.change { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; font-size: 14.5px; }
.change summary { cursor: pointer; display: grid; grid-template-columns: 120px 1fr; gap: 12px; list-style: none; }
.change summary::-webkit-details-marker { display: none; }
.change summary .mono { color: var(--faint); font-size: 10.5px; padding-top: 4px; }
.change .del, .change .add { font: 12.5px/1.6 var(--mono); padding: 4px 10px; margin-top: 4px; border-radius: 6px; overflow-wrap: anywhere; }
.change .del { background: rgba(255, 120, 90, 0.09); color: #ffb4a0; text-decoration: line-through; text-decoration-color: rgba(255, 148, 121, 0.5); }
.change .add { background: rgba(111, 207, 139, 0.09); color: #a8e0b8; }
.change .del:first-of-type { margin-top: 12px; }
@media (max-width: 640px) { .change summary { grid-template-columns: 1fr; gap: 2px; } }

/* ---- cloud browser ---- */
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-bottom: 18px; }
.presets button { text-align: left; background: #0c0b0a; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); cursor: pointer; display: grid; gap: 4px; transition: border-color .25s, background .25s; }
.presets button:hover { border-color: var(--line-2); }
.presets button[aria-checked="true"] { border-color: var(--orange); background: rgba(255, 91, 10, 0.07); }
.presets b { font: 500 14px var(--sans); }
.presets span { font-size: 12.5px; line-height: 1.4; color: var(--faint); }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.opts { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end; padding: 6px 0; }
.opts label:not(.check) { display: grid; gap: 6px; font-size: 13px; color: var(--muted); min-width: 150px; flex: 1; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.check input { accent-color: var(--orange); }
#cbRun { margin-top: 14px; }
#cbRun + .cols { margin-top: 14px; }
.pill.live i, .pill.live::before { animation: none; }
.pill.live { color: var(--orange); border-color: var(--orange); }
.cbsteps { list-style: none; margin: 0 0 16px; padding: 0; max-height: 220px; overflow: auto; border-left: 1px solid var(--line-2); }
.cbsteps:empty { display: none; }
.cbsteps li { padding: 5px 0 5px 14px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.cbsteps li:last-child { color: var(--text); }
.cbtext { white-space: pre-wrap; font-size: 15.5px; line-height: 1.6; max-width: 760px; margin-bottom: 14px; overflow-wrap: anywhere; }
.verdict { font-weight: 500; margin-bottom: 12px; }
.verdict.ok { color: #6fcf8b; }
.verdict.no { color: #ff9479; }
.dgrid { overflow: auto; max-height: 420px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
.dgrid table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dgrid th { position: sticky; top: 0; background: #141312; text-align: left; font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dgrid td { padding: 9px 12px; border-top: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; min-width: 90px; }
#cbResult .actions { margin-top: 12px; gap: 16px; }

/* ================= redesigned screens ================= */
[data-panel] > .mono, .ov-label .mono, .cb-below .mono, .w-pages > .mono, .w-feed > .mono, .ov-steps > .mono { color: var(--faint); }
.btn.onpaper.sm { padding: 9px 14px; }
.link.dim { color: var(--faint); text-decoration-color: transparent; }
.link.dim:hover { color: #ff9479; }

/* shared: a terminal-style code panel, and a quiet "for developers" drawer */
.term { background: #0a0908; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; }
.termbar { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #121110; }
.termbar > i { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 241, 234, 0.14); flex: none; }
.termbar > i:first-child { background: var(--orange); }
.termbar .mono { margin-left: 8px; color: var(--faint); }
.termbar .copy { margin-left: auto; padding: 2px 6px; }
.term pre { margin: 0; padding: 18px; font: 12.5px/1.75 var(--mono); color: #ddd8ce; white-space: pre-wrap; overflow-wrap: anywhere; }
.dev { border-top: 1px solid var(--line); padding-top: 14px; }
.dev summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.dev summary::-webkit-details-marker { display: none; }
.dev summary::before { content: "</>"; font: 11px var(--mono); color: var(--orange); }
.dev summary:hover { color: var(--text); }
.dev[open] summary { margin-bottom: 14px; }
/* shared: a pill-shaped input with its button inside */
.w-add { display: flex; gap: 6px; background: #141312; border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 5px 5px 18px; transition: border-color .25s, box-shadow .25s; min-width: 0; }
.w-add:focus-within { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(255, 91, 10, 0.1); }
.w-add input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 15px var(--sans); }
.w-add input::placeholder { color: var(--faint); }

/* ---- overview: a dashboard ---- */
.ov-top { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(200px, 1fr); gap: 14px; }
.ov-hero { border-radius: 16px; padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; color: var(--ink); overflow: hidden; }
.ov-hero .mono, .ov-hero .sub { color: rgba(18, 16, 14, 0.68); }
.ov-bal { display: grid; gap: 10px; align-content: start; }
.ov-bal .num { font-size: clamp(54px, 6vw, 84px); }
.ov-bal .sub { font-size: 14px; }
.ov-bal .actions { margin-top: 12px; }
.ov-spark { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.ov-spark .bars { height: auto; min-height: 120px; gap: 5px; }
.ov-spark .bar i { background: var(--ink); border-radius: 2px; }
.ov-spark .bar:hover i { background: #3a332c; }
.ov-spark .bar span { color: rgba(18, 16, 14, 0.55); }
.ov-side { display: grid; gap: 14px; }
.ov-stat { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; background: #121110; }
.ov-stat .mono { color: var(--faint); }
.ov-stat b { font: 500 30px/1 var(--display); letter-spacing: -0.03em; }
.ov-label { margin-top: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.tile-go { position: relative; text-align: left; background: #0f0e0d; border: 0; padding: 22px 22px 24px; color: var(--text); cursor: pointer; display: grid; gap: 8px; align-content: start; transition: background .3s; }
.tile-go:hover { background: #171614; }
.tile-go .ic { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); display: grid; place-items: center; margin-bottom: 8px; transition: border-color .3s, background .3s; }
.tile-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.tile-go:hover .ic { border-color: var(--orange); background: rgba(255, 91, 10, 0.1); color: var(--orange); }
.tile-go b { font: 500 16px var(--sans); letter-spacing: -0.01em; }
.tile-go span { color: var(--muted); font-size: 13.5px; line-height: 1.45; max-width: 260px; }
.tile-go .go { position: absolute; top: 22px; right: 20px; color: var(--faint); transition: transform .4s var(--ease), color .3s; }
.tile-go:hover .go { color: var(--orange); transform: translate(2px, -2px); }
.ov-bottom { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; margin-top: 18px; align-items: start; }
.ov-steps .steps { margin-top: 8px; }
@media (max-width: 1100px) { .ov-top, .ov-bottom { grid-template-columns: 1fr; } .ov-side { grid-template-columns: repeat(3, 1fr); } .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ov-hero { grid-template-columns: 1fr; padding: 22px; } .ov-side, .tiles { grid-template-columns: 1fr; } .ov-stat b { font-size: 24px; } }

/* ---- cloud browser: a workbench ---- */
.cbw { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.cb-rail { position: sticky; top: 24px; display: grid; gap: 10px; }
.cb-rail .mono { color: var(--faint); padding-left: 10px; }
#cbPresets { display: grid; gap: 2px; }
#cbPresets button { display: flex; align-items: center; gap: 11px; width: 100%; background: none; border: 0; border-left: 2px solid transparent; padding: 10px 10px; color: var(--muted); cursor: pointer; text-align: left; border-radius: 0 8px 8px 0; transition: background .25s, color .25s, border-color .25s; }
#cbPresets button:hover { background: rgba(244, 241, 234, 0.04); color: var(--text); }
#cbPresets button[aria-checked="true"] { border-left-color: var(--orange); background: rgba(255, 91, 10, 0.08); color: var(--text); }
#cbPresets i { display: grid; place-items: center; flex: none; }
#cbPresets svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
#cbPresets button[aria-checked="true"] svg { color: var(--orange); }
#cbPresets b { font: 500 14px var(--sans); }
.cb-main { display: grid; gap: 18px; min-width: 0; }
.cb-compose { display: grid; gap: 14px; }
.cb-head h2 { font: 500 26px/1.1 var(--display); letter-spacing: -0.025em; }
.cb-head p { color: var(--muted); font-size: 15px; margin-top: 6px; }
.cb-compose .field { font: 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); gap: 8px; }
.cb-compose .field .f { text-transform: none; letter-spacing: 0; border-radius: 10px; background: #141312; border-color: var(--line); padding: 12px 14px; font: 15px var(--sans); }
.cb-compose .field .f:focus { border-color: var(--orange); }
.cb-compose .opts { padding: 14px 16px; background: #121110; border: 1px solid var(--line); border-radius: 12px; }
.cb-compose .opts label:not(.check) { font: 10px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cb-compose .opts select { text-transform: none; letter-spacing: 0; font: 14px var(--sans); border-radius: 8px; background: #0c0b0a; padding: 9px 10px; }
.cb-go { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.win { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #0a0908; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.winbar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #191817; border-bottom: 1px solid var(--line); }
.winbar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(244, 241, 234, 0.16); flex: none; }
.winurl { flex: 1; min-width: 0; margin: 0 8px; background: #0c0b0a; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.winstat { color: var(--faint); display: inline-flex; align-items: center; gap: 7px; }
.winstat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.win[data-state="working"] .winstat { color: var(--orange); }
.win[data-state="working"] .winstat::before { background: var(--orange); animation: pulse 1.2s ease-in-out infinite; }
.win[data-state="completed"] .winstat::before { background: #6fcf8b; }
.win[data-state="failed"] .winstat::before, .win[data-state="cancelled"] .winstat::before { background: #ff9479; }
@keyframes pulse { 50% { opacity: .25; } }
.winbody { padding: 22px; min-height: 200px; }
.win-idle { display: grid; justify-items: center; gap: 14px; padding: 26px 0; text-align: center; color: var(--faint); }
.win-idle svg { width: 48px; height: 48px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.win-idle p { max-width: 330px; font-size: 14px; line-height: 1.5; }
.cbsteps { border-left: 0; max-height: 240px; margin-bottom: 18px; counter-reset: step; }
.cbsteps li { position: relative; padding: 6px 0 6px 26px; }
.cbsteps li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--line-2); background: #0a0908; }
.cbsteps li::after { content: ""; position: absolute; left: 7.5px; top: 22px; bottom: -8px; width: 1px; background: var(--line); }
.cbsteps li:last-child::after { display: none; }
.cbsteps li:last-child::before { border-color: var(--orange); background: var(--orange); }
.cb-below { display: grid; grid-template-columns: 1.4fr 1fr; gap: 34px; padding-top: 8px; }
.cb-below .table { margin-top: 10px; }
.cb-below .empty { border-top: 1px solid var(--line); padding: 16px 0; }
.cb-below p { margin-top: 12px; max-width: 420px; }
@media (max-width: 1000px) { .cbw { grid-template-columns: 1fr; } .cb-rail { position: static; } #cbPresets { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; } #cbPresets button { width: auto; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; } #cbPresets button[aria-checked="true"] { border-color: var(--orange); } .cb-below { grid-template-columns: 1fr; } }

/* ---- ask a site: a search page ---- */
.ask-hero { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(24px, 6vh, 70px) 0 10px; }
.ask-hero h2 { font: 500 clamp(30px, 3.6vw, 46px)/1.05 var(--display); letter-spacing: -0.035em; }
.ask-hero > p { color: var(--muted); max-width: 520px; font-size: 15.5px; }
.ask-hero > p .mono { color: var(--orange); margin-left: 6px; }
.ask-bar { width: min(820px, 100%); display: flex; align-items: stretch; background: #141312; border: 1px solid var(--line-2); border-radius: 16px; padding: 6px; margin-top: 10px; transition: border-color .25s, box-shadow .25s; }
.ask-bar:focus-within { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(255, 91, 10, 0.1); }
.ask-site { display: flex; align-items: center; gap: 9px; padding: 0 14px; border-right: 1px solid var(--line); flex: 0 1 230px; min-width: 0; color: var(--faint); }
.ask-site svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.2; flex: none; }
.ask-bar input { background: none; border: 0; outline: none; color: var(--text); min-width: 0; width: 100%; }
.ask-site input { font: 13.5px var(--mono); }
.ask-q { flex: 1; padding: 14px 16px; font: 16.5px var(--sans); }
.ask-bar input::placeholder { color: var(--faint); }
.ask-bar .btn { border-radius: 11px; padding: 0 22px; }
.ask-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.ask-try .mono { color: var(--faint); margin-right: 4px; }
.ask-try button { background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 13px var(--sans); padding: 7px 13px; cursor: pointer; transition: color .25s, border-color .25s; }
.ask-try button:hover { color: var(--text); border-color: var(--line-2); }
.ask-out { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 34px; align-items: start; padding: 10px 0 20px; animation: rise .5s var(--ease); }
.ask-answer { display: grid; gap: 14px; }
.ask-answer .mono, .ask-src .mono { color: var(--orange); }
.ask-answer .answer p { font: 400 19px/1.6 var(--sans); letter-spacing: -0.005em; margin: 0; max-width: none; }
.ask-answer .answer p.muted { font-size: 15px; }
.ask-src { border-left: 1px solid var(--line); padding-left: 26px; display: grid; gap: 6px; }
.ask-src .source:first-child { border-top: 0; }
.ask-src .sourcehead { flex-wrap: wrap; }
.ask-src blockquote { border-left: 0; padding-left: 0; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 900px) { .ask-bar { flex-wrap: wrap; } .ask-site { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; } .ask-bar .btn { padding: 12px 20px; } .ask-out { grid-template-columns: 1fr; } .ask-src { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 18px; } }

/* ---- watch: a monitoring feed ---- */
.w-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 34px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.w-stats { display: flex; gap: 34px; }
.w-stats div { display: grid; gap: 6px; }
.w-stats b { font: 500 30px/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.w-stats .mono { color: var(--faint); white-space: nowrap; }
.w-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.5fr); gap: 34px; align-items: start; }
.w-pages, .w-feed { display: grid; gap: 12px; min-width: 0; }
#watches { display: grid; gap: 8px; }
.wpage { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; background: #121110; transition: border-color .25s; }
.wpage.on { border-color: var(--orange); }
.wpick { background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; text-align: left; display: grid; grid-template-columns: 14px 1fr; column-gap: 8px; align-items: baseline; min-width: 0; }
.wpick i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); align-self: center; }
.wpage.changed .wpick i { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 91, 10, 0.16); }
.wpage.err .wpick i { background: #ff9479; }
.wpick b { font: 500 15px var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpick span { grid-column: 2; font: 12px var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpage small { color: var(--muted); font-size: 12.5px; padding-left: 22px; overflow-wrap: anywhere; }
.wpage.err small { color: #ff9479; }
.wpage .actions { padding-left: 22px; gap: 16px; font-size: 13px; }
.w-none { border: 1px dashed var(--line-2); border-radius: 12px; padding: 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
#watchFeed { display: grid; gap: 0; border-left: 1px solid var(--line-2); margin-left: 4px; }
.chg { position: relative; padding: 0 0 26px 24px; display: grid; gap: 8px; min-width: 0; }
.chg::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px #0c0b0a; }
.chg.ghost { opacity: .55; }
.chg.ghost::before { background: var(--faint); }
.chghead { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.chghead b { font-weight: 500; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chg .mono { color: var(--faint); white-space: nowrap; }
.chg p { font-size: 16.5px; line-height: 1.5; }
.chg .del, .chg .add { font: 12.5px/1.6 var(--mono); padding: 5px 10px 5px 26px; border-radius: 6px; overflow-wrap: anywhere; position: relative; }
.chg .del { background: rgba(255, 120, 90, 0.08); color: #ffb4a0; }
.chg .add { background: rgba(111, 207, 139, 0.08); color: #a8e0b8; }
.chg .del::before, .chg .add::before { position: absolute; left: 10px; opacity: .7; }
.chg .del::before { content: "\2212"; }
.chg .add::before { content: "+"; }
.chg .link { justify-self: start; font-size: 13px; }
.w-feed > p { margin-left: 28px; }
@media (max-width: 1000px) { .w-top, .w-grid { grid-template-columns: 1fr; gap: 20px; } .w-stats { gap: 22px; } .w-stats b { font-size: 22px; white-space: normal; } }

/* ---- agent-ready: an audit ---- */
.rdy-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 34px; align-items: end; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.rdy-top h2 { font: 500 clamp(24px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -0.03em; }
.rdy-top p { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 520px; }
.rdy-top p .mono { color: var(--orange); margin-left: 6px; }
.rdy-empty { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rdy-empty div { background: #0f0e0d; padding: 22px; display: grid; gap: 8px; align-content: start; }
.rdy-empty i { font: 11px var(--mono); color: var(--orange); font-style: normal; }
.rdy-empty b { font-weight: 500; font-size: 15.5px; }
.rdy-empty span { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
#readySiteOut .rd { padding-top: 6px; }
@media (max-width: 1000px) { .rdy-top { grid-template-columns: 1fr; gap: 18px; align-items: start; } .rdy-empty { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rdy-empty { grid-template-columns: 1fr; } }

/* ---- api keys: keys beside the code that uses them ---- */
.keys-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.keys-main { display: grid; gap: 12px; min-width: 0; }
#keys { display: grid; gap: 8px; margin-top: 6px; }
.keyrow { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #121110; }
.keyrow b { display: block; font-weight: 500; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keyrow code { display: block; margin-top: 6px; font: 12px var(--mono); color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.keymeta { display: grid; gap: 4px; font-size: 12.5px; color: var(--faint); }
.keymeta .used { color: var(--muted); }
.keys-empty { border: 1px dashed var(--line-2); border-radius: 12px; padding: 26px; display: grid; gap: 6px; }
.keys-empty b { font-weight: 500; }
.keys-empty span { color: var(--muted); font-size: 14px; }
.keys-use { position: sticky; top: 24px; }
.keys-use .tabs { display: flex; gap: 2px; margin-left: 8px; }
.keys-use .tabs button { background: none; border: 0; color: var(--faint); font: 11.5px var(--mono); padding: 4px 9px; border-radius: 6px; cursor: pointer; }
.keys-use .tabs button[aria-selected="true"] { background: rgba(244, 241, 234, 0.1); color: var(--text); }
.keys-use p { padding: 0 18px 16px; }
.keys-use p code { font: 12px var(--mono); color: var(--muted); }
.reveal { border-radius: 12px; margin-bottom: 0; }
@media (max-width: 1000px) { .keys-grid { grid-template-columns: 1fr; } .keys-use { position: static; } }
@media (max-width: 560px) { .keyrow { grid-template-columns: 1fr auto; } .keymeta { display: none; } }
.cb-compose .opts .check { font: 14px var(--sans); text-transform: none; letter-spacing: 0; padding-bottom: 9px; }
.keys-use .tabs { border: 0; padding: 0; }

/* ================= agents ================= */
#agentNav { display: none; }
.app[data-in-agent] #agentNav { display: grid; gap: 14px; }
.app[data-in-agent] .side > .sidenav, .app[data-in-agent] .sidelinks { display: none; }
.ag-back { background: none; border: 0; color: var(--faint); font: 13px var(--sans); text-align: left; padding: 0 10px; cursor: pointer; }
.ag-back:hover { color: var(--text); }
.ag-who { display: flex; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0f0e0d; min-width: 0; }
.ag-who > span { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; }
.ag-who b { display: block; font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-who small { color: var(--faint); font-size: 12px; }
.ag-who div { min-width: 0; }
#agentNav .sidenav button { padding-left: 14px; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; }
#agentNav .sidenav button[aria-selected="true"] { border-left-color: var(--orange); }

.ag-top, .ag-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.ag-top h2 { font: 500 clamp(26px, 3vw, 38px)/1.05 var(--display); letter-spacing: -0.03em; }
.ag-top p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.ag-head { align-items: center; }
.ag-head .mono { color: var(--orange); }
.ag-head p { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 720px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ag-head .btn, .ag-top .btn { flex: none; }
.ag-home, .ag-page { display: grid; gap: 22px; min-width: 0; }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; padding-top: 34px; }
.ag-card { position: relative; background: #121110; border: 1px solid var(--line); border-radius: 16px; padding: 62px 22px 20px; text-align: center; color: var(--text); cursor: pointer; display: grid; gap: 4px; justify-items: center; transition: transform .4s var(--ease), border-color .3s, box-shadow .4s; font: inherit; }
.ag-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, 0.9); }
.ag-av { position: absolute; top: -32px; left: 50%; transform: translateX(-50%); padding: 5px; border-radius: 50%; border: 1px solid var(--line-2); background: #0c0b0a; transition: transform .4s var(--ease); }
.ag-card:hover .ag-av { transform: translate(-50%, -4px); }
.ag-av > span { display: block; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; }
.ag-av svg { width: 100%; height: 100%; }
.ag-card h3 { font: 500 19px var(--sans); letter-spacing: -0.015em; margin-bottom: 4px; overflow-wrap: anywhere; }
.ag-meta { color: var(--muted); font-size: 13px; }
.ag-count { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; display: grid; gap: 2px; }
.ag-count b { font: 500 34px/1 var(--display); letter-spacing: -0.03em; }
.ag-count span { color: var(--faint); font-size: 12.5px; }
.ag-add { border-style: dashed; border-color: var(--line-2); background: none; align-content: center; padding-top: 30px; min-height: 230px; }
.ag-plus { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 26px; color: var(--orange); margin-bottom: 10px; }
.ag-wait { display: grid; }
.ag-form { display: grid; gap: 16px; max-width: 760px; }
.ag-form .field { font: 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); gap: 8px; }
.ag-form .field .f { text-transform: none; letter-spacing: 0; border-radius: 10px; background: #141312; border-color: var(--line); padding: 12px 14px; font: 15px var(--sans); }
.ag-form .field .f:focus { border-color: var(--orange); }
.ag-brain { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ag-brain button { text-align: left; background: #121110; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--text); cursor: pointer; display: grid; gap: 6px; align-content: start; transition: border-color .25s, background .25s; }
.ag-brain button[aria-checked="true"] { border-color: var(--orange); background: rgba(255, 91, 10, 0.07); }
.ag-brain b { font: 500 15px var(--sans); }
.ag-brain span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.ag-runs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px; align-items: start; }
.ag-note { border: 1px dashed var(--line-2); border-radius: 12px; padding: 22px; color: var(--muted); max-width: 640px; line-height: 1.55; }
.ag-sched { display: grid; gap: 14px; }
.ag-repeat { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ag-repeat .mono { color: var(--faint); margin-right: 8px; }
.ag-repeat button { background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 13.5px var(--sans); padding: 8px 14px; cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.ag-repeat button[aria-pressed="true"] { border-color: var(--orange); color: var(--text); background: rgba(255, 91, 10, 0.1); }
.ag-sched .toc-root { margin: 6px 0 0; background: #1c1b19; }
.ag-machine { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
/* the "what it is doing" board, in ompro's palette */
.agentboard .ib-root { padding: 0; background: none; --ib-accent: #ff5b0a; --ib-sans: var(--sans); --ib-mono: var(--mono); }
.agentboard .ib-root[data-theme="dark"] { --ib-paper: transparent; --ib-card: #121110; --ib-raise: #1a1917; --ib-ink: #f4f1ea; --ib-soft: rgba(244, 241, 234, 0.8); --ib-muted: rgba(244, 241, 234, 0.6); --ib-faint: rgba(244, 241, 234, 0.34); --ib-line: rgba(240, 236, 228, 0.11); --ib-line-strong: rgba(240, 236, 228, 0.24); --ib-bracket: rgba(240, 236, 228, 0.3); }
.agentboard .ib-sec { border: 0; padding: 8px 0 0; background: none; }
.agentboard .ib-head { align-items: flex-start; text-align: left; margin-bottom: 26px; }
.agentboard .ib-h2 { font-family: var(--display); }
.agentboard .ib-tag { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; color: var(--orange); background: none; border-color: rgba(255, 91, 10, 0.4); }
.agentboard .ib-frame-hover:hover > .ib-c { border-color: var(--orange); }
.agentboard .ib-reveal { opacity: 1; transform: none; }
@media (max-width: 900px) { .ag-top, .ag-head { flex-direction: column; align-items: flex-start; } .ag-runs, .ag-brain { grid-template-columns: 1fr; } .app[data-in-agent] #agentNav { width: 100%; order: 3; } #agentNav .sidenav { display: flex; } }

/* ---- admin ---- */
.adm-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.adm-people { display: grid; gap: 12px; justify-items: start; }
.adm-people .mono { color: var(--faint); }
#adminPeople { display: grid; gap: 8px; width: 100%; }
.adm-person { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 10px 10px; background: #121110; }
.adm-photo { width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 1px dashed var(--line-2); display: grid; place-items: center; cursor: pointer; position: relative; color: var(--faint); font-size: 11px; }
.adm-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.adm-photo.has { border-style: solid; }
.adm-photo.has img { display: block; }
.adm-photo.has span { display: none; }
.adm-person .f { border-radius: 8px; font: 14.5px var(--sans); padding: 10px 12px; }
.adm-side { display: grid; gap: 14px; }
@media (max-width: 1000px) { .adm-grid { grid-template-columns: 1fr; } .adm-person { grid-template-columns: 56px 1fr; } .adm-person .link { grid-column: 2; justify-self: start; } }

/* ================= chat (/chat): companies, agents, conversations ================= */
.tochat { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; padding: 11px 12px; border: 1px solid rgba(255, 91, 10, 0.4); border-radius: 10px; color: var(--text); font-size: 14px; transition: background .25s; }
.tochat:hover { background: rgba(255, 91, 10, 0.08); }
.tochat svg { width: 15px; height: 15px; fill: none; stroke: var(--orange); stroke-width: 1.4; stroke-linejoin: round; }
.tochat span { margin-left: auto; color: var(--faint); }
a.tile-go { text-decoration: none; }
.ch { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }
.ch svg { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ch-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 18px; background: #0f0e0d; border-bottom: 1px solid var(--line); }
.ch-logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font: 500 17px var(--display); letter-spacing: -0.02em; }
.ch-logo svg { width: 20px; height: 20px; stroke: none; }
.ch-logo svg g[stroke] { stroke: currentColor; }
.ch-logo span { display: none; }
.ch-sep { color: var(--faint); }
.ch-crumb { background: none; border: 0; padding: 4px 2px; color: var(--muted); font: 14.5px var(--sans); cursor: pointer; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-crumb.on { color: var(--text); cursor: default; }
.ch-right { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.ch-right .pill { padding: 7px 12px; text-decoration: none; }
.ch-icon, .ch-me { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: color .25s, border-color .25s; }
.ch-icon svg { width: 15px; height: 15px; }
.ch-icon:hover, .ch-me:hover { color: var(--text); border-color: var(--text); }
.ch-me { background: var(--bone); color: var(--ink); border-color: transparent; font: 600 13px var(--sans); }
.ch-pop { position: absolute; right: 0; top: 46px; width: 300px; background: #171614; border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; display: grid; gap: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); z-index: 40; }
.ch-pop p { color: var(--muted); font-size: 13px; line-height: 1.45; }
.ch-pop .f { border-radius: 8px; }
.ch-pop.me a { color: var(--muted); font-size: 14px; }
.ch-pop.me b { overflow: hidden; text-overflow: ellipsis; }
.ch-body { display: grid; grid-template-columns: auto minmax(0, 1fr); min-height: 0; }
.ch-rail { position: sticky; top: 58px; height: calc(100vh - 58px); width: 56px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 14px; background: #0f0e0d; }
.ch-rail button { width: 38px; height: 38px; border-radius: 9px; border: 0; background: none; color: var(--faint); cursor: pointer; display: grid; place-items: center; transition: background .25s, color .25s; }
.ch-rail svg { width: 17px; height: 17px; }
.ch-rail button:hover { color: var(--text); background: rgba(244, 241, 234, 0.05); }
.ch-rail button[aria-current="true"] { color: var(--orange); background: rgba(255, 91, 10, 0.1); }
.ch-main { min-width: 0; grid-column: -2 / -1; }
.ch-page { max-width: 1180px; margin: 0 auto; padding: 56px 40px 80px; display: grid; gap: 22px; }
.ch-page.narrow { max-width: 780px; }
.ch-page h1 { font: 500 30px/1.1 var(--display); letter-spacing: -0.03em; }
.ch-titlerow { display: flex; justify-content: space-between; align-items: center; }
.ch-roombtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .25s, background .25s, color .25s; }
.ch-roombtn svg { width: 18px; height: 18px; }
.ch-roombtn:hover { border-color: var(--orange); color: var(--orange); background: rgba(255, 91, 10, 0.08); }
.ch-tools { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.ch-search { display: flex; align-items: center; gap: 9px; width: min(380px, 100%); background: #141312; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; color: var(--faint); }
.ch-search svg { width: 15px; height: 15px; flex: none; }
.ch-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--text); font: 14.5px var(--sans); padding: 10px 0; }
.ch-search:focus-within { border-color: var(--line-2); }
.ch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 6px; }
.ch-co { display: flex; align-items: center; gap: 16px; text-align: left; background: #141312; border: 1px solid var(--line); border-radius: 12px; padding: 20px; color: var(--text); cursor: pointer; transition: border-color .25s, background .25s; }
.ch-co:hover { border-color: var(--line-2); background: #191817; }
.ch-co b { display: block; font-weight: 500; font-size: 16px; }
.ch-co small { color: var(--faint); font-size: 13.5px; }
.ch-av { display: block; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line-2); flex: none; }
.ch-av.sm { width: 42px; height: 42px; }
.ch-av svg, .ch-from svg, .ch-faces svg { width: 100%; height: 100%; stroke: none; }
.ch-err { margin: 20px 40px 0; }
.ch-form { padding-top: 0; }
/* the agent: chat on the left, its board on the right */
.ch-split { display: grid; grid-template-columns: minmax(340px, 0.85fr) minmax(0, 1.3fr); height: calc(100vh - 58px); }
.ch-chat { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); padding: 0 22px 18px; position: relative; }
.ch-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 26px 2px 18px; }
.ch-msg { max-width: 92%; display: grid; gap: 6px; }
.ch-msg p { font-size: 15.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.ch-msg.user { align-self: flex-end; background: #1c1b19; border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; padding: 10px 14px; }
.ch-msg.agent { align-self: flex-start; }
.ch-from { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ch-from > span { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; }
.ch-hello { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; padding: 20px; }
.ch-hello h2 { font: 500 26px var(--display); letter-spacing: -0.025em; }
.ch-hello p { color: var(--muted); max-width: 380px; font-size: 15px; line-height: 1.5; }
.ch-compose { display: flex; align-items: flex-end; gap: 8px; background: #141312; border: 1px solid var(--line-2); border-radius: 18px; padding: 8px 8px 8px 16px; transition: border-color .25s, box-shadow .25s; }
.ch-compose:focus-within { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(255, 91, 10, 0.1); }
.ch-compose textarea { flex: 1; min-width: 0; background: none; border: 0; outline: none; resize: none; color: var(--text); font: 15.5px/1.5 var(--sans); padding: 8px 0; max-height: 160px; field-sizing: content; }
.ch-compose textarea::placeholder { color: var(--faint); }
.ch-send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--orange); color: var(--ink); cursor: pointer; display: grid; place-items: center; flex: none; }
.ch-send svg { width: 16px; height: 16px; stroke-width: 1.8; }
.ch-send.stop i { width: 11px; height: 11px; background: var(--ink); border-radius: 2px; }
.ch-new { position: absolute; top: 14px; right: 22px; font-size: 13px; }
.ch-board { overflow-y: auto; padding: 34px; background-image: repeating-linear-gradient(135deg, rgba(244, 241, 234, 0.028) 0 1px, transparent 1px 11px); }
.bd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.bd-frame { position: relative; display: flex; flex-direction: column; min-width: 0; }
.bd-wide { grid-column: 1 / -1; }
.bd-frame > i { position: absolute; width: 12px; height: 12px; border: 0 solid rgba(240, 236, 228, 0.3); pointer-events: none; transition: transform .35s var(--ease), border-color .3s; }
.bd-frame > i:nth-child(1) { top: -6px; left: -6px; border-top-width: 1.5px; border-left-width: 1.5px; }
.bd-frame > i:nth-child(2) { top: -6px; right: -6px; border-top-width: 1.5px; border-right-width: 1.5px; }
.bd-frame > i:nth-child(3) { bottom: -6px; left: -6px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.bd-frame > i:nth-child(4) { bottom: -6px; right: -6px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.bd-frame:hover > i { border-color: var(--orange); }
.bd-frame:hover > i:nth-child(1) { transform: translate(-3px, -3px); }
.bd-frame:hover > i:nth-child(2) { transform: translate(3px, -3px); }
.bd-frame:hover > i:nth-child(3) { transform: translate(-3px, 3px); }
.bd-frame:hover > i:nth-child(4) { transform: translate(3px, 3px); }
.bd-card { flex: 1; background: linear-gradient(180deg, #1a1917, #121110); border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; animation: rise .5s var(--ease); }
.bd-card h3 { font: 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.bd-card p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.bd-value { font: 500 clamp(30px, 3.4vw, 46px)/1 var(--display); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.bd-list, .bd-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.bd-list li { padding-left: 16px; position: relative; }
.bd-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; background: var(--orange); }
.bd-steps { counter-reset: s; }
.bd-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: baseline; color: var(--muted); counter-increment: s; }
.bd-steps li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font: 10.5px var(--mono); }
.bd-steps li[data-done="true"] { color: var(--text); }
.bd-steps li[data-done="true"]::before { content: "\2713"; background: var(--orange); border-color: var(--orange); color: var(--ink); }
.bd-chart { width: 100%; height: auto; stroke: none !important; }
.bd-flow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.bd-flow span { border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 12px; font-size: 13.5px; background: #1c1b19; }
.bd-flow i { width: 22px; height: 1px; background: var(--orange); position: relative; }
.bd-flow i::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid var(--orange); border-right: 1px solid var(--orange); transform: rotate(45deg); }
.bd-note { white-space: pre-wrap; }
.bd-card .dgrid { margin: 0; max-height: 320px; }
.bd-empty { border: 1px dashed var(--line-2); border-radius: 14px; padding: 28px; display: grid; gap: 10px; max-width: 460px; margin: 8vh auto 0; text-align: center; background: #0c0b0a; }
.bd-empty .mono { color: var(--orange); }
.bd-empty p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.ch-list .bd-empty, .ch-room .bd-empty { margin: 10px 0; max-width: none; }
/* the team room */
.ch-room { display: flex; flex-direction: column; gap: 14px; min-height: calc(100vh - 58px - 136px); }
.ch-roomhead { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.ch-roomhead h2 { font: 500 24px var(--display); letter-spacing: -0.025em; }
.ch-roomhead p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.ch-faces { display: flex; flex: none; }
.ch-faces span { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid #0c0b0a; margin-left: -10px; }
.ch-faces span:first-child { margin-left: 0; }
.ch-room .ch-thread { padding-top: 6px; }
.ch-roomfoot { display: flex; justify-content: space-between; font-size: 13.5px; }
@media (max-width: 1000px) { .ch-split { grid-template-columns: 1fr; height: auto; } .ch-chat { border-right: 0; min-height: 70vh; } .ch-board { padding: 22px 16px; } .bd { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ch-page { padding: 30px 16px 60px; } .ch-rail { width: 46px; } .ch-right .btn, .ch-right .pill { display: none; } .ch-list { grid-template-columns: 1fr; } .ch-crumb { max-width: 24vw; } }
.ch-new { position: static; align-self: flex-end; margin-top: 10px; }
.ch-split, .ch-chat, .ch-board { min-width: 0; }
.ch-body { overflow-x: clip; }

/* ---- chat: autopilot switch, new company, integrations ---- */
.ch-lede { color: var(--muted); font-size: 15px; margin-top: 8px; max-width: 640px; line-height: 1.5; }
.ch-titlerow { gap: 16px; }
.ch-titlerow > div { flex: 1; min-width: 0; }
.ch-auto { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--muted); flex: none; }
.ch-auto input { position: absolute; opacity: 0; pointer-events: none; }
.ch-auto i { width: 38px; height: 22px; border-radius: 999px; background: #24221f; border: 1px solid var(--line-2); position: relative; transition: background .25s, border-color .25s; }
.ch-auto i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--ease), background .25s; }
.ch-auto input:checked + i { background: rgba(255, 91, 10, 0.25); border-color: var(--orange); }
.ch-auto input:checked + i::after { transform: translateX(16px); background: var(--orange); }
.ch-auto input:checked ~ span { color: var(--text); }
.ch-auto input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }
.ch-icon[aria-current="true"] { color: var(--orange); border-color: var(--orange); }
.ch-form .check { align-items: flex-start; line-height: 1.45; }
.ch-form .check input { margin-top: 3px; flex: none; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.mk-card { background: #141312; border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: grid; gap: 8px; align-content: start; justify-items: start; transition: border-color .25s; min-width: 0; }
.mk-card:hover { border-color: var(--line-2); }
.mk-card[data-on="true"] { border-color: rgba(255, 91, 10, 0.45); }
.mk-top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; }
.mk-logo { width: 40px; height: 40px; border-radius: 10px; background: #f4f1ea; color: var(--ink); display: grid; place-items: center; font: 600 17px var(--display); overflow: hidden; }
.mk-logo img { width: 26px; height: 26px; object-fit: contain; }
.mk-badge { color: var(--orange); font-size: 9.5px; border: 1px solid rgba(255, 91, 10, 0.4); border-radius: 999px; padding: 4px 8px; }
.mk-card b { font-weight: 500; font-size: 15.5px; }
.mk-card p { color: var(--muted); font-size: 13px; line-height: 1.45; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-custom { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); align-items: start; }
.mk-custom h2 { font: 500 22px var(--display); letter-spacing: -0.02em; }
.mk-custom p { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 8px 0 16px; max-width: 520px; }
@media (max-width: 900px) { .mk-custom { grid-template-columns: 1fr; gap: 22px; } .ch-titlerow { flex-wrap: wrap; } }

.ch-form .check, .ch-auto span { font: 14px/1.45 var(--sans); text-transform: none; letter-spacing: 0; }

/* ---- chat: the agent sidebar with saved tasks ---- */
.ch-rail.wide { width: 232px; align-items: stretch; padding: 14px 10px; gap: 2px; overflow-y: auto; }
.ch-rail.wide > button { width: 100%; height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 10px; font: 14px var(--sans); }
.ch-saved { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.ch-saved-h { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 4px 10px; color: var(--faint); }
.ch-saved-h button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 7px; background: none; color: var(--muted); font: 16px/1 var(--sans); cursor: pointer; }
.ch-saved-h button:hover { color: var(--text); border-color: var(--orange); }
.ch-saved form { display: grid; gap: 6px; padding: 4px 2px 8px; }
.ch-saved form .f { font-size: 13.5px; padding: 8px 10px; }
.ch-saved p { color: var(--faint); font: 13px/1.45 var(--sans); padding: 2px 10px; }
.ch-task { display: flex; align-items: center; border-radius: 8px; }
.ch-task:hover { background: rgba(244, 241, 234, 0.05); }
.ch-rail .ch-task button { height: 34px; width: auto; border-radius: 8px; background: none; }
.ch-rail .ch-task button:first-child { flex: 1; min-width: 0; display: block; text-align: left; padding: 0 10px; color: var(--muted); font: 14px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-rail .ch-task button:first-child:hover { color: var(--text); }
.ch-rail .ch-task button:last-child { width: 28px; color: var(--faint); font-size: 16px; opacity: 0; }
.ch-task:hover button:last-child, .ch-task button:last-child:focus-visible { opacity: 1; }
@media (max-width: 860px) { .ch-rail.wide { width: 46px; padding: 14px 4px; align-items: center; } .ch-rail.wide > button { width: 38px; justify-content: center; padding: 0; } .ch-rail.wide > button span, .ch-saved { display: none; } }

/* ---- chat: the schedule ---- */
.ch-page.wide { max-width: none; padding: 40px 32px 70px; }
.tk-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.tk-form { display: grid; gap: 14px; background: #161514; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.tk-when { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 12px; }
.tk-list { display: grid; gap: 10px; align-content: start; }
.tk-list > .mono { color: var(--faint); }
.tk-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #131211; }
.tk-row b { display: block; font: 500 15px var(--sans); }
.tk-row small { display: block; color: var(--orange); font: 12.5px var(--mono); margin: 3px 0 6px; }
.tk-row p { color: var(--muted); font: 13.5px/1.45 var(--sans); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 980px) { .tk-cols { grid-template-columns: 1fr; } .tk-when { grid-template-columns: 1fr 1fr; } }
/* The calendar fills the page, and nothing square pokes past its rounded frame. */
.ag-sched .toc-root { max-width: none; width: 100%; margin: 10px 0 0; }
.ag-sched .toc-root [class*="rounded-[3px]"] { border-radius: 14px; }
.ag-sched .toc-root [class*="rounded-t-[11px]"] { border-radius: 14px 14px 0 0; }
