/* "Send for approval" under a chat draft (approval-link.js; APPROVAL_LINK). Inside the draft card, under its buttons:
   one navy outline button, a panel on press, then one small card per link with its answer. Theme tokens only. */

.apl-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--navy-line, var(--line)); }
.apl-row { display: flex; flex-wrap: wrap; gap: 8px; }
/* The same white ground as the card's other outline buttons (design critic, 18 Oct). */
.apl-box .card-btn-navy { background: var(--surface); }
.apl-row[hidden] { display: none; }
.apl-box .card-btn:focus-visible, .apl-off:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
/* The fields' focus as the approval page's and the insertion order's: the border, and a soft ring (design critic). */
.apl-input, .apl-url { transition: border-color .16s var(--ease), box-shadow .16s var(--ease); }
.apl-input:focus-visible, .apl-url:focus-visible { outline: none; border-color: var(--focus-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus-ring) 20%, transparent); }
@media (prefers-reduced-motion: reduce) { .apl-input, .apl-url { transition: none; } }

.apl-panel, .apl-card { margin: 0 0 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.apl-h { margin: 0 0 6px; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.apl-p { margin: 0 0 12px; color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.apl-field { margin: 0 0 10px; }
.apl-field label { display: block; margin: 0 0 6px; color: var(--text-dim); font-size: 13.5px; font-weight: 500; }
.apl-optional { margin-left: 4px; color: var(--text-faint); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.apl-input, .apl-url { display: block; width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; }
.apl-url { font-size: 14px; color: var(--text-dim); background: var(--surface-2); text-overflow: ellipsis; }
.apl-fine { margin: 8px 0 0; color: var(--text-faint); font-size: 13px; line-height: 1.5; }
.apl-problem { margin: 10px 0 0; color: var(--danger); font-size: 14px; line-height: 1.5; }
.apl-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }

.apl-card-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.apl-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-faint); }
/* Drawn marks (approval-link.js MARKS): a font's ✎ was hairline-thin on the navy disc. The answered marks (filled
   discs) at 2.4, the waiting clock and the dash on their pale disc at 2. */
.apl-mark-icon { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.apl-card:not(.is-approved):not(.is-changes) .apl-mark-icon { stroke-width: 2; }
/* The tick a touch larger and heavier: at 16px it read lighter than the Bold Text title beside it (design critic). */
.apl-card.is-approved .apl-mark-icon { width: 18px; height: 18px; stroke-width: 2.6; }
.apl-card.is-approved .apl-mark { border: 0; background: var(--ok); color: var(--bg); }
.apl-card.is-changes .apl-mark { border: 0; background: var(--navy-fill); color: var(--on-navy); }
html[data-theme="dark"] .apl-card.is-changes .apl-mark { background: var(--navy-text); color: var(--bg); }
.apl-card-title { margin: 3px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.apl-card-line { margin: 2px 0 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.5; }
.apl-quote { margin: 12px 0 0; padding: 2px 0 2px 12px; border-left: 3px solid var(--line-strong); color: var(--text); font-size: 14.5px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.apl-share { margin-top: 12px; }
/* "Send for approval" once a link is out (approval-link.js settleOpener): the app's quiet button, its words in line with
   the card's edge and 8px nearer the card above (design critic, 20 Oct 2026: it floated; the 44px row stays). */
.apl-row .card-btn-quiet { padding-inline: 4px; margin: -8px 0 0 -4px; background: none; }
.apl-row:last-child .card-btn-quiet { margin-bottom: -8px; }
.apl-off { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--text-dim); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); cursor: pointer; }
.apl-off:hover { color: var(--text); }
.apl-off[aria-disabled="true"] { cursor: progress; opacity: .6; }
@media print { .apl-box { display: none !important; } }
