/* static/pages/activity.css */
/* Activity (pages/activity.js), in a client's drawer and a task's: the box to write in, then one list, newest first */
/* the box stays in view while the list scrolls under it */
.activity-box { position: sticky; top: 0; z-index: 2; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 14px 16px; border-radius: 14px; background: var(--raise); box-shadow: var(--card), 0 0 0 6px var(--bg), 0 -12px 0 6px var(--bg); }
.activity-box > .av { flex: none; margin-top: 25px; }
.activity-in { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.activity-in label { color: var(--head); font-size: 13.5px; font-weight: 700; }
.activity-in textarea { width: 100%; min-height: 66px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; resize: vertical; }
.activity-in textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
/* the @ list under the box (actAtList): the teammates a comment can mention, the picked one tinted; a mention in a
   comment's words reads bold in the link's blue */
.act-at-wrap { position: relative; }
.act-at-pop { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); padding: 4px; border: 1px solid var(--line2); border-radius: 10px; background: var(--raise); box-shadow: 0 10px 28px rgba(0, 0, 0, .14), 0 2px 6px rgba(0, 0, 0, .06); }
.act-at-pop [role=option] { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border-radius: 7px; font-size: 13.5px; color: var(--text); cursor: pointer; }
.act-at-pop [role=option] .av { width: 22px; height: 22px; font-size: 9px; }
.act-at-pop [role=option]:hover { background: var(--hover); } .act-at-pop [role=option][aria-selected="true"] { background: var(--sel); }
.act-at-keys { display: flex; gap: 12px; padding: 7px 9px 3px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--text3); font-size: 11.5px; }
.act-at-keys kbd { display: inline-block; min-width: 18px; padding: 0 4px; border: 1px solid var(--line2); border-radius: 4px; font: 600 10.5px/16px var(--sans); text-align: center; color: var(--text2); }
@media (hover: none) { .act-at-keys { display: none; } }
.act-md .act-at { color: var(--blue); font-weight: 650; }
.activity-foot { display: flex; gap: 8px 14px; align-items: center; justify-content: space-between; }
.activity-foot small { min-width: 0; color: var(--text3); font-size: 12px; line-height: 1.4; } .activity-foot small a { color: inherit; text-decoration: underline; }
.activity-foot .btn { flex: none; }
/* one entry per row: what was written or done, then its kind, who and when; a comment reads stronger than an event */
.activity-feed { margin: 0; padding: 2px 16px; list-style: none; border-radius: 14px; background: var(--raise); box-shadow: var(--card); }
.activity-ev { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-size: 13px; } .activity-ev + .activity-ev { border-top: 1px solid var(--line); }
.activity-ev > div { flex: 1; min-width: 0; } .activity-ev > .av { flex: none; margin-top: 1px; }
.activity-ev > p, .activity-ev > div > p { margin: 0 0 3px; color: var(--text2); overflow-wrap: anywhere; }
.activity-note .act-md { color: var(--text); font-size: 14px; }
/* Markdown words (core.js md()): a comment, an agent's report, a task's details. One home for every card that shows them */
.act-md { margin-bottom: 3px; color: var(--text2); line-height: 1.5; overflow-wrap: anywhere; }
.act-md :where(p, ul, ol, pre, blockquote, .tablewrap) { margin: 0 0 8px; } .act-md > :last-child { margin-bottom: 0; }
.act-md :where(ul, ol) { padding-left: 20px; } .act-md li { margin: 2px 0; } .act-md li > :where(ul, ol) { margin: 2px 0 0; }
.act-md h4 { margin: 14px 0 4px; color: var(--text3); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.act-md > h4:first-child { margin-top: 0; }
.act-md strong { color: var(--text); font-weight: 650; } .act-md a { color: var(--blue); text-decoration: underline; }
.act-md code { padding: 1px 5px; border: 1px solid var(--line); border-radius: 5px; background: var(--chip); font-size: .86em; }
.act-md pre { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--chip); overflow: auto; } .act-md pre code { padding: 0; border: 0; }
.act-md blockquote { padding-left: 10px; border-left: 3px solid var(--line2); color: var(--text3); }
.act-md table { border-collapse: collapse; font-size: 13px; min-width: 100%; } .act-md :is(th, td) { padding: 5px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.act-md th { background: var(--panel); font-weight: 600; } .act-md tr:last-child td { border-bottom: 0; }
/* an agent's report, pinned over the task (actReport): who and its verdict, then its words; a long one folds behind a button */
.act-rep { margin: 16px 0 4px; padding: 14px 16px 12px; border-radius: 14px; border-top: 3px solid var(--ok); background: var(--raise); box-shadow: var(--card); }
.act-rep.warn { border-top-color: var(--warn); } .act-rep.bad { border-top-color: var(--bad); }
.act-rep > header { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.act-rep > header > div { flex: 1; min-width: 0; display: grid; } .act-rep > header b { color: var(--head); font-size: 14px; } .act-rep > header small { color: var(--text3); font-size: 12px; }
.act-rep .act-md { color: var(--text); font-size: 14px; }
.act-fold { max-height: 300px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.act-more, .act-link { display: inline-flex; gap: 4px; align-items: center; padding: 0; border: 0; background: none; color: var(--blue); font: 600 13px var(--sans); cursor: pointer; }
.act-more { margin-top: 6px; } .act-more svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform var(--t-fast); }
.act-more[aria-expanded="true"] svg { transform: rotate(-90deg); }
.act-link { font-size: 12px; font-weight: 500; text-decoration: underline; }
/* an agent's note in the list: its head line, who and when; a result's head in its tone */
.activity-agent .activity-ahead { color: var(--text); } .activity-agent.ok .activity-ahead { color: var(--ok-ink); }
.activity-agent.warn .activity-ahead { color: var(--warn-ink); } .activity-agent.bad .activity-ahead { color: var(--bad-ink); }
.activity-agent .act-more { display: flex; margin-top: 4px; }
.activity-agent > div > .act-md { margin: 6px 0 2px; padding: 10px 12px; border-radius: 10px; background: var(--chip); }
.activity-ev small { color: var(--text3); font-size: 12px; }
.activity-kind { display: inline-block; margin-right: 7px; padding: 0 7px; border-radius: 5px; background: var(--chip); color: var(--text2); font-size: 11px; font-weight: 600; line-height: 17px; }
/* a comment's edit and delete show under the pointer and with the keyboard, and always on a touch screen */
.activity-tools { flex: none; display: flex; gap: 2px; opacity: 0; transition: opacity var(--t-fast); }
.activity-tools .icon { transition: background var(--t-fast), color var(--t-fast); }
.activity-ev:is(:hover, :focus-within) .activity-tools { opacity: 1; }
@media (hover: none) { .activity-tools { opacity: 1; } }
/* a comment being edited: its text in a box where it stood, the keys' line and Cancel, Save under it */
.activity-edit { display: block; width: 100%; min-height: 66px; margin: 0 0 6px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 14px; line-height: 1.45; resize: vertical; }
.activity-edit:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
.activity-edit-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.activity-edit-foot span { display: flex; gap: 6px; margin-left: auto; }
.activity-edit-foot .btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
.activity-edited { font-style: italic; white-space: nowrap; }
.activity .empty { margin-top: 0; }
/* a task's change line (tasks.history): one quiet line on a dot, between the comments */
.activity-chg { align-items: center; padding: 7px 0; }
.activity-chg p { margin: 0; color: var(--text3); font-size: 12.5px; } .activity-chg p b { color: var(--text2); font-weight: 600; }
.activity-chg p small { font-size: 12px; white-space: nowrap; }
.activity-tick { width: 28px; flex: none; display: grid; place-items: center; }
.activity-tick i { width: 9px; height: 9px; border-radius: 50%; background: var(--raise); border: 2px solid var(--faint); }
@media (max-width: 600px) { .activity-box { padding: 12px; } .activity-box > .av { display: none; } .activity-foot { flex-wrap: wrap; justify-content: flex-end; } .activity-foot small { flex: 1 1 100%; } }

/* static/pages/addash.css */
/* Dashboard's new layout (pages/addash.js, addash.charts.js): the status line, the big numbers, the chart and the
   chain, the best ads, the campaigns' tree and one row's panel. Its cards, tables, sortable heads, pills, dots, segments
   and toolbar are app.css's; the panel's frame and its slide are roster.css's .ro-scrim and .ro-drawer (motion.css).
   Every layout step is a query on the layout's own room (container ax), so the sidebar open or closed moves it. The
   one series hue is the link blue; green, amber and red are the rules' bands alone. */
.ax { container: ax / inline-size; display: grid; gap: 20px; font-variant-numeric: tabular-nums; }
.ax > * { min-width: 0; }  /* a part's widest row (a long segment) scrolls inside it, never widens the page */
.ax h2.sa-h { margin: 0; }
.ax-note { margin: 0; padding: 0 16px 12px; color: var(--text3); font-size: var(--fs-caption); }

/* The status line: the connection, the ads live now, today so far; a dot between two parts */
.ax-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: -4px 0 0; color: var(--text2); font-size: var(--fs-small); }
.ax-strip > i { color: var(--text3); font-style: normal; }
.ax-strip b { color: var(--head); font-weight: 700; }
.ax-strip .ax-warn { display: inline-flex; align-items: center; gap: 6px; color: var(--warn-ink); }
.ax-strip .ax-warn svg.i { width: 15px; height: 15px; }

/* The big numbers: ten in two full rows of five (nine: five, then four a little wider), three a row in a mid room, two in a short room. Each is a button that charts its figure: its name, its value and
   its change, the line under it, and its sparkline across its foot. The pressed one carries the ink's edge and a blue line */
.ax-bigs { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 12px; }
.ax-bigs > .ax-big { grid-column: span 4; } .ax-bigs > .ax-big:nth-child(n + 6) { grid-column: span 5; }
@container ax (min-width: 1001px) { #ax-figs > .ax-big:nth-child(n) { grid-column: span 4; } }  /* the Ads dashboard's ten: two rows of five */
.ax-big { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l l" "v d" "u u" "s s"; align-items: baseline; gap: 2px 8px;
  min-width: 0; padding: 14px 16px 0; border: 1px solid transparent; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); text-align: left; overflow: hidden;
  transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.ax-big:hover { background: color-mix(in srgb, var(--hover) 60%, var(--raise)); }
.ax-big[aria-pressed="true"] { border-color: var(--head); }
.ax-bl { grid-area: l; color: var(--text3); font-size: var(--fs-caption); font-weight: 600; white-space: nowrap; }
/* A figure's label is its short name (AXF's n) on one line; its whole name stands under the pointer, with no underline */
:is(.ax, .ax-panel) abbr[title] { text-decoration: none; cursor: help; }
/* Every figure's label, in the panel's caption style (app_frame.css .label): in capitals, so a short name (CPL) and a
   word (Closes) stand at one height side by side */
:is(.ax-bl, .ax-ad dt, .ax-stats dt, .ax-tree thead th, .ax-tree thead button) { text-transform: uppercase; letter-spacing: .06em; }
.ax-bv { grid-area: v; min-width: 0; font: 800 26px/1.2 var(--title); letter-spacing: -.03em; color: var(--head); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-big .ax-vs { grid-area: d; justify-self: end; }
.ax-bu { grid-area: u; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-height: 22px; color: var(--text2); font-size: var(--fs-caption); }
.ax-bu small { color: var(--text3); font-size: var(--fs-caption); }
.ax-bu .pill { line-height: 18px; padding: 0 8px; }
.ax-big .ax-spark { grid-area: s; width: calc(100% + 32px); height: 34px; margin: 8px -16px 0; }
.ax-spark { display: block; overflow: visible; }
.ax-spark * { vector-effect: non-scaling-stroke; }
.ax-sl { fill: none; stroke: var(--text3); stroke-width: 1.5px; stroke-linejoin: round; stroke-linecap: round; opacity: .55; }
.ax-sa { fill: color-mix(in srgb, var(--text3) 10%, transparent); }
.ax-big[aria-pressed="true"] .ax-sl, .ax-trend .ax-sl { stroke: var(--blue); opacity: 1; }
.ax-big[aria-pressed="true"] .ax-sa { fill: color-mix(in srgb, var(--blue) 14%, transparent); }
/* a change: its arrow and share, green when better, red when worse, plain when neither */
.ax-vs { display: inline-flex; align-items: center; padding: 0 7px; border-radius: var(--r-pill); background: var(--chip); color: var(--text3); font: 600 var(--fs-caption)/20px var(--sans); white-space: nowrap; }
.ax-vs.good { background: var(--ok-bg); color: var(--ok-ink); } .ax-vs.bad { background: var(--bad-bg); color: var(--bad-ink); }

/* The second figure's colour: an orange that keeps 4.5:1 as tick text in both themes */
.ax { --ax-s2: #b54708; }
:root[data-theme="dark"] .ax { --ax-s2: #f59a4a; }
/* The chart beside the funnel: two to one where the room holds both, else stacked */
.ax-pair { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; }
.ax-chart, .ax-chain { min-width: 0; }
/* the chart's plot grows to the chain's height beside it */
.ax-chart { display: flex; flex-direction: column; }
.ax-cb { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 18px 20px 10px 60px; }
.ax-cb:has(.ax-dual) { padding-right: 60px; }  /* the second figure's scale in a gutter at the right */
.ax-chart > .ax-note { padding-top: 0; }
/* The chart's picker: the figure, the one compared with it, by day or by hour; each select keyed by its line's colour */
.ax-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 20px 0; color: var(--text3); font-size: var(--fs-caption); }
.ax-key { position: relative; display: block; }
.ax-key::before { content: ""; position: absolute; left: 11px; top: 50%; z-index: 1; width: 10px; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--blue); pointer-events: none; }
.ax-key.s2::before { background: var(--ax-s2); }
.ax-key.s2:has(option[value=""]:checked)::before { background: var(--line2); }
.ax-key select.input { width: 184px; height: 30px; padding-left: 28px; font-size: var(--fs-small); text-overflow: ellipsis; }
.ax-pick select.ax-pairs { width: 112px; height: 30px; margin-left: auto; font-size: var(--fs-small); color: var(--text2); }
/* The chart's switches under the picker: its axis, then a running total and the period before at the row's end */
.ax-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 20px 0; }
.ax-togs { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.ax-opts .chip { height: 28px; padding: 0 11px; font-size: var(--fs-caption); }
.ax-opts .chip:disabled { opacity: .5; cursor: not-allowed; }
/* the period before's key, over the plot: a solid stroke for the period, a dashed one for the one before */
.ax-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -6px 0 12px -40px; color: var(--text3); font-size: var(--fs-caption); }
.ax-legend i { display: inline-block; width: 16px; height: 0; border-top: 2px solid var(--blue); }
.ax-legend i.pb { margin-left: 8px; border-top: 2px dashed var(--text3); }
.ax-chart .ax-area { flex: 1 1 0; height: auto; min-height: 220px; }  /* a zero basis: the SVG's own shape never sizes the row */
/* A plot: its value labels in the gutter at its left, its days under it; a column is a line as wide as its slot, less
   a 2 px gap where the slot holds 6 px or more */
.ax-area { position: relative; height: 220px; margin-bottom: 26px; container-type: inline-size; }
.ax-svg { display: block; width: 100%; height: 100%; overflow: visible; cursor: crosshair; }
.ax-svg:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; border-radius: 2px; }
.ax-svg * { vector-effect: non-scaling-stroke; }
.ax-ry { stroke: var(--line); stroke-width: 1px; }
.ax-aim { stroke: var(--text3); stroke-width: 1px; stroke-dasharray: 4 4; }
.ax-cols .ax-marks line { stroke: color-mix(in srgb, var(--blue) 85%, var(--raise)); stroke-width: calc(100cqw / var(--n) - clamp(0px, (100cqw / var(--n) - 6px) * 1000, 2px)); }
.ax-line path { fill: none; stroke: var(--blue); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.ax-line path.ax-s2 { stroke: var(--ax-s2); }
.ax-svg path.ax-pb { fill: none; stroke: var(--text3); stroke-width: 1.5px; stroke-dasharray: 5 4; stroke-linejoin: round; opacity: .9; }
.ax-svg.ax-has .ax-marks line:not(.ax-hot) { opacity: .4; }
.ax-y, .ax-x, .ax-aimw { position: absolute; font-size: 11px; line-height: 1; color: var(--text3); white-space: nowrap; pointer-events: none; }
.ax-y { right: calc(100% + 10px); transform: translateY(-50%); }
.ax-y.r { right: auto; left: calc(100% + 10px); }
.ax-dual .ax-y { color: var(--blue); } .ax-dual .ax-y.r { color: var(--ax-s2); }  /* two scales: each tick in its line's colour */
.ax-x { top: calc(100% + 10px); transform: translateX(-50%); }
.ax-x.first { transform: none; margin-left: calc(-50% / var(--n)); } .ax-x.last { transform: translateX(-100%); margin-left: calc(50% / var(--n)); }
.ax-aimw { right: 0; transform: translateY(calc(-100% - 4px)); padding: 0 4px; background: var(--raise); font-weight: 600; }
.ax-rule { position: absolute; top: -6px; bottom: 0; width: 0; border-left: 1px solid var(--text3); pointer-events: none; }
.ax-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--raise); pointer-events: none; }
.ax-rule[hidden], .ax-dot[hidden], .ax-tip[hidden] { display: none; }
/* a point's card: beside the rule, on its left past the plot's middle */
.ax-tip { position: absolute; top: 0; z-index: 2; display: grid; gap: 3px; min-width: 176px; margin-left: 12px; padding: 9px 11px; border: 1px solid var(--line2); border-radius: var(--r-ctl);
  background: var(--raise); box-shadow: 0 6px 18px rgba(3, 7, 20, .16); font-size: var(--fs-caption); pointer-events: none; }
.ax-tip.left { transform: translateX(calc(-100% - 24px)); }
.ax-tip > b { margin-bottom: 2px; color: var(--head); font-weight: 700; }
.ax-tip > span { display: flex; justify-content: space-between; gap: 14px; color: var(--text); }
.ax-tip i { font-style: normal; color: var(--text3); } .ax-tip .on { font-weight: 700; color: var(--head); } .ax-tip .on i { color: var(--text2); }
.ax-tip .on i::before { content: ""; display: inline-block; width: 8px; height: 3px; margin: 0 6px 2px 0; border-radius: 2px; background: var(--blue); vertical-align: middle; }
.ax-tip .on.s2 i::before { background: var(--ax-s2); }
.ax-tip .on.pb { margin-top: 3px; padding-top: 5px; border-top: 1px solid var(--line); font-weight: 600; }
.ax-tip .on.pb i::before { height: 0; border-top: 2px dashed var(--text3); background: none; border-radius: 0; }

/* The funnel: one step a band 10% narrower than the one above, its name and count inside, a shade darker each step
   down; beside it its share of the step before and its cost; the cash under it */
.ax-steps { list-style: none; margin: 0; padding: 14px 16px 4px; }
.ax-step { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 14px; }
.ax-step + .ax-step { margin-top: 3px; }
.ax-step > .ax-band { display: grid; place-content: center; justify-items: center; height: 52px; padding: 0 var(--b); color: #fff; text-align: center;
  background: color-mix(in oklab, #2368b8, #000 calc(var(--i) * 6%));
  clip-path: polygon(var(--a) 0, calc(100% - var(--a)) 0, calc(100% - var(--b)) 100%, var(--b) 100%); }
.ax-band .ax-sn { color: rgb(255 255 255 / .86); font-size: var(--fs-caption); font-weight: 600; line-height: 1.25; white-space: nowrap; }
.ax-band .ax-sv { font: 700 16px/1.2 var(--title); font-variant-numeric: tabular-nums; }
.ax-sr { display: grid; gap: 2px; min-width: 0; }
.ax-ss { color: var(--text3); font-size: var(--fs-caption); } .ax-ss b { color: var(--head); font-weight: 700; }
.ax-sc { color: var(--text2); font-size: var(--fs-caption); font-weight: 600; }
.ax-cash { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 10px 16px 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ax-cash .ax-sn { color: var(--text2); font-size: var(--fs-small); font-weight: 600; }
.ax-cash .ax-sv { font: 700 18px/1.2 var(--title); color: var(--head); }
.ax-cash .pill { margin-left: auto; line-height: 20px; }

/* The top ads: a card each, its whole square picture at its left (Meta's pictures are stored square, so none is cut),
   its name, place and status beside it, and six figures under both, the ranking's own one stressed */
.ax-th { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.ax-th h2 small, .ax-psec h3 small { margin-left: 8px; color: var(--text3); font: 600 var(--fs-caption) var(--sans); }
.ax-th .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ax-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ax-ad { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: "p t" "f f"; align-items: start; gap: 12px; min-width: 0; padding: 12px;
  border: 1px solid transparent; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); color: var(--text); text-decoration: none;
  transition: border-color var(--t-fast) var(--ease); }
.ax-ad:hover { border-color: var(--line2); } .ax-ad:hover .ax-adt b { color: var(--blue); }
.ax-adp { grid-area: p; display: block; }
.ax-ad .mk-thumb.big { width: 96px; height: 96px; object-fit: contain; border-radius: var(--r-ctl); outline: 1px solid color-mix(in srgb, var(--head) 8%, transparent); outline-offset: -1px; }
.ax-ad .mk-thumb.big.none svg.i { width: 26px; height: 26px; }
.ax-adt { grid-area: t; display: grid; align-content: start; gap: 3px; min-width: 0; padding-top: 1px; }
.ax-adt b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--head); font-weight: 600; font-size: var(--fs-small); line-height: 1.35; overflow-wrap: anywhere; }
.ax-adt small { color: var(--text3); font-size: var(--fs-caption); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-ads { display: flex; align-items: center; gap: 6px; color: var(--text2); font-size: var(--fs-caption); }
.ax-ad dl { grid-area: f; text-align: center; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.ax-ad dt { color: var(--text3); font-size: 11px; font-weight: 600; white-space: nowrap; } .ax-ad dd { margin: 1px 0 0; color: var(--head); font-size: var(--fs-small); font-weight: 600; }
.ax-ad dl .on dt { color: var(--head); } .ax-ad dl .on dd { font: 800 16px/1.2 var(--title); letter-spacing: -.01em; }
.ax-ad dl .on.ax-over dd { color: var(--bad-ink); }
.ax-ad dd.ax-good { color: var(--ok-ink); } .ax-ad dd.ax-near { color: var(--warn-ink); } .ax-ad dd.ax-over { color: var(--bad-ink); }
.ax-none-line { margin: 0; padding: 18px 20px; border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); color: var(--text2); font-size: var(--fs-small); }
@container ax (min-width: 1300px) { .ax-ad dl { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@container ax (max-width: 840px) { .ax-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* The tree: the card's own toolbar, then its table, flat inside the card (no card in a card) */
.ax-tb { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
/* The toolbar stays at the page's top while the tree's rows scroll under it, so the period, the filters, the numbers'
   age and Refresh are in reach from any row; from a room of 670 px, where nothing scrolls sideways, the column heads
   stay under it, at the toolbar's height (--ax-tbh, measured by addash.js's axStick as the toolbar wraps) */
.ax-tb { position: sticky; top: 0; z-index: 3; background: var(--raise); flex-wrap: wrap; row-gap: 8px; }
.ax-again { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.ax-again .mk-fw, .ax-again .mk-fresh small { display: none; }  /* the age alone: the bar's label holds the read's time */
.ax-tb .find { flex: 1 1 160px; min-width: 160px; max-width: 280px; }
@container ax (min-width: 670px) {
  .card.ax-tree .ax-tw { overflow-x: clip; }  /* no scroll box of its own, so the heads stick to the page's scroll */
  .ax-tree thead th, .ax-tree thead th.tw-sort { position: sticky; top: var(--ax-tbh, 57px); z-index: 2; background: var(--raise); border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
}
.ax-tree .ax-1d .ax-trend { display: none; }  /* a one-day period has no daily line to draw */
.ax-tb .find { margin: 0; }
.ax-tb .tb-s { display: contents; }  /* its controls wrap as the toolbar's own, so a wide room holds them in one row */
.ax-tree .ax-tw { overflow-x: auto; }
.ax-tree table { width: 100%; border-collapse: collapse; }
.ax-tree :is(th, td) { padding-inline: 8px; }
.ax-tree th { font: 600 var(--fs-caption)/1.3 var(--sans); color: var(--text3); text-align: left; vertical-align: bottom; padding-block: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ax-tree th.tw-sort { position: relative; padding: 0; } .ax-tree .tw-sort button { padding: 10px 8px; }  /* the head holds its button's whole area (app.css .tw-sort ::after) */
/* Every column, its head and its rows centred (asked 2026-11-15): the switch, the trend and each figure. The name
   column alone stays left, so a level's indent reads, at a set width: the room past it goes to the figures */
.ax-tree :is(th, td), .ax-tree :is(th, td).num, .mk .ax-tree tfoot :is(th, td) { text-align: center; }
.ax-tree :is(th.ax-c-name, td.ax-name), .mk .ax-tree tfoot th[scope="row"] { text-align: left; width: 260px; }
.ax-tree .ax-trend .ax-spark { margin-inline: auto; display: block; }
.ax-tree td { height: 48px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ax-tree td.num { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.ax-tree tbody tr.ax-r:hover { background: color-mix(in srgb, var(--hover) 70%, transparent); }
.ax-tree tr.ax-lv-campaign > td { background: color-mix(in srgb, var(--chip) 45%, transparent); }
.ax-tree tr.ax-lv-campaign:hover > td { background: color-mix(in srgb, var(--hover) 80%, transparent); }
.ax-tree td.ax-none, .ax-tree td.ax-zero { color: var(--text3); }
/* a part's head row at the top level: Live now, then Not live now, each with its count */
.ax-tree tr.ax-part > th { height: 34px; padding: 12px 16px 6px; border-bottom: 1px solid var(--line); background: var(--raise); color: var(--text2); font: 700 var(--fs-caption)/1 var(--sans); letter-spacing: .02em; text-align: left; }
.ax-tree tr.ax-part > th .dot { display: inline-block; margin-right: 8px; vertical-align: 1px; }
.ax-tree tr.ax-part > th small { margin-left: 8px; color: var(--text3); font-weight: 500; letter-spacing: 0; }
.ax-tree tbody tr.ax-part + tr.ax-r > td { border-top: 0; }
.ax-off .ax-name b { color: var(--text2); }
.ax-tb .seg b { margin-left: 2px; font: 600 var(--fs-caption) var(--mono); opacity: .75; }
.ax-name { min-width: 240px; max-width: 420px; white-space: normal !important; }
.ax-name > div { display: flex; align-items: center; gap: 8px; padding-left: calc(var(--depth) * 26px); }
.ax-name a, .ax-name > div > span:last-child { display: grid; min-width: 0; color: inherit; text-decoration: none; }
.ax-name b { color: var(--head); font-weight: 600; overflow-wrap: anywhere; }
.ax-lv-campaign .ax-name b { font-weight: 700; }
.ax-name a:hover b { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.ax-name small { color: var(--text3); font-size: var(--fs-caption); }
.ax-name .pill { justify-self: start; margin: 3px 0 1px; }
.ax-tg { display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: var(--r-sm); color: var(--text3); }
button.ax-tg:hover { background: var(--hover); color: var(--head); }
.ax-tg svg.i { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.ax-tg[aria-expanded="true"] svg.i { transform: rotate(90deg); }
.ax-out td { color: var(--text3); } .ax-out .ax-name b { color: var(--text2); }
.ax-rest td { color: var(--text2); } .ax-rest .ax-name b { color: var(--text2); }
.ax-missr > td { padding: 4px 16px 16px 50px; white-space: normal; }
/* the tree's last drawn row: Show more, and how many rows the tree holds (addash.js, axDrawn) */
.ax-morer > td { padding: 8px 16px; text-align: left; }
.ax-morer small { margin-left: 10px; color: var(--text3); font-size: var(--fs-caption); }
.ax-morer .btn svg.i { transform: rotate(90deg); }
/* a spend's share of its parent, a hairline under the figure; a cost's band fills its cell */
.ax-share { display: block; width: var(--p); height: 3px; margin: 4px auto -7px; border-radius: 2px; background: color-mix(in srgb, var(--blue) 55%, transparent); }
.ax-tree td.ax-tint { font-weight: 600; }
/* tr in each selector: a campaign row's own background (tr.ax-lv-campaign > td) weighs as much, so the tint, later, wins */
.ax-tree tr > td.ax-good { background: var(--ok-bg); color: var(--ok-ink); } .ax-tree tr > td.ax-near { background: var(--warn-bg); color: var(--warn-ink); }
.ax-tree tr > td.ax-over { background: var(--bad-bg); color: var(--bad-ink); }
/* a row's own switch in Meta (addash.js, axSwitch): the tree's first column, as Ads Manager's, and the panel's head */
.ax-tree .ax-on { width: 56px; padding: 0 10px; }  /* even sides, so the switch stands centred under On */
.ax-tree th.ax-on { padding-block: 10px; }
.ax-tree td.ax-on .sw { display: block; margin-inline: auto; }
.sw[aria-busy="true"] { cursor: progress; }
.ax-psw { display: inline-flex; align-items: center; gap: 8px; color: var(--head); font-weight: 600; cursor: pointer; }
.ax-psw:has(.sw:disabled) { color: var(--text2); cursor: default; }
.ax-tree .ax-trend { width: 84px; padding-inline: 10px; } .ax-tree .ax-trend .ax-spark { width: 72px; height: 22px; }
.ax-tree th.ax-trend { font-weight: 600; }
.ax-foot > * { border-top: 1px solid var(--line2); border-bottom: 0; font-weight: 700; color: var(--head); }
.ax-foot th small { display: block; margin-top: 2px; color: var(--text3); font-weight: 400; }
.ax-tree .ax-foot th { white-space: normal; }  /* its line wraps, so it never widens the name column */
.ax-tree .ad-basis { margin: 0; padding: 10px 16px 14px; }
.ax-more { margin-top: -4px; } .ax-more .tw { margin-top: 12px; max-height: 560px; overflow-y: auto; }

/* The room steps: the tree leaves its least-read columns first, so no figure is cut and nothing scrolls sideways
   at a room of 670 px or more.
   Under 1240 px the cells tighten, and the columns past Live leave before any column up to it, so Live stays in view
   with the sidebar open on a 1280 px window (asked 2026-11-10; Docs/Systems/Ads/Dashboard.md, The tree). A hidden
   figure stays in its row's panel. Results and Delivery each step down to its three most-read figures on a phone */
@container ax (max-width: 1240px) {
  .ax-tree :is(th, td) { padding-inline: 6px; } .ax-tree .tw-sort button { padding-inline: 6px; }
  .ax-name { min-width: 210px; } .ax-name > div { padding-left: calc(var(--depth) * 18px); }
  .ax-tree .ax-trend { width: 66px; padding-inline: 6px; } .ax-tree .ax-trend .ax-spark { width: 56px; }
  .ax-tree :is(.ax-c-roas, .ax-c-lrate) { display: none; }
}
@container ax (max-width: 1140px) { .ax-tree :is(.ax-c-cash, .ax-c-cpclose, .ax-c-aov) { display: none; } }
@container ax (max-width: 1060px) {
  .ax-pair { grid-template-columns: minmax(0, 1fr); }
  .ax-chart .ax-area { flex: none; height: 220px; }  /* stacked, the plot has no neighbour to grow to: a set height */
  .ax-tree .ax-c-cpc { display: none; }
}
@container ax (max-width: 960px) { .ax-tree :is(.ax-c-cplive, .ax-c-impressions) { display: none; } }
@container ax (max-width: 860px) { .ax-tree .ax-trend { display: none; } }
@container ax (max-width: 760px) { .ax-tree :is(.ax-c-brate, .ax-c-closes) { display: none; } }
/* the big numbers keep three a row down to a short room: under 1000 px each change moves up beside its name */
@container ax (max-width: 1000px) {
  .ax-bigs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ax-bigs > .ax-big:nth-child(n) { grid-column: auto; }
  .ax-big { grid-template-areas: "l d" "v v" "u u" "s s"; align-items: center; } .ax-bv { font-size: 23px; }
}
@container ax (max-width: 640px) {
  .ax { gap: 16px; }
  .ax-bigs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ax-bigs > .ax-big:last-child:nth-child(odd) { grid-column: span 2; }
  .ax-bv { font-size: 22px; } .ax-big { padding: 12px 12px 0; } .ax-big .ax-spark { width: calc(100% + 24px); margin-inline: -12px; }
  .ax-big { grid-template-areas: "l l" "v v" "d d" "u u" "s s"; } .ax-big .ax-vs { justify-self: start; }
  .ax-pick, .ax-opts { padding-inline: 12px; } .ax-cb { padding: 14px 12px 6px 46px; } .ax-area, .ax-chart .ax-area { height: 180px; }
  .ax-key { flex: 1 1 0; min-width: 0; } .ax-key select.input { width: 100%; } .ax-pick select.ax-pairs { width: 100%; margin-left: 0; }
  .ax-tree :is(.ax-c-leads, .ax-c-booked, .ax-c-link_clicks, .ax-c-cpm, .ax-c-live) { display: none; }
  .ax-name { min-width: 150px; } .ax-name > div { padding-left: calc(var(--depth) * 14px); gap: 6px; }
  .ax-name b { overflow-wrap: break-word; }  /* a name breaks between its words: the table scrolls sideways before a word is cut */
  .ax-tb .find { flex-basis: 100%; max-width: none; }
  .ax-tb { position: static; }  /* a phone's toolbar wraps to four rows: it scrolls with the page, and the bar's Refresh stays the one */
  .ax-cards { grid-template-columns: minmax(0, 1fr); }
}
/* a phone keeps a name and two figures, so a campaign's name reads on one or two lines */
@container ax (max-width: 480px) {
  .ax-tree :is(.ax-c-cpb, .ax-c-ctr) { display: none; } .ax-tree .ax-name { min-width: 132px; }
  .ax-tree :is(th, td) { padding-inline: 5px; } .ax-tree td.num { font-size: 12px; } .ax-tree .ax-name > div { gap: 4px; }
  .ax-tree .ax-on { width: 46px; padding-inline: 5px; }
  .ax-tree td .pill { padding: 0 7px; gap: 4px; }
}

/* One row's panel from the right: its head (the ad's picture, its place, name, status and bands), its figures in a
   hairline grid, its days, its rows, and its links at its foot */
.ax-panel { width: min(780px, 100%); padding: 0; display: flex; flex-direction: column; background: var(--bg); }
.ax-ph { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); background: var(--raise); }
.ax-ph .mk-thumb.big { width: 116px; height: 116px; border-radius: var(--r-ctl); }
.ax-ph .mk-thumb.big.none svg.i { width: 30px; height: 30px; }
.ax-pt { display: grid; gap: 6px; min-width: 0; flex: 1; }
.ax-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; margin: 0; color: var(--text3); font-size: var(--fs-caption); font-weight: 600; }
.ax-crumb a { color: var(--text2); text-decoration: none; } .ax-crumb a:hover { color: var(--blue); text-decoration: underline; }
.ax-crumb svg.i { width: 13px; height: 13px; }
.ax-ph h2 { margin: 0; font: 800 22px/1.25 var(--title); letter-spacing: -.02em; color: var(--head); overflow-wrap: anywhere; }
.ax-pm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--text2); font-size: var(--fs-small); }
.ax-pm:empty { display: none; }
.ax-close { flex: none; width: 36px; padding: 0; justify-content: center; }
.ax-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border-bottom: 1px solid var(--line); }
.ax-stats > div { padding: 12px 16px; background: var(--raise); text-align: center; }  /* each figure centred, as the tree's */
.ax-stats dt { color: var(--text3); font-size: var(--fs-caption); font-weight: 600; white-space: nowrap; }
.ax-stats dd { margin: 3px 0 0; font: 700 17px/1.25 var(--title); color: var(--head); }
.ax-stats dd small { font: 600 var(--fs-caption) var(--sans); color: var(--text3); }
.ax-stats dd .pill { font-family: var(--sans); }
.ax-psec { padding: 18px 24px 4px; }
.ax-pnone { margin: 0 0 14px; color: var(--text2); font-size: var(--fs-small); }
.ax-psec h3 { margin: 0 0 12px; color: var(--head); font: 700 15px/1.3 var(--title); }
.ax-psec .ax-th h3 { margin: 0; }
.ax-psec .ax-area { height: 170px; margin-left: 44px; }
.ax-kids { display: grid; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--raise); overflow: hidden; }
.ax-kid { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text); text-decoration: none; font-size: var(--fs-small); }
.ax-kid b { flex: 1; min-width: 0; }
.ax-kid > .ax-kn { min-width: 58px; }
.ax-kid + .ax-kid { border-top: 1px solid var(--line); }
.ax-kid:hover { background: var(--hover); } .ax-kid:hover b { color: var(--blue); }
.ax-kid b { color: var(--head); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ax-kid > .ax-kn { text-align: right; font-family: var(--mono); font-size: 12.5px; white-space: nowrap; } .ax-kid small { font-family: var(--sans); color: var(--text3); }
.ax-pf { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 14px 24px; border-top: 1px solid var(--line); background: var(--raise); }
@media (max-width: 760px) {
  .ax-ph { padding: 16px; gap: 12px; } .ax-ph .mk-thumb.big { width: 76px; height: 76px; }
  .ax-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-psec { padding: 16px 16px 4px; } .ax-pf { padding: 12px 16px; }
  .ax-kid > .ax-kn:nth-last-child(-n + 3) { display: none; }
}

/* static/pages/adhub.css */
/* Video-Editor Agent (pages/adhub.js): the three panes are the agent page template's, agentpage.css (.va-left the projects, .va-mid the open project, New
   ads or the Library, .va-right the chat); this sheet holds the page's own parts. Its heads, buttons, fields, error
   lines, segments, pills, dots, the switch and the send button are app.css's. */
.adhub-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }  /* the picker: its label is its face */
.va label:has(> .adhub-file:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

/* left: a variation's tag */
.va-from { font-size: 11px; font-weight: 600; color: var(--wait-ink); background: var(--wait-bg); border-radius: var(--r-pill); padding: 0 6px; line-height: 17px; }

/* middle: a project, New ads, the Library */
.va-src { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 10px 12px; border-radius: 10px; background: var(--chip); font-size: 13px; color: var(--text2); line-height: 1.45; }
.va-src svg.i { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--text3); }
.va-src a { color: var(--head); font-weight: 600; }
.va-ads { display: flex; flex-wrap: wrap; gap: 22px; }
.va-ad { margin: 0; width: 216px; }
.va-ad video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #17191c; box-shadow: var(--card); }
.va-ad figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; margin-top: 10px; }
.va-ad figcaption b { grid-column: 1 / -1; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--head); }
.va-ad figcaption small { font-size: 12px; color: var(--text3); white-space: nowrap; }
.va-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-width: 540px; }
.va-steps li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text3); }
.va-steps li.done { color: var(--text2); } .va-steps li.done svg.i { color: var(--ok); }
.va-steps li.now { background: var(--wait-bg); color: var(--head); font-weight: 600; } .va-steps li.now svg.i { color: var(--wait); }
.va-steps small { font-size: 12px; font-weight: 500; }
.va-steps + .va-foot { margin-bottom: 18px; }
.va-fail { display: flex; gap: 12px; max-width: 560px; margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; background: var(--bad-bg); }
.va-fail svg.i { width: 20px; height: 20px; flex: none; color: var(--bad); }
.va-fail b { color: var(--bad-ink); font-size: 14px; } .va-fail p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--text2); }
.va-fail.va-stopped { background: var(--chip); } .va-fail.va-stopped svg.i { color: var(--text3); } .va-fail.va-stopped b { color: var(--head); }

/* New ads: the three kinds, then the kind's quick form */
.va-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.va-kind { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--raise); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.va-kind > span:not(.pill) { flex: 1 1 0; min-width: 0; }
.va-kind:hover { border-color: var(--text3); }
.va-kind[aria-pressed="true"] { border-color: var(--head); box-shadow: 0 0 0 1px var(--head); }
.va-kind svg.i { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--text2); }
.va-kind b { display: block; font-size: 14px; color: var(--head); }
.va-kind small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--text3); }
.va-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.va-f { display: grid; gap: 6px; align-content: start; min-width: 0; font-size: 13px; font-weight: 600; color: var(--text2); }
.va-f.wide { grid-column: 1 / -1; }
.va-f small { font-weight: 400; color: var(--text3); }
.va-mid textarea.input { height: auto; padding: 9px 11px; line-height: 1.45; resize: vertical; }
.va-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.va-go p { margin: 0; font-size: 13px; color: var(--text3); }
.va-go .btn { flex: none; }
.adhub-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 14px; font-size: 13px; color: var(--text2); }
.adhub-note > span:not(.pill) { flex: 1 1 260px; }
.adhub-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px dashed var(--line2); border-radius: 12px; background: var(--raise); font-weight: 400; cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.adhub-drop:hover, [data-adhub-drop].over { border-color: var(--blue); }
.adhub-drop > svg.i { width: 22px; height: 22px; flex: none; color: var(--text3); }
.adhub-drop b { display: block; color: var(--head); } .adhub-drop small { display: block; margin-top: 2px; }
.adhub-ups { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-weight: 400; }
.adhub-ups:empty { display: none; }
.adhub-up { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto minmax(80px, 140px) minmax(0, auto) auto; align-items: center; gap: 10px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.adhub-up > svg.i { width: 16px; height: 16px; color: var(--text3); } .adhub-up.done > svg.i { color: var(--ok-ink); }
.adhub-up.bad > svg.i, .adhub-up.bad .adhub-up-s { color: var(--bad-ink); }
.adhub-up-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--head); font-weight: 600; }
.adhub-up-z, .adhub-up-s { color: var(--text3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.adhub-up-s { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.adhub-up progress { width: 100%; height: 4px; appearance: none; border: 0; border-radius: 2px; background: var(--line); overflow: hidden; }
.adhub-up progress::-webkit-progress-bar { background: var(--line); }
.adhub-up progress::-webkit-progress-value { background: var(--head); }
.adhub-up progress::-moz-progress-bar { background: var(--head); }
.adhub-up.done progress::-webkit-progress-value { background: var(--ok-ink); } .adhub-up.done progress::-moz-progress-bar { background: var(--ok-ink); }

/* the Library: four groups, each folding by its heading */
.va-lg { margin-bottom: 18px; }
.va-lg h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 4px; }
.va-gh { display: flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--head); cursor: pointer; }
.va-gh b { font-weight: 700; }
.va-gh svg.i { width: 14px; height: 14px; color: var(--text3); transition: rotate var(--t-fast) var(--ease); }
.va-gh[aria-expanded="false"] svg.i { rotate: -90deg; }
.va-cn { font: 600 12px var(--mono); color: var(--text3); }
.va-add { display: flex; align-items: center; gap: 8px; min-width: 0; }
.va-add select.input { width: auto; max-width: 180px; height: 30px; font-size: 13px; }
.va-lline { margin: 0 0 8px; font-size: 12.5px; color: var(--text3); }
.va-lg.folded :is(.va-lline, .va-clips, .va-none) { display: none; }
.va-lg .adhub-ups { margin-bottom: 8px; }
.va-clips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.va-clips li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; background: var(--raise); box-shadow: var(--card); font-size: 13px; }
.va-ct { min-width: 0; display: grid; }
.va-ct b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--head); }
.va-ct small { font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-li { width: 32px; height: 32px; border-radius: 8px; background: var(--chip); display: grid; place-items: center; color: var(--text2); }
.va-li svg.i { width: 16px; height: 16px; }
.va-lg .va-none { margin: 0; }

/* right: the chat's pay marks and its pay switch */
.va-pay { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; border-radius: var(--r-pill); background: var(--chip); font-size: 11.5px; font-weight: 600; line-height: 20px; color: var(--text3); }
.va-pay.on { background: var(--warn-bg); color: var(--warn-ink); } .va-pay svg.i { width: 12px; height: 12px; }
.va-sw { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; }
.va-sw:has(.sw:disabled) { color: var(--text3); cursor: default; }

/* a narrow window and a phone: agentpage.css lays out the panes; these fit the page's own parts */
@container panes (max-width: 1000px) { .va-ad { width: 176px; } .va-kinds { grid-template-columns: minmax(0, 1fr); } }
@container panes (max-width: 760px) {
  .va-ads { gap: 14px; } .va-ad { width: calc(50% - 7px); }
  .va-ad figcaption { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 4px; }
  .va-fields { grid-template-columns: minmax(0, 1fr); }
  .va-go { flex-direction: column; align-items: stretch; }
  .adhub-up { grid-template-columns: 16px minmax(0, 1fr) auto auto; } .adhub-up progress, .adhub-up-z { display: none; }
  .va-lg h3 { flex-wrap: wrap; }
}

/* static/pages/admin.css */
/* Admin's pages and Preferences (pages.js): only what differs from the foundation in app.css. Every rule is scoped to
   its page's root, since every page sheet loads on every page. */

/* Issues: the foundation's list beside a record (.w-split). A group's heading takes its state's ink; Done is a heading
   that folds, its arrow down while folded. The record ends in its three marks, over a hairline: a pressed mark is
   charcoal, Blocked pressed is its state's chip. Each time a problem was written folds under its count. */
[data-page="issues"] .w-pick .day.bad { color: var(--bad-ink); } [data-page="issues"] .w-pick .day.wait { color: var(--wait-ink); }
[data-page="issues"] .w-pick .day.fold { width: 100%; border: 0; border-top: 1px solid var(--line); font: inherit; font-size: 12px; font-weight: 600; text-align: left; cursor: pointer; }
[data-page="issues"] .w-pick .day.fold:hover { color: var(--text); } [data-page="issues"] .w-pick .day.fold > span:last-child { display: inline-flex; align-items: center; gap: 6px; }
[data-page="issues"] .w-pick .day.fold svg { width: 13px; height: 13px; transform: rotate(90deg); transition: transform var(--t-fast); }
[data-page="issues"] .w-pick .day.fold[aria-expanded="true"] svg { transform: rotate(-90deg); }
[data-page="issues"] .i-none { margin: 0; padding: 10px 14px 12px; border-top: 1px solid var(--line); color: var(--text3); font-size: 12.5px; }
[data-page="issues"] .i-rec h3 a { margin-left: 8px; font: 500 var(--fs-small) var(--sans); }
[data-page="issues"] .i-times summary { cursor: pointer; width: fit-content; } [data-page="issues"] .i-times summary:hover { color: var(--text); }
[data-page="issues"] .i-times span { display: block; margin-top: 3px; color: var(--text2); font-size: var(--fs-caption); }
[data-page="issues"] .i-marks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); }
[data-page="issues"] .i-marks .mk[aria-pressed="true"] { background: var(--head); border-color: var(--head); color: var(--bg); }
[data-page="issues"] .i-marks .mk.blocked[aria-pressed="true"] { background: var(--bad-bg); border-color: transparent; color: var(--bad-ink); font-weight: 600; }
[data-page="issues"] :is(.w-split > *, .w-rec dd) { min-width: 0; }
[data-page="issues"] .w-pick a b { -webkit-line-clamp: 3; }  /* a problem is named by its sentence: a third line before the cut */

/* Automations: an On/Off switch reads at a glance: On pressed is the ok state's chip, Off pressed stays plain; a post
   switched off reads quieter */
[data-page="automations"] .seg button[data-value="true"][aria-pressed="true"] { background: var(--ok-bg); color: var(--ok-ink); box-shadow: none; }
[data-page="automations"] .seg button[data-value="false"][aria-pressed="true"] { color: var(--text2); }
[data-page="automations"] .posts .tr.off .name b { color: var(--text2); font-weight: 600; }
[data-page="automations"] .tr .r .acts { display: inline-flex; gap: 6px; }

/* Issues, a record's commits: a commit row is its sha, its subject with the files under it, and its small actions at the
   right end; on a phone the actions take their own line */
[data-page="issues"] .w-commit { display: grid; grid-template-columns: auto minmax(0, 1fr) fit-content(320px); align-items: center; gap: 2px var(--sp-3); }
[data-page="issues"] .w-commit > .muted { grid-column: 2; font-size: var(--fs-caption); }
[data-page="issues"] .w-commit .w-acts { grid-column: 3; grid-row: 1 / span 3; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; }
@media (max-width: 760px) {
  [data-page="issues"] .w-commit { grid-template-columns: auto minmax(0, 1fr); }
  [data-page="issues"] .w-commit .w-acts { grid-column: 1 / -1; grid-row: auto; justify-content: flex-start; margin-top: var(--sp-2); }
}

/* Server: the foundation's tiles; a row of three, and a used share's bar under its figure */
[data-page="server"] .tiles.three { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
[data-page="server"] .tile-v small { font: 500 var(--fs-small) var(--sans); color: var(--text3); letter-spacing: 0; }
[data-page="server"] .tile-d .bar { display: block; margin-top: var(--sp-2); }
[data-page="server"] .tr .r .acts { display: inline-flex; gap: 6px; }

/* Users: the edit form's fields take the foundation's field */
[data-page="users"] .edit .input { height: var(--ctl-h); padding: 0 11px; border-radius: var(--r-ctl); background: var(--raise); font-size: var(--fs-body); }
[data-page="users"] .edit .input:focus-visible { outline: 0; border-color: var(--blue); box-shadow: var(--ring); }
[data-page="users"] .edit .tick { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
[data-page="users"] .edit .tick .cb { margin-top: 2px; }
[data-page="users"] .edit .tick small { display: block; color: var(--text3); font-size: var(--fs-caption); }
@media (max-width: 760px) { [data-page="users"] .users .tr .tags { order: 3; } }
/* the open form reads at a line's width, its area ticks in two columns on a computer */
[data-page="users"] form.edit { max-width: 860px; }
@media (min-width: 1100px) { [data-page="users"] .edit fieldset:has(.tick) { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-content: start; }
  [data-page="users"] .edit fieldset > :is(legend, .tick:has([name=owner]), .parts, .hint) { grid-column: 1 / -1; } }
[data-page="users"] .tag.inbox .dot { margin-right: 5px; }

/* Access: the toolbar's dropdown takes its words' width; a folded run of one action lists its times */
[data-page="access"] .tb .input { width: auto; min-width: 180px; }
[data-page="access"] .entry .times { margin: 0; padding: 0 0 4px; color: var(--text3); font-size: var(--fs-caption); }

/* Preferences: the email scanner's facts, one per line */
[data-page="settings"] .scan-facts { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; color: var(--text2); font-size: var(--fs-small); }

/* Preferences: the preview is the last row of Appearance */
[data-page="settings"] .sets .tr.preview { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: start; }
[data-page="settings"] .tr.preview .sample { margin: 0; width: 100%; background: var(--bg); box-shadow: none; border: 1px solid var(--line); }
@media (max-width: 760px) { [data-page="settings"] .sets .tr.preview { grid-template-columns: minmax(0, 1fr); } [data-page="settings"] .sets .tr.preview > :last-child { justify-self: stretch; } }

/* Automations, Server: states at a glance, a long list's quiet actions */
[data-page="automations"] .tb-meta .dot { margin-right: 4px; }
[data-page="automations"] .tr .acts .btn { border-color: transparent; color: var(--text3); }
[data-page="automations"] .tr:is(:hover, :focus-within) .acts .btn { border-color: var(--line2); color: var(--text2); }
@media (hover: none), (max-width: 760px) { [data-page="automations"] .tr .acts .btn { border-color: var(--line2); color: var(--text2); } }
[data-page="server"] .tile-w { display: block; margin-top: 6px; font-size: var(--fs-caption); color: var(--text2); }
[data-page="server"] .tile-w.warn { color: var(--warn-ink); } [data-page="server"] .tile-w.bad { color: var(--bad-ink); font-weight: 500; }
[data-page="server"] .apikeys .grp { grid-template-columns: minmax(0, 1fr) auto auto; width: 100%; background: var(--chip); padding: 10px 16px; text-align: left; color: inherit; }
[data-page="server"] .apikeys .grp > span:first-child { display: grid; gap: 2px; } [data-page="server"] .apikeys .grp small { color: var(--text3); font-size: var(--fs-caption); }
[data-page="server"] .apikeys .grp > svg { width: 15px; height: 15px; color: var(--text3); transform: rotate(90deg); }
[data-page="server"] .apikeys .grp[aria-expanded="true"] > svg { transform: rotate(-90deg); }
/* static/pages/ads.css */
/* Google Ads (pages/ads.js; Docs/Systems/ProjectManagement/G2.md): the table of every client on Google Ads, and one
   client's page. Every class is the page's own (ads-); the tokens, .seg, .pill, .btn and the head are app.css's. */
.ads-body { display: grid; gap: 16px; }
.ads-src svg.i { width: 14px; height: 14px; }  /* the read's age, at the toolbar's right (app.css .tb-meta) */
/* the head's line while the client is read holds the two lines the read line takes on a phone, so the head does not jump */
@media (max-width: 760px) { [data-page="ads"] .ads-lineph { display: block; min-height: 2lh; } }
[data-page="ads"] .seg button:hover:not([aria-pressed="true"]) { color: var(--head); }

/* Why there are no numbers, or old ones */
.ads-off { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--note-line); border-radius: 12px; background: var(--note-bg); }
.ads-off > svg.i { margin-top: 3px; color: var(--warn); } .ads-off.bad { border-color: color-mix(in srgb, var(--bad) 35%, transparent); background: var(--bad-bg); } .ads-off.bad > svg.i { color: var(--bad); }
.ads-off b { color: var(--head); } .ads-off p { margin: 2px 0 0; color: var(--text2); font-size: 13px; max-width: 78ch; } .ads-off .ads-form { margin-top: 12px; max-width: 420px; }

/* The table: one grid for the head and every row, a client's row a link */
.ads-tw { overflow-x: auto; border-radius: 14px; background: var(--raise); box-shadow: var(--card); }  /* the card recipe (app.css .card) */
.ads-tb { min-width: 940px; }
.ads-tr { display: grid; grid-template-columns: minmax(200px, 2.3fr) 104px 118px repeat(3, minmax(58px, .7fr)) 92px 104px 112px minmax(130px, 1.4fr); column-gap: 12px; align-items: stretch; padding: 0 0 0 14px; min-height: 58px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.ads-tr > span { display: flex; align-items: center; min-width: 0; }
.ads-tr.ads-th { min-height: 38px; border-top: 0; font: 600 var(--fs-caption)/1.3 var(--sans); color: var(--text3); }  /* the table head of app.css's .tw */
a.ads-tr { transition: background var(--t-fast); } a.ads-tr:hover { background: var(--hover); } a.ads-tr:focus-visible { outline-offset: -2px; border-radius: 0; }
.ads-n { justify-content: flex-end; text-align: right; font-family: var(--mono); font-size: 12.5px; font-weight: 500; }
.ads-th .ads-n { font: inherit; }
.ads-nm { gap: 11px; } .ads-nm > span { min-width: 0; }
.ads-nm b { display: block; font-weight: 600; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ads-nm small { display: block; color: var(--text3); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ads-st { display: none; }
.ads-av { font: 700 10px var(--sans); background: hsl(var(--h) 38% 40%); }
.ads-kw { color: var(--text3); padding-right: 14px; } .ads-tr:not(.ads-th) .ads-kw { font-size: 13px; display: block; align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ads-tr :is(.ads-cpl, .ads-cplh) { padding: 0 12px 0 0; }
/* a cost per lead's tone is a dot before its figure; the figure stays ink */
.ads-cpl:is(.ok, .warn, .bad)::before { content: ""; flex: none; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; vertical-align: 1px; }
.ads-cpl.ok::before { background: var(--ok); } .ads-cpl.warn::before { background: var(--amber); } .ads-cpl.bad::before { background: var(--bad); }
/* The overview above the table, and each row's review and what waits for approval */
.ads-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ads-sum .ads-sub { color: var(--text3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ads-rev { display: grid; gap: 1px; min-width: 0; } .ads-rev b { font-weight: 600; font-size: 13px; color: var(--head); }
.ads-rev small { color: var(--text3); font-size: 11.5px; white-space: nowrap; } .ads-rev.warn small { color: var(--warn-ink); font-weight: 600; }
.ads-rev.none, .ads-none { color: var(--text3); }
.ads-wait .pill { white-space: nowrap; }
.ads-spark { display: block; overflow: visible; color: var(--ok); } .ads-spark.bad { color: var(--bad); } .ads-spark.off { color: var(--line2); }
.ads-spark path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ads-spark path.fill { fill: currentColor; stroke: none; opacity: .13; } .ads-spark circle { fill: currentColor; }

/* One client */
.ads-back { display: inline-flex; align-items: center; gap: 4px; margin: -6px 0 12px -6px; padding: 3px 9px 3px 4px; border-radius: 7px; color: var(--text3); font-size: 13px; text-decoration: none; transition: background var(--t-fast), color var(--t-fast); }
.ads-back:hover { background: var(--hover); color: var(--text); }
[data-page="ads"] .ph .btn svg.i { width: 13px; height: 13px; }
.ads-untie { color: var(--blue); font-weight: 500; } .ads-untie:hover { text-decoration: underline; }
.ads-kpi { display: grid; gap: 6px; }
.ads-kpi b { line-height: 1.1; }
.ads-kpi b { display: flex; align-items: center; gap: 9px; } .ads-kpi .dot { width: 10px; height: 10px; }
.ads-card { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 16px; border-radius: 14px; background: var(--raise); box-shadow: var(--card); }
.page .ads-card h2 { margin: 0; display: flex; align-items: center; gap: 8px; font: 800 15px/1.3 var(--title); letter-spacing: -.01em; } .ads-card h2 svg.i { color: var(--text3); }
.ads-card h2 small { margin-left: auto; text-align: right; font: 600 12px var(--sans); letter-spacing: 0; color: var(--text3); }
.ads-card .ads-tw { margin: 0 -16px; border-radius: 0; background: none; box-shadow: none; } .ads-card .btn { justify-self: start; }
.ads-kws { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 13px; }
.ads-kws th { padding: 9px 12px; text-align: left; font: 600 var(--fs-caption)/1.3 var(--sans); color: var(--text3); white-space: nowrap; }
.ads-kws :is(th, td) { border-top: 1px solid var(--line); } .ads-kws td { padding: 10px 12px; } .ads-kws tr:last-child td { border-bottom: 1px solid var(--line); } .ads-kws td b { font-weight: 600; color: var(--head); }
.ads-kws :is(th, td):first-child { padding-left: 16px; } .ads-kws :is(th, td):last-child { padding-right: 16px; }
.ads-kws :is(th, td).ads-n { text-align: right; } .ads-kws td.ads-n { white-space: nowrap; } .ads-match { color: var(--text3); }
.ads-bar { display: block; width: 140px; height: 6px; border-radius: 6px; background: var(--chip); overflow: hidden; }
.ads-bar i { display: block; height: 100%; width: var(--p); border-radius: 6px; background: var(--head); }
.ads-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.ads-two > :only-child { grid-column: 1 / -1; max-width: 640px; }
.ads-log, .ads-steps { margin: 0; padding: 0; list-style: none; display: grid; }
:is(.ads-log, .ads-steps) li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
:is(.ads-log, .ads-steps) li:first-child { border-top: 0; padding-top: 0; }
.ads-log li { display: grid; gap: 1px; } .ads-log b { font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
:is(.ads-log, .ads-steps) small { display: block; color: var(--text3); font-size: 12px; }
.ads-steps li > span { flex: 1; min-width: 0; overflow-wrap: anywhere; } .ads-steps .icon { margin: -3px -4px 0 0; }
.ads-form { display: flex; gap: 8px; }
.ads-form .input { flex: 1; }

/* A narrower work: the top keyword leaves the table first, then the columns a phone has no room for */
@media (max-width: 1560px) {
  .ads-tb { min-width: 980px; }  /* what the nine columns ask, so no cell draws past its row */
  .ads-tr { grid-template-columns: minmax(170px, 1fr) 100px 112px repeat(3, 62px) 88px 96px 108px; padding-right: 10px; }
  .ads-tr.ads-tr .ads-kw.ads-kw { display: none; }
}
/* The table follows the room the page has, which the sidebar open or closed changes: a column leaves before the row
   would scroll sideways. Clicks and the 14 days' line leave first; then the status folds into the line under the name
   (.ads-st-s). Under that the row is a phone's (below). Each width is what the columns left ask. */
.ads-body { container-type: inline-size; }
@container (max-width: 979px) {
  .ads-tb { min-width: 0; }
  .ads-tr { grid-template-columns: minmax(170px, 1fr) 112px repeat(2, 62px) 88px 96px 108px; }
  .ads-tr :is(.ads-trend, .ads-clicks) { display: none; }
}
@container (max-width: 793px) {
  .ads-tr { grid-template-columns: minmax(170px, 1fr) repeat(2, 62px) 88px 96px 108px; }
  .ads-tr.ads-tr .ads-state { display: none; } .ads-st-s { display: inline; }  /* over the month line's own display (adslog.css) */
}
@media (max-width: 1280px) {
  .ads-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ads-two { grid-template-columns: minmax(0, 1fr); }
  /* a laptop: the name's column is the table's narrowest room, so a long name and its line wrap whole */
  .ads-nm :is(b, small) { white-space: normal; overflow-wrap: anywhere; } .ads-nm { padding-block: 8px; }
}
@container (max-width: 669px) {  /* a phone's row, and a computer's whose room is as short: the name, spend, leads and cost per lead */
  .ads-tr { grid-template-columns: minmax(0, 1fr) 58px 40px 92px; column-gap: 8px; padding-left: 12px; }
  .ads-tr .ads-cpl { white-space: nowrap; }
  .ads-tr :is(.ads-review, .ads-wait) { display: none; }
  .ads-st { display: inline; } .ads-av { display: none; }
  /* A long name and its state wrap whole */
  .ads-nm :is(b, small) { white-space: normal; overflow-wrap: anywhere; } .ads-nm { padding-top: 8px; padding-bottom: 8px; }
  .ads-tr :is(.ads-cpl, .ads-cplh) { padding: 0 8px 0 0; }
}
@media (max-width: 760px) {
  .ads-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .ads-sum > :last-child { grid-column: 1 / -1; }
  .ads-kpi b { font-size: 22px; }
  .ads-card h2 { flex-wrap: wrap; } .ads-card h2 small { margin-left: 0; flex-basis: 100%; text-align: left; }
}

/* LSA: the channels apart, the set-up checklist and the documents to ask for */
.ads-chs .ads-kws { min-width: 0; } .ads-chs tr:last-child td { font-weight: 700; color: var(--head); } .ads-chs td small { color: var(--text3); font-weight: 400; margin-left: 6px; }
.ads-check, .ads-docs { margin: 0; padding: 0; display: grid; gap: 2px; } .ads-check { list-style: none; }
.ads-check label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; cursor: pointer; }
.ads-check input { margin-top: 2px; } .ads-check small { display: block; color: var(--text3); font-size: 12px; }
.ads-check input:checked + span { color: var(--text3); }
.ads-docs { padding-left: 20px; gap: 8px; color: var(--text2); font-size: 13px; }

/* Proposed negative keywords, at the top of the Change log card: one closed line, then a row per proposal */
.ads-negs { display: grid; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ads-negs-head, .ads-neg-open, .ads-negs-more { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background var(--t-fast); }
.ads-negs-head { padding: 10px 12px; border-radius: 9px; font-size: 13.5px; }
.ads-negs-head:hover, .ads-neg-open:hover, .ads-negs-more:hover { background: var(--hover); }
.ads-negs-head > svg.i:first-child { color: var(--warn); } .ads-negs-head.none > svg.i:first-child { color: var(--text3); }
.ads-negs-head b { font-weight: 600; color: var(--head); white-space: nowrap; } .ads-negs-head span { color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:is(.ads-negs-head, .ads-neg-open, .ads-negs-more) > svg.i:last-child { margin-left: auto; flex: none; width: 14px; height: 14px; color: var(--text3); transition: rotate var(--t-fast); }
:is(.ads-negs-head, .ads-neg-open, .ads-negs-more)[aria-expanded="true"] > svg.i:last-child { rotate: 90deg; }
.ads-negs-body { display: grid; gap: 10px; padding: 0 12px 12px; min-width: 0; }
.ads-negs-body .hint { margin: 0; }
.ads-neg-list, .ads-neg-terms { margin: 0; padding: 0; list-style: none; display: grid; }
.ads-neg { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 8px; align-items: center; border-top: 1px solid var(--line); }
.ads-neg > input { margin: 0; }
.ads-neg-open { display: grid; grid-template-columns: minmax(0, 1fr) 96px 48px 64px 44px 14px; gap: 8px; padding: 8px 4px; border-radius: 6px; font-size: 13px; }
.ads-neg-open b { font: 600 12.5px var(--mono); color: var(--head); overflow-wrap: anywhere; }
.ads-neg-open .ads-n { font-size: 12px; } .ads-neg-kind { color: var(--text3); font-size: 12px; }
.ads-neg-head { display: grid; grid-template-columns: minmax(0, 1fr) 96px 48px 64px 44px 14px; gap: 8px; padding: 0 4px 6px 30px; align-items: end; font: 600 var(--fs-caption)/1.3 var(--sans); color: var(--text3); }
.ads-neg-head > span { font: inherit; }
.ads-neg-terms { grid-column: 2; padding: 2px 4px 10px 12px; gap: 3px; font-size: 12.5px; color: var(--text2); }
.ads-neg-terms li { display: flex; gap: 10px; justify-content: space-between; } .ads-neg-terms small { color: var(--text3); white-space: nowrap; font-family: var(--mono); font-size: 11.5px; }
.ads-neg-err { grid-column: 2; margin: -4px 0 8px 4px; color: var(--bad-ink); font-size: 12px; }
.ads-negs-do { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ads-negs-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: var(--warn-ink); font-size: 12.5px; } .ads-negs-warn svg.i { flex: none; color: var(--warn); width: 14px; height: 14px; margin-top: 2px; }
.ads-negs-more { padding: 6px 4px; border-radius: 6px; font-size: 12.5px; color: var(--text2); }
@media (max-width: 760px) {
  .ads-neg-open, .ads-neg-head { grid-template-columns: minmax(0, 1fr) 48px 64px 14px; }
  .ads-neg-open .ads-neg-kind, .ads-neg-open .ads-neg-conv, .ads-neg-head .ads-neg-kind, .ads-neg-head .ads-neg-conv { display: none; }
}

/* the client's Strategy card: the review job's note, its review days, the note's record and what waits (ads.js, adsStrategy) */
.ads-strat { margin-bottom: 16px; } .ads-strat-t { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--text); max-width: 75ch; }
.ads-strat-do { display: flex; gap: 8px; flex-wrap: wrap; }
.ads-verify { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; } .ads-verify svg { width: 14px; height: 14px; flex: none; }
.ads-spark.warn { color: var(--warn); } .ads-spark.ok { color: var(--ok); }
.ads-wait .pill { cursor: pointer; display: inline-flex; align-items: center; gap: 3px; } .ads-wait .pill svg { width: 11px; height: 11px; }
.ads-st-wait { font-style: normal; color: var(--warn-ink); font-weight: 600; }
@media (max-width: 760px) { .ads-sum > :last-child { order: -1; } }

/* static/pages/adsagent.css */
/* Ads Agent (pages/adsagent.js): the three panes and the chat's shared parts are the agent page template's (agentpage.css); this sheet holds the page's own parts, each rule under
   its root .aa (the .va of the page): the left list's group heads, the open ad, the Overview's cards, the Log, and the
   chat's questions and answers. app.css's tokens and components */
.aa { --aa-gap: 16px; --aa-open: color-mix(in srgb, var(--sel) 45%, var(--raise)); }
.aa .aa-k { color: var(--text3); font-size: var(--fs-caption); font-weight: 600; }
.aa .aa-ln { color: var(--head); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* left: Overview's count, then each group of ads under a heading that folds it */
.aa .va-new .n { margin-left: 2px; }
.aa .aa-g + .aa-g { margin-top: 8px; }
.aa .aa-gh { display: flex; align-items: center; gap: 6px; width: 100%; padding: 6px 10px 4px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); text-align: left; }
.aa .aa-gh:hover { color: var(--head); }
.aa .aa-gh .aa-cn { letter-spacing: 0; }
.aa .aa-gh svg.i { width: 14px; height: 14px; margin-left: auto; transition: rotate var(--t-fast) var(--ease); }
.aa :is(.aa-gh, .aa-fh)[aria-expanded="true"] svg.i { rotate: 90deg; }
.aa .aa-cn { font: 600 var(--fs-caption) var(--mono); color: var(--text3); }
.aa .va-pr small { font-weight: 600; } .aa .va-pr small.aa-warn { color: var(--warn-ink); }

/* an ad's picture (marketing.js mkThumb): before its name in the list, and large in its head */
.aa .aa-p { grid-template-columns: auto minmax(0, 1fr) auto; }
.aa .aa-p .va-pm small { display: block; overflow: hidden; text-overflow: ellipsis; }  /* its line ends short of the tag beside it */
.aa .aa-ad .va-mh > div { flex: 1; }
.aa .aa-ad .va-mh > .mk-thumb.big { width: 88px; height: 88px; border-radius: var(--r-ctl); }
.aa .aa-ad .va-mh > .mk-thumb.big.none svg.i { width: 26px; height: 26px; }

/* middle: the open ad */
.aa .aa-ad .va-mh > .aa-act { flex: none; }
.aa .aa-reason { margin: 0; max-width: 68ch; font-size: var(--fs-lead); line-height: 1.5; color: var(--text); }
.aa .aa-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.aa .aa-tag { padding: 0 8px; line-height: 20px; border-radius: var(--r-pill); background: var(--chip); color: var(--text2); font-size: var(--fs-caption); font-weight: 600; }
.aa .aa-tag.warn { background: var(--warn-bg); color: var(--warn-ink); }
.aa .aa-st { display: block; margin-top: 6px; color: var(--text3); font-size: var(--fs-caption); } .aa .aa-st.bad, .aa .aa-foot.bad { color: var(--bad-ink); }
.aa h3.aa-h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 24px 0 10px; font-size: var(--fs-small); font-weight: 700; color: var(--head); }
.aa h3.aa-h3 small { font-weight: 500; font-size: var(--fs-caption); color: var(--text3); }
.aa :is(.aa-fig, .aa-lt) { width: 100%; border-collapse: collapse; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.aa .aa-fig { background: var(--raise); border-radius: var(--r-card); box-shadow: var(--card); overflow: hidden; }
.aa .aa-fig :is(th, td) { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.aa .aa-fig tbody tr:last-child :is(th, td) { border-bottom: 0; }
.aa .aa-fig tr.on { background: var(--aa-open); }
.aa :is(.aa-fig, .aa-lt) thead th { font-size: var(--fs-caption); font-weight: 600; color: var(--text3); }
.aa .aa-fig thead th { white-space: nowrap; }
.aa .aa-fig tbody th { font-weight: 600; color: var(--head); white-space: nowrap; } .aa .aa-fig tbody th small { display: block; font-weight: 400; color: var(--text3); font-size: var(--fs-caption); }
.aa .aa-fig .num { text-align: right; } .aa .aa-fig td.num { font-weight: 600; color: var(--head); }
.aa .aa-fig .dot { display: inline-block; margin-right: 7px; vertical-align: 1px; } .aa .aa-fig td small { color: var(--text3); }
.aa .aa-foot { margin: 0; color: var(--text3); font-size: var(--fs-caption); }
.aa .aa-hooks { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; counter-reset: hook; }
.aa .aa-hooks li { counter-increment: hook; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--raise); box-shadow: var(--card); }
.aa .aa-hooks li::before { content: counter(hook); grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: var(--chip); color: var(--text2); font: 700 12px/22px var(--mono); text-align: center; }
.aa .aa-hooks b { color: var(--head); font-weight: 600; }
.aa .aa-hooks p { margin: 2px 0 0; color: var(--text2); font-size: var(--fs-small); line-height: 1.5; }

/* middle: the Overview's line and cards; a row's words on the left, its action on the right */
.aa .aa-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: -4px 0 18px; font-size: var(--fs-small); color: var(--text2); }
.aa .aa-s { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: var(--text2); }
.aa .aa-s b { font: 800 15px var(--title); color: var(--head); letter-spacing: -.01em; }
.aa .aa-on { font-weight: 600; color: var(--head); }
.aa .aa-card { border-radius: var(--r-card); background: var(--raise); box-shadow: var(--card); }
.aa .aa-card + .aa-card { margin-top: var(--aa-gap); }
.aa :is(.aa-plan) { padding: 16px 18px; }
.aa :is(.aa-asks, .aa-concepts) { overflow: hidden; }
.aa h2.aa-h { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0 0 10px; padding: 0; border: 0; font: 800 16px/1.3 var(--title); letter-spacing: -.01em; color: var(--head); }
.aa :is(.aa-asks, .aa-concepts) > h2.aa-h { padding: 14px 18px 0; }
.aa .aa-h small { font: 500 var(--fs-caption) var(--sans); color: var(--text3); letter-spacing: 0; }
.aa .aa-fh { display: inline-flex; align-items: center; gap: 8px; font: inherit; color: inherit; }
.aa .aa-fh svg.i { width: 15px; height: 15px; color: var(--text3); transition: rotate var(--t-fast) var(--ease); }
.aa .aa-list { padding: 0 0 4px; }
.aa .aa-none { margin: 0; padding: 4px 18px 14px; color: var(--text3); font-size: var(--fs-small); }
.aa .aa-row { display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-top: 1px solid var(--line); }
.aa .aa-list > .aa-row:first-child { border-top: 0; }
.aa .aa-main { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.aa .aa-main > b, .aa .aa-name b { font-weight: 600; color: var(--head); overflow-wrap: anywhere; }
.aa .aa-name { justify-self: start; text-decoration: none; } .aa .aa-name:hover b { text-decoration: underline; text-underline-offset: 3px; }
.aa .aa-main > small { color: var(--text3); font-size: var(--fs-caption); overflow-wrap: anywhere; }
.aa .aa-why { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 5px; color: var(--text2); font-size: var(--fs-small); }
.aa .aa-act { flex: none; display: flex; gap: 6px; }
.aa .aa-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.aa .aa-meter { display: grid; gap: 4px; }
.aa .aa-fig1 { color: var(--text2); font-size: var(--fs-small); } .aa .aa-fig1 b { font: 800 26px/1.15 var(--title); color: var(--head); letter-spacing: -.02em; margin-right: 4px; }
.aa .aa-bar { display: block; height: 6px; border-radius: 3px; background: var(--chip); overflow: hidden; margin-top: 4px; }
.aa .aa-bar i { display: block; height: 100%; border-radius: 3px; background: var(--head); }

/* middle: the Log, a card; an ad's own changes, the same table */
.aa .aa-logc { padding: 4px 16px; }
.aa .aa-lt :is(td, th) { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.aa .aa-lt thead th { border-top: 0; }
.aa .aa-lt td b { display: block; font-weight: 600; color: var(--head); overflow-wrap: anywhere; } .aa .aa-lt td small { color: var(--text3); font-size: var(--fs-caption); }
.aa .aa-when { white-space: nowrap; color: var(--text3); width: 120px; } .aa .aa-who { white-space: nowrap; color: var(--text2); width: 90px; }
.aa .aa-lt td.aa-u { width: 110px; text-align: right; vertical-align: middle; }
.aa .aa-lt td small.aa-open { display: block; margin-top: 2px; color: var(--warn); }
.aa .aa-more { margin-top: 10px; }

/* right: the open ad's name in the chat's head, cut to its room */
.aa .va-ch b { flex: none; } .aa .va-ch small { min-width: 0; padding-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@container panes (max-width: 760px) {
  .aa .aa-ad .va-mh { flex-direction: column; }
  .aa .aa-row { flex-wrap: wrap; gap: 8px; } .aa .aa-act { width: 100%; }
  .aa .aa-name { padding-block: 10px; margin-block: -10px; }  /* a finger's 40 px, its line where it stood */
  .aa .aa-meters { grid-template-columns: minmax(0, 1fr); }
  .aa .aa-strip { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 16px; }
  .aa .aa-lt thead { display: none; } .aa .aa-lt tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line); padding: 8px 0; }
  .aa .aa-lt td { border: 0; padding: 0 4px; width: auto; } .aa .aa-lt td:nth-child(2) { grid-row: 2; } .aa .aa-lt td.aa-who { grid-row: 3; font-size: var(--fs-caption); color: var(--text3); }
  .aa .aa-lt td.aa-u { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}

/* static/pages/adslog.css */
/* A client's change log and its monthly ad budget (pages/adslog.js), on its Google Ads page and on its record's
   Google Ads tab */

/* The change log: whose lines show, then one line a change, who and when under it, its reason on a click */
.adl-seg { justify-self: start; margin: 0 0 6px; } .adl-seg span { color: var(--text3); font-variant-numeric: tabular-nums; font-weight: 500; }
.adl { margin: 0; padding: 0; list-style: none; display: grid; }
.adl-ln { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; font-size: var(--fs-small); }
.adl-ln:first-child { border-top: 0; }
.adl-ln .adl-av { width: 24px; height: 24px; font-size: 10px; margin-top: 1px; }
.adl-tx { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.adl-tx > p { margin: 0; color: var(--text); overflow-wrap: anywhere; line-height: 1.45; }
.adl-ln.agent .adl-tx > p { color: var(--head); font-weight: 600; }
.adl-tx > small { color: var(--text3); font-size: var(--fs-caption); }
.adl-more { display: inline-flex; align-items: center; gap: 3px; margin: 2px 0 0 -6px; padding: 2px 6px; border-radius: 6px;
  color: var(--blue); font-size: var(--fs-caption); font-weight: 600; transition: background var(--t-fast); }
.adl-more:hover { background: var(--hover); } .adl-more svg.i { width: 12px; height: 12px; transition: transform var(--t-fast); }
.adl-more[aria-expanded="true"] svg.i { transform: rotate(90deg); }
.adl-why { display: grid; gap: 6px; justify-items: start; margin: 4px 0 2px; padding: 10px 12px; border-radius: 8px; background: var(--chip); color: var(--text2); width: 100%; box-sizing: border-box; }
.adl-why p { margin: 0; line-height: 1.5; max-width: 72ch; } .adl-why b { display: block; color: var(--text3); font-size: var(--fs-caption); font-weight: 600; }
.adl-why ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.adl-why a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: var(--fs-caption); }
.ads-card .adl-ln:first-child { padding-top: 4px; }

/* The monthly ad budget: the month's spend over a bar whose light part is what the daily budgets let it reach */
.adl-month { display: grid; gap: 8px; }
.adl-big { margin: 0; color: var(--text2); font-size: var(--fs-body); }
.adl-big b { margin-right: 2px; color: var(--head); font: 800 22px/1.1 var(--title); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.adl-bar { position: relative; display: block; height: 8px; border-radius: 8px; background: var(--chip); overflow: hidden; }
.adl-bar i { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 8px; background: var(--ok); }
.adl-bar i.reach { background: var(--ok-bg); }
.adl-month.warn .adl-bar i { background: var(--amber); } .adl-month.warn .adl-bar i.reach { background: var(--warn-bg); }
.adl-month.bad .adl-bar i { background: var(--bad); } .adl-month.bad .adl-bar i.reach { background: var(--bad-bg); }
.adl-say { display: flex; gap: 8px; align-items: baseline; margin: 0; color: var(--text2); font-size: var(--fs-small); line-height: 1.5; max-width: 72ch; }
.adl-say .dot { transform: translateY(-1px); }
.adl-month.warn .adl-say { color: var(--warn-ink); } .adl-month.bad .adl-say { color: var(--bad-ink); }
.adl-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.adl-meta small { color: var(--text3); font-size: var(--fs-caption); }
.adl-mform { display: grid; gap: 10px; } .adl-mform .hint { margin: 0; }
.adl-amt { display: flex; align-items: center; gap: 8px; max-width: 280px; }
.adl-amt > span { color: var(--text3); font-weight: 600; } .adl-amt .input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; }
.adl-amt small { color: var(--text3); white-space: nowrap; }
.adl-mdo { display: flex; flex-wrap: wrap; gap: 8px; }
/* the Google Ads table: the month under the status pill */
.ads-state:has(.ads-st-month) { display: grid; justify-items: start; gap: 3px; }
.ads-st-month { color: var(--text3); font-size: 11.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ads-st-month.warn { color: var(--warn-ink); font-weight: 600; } .ads-st-month.bad { color: var(--bad-ink); font-weight: 600; }

/* static/pages/adtracking.css */
/* Dashboard's shared parts (pages/adtracking.js): the tables' foot and heads on the page, the table of days, a fold's
   control, and the Not attributed list with its ad picker. The layout's own sheet is addash.css; its card, tables,
   toolbar and search are app.css's; the period's bar and the headings are sales.css's and marketing.css's. */
#ad-days { max-height: 560px; overflow-y: auto; }
.mk tfoot th, .mk tfoot td { font-weight: 700; color: var(--head); border-top: 1px solid var(--line2); border-bottom: 0; text-align: left; }
/* every figure and its head centred in its column, in the tree (addash.css) and the table of days alike */
.mk tfoot td.num, .mk #ad-days :is(th, td), .mk #ad-days tbody th, .mk #ad-days tfoot :is(th, td) { text-align: center; }
.mk tbody th { font-weight: 600; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mk .tw thead th { position: sticky; top: 0; z-index: 1; background: var(--raise); }

/* A fold's control (Show every day as a table): an arrow, and the word for what a click does in the link's ink */
.mk .ad-fold { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font: inherit; color: inherit; text-align: left; }
.mk .ad-fold svg.i { flex: none; width: 18px; height: 18px; color: var(--text3); } .mk .ad-fold[aria-expanded="true"] svg.i { transform: rotate(90deg); }
.mk .ad-fold em { font: 400 var(--fs-small) var(--sans); color: var(--blue); } .mk .ad-fold:hover em { text-decoration: underline; }

/* The Not attributed list (adMissing): one line a call or close whose parts wrap on a narrow box, Tie to ad at its
   right; the ad picker opens under its line, full width from 980 px down. The basis line under the tree is muted */
.mk .ad-mhead { margin: 0 0 8px; color: var(--text2); font-size: var(--fs-small); }
.mk .ad-mlist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--raise); }
.mk .ad-miss { padding: 10px 12px; min-width: 0; } .mk .ad-miss + .ad-miss { border-top: 1px solid var(--line); }
.mk .ad-mline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: var(--text2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.mk .ad-mline b { color: var(--head); font-weight: 600; } .mk .ad-mwho { overflow-wrap: anywhere; }
.mk .ad-mline small { color: var(--text3); font-size: var(--fs-caption); margin-right: 2px; }
.mk .ad-mline .pill { margin-left: -8px; }
.mk .ad-mline .ad-tie { margin-left: auto; }
.mk .ad-mwhy { display: block; margin-top: 2px; color: var(--text3); font-size: var(--fs-caption); }
.mk .ad-picker { display: grid; gap: 8px; max-width: 720px; margin-top: 10px; padding: 12px; border: 1px solid var(--line2); border-radius: var(--r-ctl); background: var(--bg); }
.mk .ad-ph { margin: 4px 0 0; color: var(--head); font-size: var(--fs-caption); font-weight: 600; }
.mk .ad-ph small { margin-left: 6px; color: var(--text3); font-weight: 400; }
.mk .ad-opts { display: grid; gap: 4px; } .mk .ad-all { max-height: 300px; overflow-y: auto; }
.mk .ad-opt > span { display: grid; gap: 1px; min-width: 0; }  /* the ad's words beside its picture (mkThumb) */
.mk .ad-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--raise); color: var(--text); font: inherit; text-align: left; }
.mk .ad-opt:hover { border-color: var(--blue); } .mk .ad-opt:hover b { color: var(--blue); }
.mk .ad-opt b { color: var(--head); font-weight: 600; overflow-wrap: anywhere; }
.mk .ad-opt :is(small, em) { color: var(--text3); font: 400 var(--fs-caption) var(--sans); overflow-wrap: anywhere; } .mk .ad-opt em { color: var(--text2); }
.mk .ad-pfind { margin: 0; max-width: 360px; }
.mk .ad-basis { margin-top: 10px; font-variant-numeric: tabular-nums; }
@container (max-width: 980px) { .mk .ad-picker, .mk .ad-pfind { max-width: none; } }
@media (max-width: 760px) {
  .mk .ad-miss { padding: 10px; } .mk .ad-mline { gap: 4px 12px; }
  .mk .ad-mline .ad-tie { margin-left: 0; flex: 1 1 100%; justify-content: center; }
  .mk .ad-picker { padding: 10px; }
}

/* static/pages/agentclutchy.css */
/* Clutchy's page (pages/agentclutchy.js): the row to Automations is a link, so it points onward, not down */
[data-page="agentclutchy"] [data-admin-kept] { text-decoration: none; }
[data-page="agentclutchy"] [data-admin-kept] > svg { transform: none; }

/* static/pages/agentprompts.css */
/* An agent's Prompts tab (pages/agentprompts.js): its prompt editors */
.agp-files { display: grid; gap: var(--sp-4); }
.agp-file { --pad-y: 16px; --pad-x: 18px; display: grid; gap: var(--sp-3); }
.agp-h { display: flex; flex-wrap: wrap; align-items: start; gap: var(--sp-2) var(--sp-3); justify-content: space-between; }
.agp-h .pill { flex: none; }
.agp-h label { display: grid; gap: 2px; min-width: 0; flex: 1 1 280px; }
.agp-h b { font: 700 var(--fs-card) var(--title); color: var(--head); }
.agp-h small { font-size: var(--fs-small); color: var(--text3); max-width: 75ch; }
.agp-h code { font: var(--fs-caption) var(--mono); color: var(--text3); overflow-wrap: anywhere; }
.agp-file textarea { width: 100%; padding: 10px 12px; line-height: 1.55; resize: vertical; font-size: var(--fs-body); }
.agp-file textarea[readonly] { background: var(--chip); }
.agp-f { display: flex; align-items: center; gap: var(--sp-2); }
.agp-count { margin-right: auto; font-size: var(--fs-caption); color: var(--text3); font-variant-numeric: tabular-nums; }
.agp-live { justify-self: end; margin-top: calc(-1 * var(--sp-2)); font-size: var(--fs-caption); color: var(--text3); }
.agp-ro-note { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-4); padding: 10px 14px; border-radius: var(--r-ctl);
  background: var(--chip); font-size: var(--fs-small); color: var(--text2); }
.agp-ro-note svg.i { flex: none; width: 16px; height: 16px; }
.agp-moved { margin: 0; color: var(--text); }  /* on a card: master moved under the typed words */

/* static/pages/agenttools.css */
/* Clutchy's Tools tab (agenttools.js): a door's usage lines, folded under its name, wrapping at any width */
[data-page="agentclutchy"] .agt-door { display: block; }
[data-page="agentclutchy"] .agt-door summary { cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
[data-page="agentclutchy"] .agt-door pre { margin: 8px 0 0; max-width: 100%; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
[data-page="agentclutchy"] .table.tune code { overflow-wrap: anywhere; }
[data-page="agentclutchy"] form.tr .field { display: flex; gap: 8px; min-width: 0; }
[data-page="agentclutchy"] form.tr .field input { min-width: 0; flex: 1; }
[data-page="agentclutchy"] .ags-new { display: grid; gap: 8px; }
[data-page="agentclutchy"] .ags-new textarea { min-height: 8em; width: 100%; }
/* A narrow strip of tabs scrolls sideways (app.css, .tabs): its right edge fades, so a cut tab shows there is more */
@media (max-width: 720px) {
  [data-page="agentclutchy"] .cla-tabs { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 28px; scroll-padding-inline: 28px; }
}

/* static/pages/agentusage.css */
/* Each agent's Chats and Usage tabs (pages/agentusage.js): only what differs from app.css's table, card and turn. */
.au-note { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-4); padding: 10px 14px; border-radius: var(--r-ctl);
  background: color-mix(in srgb, var(--warn) 12%, var(--panel)); color: var(--text2); font-size: var(--fs-small); max-width: 75ch; }
.au-note svg.i { flex: none; width: 16px; height: 16px; color: var(--warn-ink); }
.au-line { margin: 0 0 var(--sp-3); font-size: var(--fs-small); color: var(--text3); }
.au-h { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0 0 var(--sp-3); }
.au-h small { font-size: var(--fs-small); font-weight: 400; color: var(--text3); max-width: 75ch; }
.au-title { max-width: 0; width: 34%; }
.au-title b, .au-title small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-title b { font-weight: 600; color: var(--text); }
.au-title small { color: var(--text3); font-size: var(--fs-caption); }
.au-first { max-width: 0; width: 46%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text2); }
.au-chat-h { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); flex-wrap: wrap; }
.au-chat-h b { min-width: 0; overflow-wrap: anywhere; }
.au-chat-h small { color: var(--text3); font-size: var(--fs-small); }
.au-chat { --pad-y: 20px; --pad-x: 22px; padding: var(--pad-y) var(--pad-x); max-width: 820px; }
@media (max-width: 720px) {
  .au-chat { --pad-x: 14px; }
  .au-title { width: 55%; }
  .au-first { width: auto; }
}
