:root{font-family:SF Pro Display,Segoe UI,sans-serif;font-size:13px;color:#111827;background:radial-gradient(circle at top left,rgba(217,236,255,.92),transparent 32%),linear-gradient(180deg,#f7f8fc,#eef1f7)}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{min-height:100%;overflow:hidden}button,input,textarea,select{font:inherit}input,textarea,select{width:100%;border:1px solid rgba(203,213,225,1);border-radius:12px;background:#fff;padding:8px 10px;outline:none}textarea{resize:vertical;min-height:84px}input:focus,textarea:focus,select:focus{border-color:#2563eb8c;box-shadow:0 0 0 3px #3b82f61a}h1,h2,h3{margin:0;line-height:1.1}h1,h2{font-size:17px;font-weight:700}h3{font-size:13px;font-weight:700}.app-shell{display:grid;grid-template-columns:300px minmax(0,1fr) 300px;gap:10px;height:100%;min-height:0;padding:10px}.app-shell.metrics-hidden{grid-template-columns:300px minmax(0,1fr)}.dialogs-panel,.chat-pane,.context-panel,.login-card,.modal-card{border:1px solid rgba(148,163,184,.18);background:#ffffffe0;box-shadow:0 12px 32px #0f172a12;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.dialogs-panel,.chat-pane,.context-panel,.login-card,.modal-card{border-radius:18px}.dialogs-panel{display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;min-height:0;overflow:hidden}.chat-pane{display:grid;grid-template-rows:auto minmax(0,1fr) auto;min-height:0;overflow:hidden}.context-panel{display:grid;grid-template-rows:auto minmax(0,1fr);min-height:0;overflow:hidden}.empty-chat-pane{place-items:center}.panel-header,.chat-header,.context-header,.modal-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px;border-bottom:1px solid rgba(226,232,240,.9)}.dialogs-header{align-items:center}.count-pill,.group-shortcut-count{min-width:28px;padding:3px 8px;border-radius:999px;background:#e2e8f0;color:#475569;font-size:11px;font-weight:700;text-align:center}.dialogs-toolbar{padding:10px 12px 0}.group-filter-strip{position:relative;padding:10px 12px 0}.group-filter-row{display:flex;flex-wrap:wrap;gap:6px}.group-filter-chip{border:1px solid rgba(203,213,225,1);border-radius:999px;padding:5px 10px;background:#fff;cursor:pointer;font-size:12px;color:#334155}.group-filter-chip.active{border-color:#2563eb59;background:#eff6ff;color:#1d4ed8;font-weight:700}.group-add-button{border:1px solid rgba(203,213,225,1);border-radius:999px;width:28px;height:28px;background:#fff;color:#334155;cursor:pointer;font-size:18px;line-height:1;padding:0}.group-add-button.active{border-color:#2563eb59;background:#eff6ff;color:#1d4ed8}.group-create-popover{position:absolute;top:calc(100% + 8px);left:12px;z-index:20;width:min(280px,calc(100% - 24px));border:1px solid rgba(203,213,225,1);border-radius:14px;background:#fffffffa;box-shadow:0 16px 40px #0f172a1f;padding:10px;display:grid;gap:10px}.group-create-popover-title{font-size:12px;font-weight:700;color:#334155}.dialog-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;padding:10px 11px;border:1px solid transparent;border-radius:14px;background:#f8fafc;text-align:left;cursor:pointer;transition:transform .12s ease,border-color .12s ease,background .12s ease}.dialog-card:hover{transform:translateY(-1px);border-color:#3b82f633}.dialog-card.selected{border-color:#2563eb59;background:linear-gradient(180deg,#eff6ff,#f8fbff)}.dialog-card-main{border:0;background:transparent;padding:0;text-align:left;cursor:pointer;min-width:0}.dialog-card-top{display:flex;gap:10px;align-items:baseline;justify-content:space-between}.dialog-title{font-size:13px;font-weight:700}.dialog-date{flex-shrink:0;font-size:11px;color:#64748b}.dialog-preview{color:#475569;font-size:12px;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.dialog-card-menu-wrap{position:relative}.dialog-menu-button{border:0;width:28px;height:28px;border-radius:999px;background:transparent;color:#64748b;cursor:pointer;font-size:20px;line-height:1;padding:0}.dialog-menu-button:hover,.dialog-menu-button.active{background:#e2e8f0d9;color:#0f172a}.dialog-menu-popover{position:absolute;top:calc(100% + 6px);right:0;z-index:25;width:220px;border:1px solid rgba(203,213,225,1);border-radius:14px;background:#fffffffa;box-shadow:0 16px 40px #0f172a1f;padding:10px;display:grid;gap:6px}.dialog-menu-title{font-size:12px;font-weight:700;color:#334155;margin-bottom:2px}.dialog-menu-item{border:1px solid rgba(226,232,240,1);border-radius:10px;background:#fff;color:#334155;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;text-align:left}.dialog-menu-item.active{border-color:#3b82f659;background:#eff6ff;color:#1d4ed8}.dialogs-scroll,.messages-scroll,.context-scroll{min-height:0;overflow-y:auto}.dialogs-scroll{display:flex;flex-direction:column;gap:6px;padding:10px 12px 12px}.messages-scroll{padding:14px}.message-row{display:flex;margin-bottom:10px}.message-row.inbound{justify-content:flex-start}.message-row.outbound{justify-content:flex-end}.message-bubble{position:relative;max-width:min(720px,82%);padding:9px 11px;border-radius:14px}.message-bubble.inbound{background:#fff;border:1px solid rgba(226,232,240,1)}.message-bubble.outbound{background:linear-gradient(180deg,#dbeafe,#bfdbfe)}.message-meta{display:flex;gap:8px;justify-content:space-between;margin-bottom:5px;font-size:11px;color:#64748b}.message-text{white-space:pre-wrap;word-break:break-word;line-height:1.45;font-size:13px}.generation-anchor{position:absolute;left:10px;bottom:-12px}.generation-pill{display:inline-flex;align-items:center;gap:4px;border:0;border-radius:999px;padding:3px 8px;background:#e2e8f0;color:#334155;font-size:11px;font-weight:700;cursor:pointer}.generation-pill.active{background:#dbeafe;color:#1d4ed8}.generation-popover{position:absolute;left:0;bottom:30px;width:min(360px,calc(100vw - 40px));max-height:320px;overflow-y:auto;border:1px solid rgba(203,213,225,1);border-radius:16px;background:#fffffffa;box-shadow:0 16px 40px #0f172a29;padding:10px;z-index:30}.generation-entry{padding:8px;border-radius:12px;background:#f8fafc}.generation-entry+.generation-entry{margin-top:8px}.generation-entry-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:11px;color:#64748b}.generation-status{border-radius:999px;padding:2px 7px;font-weight:700}.generation-status.status-pending{background:#fef9c3;color:#854d0e}.generation-status.status-sent{background:#dcfce7;color:#166534}.generation-status.status-dismissed,.generation-status.status-superseded{background:#e2e8f0;color:#475569}.generation-entry-text{white-space:pre-wrap;line-height:1.45;color:#0f172a}.generation-entry-edit{margin-top:8px;padding-top:8px;border-top:1px solid rgba(226,232,240,1);color:#334155;display:grid;gap:4px}.generation-entry-edit span{font-size:11px;font-weight:700;color:#64748b}.composer{border-top:1px solid rgba(226,232,240,.9);padding:12px 14px 14px;background:#f8fafcd9}.suggestion-card{margin-bottom:10px;padding:9px 10px;border-radius:14px;background:linear-gradient(180deg,#fff7ed,#fffbeb);border:1px solid rgba(251,191,36,.35)}.suggestion-header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:6px}.suggestion-header strong{display:block;font-size:12px}.suggestion-actions{display:flex;gap:6px;flex-shrink:0}.suggestion-body{color:#374151;font-size:12px;line-height:1.45;white-space:pre-wrap;max-height:164px;overflow-y:auto}.attachment-chip-row{margin-bottom:8px}.attachment-chip{display:inline-flex;align-items:center;gap:8px;border-radius:999px;padding:6px 10px;background:#eff6ff;border:1px solid rgba(191,219,254,1);color:#1d4ed8;font-size:12px;font-weight:600}.attachment-clear-button,.group-delete-button{border:0;width:20px;height:20px;border-radius:999px;background:#ffffffeb;color:#475569;cursor:pointer;display:inline-grid;place-items:center;padding:0}.composer-actions,.modal-actions,.context-save-row{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:10px}.primary-button{border:0;border-radius:999px;padding:8px 14px;background:linear-gradient(180deg,#2563eb,#1d4ed8);color:#fff;font-weight:700;font-size:12px;cursor:pointer}.primary-button:disabled{opacity:.6;cursor:default}.ghost-button{border:1px solid rgba(203,213,225,1);border-radius:999px;padding:6px 11px;background:#ffffffdb;cursor:pointer;font-weight:700;font-size:12px}.primary-ghost{border-color:#3b82f640;background:#eff6ff}.login-shell{display:grid;place-items:center;min-height:100%;padding:24px}.login-card{width:min(380px,100%);display:grid;gap:14px;padding:22px}.login-copy,.modal-copy,.subtle-note{margin:6px 0 0;color:#64748b;line-height:1.4;font-size:12px}.field{display:grid;gap:6px}.field span{font-size:12px;font-weight:700}.form-error{padding:8px 10px;border-radius:12px;background:#fef2f2;color:#b91c1c;font-size:12px}.form-error.inline{margin-bottom:8px}.empty-state{display:grid;place-items:center;min-height:100px;color:#64748b;font-size:12px;text-align:center}.empty-state.compact{min-height:54px}.media-image{display:block;max-width:100%;max-height:280px;border-radius:10px;margin-bottom:5px;object-fit:contain}.media-video{display:block;max-width:100%;max-height:240px;border-radius:10px;margin-bottom:5px}.media-audio{display:block;width:100%;margin-bottom:5px}.media-document{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:10px;background:#f1f5f9;border:1px solid rgba(203,213,225,1);font-size:12px;color:#2563eb;text-decoration:none;margin-bottom:5px}.media-document:hover{background:#eff6ff}.context-scroll{padding:12px;display:flex;flex-direction:column;gap:14px}.groups-panel{border:1px solid rgba(226,232,240,.9);border-radius:14px;padding:10px;background:#f8fafcc2;display:grid;gap:10px}.groups-panel-header{display:flex;align-items:center;justify-content:space-between}.groups-list{display:flex;flex-direction:column;gap:8px}.groups-list.compact{gap:6px}.group-editor-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.group-chip{border:1px solid rgba(203,213,225,1);border-radius:999px;padding:7px 10px;background:#fff;color:#334155;cursor:pointer;text-align:left}.group-chip.active{border-color:#3b82f659;background:#eff6ff;color:#1d4ed8;font-weight:700}.group-chip:disabled{cursor:default;opacity:.6}.group-create-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.context-field{display:flex;flex-direction:column;gap:6px}.context-field-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:#64748b}.context-status{font-size:11px;color:#64748b}.context-status.saved{color:#16a34a}.context-status.error{color:#b91c1c}.hidden-file-input{display:none}.modal-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:#0f172a3d}.modal-card{width:min(560px,100%);padding:0;overflow:hidden}.modal-card form{display:block}.modal-card .field,.modal-card .form-error,.modal-actions{margin:0 14px 14px}.modal-card .field:first-of-type{margin-top:14px}@media(max-width:1150px){.app-shell{grid-template-columns:260px minmax(0,1fr)}.context-panel{display:none}.app-shell.metrics-hidden{grid-template-columns:260px minmax(0,1fr)}}@media(max-width:820px){body{overflow:auto}.app-shell{grid-template-columns:1fr;grid-template-rows:minmax(240px,auto) minmax(520px,1fr);height:auto;min-height:100%}.dialogs-panel{grid-template-rows:auto auto auto minmax(0,1fr)}.chat-pane{min-height:70vh}.message-bubble{max-width:92%}.suggestion-header,.composer-actions,.modal-header,.modal-actions{flex-direction:column;align-items:stretch}.composer-actions .primary-button,.composer-actions .ghost-button,.modal-actions .primary-button,.modal-actions .ghost-button{width:100%}.group-create-row{grid-template-columns:1fr}.dialog-menu-popover,.group-create-popover{width:min(260px,calc(100vw - 36px))}}
