/* THE CARD FRAME (Steven 2026-11-09 19:35, his marker drawing: "I want
   the card to have a 5 px outline, and these curves to show what type of
   card it is"; 19:30: "This is the size and look I want for the top left
   Logo"; 19:35: "Always put the Logo in the top left corner of the card";
   20:55: "a single pixel line that goes around the outside, and then on the
   inside where the curves are, also a single pixel line, so that the purple
   area is actually white, and then the icons can be black").
   Markup: components/_card_frame.html (card_frame, card_frame_mark), which
   also holds the curves and says what each kind wears. No script needed.

   1. the piece: the white band and its two 1px lines all the way round,
      the one white pocket at the top left, the black mark centred in it
      and its number.
      Every size is a custom property; --cf-scale scales them all together
      (a share picture's card, a house page's card);
   2. the deck (the signed-in /home deck shell): every card wears it
      (static/js/shell/card-frame.js puts it on), the tray button holds the
      mark, and the card's title, path, column and bottom line make room;
   3. the artifact's own card: an opened artifact in the same frame
      (static/js/pages/artifact-expand.js). */

/* ---- 1. the piece -------------------------------------------------------- */
:root {
    --cf-scale: 1;
}
.cf-host,
.cf,
.cf-mark,
.has-cf,
.hc-slide[data-hc-pack-kind] {                      /* a pack's strip and layers draw with the frame's lines (heat-stacks.css) */
    --cf-u: calc(1px * var(--cf-scale, 1));
    --cf-line-w: calc(5 * var(--cf-u));                /* the band */
    --cf-hair: calc(1 * var(--cf-u));                  /* its two lines: one pixel */
    --cf-a: calc(37.5 * var(--cf-u));                  /* the pocket's centre from both edges, the card's corner there */
    --cf-r: calc(28 * var(--cf-u));                    /* the other two corners (the deck card's, --radius-hero) */
    --cf-bl: var(--cf-r);                              /* the bottom left: plain, or the circle's round the My agent disc (.cf--myagent) */
    --cf-radius: var(--cf-a) var(--cf-r) var(--cf-a) var(--cf-bl);
    --cf-fill: var(--surface-primary, #fff);           /* the band and the pocket: white (gray on a card's back, section 2) */
    --cf-ink: var(--tb-ink, #030308);                  /* the mark's ink on the card: black line work */
    /* THE LINE COLOUR, one place: the two lines round the card and every
       pocket's curve (Steven 2026-11-10: "Let's make the lines that go
       around the card a dark gray, so it is elegant"): --color-gray-700,
       the dark gray short of black; a turned card's are lighter (section
       2, THE BACK'S LINES ARE A LIGHTER GRAY). A STEP LIGHTER (Steven
       2026-11-12, "I want to be famous": "make the line on the outside of
       the card dark gray"): --color-gray-600, still dark on the light page */
    --cf-line-ink: var(--color-gray-600, #52525b);
    /* the header's logo and its number (components/_toll_mark.html in
       components/_layout_cards_header.html; rail-nav.css .boh-rail__disc,
       --boh-rail-control-size 40px, its rings 85% of it, stroke 2 on 20;
       .boh-rail__badge 20px, var(--space-1) side padding, --text-xs mono
       semibold, hung --space-1 up and --space-2 right of the logo by
       layout-cards-header.css .lc-header__mark .lc-mark__badge) */
    --cf-mark: calc(40 * var(--cf-u));
    --cf-badge: calc(20 * var(--cf-u));
    --cf-badge-pad: calc(4 * var(--cf-u));
    --cf-badge-font: calc(12 * var(--cf-u));
    --cf-badge-up: calc(4 * var(--cf-u));
    --cf-badge-out: calc(8 * var(--cf-u));
    /* the mark centred in the pocket's white (Steven 20:55: "the icon
       should be centered in that circle area"; 2026-11-10: "the white
       space around it has a different distance on the top left than the
       bottom right, the space around should be the same"). The white the
       eye reads runs between the two lines: the outer line is drawn inside
       the card's edge, the inner line outside the pocket's circle (the
       picture's side), so the white is 1 to 75 across, its centre half a
       line past the circle's centre (38, not 37.5). The mark sits on that
       centre, the same white on every side, and on a whole pixel, so it
       rounds with the card and the frame and never half a pixel against
       them. Its number rides its shoulder and may stand out of the pocket
       a little */
    --cf-mark-c: calc(var(--cf-a) + var(--cf-hair) / 2);
    --cf-mark-x: calc(var(--cf-mark-c) - var(--cf-mark) / 2);
    --cf-mark-y: calc(var(--cf-mark-c) - var(--cf-mark) / 2);
    /* the top of the mark's ink, from the card's top: the line the title's
       capitals stand on (section 2, THE TITLE ON THE MARK'S LINE). Every
       line drawing (components/_deck_glyphs.html: the club, the stack, the
       page, the flask, the pack marks) starts its ink 20 in from the top of
       its 256 box, its top stroke centred on 30 at width 20; a mark that
       fills its box (the want's yellow disc, a face) sets this to 0 */
    --cf-mark-ink: calc(var(--cf-mark) * 20 / 256);
    --cf-mark-top: calc(var(--cf-mark-y) + var(--cf-mark-ink));
}
.cf-host { position: relative; border-radius: var(--cf-radius); }
.cf {
    position: absolute;
    inset: 0;
    z-index: 3;
    box-sizing: border-box;
    border: var(--cf-line-w) solid var(--cf-fill);
    border-radius: var(--cf-radius);
    pointer-events: none;
}
/* the outer line, on the card's edge, over the pocket */
.cf::before {
    content: "";
    position: absolute;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
    inset: calc(-1 * var(--cf-line-w));
    border: var(--cf-hair) solid var(--cf-line-ink);
    border-radius: var(--cf-radius);
}
/* NO INNER LINE (Steven 2026-11-12, his "Facebook Post analytics" want
   card, the dark line hugging the picture inside the white: "drop the black
   line on the inside line of the card"): the white band and its pockets end
   on the picture (or the card's own white) with no line of their own. The
   shape is the same: the band's inner edge, the pocket's circle and its two
   small curves into the straight edges, top left and round the purple +;
   only the outer line round the card is drawn. */
.cf__pocket {
    position: absolute;
    display: block;
    width: calc(var(--cf-w) * var(--cf-u));
    height: calc(var(--cf-h) * var(--cf-u));
    z-index: 1;
    overflow: visible;
}
.cf__white { fill: var(--cf-fill); }
/* the type pocket, drawn for the top left */
.cf__pocket--type { top: calc(-1 * var(--cf-line-w)); left: calc(-1 * var(--cf-line-w)); }
/* THE + POCKET (Steven 2026-11-12: "I want the curve to go around the
   purple, the inside line so it matches the top left one."): the round
   pocket turned half round in the bottom right corner, the top left one's
   mirror, round the purple + (components/_card_frame.html). It goes when
   the + does (deck-shell.css: a sheet over the deck or in the card, typing) */
.cf__pocket--plus { right: calc(-1 * var(--cf-line-w)); bottom: calc(-1 * var(--cf-line-w)); transform: rotate(180deg); }
body:is(.ds-over, .ds-layer, .ds-typing) .app-shell--deck-shell .cf__pocket--plus { display: none; }
/* THE + IN A BITE (Steven 2026-11-12: "Make the outside line go io the
   left of the dot, so that it sort of matches the top above. on the
   left."): the outer line runs round the + on the card's side
   (.cf__edge, components/_card_frame.html _plus_bite) and the corner
   behind the + is cut out of the frame and out of each face and layer the
   card holds, so the + stands in the page's own colour. The faces are cut
   one by one, not the card, so the card keeps its shadow and a turning
   card's faces carry the bite round with them; a turned card's back stands
   at rest the right way round, so the same corner is cut on it. The bite
   goes when the + pocket does (a sheet over the card, typing) and the
   outer line closes round the corner again. */
.cf__edge { fill: none; stroke: var(--cf-line-ink); stroke-width: 1; }
.cf:has(> .cf__pocket--plus),
.has-cf:has(> .cf > .cf__pocket--plus) > .tb-card__inner > .tb-card__face,
.has-cf:has(> .cf > .cf__pocket--plus) > .tb-card__layer,
.has-cf:has(> .cf > .cf__pocket--plus) > :is(.hc-entry, .vd-entry) {
    --cf-bite: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 75 75'%3E%3Cpath d='M75 75L1.03 75A12 12 0 0 0 10.865 56.124A32.5 32.5 0 0 1 56.124 10.865A12 12 0 0 0 75 1.03Z'/%3E%3C/svg%3E");
    -webkit-mask: linear-gradient(#000 0 0), var(--cf-bite) right bottom / calc(75 * var(--cf-u)) calc(75 * var(--cf-u)) no-repeat;
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}
/* the outer line's own corner is cut off with the bite's square, so no
   hairline of it is left round the corner behind the + (a mask alone left
   a faint trace of it in Chromium); the line round the + takes over at the
   pocket's edge, 73.97 in from the corner */
.cf:has(> .cf__pocket--plus),
.cf:has(> .cf__pocket--plus)::before,
.app-shell--deck-shell .has-cf:has(> .cf > .cf__pocket--plus) > .tb-card__inner > .tb-card__face,
.app-shell--deck-shell .has-cf:has(> .cf > .cf__pocket--plus) > .tb-card__layer,
.app-shell--deck-shell .has-cf:has(> .cf > .cf__pocket--plus) > :is(.hc-entry, .vd-entry) { border-bottom-right-radius: 0; }
.cf:has(> .cf__pocket--plus)::before {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 73.97 * var(--cf-u)), calc(100% - 73.97 * var(--cf-u)) calc(100% - 73.97 * var(--cf-u)), calc(100% - 73.97 * var(--cf-u)) 100%, 0 100%);
}
body:is(.ds-over, .ds-layer, .ds-typing) .app-shell--deck-shell .cf::before { clip-path: none; }
body:is(.ds-over, .ds-layer, .ds-typing) .app-shell--deck-shell :is(.cf, .has-cf > .tb-card__inner > .tb-card__face, .has-cf > .tb-card__layer, .hc-slide.has-cf > :is(.hc-entry, .vd-entry)) { border-bottom-right-radius: var(--cf-a); }
/* with a sheet up the corner rounds again, and two of the line above's
   parts never did (checker K11, 2026-11-14: a square corner at the bottom
   right of every deck sheet): a pseudo-element is not allowed inside :is(),
   so the outer line's ::before needs its own rule, and the face's square
   corner from the + bite rule above outweighs the :is() line, so it gets
   one that names the bite too. With no sheet up the corner stays square
   for the + pocket. */
body:is(.ds-over, .ds-layer, .ds-typing) .app-shell--deck-shell .cf::before { border-bottom-right-radius: var(--cf-a); }
body:is(.ds-over, .ds-layer, .ds-typing) .app-shell--deck-shell .has-cf:has(> .cf > .cf__pocket--plus) > .tb-card__inner > .tb-card__face { border-bottom-right-radius: var(--cf-a); }
/* the card's own drop shadow ran round the cut corner and drew it again
   as a gray ghost under the +; a card with the bite drops it */
.has-cf:has(> .cf > .cf__pocket--plus) { box-shadow: none; }
body:is(.ds-over, .ds-layer, .ds-typing) .app-shell--deck-shell :is(.cf, .has-cf > .tb-card__inner > .tb-card__face, .has-cf > .tb-card__layer, .hc-slide.has-cf > :is(.hc-entry, .vd-entry)) {
    -webkit-mask: none;
    mask: none;
}
/* THE BAND GOES ALL THE WAY ROUND (Steven 2026-11-10, his pen sketch of
   the frame on grid paper: "the outline goes around the top, and the
   color goes around the bottom right, the left bottom is floating above
   the color, and the white goes all the way around"; then, of the cut
   below the discs live: "Look how the back is going over the white in
   the bottoms here. It's messed up!"): the top left pocket is the only
   one. At the bottom there is no pocket and no cut: the band and its two
   lines run on unbroken along the bottom and up both sides, and the + and
   the My agent disc stand inside the band, over the card's own colour
   (purple on the Passport, white on a white card, dark on a dark one, a
   picture or a film), with that colour round them (deck-shell.css and
   section 2 here, --ds-dock-in). The bottom corners keep the pocket
   circle's curve (--cf-a; --cf-bl with the My agent disc), so the band
   and its inner line turn each corner round its disc at one distance. */
.cf.cf--myagent { --cf-bl: var(--cf-a); }
.cf__mark {
    position: absolute;
    z-index: 3;
    top: calc(var(--cf-mark-y) - var(--cf-line-w));
    left: calc(var(--cf-mark-x) - var(--cf-line-w));
}

/* the mark: the drawing and its number */
.cf-mark {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: var(--cf-mark);
    height: var(--cf-mark);
    line-height: 0;
}
.cf-mark > *:not(.cf-mark__badge) { grid-area: 1 / 1; }
/* the want: the header's logo as the header draws it */
.cf-mark .lc-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--cf-mark);
    height: var(--cf-mark);
    border-radius: 9999px;
    background: var(--color-yellow-400, #f2e841);
    color: var(--text-primary, #0f172a);
}
.cf-mark .lc-mark > svg { width: calc(var(--cf-mark) * 0.85); height: calc(var(--cf-mark) * 0.85); overflow: visible; }
/* every other kind: its drawing at the logo's size, in its colour */
.cf-mark .cf-glyph { display: block; width: var(--cf-mark); height: var(--cf-mark); }
.cf-mark .ds-glyph--agent,
.cf-mark .ds-glyph--market,
.cf-mark .ds-glyph--artifact { color: var(--text-inverse, #fff); }
.cf-mark .ds-glyph--action,
.cf-mark .ds-glyph--heat { color: var(--color-yellow-400, #f2e841); }
/* ON A CARD'S FRAME the mark is black line work on the white (Steven
   20:55: "the purple area is actually white, and then the icons can be
   black"): the same drawings, the logo's rings with no yellow disc, the
   yellow marks black too. The number keeps its purple. A mark standing
   on its own (a page's top left, deck-shell-pages.css) keeps its look. */
.cf .cf-mark .cf-glyph,
.has-cf > .ds-type .cf-mark .cf-glyph { color: var(--cf-ink); }
/* THE HEART IS PURPLE (Steven 2026-11-10, the storybook card's pocket:
   "Make the heart the same as on the button, and you can make it purple"):
   a want made from a market offer wears the saved heart (the Toll Bench
   heart, three rings, Steven 2026-11-11), in the purple the saved heart and the + disc wear (pack-add.css A SAVED HEART
   IS PURPLE). The one mark on the white that is not black; the number
   keeps its own purple. */
.cf .cf-mark .cf-glyph.ds-glyph--heart-mark,
.has-cf > .ds-type .cf-mark .cf-glyph.ds-glyph--heart-mark { color: var(--color-purple-500); }
/* THE TOLL BENCH LOGO IS YELLOW (Steven 2026-11-09 21:50: "Make the toll
   bench logo yellow ... switch the colors of the logos, it's too much
   color"): on a want the mark in the white pocket is the logo in its own
   look, the one top left on the house and room pages (deck-shell-pages.css
   .ds-page-mark): the yellow disc and its dark rings on a dark round, the
   purple number on its shoulder, centred in the pocket. It is the one
   yellow thing on a card: the club, the bag and the pack marks stay black
   line work, the path's target the path's light line.
   NO BLACK ROUND ON THE DECK (Steven 2026-11-10): the deck card's type
   pocket stays white and the logo sits on it alone, the yellow disc and its
   rings, no dark circle round it. A share picture's frame keeps its round. */
.cf .cf-mark--want { --cf-logo-round: calc(8 * var(--cf-u)); }
.cf .cf-mark--want::before {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--cf-logo-round));
    border-radius: 9999px;
    background: var(--color-dark-900, #12121a);
    pointer-events: none;
}
.cf .cf-mark .lc-mark,
.has-cf > .ds-type .cf-mark .lc-mark {
    position: relative;
    background: var(--color-yellow-400, #f2e841);
    color: var(--text-primary, #0f172a);
}
/* the number: the header's purple badge on the logo's top right shoulder */
.cf-mark .cf-mark__badge {
    position: absolute;
    top: calc(-1 * var(--cf-badge-up));
    right: calc(-1 * var(--cf-badge-out));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: var(--cf-badge);
    height: var(--cf-badge);
    padding: 0 var(--cf-badge-pad);
    border-radius: 9999px;
    background: var(--indicator-unread, #5534a5);
    box-shadow: none;
    color: var(--color-white, #fff);
    font-family: var(--font-mono);
    font-size: var(--cf-badge-font);
    font-weight: var(--font-semibold, 600);
    font-style: normal;
    line-height: 1;
    pointer-events: none;
}

/* ---- 2. on the deck ------------------------------------------------------ */
/* (html: over deck-shell.css's own dock tokens, which load after this) */
html .app-shell--deck-shell {
    --cf-u: 1px;
    --cf-a: 37.5px;
    --cf-hair: 1px;
    /* the discs stand inside the band, over the card's colour: each one's
       centre on its bottom corner's circle, half a line in like the type
       mark's (section 1) so it lands on a whole pixel, 14 in from the
       card's edges, and the colour between the band's inner line and the
       disc is the same 8 along the bottom, up the side and round the
       corner. The band never passes under either. My agent, the card's
       button and + one height, as before (deck-shell.css --ds-dock-*) */
    --ds-dock-in: calc(var(--cf-a) + var(--cf-hair) / 2 - var(--ds-dock-h) / 2);
    --ds-dock-in-b: calc(var(--cf-a) + var(--cf-hair) / 2 - var(--ds-dock-h) / 2);
    /* the card's button stops this far in from the card's sides, clear of
       the two discs */
    --cf-clear: calc(2 * var(--cf-a) + var(--ds-dock-gap));
    /* what stands over the + (the black plus, its menu, My agents level
       with it, the Share path line) clears the + pocket's white by the
       black plus's old gap: the pocket reaches 2 * --cf-a up from the
       card's foot, 13px past the + (Steven 2026-11-12: "I want the curve to
       go around the purple"; deck-shell.css --ds-fab-lift) */
    --ds-fab-lift: calc(2 * var(--cf-a) - var(--ds-dock-in-b) - var(--ds-dock-h));
}
/* the card's own corners follow the frame: with the My agent disc the
   bottom left is the pocket circle's curve too */
.app-shell--deck-shell .has-cf:has(> .cf--myagent) { --cf-bl: var(--cf-a); }
.app-shell--deck-shell .has-cf,
.app-shell--deck-shell .has-cf > .tb-card__inner,
.app-shell--deck-shell .has-cf > .tb-card__inner > .tb-card__face,
.app-shell--deck-shell .has-cf > .tb-card__layer { border-radius: var(--cf-radius); }
/* NOTHING PEEKS PAST THE CORNER (Steven 2026-11-13, the probability card
   on desktop Chrome, a thin dark sliver along its top left edge outside
   the line, past the pocket's curve: "why is there always a little piece
   of something that is showing in the corner here.... top left..."): a
   slide with no card of its own (the entry card, the probability card,
   the sign-in card: home-cards.css .hc-slide--entry.is-whole > .hc-entry,
   rounded 32; a visitor's first card, visitor-deck.css .vd-entry, rounded
   28) sat under a frame rounded 37.5 at the top left, so its corner, and
   the picture in it, stood 2 to 4px out past the frame's line round the
   pocket. It takes the frame's own corners, as a card's faces
   do, and the + bite with them, so the page shows behind the +, not its
   white. */
.app-shell--deck-shell .hc-slide.has-cf > :is(.hc-entry, .vd-entry) { border-radius: var(--cf-radius); }
.app-shell--deck-shell .has-cf > .cf { z-index: var(--z-dropdown); }
.has-cf.is-3d > .cf { visibility: hidden; }
/* a slide with no card (the entry card): the frame on the slide's own box */
.app-shell--deck-shell .hc-slide.has-cf > .cf {
    inset: max(var(--ds-slide-pad), env(safe-area-inset-top, 0px)) calc((100% - var(--ds-card-w)) / 2) max(var(--ds-slide-pad), env(safe-area-inset-bottom, 0px));
}
/* the tray button is the type pocket: a tap anywhere in it opens the tray */
.app-shell--deck-shell .has-cf > .ds-type {
    inset: 0 auto auto 0;
    display: block;
    width: calc(2 * var(--cf-a));
    height: calc(2 * var(--cf-a));
    border-radius: var(--radius-full);
    background: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.app-shell--deck-shell .hc-slide.has-cf > .ds-type {
    top: max(var(--ds-slide-pad), env(safe-area-inset-top, 0px));
    left: calc((100% - var(--ds-card-w)) / 2);
}
.app-shell--deck-shell .has-cf > .ds-type:focus-visible { outline-offset: -4px; }
.app-shell--deck-shell .has-cf > .ds-type > .cf-mark {
    position: absolute;
    top: var(--cf-mark-y);
    left: var(--cf-mark-x);
}
.app-shell--deck-shell .has-cf > .ds-type .ds-type__glyph { display: contents; }
.app-shell--deck-shell .has-cf > .ds-type .ds-type__glyph[hidden] { display: none; }

/* the title and its words start right of the type pocket, on its line: a
   front's head, a back's head (the Proposals back's title and the line
   under it, cards/_card.html _proposals_back: the same block, both lines
   moved together; Steven 2026-11-10: "Make sure Proposals scoots over for
   the card design it's being written on"), and a back's title standing
   alone */
.app-shell--deck-shell .has-cf .tb-card__art > .tb-card__head,
.app-shell--deck-shell .has-cf .tb-card__backscroll > .tb-card__head,
.app-shell--deck-shell .has-cf :where(:not(.tb-card__headwords)) > .tb-card__backtitle,
.app-shell--deck-shell .has-cf .ac-face > .ac-head { margin-left: calc(2 * var(--cf-a) + var(--space-2) - var(--space-5)); }
.app-shell--deck-shell .has-cf .tb-card__face--side .tb-side__head { padding-left: calc(2 * var(--cf-a) + var(--space-2)); }
/* a back's head reaches at least the pocket's foot from the card's top (its
   scroller's --space-5 above it), so what follows it, the rows or "No
   proposals yet", starts under the pocket */
.app-shell--deck-shell .has-cf .tb-card__backscroll > .tb-card__head { min-height: calc(2 * var(--cf-a) - var(--space-5)); }
/* the left path starts under the pocket (card-col.js places it under the
   title block, so the block is at least as tall as the pocket) */
.app-shell--deck-shell .has-cf .tb-card__front .tb-card__art > .tb-card__head,
.app-shell--deck-shell .has-cf .tb-card__front .tb-side__head { min-height: calc(2 * var(--cf-a) - var(--space-3)); }
/* THE TITLE ON THE MARK'S LINE (Steven 2026-11-10, his shot of the song
   want's back: "The top of the A here should line up with the top of the
   icon on the left"): on either face of a want, the top of the title's
   capitals stands level with the top of the mark drawn in the pocket, at
   every width. The title's first line is cut to its capitals (text-box),
   so its box starts where the capitals do, and the box starts
   --cf-mark-top below the card's top: the art's top inset, the dark
   side's head's, and on the plan's white strip one margin past the
   strip's own --space-5 (card.css .tb-side.tb-card__planturn). Where the
   mark's ink starts (section 1, --cf-mark-ink): a line drawing's top
   stroke; the want's yellow disc and a face fill their box; the heart's
   outer lobes start 28 in (their arcs' top, 94 - 56 = 38, less half the
   line: the Toll Bench heart at full size, Steven 2026-11-11). A
   pack's cards keep their own line under the pack's strip
   (heat-stacks.css), and a browser with no text-box keeps the old insets. */
.app-shell--deck-shell .hc-slide[data-ds-kind="want"] > .has-cf,
.app-shell--deck-shell .hc-slide[data-ds-kind="passport"] > .has-cf { --cf-mark-ink: 0px; }
.app-shell--deck-shell .hc-slide[data-ds-kind="heart"] > .has-cf { --cf-mark-ink: calc(var(--cf-mark) * 28 / 256); }
@supports (text-box-trim: trim-start) {
    .app-shell--deck-shell .hc-slide:not([data-hc-pack-kind]) > .has-cf.tb-card--want > .tb-card__inner > .tb-card__face > .tb-card__art,
    .app-shell--deck-shell .hc-slide:not([data-hc-pack-kind]) > .has-cf.tb-card--want .tb-card__planscroll > .tb-card__planart,
    .app-shell--deck-shell .hc-slide:not([data-hc-pack-kind]) > .has-cf.tb-card--want > .tb-card__inner > .tb-card__face--side .tb-side__head { padding-top: var(--cf-mark-top); }
    .app-shell--deck-shell .hc-slide:not([data-hc-pack-kind]) > .has-cf.tb-card--col .tb-card__planturn > .tb-card__planhead { margin-top: calc(var(--cf-mark-top) - var(--space-5)); }
    .app-shell--deck-shell .hc-slide:not([data-hc-pack-kind]) > .has-cf.tb-card--want > .tb-card__inner > .tb-card__face > .tb-card__art > .tb-card__head .tb-card__title,
    .app-shell--deck-shell .hc-slide:not([data-hc-pack-kind]) > .has-cf.tb-card--want .tb-card__planscroll > .tb-card__planart > .tb-card__head .tb-card__title,
    .app-shell--deck-shell .hc-slide:not([data-hc-pack-kind]) > .has-cf.tb-card--want > .tb-card__inner > .tb-card__face--side .tb-side__head .tb-card__title,
    .app-shell--deck-shell .hc-slide:not([data-hc-pack-kind]) > .has-cf.tb-card--col .tb-card__planturn > .tb-card__planhead > .tb-card__title {
        text-box-trim: trim-start;
        text-box-edge: cap alphabetic;
    }
}
/* THE PLAN BACK'S TOP, CLEAN (Steven 2026-11-13, his shot of "A song from
   you to your boyfriend": "we need to have a little bit more space between
   the text and the left curve ... there's 1, 2, 3, 4, 5 right there. 5
   different types of texts going on ... let's unify that a little bit and
   make it look clean. I like the your turn on there. It also has the
   number"; of three designs, "C, do it"). On the plan back's strip
   (cards/_card.html _plan_back), top to bottom:
     the title    follows the pocket's curve a --space-4 clear of it (a
                  float shaped as the pocket's circle, so a line beside the
                  pocket starts after the curve and a line under it starts
                  at the left edge), its capitals still on the mark's line;
     the body     the want's words and "95.0% · Probability of success" in
                  ONE body style (15 on 22, the quiet gray), from the left
                  edge under the pocket, --space-2 apart;
     the step     --space-6 down: the number and YOUR TURN as they are,
                  and the step's own words right under the pill, beside
                  the number, in the same body style in ink (no box);
   one spacing scale (--space-2 / --space-4 / --space-6) the whole way, and
   --space-6 down to the plan. On the agent's dark strip (the moment the
   person answers) the same shape in its own colours. */
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn {
    --ct-off: var(--space-5);
    --ct-body: 15px;
    --ct-lh: 22px;
    padding-bottom: 0;
}
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-card__planhead { margin-left: 0; margin-bottom: 0; }
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-card__planhead::before {
    content: "";
    float: left;
    width: calc(2 * var(--cf-a) - var(--space-5) + var(--space-4));
    height: calc(2 * var(--cf-a) - var(--ct-off) + var(--space-4));
    shape-outside: circle(var(--cf-a) at calc(var(--cf-a) - var(--space-5)) calc(var(--cf-a) - var(--ct-off)));
    shape-margin: var(--space-4);
}
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-card__planhead > .tb-card__subtitle {
    clear: left;
    margin-top: var(--space-4);
    font-size: var(--ct-body);
    font-weight: 400;
    line-height: var(--ct-lh);
    -webkit-line-clamp: 2;
    line-clamp: 2;
}
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-card__planwant { margin: var(--space-2) 0 0; }
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-card__planwant .sl-want__estimate {
    /* step-cards.css sets the sheet's line with !important */
    font: 400 var(--ct-body)/var(--ct-lh) var(--font-body) !important;
}
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__kicker { margin-top: var(--space-6); }
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn {
    margin-top: var(--space-2);
    padding-left: calc(34px + var(--space-3));
}
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn > .tb-side__state {
    margin-top: 0;
    font-size: var(--ct-body);
    line-height: var(--ct-lh);
}
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn > .tb-side__box {
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn > .tb-side__state + .tb-side__box { margin-top: var(--space-2); }
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn :is(.tb-side__lead, .tb-side__task, .tb-side__then) {
    font-size: var(--ct-body);
    line-height: var(--ct-lh);
}
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn :is(.tb-side__lead, .tb-side__task) { font-weight: 600; }
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn .tb-side__lead + .tb-side__task { font-weight: 400; }
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn .tb-side__then { margin-top: var(--space-2); }
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn + .tb-card__plan { padding-top: var(--space-2); }
@supports (text-box-trim: trim-start) {
    .app-shell--deck-shell .hc-slide:not([data-hc-pack-kind]) > .has-cf.tb-card--col .tb-card__back .tb-card__planturn { --ct-off: var(--cf-mark-top); }
}
/* the same step on a want's front: under the picture, the number and the
   pill, then the step's words under the pill beside the number in the one
   body style ("Choose an agent" / "1 proposal arrived", "Nia's plan is
   ready." / "Read it and sign if it fits.") */
html body .app-shell--deck-shell .hc-slide .tb-card--col.tb-card--want > .tb-card__inner > .tb-card__front > .tb-card__panel:has(> .tb-card__kickrow .tb-card__num:not([hidden])) > :is(.tb-card__heading, .tb-card__bodyscroll) { margin-left: calc(34px + var(--space-3)); }
html body .app-shell--deck-shell .hc-slide .tb-card--col.tb-card--want > .tb-card__inner > .tb-card__front > .tb-card__panel:has(> .tb-card__kickrow .tb-card__num:not([hidden])) > .tb-card__heading,
html body .app-shell--deck-shell .hc-slide .tb-card--col.tb-card--want > .tb-card__inner > .tb-card__front > .tb-card__panel:has(> .tb-card__kickrow .tb-card__num:not([hidden])) > .tb-card__bodyscroll > .tb-card__body {
    font-family: var(--font-body);
    --interface-font: var(--font-body);
    font-size: 15px;
    line-height: 22px;
    letter-spacing: 0;
}
html body .app-shell--deck-shell .hc-slide .tb-card--col.tb-card--want > .tb-card__inner > .tb-card__front > .tb-card__panel:has(> .tb-card__kickrow .tb-card__num:not([hidden])) > .tb-card__heading { font-weight: 600; color: var(--text-primary); }
html body .app-shell--deck-shell .hc-slide .tb-card--col.tb-card--want > .tb-card__inner > .tb-card__front > .tb-card__panel:has(> .tb-card__kickrow .tb-card__num:not([hidden])) > .tb-card__heading + .tb-card__bodyscroll { margin-top: calc(var(--space-2) - var(--space-3)); }
/* THE TITLE BESIDE THE POCKET, THE SAME ON EVERY CARD (Steven 2026-11-13:
   "make sure that title is good across the site"): every card that wears
   the pocket starts the words on the pocket's line --space-4 clear of its
   curve (the pocket is 2 * --cf-a across, so --cf-title-in from the card's
   edge), in the one title type (the heading face, --text-2xl, 800), never
   under the right column's discs, and a long one stops at three lines.
   One place for the measure, over each card's own sheet: a want's front
   and back heads, the dark side's head, the agent connect card, the
   market's product card and its order back, Passport, the workflow
   (receipt and plan) cards, the operator's cards, the action packs and the
   new pack, the delivered artifact. The plan back's title follows the
   curve itself (THE PLAN BACK'S TOP, CLEAN, above). */
html .app-shell--deck-shell,
.has-cf { --cf-title-in: calc(2 * var(--cf-a, 37.5px) + var(--space-4)); }
html body .app-shell--deck-shell .has-cf .tb-card__art > .tb-card__head,
html body .app-shell--deck-shell .has-cf .tb-card__backscroll > .tb-card__head,
html body .app-shell--deck-shell .has-cf :where(:not(.tb-card__headwords)) > .tb-card__backtitle,
html body .app-shell--deck-shell .has-cf .ac-face > .ac-head,
html body .app-shell--deck-shell .pdpc .has-cf .tb-card__art > .tb-card__top,
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__offerscroll > .ck--card > .ck-kicker,
html body .app-shell--deck-shell .opw-card.has-cf .tb-card__backsub { margin-left: calc(var(--cf-title-in) - var(--space-5)); }
html body .app-shell--deck-shell .has-cf .tb-card__face--side .tb-side__head,
html body .app-shell--deck-shell .has-cf.wfc-card .wfc-head,
html body .app-shell--deck-shell .has-cf .wfp-back .wfc-head,
html body .app-shell--deck-shell .has-cf.pn-card .pn-head,
html body .hc-heat-end .pn-face[data-pn-edit] > .pn-head,
html body .has-cf .tb-artcard__head,
html body .has-cf.passport-feed-card .passport-feed-book .passport-feed-heading { padding-left: var(--cf-title-in); }
html body .has-cf.passport-feed-card .passport-feed-face[data-passport-face="cover"] .passport-feed-heading { margin-left: var(--cf-title-in); }
html body .app-shell--deck-shell .has-cf .pk-face > .pk-head,
html body .has-cf .pk-face > .pk-head { padding-left: var(--cf-title-in); }
/* the one title type */
html body .has-cf :is(.pk-title, .pn-title, .tb-artcard__title, .ac-title, .tb-card__backtitle) {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    line-height: 1.12;
}
/* the want back's title is that type at every width (it grew to 32 on a
   wide screen beside a pack's 24) */
html body .app-shell--deck-shell .has-cf :is(.tb-card__backscroll > .tb-card__head, .tb-card__planturn > .tb-card__planhead) > .tb-card__title {
    font-size: var(--text-2xl);
    line-height: 1.12;
}
/* a long title stops at three lines with an ellipsis */
html body .app-shell--deck-shell .has-cf :is(.tb-card__backscroll > .tb-card__head, .tb-card__planturn > .tb-card__planhead) > .tb-card__title,
html body .has-cf :is(.pk-title, .pn-title:not(.pn-title--edit), .ac-title, .tb-card__backtitle) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
}
/* THE BACK'S LINES ARE A LIGHTER GRAY (Steven 2026-11-10: "When you flip
   the card, the exterior outline of the card should be slightly gray";
   then "the back of the cards should also have that gray in the
   outlines, so like surrounding the purple button etc. Not too dark
   though, just enough to make you tell the difference between front and
   back"): a turned card's frame draws every line it has (the outer
   edge, the inner line round the band and past the purple +, the type
   pocket's bite) in --color-gray-400, lighter than the front's
   --color-gray-700 (section 1, --cf-line-ink); the mark keeps its ink.
   AND ITS BAND IS GRAY (Steven 2026-11-10, his pen sketch: "on the back
   of the card that white should be a gray, to represent the back of the
   card. Medium gray"): the band and the type pocket, white on the front,
   are --color-gray-300 on the back. Not gray-400: that is the back's line
   colour, and on a band of it both lines would vanish; gray-300 is the
   one step lighter, the medium gray that still shows them. */
.app-shell--deck-shell .has-cf.is-flipped > .cf {
    --cf-line-ink: var(--color-gray-400, #a1a1aa);
    --cf-fill: var(--color-gray-300, #d4d4d8);
}
/* THE FRAME TURNS WITH THE CARD (Steven 2026-11-11, iPhone, a want's back
   mid-flip: "Why does it have that little thing in the corner there, it's
   like when it flips it's there for a second and then it's gone"; his
   drawing of the turned card keeps the frame and the club in the top
   left). The card's own frame and mark hide while it turns (above, and
   deck-shell.css .ds-type); static/js/shell/card-frame.js gives the
   turning card a copy of each for each face ([data-cf-turn]): the front's
   white frame and the back's gray one, both with the pocket and the mark,
   each turning on the card's own curve (card.css .tb-card__inner) about
   the card's middle, the back's starting turned away. Each shows only
   while its face is towards you, changing at the card's edge-on moment
   (card.css --tb-card-turn-mid), so the pocket and its mark go round with
   the card and land where the card's own frame comes back. At rest the
   copies stand hidden. */
.has-cf > [data-cf-turn] { visibility: hidden; pointer-events: none; }
.has-cf > [data-cf-turn="front"] { transform: rotateY(0deg); }
.has-cf > [data-cf-turn="back"] { transform: rotateY(180deg); }
.has-cf.is-flipped > [data-cf-turn="front"] { transform: rotateY(180deg); }
.has-cf.is-flipped > [data-cf-turn="back"] { transform: rotateY(360deg); }
.has-cf > .ds-type[data-cf-turn] { transform-origin: calc(var(--cf-turn-w, 0px) / 2) calc(var(--cf-turn-h, 0px) / 2); }
.has-cf.is-3d > [data-cf-turn] {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.6s cubic-bezier(.2, .7, .2, 1), visibility 0s linear var(--tb-card-turn-mid, 87ms);
}
.tb-card.has-cf.is-3d:not(.is-flipped) > [data-cf-turn="front"],
.tb-card.has-cf.is-3d.is-flipped > [data-cf-turn="back"] { visibility: visible; }
.app-shell--deck-shell .has-cf > .cf[data-cf-turn="front"] {
    --cf-line-ink: var(--color-gray-600, #52525b);
    --cf-fill: var(--surface-primary, #fff);
}
.app-shell--deck-shell .has-cf > .cf[data-cf-turn="back"] {
    --cf-line-ink: var(--color-gray-400, #a1a1aa);
    --cf-fill: var(--color-gray-300, #d4d4d8);
}
@media (prefers-reduced-motion: reduce) {
    .has-cf.is-3d > [data-cf-turn] { transition: none; }
}
/* the right column stands centred on the card's right edge (card-col.css) */
/* the card's button between My agent and the + pocket */
.app-shell--deck-shell .hc-slide .has-cf.tb-card--col .tb-card__front > .tb-card__panel > .tb-card__cta {
    margin-left: calc(var(--cf-clear) - var(--space-5));
    margin-right: calc(var(--cf-clear) - var(--space-5));
}
.app-shell--deck-shell .hc-slide .has-cf.tb-card--col .tb-card__front.tb-card__face--side .tb-side__words > .tb-side__control {
    margin-left: calc(var(--cf-clear) - var(--space-6));
    margin-right: calc(var(--cf-clear) - var(--space-6));
}
.app-shell--deck-shell .has-cf.tb-card--col .tb-card__backdock { padding-left: var(--cf-clear); padding-right: var(--cf-clear); }

/* ---- an agent's card page in the deck (cards/_agent_card_page.html) ----
   Its Back arrow sat in the top left corner, under the type pocket. The
   pocket keeps the corner (Steven 2026-11-09: "Always put the Logo in the
   top left corner of the card"); Back steps right of it, on the pocket's
   centre line, and still stays put while the page scrolls. */
.has-cf[data-agent-card-page] [data-card-back] {
    top: calc(var(--cf-a) - (var(--space-8) + var(--space-1)) / 2);
    left: calc(2 * var(--cf-a) + var(--space-1));
    margin: 0;
}

/* ---- 3. THE ARTIFACT'S OWN CARD (Steven 2026-11-11, his phone on a pack's card,
   OPEN circled: "When you open a artifact, it should have its own card and
   artifact card that fills the screen as a close in the top right
   corner"). static/js/pages/artifact-expand.js draws it from the deck's
   frame (feed/home_cards.html [data-artifact-card-frame]): a card of the
   deck's one size over the deck, in the same white frame as every card
   (components/_card_frame.html card_frame('artifact'): the folded page in
   the top left pocket), the artifact's title beside the pocket and its
   "<type> · <state>" line under it in the yellow mono caps, a close X in
   the top right corner where a card's three dots stand, and the artifact
   itself scrolling inside the card under them, never under the pocket.
   Inside the deck shell, so the deck's tokens (--ds-card-w, --ds-slide-pad,
   the frame's --cf-*) size it; section 1 draws the frame and section 2
   rounds the card (.has-cf). Fonts, colours and words are the artifact's
   own. */
.tb-artcard {
    position: fixed;
    inset: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: max(var(--ds-slide-pad, var(--space-1)), env(safe-area-inset-top, 0px)) 0 max(var(--ds-slide-pad, var(--space-1)), env(safe-area-inset-bottom, 0px));
    border: 0;
    overflow: hidden;
    background: transparent;
    color: var(--text-primary);
}
.tb-artcard:not([open]) { display: none; }
.tb-artcard[open] { display: flex; justify-content: center; }
.tb-artcard::backdrop { background: rgb(0 0 0 / 0.45); }
.tb-artcard__card {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: var(--ds-card-w, calc(100vw - 2 * var(--space-1)));
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--cf-radius, var(--radius-hero));
    background: var(--surface-primary);
}
/* the title beside the pocket, on the mark's line, clear of the X */
.tb-artcard__head {
    flex: none;
    box-sizing: border-box;
    min-height: calc(2 * var(--cf-a, 37.5px));
    padding: var(--cf-mark-top, var(--space-5)) calc(var(--space-4) + var(--size-10) + var(--space-2)) var(--space-3) calc(2 * var(--cf-a, 37.5px) + var(--space-2));
}
.tb-artcard__title {
    margin: 0;
    color: var(--text-primary);
    font: var(--font-bold) var(--text-2xl)/var(--leading-tight) var(--font-heading);
    --interface-font: var(--font-heading);
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
.tb-artcard__kind.sl-art__kind { display: inline-flex; margin-top: var(--space-2); }
.tb-artcard__kind[hidden] { display: none; }
/* the close X in the top right corner: where a card's three dots stand
   (card-col.css THE THREE DOTS AT THE TOP), the 44px tap, the sheet's X */
.tb-artcard__x {
    position: absolute;
    z-index: calc(var(--z-dropdown, 1000) + 1);
    top: calc(var(--space-4) - var(--space-1) / 2);
    right: calc(var(--space-4) - var(--space-1) / 2);
    display: grid;
    place-items: center;
    width: calc(var(--size-10) + var(--space-1));
    height: calc(var(--size-10) + var(--space-1));
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--radius-full);
    background: none;
    color: var(--color-gray-700);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.tb-artcard__x svg { display: block; width: var(--size-6); height: var(--size-6); }
.tb-artcard__x:hover { background: var(--surface-secondary); color: var(--text-primary); }
.tb-artcard__x:focus-visible { outline: 2px solid var(--interactive-focus-ring, var(--color-yellow-400)); outline-offset: 2px; }
/* the artifact, whole, scrolling inside the card under the title */
.tb-artcard__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0 var(--space-5) calc(var(--space-6) + var(--cf-line-w, 5px));
}
.tb-artcard__scroll > .tb-artifact { margin: 0; padding: 0; border: 0; box-shadow: none; background: none; }
.tb-artcard__scroll > .tb-artifact > .sl-art__sub { margin: 0 0 var(--space-3); }
.tb-artcard__actions {
    flex: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5) calc(var(--space-5) + var(--cf-line-w, 5px));
    border-top: 1px solid var(--border-default);
}
.tb-artcard__actions[hidden] { display: none; }
/* A PDF IN THE OPENED CARD FILLS ITS WIDTH (lane LOOK, Steven 2026-11-15,
   his phone on "What Sam delivered", style-profile.pdf: "on this PDF, I want
   to be able to see it filling the tool, it's not and the tool needs to go
   ful width for phone."). The reader opens fit to width
   (targets/artifacts/pdf.html, #view=FitH); on a phone it runs edge to edge
   of the card, out of the scroller's side inset. */
@media (max-width: 600px) {
    .tb-artcard__scroll .tb-artifact .art-page {
        width: calc(100% + 2 * var(--space-5));
        max-width: none;
        margin-inline: calc(-1 * var(--space-5));
        border-inline: 0;
        border-radius: 0;
    }
}
/* the chip over an artifact opens it too */
[data-artifact-expand-chip] { cursor: pointer; }
[data-artifact-expand-chip]:focus-visible { outline: 2px solid var(--interactive-focus-ring, var(--color-yellow-400)); outline-offset: 2px; }

/* THE TOP OF A WANT'S PAGE, BLACK ON BOTH TURNS (lane SHEETTOP; Steven
   2026-11-16, his shot of this back: "The top part of this pag looks
   terribe can you make the fonts look profssioonal and put the black all
   the pay done below the same card, Make all the colors match up"; of the
   drawing, "g. is goo diwth black", black on his own turn too). This
   replaces, on the deck's plan back, the white strip of "YOUR TURN ON THE
   BACK IS WHITE" (card.css, Steven 2026-11-10) and the radial ground.
   The plan back's strip (cards/_card.html _plan_back), top to bottom, on
   one left edge and one type scale from the site's own tokens:
     the title     the deck card's own title, as before;
     the want      the want's words whole (never trimmed), body 15 on 22,
                   then the estimate as one quiet line;
     whose turn    the card's own ring and pill, unchanged: the purple
                   AGENT'S TURN with its cyan flash (home-cards.css) or the
                   green YOUR TURN; whatever tone the turn has, it keeps
                   its own colours;
     the turn      its first line in the heading face, 18, white; the step
                   in body 15 on 22; the last line quiet. The plain "Agent
                   working" dot row goes (the pill says it); any other state
                   line the turn brings (held up, waiting, at a service)
                   stays, quiet;
     the agent     the plan's agent row (refined-plan-sheet.css) is the
                   black's last row, under a thin line, edge to edge.
   Colours on the black: --color-dark-900 (the deck card's dark side),
   --text-inverse, --color-gray-300, --color-gray-400, --color-gray-800. */
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn {
    --st-ink: var(--text-inverse);
    --st-body: var(--color-gray-300);
    --st-quiet: var(--color-gray-400);
    --st-line: var(--color-gray-800);
    background: var(--color-dark-900);
    color: var(--st-ink);
    padding-bottom: var(--space-6);
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-card__planhead > .tb-card__title {
    color: var(--st-ink);
    text-shadow: none;
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-card__planhead > .tb-card__subtitle {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: none;
    overflow: visible;
    font: var(--font-normal) var(--ct-body)/var(--ct-lh) var(--font-body);
    color: var(--st-body);
    text-shadow: none;
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-card__planwant .sl-want__estimate {
    font: var(--font-normal) var(--text-sm)/var(--space-5) var(--font-body) !important;
    font-variant-numeric: tabular-nums;
    color: var(--st-quiet) !important;
}
/* the ring on the black on either turn, as a dark back draws it (card.css
   .tb-card__back .tb-card__num) */
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn .tb-card__num {
    border-color: color-mix(in srgb, var(--text-inverse) 35%, transparent);
    background: color-mix(in srgb, var(--color-dark-900) 45%, transparent);
    color: var(--st-ink);
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn {
    margin-top: var(--space-4);
    padding-left: 0;
    /* clear of the right-hand column, as the title and the want line are
       (card-col.css, NOTHING ON A BACK UNDER THE RIGHT COLUMN) */
    padding-right: calc(var(--ds-col-right) + var(--ds-col) + var(--space-2) - var(--space-5));
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn--working > .tb-side__state { display: none; }
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn > .tb-side__state {
    margin: 0 0 var(--space-2);
    font: var(--font-normal) var(--text-sm)/var(--space-5) var(--font-body);
    color: var(--st-body);
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn > .tb-side__box {
    border: 0;
    background: none;
}
/* the turn's first line: the heading face, 18, white */
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn > .tb-side__box > :is(.tb-side__lead, .tb-side__task):first-child {
    margin: 0;
    font: var(--font-semibold) var(--text-lg)/1.3 var(--font-heading);
    color: var(--st-ink);
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn > .tb-side__box > .tb-side__lead + .tb-side__task {
    margin-top: var(--space-2);
    font: var(--font-normal) var(--ct-body)/var(--ct-lh) var(--font-body);
    color: var(--st-body);
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn > .tb-side__box > .tb-side__then {
    margin-top: var(--space-3);
    font: var(--font-normal) var(--text-sm)/var(--space-5) var(--font-body);
    color: var(--st-quiet);
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn > .tb-side__turn .tb-side__namelink.tb-card__agentlink {
    color: inherit;
    font: inherit;
    text-decoration: none;
}

/* ONE PLAIN PILL AT THE TOP (lane PAGEDECIDE; Steven 2026-11-17, on the
   page of pictures, part G "The top of a want's page", ticked "Build it?"
   and asked for it built). The drawing he approved (g2, the agent's
   turn): everything on one left edge, "a plain purple pill with no glow",
   and the agent's row inside the black top with nothing on its right but
   the chevron. On the plan back:
     the pill    the AGENT'S TURN pill is the card's own plain purple with
                 white letters (card.css .tb-card__kicker--agent): the cyan
                 letters, the cyan halo and the pulse that home-cards.css
                 (THE AGENT'S TURN PILL FLASHES LIKE THE DOT) and lane
                 TURNPILL put on it stop here, on either place it sits;
     one pill    where the black strip above already says whose turn it is
                 (the card's ring and pill, .tb-card__planturn), the agent's
                 row under it carries no second pill (lane TURNPILL's pill
                 stays on the row where the strip is not drawn: the agent's
                 own turn, whose back opens on the want's picture, and the
                 sheet that slides up over the front, which keeps its own
                 flash as Steven asked for it there on 2026-11-16).
   Colours: the card's own tokens only (--tb-card-purple, --text-inverse). */
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__kicker--agent .tb-card__label,
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .rps-strip .ck-strip__turn.tb-card__kicker--agent .tb-card__label {
    color: var(--text-inverse);
    box-shadow: none;
    animation: none;
    will-change: auto;
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__kicker--agent .tb-card__label::after,
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .rps-strip .ck-strip__turn.tb-card__kicker--agent .tb-card__label::after {
    content: none;
    animation: none;
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn + .tb-card__plan .rps > #hc-sheet-agents .ck-strip__turn {
    display: none;
}

/* YOUR TURN ON THE BACK IS WHITE (lane PAGEDECIDE; Steven 2026-11-17, item
   20 on his page, "The top of a want's page on your turn: white as drawn,
   or black like the agent's turn?": "white"; the drawing g3 on his page of
   pictures, part G "New: your turn"). On the person's turn (the strip holds
   the green YOUR TURN kicker) the strip and the agent's row under it wear
   the white panel's inks, with a thin line under each; the agent's turn
   (the kicker the deck turns purple the moment the person answers) keeps
   the black above. Only the inks change: the strip's own names (--st-*,
   above) and the agent row's (--rps-*, refined-plan-sheet.css). */
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn:has(.tb-card__kicker--you) {
    --st-ink: var(--text-primary);
    --st-body: var(--text-secondary);
    --st-quiet: var(--text-muted);
    --st-line: var(--border-default);
    background: var(--surface-primary);
    border-bottom: var(--tb-hair) solid var(--st-line);
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn:has(.tb-card__kicker--you) .tb-card__num {
    border-color: var(--border-default);
    background: var(--surface-secondary);
    color: var(--text-primary);
}
html body .app-shell--deck-shell .has-cf.tb-card--col .tb-card__back .tb-card__planturn:has(.tb-card__kicker--you) + .tb-card__plan .rps > #hc-sheet-agents {
    --rps-ink: var(--text-primary);
    --rps-body: var(--text-secondary);
    --rps-quiet: var(--text-muted);
    --rps-line: var(--border-default);
    background: var(--surface-primary);
    color: var(--rps-ink);
    border-top: 0;
    border-bottom: var(--tb-hair) solid var(--rps-line);
}
