/* "Build it with Claude": the button, the card on the last section and the sheet. Only present with ?claude=1. */
.ch-open { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 999px; padding: 14px 22px; background: #16181f; color: #fff; font: 800 15px/1 Manrope, Arial, sans-serif; cursor: pointer; }
.ch-open:hover { background: #2a2d38; }
.ch-open:focus-visible, .ch-copy:focus-visible, .ch-close:focus-visible { outline: 3px solid var(--app-color, #8e3cda); outline-offset: 3px; }
.ch-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: #d97757; color: #fff; font-size: 13px; }

/* A third door in the last section */
.launch-choices.ch-three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .launch-choices.ch-three { grid-template-columns: 1fr; } }
.launch-claude { background: #16181f; color: #fff; }
.launch-claude h2 { color: #fff; }
.launch-claude .ch-open.launch-button { background: #fff; color: #16181f; }
.launch-claude .ch-open.launch-button:hover { background: #ececf1; }
.ch-terminal { display: flex; align-items: center; gap: 6px; margin: 22px 0; padding: 16px 16px; border-radius: 14px; background: #0b0c10; border: 1px solid #ffffff1f; }
.ch-terminal i { width: 9px; height: 9px; border-radius: 50%; background: #3a3d48; }
.ch-terminal code { margin-left: 8px; color: #9ae6b4; font: 600 13px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* In the phone constructor: above the footer on the ready screen, under the choices on the last one */
.ch-slot, .ch-slot-finish { display: none; }
dialog.vb-builder[data-mode="ready"] .ch-slot { display: flex; justify-content: center; padding: 0 20px 12px; }
dialog.vb-builder[data-mode="finish"] .ch-slot-finish { display: flex; justify-content: center; padding: 4px 20px 22px; }
.ch-slot .ch-open { background: transparent; color: #16181f; border: 1.5px solid #16181f; padding: 12px 18px; font-size: 14px; }
.ch-open.ch-wide { width: 100%; max-width: 480px; padding: 16px 22px; }

/* The sheet */
.ch-sheet { width: min(600px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: 22px 24px 20px; border: 0; border-radius: 26px; background: #fff; color: #16181f; box-shadow: 0 40px 90px -30px #16181f88; font-family: Manrope, Arial, sans-serif; overflow: auto; }
.ch-sheet::backdrop { background: #10121a8c; backdrop-filter: blur(3px); }
.ch-close-row { display: flex; justify-content: flex-end; margin: -6px -8px 0 0; }
.ch-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f1f4; color: #16181f; font-size: 20px; line-height: 1; cursor: pointer; }
.ch-brand { display: flex; align-items: center; gap: 12px; margin-top: -18px; }
.ch-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; overflow: hidden; background: var(--ch-color, #8e3cda); flex: none; }
.ch-icon > * { width: 100%; height: 100%; }
.ch-brand small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #6b7385; }
.ch-brand b { font-size: 17px; }
.ch-sheet h2 { margin: 16px 0 8px; font: 800 30px/1.05 Manrope, Arial, sans-serif; letter-spacing: -.04em; text-wrap: balance; }
.ch-lead { margin: 0; font-size: 15.5px; line-height: 1.45; color: #3d4250; text-wrap: pretty; }
.ch-app { margin: 12px 0 0; padding: 11px 14px; border-radius: 14px; background: #f5f5f8; font-size: 13.5px; line-height: 1.4; color: #3d4250; }
.ch-app b { color: #16181f; }
.ch-steps { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: ch; display: grid; gap: 16px; }
.ch-steps li { counter-increment: ch; }
.ch-steps p { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 14.5px; font-weight: 800; }
.ch-steps p::before { content: counter(ch); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #16181f; color: #fff; font-size: 12px; font-weight: 800; flex: none; }
.ch-code { margin: 0; padding: 14px 16px; border-radius: 14px; background: #0b0c10; color: #e7e9ef; font: 500 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.ch-code.ch-brief { max-height: 132px; overflow: auto; color: #c8cbd6; }
.ch-copy { display: flex; align-items: center; justify-content: center; width: 100%; margin-top: 8px; padding: 13px 16px; border: 1.5px solid #16181f; border-radius: 14px; background: #fff; color: #16181f; font: 800 14.5px/1 Manrope, Arial, sans-serif; cursor: pointer; }
.ch-copy.ch-primary { background: #16181f; color: #fff; }
.ch-copy.is-done { background: #127a55; border-color: #127a55; color: #fff; }
.ch-note { margin: 16px 0 0; font-size: 12.5px; line-height: 1.45; color: #6b7385; }
@media (max-width: 760px) {
  .ch-sheet { width: 100vw; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .ch-sheet h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ch-sheet[open] { animation: ch-rise .32s cubic-bezier(.2, .8, .2, 1); }
  @keyframes ch-rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
}
