/* The sheet of Apps and Presets (console/apps/, console/presets/; v1.15.0, prompts/sprints/sprint-service.md, part
   C3). What the console has already (cards, badges, buttons, chips, fields) is console/app.css; this sheet adds what
   is new, in its manner. The page's policy admits no inline style: everything is a class of a sheet.
   The approved look is the owner's mock-up (C:/gf-web/service-2026-10-20/mock/gf.css): ipafy's sizes and motion in
   gamefab's blue, 14px to read, 12 for what is secondary, 11 for captions, radii 4, 6 and 8, colour moving in 150ms.
   Every class here begins with `ap-`, so that nothing of it meets a class of another sheet; the colours are the tokens
   of console/app.css, but for the seven colours of a preset's tags, which are Apple's own in both themes. */

/* --- Tags of presets: a dot of the colour on a tint of it, readable in both themes --------------------------------- */
:root { --ap-red: #ff3b30; --ap-orange: #ff9500; --ap-yellow: #ffcc00; --ap-green: #34c759; --ap-blue: #007aff; --ap-purple: #af52de; --ap-gray: #8e8e93; --ap-tint: 20%; --ap-ink: #000; --ap-ink-mix: 56%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --ap-red: #ff453a; --ap-orange: #ff9f0a; --ap-yellow: #ffd60a; --ap-green: #30d158; --ap-blue: #0a84ff; --ap-purple: #bf5af2; --ap-gray: #98989d; --ap-tint: 26%; --ap-ink: #fff; --ap-ink-mix: 74%; }
}
:root[data-theme="dark"] { --ap-red: #ff453a; --ap-orange: #ff9f0a; --ap-yellow: #ffd60a; --ap-green: #30d158; --ap-blue: #0a84ff; --ap-purple: #bf5af2; --ap-gray: #98989d; --ap-tint: 26%; --ap-ink: #fff; --ap-ink-mix: 74%; }
.ap-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.ap-tag { --ap-tc: var(--ap-gray); display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px 0 7px; border-radius: 9999px; font-size: 11px; line-height: 1; font-weight: 500; white-space: nowrap; color: color-mix(in oklab, var(--ap-tc) var(--ap-ink-mix), var(--ap-ink)); background: color-mix(in oklab, var(--ap-tc) var(--ap-tint), var(--bg)); transition: background-color 150ms, color 150ms, box-shadow 150ms; }
.ap-tag i { width: 7px; height: 7px; border-radius: 9999px; background: var(--ap-tc); flex: none; }
.ap-tag-red { --ap-tc: var(--ap-red); } .ap-tag-orange { --ap-tc: var(--ap-orange); } .ap-tag-yellow { --ap-tc: var(--ap-yellow); } .ap-tag-green { --ap-tc: var(--ap-green); }
.ap-tag-blue { --ap-tc: var(--ap-blue); } .ap-tag-purple { --ap-tc: var(--ap-purple); } .ap-tag-gray { --ap-tc: var(--ap-gray); }

/* --- The finder of presets: the search, then the tags as filters (a pressed one in colour, the others outlined) ----- */
.ap-finder { display: grid; gap: 10px; min-width: 0; }
.ap-seek { position: relative; display: flex; align-items: center; min-width: 0; }
.ap-seek > .ico { position: absolute; left: 10px; width: 14px; height: 14px; color: var(--faint); pointer-events: none; }
.input.ap-search { padding-left: 32px; height: 32px; font-size: 13px; -webkit-appearance: none; appearance: none; }
.input.ap-search::placeholder { color: var(--faint); }
.ap-ftags { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-ftag { padding: 0; border: 0; background: none; border-radius: 9999px; cursor: pointer; }
.ap-ftag[aria-pressed="false"] .ap-tag { background: transparent; box-shadow: inset 0 0 0 1px var(--border); color: var(--muted); }
@media (hover: hover) { .ap-ftag[aria-pressed="false"]:hover .ap-tag { box-shadow: inset 0 0 0 1px var(--faint); color: var(--text); } }

/* --- The list of apps ------------------------------------------------------------------------------------------------ */
.ap-count { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--faint); }
.ap-tools { display: grid; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--border); }
.ap-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9999px; border: 1px solid var(--border); background: var(--bg); font-size: 12px; color: var(--muted); transition: color 150ms, border-color 150ms, background-color 150ms; }
.ap-pill i { width: 6px; height: 6px; border-radius: 9999px; background: var(--faint); }
.ap-pill.accent i { background: var(--accent); } .ap-pill.warning i { background: var(--warning); } .ap-pill.success i { background: var(--success); } .ap-pill.danger i { background: var(--danger); }
.ap-pill[aria-pressed="true"] { border-color: var(--text); color: var(--text); font-weight: 500; }
@media (hover: hover) { .ap-pill:hover { border-color: var(--faint); color: var(--text); } }
.ap-n { font-family: var(--mono); font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ap-pill[aria-pressed="true"] .ap-n { color: inherit; }
.ap-rows { display: grid; }
.ap-row:not([hidden]) ~ .ap-row { border-top: 1px solid var(--border); }
.ap-link { display: grid; grid-template-columns: 40px minmax(0, 1fr) 168px 112px; align-items: center; gap: 16px; padding: 16px 24px; min-height: 72px; transition: background-color 150ms; }
@media (hover: hover) { .ap-link:hover { background: var(--elev); } }
.ap-link:focus-visible { box-shadow: inset var(--ring); border-radius: 0; }
.ap-who { min-width: 0; display: grid; gap: 2px; }
.ap-title { font-size: 14px; line-height: 1.25; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-sub { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-mid { min-width: 0; display: grid; gap: 6px; }
.ap-mid-t { font-size: 11px; line-height: 1.25; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ap-mid-t.warn { color: var(--warning); } .ap-mid-t.bad { color: var(--danger); }
.ap-state { display: grid; justify-items: end; gap: 6px; min-width: 0; }
.ap-time { font-size: 11px; color: var(--faint); white-space: nowrap; }
.ap-none { display: grid; justify-items: start; gap: 10px; padding: 28px 24px; }
.ap-none-t { font-size: 13px; color: var(--muted); }
.ap-foot { padding: 12px 24px; border-top: 1px solid var(--border); font-size: 11px; color: var(--faint); }
.ap-empty { justify-items: start; gap: 8px; }

/* The seven segments of an app's stages, the one in work breathing. */
.ap-segbar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; height: 4px; }
.ap-seg { border-radius: 9999px; background: var(--border); }
.ap-seg.done { background: var(--accent); } .ap-seg.wait { background: var(--warning); } .ap-seg.bad { background: var(--danger); }
.ap-seg.now { background: var(--accent); opacity: 0.55; }
@media (prefers-reduced-motion: no-preference) { .ap-seg.now { animation: ap-breathe 2400ms ease-in-out infinite; } .ap-ring { animation: ap-spin 900ms linear infinite; } }
@keyframes ap-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes ap-spin { to { transform: rotate(360deg); } }

/* An app's icon: its picture, a ring while it is made, a quiet tile otherwise. */
.ap-icon { position: relative; width: 40px; height: 40px; flex: none; border-radius: 22.37%; overflow: hidden; display: grid; place-items: center; background: var(--elev); color: var(--faint); }
.ap-icon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
.ap-icon.none { background: var(--bg); } .ap-icon.none::after { box-shadow: inset 0 0 0 1px var(--border); }
.ap-icon.lg { width: 56px; height: 56px; }
.ap-ring { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--muted); }

/* --- An app's page --------------------------------------------------------------------------------------------------- */
.ap-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.ap-page > * { min-width: 0; }
.ap-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; }
.ap-save { display: none; }
.ap-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); background: var(--success-soft); }
.ap-done-text { display: grid; gap: 4px; min-width: 0; }
.ap-done-title { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.ap-done-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ap-fail, .ap-quiet { align-items: center; }
.ap-fail b, .ap-quiet b { font-weight: 500; }
.banner.ap-quiet { border-color: var(--border); background: var(--elev); }
.ap-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.ap-hero-main { flex: 1 1 220px; display: grid; gap: 6px; justify-items: start; min-width: 0; }
.ap-hero-title { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; overflow-wrap: anywhere; }
.ap-hero-meta { font-size: 12px; color: var(--muted); }
.ap-hero-side { display: grid; justify-items: end; gap: 4px; }
.ap-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.ap-stations { list-style: none; margin: 0; padding: 12px 24px 16px; display: grid; }
.ap-station { display: grid; grid-template-columns: 20px minmax(0, 96px) minmax(0, 1fr); align-items: center; gap: 12px; padding: 8px 0; font-size: 13px; }
.ap-station + .ap-station { border-top: 1px solid var(--border-soft); }
.ap-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border); justify-self: center; }
.ap-station.done .ap-dot { background: var(--accent); border-color: var(--accent); }
.ap-station.now .ap-dot { border-color: var(--accent); background: var(--accent-soft); }
.ap-station.wait .ap-dot { background: var(--warning); border-color: var(--warning); }
.ap-station.bad .ap-dot { background: var(--danger); border-color: var(--danger); }
.ap-station.held .ap-dot { border-color: var(--muted); }
.ap-station-name { font-weight: 500; }
.ap-station.todo .ap-station-name { color: var(--faint); font-weight: 400; }
.ap-station-hint { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ap-station.now .ap-station-hint { color: var(--accent); } .ap-station.wait .ap-station-hint { color: var(--warning); } .ap-station.bad .ap-station-hint { color: var(--danger); }
@media (prefers-reduced-motion: no-preference) { .ap-station.now .ap-dot { animation: ap-breathe 2400ms ease-in-out infinite; } }
/* The looks of a pick, each with its first screen and Choose. */
.ap-looks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ap-look { display: grid; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--bg); transition: border-color 150ms; }
@media (hover: hover) { .ap-look:hover { border-color: var(--faint); } }
.ap-look-shot { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--elev); overflow: hidden; }
.ap-look-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-look-body { display: grid; gap: 10px; padding: 12px 14px 14px; justify-items: start; }
.ap-look-name { font-size: 14px; font-weight: 500; }
.ap-more { display: grid; gap: 6px; }
.ap-more .actions .input { flex: 1 1 220px; height: 32px; font-size: 13px; }
/* What a stage of Step by step made: its pictures as they are (a screen, a style card, a picture of the art), each at
   one height, in a strip that scrolls. */
.ap-made { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.ap-made-shot { position: relative; flex: none; display: grid; place-items: center; height: 220px; min-width: 72px; border-radius: 8px; overflow: hidden; background: var(--elev); }
.ap-made-shot img { display: block; width: auto; height: 100%; max-width: 420px; object-fit: contain; }
.ap-made-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hair); pointer-events: none; }
/* The store set's screenshots, the video. */
.ap-shots { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: thin; }
.ap-shot { flex: none; width: 96px; aspect-ratio: 1206 / 2622; border-radius: 10px; overflow: hidden; background: var(--elev); }
.ap-shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.input.ap-select { width: auto; max-width: 220px; height: 32px; font-size: 12px; }
/* New screenshots on their way: the turning ring and the line that says so. */
.ap-making { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.ap-making .ap-ring { flex: none; width: 14px; height: 14px; }
.ap-video { display: block; max-width: 100%; max-height: 520px; border-radius: 10px; background: #000; }
/* Send: a row a company. */
.ap-sends { display: grid; }
.ap-send { min-height: 64px; }
.ap-send > .ico { color: var(--faint); }
.ap-sends .ap-send + .ap-send { border-top: 1px solid var(--border); }
/* Request changes and the changes that wait. */
.ap-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ap-edits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ap-edits li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-width: 0; }
.ap-edits li .grow { overflow-wrap: anywhere; }
.ap-kv { margin: 0; display: grid; padding: 6px 0 10px; }
.ap-kv > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 8px 24px; font-size: 13px; }
.ap-kv dt { font-size: 12px; color: var(--faint); } .ap-kv dd { margin: 0; overflow-wrap: anywhere; }

/* --- New app: the one line ----------------------------------------------------------------------------------------------- */
.ap-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ap-h1 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.ap-lede { margin-top: 4px; font-size: 12px; color: var(--muted); }
.ap-prompt { position: relative; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); box-shadow: var(--shadow); transition: border-color 150ms, box-shadow 150ms; }
.ap-prompt:focus-within { border-color: var(--muted); }
.ap-line { display: block; width: 100%; min-height: 76px; resize: none; padding: 16px 18px 8px; border: 0; outline: none; background: transparent; font-size: 16px; line-height: 1.5; color: var(--text); }
.ap-line::placeholder { color: var(--faint); }
.ap-line:focus-visible { box-shadow: none; }
.ap-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px 10px 12px; }
.ap-anchor { position: relative; display: inline-flex; }
.ap-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 9999px; border: 1px solid var(--border); background: var(--bg); font-size: 12px; color: var(--muted); white-space: nowrap; transition: color 150ms, border-color 150ms, background-color 150ms; }
.ap-chip b { font-weight: 500; color: var(--text); }
.ap-chip .ico { width: 12px; height: 12px; }
@media (hover: hover) { .ap-chip:hover { border-color: var(--faint); color: var(--text); } }
.ap-chip[aria-expanded="true"] { border-color: var(--muted); color: var(--text); }
.ap-chip.on, .ap-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ap-chip.warn { border-color: color-mix(in oklab, var(--warning) 45%, transparent); background: var(--warning-soft); color: var(--warning); }
.ap-chip.warn b { color: var(--warning); }
.ap-chip.flat { cursor: default; background: var(--elev); border-color: transparent; padding-right: 4px; }
.ap-create { margin-left: auto; height: 32px; padding: 0 12px; font-size: 12px; }
.ap-create .ico { width: 14px; height: 14px; }
.ap-like { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 12px 0; }
.ap-x { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: 0; border-radius: 9999px; background: none; color: var(--faint); transition: color 150ms, background-color 150ms; }
.ap-x .ico { width: 11px; height: 11px; }
@media (hover: hover) { .ap-x:hover { color: var(--text); background: var(--bg); } }
.ap-sum { font-size: 12px; color: var(--muted); margin-top: -10px; }
.ap-start { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ap-start .ap-kicker { margin-right: 6px; }
/* The list under a chip of the bar: a menu of its choices, the pressed one checked. */
.ap-pop { position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; min-width: 200px; max-width: min(320px, calc(100vw - 32px)); padding: 4px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); box-shadow: 0 12px 32px rgb(0 0 0 / 0.14); display: grid; gap: 2px; }
.ap-pop.wide { width: min(360px, calc(100vw - 32px)); padding: 10px; gap: 8px; }
@media (prefers-reduced-motion: no-preference) { .ap-pop { animation: ap-in 180ms ease-out; } }
@keyframes ap-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.ap-pop-list { display: grid; gap: 2px; max-height: 320px; overflow-y: auto; }
.ap-pop-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 10px; border: 0; border-radius: 6px; background: none; font-size: 13px; text-align: left; color: var(--text); transition: background-color 150ms; }
@media (hover: hover) { .ap-pop-item:hover { background: var(--elev); } }
.ap-pop-meta { font-size: 11px; color: var(--faint); white-space: nowrap; }
.ap-pop-check { display: inline-flex; color: var(--muted); } .ap-pop-check .ico { width: 12px; height: 12px; }
.ap-pop-check.off { visibility: hidden; }
.ap-pop-title { padding: 6px 10px 2px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.ap-pop-none { padding: 6px 10px; font-size: 12px; color: var(--faint); }
/* More, and the form: groups of fields, each with where its value comes from. */
.ap-group { display: grid; gap: 16px; padding-bottom: 16px; }
.ap-group + .ap-group { padding-top: 16px; border-top: 1px solid var(--border-soft); }
.ap-group-head { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.ap-field { display: grid; gap: 6px; min-width: 0; }
.ap-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.ap-mark { font-size: 11px; color: var(--faint); }
.ap-mark.locked { color: var(--muted); }
.ap-reset { padding: 0; border: 0; background: none; font-size: 11px; color: var(--accent); }
@media (hover: hover) { .ap-reset:hover { text-decoration: underline; } }
.ap-hint { font-size: 11px; color: var(--faint); }
.ap-value { font-size: 13px; }
.ap-stack { display: grid; gap: 10px; min-width: 0; }
.ap-ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.ap-switches { display: grid; gap: 8px; }
.ap-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; max-width: 360px; }
.ap-switch-row.off span:first-child { color: var(--faint); }
.ap-switch { position: relative; width: 36px; height: 20px; flex: none; padding: 0; border: 0; border-radius: 9999px; background: var(--border); transition: background-color 150ms; }
.ap-switch span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); transition: transform 150ms; }
.ap-switch[aria-checked="true"] { background: var(--accent); }
.ap-switch[aria-checked="true"] span { transform: translateX(16px); }
.ap-switch:disabled { opacity: 0.5; cursor: default; }
.ap-pics { display: flex; flex-wrap: wrap; gap: 8px; }
/* A picture's chooser: the browser's file field, hidden, behind a button of the page's own words. */
.ap-file { position: relative; justify-self: start; cursor: pointer; }
.ap-file:focus-within { box-shadow: var(--shadow-focus); }
.ap-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ap-pic { position: relative; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--elev); }
.ap-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ap-pic-x { position: absolute; top: 2px; right: 2px; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid var(--border); border-radius: 9999px; background: var(--bg); color: var(--muted); }
.ap-pic-x .ico { width: 9px; height: 9px; }

/* --- New app: the admin's switch, the gallery, the wizard and the form -------------------------------------------------- */
.ap-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--elev); }
.ap-seg-opt { height: 28px; padding: 0 12px; border: 0; border-radius: 6px; background: none; font-size: 12px; color: var(--muted); white-space: nowrap; transition: color 150ms, background-color 150ms; }
.ap-seg-opt[aria-checked="true"] { background: var(--bg); color: var(--text); font-weight: 500; box-shadow: var(--shadow); }
.ap-pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ap-pcard { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); text-align: left; transition: border-color 150ms, background-color 150ms; }
@media (hover: hover) { .ap-pcard:hover { border-color: var(--faint); } }
.ap-pcard.on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 4%, var(--bg)); }
.ap-pcard-name { font-size: 14px; font-weight: 500; }
.ap-pcard-sub { font-size: 12px; color: var(--muted); }
.ap-fdy { margin: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px 12px; font-size: 13px; }
.ap-fdy dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.ap-fdy dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ap-about { white-space: pre-line; color: var(--muted); }
.ap-foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border); }
.ap-stepper { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ap-stepper li { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.ap-stepper li.on { color: var(--text); } .ap-stepper li.done { color: var(--muted); }
.ap-step-n { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 9999px; border: 1px solid var(--border); font-family: var(--mono); font-size: 10px; }
.ap-stepper li.on .ap-step-n { border-color: var(--text); background: var(--text); color: var(--bg); }
.ap-stepper li.done .ap-step-n { border-color: var(--accent); background: var(--accent); color: var(--accent-fg); }
.ap-radios { display: grid; gap: 6px; }
.ap-radio { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); text-align: left; transition: border-color 150ms, background-color 150ms; }
.ap-radio[aria-checked="true"] { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 4%, var(--bg)); }
.ap-radio-dot { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 1px solid var(--faint); }
.ap-radio[aria-checked="true"] .ap-radio-dot { border: 4px solid var(--accent); }
.ap-sec { display: grid; gap: 16px; padding-bottom: 20px; }
.ap-sec + .ap-sec { padding-top: 20px; border-top: 1px solid var(--border-soft); }
.ap-sec-head { display: flex; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 500; }
.ap-sec-n { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--faint); font-weight: 400; }
.ap-form .ap-foot-row { margin: 0 -24px -20px; }
.ap-required { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }

/* --- Presets: the cards, a preset's page and its form ---------------------------------------------------------------------- */
a.ap-pcard:focus-visible { box-shadow: var(--ring); }
.ap-facts { display: flex; flex-wrap: wrap; gap: 4px; }
.ap-fact { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 4px; background: var(--elev); font-size: 11px; color: var(--muted); white-space: nowrap; }
.ap-pcard-foot { margin-top: auto; font-size: 11px; color: var(--faint); }
.ap-pic.big { width: 96px; height: 96px; }
.ap-pad { padding: 0 24px 16px; }
.ap-tags-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ap-tag-new { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border: 1px dashed var(--border); border-radius: 9999px; background: none; font-size: 11px; color: var(--muted); transition: color 150ms, border-color 150ms; }
.ap-tag-new .ico { width: 11px; height: 11px; }
@media (hover: hover) { .ap-tag-new:hover { color: var(--text); border-color: var(--faint); } }
.ap-tag-form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ap-tag-form .input { width: 180px; height: 32px; font-size: 13px; }
.ap-colors { display: inline-flex; align-items: center; gap: 8px; }
.ap-color { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 9999px; background: var(--ap-tc); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text) 16%, transparent); transition: box-shadow 150ms; }
.ap-color[aria-checked="true"] { box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--text) 16%, transparent), 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.ap-lock { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); cursor: pointer; }
.ap-lock input { width: 14px; height: 14px; margin: 0; accent-color: var(--accent); }
.ap-tick-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
/* A question the preset's kinds fix: its value, read only, and the word that says so. */
.ap-fixed { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; }

/* --- Phones ---------------------------------------------------------------------------------------------------------------- */
@media (max-width: 800px) {
  .ap-tools { padding: 14px 16px; }
  .ap-link { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 14px 16px; }
  .ap-link > .ap-mid { display: none; }
  .ap-hero { padding: 16px; }
  .ap-stations { padding: 8px 16px 12px; }
  .ap-kv > div { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding-inline: 16px; }
  .ap-looks, .ap-pcards { grid-template-columns: minmax(0, 1fr); }
  .ap-made-shot { height: 160px; }
  .ap-made-shot img { max-width: 280px; }
  .ap-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-foot-row { padding: 12px 16px; }
  .ap-form .ap-foot-row { margin: 0 -16px -16px; }
  .ap-done { padding: 16px; }
  /* A list under a chip spans the line's box, whichever chip it is under. */
  .ap-anchor { position: static; }
  .ap-pop, .ap-pop.wide { left: 8px; right: 8px; width: auto; max-width: none; }
}

/* --- The icons this part adds: mask images, as console/app.css draws its own -------------------------------------------- */
.i-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='9' r='5.5'/%3E%3Cpath d='M13 13l3.5 3.5'/%3E%3C/svg%3E"); }
.i-plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 4v12M4 10h12'/%3E%3C/svg%3E"); }
.i-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8'/%3E%3C/svg%3E"); }
.i-close { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5l10 10M15 5L5 15'/%3E%3C/svg%3E"); }
.i-down { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 8l4.5 4.5L14.5 8'/%3E%3C/svg%3E"); }
.i-layers { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3l7 4-7 4-7-4z'/%3E%3Cpath d='M3 11l7 4 7-4'/%3E%3C/svg%3E"); }
.i-send { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 3L8.5 11.5'/%3E%3Cpath d='M17 3l-5.5 14-3-5.5L3 8.5z'/%3E%3C/svg%3E"); }
