.c-idea,.c-term-in{width:100%;background:#151923;color:#F2F4F8;border:1px solid #2A3040;border-radius:12px;padding:14px 16px;font:400 17px/26px Inter,system-ui,sans-serif;min-height:52px}
.c-idea{resize:vertical;min-height:96px}
.c-idea:focus,.c-term-in:focus{outline:2px solid #FFC53D;outline-offset:2px}
.c-sell{display:flex;align-items:center;gap:12px;min-height:44px;font-size:16px;color:#C3CAD9;cursor:pointer}
.c-sell input{width:22px;height:22px;accent-color:#FFC53D}
.c-msg{min-height:26px}
.c-tools{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.c-tool{background:#151923;border:1px solid #2A3040;border-radius:14px;padding:14px 16px}
.c-tool p{margin:6px 0 0;font-size:16px;line-height:24px}
.c-tool .c-lic{font-size:15px;line-height:22px}
.c-tool-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pill{font-size:14px;line-height:20px;padding:2px 10px;border-radius:12px;border:1px solid #C3CAD9;color:#F2F4F8;white-space:nowrap}
.pill-open{border-color:#FFC53D;color:#FFC53D}
.pill-blocked{border-color:#F2F4F8;text-decoration:underline}
.c-offline{background:#151923;border:1px solid #2A3040;border-radius:12px;padding:10px 14px;font-size:16px;color:#C3CAD9}
.c-cmd{display:block;background:#151923;border:1px solid #2A3040;border-radius:10px;padding:10px 14px;font:500 16px/24px ui-monospace,Menlo,Consolas,monospace;overflow-wrap:anywhere}
.c-code,.c-term{background:#0F1218;border:1px solid #2A3040;border-radius:12px;padding:12px 14px;margin:0;font:400 14px/21px ui-monospace,Menlo,Consolas,monospace;color:#F2F4F8;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto}
.c-term{min-height:180px;max-height:38vh}
.c-file{font-weight:650;margin-top:12px}
.c-prompts{list-style:none;margin:0;padding:0}
.small{font-size:15px;line-height:22px}
@media (max-width:640px){.c-term{max-height:30vh}}

body[data-route=workflow] #screen>.frame{max-width:820px;margin-top:0;margin-bottom:auto}
body[data-route=workflow] #screen{padding-top:20px;padding-bottom:24px}
body[data-route=workflow] .frame .kicker{margin-bottom:8px;display:block}
body[data-route=workflow] .frame h1{font-size:32px;line-height:38px}
body[data-route=workflow] .frame .lead{margin-top:6px;font-size:17px;line-height:24px}
body[data-route=workflow] .frame>.stack{margin-top:12px;margin-bottom:0!important}
body[data-route=workflow] .c-tool{padding:10px 14px}
body[data-route=workflow] .actions{margin-top:12px;padding-bottom:84px}
@media (min-width:900px){.c-tools{grid-template-columns:1fr 1fr}}
@media (max-width:640px){
  body[data-route=terminal] .lead,body[data-route=create] .lead,body[data-route=workflow] .lead{margin-top:8px;font-size:17px;line-height:24px}
  body[data-route=terminal] h1,body[data-route=create] h1,body[data-route=workflow] h1{font-size:32px;line-height:36px}
  .c-term{min-height:120px;max-height:26vh}
  .c-tool{padding:10px 14px}
}
.s-chips{row-gap:8px}
body[data-route=terminal] .s-chips{margin-bottom:12px}
@media (max-width:640px){
  body[data-route=workflow] .c-tool>p.muted:not(.c-lic){display:none}
  .c-tool .c-lic{font-size:14px;line-height:20px}
  body[data-route=home] .pq-hand,body[data-route=home] .pq-label{display:none}
}

/* Create screen layout: clean vertical rhythm without artificial dead gap */
body[data-route=create] #screen>.frame{max-width:600px}
body[data-route=create] .frame h1{font-size:40px;line-height:46px}
body[data-route=create] .frame .lead{display:none}
body[data-route=create] .s-chips{margin-bottom:14px}
@media (max-width:640px){
  body[data-route=create] .frame h1{font-size:30px;line-height:34px}
  body[data-route=plan] #screen,body[data-route=create] #screen{padding-top:16px!important}
}
@media (min-width:641px){
  body[data-route=create] .c-idea{margin-bottom:10px}
  body[data-route=create] #screen>.frame>.stack{margin-bottom:0!important}
  body[data-route=create] .s-chips{margin-bottom:10px}
  body[data-route=create] .actions{padding-bottom:92px}
  body[data-route=home] .actions .link{order:-1;flex:1 1 100%;margin:0 0 4px}
  body[data-route=home] .actions{padding-bottom:84px;flex-wrap:wrap}
  body[data-route=home] .actions .btn{flex:0 0 auto;white-space:nowrap}
  body[data-route=home] #screen>.frame{max-width:740px}
}

/* Studio chat, live browser preview, export & account */
body[data-route=studio] #screen>.frame,body[data-route=preview] #screen>.frame,body[data-route=export] #screen>.frame,body[data-route=account] #screen>.frame{max-width:860px}
body[data-route=studio] #screen,body[data-route=preview] #screen,body[data-route=export] #screen,body[data-route=account] #screen{padding-top:14px;padding-bottom:18px}
body[data-route=studio] .frame .kicker,body[data-route=preview] .frame .kicker,body[data-route=export] .frame .kicker,body[data-route=account] .frame .kicker{margin-bottom:4px}
body[data-route=studio] .frame h1,body[data-route=preview] .frame h1,body[data-route=export] .frame h1,body[data-route=account] .frame h1{font-size:32px;line-height:36px}
body[data-route=studio] .frame .lead,body[data-route=preview] .frame .lead,body[data-route=export] .frame .lead,body[data-route=account] .frame .lead{margin-top:6px;font-size:16px;line-height:22px}
body[data-route=studio] .frame>.stack,body[data-route=preview] .frame>.stack,body[data-route=export] .frame>.stack,body[data-route=account] .frame>.stack{margin-top:10px}
body[data-route=studio] .actions,body[data-route=preview] .actions,body[data-route=export] .actions,body[data-route=account] .actions{margin-top:10px}
@media (min-width:641px){
  body[data-route=studio] #screen{padding-top:10px;padding-bottom:12px}
  body[data-route=studio] .frame .lead{display:none}
  body[data-route=studio] .st-chat{max-height:17vh;padding:10px 12px}
  body[data-route=studio] .st-in{min-height:56px}
  body[data-route=studio] .actions{padding-bottom:96px}
}
body[data-route=export] .c-tools{max-height:18vh;overflow:auto;padding-right:4px}
.st-chat{background:#0F1218;border:1px solid #2A3040;border-radius:14px;padding:12px 14px;display:grid;gap:10px;max-height:26vh;overflow:auto;margin-bottom:8px}
.st-msg{border-radius:12px;padding:10px 14px;background:#151923;border:1px solid #2A3040}
.st-msg.st-user{border-color:#FFC53D}
.st-msg p{margin:4px 0 0;font-size:16px;line-height:24px;color:#F2F4F8}
.st-who{font-size:14px;line-height:20px;color:#FFC53D;display:block}
.st-term{margin-top:8px;font-size:14px;line-height:20px;max-height:110px;overflow:auto}
.st-input-row{margin:10px 0 0}
.st-links{margin-top:8px;align-items:center}
.st-links:empty{display:none;margin:0;padding:0}
.plan-alt-pay{margin:6px 0 0}
.exp-quick{margin:12px 0 6px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}
@media (max-width:640px){
  body[data-route=plan] .plan-main .offer-actions{order:96}
  body[data-route=plan] .plan-main .plan-alt-pay{order:97}
  body[data-route=plan] .plan-main .plan-terms{order:98}
  body[data-route=plan] .plan-q{order:99}
}
.pv-wrap{border:1px solid #2A3040;border-radius:14px;overflow:hidden;background:#0F1218;margin-bottom:6px}
.pv-frame{display:block;width:100%;height:34vh;min-height:220px;border:0;background:#0F1218}
.gh-box{background:#151923;border:1px solid #2A3040;border-radius:14px;padding:12px 14px;margin-top:6px;display:grid;gap:8px}
.gh-grid{display:grid;gap:10px}
@media (min-width:720px){.gh-grid{grid-template-columns:1fr 1fr}}
@media (max-width:640px){
  .st-chat{max-height:24vh}
  .pv-frame{height:38vh;min-height:220px}
  body[data-route=studio] .frame h1,body[data-route=preview] .frame h1,body[data-route=export] .frame h1{font-size:28px;line-height:32px}
  body[data-route=studio] .frame .lead{display:none}
  body[data-route=studio] .pq-hand,body[data-route=studio] .pq-label{display:none}
  body[data-route=account] #screen{padding-top:calc(var(--shape-h,0px) + 20px)!important;padding-bottom:calc(var(--actions-h,132px) + 20px)!important}
  body[data-route=account] .actions .btn-primary{flex:1 1 100%!important;white-space:normal;padding:0 16px}
  body[data-route=account] .actions .btn-ghost{flex:1 1 46%!important;white-space:normal;padding:0 12px;font-size:15px}
  body[data-route=plan] #screen{padding-top:10px!important;padding-bottom:calc(var(--actions-h,84px) + 56px)!important}
  body[data-route=plan] #screen>.frame{margin:0 0 auto;padding-bottom:16px}
  body[data-route=plan] .frame h1{font-size:22px;line-height:26px}
  body[data-route=plan] .plan-card .plan-main>.muted:not(.small){display:none}
  body[data-route=plan] .plan-card{padding:8px 12px;gap:3px}
  body[data-route=plan] .plan-pic{width:52px;height:52px}
  body[data-route=plan] .plan-list{margin-top:0;gap:2px}
  body[data-route=plan] .plan-list li{font-size:13.5px;line-height:17px}
  body[data-route=plan] .plan-how{display:grid;grid-template-columns:1fr;gap:3px;margin-top:4px}
  body[data-route=plan] .plan-how li{flex-direction:row;align-items:center;gap:6px;font-size:13.5px;line-height:17px}
  body[data-route=plan] .plan-alt-pay{margin-top:2px}
  body[data-route=plan] .plan-terms{margin-top:2px;margin-bottom:0}
  body[data-route=plan] .plan-terms li{font-size:13px;line-height:16px}
  body[data-route=plan] .plan-main .offer-actions{margin-top:4px;gap:6px}
  body[data-route=plan] .plan-main .offer-actions .btn{min-height:42px}
  body[data-route=plan] .plan-card .plan-note{margin-top:4px;padding-top:4px;font-size:12.5px;line-height:16px}
}
@media (min-width:641px){
  body[data-route=plan] #screen{padding-top:8px;padding-bottom:20px}
  body[data-route=plan] #screen>.frame{margin-top:0;margin-bottom:auto;padding-bottom:12px}
  body[data-route=plan] .frame .kicker{margin-bottom:2px}
  body[data-route=plan] .frame h1{font-size:26px;line-height:30px}
  body[data-route=plan] .frame>.stack{margin-top:6px}
  body[data-route=plan] .plan-card{padding:8px 16px}
  body[data-route=plan] .plan-pic{width:76px;height:76px}
  body[data-route=plan] .plan-list{margin-top:0;gap:2px}
  body[data-route=plan] .plan-list li{font-size:15px;line-height:20px}
  body[data-route=plan] .plan-how{display:grid;grid-template-columns:1fr;gap:4px;margin-top:6px}
  body[data-route=plan] .plan-how li{flex-direction:row;align-items:center;gap:8px;font-size:14px;line-height:19px}
  body[data-route=plan] .offer-actions{margin-top:6px}
  body[data-route=plan] .offer-actions .btn{min-height:44px}
  body[data-route=plan] .plan-alt-pay{margin-top:2px}
  body[data-route=plan] .plan-terms{margin-top:4px;margin-bottom:0}
  body[data-route=plan] .plan-terms li{font-size:14px;line-height:19px}
  body[data-route=plan] .plan-card .plan-note{margin-top:4px;padding-top:5px;font-size:13px;line-height:17px}
  body[data-route=plan] .actions{margin-top:6px}
  body[data-route=plan] .actions .btn{min-height:40px}
}
@media (min-width:1100px){body[data-route=plan] .offer-actions a[href="#sample"]{display:none}}

/* Chat 21 Remake: Dramatic Forge Hero + Big Questions + Multimodal Attachments + Walkthrough */
body[data-route=home] #screen{padding-top:12px;padding-bottom:14px}
body[data-route=home] #screen>.frame{max-width:670px;margin-top:0;margin-bottom:auto;padding-top:0!important}
body[data-route=home] .frame .kicker{margin-bottom:4px;font-size:13.5px}
body[data-route=home] .frame h1{font-size:32px;line-height:36px}
body[data-route=home] .frame .lead{margin-top:6px;font-size:15.5px;line-height:22px}
body[data-route=home] .frame>.stack{margin-top:10px}
body[data-route=home] .frame>.stack>*+*{margin-top:8px}
body[data-route=home] .actions{margin-top:8px;padding-bottom:96px;align-items:center}
@media (min-width:641px){
  body[data-route=home] .actions .link{order:10;flex:0 0 auto;margin:0 0 0 8px}
  body[data-route=home] .hq-walk{margin-bottom:2px}
  body[data-route=home] .hq-answer{padding:6px 12px}
  body[data-route=home] .hq-card{padding:7px 11px}
}

.hq-list{display:grid;gap:6px}
.hq-card{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:rgba(21,25,35,.86);border:1px solid #2A3040;border-radius:12px;padding:8px 12px;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}
.hq-card:hover{border-color:#C3CAD9;transform:translateX(3px)}
.hq-card.is-active{border-color:#FFC53D;background:linear-gradient(90deg,rgba(255,197,61,.13),rgba(21,25,35,.92));box-shadow:0 6px 20px rgba(0,0,0,.35)}
.hq-ico{flex:0 0 32px;width:32px;height:32px;object-fit:contain}
.hq-q{font-size:15px;line-height:20px;font-weight:650;color:#F2F4F8}
.hq-answer{background:rgba(15,18,24,.92);border:1px solid rgba(255,197,61,.45);border-radius:12px;padding:8px 12px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px}
.hq-ans-text{font-size:14.5px;line-height:20px;color:#DCE2F0;flex:1 1 100%}
.hq-seed{min-height:28px;font-size:14.5px;font-weight:650;color:#FFC53D}
.hq-walk{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.hq-step{display:flex;align-items:center;gap:8px;background:rgba(21,25,35,.72);border:1px solid #2A3040;border-radius:10px;padding:6px 10px;font-size:13.5px;line-height:17px;color:#C3CAD9}
.hq-step img{flex:0 0 24px;width:24px;height:24px;object-fit:contain}

.c-meta-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.att-btn{min-height:44px;padding:0 14px;font-size:15px;gap:8px}
.btn-ico{width:22px;height:22px;object-fit:contain;flex:0 0 auto}
.att-list{display:flex;flex-wrap:wrap;gap:8px}
.att-list:empty{display:none}
.att-chip{display:inline-flex;align-items:center;gap:8px;background:#151923;border:1px solid #FFC53D;border-radius:20px;padding:4px 12px;font-size:14px;line-height:20px;color:#F2F4F8}
.att-rm{background:none;border:0;color:#FFC53D;font-weight:700;cursor:pointer;padding:0 4px;font-size:15px;line-height:18px}
.gh-head{display:flex;align-items:center;gap:10px}
.st-in{min-height:66px;max-height:160px}

@media (max-width:640px){
  body[data-route=home] #screen{padding-top:calc(var(--shape-h,0px) + 2px);padding-bottom:calc(var(--actions-h,126px) + 24px)}
  body[data-route=home] #screen>.frame{padding-top:0!important}
  body[data-route=home] .frame h1{font-size:22px;line-height:27px}
  body[data-route=home] .frame .lead{display:none}
  body[data-route=home] .frame>.stack{margin-top:8px}
  body[data-route=home] .frame>.stack>*+*{margin-top:6px}
  .hq-card{padding:6px 10px;gap:8px}
  .hq-ico{width:26px;height:26px;flex-basis:26px}
  .hq-q{font-size:14px;line-height:18px}
  .hq-answer{padding:6px 10px;gap:2px 8px}
  .hq-ans-text{font-size:14px;line-height:18.5px}
  .hq-seed{min-height:26px;font-size:14px}
  .hq-walk{display:none}
  body[data-route=home] .actions .link{display:none}
  body[data-route=create] .pq-hand,body[data-route=create] .pq-label,body[data-route=create] .pq-spark,body[data-route=create] .pq-ripple,body[data-route=home] .pq-spark,body[data-route=home] .pq-ripple{display:none!important}
  body[data-route=create] .actions .btn-primary{flex:1 1 100%!important;white-space:normal}
  body[data-route=create] .actions .btn-ghost{flex:1 1 45%!important;font-size:15px}
}
