.chat-auth{display:grid;gap:12px;position:fixed;z-index:1000;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(420px,calc(100vw - 36px));padding:28px;border:1px solid var(--line);border-radius:24px;background:rgba(255,255,255,.97);box-shadow:0 24px 90px #15294133;color:var(--ink)}
.chat-auth h2{margin:0;font-size:24px}
.chat-auth .login-description{margin:0;color:var(--muted);font-size:14px;line-height:1.5}
.chat-auth label{font-size:12px;color:var(--muted)}
.chat-auth input,.chat-auth select{width:100%;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;color:var(--ink)}
.chat-auth button{font-size:13px;min-height:42px;padding:10px 14px}
.chat-auth .login-mode{border:0;background:transparent;color:var(--muted);font-size:12px;text-decoration:underline}
.chat-auth .chat-connection{margin:0;font-size:12px;color:var(--muted)}
.session-button{font-size:11px;min-height:34px;padding:6px 10px;margin-top:8px}
.drawer-head .chat-connection{margin-top:7px}
.requires-auth .layout{visibility:hidden}
.requires-auth .chat-auth~*{visibility:hidden}
.chat-connection{width:100%;font-size:10px;color:var(--muted);margin:0}
.chat-connection[data-ok="true"]{color:#356b4b}
.live-task-summary{font-size:10px;color:var(--muted);padding:7px 0}
.live-task-summary>p{margin:0 0 7px}
.live-task-card{border:1px solid var(--line);border-radius:10px;padding:9px;margin:6px 0;background:#ffffff80}
.live-task-card strong{font-size:11px}
.live-task-card p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0;color:var(--ink);line-height:1.5}
.project-hub{border:1px solid var(--line);border-radius:14px;padding:10px;margin:8px 0 12px;background:#fffaf4}
.project-hub-head,.project-room>header,.project-task-head,.project-task-actions,.project-form-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}
.project-hub-head strong,.project-tasks-head{font-size:12px;color:var(--ink)}
.project-hub button,.project-hub input,.project-hub textarea,.project-hub select{font:inherit}
.project-hub button{border:1px solid var(--line);border-radius:9px;padding:7px 10px;background:#fff;color:var(--ink);cursor:pointer;font-size:11px}
.project-hub button.primary{background:#284c68;color:#fff;border-color:#284c68}
.project-hub button:disabled{opacity:.55;cursor:wait}
.project-form,.project-add-task{display:grid;gap:8px;padding:10px 0}
.project-form label,.project-add-task label{display:grid;gap:4px;font-size:10px;color:var(--muted)}
.project-hub input,.project-hub textarea,.project-hub select{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;padding:8px;background:#fff;color:var(--ink);font-size:11px}
.project-hub textarea{min-height:70px;resize:vertical;line-height:1.45}
.project-list{display:grid;gap:6px;margin-top:8px}
.project-card{display:grid;text-align:left;gap:3px;width:100%}
.project-card small,.project-room header small{font-size:10px;color:var(--muted)}
.project-room{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}
.project-room>header{align-items:flex-start;margin-bottom:8px}
.project-room>header>div{display:grid;gap:3px;min-width:0}
.project-room>header strong{font-size:12px;overflow-wrap:anywhere}
.project-messages{display:grid;gap:6px;max-height:300px;overflow:auto;padding:3px 2px 8px}
.project-message,.project-task{border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px}
.project-message-meta{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px}
.project-message-meta strong{color:#345c4a}
.project-message p,.project-task>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:5px 0 0;font-size:11px;line-height:1.5;color:var(--ink)}
.project-chat-form{display:grid;gap:6px;padding:8px 0}
.project-tasks-head{padding:8px 0 6px;border-top:1px solid var(--line);font-weight:600}
.project-tasks{display:grid;gap:7px}
.project-task-head span{font-size:9px;background:#f3eee5;border-radius:999px;padding:4px 7px;color:#596264}
.project-task h4{font-size:11px;margin:7px 0 3px}
.project-task details{margin-top:7px}
.project-task summary{font-size:10px;cursor:pointer;color:#345c4a}
.project-task pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:11px;line-height:1.5;margin:6px 0 0;color:var(--ink)}
.project-task-actions{justify-content:flex-start;margin-top:7px}
.project-task-actions button{flex:1}
@media(max-width:759px){.project-messages{max-height:240px}}
