/* Carried over from the old system (JarvisDailyCity, city/web/static/agent-skin.css, decision D169): a tile's
   conversation as the Claude Code extension and as the Codex app, measured there from the real apps. Changed by
   ci/port-spaces-css.py in four ways only: body[data-skin] is div[data-skin], the same weight (a tile is part of a
   page here, not a page); an id is a data-cc attribute with the id's weight (a page holds several tiles); the old
   light variants are left out; and every colour is a variable (--ag-*, --cx-*, --sk-*) whose value is given in one
   place, from the product's tokens: spaces/theme.css. Sizes, gaps and shapes are the old ones. */
/* D169 (founder, 2026-10-24): a herdr tile's conversation is drawn as the agent's own app, measured from the real
   thing: the Claude Code extension as Antigravity shows it (Claude Code 2.1.310, Gitpod Dark), and the Codex app.
   Only tiles carry div[data-skin]; City's other chat screens keep their own look. */

/* ------------------------------------------------------------------ Claude: the Claude Code extension */
div[data-skin="claude"] {
  background: var(--ag-bg); color: var(--ag-fg); font-family: var(--ag-font);
}
div[data-skin] .cc { border: 0; border-radius: 0; box-shadow: none; }      /* the apps draw no frame round the panel */
div[data-skin] .cc-bar :is([data-cc="mode"], #cc-x), div[data-skin] .cc-bar :is([data-cc="model"], #cc-x), div[data-skin] .cc-bar .cc-icon { margin-top: 0; margin-bottom: 0; }
div[data-skin] .cc-bar :is([data-cc="mode"], #cc-x), div[data-skin="codex"] .cc-bar :is([data-cc="model"], #cc-x) { margin-left: 0; margin-right: 0; }
/* the extension's panel starts 1px in (an empty error line at its left edge, in the real editor too) */
div[data-skin="claude"] .pane-term { padding-left: 1px; }
div[data-skin="claude"] .cc, div[data-skin="claude"] .cc-body { background: var(--ag-bg); color: var(--ag-fg); font-family: var(--ag-font); }
div[data-skin="claude"] .cc-log { padding: 20px 20px 40px; gap: 0; }

/* the founder's message: a full-width box that stays at the top while its reply scrolls under it */
div[data-skin="claude"] .cc-you { position: sticky; top: 0; z-index: 2; align-items: stretch; gap: 4px; padding: 14px 0 12px; margin: 0 0 4px;
  background: linear-gradient(var(--ag-bg) calc(100% - 12px), transparent); }
div[data-skin="claude"] .cc-log > .ag-block:first-child > .cc-you { padding-top: 0; }
div[data-skin="claude"] .cc-bubble { max-width: none; background: var(--ag-input); border: 1px solid var(--ag-border); border-radius: 6px;
  padding: 4px 6px; font-size: 13px; line-height: 19.5px; color: var(--ag-fg); max-height: 40vh; overflow-y: auto; }
div[data-skin="claude"] .cc-att { max-width: none; justify-content: flex-start; }
div[data-skin="claude"] .cc-bubble.cc-clamp { max-height: calc(6 * 19.5px + 8px); overflow: hidden; }
div[data-skin="claude"] .cc-you.cc-you-open { position: static; }   /* opened in full, it scrolls with the chat */
div[data-skin="claude"] .cc-you-open > .cc-bubble.cc-clamp { max-height: none; }
div[data-skin="claude"] .cc-you-more { align-self: flex-start; color: var(--ag-link); }
div[data-skin="claude"] .cc-paste > summary { border-color: var(--ag-border); color: var(--ag-muted); }
/* a background task's notice: one quiet line, as the extension shows it; its result opens under it */
div[data-skin="claude"] .cc-task { color: var(--ag-muted); font-size: 12px; margin: 6px 0; }
div[data-skin="claude"] .cc-task-body { border-left-color: var(--ag-line); color: var(--ag-fg); }

/* the reply: a timeline. Every row is indented 30px with a 7px dot at 9px, and a 1px line joins the dots */
div[data-skin="claude"] .cc-turn { display: block; }
div[data-skin="claude"] .cc-flow { position: relative; gap: 0; padding: 0; }
div[data-skin="claude"] .cc-flow > * { position: relative; padding-left: 30px; }
div[data-skin="claude"] .cc-flow > .cc-md, div[data-skin="claude"] .cc-flow > .cc-todos,
div[data-skin="claude"] .cc-flow > .cc-live, div[data-skin="claude"] .cc-flow > .cc-perm,
div[data-skin="claude"] .cc-flow > .cc-err, div[data-skin="claude"] .cc-flow > .cc-notice { margin-top: 8px; }
div[data-skin="claude"] .cc-flow > .ag-tool { padding-top: 8px; padding-bottom: 8px; }
div[data-skin="claude"] .cc-flow > .cc-md::before, div[data-skin="claude"] .cc-flow > .cc-todos::before,
div[data-skin="claude"] .cc-flow > .ag-tool > summary::before, div[data-skin="claude"] .cc-flow > .cc-perm::before {
  content: ""; position: absolute; left: 9px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ag-muted); z-index: 1; }
div[data-skin="claude"] .cc-flow > .ag-tool > summary::before { left: -21px; top: 7px; }
div[data-skin="claude"] .cc-flow > .cc-todos::before, div[data-skin="claude"] .ag-tool.ok > summary::before { background: var(--sk-good); }
div[data-skin="claude"] .ag-tool.bad > summary::before { background: var(--sk-bad); }
div[data-skin="claude"] .ag-tool.run > summary::before { animation: ccBlink 1s ease-in-out infinite; }
div[data-skin="claude"] .cc-flow > .cc-perm::before { background: var(--sk-ask); }
div[data-skin="claude"] .cc-flow::before { content: ""; position: absolute; left: 12px; top: 18px; bottom: 18px; width: 1px; background: var(--ag-line); }
div[data-skin="claude"] .cc-flow:has(> :only-child)::before { display: none; }

/* text */
div[data-skin="claude"] .cc-md { font-size: 13px; line-height: 19.5px; color: var(--ag-fg); }
div[data-skin="claude"] .cc-md p { margin: 0 0 2.6px; }
div[data-skin="claude"] .cc-md p + p { margin-top: 1.3px; }
div[data-skin="claude"] .cc-md ul, div[data-skin="claude"] .cc-md ol { margin: 13px 0; padding-left: 26px; }
div[data-skin="claude"] .cc-md li { margin: 0; line-height: 19.5px; }
div[data-skin="claude"] .cc-md li::marker { color: var(--ag-fg); }
div[data-skin="claude"] .cc-md h1, div[data-skin="claude"] .cc-md h2, div[data-skin="claude"] .cc-md h3,
div[data-skin="claude"] .cc-md h4, div[data-skin="claude"] .cc-md h5, div[data-skin="claude"] .cc-md h6 {
  font-size: 13px; line-height: 19.5px; font-weight: 700; letter-spacing: 0; margin: 13px 0 2.6px; color: var(--ag-fg); }
div[data-skin="claude"] .cc-md strong { font-weight: 700; }
div[data-skin="claude"] .cc-md a { color: var(--ag-link); }
div[data-skin="claude"] .cc-md code { font-family: var(--ag-mono); font-size: 11.7px; line-height: 17.55px; color: var(--sk-code);
  background: var(--sk-tint-2); border: 0; padding: 2px 4px; border-radius: 3px; }
div[data-skin="claude"] .cc-code { position: relative; border: 0; border-radius: 4px; margin: 8px 0; background: var(--sk-sunk); overflow: visible; }
div[data-skin="claude"] .cc-code-bar { position: absolute; top: 4px; right: 4px; padding: 0; border: 0; opacity: 0; transition: opacity .15s; z-index: 1; }
div[data-skin="claude"] .cc-code-bar > span { display: none; }
div[data-skin="claude"] .cc-code:hover .cc-code-bar { opacity: 1; }
div[data-skin="claude"] .cc-code-bar .cc-copy { background: var(--ag-tool); border: 1px solid var(--ag-border); border-radius: 4px; color: var(--ag-fg); }
div[data-skin="claude"] .cc-code pre { padding: 8px; font-family: var(--ag-mono); font-size: 11.7px; line-height: 17.55px; color: var(--ag-fg); }
div[data-skin="claude"] .cc-code pre code { color: inherit; background: none; padding: 0; }
div[data-skin="claude"] .cc-table { border-color: var(--ag-border); }
div[data-skin="claude"] .cc-table th { background: var(--ag-input); color: var(--ag-fg); }
div[data-skin="claude"] .cc-table th, div[data-skin="claude"] .cc-table td { border-color: var(--ag-border); font-size: 13px; }
/* An answer's Copy row takes its own height: hung outside the answer at no height, it was clipped by the answer's
   block (content-visibility) and could not be seen or pressed (16 Nov 2026). */
div[data-skin="claude"] .cc-msg-actions { margin: 2px 0 0; padding-left: 30px; align-items: flex-start; }
div[data-skin="claude"] .cc-copy { color: var(--ag-muted); }

/* a step: the tool's name in bold, then the file (link colour) or what it does; a command's IN and OUT, an edit's diff */
div[data-skin="claude"] .ag-tool { font-size: 13px; }
div[data-skin="claude"] .ag-tool > summary { position: relative; display: flex; align-items: baseline; gap: 0; min-height: 0; padding: 0; color: var(--ag-fg);
  font-family: var(--ag-font); font-size: 13px; line-height: 19.5px; border-radius: 0; cursor: pointer; }
div[data-skin="claude"] .ag-tool > summary:hover { background: none; color: var(--ag-fg); }
div[data-skin="claude"] .ag-tname { font-weight: 700; margin-right: 4px; flex-shrink: 0; }
div[data-skin="claude"] .ag-file { font-family: var(--ag-mono); font-size: 11.05px; color: var(--ag-link); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
div[data-skin="claude"] .ag-what { color: var(--ag-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
div[data-skin="claude"] .ag-sub { font-size: 11.05px; line-height: 16.5px; color: var(--ag-muted); }
div[data-skin="claude"] .ag-box { margin: 8px 0 0; background: var(--ag-tool); border: 1px solid var(--ag-border); border-radius: 5px; overflow: hidden; }
div[data-skin="claude"] .ag-io { display: grid; grid-template-columns: auto minmax(0, 1fr); padding: 4px; }
div[data-skin="claude"] .ag-io + .ag-io { border-top: 1px solid var(--ag-border); }
div[data-skin="claude"] .ag-lab { padding: 4px 8px 4px 4px; font-family: var(--ag-mono); font-size: 11.05px; line-height: 16.575px; color: var(--ag-muted); opacity: .5; }
div[data-skin="claude"] .ag-io pre { margin: 0; padding: 4px; font-family: var(--ag-mono); font-size: 11.05px; line-height: 16.575px; color: var(--ag-fg);
  max-height: 60px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: none; border: 0; border-radius: 0; }
div[data-skin="claude"] .ag-out pre { background: var(--sk-sunk); }
div[data-skin="claude"] .ag-box .cc-diff { margin: 0; padding: 4px 0; font-family: var(--ag-mono); font-size: 12px; line-height: 18px; color: var(--ag-fg);
  max-height: 240px; overflow: auto; white-space: pre; background: none; border: 0; }
div[data-skin="claude"] .ag-box .cc-diff span { display: inline-block; min-width: 100%; padding: 0 8px; }
div[data-skin="claude"] .ag-box .cc-diff .add { background: var(--sk-add); }
div[data-skin="claude"] .ag-box .cc-diff .del { background: var(--sk-del); }

/* the to-do list */
div[data-skin="claude"] .cc-todos { border: 0; background: none; padding-top: 0; padding-bottom: 0; border-radius: 0; }
div[data-skin="claude"] .cc-todos-head { display: block; padding: 0; margin: 0 0 4px; font-size: 13px; line-height: 19.5px; }
div[data-skin="claude"] .cc-todos-head b { font-weight: 700; }
div[data-skin="claude"] .cc-todos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
div[data-skin="claude"] .cc-todos li { display: flex; align-items: center; gap: 8px; padding: 0; font-size: 13px; line-height: 19.5px; color: var(--ag-fg); border: 0; }
div[data-skin="claude"] .cc-todos .cc-tick { width: 13px; height: 13px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--ag-input); border: 1px solid var(--ag-border); border-radius: 2px; font-size: 9px; line-height: 1; color: var(--ag-fg); box-shadow: none; }
div[data-skin="claude"] .cc-todos li.completed { opacity: .7; }
div[data-skin="claude"] .cc-todos li.completed .cc-todo-label { text-decoration: line-through; }

/* working: Claude's orange glyph and its word */
div[data-skin="claude"] .cc-live { gap: 0; }
div[data-skin="claude"] .cc-status { min-height: 24px; margin-top: 4px; gap: 6px; font-size: 13px; color: var(--ag-fg); }
div[data-skin="claude"] .cc-spark { width: 14px; height: 14px; fill: var(--sk-spark); }
div[data-skin="claude"] .cc-word { font-weight: 400; background: linear-gradient(90deg, var(--sk-spark) 0%, var(--sk-spark) 38%, var(--sk-spark-2) 50%, var(--sk-spark) 62%, var(--sk-spark) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
div[data-skin="claude"] .cc-live-details, div[data-skin="claude"] .cc-secs { color: var(--ag-muted); }
div[data-skin="claude"] .cc-flow > .cc-live::before { display: none; }

div[data-skin="claude"] .cc-note { color: var(--ag-muted); font-size: 12px; margin: 8px 0; }
div[data-skin="claude"] .cc-perm { background: var(--ag-tool); border-color: var(--ag-border); color: var(--ag-fg); font-size: 13px; border-radius: 5px; }
div[data-skin="claude"] .cc-jump { background: var(--ag-input); border-color: var(--ag-border); color: var(--ag-fg); }

/* the message box: a 8px-rounded #3c3c3c box 16px in from the edges, the text over one footer row:
   + and / on the left, the model pill, then the mode and the send button on the right */
div[data-skin="claude"] .cc-composer { margin: 0 16px 16px; padding: 0; gap: 0; border-radius: 8px; background: var(--ag-input);
  border: 1px solid var(--ag-border); box-shadow: 0 1px 2px var(--sk-shade-1); }
div[data-skin="claude"] .cc-composer:focus-within { border-color: var(--ag-mode);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ag-mode) 12%, transparent), 0 1px 2px color-mix(in srgb, var(--ag-mode) 20%, transparent); }
div[data-skin="claude"] .cc-composer textarea, div[data-skin="claude"] .cc-mirror { font-family: var(--ag-font); font-size: 13px; line-height: 19.5px;
  min-height: 39.5px; max-height: 200px; padding: 10px 36px 10px 14px; color: var(--ag-fg); background: transparent; box-sizing: border-box; }
div[data-skin="claude"] .cc-composer textarea::placeholder { color: var(--sk-mute); }
div[data-skin="claude"] .cc-bar, div[data-skin="claude"] .cc:not(.proj) .cc-bar { display: flex; align-items: center; gap: 2px; padding: 5px; margin: 0;
  border-top: 1px solid var(--ag-border); min-height: 37px; box-sizing: border-box; flex-wrap: nowrap; }
div[data-skin="claude"] .cc-bar > :is([data-cc="attach"], #cc-x) { order: 1; }
div[data-skin="claude"] .cc-bar > :is([data-cc="commands"], #cc-x) { order: 2; }
div[data-skin="claude"] .cc-bar > .cc-menu:has(:is([data-cc="model"], #cc-x)) { order: 3; }
div[data-skin="claude"] .cc-bar > .cc-hint { order: 4; display: block; flex: 1 1 auto; min-width: 0; visibility: hidden; height: 0; overflow: hidden; }
div[data-skin="claude"] .cc-bar > :is([data-cc="ctx"], #cc-x) { order: 5; }
div[data-skin="claude"] .cc-bar > .cc-menu:has(:is([data-cc="mode"], #cc-x)) { order: 6; }
div[data-skin="claude"] .cc-bar > .cc-menu { margin: 0; padding: 0; }
div[data-skin="claude"] .cc-bar > .cc-send { order: 7; }
div[data-skin="claude"] .cc-bar .cc-icon, div[data-skin="claude"] .cc-bar .cc-glyph { width: 26px; height: 26px; min-height: 0; padding: 0; border-radius: 5px;
  color: var(--ag-fg); background: transparent; font-size: 0; }
div[data-skin="claude"] .cc-bar .cc-icon:hover, div[data-skin="claude"] .cc-bar .cc-glyph:hover { background: var(--ag-hover); color: var(--ag-fg); }
div[data-skin="claude"] .cc-bar .cc-icon svg, div[data-skin="claude"] .cc-bar .cc-glyph svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
/* the microphone sits inside the text, top right, as in the founder's panel */
div[data-skin="claude"] .cc-composer { position: relative; }
div[data-skin="claude"] .cc-bar, div[data-skin="claude"] .cc:not(.proj) .cc-bar { position: static; }
div[data-skin="claude"] .cc-bar > :is([data-cc="mic"], #cc-x) { position: absolute; top: 7px; right: 8px; z-index: 2; color: var(--ag-muted); }
div[data-skin="claude"] .cc-bar > :is([data-cc="mic"], #cc-x) svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; }
/* the model pill */
div[data-skin="claude"] .cc-bar :is([data-cc="commands"], #cc-x) { margin: 0; }
div[data-skin="claude"] .cc-bar :is([data-cc="model"], #cc-x) { height: 18px; min-height: 0; margin: 0 0 0 6px; padding: 0 8px; border: 0; border-radius: 9999px;
  background: var(--sk-tint-2); color: var(--ag-fg); font-family: var(--ag-font); font-size: 11.05px; line-height: 18px; font-weight: 400; }
div[data-skin="claude"] .cc-bar :is([data-cc="model"], #cc-x):hover { background: var(--sk-tint-3); color: var(--ag-fg); }
div[data-skin="claude"] .cc-bar :is([data-cc="model"], #cc-x):disabled { color: var(--ag-fg); cursor: default; }
div[data-skin="claude"] .cc-bar :is([data-cc="model"], #cc-x) .cc-eff { margin-left: 4px; color: var(--ag-muted); font-size: inherit; }
div[data-skin="claude"] .cc-bar .cc-menu .cc-model::after { display: none; }
/* the mode: its icon and name */
div[data-skin="claude"] .cc-bar :is([data-cc="mode"], #cc-x) { display: inline-flex; align-items: center; height: 26px; min-height: 0; padding: 0 8px 0 0; gap: 0; border: 0;
  border-radius: 5px; background: transparent; color: var(--ag-fg); font-family: var(--ag-font); font-size: 11.05px; line-height: 26px; }
div[data-skin="claude"] .cc-bar :is([data-cc="mode"], #cc-x):hover { background: var(--ag-hover); color: var(--ag-fg); }
div[data-skin="claude"] .cc-bar :is([data-cc="mode"], #cc-x) svg { width: 26px; height: 26px; flex: none; fill: currentColor; stroke: none; }
/* send: the mode's colour; faint while there is nothing to send; Stop while Claude works */
div[data-skin="claude"] .cc-bar .cc-send, div[data-skin="claude"] .cc-bar .cc-send.stop { position: static; width: 26px; height: 26px; margin-left: 2px; border-radius: 5px;
  background: var(--ag-mode); color: var(--sk-on-mode); opacity: 1; }
div[data-skin="claude"] .cc-bar .cc-send:disabled { background: var(--ag-mode); color: var(--sk-on-mode); opacity: .4; }
div[data-skin="claude"] .cc-bar .cc-send:not(:disabled):hover { filter: brightness(1.1); }
div[data-skin="claude"] .cc-bar .cc-send svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
div[data-skin="claude"] .cc-bar .cc-send.stop svg { width: 14px; height: 14px; }
div[data-skin="claude"] .cc-queue { margin: 0 16px; }
div[data-skin="claude"] .cc-pop { background: var(--sk-card); color: var(--ag-fg); border: 1px solid var(--ag-border); box-shadow: 0 4px 12px var(--sk-shade-2); }
div[data-skin="claude"] .cc-pop button { color: var(--ag-fg); font-size: 13px; }
div[data-skin="claude"] .cc-pop button:hover, div[data-skin="claude"] .cc-pop button.on { background: var(--sk-tint-3); }

/* ------------------------------------------------------------------ Codex: the Codex app (ChatGPT.app 26.1013, dark) */
div[data-skin="codex"] {
  background: var(--cx-bg); color: var(--cx-fg); font-family: var(--cx-font); font-weight: 430;
}
div[data-skin="codex"] .cc, div[data-skin="codex"] .cc-body { background: var(--cx-bg); color: var(--cx-fg); font-family: var(--cx-font); }
div[data-skin="codex"] .cc-log { padding: 16px 16px 24px; gap: 16px; }

/* your message: a right-hand bubble */
div[data-skin="codex"] .cc-you { align-items: flex-end; gap: 4px; }
div[data-skin="codex"] .cc-bubble { max-width: 70%; background: var(--sk-tint-2); border-radius: 22px; padding: 10px 16px;
  font-size: 14px; line-height: 22.75px; color: var(--cx-fg); font-weight: 430; }

/* the reply */
div[data-skin="codex"] .cc-turn { display: block; }
div[data-skin="codex"] .cc-flow { gap: 16px; padding: 0; }
div[data-skin="codex"] .cc-md { font-size: 14px; line-height: 22.75px; color: var(--cx-fg); font-weight: 430; }
div[data-skin="codex"] .cc-md p { margin: 0 0 3.5px; }
div[data-skin="codex"] .cc-md ul, div[data-skin="codex"] .cc-md ol { margin: 0 0 3.5px; padding-left: 22.75px; }
div[data-skin="codex"] .cc-md li { padding-left: 5.25px; margin: 0; }
div[data-skin="codex"] .cc-md li::marker { color: var(--cx-fg); }
div[data-skin="codex"] .cc-md h1, div[data-skin="codex"] .cc-md h2, div[data-skin="codex"] .cc-md h3,
div[data-skin="codex"] .cc-md h4, div[data-skin="codex"] .cc-md h5, div[data-skin="codex"] .cc-md h6 {
  font-size: 14px; line-height: 22.75px; font-weight: 600; letter-spacing: 0; margin: 10px 0 3.5px; color: var(--cx-fg); }
div[data-skin="codex"] .cc-md strong { font-weight: 600; }
div[data-skin="codex"] .cc-md a { color: var(--sk-link); }
div[data-skin="codex"] .cc-md code { font-family: var(--cx-mono); font-size: .92em; background: var(--sk-tint-2); border: 0;
  border-radius: 6px; padding: 1px 6px; color: var(--cx-fg); }
div[data-skin="codex"] .cc-code { background: var(--sk-sunk); border: 1px solid var(--sk-tint-2); border-radius: 20px; margin: 17.5px 0; overflow: hidden; }
div[data-skin="codex"] .cc-code-bar { padding: 8px 8px 4px 16px; border: 0; font-family: var(--cx-font); font-size: 13px; font-weight: 500; color: var(--cx-fg); }
div[data-skin="codex"] .cc-code-bar .cc-copy { color: var(--cx-muted); border-radius: 10px; }
div[data-skin="codex"] .cc-code pre { padding: 0 16px 12px; font-family: var(--cx-mono); font-size: 12px; line-height: 20px; color: var(--cx-fg); }
div[data-skin="codex"] .cc-code pre code { background: none; padding: 0; font-size: inherit; }
div[data-skin="codex"] .cc-table { border-color: var(--cx-line); border-radius: 12.5px; }
div[data-skin="codex"] .cc-table th { background: var(--sk-tint-1); color: var(--cx-fg); }
div[data-skin="codex"] .cc-table th, div[data-skin="codex"] .cc-table td { border-color: var(--cx-line); font-size: 13px; }
div[data-skin="codex"] .cc-msg-actions { margin: -6px 0 0; align-items: flex-start; }
div[data-skin="codex"] .cc-copy { color: var(--cx-muted); }

/* a step: one muted line with the app's icon; open, its Shell panel or diff */
div[data-skin="codex"] .cx-tool { font-size: 14px; }
div[data-skin="codex"] .cx-tool > summary { display: flex; align-items: center; gap: 6px; min-height: 21px; padding: 0; color: var(--cx-dim);
  font-family: var(--cx-font); font-size: 14px; line-height: 21px; font-weight: 430; border-radius: 0; cursor: pointer; }
div[data-skin="codex"] .cx-tool > summary:hover { background: none; color: var(--cx-fg); }
div[data-skin="codex"] .cx-tool > summary > svg { width: 16px; height: 16px; flex: none; fill: currentColor; color: var(--cx-dim); }
div[data-skin="codex"] .cx-tool > summary > svg:last-child { width: 12px; height: 12px; opacity: 0; transition: opacity .15s, transform .15s; }
div[data-skin="codex"] .cx-tool > summary:hover > svg:last-child, div[data-skin="codex"] .cx-tool[open] > summary > svg:last-child { opacity: 1; }
div[data-skin="codex"] .cx-tool[open] > summary > svg:last-child { transform: rotate(90deg); }
div[data-skin="codex"] .cx-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
div[data-skin="codex"] .cx-file { text-decoration: underline; text-decoration-color: var(--sk-under); text-underline-offset: 2px; }
div[data-skin="codex"] .cx-add { color: var(--sk-good); }
div[data-skin="codex"] .cx-del { color: var(--sk-bad); }
div[data-skin="codex"] .cx-took { flex: none; }
div[data-skin="codex"] .cx-shell { margin: 6px 0 0; background: var(--sk-tint-1); border: 1px solid var(--sk-edge); border-radius: 12.5px; overflow: hidden; }
div[data-skin="codex"] .cx-shell-head { padding: 4px 8px; font-size: 13px; color: var(--sk-ink-2); }
div[data-skin="codex"] .cx-shell pre { margin: 0; background: none; border: 0; border-radius: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
div[data-skin="codex"] .cx-shell-cmd { padding: 0 8px 6px; font-family: var(--cx-mono); font-size: 13px; line-height: 19.5px; color: var(--cx-fg); max-height: 120px; overflow: auto; }
div[data-skin="codex"] .cx-shell-out { padding: 8px; font-family: var(--cx-mono); font-size: 13px; line-height: 19.5px; font-weight: 500; color: var(--sk-ink-2);
  max-height: 144px; overflow: auto; -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent); mask-image: linear-gradient(#000 calc(100% - 24px), transparent); }
div[data-skin="codex"] .cx-shell-foot { padding: 4px 8px 6px; text-align: right; font-size: 12px; color: var(--sk-ink-2); }
div[data-skin="codex"] .cx-diff { margin: 6px 0 0; border: 1px solid var(--cx-line); border-radius: 12.5px; overflow: hidden; }
div[data-skin="codex"] .cx-diff .cc-diff { margin: 0; padding: 0 0 6px; background: var(--sk-sunk); border: 0; border-radius: 0; font-family: var(--cx-mono); font-size: 12px;
  line-height: 21.6px; color: var(--cx-fg); max-height: 320px; overflow: auto; white-space: pre; }
div[data-skin="codex"] .cx-diff .cc-diff span { display: inline-block; min-width: 100%; padding: 0 12px; }
div[data-skin="codex"] .cx-diff .cc-diff .cx-dfile { background: var(--sk-tint-1); font-family: var(--cx-font); font-size: 13px; padding: 4px 12px; }
div[data-skin="codex"] .cx-diff .cc-diff .add { background: var(--sk-add); }
div[data-skin="codex"] .cx-diff .cc-diff .del { background: var(--sk-del); }
div[data-skin="codex"] .cx-tool.bad > summary { color: var(--sk-bad); }

/* "Worked for 1m 1s": a finished reply's steps, folded */
div[data-skin="codex"] .cx-worked > summary { display: flex; align-items: center; gap: 4px; padding: 0 0 4px; border-bottom: 1px solid var(--cx-line);
  list-style: none; cursor: pointer; font-size: 14px; line-height: 21px; color: var(--cx-muted); }
div[data-skin="codex"] .cx-worked > summary::-webkit-details-marker { display: none; }
div[data-skin="codex"] .cx-worked > summary:hover { color: var(--cx-fg); }
div[data-skin="codex"] .cx-worked > summary > svg { width: 14px; height: 14px; fill: currentColor; transition: transform .15s; }
div[data-skin="codex"] .cx-worked[open] > summary > svg { transform: rotate(90deg); }
div[data-skin="codex"] .cx-wbody { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
div[data-skin="codex"] .cx-wbody > .cc-md { margin: 4px 0 8px; }

/* to-do lists and notes */
div[data-skin="codex"] .cc-todos { border: 1px solid var(--cx-line); background: var(--sk-tint-1); border-radius: 12.5px; color: var(--cx-fg); }
div[data-skin="codex"] .cc-note { color: var(--cx-muted); font-size: 12px; }
div[data-skin="codex"] .cc-task { color: var(--cx-muted); font-size: 12px; }
div[data-skin="codex"] .cc-task-body { border-left-color: var(--cx-line); color: var(--cx-fg); }
div[data-skin="codex"] .cc-bubble.cc-clamp { max-height: calc(6 * 22.75px + 20px); }
div[data-skin="codex"] .cc-you-open > .cc-bubble.cc-clamp { max-height: none; }
div[data-skin="codex"] .cc-you-more { color: var(--cx-muted); }
div[data-skin="codex"] .cc-paste > summary { border-color: var(--cx-line); color: var(--cx-muted); }
div[data-skin="codex"] .cc-perm { background: var(--sk-tint-1); border-color: var(--cx-line); border-radius: 12.5px; color: var(--cx-fg); font-size: 14px; }
div[data-skin="codex"] .cc-status { font-size: 14px; color: var(--cx-muted); }
div[data-skin="codex"] .cc-spark { display: none; }
div[data-skin="codex"] .cc-word { font-weight: 430; background: linear-gradient(90deg, var(--cx-muted) 0%, var(--cx-muted) 38%, var(--cx-fg) 50%, var(--cx-muted) 62%, var(--cx-muted) 100%);
  background-size: 260% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
div[data-skin="codex"] .cc-jump { background: var(--sk-card); border-color: var(--cx-line); color: var(--cx-fg); }

/* the message box: #363636, 22px corners, a hairline inset edge; the text over one row of 28px pill controls:
   +, the permissions, then the model and effort, dictation and the round send button */
div[data-skin="codex"] .cc-composer { position: relative; margin: 0 16px 16px; padding: 14px 0 0; gap: 0; border: 0; border-radius: 22px; background: var(--cx-box);
  box-shadow: inset 0 0 1px var(--sk-edge); }
div[data-skin="codex"] .cc-composer:focus-within { border: 0; box-shadow: inset 0 0 1px var(--sk-edge); }
div[data-skin="codex"] .cc-composer textarea, div[data-skin="codex"] .cc-mirror { font-family: var(--cx-font); font-size: 14px; line-height: 20px; font-weight: 430;
  min-height: 44px; max-height: 25dvh; padding: 0 12px; color: var(--cx-fg); background: transparent; box-sizing: border-box; }
div[data-skin="codex"] .cc-composer textarea::placeholder { color: var(--sk-mute); opacity: .5; }
div[data-skin="codex"] .cc-bar, div[data-skin="codex"] .cc:not(.proj) .cc-bar { position: static; display: flex; align-items: center; gap: 5px; padding: 4px 8px 8px;
  margin: 0; border: 0; flex-wrap: nowrap; min-height: 40px; box-sizing: border-box; }
div[data-skin="codex"] .cc-bar > :is([data-cc="attach"], #cc-x) { order: 1; }
div[data-skin="codex"] .cc-bar > .cc-menu:has(:is([data-cc="mode"], #cc-x)) { order: 2; }
div[data-skin="codex"] .cc-bar > .cc-hint { order: 3; display: block; flex: 1 1 auto; min-width: 0; visibility: hidden; height: 0; overflow: hidden; }
div[data-skin="codex"] .cc-bar > :is([data-cc="ctx"], #cc-x) { order: 4; }
div[data-skin="codex"] .cc-bar > .cc-menu:has(:is([data-cc="model"], #cc-x)) { order: 5; }
div[data-skin="codex"] .cc-bar > :is([data-cc="mic"], #cc-x) { order: 6; }
div[data-skin="codex"] .cc-bar > .cc-send { order: 7; }
div[data-skin="codex"] .cc-bar > .cc-menu { margin: 0; padding: 0; }
div[data-skin="codex"] .cc-bar .cc-icon { width: 28px; height: 28px; min-height: 0; padding: 0; border: 1px solid transparent; border-radius: 9999px;
  color: var(--cx-muted); background: transparent; }
div[data-skin="codex"] .cc-bar :is([data-cc="attach"], #cc-x) { color: var(--cx-fg); }
div[data-skin="codex"] .cc-bar .cc-icon:hover { background: var(--cx-hover); color: var(--cx-fg); }
div[data-skin="codex"] .cc-bar .cc-icon svg { width: 16px; height: 16px; }
div[data-skin="codex"] .cc-bar :is([data-cc="attach"], #cc-x) svg { fill: currentColor; stroke: none; }
div[data-skin="codex"] .cc-bar :is([data-cc="mic"], #cc-x) svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
div[data-skin="codex"] .cc-bar :is([data-cc="mode"], #cc-x), div[data-skin="codex"] .cc-bar :is([data-cc="model"], #cc-x) { display: inline-flex; align-items: center; gap: 4px; height: 28px; min-height: 0;
  border: 1px solid transparent; border-radius: 9999px; background: transparent; font-family: var(--cx-font); font-size: 13px; line-height: 18px; font-weight: 430; }
div[data-skin="codex"] .cc-bar :is([data-cc="mode"], #cc-x) { padding: 0 6px; color: var(--cx-warn); }
div[data-skin="codex"] .cc-bar :is([data-cc="mode"], #cc-x) svg { width: 16px; height: 16px; flex: none; fill: currentColor; stroke: none; opacity: .75; }
div[data-skin="codex"] .cc-bar :is([data-cc="model"], #cc-x) { padding: 0 8px; color: var(--cx-muted); }
div[data-skin="codex"] .cc-bar :is([data-cc="model"], #cc-x) b { color: var(--cx-fg); font-weight: 400; }
div[data-skin="codex"] .cc-bar :is([data-cc="model"], #cc-x) .cc-eff { color: var(--cx-muted); font-size: inherit; margin: 0; }
div[data-skin="codex"] .cc-bar :is([data-cc="model"], #cc-x) svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
div[data-skin="codex"] .cc-bar .cc-menu .cc-model::after { display: none; }
div[data-skin="codex"] .cc-bar :is([data-cc="mode"], #cc-x):hover, div[data-skin="codex"] .cc-bar :is([data-cc="model"], #cc-x):hover { background: var(--cx-hover); }
div[data-skin="codex"] .cc-bar :is([data-cc="model"], #cc-x):disabled { cursor: default; }
div[data-skin="codex"] .cc-bar .cc-send, div[data-skin="codex"] .cc-bar .cc-send.stop { position: static; width: 28px; height: 28px; margin: 0; padding: 2px; border-radius: 9999px;
  background: var(--cx-fg); color: var(--sk-card); opacity: 1; }
div[data-skin="codex"] .cc-bar .cc-send:disabled { background: var(--cx-fg); color: var(--sk-card); opacity: .5; }
div[data-skin="codex"] .cc-bar .cc-send svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
div[data-skin="codex"] .cc-queue { margin: 0 16px; }
div[data-skin="codex"] .cc-pop { background: var(--sk-card); color: var(--cx-fg); border: 1px solid var(--cx-line); border-radius: 20px; padding: 4px;
  box-shadow: 0 0 0 .5px var(--sk-edge), 0 8px 24px var(--sk-shade-2); }
div[data-skin="codex"] .cc-pop button { color: var(--cx-fg); font-size: 13px; border-radius: 15px; padding: 5px 8px; }
div[data-skin="codex"] .cc-pop button:hover, div[data-skin="codex"] .cc-pop button.on { background: var(--cx-hover); }
@media (max-width: 460px) {
  div[data-skin="codex"] .cc-bar :is([data-cc="mode"], #cc-x) span { display: none; }      /* as the app at 420px: the permissions chip shrinks to its icon */
}

/* city-share cards in the extension skins */
div[data-skin="claude"] .cc-shared { background: var(--ag-tool); border-color: var(--ag-border); color: var(--ag-fg); border-radius: 5px; }
div[data-skin="codex"] .cc-shared { background: var(--sk-tint-1); border-color: var(--cx-line); color: var(--cx-fg); border-radius: 12.5px; }

/* D217: the same Claude and Codex skins on a phone. Nothing is redrawn; only what a finger and a phone keyboard need:
   typing at 16px (below that the phone zooms the page on every tap into the box), invisible tap areas around the
   small composer buttons, and menus that stay on screen and are tall enough to tap. */
@media (pointer: coarse) {
  div[data-skin="claude"] .cc-composer textarea, div[data-skin="claude"] .cc-mirror { font-size: 16px; line-height: 23px; }
  div[data-skin="codex"] .cc-composer textarea, div[data-skin="codex"] .cc-mirror { font-size: 16px; line-height: 22px; }
  div[data-skin] .cc-bar button:not(:is([data-cc="mic"], #cc-x)) { position: relative; }  /* the mic is already placed (absolute) */
  div[data-skin] .cc-composer button, div[data-skin] .cc-pop button { -webkit-tap-highlight-color: transparent; }   /* the apps have no tap flash */
  div[data-skin] .cc-bar button::before { content: ""; position: absolute; inset: -11px -4px; }
  div[data-skin] .cc-pop button { min-height: 40px; align-items: center; }
  div[data-skin] .cc-pop, div[data-skin] .cc-pop.up { max-width: calc(100vw - 16px); }
  div[data-skin] .cc-composer { margin-bottom: max(8px, env(safe-area-inset-bottom)); }
}
