*{box-sizing:border-box} :root{color-scheme:dark;--bg:#212121;--side:#171717;--panel:#2f2f2f;--panel-hover:#292929;--line:#3b3b3b;--text:#ececec;--muted:#a0a0a0;--accent:#fff;--green:#5cbd8b}html,body{margin:0;min-height:100%;height:100%;background:var(--bg);color:var(--text);font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,textarea,input{font:inherit}button{color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid #aaa;outline-offset:3px}.app-shell{display:flex;width:100%;height:100dvh;min-height:480px;overflow:hidden}.sidebar{order:2;width:260px;flex:0 0 260px;background:var(--side);display:flex;flex-direction:column;padding:14px 12px 12px;transition:transform .2s ease,width .2s ease;z-index:30}.sidebar-top{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 5px 0 7px;margin-bottom:19px}.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-weight:700;font-size:19px}.brand-mark,.welcome-mark{width:30px;height:30px;border:1px solid #777;border-radius:10px;display:grid;place-items:center;font-weight:800;font-size:18px;background:#262626}.brand-title{letter-spacing:-.4px}.icon-button{width:36px;height:36px;border:0;border-radius:9px;background:transparent;color:#bcbcbc;font-size:20px;display:inline-grid;place-items:center}.icon-button:hover{background:#2a2a2a;color:white}.sidebar-collapse{font-size:27px}.new-chat{display:flex;align-items:center;gap:11px;width:100%;min-height:42px;padding:0 12px;background:transparent;border:1px solid #424242;border-radius:10px;text-align:left;font-weight:550}.new-chat:hover{background:#252525}.plus{font-size:23px;line-height:1;font-weight:300}.sidebar-label{margin:27px 8px 9px;color:#929292;font-size:12px;font-weight:600}.conversation-list{overflow:auto;flex:1;display:flex;flex-direction:column;gap:3px;min-height:0}.history-item{display:flex;align-items:center;gap:6px;border-radius:8px;padding:0 7px;min-height:38px;color:#d3d3d3}.history-item.active{background:#2a2a2a}.history-open{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;border:0;padding:8px 2px;background:transparent;text-align:left;font-size:13px}.history-delete{border:0;background:transparent;color:#888;border-radius:6px;min-width:25px;height:26px;opacity:0}.history-item:hover .history-delete,.history-item:focus-within .history-delete{opacity:1}.history-delete:hover{background:#444;color:white}.history-empty{font-size:12px;color:#777;padding:9px 8px}.sidebar-bottom{border-top:1px solid #2d2d2d;padding:13px 3px 2px}.local-indicator{display:flex;align-items:center;gap:10px;padding:5px 6px}.status-dot{width:9px;height:9px;flex-shrink:0;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px #234034}.local-indicator strong,.local-indicator small{display:block}.local-indicator strong{font-size:13px;font-weight:600}.local-indicator small{font-size:11px;color:#898989}.sidebar-note{font-size:11px;color:#747474;padding:9px 6px 2px}.workspace{order:1;flex:1;min-width:0;height:100%;display:flex;flex-direction:column;background:var(--bg)}.topbar{height:58px;flex:0 0 58px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:12px}.topbar-left,.topbar-right{display:flex;align-items:center;gap:10px;min-width:0}.menu-button{display:none}.topbar-title{font-size:16px;font-weight:650;letter-spacing:-.2px}.model-badge{font-size:11px;padding:3px 8px;border-radius:99px;background:#303030;color:#c8c8c8;border:1px solid #414141}.username{font-size:12px;color:#a8a8a8;max-width:130px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logout-form{margin:0}.logout-button{background:transparent;border:1px solid #444;border-radius:8px;padding:6px 10px;font-size:12px;color:#c4c4c4}.logout-button:hover{background:#303030;color:#fff}.chat-main{display:flex;flex-direction:column;flex:1;min-height:0;position:relative}.chat-scroll{flex:1;min-height:0;overflow:auto;scroll-behavior:smooth;overscroll-behavior:contain}.welcome{max-width:760px;margin:clamp(36px,10vh,105px) auto 40px;padding:0 24px;text-align:center}.welcome-mark{width:46px;height:46px;border-radius:15px;font-size:25px;margin:0 auto 21px;color:#ececec;background:#2e2e2e;border-color:#555}.welcome h1{font-size:30px;line-height:1.25;font-weight:600;letter-spacing:-.9px;margin:0 0 12px}.welcome>p{margin:0;color:#9d9d9d;font-size:14px}.suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:35px auto 0;max-width:620px;text-align:left}.suggestion{display:flex;align-items:center;gap:12px;background:transparent;border:1px solid #414141;border-radius:13px;padding:13px 14px;min-height:72px;text-align:left;transition:background .15s,border-color .15s}.suggestion:hover{background:#2b2b2b;border-color:#555}.suggestion-symbol{width:34px;height:34px;border:1px solid #444;border-radius:10px;display:grid;place-items:center;font-size:19px;color:#c5c5c5;flex-shrink:0}.suggestion strong,.suggestion small{display:block}.suggestion strong{font-size:13px;font-weight:600}.suggestion small{font-size:12px;color:#929292;margin-top:2px}.messages{max-width:790px;width:100%;margin:0 auto;padding:12px 25px 30px;display:flex;flex-direction:column;gap:29px}.message-row{display:flex;gap:13px;width:100%;min-width:0;animation:appear .16s ease}.message-row.user{justify-content:flex-end}.message-row.assistant{justify-content:flex-start}.message-avatar{width:29px;height:29px;flex:0 0 29px;border-radius:50%;background:#303030;border:1px solid #464646;display:grid;place-items:center;font-size:13px;font-weight:750;margin-top:1px}.message-row.user .message-avatar{display:none}.message-body{min-width:0;max-width:100%;overflow-wrap:anywhere;line-height:1.75;font-size:15px}.message-row.user .message-body{background:#303030;border-radius:22px;padding:10px 17px;max-width:min(82%,620px);white-space:pre-wrap;line-height:1.55}.message-row.assistant .message-body{flex:1;padding:1px 0}.answer-text p{margin:0 0 13px}.answer-text p:last-child{margin-bottom:0}.answer-text h2,.answer-text h3,.answer-text h4{line-height:1.35;margin:19px 0 9px;font-weight:650}.answer-text h2{font-size:19px}.answer-text h3{font-size:16px}.answer-text h4{font-size:15px}.answer-text ul,.answer-text ol{padding-left:24px;margin:6px 0 14px}.answer-text li{margin:4px 0}.answer-text code,.file-header code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em;background:#303030;padding:2px 5px;border-radius:5px}.code-card{margin:14px 0 16px;border:1px solid #444;border-radius:12px;overflow:hidden;background:#101010}.code-toolbar{min-height:39px;display:flex;align-items:center;justify-content:space-between;gap:9px;background:#292929;border-bottom:1px solid #414141;padding:5px 9px 5px 13px}.code-language{color:#c5c5c5;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.code-actions{display:flex;gap:5px;flex-shrink:0}.small-action{border:1px solid #484848;background:#303030;color:#e4e4e4;border-radius:7px;padding:5px 9px;font-size:11px}.small-action:hover{background:#454545}.code-content{display:block;overflow:auto;max-height:560px;margin:0;padding:14px 15px;color:#e0e0e0;font:12.5px/1.65 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;white-space:pre;tab-size:4}.file-strip{display:flex;align-items:center;gap:8px;padding:9px 12px;background:#1c1c1c;border-top:1px solid #393939;color:#bdbdbd;font-size:12px}.file-glyph{font-size:15px}.file-strip .file-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-strip .download-action{border:1px solid #4b4b4b;background:#303030;color:#f0f0f0;padding:5px 9px;border-radius:7px;font-size:11px}.file-strip .download-action:hover{background:#454545}.sources{margin-top:17px;border-top:1px solid #414141;padding-top:11px}.sources-title{font-size:12px;color:#aaa;font-weight:650;margin-bottom:7px}.source-item{margin:9px 0;line-height:1.45}.source-item a{color:#b8d2ff;text-decoration:none;font-size:12px;overflow-wrap:anywhere}.source-item a:hover{text-decoration:underline}.source-item p{margin:3px 0 0;font-size:12px;color:#9a9a9a}.message-actions{display:flex;gap:5px;margin-top:9px;opacity:.62}.message-actions:hover{opacity:1}.message-actions button{border:0;background:transparent;border-radius:7px;padding:5px 7px;color:#aaa;font-size:11px}.message-actions button:hover{background:#303030;color:#fff}.error-text{color:#ff9696}.loading-line{display:flex;align-items:center;gap:10px;color:#b8b8b8}.loading-dots{display:flex;gap:4px}.loading-dots i{height:5px;width:5px;border-radius:50%;background:#a9a9a9;animation:pulse 1s infinite ease-in-out}.loading-dots i:nth-child(2){animation-delay:.15s}.loading-dots i:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.composer-area{flex:0 0 auto;padding:9px 24px max(12px,env(safe-area-inset-bottom));background:linear-gradient(to bottom,rgba(33,33,33,0),#212121 20%)}.composer-wrap{max-width:790px;margin:0 auto}.composer{width:100%;background:#2f2f2f;border:1px solid #454545;border-radius:25px;padding:13px 12px 9px 17px;box-shadow:0 3px 12px #00000012}.composer:focus-within{border-color:#5b5b5b}.composer textarea{display:block;width:100%;resize:none;max-height:200px;min-height:31px;border:0;outline:0;background:transparent;color:#f2f2f2;font-size:15px;line-height:1.5;padding:4px 1px 9px;overflow-y:auto}.composer textarea::placeholder{color:#969696}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.composer-options{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.toggle-option{display:inline-flex;align-items:center;gap:6px;color:#b6b6b6;font-size:11px;cursor:pointer;padding:5px 7px;border-radius:7px}.toggle-option:hover{background:#3b3b3b}.toggle-option input{position:absolute;opacity:0;width:1px;height:1px}.toggle-track{width:24px;height:14px;border:1px solid #666;border-radius:20px;position:relative;display:inline-block;background:#454545;transition:.15s}.toggle-track:after{content:"";position:absolute;width:8px;height:8px;left:2px;top:2px;border-radius:50%;background:#aaa;transition:.15s}.toggle-option input:checked+.toggle-track{background:#cfcfcf;border-color:#cfcfcf}.toggle-option input:checked+.toggle-track:after{left:12px;background:#222}.toggle-option input:focus-visible+.toggle-track{outline:2px solid #aaa;outline-offset:2px}.send-side{display:flex;align-items:center;gap:9px}.enter-hint{font-size:10px;color:#848484;white-space:nowrap}.send-button{width:34px;height:34px;flex:0 0 34px;border:0;border-radius:50%;background:#f2f2f2;color:#242424;display:grid;place-items:center}.send-button:hover{background:white}.send-button:disabled{opacity:.45;cursor:wait}.send-arrow{font-size:23px;line-height:1;font-weight:700;transform:translateY(-1px)}.disclaimer{text-align:center;font-size:10.5px;color:#828282;margin:8px 7px 0;line-height:1.4}.mobile-overlay{display:none}@media(min-width:1100px){.messages{padding-left:35px;padding-right:35px}}@media(max-width:760px){.sidebar{position:fixed;right:0;left:auto;top:0;bottom:0;width:275px;max-width:85vw;box-shadow:-12px 0 35px #0007;transform:translateX(105%)}.sidebar.open{transform:translateX(0)}.mobile-overlay.open{display:block;position:fixed;inset:0;background:#0008;z-index:25}.menu-button{display:inline-grid}.topbar{padding:0 12px}.topbar-right{gap:7px}.username{max-width:85px}.chat-scroll{padding-bottom:0}.welcome{margin:clamp(24px,7vh,65px) auto 30px;padding:0 17px}.welcome h1{font-size:25px}.welcome>p{font-size:13px}.suggestions{grid-template-columns:1fr;margin-top:24px;gap:8px}.suggestion{min-height:60px;padding:9px 12px}.suggestion-symbol{width:31px;height:31px}.messages{padding:14px 17px 24px;gap:24px}.message-row{gap:9px}.message-body{font-size:14px}.message-row.user .message-body{max-width:91%}.composer-area{padding:6px 10px max(8px,env(safe-area-inset-bottom))}.composer{padding:10px 9px 8px 13px;border-radius:21px}.composer textarea{font-size:14px}.enter-hint{display:none}.disclaimer{font-size:10px}.code-content{font-size:11.5px;padding:12px}.topbar-title{font-size:15px}}@media(max-width:380px){.model-badge{display:none}.username{max-width:70px}.composer-options{gap:0}.toggle-option{padding:4px 3px}.suggestion{gap:9px}}

[hidden]{display:none!important}.edit-notice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 4px 10px;color:#bcbcbc;font-size:12px}.edit-notice button{border:1px solid #505050;background:#383838;color:#eee;border-radius:7px;padding:5px 9px;font-size:11px;flex-shrink:0}.user-message-actions{justify-content:flex-end;margin-top:5px}.message-row.user .user-message-actions{opacity:.8}.message-row.user .user-message-actions button{color:#bcbcbc}.message-row.user .user-message-actions button:hover{background:#4a4a4a;color:#fff}

/* Nagyou projectAI model/admin settings panel */
.settings-open{border:1px solid #444;background:#292929;color:#eee;border-radius:9px;padding:7px 10px;font-size:12px;white-space:nowrap}.settings-open:hover{background:#3b3b3b}
.settings-overlay{display:none;position:fixed;inset:0;background:#0008;z-index:48}.settings-overlay.open{display:block}
.settings-panel{position:fixed;top:0;right:0;bottom:0;width:min(390px,92vw);z-index:49;background:#191919;border-left:1px solid #393939;box-shadow:-18px 0 48px #0006;padding:22px;overflow:auto;transform:translateX(105%);transition:transform .22s ease;display:flex;flex-direction:column;gap:19px}.settings-panel.open{transform:translateX(0)}
.settings-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:15px;border-bottom:1px solid #343434}.settings-panel-header h2{font-size:20px;line-height:1.25;margin:0 0 4px;font-weight:650}.settings-panel-header p{margin:0;color:#a0a0a0;font-size:12px}.settings-close{width:34px;height:34px;border:1px solid #444;border-radius:9px;background:#252525;color:#eee;font-size:24px;line-height:1}.settings-section{border:1px solid #383838;background:#222;border-radius:13px;padding:15px;display:flex;flex-direction:column;gap:10px}.settings-label{font-size:13px;font-weight:650;color:#f2f2f2}.settings-select,.settings-input{width:100%;min-height:42px;border:1px solid #4a4a4a;border-radius:9px;background:#171717;color:#f3f3f3;padding:9px 11px;font:inherit}.settings-select:focus,.settings-input:focus{outline:2px solid #8a8a8a;outline-offset:1px}.settings-select option:disabled{color:#777}.settings-help{font-size:12px;line-height:1.55;color:#a6a6a6;margin:0}.settings-primary,.settings-secondary{min-height:39px;border-radius:9px;padding:8px 11px;font-size:13px;font-weight:600}.settings-primary{border:1px solid #e3e3e3;background:#e8e8e8;color:#191919}.settings-primary:hover{background:#fff}.settings-secondary{border:1px solid #484848;background:#2a2a2a;color:#ddd}.settings-status{font-size:12px;line-height:1.5;color:#aaa;margin:0;overflow-wrap:anywhere}.settings-status.success{color:#8be0ae}.settings-status.error{color:#ff9999}.settings-footer{margin-top:auto;padding:12px 3px;color:#777;font-size:11px;line-height:1.5}
@media(max-width:760px){.topbar{gap:6px;padding:0 9px}.settings-open{padding:7px 8px;font-size:11px}.settings-panel{padding:18px}}
/* NAGYOU_PER_ACCOUNT_CHAT_ADMIN_V1 */
.admin-chat-section{margin-top:12px;padding-top:10px;border-top:1px solid var(--line,#393939);}
.admin-chats-toggle{width:100%;border:1px solid var(--line,#393939);background:transparent;color:var(--text,#eee);border-radius:10px;padding:10px 11px;text-align:left;font:inherit;cursor:pointer;}
.admin-chats-toggle:hover{background:var(--panel-hover,#292929)}
.admin-chat-users{max-height:280px;overflow:auto;margin-top:8px;display:flex;flex-direction:column;gap:10px;}
.admin-chat-users[hidden]{display:none}
.admin-chat-user-group{border-radius:9px;background:rgba(127,127,127,.08);padding:8px;}
.admin-chat-user-name{font-size:12px;font-weight:700;color:var(--muted,#aaa);padding:2px 5px 7px;overflow-wrap:anywhere;}
.admin-chat-conversation{display:block;width:100%;padding:8px;border:0;border-radius:7px;background:transparent;color:var(--text,#eee);text-align:left;font:inherit;cursor:pointer;overflow-wrap:anywhere;}
.admin-chat-conversation:hover{background:var(--panel-hover,#292929)}
.admin-chat-conversation small{display:block;color:var(--muted,#aaa);font-size:11px;margin-top:3px;}
.admin-section-note{font-size:11px;line-height:1.45;color:var(--muted,#aaa);margin:8px 2px 0;}
.admin-chat-modal[hidden]{display:none!important}
.admin-chat-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;}
.admin-chat-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(5px);}
.admin-chat-dialog{position:relative;z-index:1;width:min(850px,100%);max-height:min(88vh,900px);display:flex;flex-direction:column;background:var(--panel,#252525);color:var(--text,#eee);border:1px solid var(--line,#444);border-radius:18px;box-shadow:0 24px 90px rgba(0,0,0,.5);overflow:hidden;}
.admin-chat-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid var(--line,#444);}
.admin-chat-dialog-header h2{margin:0;font-size:18px;}
.admin-chat-dialog-header p{margin:5px 0 0;color:var(--muted,#aaa);font-size:12px;overflow-wrap:anywhere;}
.admin-chat-dialog-header button{border:0;background:transparent;color:inherit;font-size:26px;line-height:1;cursor:pointer;}
.admin-chat-content{padding:18px 20px;overflow:auto;white-space:normal;}
.admin-transcript-item{border-radius:12px;padding:12px 14px;margin:0 0 12px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;background:rgba(127,127,127,.10);}
.admin-transcript-item.assistant{background:rgba(127,127,127,.06);border:1px solid var(--line,#393939);}
.admin-transcript-role{font-size:11px;text-transform:none;color:var(--muted,#aaa);margin-bottom:6px;font-weight:700;}
.admin-empty{padding:12px;color:var(--muted,#aaa);font-size:13px;}
@media(max-width:640px){.admin-chat-modal{padding:8px}.admin-chat-dialog{max-height:94vh;border-radius:13px}.admin-chat-content{padding:12px}.admin-chat-dialog-header{padding:13px}}
