.text-chat{display:grid;gap:14px;min-width:0}.chat-candidate-note{font-size:12px;color:var(--muted,#7f726a)}.chat-connect{padding:18px;border:1px solid #e6ded4;border-radius:22px;background:#fff9}.chat-connect label{display:block;margin:12px 0}.text-message-list{height:min(54dvh,580px);overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;padding:16px 4px;scrollbar-width:thin;overflow-anchor:none}.text-message{max-width:86%;border-radius:22px 22px 22px 7px;padding:12px 16px;background:#fff;align-self:flex-start;box-shadow:0 3px 15px #55443309;overflow-wrap:anywhere}.text-message.mine{align-self:flex-end;border-radius:22px 22px 7px 22px;background:#e8f0ea}.text-message p{margin:0 0 5px;white-space:pre-wrap;line-height:1.65}.text-message small{font-size:10px;color:#7f7974}.text-message[data-anchor]{outline:2px solid #b89666;background:#fff0c8}.text-search{display:flex;flex-wrap:wrap;gap:10px;padding:14px;border-radius:20px;background:#fff8}.text-search[hidden],.text-chat [hidden]{display:none}.text-search input,.text-search select{min-width:0;padding:9px;border:1px solid #e8e0d6;border-radius:12px;background:#fff}.text-search label{max-width:100%;font-size:12px}.text-result{display:block;text-align:left;width:100%;padding:14px;margin:7px 0;background:#fff;border:1px solid #e8e0d6;border-radius:16px;overflow-wrap:anywhere}.text-result small{display:block;margin-top:6px;color:#887e73}#text-controls{display:flex;gap:8px;flex-wrap:wrap}#text-pending{display:flex;flex-direction:column;gap:10px}.text-empty{margin:auto;color:#91877d}.text-chat .composer{position:static}.text-chat .composer textarea{min-width:0;flex:1;resize:vertical}#text-status{font-size:12px;line-height:1.6;color:#7f726a}
.text-chat{padding:10px 20px 18px;font-size:13px;line-height:1.6}.text-chat .text-message-list{height:min(43dvh,480px)}.text-chat .composer{padding:12px 0;max-width:100%;width:100%}.text-chat .composer button{width:auto;min-width:60px}.text-chat .chat-connect input[type=checkbox]{display:inline;width:auto;margin:0 7px 0 0}

.text-archive{padding:18px;border-radius:24px;background:#ffffffb8;border:1px solid #e8e0d6;display:grid;gap:18px}.text-archive section{border-top:1px solid #e8e0d6;padding-top:12px;display:grid;gap:10px}.text-archive h2,.text-archive h3,.text-archive p{margin:0}.text-archive h2{font-size:18px}.text-archive h3{font-size:15px}.text-archive label{display:block;margin:8px 0}.text-archive input:not([type=checkbox]){display:block;width:100%;min-width:0;box-sizing:border-box;padding:11px;border:1px solid #ded9d1;border-radius:12px;background:#fff}.text-archive input[type=checkbox]{width:auto;display:inline}.text-archive button{max-width:100%;white-space:normal}.text-archive-actions{display:flex;flex-wrap:wrap;gap:8px}.text-archive code{display:block;overflow-wrap:anywhere;font-size:11px}#text-archive-status{color:#5e6d5c;font-weight:600}.chat-connect button{margin:5px 4px 0 0}

.trial-readiness{margin:14px 0;background:linear-gradient(145deg,#fffdf7,#f1f6f3);border:1px solid #dfebe3}.readiness-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.readiness-heading h2{font-size:18px;margin:0}.readiness-heading small{color:var(--muted,#777);font-variant-numeric:tabular-nums}.trial-readiness p{font-size:13px;line-height:1.7}.readiness-actions{display:grid;gap:8px}.readiness-actions button{width:100%;white-space:normal}.readiness-actions button:disabled{opacity:.55;cursor:default}
.trial-readiness [hidden]{display:none!important}

/* Compact page status and clear primary actions. */
.trial-readiness.info-card{padding:14px 16px;margin:10px 0 18px;border-radius:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;background:#f5f8f3}.trial-readiness .readiness-heading{flex-wrap:nowrap;align-items:center;gap:9px}.readiness-dot{width:8px;height:8px;flex:none;border-radius:50%;background:#9aaa94}.readiness-copy{min-width:0}.trial-readiness .readiness-heading h2{font-size:13px;line-height:1.4;margin:0}.trial-readiness #trial-ready-summary{font-size:11px;line-height:1.5;margin:3px 0 0;color:var(--muted)}.trial-readiness small{font-size:10px;white-space:nowrap}.trial-readiness .readiness-actions{align-self:center;display:block}.trial-readiness .readiness-actions button{padding:10px 13px;font-size:12px;min-height:40px}.readiness-details{grid-column:1/-1;font-size:11px;color:var(--muted)}.readiness-details summary{cursor:pointer;list-style:none}.readiness-details summary::after{content:' ＋'}.readiness-details[open] summary::after{content:' −'}.readiness-details p{font-size:11px;line-height:1.65}.trial-readiness[data-state=ready] .readiness-dot{background:#5b8467}.trial-readiness[data-state=attention] .readiness-dot{background:#c58c4f}.text-chat .chat-connect{padding:18px 20px;border:0;background:#fff;border-radius:26px;box-shadow:0 8px 28px #6a715208}.text-chat .chat-connect>p{margin:0 0 14px;font-size:14px}.text-chat #text-connect{display:block;width:100%;margin-top:14px}.chat-subtle-action{border:0;background:transparent;font:inherit;font-size:12px;color:var(--muted);display:block;margin:8px auto 0;padding:8px 12px;text-decoration:underline;text-underline-offset:3px}.chat-saving-help{font-size:11px;color:var(--muted);margin:18px 4px}.chat-saving-help summary{cursor:pointer}.text-chat .chat-candidate-note{font-size:11px;margin:4px 0 12px}.text-chat #text-controls{gap:6px}.text-chat #text-controls button{padding:9px 12px;font-size:12px}.media-live-card .media-live-kicker{font-size:11px;color:var(--accent);letter-spacing:.04em}.media-live-card h2{font-size:21px;margin:6px 0}.media-live-heading>p{font-size:12px;color:var(--muted)}.media-live-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0;list-style:none;gap:5px;margin:22px 0}.media-live-steps li{display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--muted);font-size:10px;text-align:center}.media-live-steps b{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#edf0e8;color:#74836c;font-size:13px}.media-live-steps [data-state=current] b{background:var(--accent);color:#fff}.media-live-steps [data-state=done] b{background:#dceadd;color:#3f6751}.media-live-card #media-live-status{font-size:13px;line-height:1.7;min-height:44px}.media-live-stop{display:block;border:0;background:transparent;font:inherit;font-size:11px;color:var(--muted);margin:8px auto;padding:8px}.media-live-help{font-size:11px;color:var(--muted);margin-top:20px;line-height:1.7}.media-live-help summary{cursor:pointer}@media(max-width:360px){.trial-readiness .readiness-heading small{font-size:9px;flex-shrink:0}.trial-readiness.info-card{gap:7px 8px}.trial-readiness #trial-ready-summary{font-size:10px}}

.chat-attachments{min-width:0;border-top:1px solid #e8e5dc;padding-top:12px}.attachment-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.attachment-toolbar button{font-size:11px;margin:0;padding:10px}.attachment-toolbar .chat-subtle-action{text-decoration:none}.chat-attachments [hidden],#chat-attachments-host[hidden]{display:none!important}.chat-attachments p{font-size:12px;line-height:1.7;overflow-wrap:anywhere}.chat-attachments #attachment-status{font-size:11px;color:var(--muted)}.attachment-cards{display:grid;gap:10px}.attachment-card{padding:14px;border:1px solid #e3e8de;border-radius:20px;background:#f7f9f4}.attachment-card>b{display:block;overflow-wrap:anywhere}.attachment-card label{display:block;margin:12px 0;font-size:12px}.attachment-card button{font-size:12px;max-width:100%}.chat-attachments .media-filters{margin-top:14px}.chat-attachments .media-viewer img,.chat-attachments .media-viewer video{display:block;width:100%;max-height:280px;object-fit:contain;border-radius:18px}.chat-attachments summary{cursor:pointer;font-size:12px}.chat-attachments #attachment-cloud-tools{padding:12px 0}.chat-attachments #attachment-choice{padding:12px;border-radius:16px;background:#f5f7f1;overflow-wrap:anywhere}#attachment-file-name{display:block;font-size:12px}.chat-attachments .media-chat-backup{margin:14px 0;padding:15px}.chat-attachments .media-chat-backup button{font-size:12px}.chat-attachments .media-chat-backup p{font-size:11px}
