/* The AI page (owner, 2026-12-02: mock-up v1 of the page,
 * https://claude.ai/artifact/Mzq4qpSC7UhCC6CWyaZDCx).
 *
 * Loaded only by templates/public/ai.html, after site.css, whose tokens and
 * shared parts (.wrap, .sec, .h1/.h2/.h3, .lead, .head, .btn, .tag, .frame,
 * .winbar, .checks, .link, .faq, .page-hero) it builds on. The pictures are
 * small pieces of the app in the app's own look
 * (templates/public/_ai_parts.html); what moves them is static/js/ai.js.
 * The small app pieces other pages also draw (.job-ic, .kicker, .pointer,
 * .subnav, .fb, .cols3...) are written out here again, because this page
 * loads neither home.css nor features.css.
 *
 * The rule from motion.css holds: the served markup is the finished page.
 * A "before" state is written only under `.motion` (the visitor accepts
 * motion) or under a state ai.js itself sets (`is-live`, `is-watching`,
 * `play`, `data-state` other than the served "done", an agent without
 * `fin`), so a page whose script never ran hides nothing. Loops run only
 * inside `.is-live`: on screen, tab visible.
 */

:root { --ai-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

/* ── hero: the promise beside a supplier's sheet turned into drafts ── */
.ai-hero .h1 .soft-word { color: var(--blue); }
.ai-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.ai-pic { min-width: 0; width: 100%; max-width: 580px; justify-self: center; }
.ai-hero-pic { box-shadow: var(--shadow); }
.promise { display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 22px; padding: 10px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--green) 28%, var(--line)); background: var(--green-tint); font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.promise .ic { width: 17px; height: 17px; color: var(--green); margin-top: 2px; }
.ai-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
@media (max-width: 1023px) {
  .ai-copy { align-items: center; text-align: center; }
  .ai-cta { justify-content: center; }
}

/* small app pieces */
.sc-pad { padding: 16px; display: grid; gap: 12px; font-size: 13.5px; line-height: 1.45; }
.winbar .tag { margin-left: auto; font-size: 11.5px; padding: 1px 9px 1px 8px; }
.winbar .tag span { margin-left: 0; }
.job-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel); flex: none; }
.job-ic .ic { width: 16px; height: 16px; }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.kicker b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--panel); }
.kicker .ic { width: 16px; height: 16px; }
.bubble { justify-self: end; max-width: 88%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: var(--ink); color: var(--on-ink); font-size: 13px; line-height: 1.45; }
.file { display: inline-flex; align-items: center; gap: 8px; justify-self: end; padding: 5px 10px 5px 8px; border-radius: 9px; border: 1px solid var(--line); font-family: var(--ai-mono); font-size: 11.5px; color: var(--muted); }
.file i { position: relative; width: 16px; height: 18px; border-radius: 3px; background: #1f7a4d; flex: none; }
.file i::after { content: ""; position: absolute; left: 4px; right: 4px; top: 5px; height: 8px; background: repeating-linear-gradient(#ffffff 0 1px, transparent 1px 3px); opacity: .8; }
.pointer { position: absolute; width: 22px; height: 22px; opacity: 0; transform: translate(10px, -10px); transition: transform .7s cubic-bezier(.3, .7, .2, 1), opacity .3s; pointer-events: none; z-index: 3; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
[data-state="ready"] > .pointer { opacity: 1; transform: translate(0, -22px); }
[data-state="press"] > .pointer { opacity: 1; transform: translate(0, -22px) scale(.86); }

/* A picture with a person's click in it: the piece for the state it is not
   in stays out. Served "done"; ai.js walks ready, press, done. */
[data-ai-loop] [data-on] { display: none; }
[data-ai-loop]:not([data-state="done"]) [data-on="ready"], [data-ai-loop][data-state="done"] [data-on="done"] { display: inline-flex; }
[data-ai-loop] .btn { pointer-events: none; }
[data-ai-loop][data-state="press"] .btn { transform: scale(.97); background: var(--ink-2); }
.act { display: grid; height: 44px; }
.act > [data-on] { width: 100%; height: 100%; }
.okline { align-items: center; justify-content: center; gap: 8px; border-radius: 999px; background: var(--green-tint); font-weight: 600; font-size: 14px; }
.okline .ic { color: var(--green); stroke-width: 2.4; width: 16px; height: 16px; }

/* the hero's picture */
.hs { position: relative; }
.sheet-box { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sheet-t { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.sheet-t th { font-weight: 600; color: var(--muted); text-align: left; padding: 6px 8px; background: var(--soft); border-bottom: 1px solid var(--line); }
.sheet-t td { padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet-t tr:last-child td { border-bottom: 0; }
.sheet-t td:first-child { white-space: normal; }
.sheet-t .gap { background: var(--orange-tint); color: var(--orange); font-weight: 600; }
.work { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.work b { font-weight: 600; color: var(--text); }
.work .bar { position: relative; flex: 1; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.work .bar i { position: absolute; inset: 0; background: var(--blue); transform-origin: 0 0; transition: transform 1.4s cubic-bezier(.3, .7, .2, 1); }
.drafts { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.draft { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-bottom: 1px solid var(--line); min-width: 0; font-size: 13px; transition: background-color .4s, opacity .4s, transform .45s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * .18s); }
.draft:last-child { border-bottom: 0; }
.draft .job-ic { width: 28px; height: 28px; border-radius: 8px; }
.draft .job-ic .ic { width: 14px; height: 14px; }
.draft > span:nth-child(2) { min-width: 0; flex: 1; }
.draft b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.draft small { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 11.5px; }
.draft .chs { display: flex; gap: 4px; flex: none; }
.draft .chs em { font-style: normal; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--panel); color: var(--muted); transition: background-color .35s, color .35s; }
.hs[data-state="done"] .draft.g { background: var(--green-tint); }
.hs[data-state="done"] .draft.g .chs em { background: var(--ink); color: var(--on-ink); }
.motion .hs[data-state="read"] .draft { opacity: 0; transform: translateY(6px); }
.motion .hs[data-state="read"] .work .bar i { transform: scaleX(.15); }
.hs .pointer { right: 16%; bottom: 40px; }
.gate { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); }
.gate .ic { width: 14px; height: 14px; }
@media (max-width: 480px) { .draft { flex-wrap: wrap; } .draft > span:nth-child(2) { flex-basis: calc(100% - 38px); } .draft .chs { margin-left: 38px; } }

/* ── the page's own menu: stays under the header and marks the part being read ── */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 74px); z-index: 30; display: flex; justify-content: center; pointer-events: none; margin-top: 8px; padding-inline: var(--gutter); }
.subnav ul { pointer-events: auto; display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: var(--shadow); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .18s, background-color .25s; }
.subnav a:hover { color: var(--text); }
.subnav a.on { background: var(--ink); color: var(--on-ink); }
@media (max-width: 639px) {
  .subnav { top: calc(env(safe-area-inset-top, 0px) + 66px); }
  .subnav a { padding: 6px 12px; font-size: 13.5px; }
}
.anchor { scroll-margin-top: 132px; }

/* ── jobs: today and with Prekio, one sheet ── */
.jobs { margin-top: 46px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--card); }
.jobs-head, .jrow { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; padding-inline: 26px; }
.jobs-head { padding-block: 12px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--muted); }
.jobs-head span:last-child { color: var(--blue); }
.jrow { padding-block: 20px; border-bottom: 1px solid var(--line); align-items: start; transition: background-color .2s; }
.jrow:last-child { border-bottom: 0; }
.jrow:hover { background: var(--soft); }
.jrow h3 { display: flex; gap: 12px; align-items: flex-start; font-family: var(--display); font-weight: 600; font-size: 1.04rem; line-height: 1.35; letter-spacing: -.01em; }
.jrow h3 .job-ic { margin-top: -4px; }
.jrow .pain { font-size: 14.5px; color: var(--muted); }
.jrow .gain { display: flex; gap: 9px; font-size: 14.5px; font-weight: 500; }
.jrow .gain > .ic { width: 16px; height: 16px; color: var(--blue); margin-top: 3px; stroke-width: 2.2; }
.jrow small { display: none; font-size: 11.5px; font-weight: 600; color: var(--faint); margin-bottom: 2px; }
@media (max-width: 820px) {
  .jobs-head { display: none; }
  .jrow { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px; }
  .jrow small { display: block; }
  .jrow .gain { display: block; }
  .jrow .gain > .ic { display: none; }
  .jrow .gain small { color: var(--blue); }
}

/* ── copy beside a working screen ── */
.fb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; }
.fb-copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; min-width: 0; }
.fb-copy .h2 { font-size: clamp(1.65rem, 2.9vw, 2.4rem); }
.fb-scene { min-width: 0; width: 100%; max-width: 560px; justify-self: center; }
.fb-scene .frame { box-shadow: var(--shadow); }
@media (min-width: 960px) {
  .fb { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); column-gap: 76px; }
  .fb.flip .fb-copy { order: 2; }
  .fb .fb-scene { justify-self: end; }
  .fb.flip .fb-scene { justify-self: start; }
}

/* the assistant */
.chat { position: relative; }
.ansr { display: grid; gap: 8px; max-width: 94%; padding: 12px; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; background: var(--soft); font-size: 13px; }
.ansr > b { font-weight: 600; }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 12.5px; }
.brow > span:nth-child(2) { font-variant-numeric: tabular-nums; font-weight: 600; }
.brow .barl { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--line); }
.brow .barl i { display: block; height: 100%; border-radius: 3px; background: var(--blue); width: calc(var(--v) * 1%); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.motion .chat.is-watching:not(.play) .barl i { width: 0; }
.brow .warn { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; font-size: 11.5px; color: var(--orange); font-weight: 500; }
.csv { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; background: var(--card); }
.csv .ic { width: 13px; height: 13px; }
.prop { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); transition: border-color .4s; }
.prop-h { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--muted); }
.prop-h .ic { width: 14px; height: 14px; }
.prop-b { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px; font-size: 13px; }
.prop-b .fld { color: var(--muted); font-size: 12px; }
.prop-b s { color: var(--faint); }
.prop-b b { font-weight: 600; transition: color .4s; }
.prop-b .ic { width: 14px; height: 14px; color: var(--faint); }
.prop-f { display: flex; gap: 6px; padding: 0 12px 12px; align-items: center; min-height: 38px; }
.prop-f .pill { padding: 4px 12px; border-radius: 999px; background: var(--panel); font-size: 12px; font-weight: 600; transition: transform .15s, background-color .3s; }
.prop-f .pill.go { background: var(--ink); color: var(--on-ink); }
.prop-f .tag { margin-left: auto; font-size: 11px; padding: 1px 8px 1px 7px; background: var(--green-tint); }
.prop-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.prop-note .ic { width: 13px; height: 13px; }
.chat[data-state="press"] .pill.go { transform: scale(.92); background: var(--ink-2); }
.chat[data-state="done"] .prop { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.chat[data-state="done"] .prop-b b { color: var(--green); }
.chat .pointer { left: 58px; bottom: 30px; }

/* your own agent: its tool calls one by one */
.agent { position: relative; }
.addr { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px dashed var(--line-2); border-radius: 10px; font-family: var(--ai-mono); font-size: 11.5px; color: var(--muted); min-width: 0; }
.addr .ic { width: 14px; height: 14px; color: var(--green); }
.addr span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calls { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.call { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; transition: opacity .4s, background-color .4s; }
.call:last-child { border-bottom: 0; }
.call > i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, border-color .3s; }
.call > i svg { width: 10px; height: 10px; stroke: #ffffff; stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .3s; }
.call.ok > i { background: var(--green); border-color: var(--green); }
.call.ok > i svg { opacity: 1; }
.call.now { background: var(--blue-tint); }
.call.now > i { border-color: var(--blue); border-top-color: transparent; }
.is-live .call.now > i { animation: ai-spin .8s linear infinite; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
.call b { display: block; font-weight: 600; }
.call small { color: var(--muted); font-size: 11.5px; }
.call .tag { font-family: var(--ai-mono); font-size: 10.5px; padding: 1px 8px 1px 7px; }
.motion .agent:not(.fin) .call:not(.ok):not(.now) { opacity: .38; }
.result { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--orange-tint); border: 1px solid color-mix(in srgb, var(--orange) 25%, var(--line)); transition: opacity .4s; }
.result .big { font-family: var(--display); font-weight: 700; font-size: 2rem; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.result b { display: block; font-weight: 600; font-size: 13.5px; }
.result small { font-size: 12px; color: var(--muted); }
.motion .agent:not(.fin) .result { opacity: .25; }

/* what the agent can: three columns; then three steps */
.sub-t { margin-top: 64px; text-align: center; font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--line); }
.col { padding: 28px 28px 6px 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.col + .col { padding-left: 28px; border-left: 1px solid var(--line); }
.col p { font-size: 15px; color: var(--muted); }
.col > .tag { align-self: flex-start; }
.dots { display: grid; gap: 9px; }
.dots li { display: flex; gap: 9px; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.dots li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); flex: none; margin-top: 9px; }
@media (max-width: 820px) {
  .cols3 { grid-template-columns: minmax(0, 1fr); }
  .col, .col + .col { padding: 24px 0 8px; border-left: 0; }
  .col + .col { border-top: 1px solid var(--line); }
}
.setup { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.setup li { position: relative; padding: 22px 22px 22px 66px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); min-width: 0; }
.setup .n { position: absolute; left: 20px; top: 20px; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 14px; }
.setup b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 5px; }
.setup p { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .setup { grid-template-columns: minmax(0, 1fr); } }

/* ── you approve: the navy part of the page ── */
.ctl { background: var(--band); color: #ffffff; border-block: 1px solid var(--band-2); }
.ctl .h2 { color: #ffffff; }
.ctl .lead { color: rgba(255, 255, 255, .72); }
.ctl .head .tag { background: rgba(255, 255, 255, .1); color: #ffffff; }
.ctl .head .tag .dot { background: #7cc0ff; }
.ctl .frame-in { color: var(--text); }
.ctl .frame { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .6); }
.ctl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 52px; align-items: start; }
.ctl-pic { min-width: 0; }
@media (min-width: 960px) { .ctl-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; } }
.pts { display: grid; border-top: 1px solid rgba(255, 255, 255, .12); }
.pts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pts li > span { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; color: #9cc9f5; }
.pts .ic { width: 16px; height: 16px; }
.pts b { font-weight: 600; font-size: 15.5px; }
.pts p { font-size: 14.5px; color: rgba(255, 255, 255, .66); line-height: 1.55; }

/* the approval list */
.triage { position: relative; }
.q-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.q-chips .tag { font-size: 12px; }
.q-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; transition: border-color .4s, background-color .4s; }
.q-item .box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background-color .25s, border-color .25s; }
.q-item .box svg { width: 10px; height: 10px; stroke: var(--on-ink); stroke-width: 3.4; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.q-item b { font-weight: 600; font-size: 13px; display: flex; gap: 7px; align-items: center; min-width: 0; }
.q-item p { grid-column: 2 / -1; font-size: 12px; color: var(--muted); }
.q-item .tag { font-size: 11px; padding: 1px 8px 1px 7px; background: var(--green-tint); }
.triage:not([data-state="ready0"]) .q-item.g .box { background: var(--ink); border-color: var(--ink); }
.triage:not([data-state="ready0"]) .q-item.g .box svg { opacity: 1; }
.triage[data-state="done"] .q-item.g { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); background: var(--green-tint); }
.triage[data-state="done"] .q-item.g .box { background: var(--green); border-color: var(--green); }
.triage[data-state="done"] .q-item.g .box svg { stroke: #ffffff; }
.triage .pointer { right: 14%; bottom: 6px; }
.sel-line { font-size: 12px; color: var(--muted); }

/* what AI cannot do; the agent's rights */
.lim { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .12); }
@media (min-width: 900px) { .lim { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.lim > div { background: var(--band); padding: 26px 28px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.lim h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: #ffffff; }
.lim .sub { font-size: 14px; color: rgba(255, 255, 255, .6); }
.lim ul { display: grid; gap: 12px; }
.lim li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.lim li i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; background: rgba(240, 68, 56, .18); color: #fda29b; }
.lim li i .ic { width: 11px; height: 11px; stroke-width: 2.6; }
.lim .side { background: var(--band-2); }
.perm { display: grid; gap: 8px; }
.perm h4 { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .55); margin-top: 6px; }
.perm-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(255, 255, 255, .06); font-size: 13.5px; }
.perm-row .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.perm-row.can .ic { color: #75e0a7; }
.perm-row.no { color: rgba(255, 255, 255, .75); }
.perm-row.no .ic { color: #fda29b; }
.perm-row.no span { text-decoration: line-through; text-decoration-color: rgba(253, 162, 155, .7); }
.perm-row small { margin-left: auto; font-size: 11.5px; color: rgba(255, 255, 255, .5); white-space: nowrap; }
@media (max-width: 480px) {
  .perm-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; }
  .perm-row small { grid-column: 2; margin-left: 0; white-space: normal; }
}

/* ── access security ── */
.cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 52px; }
.cols4 .col { padding: 26px 24px 6px 0; gap: 12px; }
.cols4 .col + .col { padding-left: 24px; }
.cols4 .col p { font-size: 14.5px; }
.cols4 .kicker b { background: var(--blue-tint); color: var(--blue); }
@media (max-width: 1000px) {
  .cols4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols4 .col:nth-child(3) { padding-left: 0; border-left: 0; }
  .cols4 .col:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .cols4 { grid-template-columns: minmax(0, 1fr); }
  .cols4 .col, .cols4 .col + .col { padding: 22px 0 6px; border-left: 0; }
  .cols4 .col + .col { border-top: 1px solid var(--line); }
}
.eg { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; padding: clamp(22px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--card); }
@media (min-width: 960px) { .eg { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; } }
.eg-copy { display: grid; gap: 14px; min-width: 0; }
.eg-copy p { color: var(--muted); font-size: 15px; }
.eg-copy .link { color: var(--text); }
.flowd { display: grid; grid-template-columns: minmax(0, 1fr) minmax(70px, .55fr) minmax(0, .9fr); align-items: center; gap: 10px; min-width: 0; }
.sysbox { border: 1.5px solid var(--ink); border-radius: 16px; padding: 14px; display: grid; gap: 8px; background: var(--soft); min-width: 0; }
.sysbox > b { font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 7px; }
.sysbox > b .ic { width: 15px; height: 15px; }
.sysbox ul { display: grid; gap: 6px; }
.sysbox li { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 6px 9px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); }
.sysbox li .ic { width: 13px; height: 13px; color: var(--faint); }
.wires { display: grid; gap: 22px; }
.wire { position: relative; height: 2px; background: var(--line-2); }
.wire span { position: absolute; left: 50%; top: -22px; transform: translateX(-50%); font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.wire.back span { top: 8px; }
.wire::after { content: ""; position: absolute; top: -4px; right: 0; width: 8px; height: 8px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); }
.wire.back::after { right: auto; left: 0; transform: rotate(-135deg); }
.wire em { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: 0; }
.wire.back em { background: var(--green); }
.motion .is-live .wire em { animation: ai-packet 2.6s cubic-bezier(.5, 0, .5, 1) infinite; }
.motion .is-live .wire.back em { animation-delay: 1.3s; animation-direction: reverse; }
@keyframes ai-packet { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
.prov { border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 6px; text-align: center; min-width: 0; }
.prov b { font-size: 13px; font-weight: 600; }
.prov small { font-size: 11.5px; color: var(--muted); }
.sentnote { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 8px; }
.sentnote .tag { background: var(--blue-tint); white-space: normal; }
@media (max-width: 520px) {
  .flowd { grid-template-columns: minmax(0, 1fr); }
  .wires { transform: rotate(90deg); width: 70px; justify-self: center; margin: 24px 0; }
  .wire span { display: none; }
}

/* ── technical details ── */
.dev-sec { padding-top: 0; }
.dev { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: start; padding: clamp(22px, 3.5vw, 36px); border: 1px solid var(--line); border-radius: 24px; background: var(--soft); }
@media (min-width: 900px) { .dev { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 48px; } }
.dev-copy { display: grid; gap: 12px; align-content: start; min-width: 0; }
.dev-copy .kicker { font-size: 1.05rem; font-family: var(--display); }
.dev-copy .kicker b { background: var(--card); border: 1px solid var(--line); }
.dev-copy p { color: var(--muted); font-size: 15px; }
.dev-copy .link { color: var(--text); }
.dev-list { font-family: var(--ai-mono); font-size: 12.5px; line-height: 1.85; border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 16px 18px; min-width: 0; }
.dev-list li { display: flex; gap: 10px; overflow-wrap: anywhere; }
.dev-list li::before { content: "›"; color: var(--blue); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .pointer, .subnav a, .draft, .work .bar i, .brow .barl i, .call, .call > i, .q-item, .result, .prop { transition: none; }
}
