:root{--bg: #f5f7fa;--panel: #ffffff;--text: #111827;--muted: #6b7280;--border: #e5e7eb}*{scrollbar-width:thin;scrollbar-color:rgba(155,155,155,.5) transparent}*::-webkit-scrollbar{width:8px;height:8px}*::-webkit-scrollbar-track{background:transparent}*::-webkit-scrollbar-thumb{background-color:#9b9b9b80;border-radius:10px;border:2px solid transparent;background-clip:padding-box}*::-webkit-scrollbar-thumb:hover{background-color:#9b9b9bb3}.theme-dark *::-webkit-scrollbar-thumb{background-color:#64646466}.theme-dark *::-webkit-scrollbar-thumb:hover{background-color:#78787899}.theme-dark{--bg: #0f172a;--panel: #111827;--text: #e5e7eb;--muted: #9ca3af;--border: #374151}body,.theme-dark .chat-container,.theme-dark .bots-management,.theme-dark .completed-requests{background:var(--bg);color:var(--text)}.theme-dark .app-header,.theme-dark .app-tabs,.theme-dark .chat-header,.theme-dark .chat-input-form,.theme-dark .request-item,.theme-dark .bot-card,.theme-dark .modal-content,.theme-dark .completed-requests-table,.theme-dark .bots-management .modal-content{background:var(--panel);color:var(--text);border-color:var(--border)}.theme-dark .operators-management .operator-item,.theme-dark .operators-management .operator-form{background:var(--panel);color:var(--text);border:1px solid var(--border);box-shadow:0 2px 8px #00000040}.theme-dark .operators-management .operator-details,.theme-dark .operators-management .operator-last-seen{color:var(--muted)}.theme-dark .operators-management .btn-add,.theme-dark .operators-management .btn-edit,.theme-dark .operators-management .edit-form button:first-of-type{filter:saturate(.9)}.theme-dark .operators-management .edit-form button:last-of-type{background:#ffffff0f;color:var(--text);border:1px solid var(--border)}.theme-dark .operators-management .operator-form input,.theme-dark .operators-management .operator-form select,.theme-dark .operators-management .edit-form select{background:var(--panel);color:var(--text);border:1px solid var(--border)}.theme-dark .operators-management .operator-role.admin{background:#ef444440;color:#ffd1d1}.theme-dark .operators-management .operator-role.operator{background:#4ecdc438;color:#c9fff8}.theme-dark .app-tabs{background:var(--panel);border-bottom:1px solid var(--border)}.theme-dark .app-tabs button{color:var(--text);opacity:.86}.theme-dark .app-tabs button:hover{background:#ffffff0a;opacity:1}.theme-dark .app-tabs button.active{background:var(--panel);border-bottom-color:#8b93ff;color:#c7cbff;opacity:1}.theme-dark .request-list{background:var(--bg);border-right:1px solid var(--border)}.theme-dark .request-list h2{background:var(--panel);border-bottom:1px solid var(--border);color:var(--text)}.theme-dark .request-filters{background:var(--panel);border-bottom:1px solid var(--border)}.theme-dark .request-filters select{background:var(--panel);color:var(--text);border:1px solid var(--border)}.theme-dark .filter-onlymine{color:var(--text)}.theme-dark .request-item{background:var(--panel);border:1px solid var(--border)}.theme-dark .request-item:hover{background:#ffffff0a;border-color:#8b93ff}.theme-dark .request-item.selected{background:#8b93ff1f;border-color:#8b93ff;box-shadow:0 2px 8px #00000040}.theme-dark .request-user{color:var(--text)}.theme-dark .request-time,.theme-dark .request-amount,.theme-dark .request-telegram-id{color:var(--muted)}.theme-dark .status-in-progress{background:#8b93ff2e;color:#cdd2ff}.theme-dark .status-pending{background:#ffd3662e;color:#ffe7a3}.theme-dark .status-completed{background:#34d3992e;color:#baf6de}.theme-dark .status-cancelled{background:#ef44442e;color:#ffb4b4}.theme-dark input,.theme-dark textarea,.theme-dark select{background:var(--panel);color:var(--text);border:1px solid var(--border)}.theme-dark input::placeholder,.theme-dark textarea::placeholder{color:var(--muted)}.theme-dark input:focus,.theme-dark textarea:focus,.theme-dark select:focus{border-color:#8b93ff;box-shadow:0 0 0 2px #8b93ff40;outline:none}.theme-dark .completed-requests-table{background:var(--panel);border-color:var(--border)}.theme-dark .completed-requests-table td{border-bottom:1px solid var(--border)}.theme-dark .completed-requests-table tbody tr:hover{background:#ffffff0a}.theme-dark .completed-requests-table tbody tr:nth-child(odd){background:#ffffff05}.theme-dark .message-user .message-text{background:var(--panel);color:var(--text);border:1px solid var(--border)}.theme-dark .chat-messages{background:var(--bg)}.theme-dark .chat-info-banner{background:#ffffff14;border:1px solid var(--border);box-shadow:inset 0 0 0 1px #ffffff08}.theme-dark .chat-info-banner .chat-info-line+.chat-info-line{border-top:1px solid var(--border);padding-top:.25rem}.theme-dark .chat-actions{background:#ffffff0a}.theme-dark .file-button{background:#ffffff0f;border:1px solid var(--border);color:var(--text)}.theme-dark .file-button:hover{background:#ffffff1a}.theme-dark .chat-input{background:var(--panel);color:var(--text);border:1px solid var(--border)}.theme-dark .chat-input::placeholder{color:var(--muted)}.theme-dark .chat-input:focus{border-color:#8b93ff;box-shadow:0 0 0 2px #8b93ff40}.theme-dark .chat-header h3{color:var(--text)}.theme-dark .chat-header{border-bottom:1px solid var(--border)}.theme-dark .chat-info-line{color:var(--text)}.theme-dark .badge-new{background:#b94a4a;color:#ffdede}.theme-dark .chat-user-info,.theme-dark .chat-bot-info,.theme-dark .message-time,.theme-dark .totals-title,.theme-dark .request-time{color:var(--muted)}*{margin:0;padding:0;box-sizing:border-box}#root{height:100vh;width:100vw}.login-container{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#667eea,#764ba2)}.login-box{background:#fff;padding:2rem;border-radius:10px;box-shadow:0 10px 25px #0003;width:100%;max-width:400px}.login-box h2{margin-bottom:1.5rem;text-align:center;color:#333}.form-group{margin-bottom:1.5rem}.form-group label{display:block;margin-bottom:.5rem;color:#555;font-weight:500}.form-group input{width:100%;padding:.75rem;border:1px solid #ddd;border-radius:5px;font-size:1rem;box-sizing:border-box}.form-group input:focus{outline:none;border-color:#667eea}.login-box button{width:100%;padding:.75rem;background:#667eea;color:#fff;border:none;border-radius:5px;font-size:1rem;cursor:pointer;transition:background .3s}.login-box button:hover:not(:disabled){background:#5568d3}.login-box button:disabled{background:#ccc;cursor:not-allowed}.error{color:#e74c3c;margin-bottom:1rem;text-align:center;font-size:.9rem}.request-list{width:350px;min-width:350px;border-right:1px solid #e0e0e0;height:100%;overflow-y:auto;background:#f5f5f5;flex-shrink:0;position:relative}@media(max-width:768px){.request-list{width:100%;min-width:100%;border-right:none}}.request-list h2{padding:1rem;margin:0;background:#fff;border-bottom:1px solid #e0e0e0;position:sticky;top:0;z-index:10}@media(max-width:768px){.request-list h2{padding:.75rem;font-size:1.1rem}}.no-requests{padding:2rem;text-align:center;color:#999}.request-list-loading-overlay{position:absolute;inset:0;background:#ffffffd9;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:100;display:flex;align-items:center;justify-content:center}.request-list-loading-spinner{display:flex;flex-direction:column;align-items:center;gap:1rem}.request-list-loading-spinner span{color:#667eea;font-weight:500;font-size:.9rem}.spinner{width:40px;height:40px;border:4px solid rgba(102,126,234,.2);border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite}.theme-dark .request-list-loading-overlay{background:#0f172ae6;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.theme-dark .request-list-loading-spinner span{color:#8b93ff}.theme-dark .spinner{border-color:#8b93ff33;border-top-color:#8b93ff}.request-items-wrapper{position:relative;flex:1;min-height:0;overflow-y:auto}.request-items{padding:.5rem}.request-filters{display:flex;flex-direction:column;gap:1rem;padding:.75rem 1rem;background:#fff;border-bottom:1px solid #e0e0e0}@media(max-width:768px){.request-filters{padding:.5rem .75rem;gap:.75rem}}.filter-group{display:flex;flex-direction:column;gap:.5rem}.filter-group-title{font-size:.8rem;font-weight:600;color:#6b7280;text-transform:uppercase;letter-spacing:.5px;margin-bottom:.5rem}.status-dropdown-wrapper{position:relative;width:100%}.status-selected-tags{display:flex;flex-wrap:wrap;gap:.5rem;padding:.5rem;min-height:40px;border:1px solid #d1d5db;border-radius:8px;background:#fff;align-items:center;cursor:pointer;transition:border-color .2s}.status-selected-tags:hover{border-color:#667eea}.status-placeholder{color:#9ca3af;font-size:.9rem}.status-tag{display:inline-flex;align-items:center;gap:.5rem;padding:.35rem .75rem;background:#667eea;color:#fff;border-radius:16px;font-size:.85rem;font-weight:500}.status-tag-remove{background:none;border:none;color:#fff;font-size:1.2rem;line-height:1;cursor:pointer;padding:0;width:18px;height:18px;display:flex;align-items:center;justify-content:center;border-radius:50%;transition:background-color .2s}.status-tag-remove:hover{background:#fff3}.status-dropdown-toggle{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);background:none;border:none;color:#6b7280;font-size:.8rem;cursor:pointer;padding:.25rem;transition:color .2s,transform .2s}.status-dropdown-toggle:hover{color:#667eea}.status-dropdown-wrapper:has(.status-dropdown-menu) .status-dropdown-toggle{transform:translateY(-50%) rotate(180deg)}.status-dropdown-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:100;display:flex;flex-direction:column;max-height:200px;overflow-y:auto;margin-top:4px}.status-option{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;cursor:pointer;-webkit-user-select:none;user-select:none;transition:background-color .15s;border-bottom:1px solid #f0f0f0;margin:0}.status-option:last-child{border-bottom:none}.status-option:hover{background:#667eea14}.status-option input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#667eea;margin:0;flex-shrink:0}.status-option input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed}.status-option-color{width:16px;height:16px;border-radius:50%;border:2px solid rgba(0,0,0,.1);flex-shrink:0}.theme-dark .status-option-color{border-color:#fff3}.status-option span:not(.status-option-color){font-size:.9rem;color:#374151;font-weight:500;flex:1}.status-option:has(input[type=checkbox]:checked){background:#667eea1f}.status-option:has(input[type=checkbox]:checked) span{color:#667eea;font-weight:600}.status-option:has(input[type=checkbox]:disabled){opacity:.5;cursor:not-allowed}.filter-checkboxes{display:flex;gap:.75rem;flex-wrap:wrap}.filter-checkbox{display:flex;align-items:center;gap:.5rem;cursor:pointer;-webkit-user-select:none;user-select:none;padding:.4rem .6rem;border-radius:6px;transition:background-color .2s}.filter-checkbox:hover{background:#667eea0d}.filter-checkbox input[type=checkbox]{width:18px;height:18px;cursor:pointer;accent-color:#667eea;margin:0;flex-shrink:0}.filter-checkbox input[type=checkbox]:disabled{opacity:.5;cursor:not-allowed}.filter-checkbox input[type=checkbox]:disabled+.checkbox-label{opacity:.5;cursor:not-allowed}.checkbox-label{font-size:.875rem;color:#374151;font-weight:500}.filter-checkbox:hover .checkbox-label{color:#667eea}.theme-dark .request-filters{background:var(--panel);border-bottom-color:var(--border)}.theme-dark .filter-group-title{color:var(--muted)}.theme-dark .status-selected-tags{background:var(--panel);border-color:var(--border)}.theme-dark .status-selected-tags:hover{border-color:#8b93ff}.theme-dark .status-placeholder{color:var(--muted)}.theme-dark .status-tag{background:#8b93ff}.theme-dark .status-dropdown-toggle{color:var(--muted)}.theme-dark .status-dropdown-toggle:hover{color:#8b93ff}.theme-dark .status-dropdown-menu{background:var(--panel);border-color:var(--border);box-shadow:0 4px 12px #0006}.theme-dark .status-option{border-bottom-color:var(--border)}.theme-dark .status-option:hover{background:#8b93ff1a}.theme-dark .status-option span:not(.status-option-color){color:var(--text)}.theme-dark .status-option:has(input[type=checkbox]:checked){background:#8b93ff26}.theme-dark .status-option:has(input[type=checkbox]:checked) span{color:#8b93ff}.theme-dark .status-option input[type=checkbox]{accent-color:#8b93ff}.theme-dark .filter-checkbox:hover{background:#8b93ff1a}.theme-dark .filter-checkbox:hover .checkbox-label{color:#8b93ff}.theme-dark .filter-checkbox input[type=checkbox]{accent-color:#8b93ff}.request-item{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:1rem;margin-bottom:.5rem;cursor:pointer;transition:all .3s cubic-bezier(.4,0,.2,1);transform:translate(0);opacity:1;position:relative}@keyframes slideInFromTop{0%{opacity:0;transform:translateY(-20px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}.request-item-new{animation:slideInFromTop .3s cubic-bezier(.4,0,.2,1)}@keyframes slideOutToBottom{0%{opacity:1;transform:translateY(0) scale(1);max-height:500px;margin-bottom:.5rem}to{opacity:0;transform:translateY(20px) scale(.95);max-height:0;margin-bottom:0;padding-top:0;padding-bottom:0}}.request-item-removing{animation:slideOutToBottom .3s cubic-bezier(.4,0,.2,1) forwards;overflow:hidden}.request-item-updated{animation:pulseUpdate .5s ease-out}@keyframes pulseUpdate{0%{background-color:#fff}50%{background-color:#667eea1a}to{background-color:#fff}}.theme-dark .request-item-updated{animation:pulseUpdateDark .5s ease-out}@keyframes pulseUpdateDark{0%{background-color:var(--panel)}50%{background-color:#8b93ff26}to{background-color:var(--panel)}}.request-items{position:relative}.request-item{will-change:transform,opacity}@media(max-width:768px){.request-item{padding:.75rem;margin-bottom:.5rem;border-radius:6px}}.request-item:hover{background:#f0f0f0;border-color:#667eea}.request-item.selected{background:#e8eaf6;border-color:#667eea;box-shadow:0 2px 8px #667eea33}.theme-dark .request-item.selected{background:linear-gradient(180deg,#8b93ff24,#8b93ff14);border-color:#8b93ff;box-shadow:0 8px 28px #00000059}.request-item.unread{border-color:#8b93ff;box-shadow:0 0 0 2px #8b93ff40}.theme-dark .request-item.unread{border-color:#a2a8ff;box-shadow:0 0 0 2px #8b93ff59}.request-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.request-user{font-weight:600;color:#333}.request-telegram-id{font-size:.75rem;color:#6b7280}.badge-new{background:#ff4757;color:#fff;border-radius:8px;padding:.1rem .4rem;font-size:.7rem;margin-left:6px;text-transform:uppercase}.request-status{padding:.25rem .75rem;border-radius:12px;font-size:.75rem;font-weight:500;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.2)}.request-exchange{font-size:1.1rem;font-weight:600;color:#667eea;margin-bottom:.25rem}.request-amount{color:#666;font-size:.9rem;margin-bottom:.25rem}.request-time{color:#999;font-size:.8rem;margin-bottom:.25rem}.request-messages-count{color:#667eea;font-size:.85rem;font-weight:500;margin-top:.5rem}.request-operator{font-size:.85rem;color:#667eea;margin-top:.5rem;font-weight:700}.request-operator-free{font-size:.85rem;color:#4ecdc4;margin-top:.5rem;font-weight:700}.request-bot{color:#667eea;font-size:.85rem;margin-top:.5rem;font-weight:500}.chat-container{display:flex;flex-direction:column;height:100%;flex:1;overflow:hidden;position:relative}.chat-back-button{display:none;padding:.75rem 1rem;background:#667eea;color:#fff;border:none;border-bottom:1px solid rgba(255,255,255,.2);cursor:pointer;font-size:.9rem;font-weight:500;width:100%;text-align:left;transition:background .3s;position:sticky;top:0;z-index:10;box-shadow:0 2px 4px #0000001a}.chat-back-button:hover{background:#5568d3}.unread-indicator{animation:pulse 2s infinite}@keyframes pulse{0%,to{opacity:1;transform:scale(1)}50%{opacity:.7;transform:scale(1.1)}}@media(max-width:768px){.chat-back-button{display:block}.chat-container{width:100%}}.chat-loading-overlay{position:absolute;inset:0;background:#ffffffd9;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);z-index:100;display:flex;align-items:center;justify-content:center;pointer-events:none}.chat-loading-spinner{display:flex;flex-direction:column;align-items:center;gap:1rem}.chat-loading-spinner span{color:#667eea;font-weight:500;font-size:.9rem}.chat-loading-spinner .spinner{width:40px;height:40px;border:4px solid rgba(102,126,234,.2);border-top-color:#667eea;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.theme-dark .chat-loading-overlay{background:#0f172ae6;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.theme-dark .chat-loading-spinner span{color:#8b93ff}.theme-dark .chat-loading-spinner .spinner{border-color:#8b93ff33;border-top-color:#8b93ff}.chat-empty{display:flex;align-items:center;justify-content:center;height:100%;color:#999;font-size:1.2rem;flex:1}.chat-header{padding:1rem;background:#fff;border-bottom:1px solid #e0e0e0;display:flex;flex-direction:column;gap:1rem;flex-shrink:0;position:sticky;top:0;z-index:4}@media(max-width:768px){.chat-header{padding:.6rem .75rem;gap:.6rem;box-shadow:0 2px 4px #0000000d}.chat-header h3{font-size:.95rem;line-height:1.4;margin-bottom:.3rem}.chat-title{flex-direction:row;flex-wrap:wrap;gap:.2rem;align-items:center}.chat-title-label{display:none}.chat-title-name{font-size:1rem;font-weight:600}.chat-info-banner{padding:.5rem .65rem;gap:.3rem;border-radius:8px;margin-top:.4rem}.chat-info-line{font-size:.8rem;padding:.2rem 0;line-height:1.4}.chat-status{font-size:.7rem!important;padding:.25rem .55rem!important;border-radius:10px!important;margin-bottom:0}}.chat-header>div:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;width:100%}.chat-header h3{margin:0 0 .25rem;color:#333}.chat-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:.25rem}.chat-title-label{color:#666;font-weight:400}.chat-title-name{font-weight:600;color:#333}.chat-user-info{color:#666;font-size:.9rem}.chat-bot-info{color:#667eea;font-size:.9rem;font-weight:500}.chat-header-info-line{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;font-size:.9rem;color:#666}.chat-header-info-line>span{white-space:nowrap}.chat-request-info{text-align:right;font-size:.9rem;color:#666;display:flex;flex-direction:column;gap:.25rem;align-items:flex-end;flex-shrink:0}.chat-info-banner{border:1px solid #eef2f7;background:#f8fafc;border-radius:6px;padding:.5rem .75rem;display:flex;flex-direction:column;gap:.25rem;width:100%;transition:all .3s ease;box-shadow:0 1px 3px #0000001a}.chat-info-banner-header{display:flex;align-items:center;cursor:pointer;-webkit-user-select:none;user-select:none}.chat-info-banner-content{display:flex;flex-direction:column;gap:.25rem;overflow:hidden;transition:max-height .3s ease,opacity .3s ease}.chat-info-toggle{transition:transform .3s ease}@media(max-width:768px){.chat-info-banner.collapsed .chat-info-banner-content{max-height:0;opacity:0;margin-top:0}.chat-info-banner:not(.collapsed) .chat-info-banner-content{max-height:200px;opacity:1;margin-top:.5rem}.chat-info-banner.collapsed .chat-info-toggle{transform:rotate(-90deg)}}.chat-info-line{font-size:.95rem;color:#1f2937}.chat-status{display:inline-block;padding:.3rem .85rem;border-radius:12px;font-size:.8rem;margin-top:.25rem}.chat-status.pending{background:#fff3cd;color:#856404}.chat-status.inprogress{background:#cfe2ff;color:#084298}.chat-status.completed{background:#d1e7dd;color:#0f5132}.chat-messages-wrapper{flex:1;min-height:0;position:relative;overflow:hidden}.chat-messages{height:100%;overflow-y:auto;padding:1rem;background:#f9f9f9}@media(max-width:768px){.chat-messages{padding:1rem 1rem 1.5rem}.chat-messages-wrapper{padding-bottom:env(safe-area-inset-bottom);-webkit-overflow-scrolling:touch}.message{margin-bottom:1rem;padding:1rem;max-width:90%}.message-text{font-size:1rem;line-height:1.6;padding:.5rem 0}.message-time{font-size:.8rem;margin-top:.5rem;padding:0 .5rem}.avatar{width:40px;height:40px;font-size:1rem}.message-with-avatar{gap:.75rem}.message-operator-label{font-size:.95rem;margin-bottom:.4rem}.message-image,.message-video{max-width:100%;max-height:300px;border-radius:12px}.message-location{margin-top:.75rem;margin-bottom:.75rem}.location-map{max-width:100%;height:250px}.location-links{margin-top:.5rem;gap:.5rem}.location-link{font-size:.9rem;padding:.4rem .75rem}}.message{margin-bottom:1rem;max-width:70%;animation:fadeIn .3s;box-shadow:0 1px 2px #0000001a;border-radius:12px}@media(max-width:768px){.message{max-width:90%;margin-bottom:1.25rem;box-shadow:0 2px 4px #0000001a}}.message-with-avatar{display:flex;gap:.5rem;align-items:flex-start}.avatar{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.8rem;color:#fff;flex-shrink:0}.avatar-user{background:#9ca3af}.avatar-operator{background:#667eea}@keyframes fadeIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.message-operator{margin-left:auto}.message-user{margin-right:auto}.message-text{padding:.75rem 1rem;border-radius:12px;word-wrap:break-word}.message-operator .message-text{background:#667eea;color:#fff;border-bottom-right-radius:4px}.theme-dark .message-user .message-text{border-radius:14px}.theme-dark .message-operator .message-text{background:#7380ff;box-shadow:inset 0 0 0 1px #ffffff14}.theme-dark .btn-assign,.theme-dark .btn-reassign,.theme-dark .btn-unassign{filter:saturate(.9)}.theme-dark .btn-assign:hover,.theme-dark .btn-reassign:hover,.theme-dark .btn-unassign:hover{box-shadow:0 6px 20px #0000004d}.message-user .message-text{background:#fff;color:#333;border:1px solid #e0e0e0;border-bottom-left-radius:4px}.message-media{margin-bottom:.5rem}.message-image{max-width:100%;max-height:400px;border-radius:8px;object-fit:contain;display:block}.message-video{max-width:100%;max-height:400px;border-radius:8px;display:block;background:#000}.message-location{margin-top:.5rem;margin-bottom:.5rem}.location-map{width:100%;max-width:500px;border-radius:8px;overflow:hidden;margin-bottom:.5rem}.location-links{display:flex;gap:.75rem;flex-wrap:wrap}.location-link{color:#667eea;text-decoration:none;font-size:.85rem;padding:.25rem .5rem;border:1px solid #667eea;border-radius:4px;transition:all .2s}.location-link:hover{background:#667eea;color:#fff}.theme-dark .location-link{color:#8b93ff;border-color:#8b93ff}.theme-dark .location-link:hover{background:#8b93ff;color:#fff}.message-grouped{margin-top:.25rem}.message-grouped .message-time{display:none}.message-grouped:last-child .message-time{display:block}.message-time{font-size:.75rem;color:#999;margin-top:.25rem;padding:0 .5rem}.message-system{display:flex;justify-content:center;align-items:center;margin:1rem 0;max-width:100%!important}.message-system-content{display:flex;flex-direction:column;align-items:center;gap:.5rem;background:#f0f4f8;border:1px solid #cbd5e1;border-radius:12px;padding:.75rem 1rem;max-width:80%;text-align:center;box-shadow:0 1px 3px #0000001a}.message-system-icon{font-size:1.5rem;margin-bottom:.25rem}.message-system .message-text{background:transparent;border:none;color:#475569;font-size:.9rem;font-style:italic;padding:0;margin:0;text-align:center}.message-system .message-time{font-size:.7rem;color:#94a3b8;margin-top:.25rem;padding:0}.theme-dark .message-system-content{background:#1e293b;border-color:#334155}.theme-dark .message-system .message-text{color:#cbd5e1}.theme-dark .message-system .message-time{color:#64748b}@media(max-width:768px){.message-system-content{max-width:90%;padding:.6rem .85rem}.message-system-icon{font-size:1.25rem}.message-system .message-text{font-size:.85rem}}.message-operator .message-time{text-align:right}.message-date-separator{text-align:center;color:#6b7280;font-size:.8rem;margin:.5rem 0}.message-operator-label{font-weight:700;color:#667eea;font-size:.85rem;margin-bottom:.25rem}.chat-input-form{display:flex;flex-direction:column;padding:1rem;background:#fff;border-top:1px solid #e0e0e0;gap:.5rem;flex-shrink:0}@media(max-width:768px){.chat-input-form{padding:.75rem;gap:.5rem;padding-bottom:max(.75rem,env(safe-area-inset-bottom))}.chat-input-wrapper{gap:.5rem;flex-wrap:nowrap}.chat-input-wrapper input{font-size:16px;padding:.75rem 1rem;min-height:44px;border-radius:22px;flex:1}.file-buttons{gap:.4rem;flex-shrink:0}.file-buttons button,.file-button{width:44px;height:44px;padding:0;min-width:44px;min-height:44px;border-radius:8px;font-size:1.2rem;flex-shrink:0}.send-button{padding:.75rem 1.25rem;font-size:.95rem;min-height:44px;min-width:90px;border-radius:22px;font-weight:500;flex-shrink:0;white-space:nowrap}}.file-preview{display:flex;gap:.5rem;margin-bottom:.5rem}.preview-item{position:relative;max-width:200px}.preview-image,.preview-video{max-width:200px;max-height:150px;border-radius:8px;object-fit:cover}.preview-remove{position:absolute;top:-8px;right:-8px;width:24px;height:24px;border-radius:50%;background:#ff6b6b;color:#fff;border:none;cursor:pointer;font-size:18px;line-height:1;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 4px #0003}.preview-remove:hover{background:#ee5a5a}.chat-input-wrapper{display:flex;gap:.5rem;align-items:center;width:100%}.chat-input{flex:1;min-width:0}.file-buttons{display:flex;gap:.25rem}.file-button{cursor:pointer;font-size:1.5rem;padding:.5rem;border:1px solid #ddd;border-radius:5px;background:#f5f5f5;transition:background .3s;display:flex;align-items:center;justify-content:center}.file-button:hover{background:#e9e9e9}.file-button:disabled{opacity:.5;cursor:not-allowed}.file-menu-wrapper{position:relative;flex-shrink:0}.file-menu-button{width:44px;height:44px;padding:0;border:1px solid #ddd;border-radius:8px;background:#f5f5f5;cursor:pointer;font-size:1.3rem;display:flex;align-items:center;justify-content:center;transition:all .2s;flex-shrink:0}.file-menu-button:hover{background:#e9e9e9;border-color:#667eea}.file-menu-dropdown{position:absolute;bottom:calc(100% + 8px);left:0;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:100;min-width:150px;overflow:hidden;animation:slideUp .2s ease-out}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.file-menu-item{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;cursor:pointer;transition:background .2s;border:none;background:none;width:100%;text-align:left;font-size:.9rem;color:#333}.file-menu-item:hover{background:#f5f5f5}.theme-dark .file-menu-dropdown{background:var(--panel);border-color:var(--border)}.theme-dark .file-menu-item{color:var(--text)}.theme-dark .file-menu-item:hover{background:#8b93ff1a}.chat-input{flex:1;padding:.75rem;border:1px solid #e0e0e0;border-radius:20px;font-size:1rem;outline:none}.send-button{padding:.75rem 1.5rem;background:#667eea;color:#fff;border:none;border-radius:20px;font-size:1rem;cursor:pointer;transition:background .3s;white-space:nowrap}.chat-input:focus{border-color:#667eea}.chat-input-form button{padding:.75rem 1.5rem;background:#667eea;color:#fff;border:none;border-radius:20px;font-size:1rem;cursor:pointer;transition:background .3s}.chat-input-form button:hover:not(:disabled){background:#5568d3}.chat-input-form button:disabled{background:#ccc;cursor:not-allowed}.theme-dark .chat-input-form button:disabled{background:#6464644d;color:#fff6;cursor:not-allowed}.chat-operator{font-size:.9rem;color:#667eea;margin-top:.5rem;font-weight:700}.chat-actions{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;padding:.5rem;background:#f5f5f5;border-radius:5px;width:100%;box-shadow:0 1px 3px #0000001a}.chat-operator-actions-wrapper{position:relative;width:100%}.btn-with-menu{display:flex;align-items:center;justify-content:center}.chat-operator-actions-menu{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:100;overflow:hidden;animation:slideDown .2s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.chat-action-menu-item{width:100%;padding:.75rem 1rem;border:none;background:none;text-align:left;cursor:pointer;transition:background .2s;font-size:.9rem;color:#333}.chat-action-menu-item:hover{background:#f5f5f5}.theme-dark .chat-operator-actions-menu{background:var(--panel);border-color:var(--border)}.theme-dark .chat-action-menu-item{color:var(--text)}.theme-dark .chat-action-menu-item:hover{background:#8b93ff1a}@media(max-width:768px){.chat-header-actions{gap:.4rem}.chat-header-actions button{padding:.5rem .75rem;font-size:.85rem}.chat-actions{padding:.4rem;gap:.4rem;flex-direction:column;max-height:280px;overflow-y:auto;border-radius:8px}.chat-actions button{width:100%;padding:.65rem .85rem;font-size:.85rem;min-height:44px;font-weight:500;border-radius:8px;box-shadow:0 1px 2px #0000001a;transition:all .2s}.chat-actions button:active{transform:scale(.98)}.chat-actions button.btn-assign,.chat-actions button.btn-reassign{order:-1}.chat-operator-actions-wrapper,.chat-operator-actions-menu,.chat-status-dropdown-wrapper{width:100%}.chat-status-dropdown-button{width:100%;justify-content:space-between;font-size:.95rem!important;padding:.85rem 1rem!important;min-height:48px;font-weight:500;border-radius:8px!important}.chat-status-dropdown-menu{right:0;left:0;min-width:auto;width:100%;max-height:60vh;overflow-y:auto}}.btn-assign,.btn-unassign,.btn-reassign{padding:.5rem 1rem;border:none;border-radius:5px;cursor:pointer;font-size:.9rem;transition:background .3s;white-space:nowrap}.btn-assign{background:#4ecdc4;color:#fff}.btn-assign:hover{background:#3db8af}.btn-reassign{background:#667eea;color:#fff}.btn-reassign:hover{background:#5568d3}.btn-unassign{background:#ff6b6b;color:#fff}.btn-unassign:hover{background:#ee5a5a}.btn-close{background:#dc3545;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.9rem}.btn-close:hover{background:#c82333}.modal-content{background:#fff;padding:2rem;border-radius:8px;min-width:400px;max-width:90%}.form-group input,.form-group select{width:100%;padding:.5rem;border:1px solid #ddd;border-radius:4px;font-size:1rem}.chat-status-dropdown-wrapper{position:relative}.chat-status-dropdown-button{transition:all .2s}.chat-status-dropdown-button:hover{opacity:.9;transform:translateY(-1px);box-shadow:0 2px 8px #00000026}.chat-status-dropdown-menu{position:absolute;top:calc(100% + 4px);right:0;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 4px 12px #00000026;z-index:100;min-width:200px;padding:.5rem;display:flex;flex-direction:column;gap:.25rem}.theme-dark .chat-status-dropdown-menu{background:var(--panel);border-color:var(--border)}.chat-status-option{transition:all .2s}.chat-status-option:hover{opacity:.8;transform:translate(4px)}.chat-status-option.active{font-weight:600}.theme-dark .chat-status-option{color:var(--text);border-color:var(--border)}.status-select{padding:.5rem;border:1px solid #ddd;border-radius:5px;font-size:.9rem;cursor:pointer;background:#fff}.operators-management{flex:1;padding:2rem;overflow-y:auto}.operators-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.operators-header h2{margin:0}.btn-add{padding:.75rem 1.5rem;background:#667eea;color:#fff;border:none;border-radius:5px;cursor:pointer;font-size:1rem;transition:background .3s}.operator-form{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 4px #0000001a;margin-bottom:2rem}.operator-form h3{margin-top:0;margin-bottom:1rem}.operator-form input,.operator-form select{width:100%;padding:.75rem;margin-bottom:1rem;border:1px solid #ddd;border-radius:5px;font-size:1rem}.form-actions{display:flex;gap:1rem}.form-actions button{padding:.75rem 1.5rem;border:none;border-radius:5px;cursor:pointer;font-size:1rem}.form-actions button[type=submit]{background:#667eea;color:#fff}.form-actions button[type=button]{background:#f5f5f5;color:#333}.operators-list{display:flex;flex-direction:column;gap:1rem}.operator-item{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 4px #0000001a;display:flex;justify-content:space-between;align-items:center}.operator-info{flex:1}.operator-name{display:flex;align-items:center;gap:1rem;margin-bottom:.5rem}.operator-role{padding:.25rem .75rem;border-radius:12px;font-size:.875rem;font-weight:700}.operator-role.admin{background:#ff6b6b;color:#fff}.operator-role.operator{background:#4ecdc4;color:#fff}.operator-details{display:flex;flex-direction:column;gap:.25rem;color:#666;font-size:.9rem}.operator-status{font-weight:700}.operator-status.online{color:#4ecdc4}.operator-status.offline{color:#999}.operator-last-seen{font-size:.85rem;color:#999}.operator-actions{display:flex;gap:1rem}.btn-edit{padding:.5rem 1rem;background:#667eea;color:#fff;border:none;border-radius:5px;cursor:pointer;font-size:.9rem;transition:background .3s}.edit-form{display:flex;gap:.5rem;align-items:center}.edit-form select{padding:.5rem;border:1px solid #ddd;border-radius:5px}.edit-form button{padding:.5rem 1rem;border:none;border-radius:5px;cursor:pointer;font-size:.9rem}.edit-form button:first-of-type{background:#4ecdc4;color:#fff}.edit-form button:last-of-type{background:#f5f5f5;color:#333}.operators-loading,.no-operators{text-align:center;padding:2rem;color:#666}.completed-requests{padding:2rem;height:100%;overflow-y:auto;max-width:1200px;margin:0 auto}@media(max-width:768px){.completed-requests{padding:1rem .75rem}}.completed-requests h2{margin:0 0 1.5rem;color:#333}.theme-dark .completed-requests h2{color:var(--text)}.completed-requests-loading,.completed-requests-empty{text-align:center;padding:2rem;color:#999}.completed-requests-table{width:100%;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 2px 4px #0000001a}@media(max-width:768px){.completed-requests-table{display:none}}.completed-requests-table-wrapper{width:100%;display:flex;justify-content:center}.completed-requests-table thead{background:#667eea;color:#fff}.completed-requests-table th{padding:1rem;text-align:left;font-weight:600}.completed-requests-table td{padding:1rem;border-bottom:1px solid #e0e0e0}.completed-requests-table tbody tr:hover{background:#f5f5f5}.theme-dark .completed-requests-table tbody tr:hover{background:#ffffff0f}.completed-requests-table tbody tr:last-child td{border-bottom:none}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-content{background:#fff;padding:2rem;border-radius:12px;min-width:420px;max-width:520px;width:min(520px,92vw);border:1px solid #e5e7eb;box-shadow:0 20px 50px #00000040;color:#111827}.modal-content h3{margin:0 0 1.25rem;color:inherit;font-weight:700;letter-spacing:.2px}.form-group label{display:block;margin-bottom:.5rem;color:inherit;font-weight:500}.form-group input,.form-group select{width:100%;padding:.5rem;border:1px solid #ddd;border-radius:8px;font-size:1rem;outline:none;transition:box-shadow .2s,border-color .2s,background .2s;background:#fff}.form-group input:focus,.form-group select:focus{border-color:#8b93ff;box-shadow:0 0 0 3px #8b93ff33}.btn-save{background:#28a745;color:#fff;border:none;padding:.6rem 1.6rem;border-radius:10px;cursor:pointer;font-size:1rem;box-shadow:0 6px 16px #28a74540;transition:transform .08s ease,box-shadow .2s ease,background .2s}.btn-save:hover{background:#218838;box-shadow:0 10px 24px #28a74552}.btn-save:disabled{background:#ccc;cursor:not-allowed;box-shadow:none}.btn-cancel{background:#f3f4f6;color:#1f2937;border:1px solid #e5e7eb;padding:.6rem 1.2rem;border-radius:10px;cursor:pointer;font-size:1rem;transition:background .2s,border-color .2s}.theme-dark .modal-content{background:var(--panel);border:1px solid var(--border);box-shadow:0 20px 60px #00000073;color:var(--text)}.theme-dark .modal-content h3,.theme-dark .form-group label{color:var(--text)}.theme-dark .form-group input::placeholder{color:var(--muted)}.theme-dark .form-group input,.theme-dark .form-group select{background:var(--panel);border:1px solid var(--border);color:var(--text)}.theme-dark .btn-cancel{background:#ffffff0f;color:var(--text);border:1px solid var(--border)}.completed-requests-totals{margin-top:1rem;padding:1rem 1.25rem;background:#f8fafc;border:1px solid #eef2f7;border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:1rem}.theme-dark .completed-requests-totals{background:#ffffff0a;border:1px solid var(--border)}.totals-title{color:#334155;font-weight:600}.theme-dark .totals-title{color:var(--muted)}.totals-list{display:flex;gap:1rem;flex-wrap:wrap}.totals-item{background:#fff;border:1px solid #e5e7eb;border-radius:6px;padding:.4rem .75rem;color:#1f2937;box-shadow:0 1px 2px #0000000a}.theme-dark .totals-item{background:var(--panel);border:1px solid var(--border);color:var(--text)}.totals-currency{font-weight:600;margin-right:.25rem}.totals-sum{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.completed-requests-cards{display:none}@media(max-width:768px){.completed-requests-cards{display:block}.completed-requests-card{background:#fff;border:1px solid #e0e0e0;border-radius:8px;padding:1rem;margin-bottom:1rem;box-shadow:0 2px 4px #0000001a}.theme-dark .completed-requests-card{background:var(--panel);border:1px solid var(--border)}.completed-requests-card-row{display:flex;justify-content:space-between;align-items:center;padding:.5rem 0;border-bottom:1px solid #f0f0f0}.theme-dark .completed-requests-card-row{border-bottom-color:var(--border)}.completed-requests-card-row:last-child{border-bottom:none}.completed-requests-card-label{font-weight:600;color:#666;font-size:.9rem}.theme-dark .completed-requests-card-label{color:var(--muted)}.completed-requests-card-value{color:#333;text-align:right;flex:1;margin-left:1rem}.theme-dark .completed-requests-card-value{color:var(--text)}.completed-requests-card-actions{margin-top:.75rem;padding-top:.75rem;border-top:1px solid #f0f0f0}.theme-dark .completed-requests-card-actions{border-top-color:var(--border)}.btn-edit{width:100%;padding:.6rem;font-size:.9rem}.completed-requests-totals{flex-direction:column;align-items:flex-start;gap:.75rem;padding:1rem}.totals-list{width:100%;flex-direction:column;gap:.5rem}.totals-item{width:100%;display:flex;justify-content:space-between;padding:.6rem .75rem}.modal-content{min-width:auto;width:calc(100vw - 2rem);max-width:420px;padding:1.5rem;margin:1rem}.form-actions{flex-direction:column-reverse;gap:.75rem}.form-actions button{width:100%}}.bots-management{padding:2rem;height:100%;overflow-y:auto;max-width:1100px;margin:0 auto}.bots-management-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.bots-management-header h2{margin:0;color:#333}.theme-dark .bots-management-header h2{color:var(--text)}.btn-create{background:#28a745;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:4px;cursor:pointer;font-size:1rem}.btn-create:hover{background:#218838}.bots-management-loading{text-align:center;padding:3rem;color:#999}.empty-card{background:#fff;border-radius:12px;padding:3rem 2rem;box-shadow:0 6px 20px #11182714;border:1px solid #eef2f7;text-align:center}.empty-card h3{margin:0 0 .5rem;color:#111827;font-size:1.4rem}.empty-card p{margin:0 0 1.5rem;color:#6b7280}.empty-actions{display:flex;justify-content:center}.bots-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:1.5rem}.bot-card{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 3px 14px #0000000f;border:1px solid #eef2f7}.bot-card-header{display:flex;flex-direction:column;align-items:flex-start;gap:.75rem;margin-bottom:1rem;padding-bottom:1rem;border-bottom:1px solid #e0e0e0}.bot-card-header h3{margin:0;color:#333}.theme-dark .bot-card-header h3{color:var(--text)}.bot-card-actions{display:flex;gap:.5rem;flex-wrap:wrap}.btn-toggle{padding:.5rem 1rem;border:none;border-radius:4px;cursor:pointer;font-size:.9rem}.btn-toggle.active{background:#28a745;color:#fff}.btn-toggle.inactive{background:#6c757d;color:#fff}.btn-toggle:hover{opacity:.9}.btn-edit{background:#667eea;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.9rem}.btn-delete{background:#dc3545;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:.9rem}.btn-delete:hover{background:#c82333}.bot-card-info{color:#666}.theme-dark .bot-card-info,.theme-dark .bot-card-info p{color:var(--text)}.bot-card-info p{margin:.5rem 0}.modal-overlay{position:fixed;inset:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:#fff;padding:2rem;border-radius:8px;min-width:500px;max-width:90%;max-height:90vh;overflow-y:auto}.modal-content h3{margin:0 0 1.5rem;color:#333}.form-group{margin-bottom:1rem}.form-group label{display:block;margin-bottom:.5rem;color:#333;font-weight:500}.form-group input,.form-group textarea{width:100%;padding:.5rem;border:1px solid #ddd;border-radius:4px;font-size:1rem;font-family:inherit}.form-group textarea{resize:vertical}.btn-save{background:#28a745;color:#fff;border:none;padding:.5rem 1.5rem;border-radius:4px;cursor:pointer;font-size:1rem}.btn-save:hover{background:#218838}.btn-save:disabled{background:#ccc;cursor:not-allowed}.btn-cancel{background:#6c757d;color:#fff;border:none;padding:.5rem 1.5rem;border-radius:4px;cursor:pointer;font-size:1rem}.btn-cancel:hover{background:#5a6268}.btn-cancel:disabled{background:#ccc;cursor:not-allowed}.status-management{padding:2rem;height:100%;overflow-y:auto;max-width:1200px;margin:0 auto}.status-management-loading{text-align:center;padding:2rem;color:#999}.status-management-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.status-management-header h2{margin:0;color:#333}.theme-dark .status-management-header h2{color:var(--text)}.btn-add{background:#667eea;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;cursor:pointer;font-size:1rem;font-weight:500;transition:background .2s}.btn-add:hover{background:#5568d3}.status-form,.status-edit-form{background:#fff;padding:1.5rem;border-radius:8px;margin-bottom:2rem;box-shadow:0 2px 4px #0000001a}.theme-dark .status-form,.theme-dark .status-edit-form{background:var(--panel);border:1px solid var(--border)}.status-form h3,.status-edit-form h3{margin:0 0 1rem;color:#333}.theme-dark .status-form h3,.theme-dark .status-edit-form h3{color:var(--text)}.form-row{display:flex;gap:1rem;margin-bottom:1rem}.form-row input[type=text]{flex:1;padding:.75rem;border:1px solid #ddd;border-radius:6px;font-size:1rem;outline:none;transition:border-color .2s}.theme-dark .form-row input[type=text]{background:var(--panel);border-color:var(--border);color:var(--text)}.form-row input[type=text]:focus{border-color:#667eea}.form-row input[type=color]{width:60px;height:40px;border:1px solid #ddd;border-radius:6px;cursor:pointer}.theme-dark .form-row input[type=color]{border-color:var(--border)}.checkbox-label{display:flex;align-items:center;gap:.5rem;cursor:pointer;color:#333}.theme-dark .checkbox-label{color:var(--text)}.form-actions{display:flex;gap:1rem;justify-content:flex-end;margin-top:1.5rem}.btn-save{background:#10b981;color:#fff;border:none;padding:.75rem 1.5rem;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:500;transition:background .2s}.btn-save:hover{background:#059669}.btn-cancel{background:#f3f4f6;color:#333;border:1px solid #e5e7eb;padding:.75rem 1.5rem;border-radius:6px;cursor:pointer;font-size:1rem;font-weight:500;transition:background .2s}.theme-dark .btn-cancel{background:#ffffff0f;color:var(--text);border-color:var(--border)}.btn-cancel:hover{background:#e5e7eb}.theme-dark .btn-cancel:hover{background:#ffffff1a}.status-list{display:flex;flex-direction:column;gap:1rem}.status-card{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 4px #0000001a;border:1px solid #e5e7eb}.theme-dark .status-card{background:var(--panel);border-color:var(--border)}.status-card.inactive{opacity:.6}.status-card-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}.status-info{display:flex;align-items:center;gap:1rem}.status-color-indicator{width:24px;height:24px;border-radius:50%;border:2px solid rgba(0,0,0,.1);flex-shrink:0}.theme-dark .status-color-indicator{border-color:#fff3}.status-name{font-weight:600;font-size:1.1rem;color:#333}.theme-dark .status-name{color:var(--text)}.status-name-code{font-size:.9rem;color:#666;font-family:monospace}.theme-dark .status-name-code{color:var(--muted)}.status-badges{display:flex;gap:.5rem;flex-wrap:wrap}.badge{padding:.25rem .75rem;border-radius:12px;font-size:.85rem;font-weight:500}.badge-default{background:#dbeafe;color:#1e40af}.theme-dark .badge-default{background:#3b82f633;color:#93c5fd}.badge-inactive{background:#f3f4f6;color:#6b7280}.theme-dark .badge-inactive{background:#ffffff1a;color:var(--muted)}.badge-system{background:#fef3c7;color:#92400e}.theme-dark .badge-system{background:#fbbf2433;color:#fbbf24}.status-card-actions{display:flex;gap:.75rem;align-items:center;justify-content:flex-end}.order-buttons{display:flex;gap:.25rem}.btn-order{background:#f3f4f6;color:#333;border:1px solid #e5e7eb;padding:.5rem .75rem;border-radius:6px;cursor:pointer;font-size:1rem;transition:background .2s}.theme-dark .btn-order{background:#ffffff0f;color:var(--text);border-color:var(--border)}.btn-order:hover:not(:disabled){background:#e5e7eb}.theme-dark .btn-order:hover:not(:disabled){background:#ffffff1a}.btn-order:disabled{opacity:.5;cursor:not-allowed}.btn-edit{background:#667eea;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.9rem;transition:background .2s}.btn-edit:hover{background:#5568d3}.btn-delete{background:#ef4444;color:#fff;border:none;padding:.5rem 1rem;border-radius:6px;cursor:pointer;font-size:.9rem;transition:background .2s}.btn-delete:hover{background:#dc2626}.empty-card{text-align:center;padding:3rem;background:#fff;border-radius:8px;box-shadow:0 2px 4px #0000001a}.theme-dark .empty-card{background:var(--panel);border:1px solid var(--border)}.empty-card h3{margin:0 0 .5rem;color:#333}.theme-dark .empty-card h3{color:var(--text)}.empty-card p{margin:0;color:#666}.theme-dark .empty-card p{color:var(--muted)}@media(max-width:768px){.status-management{padding:1rem .75rem}.status-management-header{flex-direction:column;align-items:flex-start;gap:1rem}.btn-add{width:100%}.form-row{flex-direction:column}.status-card-header{flex-direction:column;align-items:flex-start;gap:1rem}.status-card-actions{flex-wrap:wrap;justify-content:flex-start}.btn-order,.btn-edit,.btn-delete{flex:1;min-width:100px}}.telegram-connection-container{padding:20px;max-width:800px;margin:0 auto}.telegram-connection-card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:24px;box-shadow:0 2px 8px #0000001a}.telegram-connection-card h2{margin:0 0 24px;color:var(--text);font-size:24px}.telegram-connection-error{background:#fee;border:1px solid #fcc;color:#c33;padding:12px;border-radius:8px;margin-bottom:16px}.telegram-connection-success{background:#efe;border:1px solid #cfc;color:#3c3;padding:12px;border-radius:8px;margin-bottom:16px}.status-indicator{display:flex;align-items:flex-start;gap:16px;padding:20px;border-radius:8px;margin-bottom:24px}.status-indicator.connected{background:#e8f5e9;border:1px solid #4caf50}.status-indicator.not-connected{background:#fff3e0;border:1px solid #ff9800}.status-icon{font-size:32px;flex-shrink:0}.status-indicator h3{margin:0 0 8px;color:var(--text);font-size:18px}.status-indicator p{margin:0;color:var(--text-secondary);font-size:14px}.connected-date{margin-top:8px!important;font-size:12px!important;color:var(--text-secondary)!important}.telegram-connection-connected,.telegram-connection-not-connected{margin-top:16px}.connection-instructions{background:var(--background);border:1px solid var(--border);border-radius:8px;padding:20px;margin-bottom:24px}.connection-instructions h4{margin:0 0 16px;color:var(--text);font-size:16px}.connection-instructions ol{margin:0;padding-left:24px;color:var(--text-secondary)}.connection-instructions li{margin-bottom:8px;line-height:1.6}.connect-button,.disconnect-button,.regenerate-button{width:100%;padding:12px 24px;background:#4caf50;color:#fff;border:none;border-radius:8px;font-size:16px;font-weight:500;cursor:pointer;transition:background .2s}.connect-button:hover:not(:disabled){background:#45a049}.connect-button:disabled{background:#ccc;cursor:not-allowed}.disconnect-button{background:#f44336}.disconnect-button:hover:not(:disabled){background:#da190b}.regenerate-button{background:#2196f3;margin-top:16px}.regenerate-button:hover:not(:disabled){background:#0b7dda}.deep-link-section{margin-top:24px}.deep-link-box{background:var(--background);border:1px solid var(--border);border-radius:8px;padding:16px;margin-bottom:16px}.deep-link-label{margin:0 0 12px;color:var(--text);font-weight:500;font-size:14px}.deep-link-content{display:flex;gap:12px;align-items:center}.deep-link{flex:1;color:#2196f3;text-decoration:none;word-break:break-all;padding:8px 12px;background:var(--panel);border:1px solid var(--border);border-radius:6px;font-size:14px}.deep-link:hover{text-decoration:underline}.copy-button{padding:8px 16px;background:var(--panel);border:1px solid var(--border);border-radius:6px;color:var(--text);cursor:pointer;font-size:14px;white-space:nowrap;transition:background .2s}.copy-button:hover{background:var(--background)}.deep-link-hint{margin:0 0 16px;color:var(--text-secondary);font-size:14px;text-align:center}.theme-dark .status-indicator.connected{background:#4caf5033;border-color:#4caf50}.theme-dark .status-indicator.not-connected{background:#ff980033;border-color:#ff9800}.theme-dark .telegram-connection-error{background:#c333;border-color:#c33}.theme-dark .telegram-connection-success{background:#3cc33c33;border-color:#3c3}*{box-sizing:border-box}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#root{height:100vh}.app-container{display:flex;flex-direction:column;height:100vh}.app-header{background:#667eea;color:#fff;padding:1rem 2rem;display:flex;justify-content:space-between;align-items:center;box-shadow:0 2px 4px #0000001a;flex-wrap:wrap;gap:.5rem}.app-header h1{margin:0;font-size:1.5rem}@media(max-width:768px){.app-header{padding:.75rem 1rem}.app-header h1{font-size:1.2rem}.app-header-right{flex-wrap:wrap;gap:.5rem}.app-header-right span{font-size:.9rem}.logout-button{padding:.4rem .8rem;font-size:.85rem}}.app-header-right{display:flex;align-items:center;gap:1rem}.logout-button{padding:.5rem 1rem;background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:5px;cursor:pointer;transition:background .3s}.logout-button:hover{background:#ffffff4d}.app-tabs{display:flex;background:#f5f5f5;border-bottom:1px solid #ddd;overflow-x:auto;-webkit-overflow-scrolling:touch}.app-tabs button{padding:1rem 2rem;background:transparent;border:none;border-bottom:3px solid transparent;cursor:pointer;font-size:1rem;transition:all .3s;white-space:nowrap;flex-shrink:0}@media(max-width:768px){.app-tabs{padding:0}.app-tabs button{padding:.75rem 1rem;font-size:.9rem}}.app-tabs button:hover{background:#e9e9e9}.app-tabs button.active{background:#fff;border-bottom-color:#667eea;color:#667eea;font-weight:700}.theme-dark .app-tabs button.active{box-shadow:inset 0 -2px #8b93ff}.app-content{display:flex;flex:1;overflow:hidden;position:relative}.request-list-container{flex-shrink:0}.chat-container-wrapper{flex:1;min-width:0}@media(max-width:768px){.request-list-container.mobile-hide,.chat-container-wrapper.mobile-hide{display:none!important}.request-list-container,.chat-container-wrapper{width:100%;height:100%}.app-content{position:relative}}
