*{box-sizing:border-box}body{margin:0;font-family:Segoe UI,Inter,system-ui,sans-serif;background:#f5f7fb;color:#1f2633}a{color:#2b6cb0;text-decoration:none}a:hover{text-decoration:underline}.app{display:flex;flex-direction:column;min-height:100vh;gap:16px;padding:24px}.header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;background:#fff;padding:20px 24px;border-radius:16px;box-shadow:0 10px 24px #0f172a14}.header h1{margin:0 0 6px;font-size:24px}.header p{margin:0;color:#4a5568}.status{display:flex;flex-direction:column;gap:8px;align-items:flex-end}.status span{font-size:14px;color:#4a5568}.info{background:#fff;padding:16px 20px;border-radius:16px;box-shadow:0 6px 16px #0f172a0f;display:flex;flex-direction:column;gap:6px}.nav{display:flex;gap:12px;flex-wrap:wrap}.nav-button{border:1px solid #cbd5f5;background:#fff;color:#1f2633;padding:8px 14px;border-radius:999px;cursor:pointer}.nav-button.active{background:#2b6cb0;color:#fff;border-color:#2b6cb0}.hint{margin:0;color:#2d3748}.chat{flex:1;background:#fff;padding:20px;border-radius:16px;box-shadow:0 10px 24px #0f172a14;display:flex;flex-direction:column;gap:12px;overflow-y:auto;min-height:360px}.admin{background:#fff;padding:20px;border-radius:16px;box-shadow:0 10px 24px #0f172a14;display:flex;flex-direction:column;gap:16px;min-height:360px}.admin-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.admin-header h2{margin:0 0 6px}.admin-header p{margin:0;color:#4a5568}.admin-table{display:flex;flex-direction:column;gap:8px}.admin-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(160px,1fr) minmax(120px,1fr) minmax(200px,1fr);gap:12px;align-items:center;padding:10px 12px;border:1px solid #e2e8f0;border-radius:12px}.admin-row.users-row{grid-template-columns:minmax(180px,2fr) minmax(80px,1fr) minmax(100px,1fr) minmax(120px,1fr)}.login-wrapper{display:flex;justify-content:center;align-items:center;min-height:60vh}.login-form{background:#fff;padding:32px;border-radius:16px;box-shadow:0 10px 24px #0f172a14;display:flex;flex-direction:column;gap:16px;max-width:360px;width:100%}.login-form h2{margin:0}.login-form p{margin:0;color:#4a5568}.login-form input{padding:12px 14px;border-radius:12px;border:1px solid #e2e8f0;font-size:16px}.login-form form{display:flex;flex-direction:column;gap:12px}.tcle-screen{display:flex;justify-content:center;align-items:flex-start;min-height:100vh;padding:24px 16px 48px;box-sizing:border-box}.tcle-card{background:#fff;border-radius:16px;box-shadow:0 10px 24px #0f172a14;max-width:720px;width:100%;padding:28px 32px 24px;display:flex;flex-direction:column;gap:16px}.tcle-title{margin:0;font-size:1.15rem;font-weight:700;color:#0f172a;line-height:1.35}.tcle-subtitle{margin:0;font-size:.95rem;color:#475569;line-height:1.45}.tcle-body{max-height:min(60vh,520px);overflow-y:auto;border:1px solid #e2e8f0;border-radius:12px;padding:16px 18px;background:#f8fafc}.tcle-section{margin-bottom:18px}.tcle-section:last-child{margin-bottom:0}.tcle-section h2{margin:0 0 8px;font-size:1rem;font-weight:600;color:#1e293b}.tcle-section p{margin:0;font-size:.9rem;line-height:1.55;color:#334155;white-space:pre-wrap}.tcle-actions{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end;padding-top:8px;border-top:1px solid #e2e8f0}.tcle-actions .btn-primary,.tcle-actions .btn-secondary{padding:12px 22px;border-radius:12px;font-size:15px;font-weight:600;cursor:pointer;border:none}.tcle-actions .btn-secondary{background:#f1f5f9;color:#334155}.tcle-actions .btn-secondary:hover{background:#e2e8f0}.tcle-actions .btn-primary{background:#2563eb;color:#fff}.tcle-actions .btn-primary:hover{background:#1d4ed8}.user-email{font-size:13px;color:#4a5568;max-width:180px;overflow:hidden;text-overflow:ellipsis}.admin-row.header{background:#f8fafc;font-weight:600}.admin-actions{display:flex;gap:8px;flex-wrap:wrap}.mono{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace}.error{color:#b91c1c;margin:0}.message{display:flex}.message.user{justify-content:flex-end}.bubble{padding:12px 16px;border-radius:14px;max-width:75%;white-space:pre-wrap;line-height:1.4;background:#edf2f7}.message.user .bubble{background:#3182ce;color:#fff}.message.assistant .bubble{background:#f1f5f9;color:#1f2937}.composer{display:flex;gap:12px;background:#fff;padding:16px 20px;border-radius:16px;box-shadow:0 10px 24px #0f172a14}.composer .yes-no-buttons{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.composer input{flex:1;padding:12px 14px;border-radius:12px;border:1px solid #e2e8f0;font-size:16px}.composer button{white-space:nowrap}.composer button{padding:12px 20px;border:none;border-radius:12px;background:#2b6cb0;color:#fff;font-weight:600;cursor:pointer}.composer button:hover{background:#2c5282}.prompt-output{background:#fff;padding:20px;border-radius:16px;box-shadow:0 10px 24px #0f172a14;display:flex;flex-direction:column;gap:12px}.prompt-panels{display:grid;gap:16px}.prompt-panel{display:flex;flex-direction:column;gap:12px}.survey-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.survey-note{font-size:14px;color:#4a5568}.survey{border:1px solid #e2e8f0;border-radius:12px;padding:16px;background:#f8fafc;display:flex;flex-direction:column;gap:16px}.survey h3{margin:0;font-size:18px}.survey p{margin:0;color:#4a5568}.survey-item{display:flex;flex-direction:column;gap:8px}.survey-question{font-weight:600}.survey-scale{display:flex;flex-wrap:wrap;gap:10px}.survey-scale label{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:6px 10px;cursor:pointer}.survey-scale input{margin:0}.survey-submit{display:flex;justify-content:flex-end}.survey-submit button{padding:10px 18px;border:none;border-radius:12px;background:#2b6cb0;color:#fff;font-weight:600;cursor:pointer}.survey-submit button:disabled{background:#94a3b8;cursor:default}.prompt-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.prompt-actions{display:flex;gap:8px;flex-wrap:wrap}.prompt-header h2{margin:0;font-size:18px}.prompt-box{border:1px solid #cbd5f5;background:#f8fafc;border-radius:12px;padding:16px}.prompt-box pre{margin:0;white-space:pre-wrap;font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;font-size:14px;line-height:1.5}.prompt-hint{margin:0;color:#4a5568;font-size:14px}.ai-consult-section{display:flex;flex-direction:column;gap:12px;padding:16px 0;border-top:1px solid #e2e8f0}.ai-consult-section h3{margin:0;font-size:18px}.ai-consult-section p{margin:0;color:#4a5568}.ai-response-panels{display:grid;gap:16px}.ai-response-panels .prompt-panel h4{margin:0 0 8px;font-size:16px}.ai-follow-up{margin-top:12px;padding-top:12px;border-top:1px solid #e2e8f0}.follow-up-input-row{display:flex;gap:12px;margin-top:8px}.follow-up-input-row input{flex:1;padding:10px 12px;border:1px solid #e2e8f0;border-radius:8px;font-size:14px}@media (min-width: 900px){.ai-response-panels{grid-template-columns:repeat(2,minmax(0,1fr))}}.primary{background:#2b6cb0;color:#fff;border:none;border-radius:10px;padding:8px 12px;cursor:pointer;font-weight:600}.primary:hover{background:#2c5282}.secondary{background:#edf2f7;color:#2d3748;border:none;border-radius:10px;padding:8px 12px;cursor:pointer}.secondary:hover{background:#e2e8f0}.danger{background:#fee2e2;color:#b91c1c;border:none;border-radius:10px;padding:8px 12px;cursor:pointer}.danger:hover{background:#fecaca}@media (max-width: 720px){.header{flex-direction:column;align-items:flex-start}.status{align-items:flex-start}.bubble{max-width:100%}.admin-row{grid-template-columns:1fr}}@media (min-width: 900px){.prompt-panels{grid-template-columns:repeat(2,minmax(0,1fr))}}
