/* BOND's look for the engine's editors. ONE component system for every page:

     Button      .btn  (+ .primary .ghost .secondary .destructive · .md .icon)   website/components/ui/button.tsx
     Ribbon tool .tool (+ .text .menu .color · .on / aria-pressed)                Button ghost · Toggle (ui/toggle.tsx)
     Select      .pick · select.field                                             ui/select.tsx (trigger, size sm)
     Input       .field · textarea.field                                          ui/input.tsx · ui/textarea.tsx
     Separator   .sep                                                             ui/separator.tsx (vertical)
     Tabs        .tabs > button|a (.on)                                           ui/overflow-tabs.tsx (OverflowTabNavigation)
     Toggle grp  .seg > button (.on)                                              ui/toggle-group.tsx (outline)
     Menu        .pop > .item .line .heading .hint                                ui/dropdown-menu.tsx
     Tooltip     .tip (+ kbd) — drawn by bond.js for every [data-tip]             ui/tooltip.tsx · ui/kbd.tsx

   Every number below is the COMPUTED style of that website component in the dashboard
   (measured in Chrome on localhost:3000, 23.11.2026), not an approximation: change one
   there, change it here. Pages do not restyle these classes; a page's own <style> is for
   its document view only. */
:root {
  --background:#faf9f6; --foreground:#141413; --card:#ffffff; --popover:#faf9f6;
  --muted:#e4dbcc; --muted-foreground:#5c5b57; --accent:#f4f2ed; --accent-foreground:#141413;
  --secondary:#e4dbcc; --destructive:#ef4444; --ring:#264bc0;
  --border:#f0ece2; --input:#f0ece2; --warm-gray:#65645e; --warm-gray-light:#f0ece2;
  /* the dashboard's Button "default": beige, dark text (globals.css: .dashboard --button-*) */
  --button-bg:#eee6d5; --button-fg:#141413; --button-bg-hover:#f4f2ed;
  --tm:#264bc0; --tm-light:rgba(38,75,192,.1); --blue-light:#e9eefc;
  --cm:#017935; --cm-ink:#016c30; --green-light:#f2f7f3; --surface-green:#e5f1e9;
  --yellow-light:#f0e9dc; --amber-ink:#855a12; --surface-amber:#f6ead2;
  --red-ink:#a8321f; --red-light:#f9eae8; --placeholder:#d4cdc0; --beige-light:#f4f2ed;
  --radius:0.625rem; --radius-sm:8px; --radius-md:12px; --radius-lg:16px;
  --ring-shadow:0 0 0 3px color-mix(in oklab, var(--ring) 50%, transparent);
  --ease:cubic-bezier(.4,0,.2,1);
  --shadow-xs:0 1px 2px 0 rgb(0 0 0 / .05);
  --shadow-sm:0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
  --shadow-md:0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
  --shadow-lg:0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html, body { height:100%; }
body { margin:0; font-family:Inter, system-ui, sans-serif; font-size:14px; line-height:1.45; color:var(--foreground); background:var(--background); -webkit-font-smoothing:antialiased; display:flex; gap:16px; padding:16px; overflow:hidden; }
button { font:inherit; color:inherit; cursor:pointer; }
svg.ic { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }

/* ── Button ───────────────────────────────────────────────────────────────
   .btn = variant outline, size sm (the editors' chrome is 32px high).
   .primary = variant default · .ghost · .secondary · .destructive · .md = size default (36px) · .icon = square.
   .green / .blue are the old names of .primary. */
.btn, .tool { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex:none; height:32px; padding:0 12px; border:0 solid var(--border); border-radius:var(--radius-md); background:transparent; color:var(--foreground); font-size:14px; line-height:20px; font-weight:500; white-space:nowrap; text-decoration:none; outline:none; user-select:none; -webkit-user-select:none; transition:all .15s var(--ease); }
.btn:has(> svg), .tool.text:has(> svg) { padding:0 10px; }
.btn:focus-visible, .tool:focus-visible, .pick:focus-visible, .tabs button:focus-visible, .tabs a:focus-visible, .seg button:focus-visible { border-color:var(--ring); box-shadow:var(--ring-shadow); }
.btn[disabled], .tool[disabled], .pick[disabled], .btn[aria-disabled="true"] { opacity:.5; cursor:default; }
.btn[disabled], .btn[aria-disabled="true"] { pointer-events:none; }
.btn { border-width:1.5px; background:var(--background); box-shadow:var(--shadow-xs); }
.btn:hover { background:var(--accent); color:var(--accent-foreground); }
.btn.md { height:36px; padding:0 16px; }
.btn.md:has(> svg) { padding:0 12px; }
.btn.lg { height:40px; padding:0 24px; }
.btn.lg:has(> svg) { padding:0 16px; }
.btn.icon { width:32px; padding:0; }
.btn.icon.md { width:36px; }
.btn.primary, .btn.green, .btn.blue { border-width:0; background:var(--button-bg); color:var(--button-fg); box-shadow:none; }
.btn.primary:hover, .btn.green:hover, .btn.blue:hover { background:var(--button-bg-hover); color:var(--button-fg); }
.btn.ghost { border-width:0; background:transparent; box-shadow:none; }
.btn.ghost:hover { background:var(--accent); }
.btn.secondary { border-width:0; background:var(--secondary); box-shadow:none; }
.btn.secondary:hover { background:color-mix(in oklab, var(--secondary) 80%, transparent); }
.btn.destructive { border-width:0; background:var(--destructive); color:#fff; box-shadow:none; }
.btn.destructive:hover { background:color-mix(in oklab, var(--destructive) 90%, transparent); color:#fff; }
.btn.destructive:focus-visible { box-shadow:0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent); }

/* a row of small actions inside a card (Antworten, Annehmen, Ablehnen …): Buttons outline, size sm */
.acts { display:flex; flex-wrap:wrap; gap:4px; }
.acts button { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex:none; height:32px; padding:0 12px; border:1.5px solid var(--border); border-radius:var(--radius-md); background:var(--background); box-shadow:var(--shadow-xs); color:var(--foreground); font-size:14px; line-height:20px; font-weight:500; white-space:nowrap; outline:none; transition:all .15s var(--ease); }
.acts button:hover { background:var(--accent); }
.acts button:focus-visible { border-color:var(--ring); box-shadow:var(--ring-shadow); }
.acts button[disabled] { opacity:.5; pointer-events:none; }

/* ── Tabs: the website's custom tabs (OverflowTabNavigation) ──────────────
   A white bar with a hairline frame; the active tab lies on a beige pill. */
.tabs { display:inline-flex; align-items:center; gap:2px; padding:4px; border:1.5px solid var(--border); border-radius:var(--radius-md); background:var(--card); flex:none; }
.tabs button, .tabs a { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex:none; height:32px; padding:0 10px; border:0; border-radius:var(--radius-sm); background:transparent; font-size:14px; line-height:20px; font-weight:500; white-space:nowrap; color:var(--muted-foreground); text-decoration:none; outline:none; transition:color .2s var(--ease), background-color .2s ease-out, box-shadow .15s var(--ease); }
.tabs .on { background:var(--button-bg); color:var(--foreground); }

/* ── Toggle group (outline): a few exclusive choices in one frame ─────── */
.seg { display:flex; align-items:center; flex:none; border-radius:var(--radius-md); box-shadow:var(--shadow-xs); }
.seg button { display:inline-flex; align-items:center; justify-content:center; gap:8px; flex:1; min-width:32px; height:32px; padding:0 6px; border:1.5px solid var(--input); border-left-width:0; border-radius:0; background:transparent; color:var(--foreground); font-size:14px; line-height:20px; font-weight:500; white-space:nowrap; outline:none; transition:color .15s var(--ease), box-shadow .15s var(--ease); }
.seg button:first-child { border-left-width:1.5px; border-radius:var(--radius-md) 0 0 var(--radius-md); }
.seg button:last-child { border-radius:0 var(--radius-md) var(--radius-md) 0; }
.seg button:hover { background:var(--accent); color:var(--accent-foreground); }
.seg button.on, .seg button[aria-pressed="true"] { background:var(--accent); color:var(--accent-foreground); }
.seg button:focus-visible { position:relative; z-index:1; }

/* ── left: the file ───────────────────────────────────────────────────── */
#file { flex:1; min-width:0; display:flex; flex-direction:column; padding:8px 0 0 8px; }
#head { display:flex; align-items:center; gap:8px; min-height:32px; }
#head h1 { flex:1; min-width:0; margin:0 0 0 8px; font-size:24px; line-height:32px; font-weight:700; letter-spacing:-0.6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* the ribbon: the tab bar, and under it the card with the active tab's tools */
#tabrow { display:flex; margin-top:16px; }
#tabrow #ribbonTabs { display:flex; align-items:center; gap:2px; min-width:0; overflow-x:auto; scrollbar-width:none; }
#status { margin-left:auto; padding:0 8px 0 12px; font-size:12px; line-height:16px; color:var(--muted-foreground); font-variant-numeric:tabular-nums; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:color .2s; min-width:0; }
#status.warn { color:var(--destructive); }
#ribbon { margin-top:8px; display:flex; flex-direction:column; gap:4px; padding:4px; border:1.5px solid var(--border); border-radius:var(--radius-md); background:var(--card); }
.rrow { display:flex; align-items:center; gap:4px; min-height:32px; }
#tools { display:flex; flex-wrap:wrap; align-items:center; align-content:flex-start; gap:4px; row-gap:4px; min-height:32px; }
.group { display:flex; align-items:center; gap:4px; }

/* ── Ribbon tool ──────────────────────────────────────────────────────────
   Button ghost: icon only = size icon-sm (32×32), with a label (.text) = size sm.
   A tool that stays pressed (aria-pressed) is a Toggle, size sm. */
.tool { min-width:32px; padding:0; }
.tool.text { padding:0 12px; }
.tool:has(> .glyph:only-child), .tool:has(> .lbl:only-child) { padding:0 6px; }
.tool.text:has(> .lbl:only-child) { padding:0 12px; }
.tool:hover { background:var(--accent); color:var(--accent-foreground); }
.tool[aria-pressed]:not(.text) { padding:0 6px; }
.tool[aria-pressed] { transition:color .15s var(--ease), box-shadow .15s var(--ease); }
.tool[aria-pressed]:hover { background:var(--muted); color:var(--muted-foreground); }
.tool.on, .tool[aria-pressed="true"] { background:var(--accent); color:var(--accent-foreground); }
.tool[disabled]:hover { background:transparent; color:var(--foreground); }  /* still hoverable: its tooltip says what it is */
.tool.menu:not(.text) { padding:0 6px; gap:4px; }
/* a menu that is only its arrow: the second half of the button before it */
.tool.menu:has(> .caret:only-child) { min-width:20px; padding:0 2px; margin-left:-4px; }
.tool.menu > .caret:only-child { margin-left:0; }
.tool .glyph { font-size:14px; font-weight:600; line-height:1; font-variant-numeric:tabular-nums; }
.tool .caret, .pick > svg.ic:last-child { width:16px; height:16px; opacity:.5; color:var(--muted-foreground); }
.tool .caret { margin-left:-2px; }
.tool.color { position:relative; }
.tool.color:not(.text) { padding-bottom:5px; }
.tool .bar { position:absolute; left:8px; right:8px; bottom:5px; height:3px; border-radius:2px; }
.tool.color.text .bar { left:10px; right:auto; width:16px; bottom:3px; }

/* ── Select (trigger, size sm) ────────────────────────────────────────── */
.pick { display:inline-flex; align-items:center; justify-content:space-between; gap:8px; flex:none; height:32px; padding:0 12px; border:1.5px solid var(--input); border-radius:var(--radius-md); background:transparent; box-shadow:var(--shadow-xs); font-size:14px; line-height:20px; font-weight:400; white-space:nowrap; color:var(--foreground); outline:none; transition:color .15s var(--ease), box-shadow .15s var(--ease); }
.pick span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── Separator (vertical, between the groups of a toolbar) ────────────── */
.sep { width:1px; height:16px; margin:0 6px; background:var(--border); flex:none; }
.sep.rowend { visibility:hidden; } .sep.rowstart { visibility:hidden; width:0; margin:0 -2px; }  /* bond.js: the row breaks at this separator */

/* ── Input · Textarea · native select ─────────────────────────────────── */
.field { height:36px; padding:4px 12px; border:1.5px solid var(--input); border-radius:var(--radius-md); background:transparent; box-shadow:var(--shadow-xs); font:inherit; font-size:14px; line-height:20px; color:var(--foreground); outline:none; min-width:0; transition:color .15s var(--ease), box-shadow .15s var(--ease); }
.field.sm, #ribbon .field, .pill .field, #panel .field { height:32px; }
textarea.field, #ribbon textarea.field, #panel textarea.field { height:auto; min-height:64px; padding:8px 12px; resize:vertical; }
select.field { text-overflow:ellipsis; appearance:none; -webkit-appearance:none; padding-right:32px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c5b57' stroke-opacity='.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 10px center; background-size:16px; }
.field::placeholder { color:var(--muted-foreground); opacity:1; }
.field:focus-visible { border-color:var(--ring); box-shadow:var(--ring-shadow); }
.field:disabled { opacity:.5; cursor:not-allowed; }
input[type="color"] { width:32px; height:32px; flex:none; padding:3px; border:1.5px solid var(--input); border-radius:var(--radius-md); background:transparent; box-shadow:var(--shadow-xs); cursor:pointer; }
input[type="color"]::-webkit-color-swatch-wrapper { padding:0; } input[type="color"]::-webkit-color-swatch { border:0; border-radius:6px; }
input[type="checkbox"], input[type="radio"] { width:16px; height:16px; margin:0; flex:none; accent-color:var(--foreground); }

/* the stage: where the document lies on the page background */
#stage { position:relative; flex:1; min-height:0; margin-top:16px; }
#empty { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:var(--muted-foreground); font-size:14px; pointer-events:none; }
.spin { width:20px; height:20px; border:2px solid var(--muted); border-top-color:var(--muted-foreground); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

/* floating pills: the website's file dock (components/files/FileViewDock.tsx) */
#dock { position:absolute; left:0; right:0; bottom:16px; display:flex; justify-content:center; gap:8px; pointer-events:none; padding:0 16px; z-index:20; }
.pill { pointer-events:auto; display:flex; align-items:center; gap:2px; max-width:100%; padding:4px 6px; border:1.5px solid var(--border); border-radius:999px; background:color-mix(in srgb, var(--card) 95%, transparent); box-shadow:var(--shadow-md); backdrop-filter:blur(8px); }
.pill .lbl { padding:4px 8px; font-size:12px; line-height:16px; color:var(--muted-foreground); font-variant-numeric:tabular-nums; white-space:nowrap; }
.pill .chipbtn { flex:none; display:flex; align-items:center; justify-content:center; gap:6px; height:32px; min-width:32px; padding:0 10px; border:0; border-radius:999px; background:transparent; font-size:12px; line-height:16px; font-weight:500; color:var(--muted-foreground); white-space:nowrap; outline:none; transition:color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease); }
.pill .chipbtn:hover { background:color-mix(in oklab, var(--muted) 50%, transparent); color:var(--foreground); }
.pill .chipbtn:focus-visible { box-shadow:var(--ring-shadow); }
.pill .chipbtn.on { background:var(--tm); color:#fff; }
.pill .chipbtn[disabled] { opacity:.4; pointer-events:none; }

/* ── Menu (dropdown-menu) · Popover · forms inside ────────────────────── */
.pop { position:fixed; z-index:1000; min-width:128px; max-width:min(420px, calc(100vw - 16px)); max-height:min(70vh, 560px); overflow-x:hidden; overflow-y:auto; padding:4px; border:1.5px solid var(--border); border-radius:var(--radius-md); background:var(--popover); color:var(--foreground); box-shadow:var(--shadow-md); font-size:14px; line-height:20px; animation:pop-in .15s ease; transform-origin:var(--origin, top left); }
.pop.up { animation-name:pop-in-up; }
@keyframes pop-in { from { opacity:0; transform:translateY(-8px) scale(.95); } }
@keyframes pop-in-up { from { opacity:0; transform:translateY(8px) scale(.95); } }
.pop .item { display:flex; align-items:center; gap:8px; width:100%; padding:6px 8px; border:0; border-radius:var(--radius-sm); background:transparent; text-align:left; font-size:14px; line-height:20px; font-weight:400; color:var(--foreground); outline:none; cursor:default; user-select:none; -webkit-user-select:none; }
.pop .item:hover, .pop .item.hot, .pop .item:focus-visible { background:var(--accent); color:var(--accent-foreground); }
.pop .item[disabled] { opacity:.5; pointer-events:none; }
.pop .item svg.ic { color:var(--muted-foreground); }
.pop .item .grow { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pop .item .hint { margin-left:auto; padding-left:8px; font-size:12px; line-height:16px; color:var(--muted-foreground); font-variant-numeric:tabular-nums; white-space:nowrap; }
.pop .item.danger, .pop .item.danger svg.ic { color:var(--destructive); }
.pop .item.danger:hover, .pop .item.danger:focus-visible { background:color-mix(in oklab, var(--destructive) 10%, transparent); color:var(--destructive); }
.pop .line { height:1px; margin:4px -4px; background:var(--border); }
.pop .heading { padding:6px 8px; font-size:12px; line-height:16px; color:var(--muted-foreground); }
.pop form { display:flex; flex-direction:column; gap:12px; padding:12px; min-width:264px; }
.pop form h3 { margin:0; font-size:14px; line-height:20px; font-weight:500; }
.pop form label { display:flex; flex-direction:column; gap:6px; font-size:14px; line-height:20px; font-weight:500; color:var(--foreground); }
.pop form label.check { flex-direction:row; align-items:center; gap:8px; font-weight:400; }
.pop form .field { width:100%; font-weight:400; }
.pop form .actions { display:flex; justify-content:flex-end; gap:8px; margin-top:4px; }
.pop form p { margin:0; font-size:14px; line-height:20px; color:var(--muted-foreground); }
/* a form that deletes: its submit button is the destructive Button */
.pop form.danger .actions .btn[type="submit"] { border-width:0; background:var(--destructive); color:#fff; box-shadow:none; }
.pop form.danger .actions .btn[type="submit"]:hover { background:color-mix(in oklab, var(--destructive) 90%, transparent); }
/* export forms come from the engine and can be long: headings between the blocks, the buttons stay in view */
.pop.exportform { max-height:min(78vh, 640px); }
.pop.exportform form .heading { margin-top:4px; padding:12px 0 0; border-top:1px solid var(--border); font-size:14px; line-height:20px; font-weight:500; color:var(--foreground); }
.pop.exportform form .actions { position:sticky; bottom:-4px; margin:0 -12px -12px; padding:12px; background:var(--popover); border-top:1px solid var(--border); }
.swatches { display:grid; grid-template-columns:repeat(10, 20px); gap:4px; padding:6px 8px 8px; }
.swatches button { width:20px; height:20px; padding:0; border:1px solid rgb(0 0 0 / .12); border-radius:5px; outline:none; transition:transform .15s var(--ease), box-shadow .15s var(--ease); }
.swatches button:hover { transform:scale(1.15); }
.swatches button:focus-visible { box-shadow:var(--ring-shadow); }

/* ── Tooltip ──────────────────────────────────────────────────────────────
   bond.js shows it for every [data-tip] (and turns every title="" into one): above the
   control, under it when there is no room, kept inside the window, the arrow on the control. */
.tip { position:fixed; left:0; top:0; z-index:1300; display:flex; align-items:center; gap:8px; width:max-content; max-width:min(320px, calc(100vw - 16px)); padding:6px 12px; border-radius:var(--radius-md); background:var(--foreground); color:var(--background); font-size:12px; line-height:16px; font-weight:400; text-wrap:balance; pointer-events:none; animation:tip-in .15s ease; }
.tip[data-side="top"] { --slide:8px; } .tip[data-side="bottom"] { --slide:-8px; }
.tip.out { animation:tip-out .15s ease forwards; }
@keyframes tip-in { from { opacity:0; transform:translateY(var(--slide)) scale(.95); } }
@keyframes tip-out { to { opacity:0; transform:scale(.95); } }
.tip i { position:absolute; width:10px; height:10px; margin-left:-5px; border-radius:2px; background:var(--foreground); transform:rotate(45deg); }
.tip[data-side="top"] i { bottom:-3px; } .tip[data-side="bottom"] i { top:-3px; }
.tip kbd, kbd.key { display:inline-flex; align-items:center; justify-content:center; height:20px; min-width:20px; padding:0 4px; border-radius:var(--radius-sm); background:color-mix(in oklab, var(--background) 20%, transparent); color:var(--background); font:inherit; font-weight:500; }
.tip .keys { display:inline-flex; align-items:center; gap:4px; flex:none; }
@media (prefers-reduced-motion: reduce) { .tip, .tip.out, .pop { animation-duration:1ms; } }

#toast { position:fixed; left:50%; bottom:76px; transform:translateX(-50%); z-index:1200; padding:8px 14px; border-radius:var(--radius-md); background:var(--foreground); color:var(--background); font-size:14px; line-height:20px; box-shadow:var(--shadow-lg); opacity:0; pointer-events:none; transition:opacity .2s; }
#toast.show { opacity:1; }
#toast.warn { background:var(--destructive); color:#fff; }

/* ── right: the panel ─────────────────────────────────────────────────── */
#panel { width:360px; flex:none; display:flex; flex-direction:column; overflow:hidden; border:1.5px solid var(--border); border-radius:var(--radius-md); background:var(--card); }
#panel header { display:flex; justify-content:flex-end; gap:4px; padding:12px 16px; flex-wrap:wrap; }  /* its buttons: .btn.ghost */
#panel header .btn.on { background:var(--accent); }
.who { display:flex; align-items:center; gap:12px; padding:10px 16px 14px; border-bottom:1.5px solid var(--border); }
.who .dot { width:32px; height:32px; flex:none; border-radius:50%; background:var(--blue-light); color:var(--tm); display:flex; align-items:center; justify-content:center; }
.who b { display:block; font-size:14px; font-weight:600; }
.who span { font-size:12px; color:var(--muted-foreground); }
.pane { flex:1; overflow:auto; padding:16px; display:none; flex-direction:column; gap:10px; }
.pane.on { display:flex; }
.hint { margin:auto; max-width:240px; text-align:center; color:var(--muted-foreground); font-size:13px; }
.entry { border:1.5px solid var(--border); border-radius:16px; padding:10px 12px; font-size:13px; }
.entry .top { display:flex; align-items:baseline; gap:8px; }
.entry .cell { font-weight:600; font-variant-numeric:tabular-nums; white-space:nowrap; }
.entry .val { flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.entry .ms { font-size:12px; color:var(--muted-foreground); font-variant-numeric:tabular-nums; white-space:nowrap; }
.entry .sub { margin-top:4px; font-size:12px; color:var(--muted-foreground); }
.entry .chips { display:flex; flex-wrap:wrap; gap:4px; margin-top:8px; }
.chip { display:inline-flex; gap:5px; padding:2px 8px; border-radius:999px; background:var(--green-light); color:var(--cm-ink); font-size:12px; font-variant-numeric:tabular-nums; border:0; }
button.chip:hover { background:var(--surface-green); }
.chip.more { background:var(--beige-light); color:var(--muted-foreground); }
.stat { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1.5px solid var(--border); font-size:13px; }
.stat:last-child { border-bottom:0; }
.stat span { color:var(--muted-foreground); }
.stat b { font-weight:500; font-variant-numeric:tabular-nums; text-align:right; }
.note { padding:10px 12px; border-radius:16px; background:var(--tm-light); border:1px solid color-mix(in srgb, var(--tm) 20%, transparent); font-size:12px; }

/* ── embedded in a host page (?embed=1): the host draws title, file actions and the panel —
   and, once it has said so (message "ribbonHosted"), the ribbon's tab row with its own tabs component ── */
html.embed body { padding:0; gap:0; background:transparent; }
html.embed #file { padding:0; }
html.embed #head, html.embed #panel { display:none; }
html.embed #tabrow { margin-top:0; }
html.embed #status { display:none; }  /* the host shows it */
html.embed.host-tabs #tabrow { display:none; }
html.embed.host-tabs #ribbon { margin-top:0; }
