/* Model picker in the coach chat bar (Coach / Builder) and Builder replies in the chat. */
#appShell .chat-input{position:relative;align-items:center}
#appShell .model-pick{position:relative;flex:none}
#appShell .model-pick-btn{display:inline-flex;align-items:center;gap:6px;height:44px;padding:0 10px 0 12px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.04);color:#e8eef6;font:600 13px Inter,system-ui,sans-serif;cursor:pointer;white-space:nowrap}
#appShell .model-pick-btn:hover{background:rgba(255,255,255,.08)}
#appShell .model-pick-btn:focus-visible{outline:2px solid #5ac0bf;outline-offset:2px}
#appShell .model-pick-btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
#appShell .model-pick-btn[aria-expanded=true] svg{transform:rotate(180deg)}
#appShell .model-pick.is-builder .model-pick-btn{border-color:rgba(90,192,191,.55);background:rgba(90,192,191,.12);color:#bff1ef}
#appShell .model-pick-menu{position:absolute;bottom:calc(100% + 8px);left:0;z-index:30;width:280px;padding:6px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(17,22,34,.98);box-shadow:0 24px 50px -18px rgba(0,0,0,.8);transform-origin:bottom left;animation:modelPickIn .16s cubic-bezier(.2,.8,.2,1)}
#appShell .model-pick-menu[hidden]{display:none}
@keyframes modelPickIn{from{opacity:0;transform:translateY(4px) scale(.98)}}
#appShell .model-pick-item{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:10px 12px;border:0;border-radius:10px;background:none;color:#e8eef6;text-align:left;cursor:pointer}
#appShell .model-pick-item:hover:not(:disabled){background:rgba(255,255,255,.06)}
#appShell .model-pick-item b{display:block;font-size:15px;font-weight:600}
#appShell .model-pick-item small{display:block;margin-top:2px;font-size:12px;color:#93a2b8}
#appShell .model-pick-item i{font-style:normal;opacity:0}
#appShell .model-pick-item[aria-checked=true] i{opacity:1}
#appShell .model-pick-item.is-locked{opacity:.45;cursor:not-allowed}
#appShell .model-pick-up{display:block;width:calc(100% - 8px);margin:2px 4px 4px;padding:9px 12px;border:1px solid rgba(90,192,191,.45);border-radius:10px;background:rgba(90,192,191,.12);color:#bff1ef;font:600 13px Inter,system-ui,sans-serif;cursor:pointer}
#appShell .model-pick-up:hover{background:rgba(90,192,191,.2)}
#appShell .builder-wait{margin:-4px 0 10px;color:#93a2b8;font-size:13px}
#appShell .msg.ai.builder-msg{display:flex;flex-direction:column;gap:10px;max-width:min(640px,92%)}
#appShell .builder-msg p{margin:0;line-height:1.55}
#appShell .builder-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
#appShell .builder-head b{font-size:15px;color:#f3f7fc}
#appShell .builder-warn{color:#ffb4a8}
#appShell .builder-files{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
#appShell .builder-file{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid rgba(255,255,255,.08);border-radius:10px;background:rgba(0,0,0,.18)}
#appShell .builder-thumb,#appShell .builder-ext{flex:none;width:38px;height:38px;border-radius:8px;background:#fff;object-fit:contain}
#appShell .builder-ext{display:grid;place-items:center;background:rgba(90,192,191,.12);color:#bff1ef;font:600 10px Inter,system-ui,sans-serif;text-transform:uppercase}
#appShell .builder-name{flex:1;min-width:0;display:flex;flex-direction:column}
#appShell .builder-name b{color:#e8eef6;font-weight:600;overflow-wrap:anywhere}
#appShell .builder-name small,#appShell .builder-tokens{color:#93a2b8;font-size:12px}
#appShell .builder-dl,#appShell .builder-zip{flex:none;padding:7px 12px;border:1px solid rgba(90,192,191,.45);border-radius:9px;background:rgba(90,192,191,.1);color:#bff1ef;font:600 12px Inter,system-ui,sans-serif;cursor:pointer}
#appShell .builder-dl:hover,#appShell .builder-zip:hover{background:rgba(90,192,191,.2)}
#appShell .builder-next{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
#appShell .builder-next small{width:100%;color:#93a2b8;font-size:12px}
#appShell .builder-chip{padding:6px 11px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:none;color:#cfd8e4;font:500 12px Inter,system-ui,sans-serif;cursor:pointer;text-align:left}
#appShell .builder-chip:hover{background:rgba(255,255,255,.06)}
@media(max-width:600px){#appShell .model-pick-btn{padding:0 8px}#appShell .model-pick-menu{width:min(280px,calc(100vw - 32px))}}
@media(prefers-reduced-motion:reduce){#appShell .model-pick-menu{animation:none}#appShell .model-pick-btn svg{transition:none}}
/* Dashboard upgrade pop-up: four plans (Free, Plus, Builder, Teams). */
#appShell .profile-pricing-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
@media(max-width:1280px){#appShell .profile-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#appShell .profile-pricing-grid{grid-template-columns:1fr}}
/* Permission cards: Bizly asks before building or publishing. */
#appShell .builder-ask{align-self:flex-start;display:flex;flex-direction:column;gap:8px;max-width:min(560px,92%);margin:0 0 12px;padding:14px 16px;border:1px solid rgba(90,192,191,.35);border-radius:14px;background:rgba(90,192,191,.06)}
#appShell .builder-ask-head{display:flex;flex-direction:column;gap:2px}
#appShell .builder-ask-kicker{color:#7fd6d4;font:600 11px Inter,system-ui,sans-serif;letter-spacing:.04em;text-transform:uppercase}
#appShell .builder-ask b{color:#f3f7fc;font-size:15px}
#appShell .builder-ask p{margin:0;color:#cfd8e4;line-height:1.5}
#appShell .builder-ask-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px}
#appShell .builder-ask-yes,#appShell .builder-ask-no{padding:8px 14px;border-radius:10px;font:600 13px Inter,system-ui,sans-serif;cursor:pointer}
#appShell .builder-ask-yes{border:1px solid #5ac0bf;background:#5ac0bf;color:#06201f}
#appShell .builder-ask-yes:hover{background:#6fd0cf}
#appShell .builder-ask-no{border:1px solid rgba(255,255,255,.14);background:none;color:#cfd8e4}
#appShell .builder-ask-no:hover{background:rgba(255,255,255,.06)}
#appShell .builder-ask button:disabled{opacity:.5;cursor:default}
#appShell .builder-ask button:focus-visible{outline:2px solid #5ac0bf;outline-offset:2px}
#appShell .builder-ask-note{color:#93a2b8;font-size:12px}
#appShell .builder-actions{display:flex;flex-wrap:wrap;gap:6px}
#appShell .builder-link{color:#7fe0de;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:2px}
/* "Other formats" menu on each file. */
#appShell .builder-fmt{position:relative;flex:none}
#appShell .builder-fmt-btn{display:grid;place-items:center;width:32px;height:32px;border:1px solid rgba(255,255,255,.12);border-radius:9px;background:none;color:#cfd8e4;cursor:pointer}
#appShell .builder-fmt-btn:hover,#appShell .builder-fmt-btn[aria-expanded=true]{background:rgba(255,255,255,.07)}
#appShell .builder-fmt-btn svg{width:16px;height:16px;fill:currentColor}
#appShell .builder-fmt-menu{position:absolute;right:0;bottom:calc(100% + 6px);z-index:40;min-width:220px;padding:6px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(17,22,34,.98);box-shadow:0 20px 44px -16px rgba(0,0,0,.8)}
#appShell .builder-fmt-menu[hidden]{display:none}
#appShell .builder-fmt-menu small{display:block;padding:4px 10px 6px;color:#93a2b8;font-size:11px}
#appShell .builder-fmt-menu button{display:block;width:100%;padding:8px 10px;border:0;border-radius:8px;background:none;color:#e8eef6;font:500 13px Inter,system-ui,sans-serif;text-align:left;cursor:pointer}
#appShell .builder-fmt-menu button:hover,#appShell .builder-fmt-menu button:focus-visible{background:rgba(255,255,255,.07);outline:none}
/* Message box grows with the text, like a modern chat. */
#appShell .chat-input textarea{flex:1;min-width:0;resize:none;overflow-y:auto;max-height:220px;background:#0a1728;border:1px solid var(--line);border-radius:10px;padding:14px 12px;color:var(--text);font:inherit;line-height:1.45;outline:none}
#appShell .chat-input textarea:focus{border-color:var(--teal)}
#appShell #coach .chat-input textarea{flex:1 1 140px;width:0}
#appShell .chat-input{align-items:flex-end}
#appShell .chat-input .model-pick,#appShell .chat-input>.btn{margin-bottom:5px}
