body{margin:0;font-family:Arial,Helvetica,sans-serif;background:#f5f7fb;color:#1f2937}a{color:#2563eb} .topbar{height:56px;background:#111827;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 22px}.brand{font-size:20px;font-weight:700}.userbar a{color:#dbeafe}.tabs{background:#fff;border-bottom:1px solid #e5e7eb;padding:0 22px}.tabs a{display:inline-block;padding:14px 18px;text-decoration:none;color:#374151}.tabs a.active{border-bottom:3px solid #2563eb;color:#111827;font-weight:700}.container{max-width:1180px;margin:24px auto;padding:0 16px}.card{background:#fff;border:1px solid #e5e7eb;border-radius:12px;padding:20px;margin-bottom:18px;box-shadow:0 1px 2px rgba(0,0,0,.04)}.grid{display:grid;gap:18px}.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:1fr 1fr 1fr}label{display:block;font-weight:700;margin-top:12px}input,textarea,select{width:100%;box-sizing:border-box;padding:10px;border:1px solid #cbd5e1;border-radius:8px;margin-top:5px}textarea{font-family:inherit}.btn{display:inline-block;margin-top:14px;padding:10px 16px;border:0;border-radius:8px;background:#e5e7eb;cursor:pointer}.btn.primary{background:#2563eb;color:#fff}.alert{padding:12px;border-radius:8px;margin-bottom:14px}.alert-success{background:#dcfce7}.alert-danger{background:#fee2e2}.alert-info{background:#dbeafe}.badge{display:inline-block;padding:3px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px}table{width:100%;border-collapse:collapse}td,th{border-bottom:1px solid #e5e7eb;padding:8px;text-align:left}.message{border-left:4px solid #cbd5e1;padding:10px;margin:10px 0;background:#f8fafc}.message.out{border-color:#22c55e}.meta{font-size:12px;color:#64748b}pre{white-space:pre-wrap;font-family:inherit}.login-page{display:flex;min-height:100vh;align-items:center;justify-content:center}.login-card{width:360px;background:#fff;padding:28px;border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.12)}.check{font-weight:400}@media(max-width:800px){.grid.two,.grid.three{grid-template-columns:1fr}.topbar{height:auto;align-items:flex-start;gap:8px;flex-direction:column;padding:14px 18px}}
.chat-shell{height:calc(100vh - 145px);min-height:560px;background:#e5ddd5;border-radius:14px;display:flex;flex-direction:column;overflow:hidden;border:1px solid #d1d5db;box-shadow:0 8px 24px rgba(0,0,0,.08)}
.chat-header{background:#075e54;color:#fff;padding:14px 18px;display:flex;justify-content:space-between;align-items:center}
.chat-header h1{margin:0;font-size:22px}.chat-header p{margin:4px 0 0;color:#d9fdd3;font-size:14px}
.chat-thread{flex:1;overflow:auto;padding:18px;background:linear-gradient(180deg,#efe7dd,#e7ddd1)}
.chat-empty{text-align:center;background:rgba(255,255,255,.75);border-radius:999px;padding:10px 16px;color:#64748b;margin:20px auto;max-width:520px}
.chat-bubble{max-width:74%;padding:9px 11px;margin:8px 0;border-radius:12px;box-shadow:0 1px 1px rgba(0,0,0,.12);clear:both;word-wrap:break-word;white-space:normal}
.chat-bubble.mine{float:right;background:#d9fdd3;border-top-right-radius:3px}.chat-bubble.assistant{float:left;background:#fff;border-top-left-radius:3px}.chat-bubble.typing{opacity:.78;font-style:italic}
.chat-bubble-body{line-height:1.42}.chat-time{text-align:right;font-size:11px;color:#64748b;margin-top:4px}.chat-files{font-size:12px;color:#475569;margin-top:6px;display:flex;flex-direction:column;gap:6px}.file-download{display:inline-flex;align-items:center;gap:6px;background:#eef2ff;color:#3730a3;text-decoration:none;border-radius:999px;padding:6px 10px;font-weight:700}.file-download:hover{background:#e0e7ff}
.chat-compose{display:flex;gap:8px;align-items:flex-end;background:#f0f2f5;padding:10px;border-top:1px solid #d1d5db}.chat-compose textarea{resize:none;margin:0;border-radius:18px;min-height:44px;max-height:140px}.chat-compose .btn{margin:0;border-radius:18px}.file-pill{width:44px;height:44px;min-width:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;margin:0;cursor:pointer;font-size:21px}.file-pill input{display:none}
@media(max-width:700px){.container{margin:0;padding:0}.chat-shell{height:calc(100vh - 105px);min-height:0;border-radius:0;border-left:0;border-right:0}.chat-bubble{max-width:86%}.chat-header p{display:none}.tabs{padding:0 8px}.tabs a{padding:12px 8px}.topbar{padding:0 12px}.brand{font-size:16px}}
.project-tabs{max-width:980px;margin:0 auto}.project-tab-buttons{display:flex;gap:8px;margin-bottom:14px}.project-tab-button{border:1px solid #cbd5e1;background:#fff;color:#374151;border-radius:999px;padding:10px 16px;font-weight:700;cursor:pointer}.project-tab-button.active{background:#2563eb;color:#fff;border-color:#2563eb}.project-tab-panel{display:none}.project-tab-panel.active{display:block}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:12px}.section-head h1{margin-bottom:4px}.muted{margin:0;color:#64748b;font-size:14px}.secret-card{max-width:820px;margin-left:auto;margin-right:auto}.secret-card textarea{min-height:220px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.secret-count{margin:16px 0;padding:12px;border-radius:10px;background:#f8fafc;border:1px solid #e5e7eb}.project-search-label{min-width:280px;margin-top:0}.project-search-label input{font-weight:400}.table-wrap{overflow:auto}.projects-table .date-col{white-space:nowrap;color:#475569}.project-no-results td{text-align:center;color:#64748b;padding:18px}.project-tab-panel[hidden]{display:none!important}@media(max-width:700px){.project-tabs{padding:0 12px}.project-tab-buttons{position:sticky;top:0;z-index:2;background:#f5f7fb;padding:10px 0}.project-tab-button{flex:1;padding:10px 8px}.section-head{display:block}.project-search-label{min-width:0}.projects-table th,.projects-table td{font-size:13px;padding:7px 6px}.projects-table th:nth-child(4),.projects-table td:nth-child(4){display:none}}

