/* ---- cards ---- */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:var(--pad);margin-bottom:13px}
.card h3{font:550 16.5px var(--sans);margin:0 0 4px}
.card .meta{font:400 11.5px var(--mono);color:var(--faint)}
/* Solid fill, hairline border, no blur — same as every other control here. */
.installbtn{display:inline-block;text-decoration:none;cursor:pointer;
  font:550 14px var(--sans);color:var(--text);background:var(--surface);
  border:1px solid var(--line-2);border-radius:11px;padding:10px 16px;
  transition:border-color .15s,background .15s}
.installbtn:hover{border-color:var(--accent-dim)}
.installbtn:active{background:var(--panel-2,var(--surface))}
.qhead{display:flex;align-items:center;gap:12px}
.qhead .au{margin-top:1px}
.draft{white-space:pre-wrap;font-size:16px;line-height:1.7;margin:13px 0}
.draft b{font-weight:500}

/* ---- an artifact on a card ----
   A draft can be a picture or a film now, not only a paragraph. The media is
   THE draft here, so it gets the room a paragraph would: full card width, its
   own rounded frame, and nothing layered on top of it. What it must never do
   is push the buttons off the screen — a client should be able to see the
   thing and the Approve button in one glance on a phone — hence the capped
   height and object-fit, which letterboxes a tall render instead of making the
   card three screens long.

   The background is the panel colour rather than transparent on purpose: a PNG
   with transparency renders against the card, and a white-on-white logo would
   otherwise be an empty box that reads as a broken image. */
.art{margin:13px 0;border-radius:12px;overflow:hidden;border:1px solid var(--line);
  background:var(--surface);line-height:0}
.art img,.art video{display:block;width:100%;max-height:62vh;object-fit:contain;background:var(--surface)}
.art-meta{font:500 10.5px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--faint);
  padding:7px 11px;border-top:1px solid var(--line);line-height:1.4}
/* The three states of a picture, and the third is the one that lies. An <img>
   whose src 404s renders as nothing in some browsers and as a broken glyph in
   others, and neither says what happened. `onerror` swaps in this, which does. */
.art-gone{padding:16px;font-size:13.5px;line-height:1.6;color:var(--faint)}
.card.held .art{opacity:.55}
.acts{display:flex;gap:9px;margin-top:15px}
.acts button{flex:1;cursor:pointer;border-radius:10px;padding:12px;border:1px solid var(--line);
  background:transparent;color:var(--muted);font-size:14.5px}
.acts .yes{background:var(--ok);color:#00281c;border-color:var(--ok);font-weight:600}
.acts .fix{border-color:var(--accent-dim);color:var(--accent)}
.fixbox{display:none;margin-top:13px}
.fixbox.on{display:block}
.fixbox textarea{width:100%;background:var(--bg);border:1px solid var(--accent-dim);border-radius:10px;
  padding:11px 13px;color:var(--text);font:400 13.5px/1.6 var(--sans);resize:vertical;min-height:62px;outline:none}
.fixbox .go{background:var(--paper);color:#000;border-color:var(--paper);font-weight:600}
/* copyout — shown only when the browser refuses the clipboard write (non-HTTPS
   context, denied permission, Safari). This used to be a native prompt(), which
   is a modal: it blocks the page, looks nothing like the product, and on iOS
   renders the text in a single-line field that is painful to select. Inline and
   pre-selected instead, so the same recovery is one Cmd+C with no interruption. */
.copyout{display:none;margin-top:13px}
.copyout.on{display:block}
.copyout .lbl{font-size:12.5px;color:var(--faint);margin-bottom:6px}
.copyout textarea{width:100%;background:var(--bg);border:1px solid var(--accent-dim);border-radius:10px;
  padding:11px 13px;color:var(--text);font:400 13.5px/1.6 var(--sans);resize:vertical;min-height:62px;outline:none}
.copyout .shopin{width:100%;background:var(--bg);border:1px solid var(--accent-dim);border-radius:10px;
  padding:11px 13px;color:var(--text);font:400 14px var(--sans);outline:none}
.copyout .shopin:focus{border-color:var(--h1)}
/* Both buttons need explicit styling. Without it .cancel inherits a default
   UA button — a white box with text the same colour as its background, which
   renders as a blank rectangle. Matched to .conn button so the row reads as
   one control set. */
.copyout .go,.copyout .cancel{cursor:pointer;border-radius:99px;padding:8px 16px;
  font-size:12.5px;white-space:nowrap;border:1px solid var(--line)}
.copyout .go{background:var(--paper);color:#000;border-color:var(--paper);font-weight:600}
.copyout .go:disabled{opacity:.55;cursor:default}
.copyout .cancel{background:transparent;color:var(--muted)}
.copyout .cancel:hover{border-color:var(--accent-dim);color:var(--accent)}

/* note — a quiet toast. Replaces alert() for anything that is information
   rather than a decision: alert blocks the page, cannot be styled, and on a
   phone covers the thing it is describing. Decisions still deserve a real
   control; this is for "here is what happened". */
#note{position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(12px);
  max-width:min(560px,92vw);background:var(--surface);border:1px solid var(--line);
  border-radius:12px;padding:13px 17px;font-size:14px;line-height:1.5;color:var(--text);
  box-shadow:0 12px 40px rgba(0,0,0,.55);opacity:0;pointer-events:none;z-index:120;
  transition:opacity .22s,transform .22s}
#note.on{opacity:1;transform:translateX(-50%) translateY(0)}
.acts button:disabled{opacity:.45;cursor:default}
.acts .send{background:var(--paper);color:#000;border-color:var(--paper);font-weight:600}
.tag{display:inline-block;font:500 10px var(--mono);letter-spacing:.1em;padding:4px 9px;
  border-radius:99px;border:1px solid var(--line);color:var(--muted)}
.empty{color:var(--faint);font-size:14px;padding:34px 0;text-align:center;line-height:1.7}

/* ---- pack tabs -------------------------------------------------------------
   A pack ships JSON describing panels; this is the whole visual vocabulary it
   gets, and every value here is an existing token. That is the point: a client
   identity is five values (--h1..--h4, --tempo) and one pack shipping its own
   stylesheet would fragment the design language permanently. A pack tab reads
   as part of the OS because it is rendered BY the OS.
   Layer 3 — the workspace. Nothing here moves. */
/* A pack's fields panel STACKS its label above its value rather than reusing
   .kv, which is a justify-between row built for short values. A pack's rows are
   sentences — "The agent is not buying photographs. They are buying being ready
   for a listing appointment on Thursday." — and in a justify-between row a long
   value runs straight into its own label with no gap. Mono eyebrow above,
   sentence below: the typography rule for a label is mono anyway. */
.pk-kv{padding:10px 0;border-bottom:1px solid var(--line)}
.pk-kv:last-child{border-bottom:0}
.pk-kv .k{font:400 11px var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--faint)}
.pk-kv .v{font-size:14.5px;line-height:1.6;margin-top:4px}
.pk-item{padding:11px 0;border-bottom:1px solid var(--line)}
.pk-item:last-child{border-bottom:0}
.pk-item .t{font-size:15px;line-height:1.5}
.pk-item .m{font:400 11.5px var(--mono);color:var(--faint);margin-top:3px}
.pk-item .b{color:var(--muted);font-size:14px;line-height:1.6;margin-top:5px}
.pk-note{color:var(--muted);font-size:14.5px;line-height:1.65}
.pk-acts{display:flex;gap:7px;flex-wrap:wrap}
.pk-acts button{flex:none;cursor:pointer;background:var(--surface);border:1px solid var(--line);
  border-radius:99px;padding:9px 16px;font-size:14px;color:var(--muted);white-space:nowrap;
  transition:color .15s,border-color .15s}
.pk-acts button:hover{border-color:var(--line-2);color:var(--text)}
.pk-acts button:focus-visible{outline:2px solid var(--h4);outline-offset:2px}
.pk-gone{color:var(--warn);font-size:14px;line-height:1.6}
/* Two sections in Waiting-on-you: pending decisions above, approved-not-sent
   below. The ready cards read as "done except for the send" — lighter border,
   smaller aura, no correction path (they already got the tap). */
.qsec{font:500 11px var(--sans);color:var(--muted);letter-spacing:.06em;text-transform:uppercase;
  margin:6px 0 10px;padding-top:12px;border-top:1px solid var(--line)}
.qsec:first-child{border-top:0;padding-top:0;margin-top:0}
.qsec.ready{margin-top:26px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
/* (removed 2026-08-08) Copy all N — small pill next to the "Ready to send" header. Fires when
   there are multiple approved drafts, so the client can send a week's
   worth of posts in one paste rather than click-copy-paste × 5. */
.clearall{margin-left:auto;background:transparent;color:var(--faint);border:1px solid var(--line-2);border-radius:8px;cursor:pointer;padding:6px 12px;font:600 10.5px var(--mono);letter-spacing:.1em;text-transform:uppercase;transition:color .15s,border-color .15s}
.clearall:hover{color:var(--stop);border-color:rgba(229,72,77,.4)}
.clearall:disabled{opacity:.55;cursor:default}
.q-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:0 0 6px}
.q-clear-all{background:transparent;color:var(--faint);border:1px solid var(--line-2);border-radius:9px;cursor:pointer;padding:8px 14px;font:600 11px var(--mono);letter-spacing:.1em;text-transform:uppercase;transition:color .15s,border-color .15s,background .15s;white-space:nowrap}
.q-clear-all:hover{color:var(--stop);border-color:rgba(229,72,77,.45);background:rgba(229,72,77,.06)}
.q-clear-all:disabled{opacity:.55;cursor:default}
.card.ready{border-style:dashed;background:var(--surface)}
.card.ready .qhead .au.seed{background:radial-gradient(circle at 50% 50%,var(--core) 0 42%,var(--h1) 60%,transparent 78%)}
.card.ready .tag{color:var(--faint)}
.card.ready .acts .rm{background:transparent;color:var(--faint);border:1px solid var(--line-2);font:500 12.5px var(--sans)}
.card.ready .acts .rm:hover{color:var(--stop);border-color:rgba(229,72,77,.35)}
/* Held: caught, not lost. It has to read as DIFFERENT from the queue at a
   glance — no buttons, the reason above the draft rather than below it — but
   not alarming. Nothing went wrong; a rule did its job. So it stays quiet:
   muted body, one amber edge, and the aura stays still (it isn't working). */
.qsec.heldsec{margin-top:26px}
.heldnote{font-size:12.5px;color:var(--faint);line-height:1.65;margin:-4px 0 12px}
.card.held{border-style:dashed;background:var(--surface);border-left:2px solid var(--h3)}
.card.held .qhead .au.seed{background:radial-gradient(circle at 50% 50%,var(--core) 0 42%,var(--h3) 60%,transparent 78%)}
.card.held .tag{color:var(--faint)}
.card.held .draft{color:var(--faint)}
.heldwhy{font-size:13.5px;line-height:1.6;color:var(--text);margin:0 0 11px;
  padding-bottom:11px;border-bottom:1px solid var(--line)}

