/* My AI Workflow page. Reuses the home tokens from style.css. */
/* Same intro spacing as home: the back link sits above, so the portrait lands where it does on home. */
.wfp-back { display: inline-block; height: 22px; margin-bottom: 28px; color: var(--muted); text-decoration: none; }
.wfp .intro { padding-top: calc(96px - 50px); }
@media (max-width: 600px) { .wfp .intro { padding-top: 24px; } }

/* My setup: one box, one row per piece. */
.wfp-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--ai-line); border-radius: 14px; background: var(--ai-line); }
.wfp-row { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--ai-panel); }
.wfp-row > img { width: 40px; height: 40px; object-fit: contain; }
.wfp-row h3 { font-weight: 550; }
.wfp-row p { color: var(--muted); }
.wfp-pixel { image-rendering: pixelated; }
/* KiwiOS spans the box: icon · text · subscription seats. */
.wfp-hero { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; }
.wfp-hero > img { width: 44px; height: 44px; flex-shrink: 0; align-self: flex-start; }
.wfp-seats { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.wfp-seats ul { display: grid; grid-template-columns: repeat(2, auto); gap: 6px; margin: 0; padding: 0; list-style: none; }
.wfp-seats li { display: flex; align-items: center; padding: 3px 9px 3px 4px; border-radius: 99px; background: var(--ai-line); color: var(--ink); font-size: 12.5px; line-height: 18px; font-variant-numeric: tabular-nums; }
.wfp-seats img { width: 18px; height: 18px; margin-right: 5px; border-radius: 5px; }
/* Only the × sits on the floor; the count stays centered. */
.wfp-seats i { align-self: flex-end; margin: 0 1px 3px 0; font-style: normal; font-size: 11px; line-height: 1; color: var(--muted); }
.wfp-seats span { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* My day: main icon · what the AI hands me, joined by one hairline.
   Every app icon is a full-bleed square tile; CSS gives them one iOS corner radius and one hairline. */
:root { --wf-red: #c8372d; --wf-amber: #b7791f; --wf-warn: #fbf1e3; --wf-skel: #dde3d9; --wf-arrow: #9aa196; }
@media (prefers-color-scheme: dark) {
  :root { --wf-red: #ff6b5f; --wf-amber: #f2c14e; --wf-warn: #2a2219; --wf-skel: #343832; --wf-arrow: #5c6259; }
}
.ap { flex-shrink: 0; width: 20px; height: 20px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--ai-line); object-fit: cover; }
.ap-s { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; }
.ap-me { border-radius: 50%; object-position: 45% 10%; }
.wfp-day { position: relative; margin: 0; padding: 0; list-style: none; }
.wfp-day > li { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 0 14px; padding: 12px 0; }
.wfp-day > li::before { content: ""; position: absolute; left: 17px; top: 0; bottom: 0; width: 1px; background: var(--ai-line); }
.wfp-day > li:first-child::before { top: 22px; }
.wfp-day > li:last-child::before { bottom: calc(100% - 22px); }
.ap-main { position: relative; z-index: 1; justify-self: center; width: 28px; height: 28px; box-shadow: 0 0 0 1px var(--ai-line), 0 0 0 4px var(--bg); }
.wfp-step { min-width: 0; }
.wfp-step h3 { font-weight: 550; }

/* Chips: the apps a step chains together, in order. */
.pipe { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.seg { display: inline-flex; align-items: center; gap: 4px; }
.arw { color: var(--wf-arrow); font-size: 12px; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px 2px 3px; border-radius: 99px; background: var(--ai-panel); box-shadow: inset 0 0 0 1px var(--ai-line); color: var(--muted); font-size: 12px; line-height: 20px; white-space: nowrap; }
.chip .ap:last-of-type { margin-right: 4px; }

/* Cards: a small picture of what the AI hands me. */
.wfp-step .card { margin: 10px 0 0; padding: 0; border: 1px solid var(--ai-line); border-radius: 12px; background: var(--ai-panel); font-size: 12.5px; line-height: 1.4; overflow: hidden; list-style: none; }
.wfp-step .card b { font-weight: 600; }
.wfp-step .good { color: var(--ai-live); }
.wfp-step .bad { color: var(--wf-red); }
.wfp-step .run { color: var(--wf-amber); }
.card .tag { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: var(--soft); color: var(--accent); font-size: 11px; white-space: nowrap; }
.card .tag.soft { background: var(--ai-line); color: var(--muted); }
.card .tag.warn { background: var(--wf-warn); color: var(--wf-amber); }
.card .ln { display: block; height: 6px; margin: 3px 0; border-radius: 3px; background: var(--wf-skel); }
.card .blur { filter: blur(3px); opacity: .8; }
.w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; }
.card .foot, .card .hd { padding: 6px 10px; color: var(--muted); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

.browser { max-width: 280px; }
.browser .bar { display: flex; align-items: center; gap: 5px; padding: 7px 9px; border-bottom: 1px solid var(--ai-line); }
.browser .bar > i { width: 7px; height: 7px; border-radius: 50%; background: var(--wf-skel); }
.browser .url { flex: 1; margin: 0 4px; padding: 1px 8px; border-radius: 6px; background: var(--bg); color: var(--muted); font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.browser .body { padding: 10px 12px 12px; }
.browser .row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font-size: 13px; }

.posts { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.posts figure { position: relative; flex-shrink: 0; margin: 0; }
.posts img { width: 84px; height: auto; border-radius: 8px; border: 1px solid var(--ai-line); opacity: .55; }
.posts .on img { opacity: 1; }
.posts span { position: absolute; top: 5px; left: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: rgba(0, 0, 0, .65); color: #fff; font: 600 10.5px/17px ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.posts .on span { background: var(--accent); color: var(--bg); }
.reply { display: inline-block; margin-top: 8px; padding: 4px 11px; border-radius: 14px 14px 4px 14px; background: var(--soft); color: var(--accent); font: 500 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }

.list { max-width: 340px; }
.list .item { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-top: 1px solid var(--ai-line); }
.list .item:first-child { border-top: 0; }
.pr-ic { flex-shrink: 0; width: 14px; height: 14px; color: var(--ai-live); }
.list .t { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.reviews { max-width: 330px; }
.rv { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--ai-line); }
.rv.flag { background: var(--wf-warn); }
.rv .lines { flex: 1; }
.stars { color: var(--wf-amber); font-size: 11px; letter-spacing: 1px; white-space: nowrap; }
.stars i { font-style: normal; color: var(--wf-skel); }
.ai-draft { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px 9px 30px; border-bottom: 1px solid var(--ai-line); background: color-mix(in srgb, var(--soft) 45%, transparent); }
.ai-draft .ap { margin-top: 1px; }
.ai-draft p { color: var(--ink); font-size: 12.5px; line-height: 1.45; }
.ai-draft .who { display: block; margin-bottom: 1px; color: var(--accent); font: 10.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; text-transform: uppercase; }
.caret { display: inline-block; width: 1.5px; height: 13px; margin-left: 2px; vertical-align: -2px; background: var(--accent); }

.board { max-width: 360px; }
.board .hd { display: flex; justify-content: space-between; border-bottom: 1px solid var(--ai-line); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.st { display: flex; align-items: center; gap: 8px; padding: 6px 10px; }
.st > span { display: flex; flex: 1; align-items: center; gap: 6px; }
.st > span .ap + .ap { margin-left: -2px; }
.st > b { font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.bad { box-shadow: 0 0 0 3px color-mix(in srgb, var(--wf-red) 20%, transparent); }
.dot.run { box-shadow: 0 0 0 3px color-mix(in srgb, var(--wf-amber) 18%, transparent); }
.why { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-top: 1px solid var(--ai-line); color: var(--muted); }

.wfp-step .lanes { max-width: 340px; padding: 8px 10px; }
.lane { display: flex; align-items: center; gap: 7px; padding: 3px 0; color: var(--muted); font: 11px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.lane span { min-width: 128px; }
.lane i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--ai-line), var(--accent)); }
.merge, .logline { display: flex; align-items: center; gap: 7px; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--ai-line); }
.logline { color: var(--muted); font-size: 11.5px; }

.wfp-step .night { max-width: 220px; padding: 8px 12px; color: var(--muted); font: 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }



.wfp-rules { margin: 0; padding: 0; list-style: none; }
.wfp-rules li { position: relative; padding: 6px 0 6px 18px; color: var(--muted); }
.wfp-rules li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.wfp .contact { margin-top: var(--section-space); }

@media (max-width: 600px) {
  .wfp-box { grid-template-columns: 1fr; }
  .wfp-row { flex-direction: row; align-items: flex-start; gap: 14px; }
  .wfp-row > img { flex-shrink: 0; }
  .wfp-hero { flex-wrap: wrap; }
  .wfp-hero > div:not(.wfp-seats) { flex: 1; min-width: 0; }
  .wfp-seats { flex-direction: row; align-items: center; justify-content: space-between; width: 100%; }
  .wfp-seats ul { grid-template-columns: repeat(4, auto); }
  .wfp-day > li { grid-template-columns: 30px 1fr; gap: 0 12px; }
  .wfp-day > li::before { left: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Opacity + transform only (GPU-cheap). */
  .wfp-day > li { animation: wfp-enter 650ms cubic-bezier(.22, 1, .36, 1) both; animation-delay: var(--enter-delay, 0ms); }
  .caret { animation: wfp-blink 1s steps(1) infinite; }
  .wfp-day > li:nth-child(1) { --enter-delay: 320ms; }
  .wfp-day > li:nth-child(2) { --enter-delay: 380ms; }
  .wfp-day > li:nth-child(3) { --enter-delay: 440ms; }
  .wfp-day > li:nth-child(4) { --enter-delay: 500ms; }
  .wfp-day > li:nth-child(5) { --enter-delay: 560ms; }
  .wfp-day > li:nth-child(6) { --enter-delay: 620ms; }
  .wfp-day > li:nth-child(n+7) { --enter-delay: 680ms; }
}
@keyframes wfp-enter { from { opacity: 0; transform: translateY(10px); } }
@keyframes wfp-blink { 50% { opacity: 0; } }

