/* Odoo Agent Cloud — portal. Formal admin look: light ground, white surfaces,
   hairline borders, near-black primary, soft colour only for state. */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f3f4f6;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --text: #111827;
  --muted: #6b7280;
  --faint: #9ca3af;
  --primary: #111827;
  --primary-hover: #1f2937;
  --accent: #1e3a8a;
  --accent-soft: #e8edf8;
  --ok: #15803d; --ok-soft: #e7f6ec;
  --bad: #b91c1c; --bad-soft: #fdecec;
  --warn: #92400e; --warn-soft: #fff4e0;
  --info: #1d4ed8; --info-soft: #e8efff;
  --violet: #6d28d9; --violet-soft: #f1ebfd;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 6px 20px -14px rgba(17, 24, 39, .15);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }
.sky { display: none; }
.app { min-height: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── brand ── */
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: .04em; flex: none; border: 1px solid #000; }
.brand-name { font-weight: 700; font-size: 17px; line-height: 1.15; }
.brand-sub { color: var(--muted); font-size: 11.5px; letter-spacing: .06em; }

/* ── login ── */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 36px 34px 30px; box-shadow: var(--shadow); }
.login h1 { font-weight: 700; font-size: 24px; margin: 30px 0 4px; letter-spacing: -.01em; }
.login p.lead { color: var(--muted); margin: 0 0 24px; font-size: 14px; }

/* ── forms ── */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--text); font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(17,24,39,.08); }
.field .hint { font-size: 12px; color: var(--muted); }
.field.inline { grid-template-columns: 1fr 1fr; gap: 12px; }
.field.inline > div { display: grid; gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); padding: 9px 14px; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 14px; transition: background .12s, border-color .12s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); border-color: #b9c0cb; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { color: var(--bad); border-color: #f3c4c4; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn svg { width: 15px; height: 15px; flex: none; }
.btn .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.35); border-top-color: currentColor; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { background: var(--bad-soft); border: 1px solid #f3c4c4; color: var(--bad); padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 13.5px; }

/* ── shell ── */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; padding: 18px 16px; border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 22px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 14.5px; transition: background .12s; }
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--surface-2); font-weight: 600; }
.nav a svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.nav a.active svg { color: var(--text); }
.nav .section { font-size: 12px; color: var(--muted); padding: 14px 10px 4px; font-weight: 500; }
.rail .me { margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 6px; }
.rail .me .who { font-weight: 600; font-size: 14px; }
.rail .me .role { font-size: 12px; color: var(--muted); }
.main { padding: 28px 32px 60px; min-width: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-weight: 700; font-size: 24px; margin: 0; line-height: 1.2; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── stats ── */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .l { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.stat .n { font-weight: 700; font-size: 28px; line-height: 1.1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.stat.ok .n { color: var(--ok); } .stat.bad .n { color: var(--bad); }

/* ── toolbar (segments + search) ── */
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.segments { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 2px; }
.segments button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; color: var(--muted); font-weight: 500; cursor: pointer; font-size: 14px; }
.segments button.active { background: var(--primary); color: #fff; }
.search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.search svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.search input { flex: 1; border: 0; background: transparent; padding: 9px 0; outline: none; }
.toolbar select { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; outline: none; }

/* ── cards ── */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 14px; box-shadow: var(--shadow); transition: border-color .12s, box-shadow .15s; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 1px 2px rgba(17,24,39,.05), 0 10px 26px -14px rgba(17,24,39,.22); }
.card .top { display: flex; align-items: flex-start; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }
.avatar.a0 { background: var(--primary); color: #fff; } .avatar.a1 { background: var(--info-soft); color: var(--info); } .avatar.a2 { background: var(--ok-soft); color: var(--ok); }
.avatar.a3 { background: var(--warn-soft); color: var(--warn); } .avatar.a4 { background: var(--violet-soft); color: var(--violet); } .avatar.a5 { background: var(--bad-soft); color: var(--bad); }
.card .title { flex: 1; min-width: 0; }
.card h3 { margin: 0; font-weight: 600; font-size: 18px; line-height: 1.25; }
.card .domain { color: var(--muted); font-size: 13px; font-family: var(--mono); direction: ltr; text-align: right; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; flex: none; }
.badge.ver { background: var(--accent-soft); color: var(--accent); }
.badge.beta { background: var(--violet-soft); color: var(--violet); }
.card .desc { color: var(--muted); font-size: 13.5px; margin: 0; }
.card hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.card .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.card .meta .l { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.card .meta .v { font-weight: 700; font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; margin-top: 4px; }
.card .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); background: var(--surface-2); }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.ok { color: var(--ok); background: var(--ok-soft); }
.chip.bad { color: var(--bad); background: var(--bad-soft); }
.chip.warn { color: var(--warn); background: var(--warn-soft); }
.chip.info { color: var(--info); background: var(--info-soft); }
.empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 50px 24px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty h3 { margin: 0; color: var(--text); font-weight: 600; font-size: 20px; }

/* ── tables ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
td .btn { white-space: nowrap; }
th, td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); font-weight: 500; text-transform: uppercase; background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafafa; }
td.num { font-variant-numeric: tabular-nums; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.mono { font-family: var(--mono); font-size: 13px; }

/* ── detail ── */
.detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow); }
.panel h2 { font-weight: 600; font-size: 16px; margin: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted); margin: 0; } .kv dd { margin: 0; word-break: break-word; }
.key-box { font-family: var(--mono); direction: ltr; text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13px; word-break: break-all; }
.steps { counter-reset: s; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-right: 36px; color: var(--muted); font-size: 14px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; right: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 12.5px; border: 1px solid var(--line); }
.steps code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; direction: ltr; display: inline-block; font-size: 12.5px; font-family: var(--mono); }
.usage { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.usage i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.notes { max-height: 260px; overflow: auto; font-size: 12.5px; color: var(--muted); display: grid; gap: 6px; direction: ltr; text-align: left; font-family: var(--mono); }
.callout { background: var(--warn-soft); border: 1px solid #f5dfb3; color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* ── modal & toasts ── */
.modal-back { position: fixed; inset: 0; z-index: 50; background: rgba(17,24,39,.45); display: grid; place-items: center; padding: 20px; animation: fade .12s ease-out; }
.modal { width: min(540px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; box-shadow: 0 30px 60px -20px rgba(17,24,39,.35); animation: rise .15s ease-out; max-height: 92vh; overflow: auto; }
.modal.wide { width: min(780px, 100%); }
.modal h2 { font-weight: 700; font-size: 19px; margin: 0 0 4px; }
.modal p.lead { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.modal .foot { display: flex; justify-content: flex-start; gap: 10px; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.toasts { position: fixed; bottom: 22px; left: 22px; z-index: 60; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 44px)); }
.toast { background: var(--primary); color: #fff; border-radius: 10px; padding: 11px 14px; box-shadow: var(--shadow); animation: rise .2s ease-out; font-size: 14px; }
.toast.bad { background: var(--bad); }

.muted { color: var(--muted); } .small { font-size: 13px; }
.loading { padding: 60px; text-align: center; color: var(--muted); }
h2.sec { font-weight: 600; font-size: 16px; margin: 0 0 12px; }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; border-left: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; gap: 14px; }
  .rail .me { margin: 0; }
  .nav { display: flex; flex-wrap: wrap; } .nav .section { display: none; }
  .main { padding: 20px 16px 50px; }
  .detail { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; }
}

/* ── activity / conversation ── */
.chip.violet { color: var(--violet); background: var(--violet-soft); }
.chip i.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
td .preview { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mini-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--muted); }
.mini-stats b { color: var(--text); font-variant-numeric: tabular-nums; }
.mini-list { display: grid; gap: 6px; margin-top: 10px; font-size: 13.5px; }
.mini-list a { text-decoration: none; color: var(--text); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.mini-list a:hover { text-decoration: underline; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.detail.conv { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); }
.detail.conv .side { display: grid; gap: 16px; align-content: start; }
.timeline { display: grid; gap: 12px; }
.msg { display: grid; gap: 4px; max-width: 92%; }
.msg .who { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.msg .body { border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.7; }
.msg.user { justify-self: end; } .msg.user .body { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.user .who { text-align: left; }
.msg.assistant .body { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg .body.rich { display: grid; gap: 8px; } .msg .body.rich pre.json { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.msg.error .body { background: var(--bad-soft); color: var(--bad); border: 1px solid #f3c4c4; }
.pre { white-space: pre-wrap; word-break: break-word; }
.turn-end { font-size: 12px; color: var(--muted); text-align: center; padding: 2px 0; border-top: 1px dashed var(--line); }
.turn-end.bad { color: var(--bad); }
details.tool, details.raw { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 13px; }
details.tool > summary, details.raw > summary { cursor: pointer; padding: 8px 12px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
details.tool > summary svg { width: 14px; height: 14px; }
details.tool[open] > summary, details.raw[open] > summary { border-bottom: 1px solid var(--line); }
details.raw { max-width: 92%; justify-self: end; }
pre.json { margin: 0; padding: 10px 12px; direction: ltr; text-align: left; font-family: var(--mono); font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; max-height: 420px; overflow: auto; color: var(--text); }
.panel details > summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 6px 0; }
.panel details p, .panel details ul { font-size: 13.5px; margin: 6px 0; }
.panel details details > summary { font-weight: 500; color: var(--muted); font-size: 13px; }
table.compact { min-width: 0; font-size: 13px; } table.compact th, table.compact td { padding: 7px 10px; }
.bad-text { color: var(--bad); }
.kv dd ul { margin: 0; padding-right: 18px; }
@media (max-width: 900px) { .detail.conv { grid-template-columns: 1fr; } .msg, details.raw { max-width: 100%; } }

.card-activity { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 8px; }
.card-activity .l { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.card-activity .l svg { width: 14px; height: 14px; }

/* admin: agent routes */
.card.route.picked { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(17, 24, 39, .12), var(--shadow); }
.card.route .field { margin-bottom: 0; }
.card.route .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.key-list { display: flex; flex-direction: column; gap: 8px; }
.key-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.key-row.active { border-color: var(--ok); background: var(--ok-soft); }
.key-row .key-name { font-weight: 600; }
.key-row .key-state { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.key-row .btn { padding: 4px 12px; }
.key-row { align-items: flex-start; }
.key-row .key-main { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 0; }
.key-row .key-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.key-row .key-owner { width: 100%; max-width: 320px; padding: 6px 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.key-row .key-owner-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.key-row .key-owner-text { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.key-row .link { border: 0; background: none; padding: 0; color: var(--info); cursor: pointer; text-decoration: underline; }
.test-out:empty { display: none; }
.test-out { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; word-break: break-word; }

/* admin: deleting conversations */
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.danger:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger-text { color: var(--bad); }
th.pick, td.pick { width: 34px; text-align: center; }
.row-actions { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.btn.danger:hover { background: #991b1b; border-color: #991b1b; }

/* admin: improvement suggestions (#14) */
.sug-list { display: grid; gap: 16px; margin-bottom: 8px; }
.sug-evs { display: grid; gap: 14px; margin-top: 8px; }
.sug-ev { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.sug-ev .msg.assistant .body { background: var(--surface); }
.sug-change { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.sug-change pre.json { border: 1px solid var(--line); border-radius: 8px; }
.sug-change pre.sug-before { background: var(--bad-soft); }
.sug-change pre.sug-after { background: var(--ok-soft); }
@media (max-width: 900px) { .sug-change { grid-template-columns: 1fr; } }
.key-row [hidden] { display: none !important; }
/* instruction scenarios, the review filters, the instructions page */
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); }
.sug-eval { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.sug-eval table { background: var(--surface); }
h3.sub { margin: 0; font-size: 15px; font-weight: 600; }
.progress { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--info); transition: width .3s; }
tr.row-bad td { background: var(--bad-soft); } tr.row-ok td { background: var(--ok-soft); }
tr.row-off td { opacity: .55; }
.toolbar.filters .search { min-width: 260px; }
.date-range { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.date-range input { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; outline: none; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 10px; }
.modal.wide { width: min(1040px, 100%); }
.eval-replies { display: grid; gap: 14px; }
.eval-replies .msg .body { max-height: 320px; overflow: auto; }
.toc { margin-bottom: 16px; }
.toc .chip { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; }
.toc .chip:hover { color: var(--text); }
details.isec { border-top: 1px solid var(--line); padding-top: 8px; }
details.isec summary { cursor: pointer; font-weight: 500; }
details.isec pre.json { margin-top: 8px; max-height: 560px; border: 1px solid var(--line); border-radius: 8px; unicode-bidi: plaintext; }
details.idoc > summary { cursor: pointer; list-style: none; }
details.idoc > summary h2 { display: inline; }
details.idoc > summary::before { content: "▸ "; color: var(--muted); }
details.idoc[open] > summary::before { content: "▾ "; }
.sc-table td:nth-child(3), .sc-table td:nth-child(4) { min-width: 200px; }
.sc-table td .preview { max-width: 300px; }
.sug-eval > .chip, #current > .chip { justify-self: start; }
