/* Nexus Autopilot demo — extends console-demo.css (#ocd shell) */
.apd-pattern { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.apd-pattern article { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 1.25rem 1.25rem 1rem; }
.apd-pattern .tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--auto); background: #ECECF7; padding: .2rem .55rem; border-radius: 4px; }
.apd-pattern h3 { margin: .7rem 0 .9rem; font-size: 1.1rem; color: var(--navy); }
.apd-pattern dl { margin: 0; display: grid; gap: .5rem; }
.apd-pattern dl div { display: grid; grid-template-columns: 72px 1fr; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; font-size: .875rem; }
.apd-pattern dt { font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--auto); padding-top: .2rem; }
.apd-pattern dd { margin: 0; color: var(--text); }
.apd-pattern em { color: #8a6d1f; font-size: .8rem; }
@media (max-width: 900px) { .apd-pattern { grid-template-columns: 1fr; } }


/* ---------- phone chat demo ---------- */
.apc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 3rem; align-items: start; margin-top: 2rem; }
.apc-try { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .75rem; }
.apc-try li { display: grid; grid-template-columns: 32px 1fr; gap: .85rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); transition: border-color .2s ease, background-color .2s ease; }
.apc-try li .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #ECECF7; color: var(--auto); font-weight: 700; font-size: .875rem; }
.apc-try li h3 { margin: 0 0 .2rem; font-size: 1rem; color: var(--navy); }
.apc-try li p { margin: 0; font-size: .9rem; color: var(--muted); }
.apc-try li.done { border-color: #B7DCC7; background: #F3FAF6; }
.apc-try li.done .n { background: #1D6B45; color: #fff; font-size: 0; }
.apc-try li.done .n::before { content: "\2713"; font-size: .95rem; }
.apc-try li.apc-more { border-style: dashed; background: transparent; }
.apc-try li.apc-more .n { font-size: 1.1rem; }
.apc-side-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; font-size: .8125rem; color: var(--muted); }

.apc-phone { position: relative; width: 100%; max-width: 380px; margin-inline: auto; aspect-ratio: 380 / 780; background: #0f1520; border-radius: 54px; padding: 12px; box-shadow: 0 40px 80px -40px rgba(23,43,77,.55), inset 0 0 0 2px #2a3342; }
.apc-screen { position: relative; height: 100%; border-radius: 43px; overflow: hidden; background: #F4F5F9; display: flex; flex-direction: column; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", var(--font, system-ui), sans-serif; }
.apc-island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 108px; height: 30px; border-radius: 20px; background: #0f1520; z-index: 3; }
.apc-status { display: flex; justify-content: space-between; align-items: center; padding: 15px 28px 0; height: 44px; font-size: .82rem; font-weight: 600; color: #111; flex: none; }
.apc-status .ic { display: flex; gap: 5px; align-items: center; }
.apc-status svg { width: 17px; height: 12px; }
.apc-head { display: flex; align-items: center; gap: .65rem; padding: .55rem .9rem .7rem; background: rgba(255,255,255,.92); border-bottom: 1px solid #E3E6EE; flex: none; }
.apc-head .back { color: var(--auto); font-size: 1.4rem; line-height: 1; }
.apc-av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #5658A3, #172B4D); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; letter-spacing: .02em; flex: none; }
.apc-head b { display: block; font-size: .95rem; color: #111; }
.apc-head div span { font-size: .72rem; color: #1D6B45; }
.apc-msgs { flex: 1; overflow-y: auto; padding: .8rem .75rem 1rem; display: flex; flex-direction: column; gap: .45rem; scroll-behavior: smooth; }
.apc-day { align-self: center; font-size: .68rem; color: #8A93A6; font-weight: 600; margin: .2rem 0 .3rem; }
.apc-row { display: flex; animation: apc-in .25s ease; }
.apc-row.me { justify-content: flex-end; }
.apc-b { max-width: 82%; padding: .55rem .8rem; border-radius: 18px; font-size: .86rem; line-height: 1.42; overflow-wrap: anywhere; }
.apc-row.bot .apc-b { background: #fff; color: #172033; border-bottom-left-radius: 6px; box-shadow: 0 1px 1px rgba(23,43,77,.06); }
.apc-row.me .apc-b { background: var(--auto); color: #fff; border-bottom-right-radius: 6px; }
.apc-b blockquote { margin: .45rem 0; padding: .45rem .6rem; border-left: 3px solid #C9CBE6; background: #F4F5FA; border-radius: 6px; font-size: .82rem; color: #333c4f; }
.apc-b blockquote.draft { border-left-color: var(--auto); background: #EEEEF8; }
.apc-note { display: block; font-size: .7rem; color: #8A93A6; margin-top: .2rem; }
.apc-card { margin: .45rem 0 .1rem; padding: .6rem .7rem; border: 1px solid #E3E6EE; border-radius: 12px; background: #FAFBFD; }
.apc-card b { display: block; font-size: .8rem; margin-bottom: .35rem; color: #172B4D; }
.apc-kv { display: flex; justify-content: space-between; font-size: .8rem; padding: .18rem 0; border-top: 1px dashed #E3E6EE; }
.apc-kv:first-of-type { border-top: 0; }
.apc-kv span { color: #5B6478; }
.apc-kv strong { color: #172B4D; font-variant-numeric: tabular-nums; }
.apc-card small { display: block; font-size: .66rem; color: #8a6d1f; margin-top: .3rem; }
.apc-mail { margin: .45rem 0; border: 1px solid #E3E6EE; border-radius: 12px; background: #FAFBFD; font-size: .78rem; overflow: hidden; }
.apc-mail > div { padding: .35rem .65rem; border-bottom: 1px solid #E3E6EE; }
.apc-mail > div span { display: inline-block; width: 54px; color: #8A93A6; }
.apc-mail p { margin: 0; padding: .5rem .65rem; color: #333c4f; }
.apc-mail .apc-att { border-top: 1px solid #E3E6EE; border-bottom: 0; background: #fff; }
.apc-mail .apc-att small { color: #8A93A6; margin-left: .25rem; }
.apc-dots { display: inline-flex; gap: 4px; padding: .15rem 0; }
.apc-dots i { width: 7px; height: 7px; border-radius: 50%; background: #B4BACB; animation: apc-dot 1s infinite ease-in-out; }
.apc-dots i:nth-child(2) { animation-delay: .15s; } .apc-dots i:nth-child(3) { animation-delay: .3s; }
.apc-chips { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; padding: 0 .75rem .45rem; flex: none; }
.apc-chips:empty { display: none; }
.apc-chips button { all: unset; cursor: pointer; padding: .45rem .85rem; border-radius: 999px; border: 1.5px solid var(--auto); color: var(--auto); background: #fff; font-size: .8rem; font-weight: 600; }
.apc-chips button:hover { background: #EEEEF8; }
.apc-chips button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.apc-form { display: flex; gap: .45rem; align-items: center; padding: .55rem .7rem 1.4rem; background: rgba(255,255,255,.95); border-top: 1px solid #E3E6EE; flex: none; }
.apc-form input { flex: 1; min-width: 0; font: inherit; font-size: .86rem; padding: .55rem .85rem; border-radius: 999px; border: 1px solid #D5D9E3; background: #fff; color: #111; }
.apc-form input:focus { outline: 2px solid var(--auto); outline-offset: 1px; }
.apc-form button { all: unset; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; background: var(--auto); color: #fff; display: grid; place-items: center; flex: none; }
.apc-form button svg { width: 16px; height: 16px; }
.apc-form button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@keyframes apc-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes apc-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .apc-row, .apc-dots i { animation: none; } .apc-msgs { scroll-behavior: auto; } }
@media (max-width: 900px) { .apc-wrap { grid-template-columns: 1fr; gap: 2rem; } .apc-phone { order: -1; } }
@media (max-width: 420px) { .apc-phone { aspect-ratio: auto; height: 680px; border-radius: 44px; padding: 9px; } .apc-screen { border-radius: 36px; } }
