:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#213547;background-color:#f3f4f6;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;min-width:320px;min-height:100vh}h1{font-size:2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#f9f9f9;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}#root{width:100%;min-height:100vh}.dashboard{padding:2rem;max-width:1200px;margin:0 auto;display:flex;flex-wrap:wrap;width:100%;gap:1.5rem;align-items:flex-start;justify-content:flex-start;flex:1}.dashboard-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.dashboard-header h1{margin:0;font-size:2rem;color:#1f2937}.status-banner{display:flex;align-items:center;gap:.75rem;padding:1rem 1.5rem;border-radius:8px;margin-bottom:2rem}.status-banner.healthy{background:#dcfce7;border:1px solid #86efac}.status-banner.unhealthy{background:#fee2e2;border:1px solid #fca5a5}.status-indicator{width:12px;height:12px;border-radius:50%;background:currentColor}.status-banner.healthy .status-indicator{background:#22c55e}.status-banner.unhealthy .status-indicator{background:#ef4444}.status-text{font-weight:600;font-size:1.125rem}.dashboard-card{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb}.dashboard-card h2{margin:0 0 1rem;font-size:1.25rem;color:#374151}.services-list{display:flex;flex-direction:column;gap:.75rem}.service-status{display:flex;justify-content:space-between;align-items:center;padding:.75rem 1rem;border-radius:4px;border:1px solid}.service-status.healthy{background:#f0fdf4;border-color:#86efac}.service-status.unhealthy{background:#fef2f2;border-color:#fca5a5}.service-name{font-weight:500;color:#374151}.service-state{font-size:.875rem;font-weight:600;text-transform:capitalize}.service-status.healthy .service-state{color:#16a34a}.service-status.unhealthy .service-state{color:#dc2626}.info-grid{display:grid;gap:1rem}.info-item{display:flex;flex-direction:column;gap:.25rem}.info-item label{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:#6b7280}.info-item value{font-size:1rem;font-weight:500;color:#1f2937;font-family:inherit}.memory-stats{display:flex;flex-direction:column;gap:.75rem}.memory-bar{height:8px;background:#e5e7eb;border-radius:4px;overflow:hidden}.memory-fill{height:100%;background:linear-gradient(90deg,#3b82f6,#8b5cf6);border-radius:4px;transition:width .3s ease}.memory-details{display:flex;gap:.5rem;font-size:.875rem;color:#6b7280}.memory-percentage{color:#3b82f6;font-weight:600}.readiness-status{display:flex;flex-direction:column;gap:1rem}.status-badge{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;border-radius:4px;font-weight:600;font-size:.875rem;width:fit-content}.status-badge.ready{background:#dcfce7;color:#16a34a}.status-badge.not-ready{background:#fee2e2;color:#dc2626}.readiness-details{display:flex;flex-direction:column;gap:.5rem}.detail-item{display:flex;justify-content:space-between;padding:.5rem 0;border-bottom:1px solid #e5e7eb}.detail-item:last-child{border-bottom:none}.detail-label{color:#6b7280}.detail-value{font-weight:500}.detail-value.yes{color:#16a34a}.detail-value.no{color:#dc2626}.dashboard.loading,.dashboard.error{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:1rem}.dashboard.error h2{color:#dc2626;margin:0}.upload-container{padding:2rem;max-width:800px;margin:0 auto;flex:1;display:flex;align-items:center}.upload-header{margin-bottom:2rem}.upload-header h1{margin:0;font-size:2rem;color:#1f2937}.upload-dropzone{border:2px dashed #d1d5db;border-radius:8px;padding:3rem 2rem;text-align:center;cursor:pointer;transition:all .2s;background:#f9fafb}.upload-dropzone:hover,.upload-dropzone.active{border-color:#3b82f6;background:#eff6ff}.upload-input{display:none}.upload-icon{color:#9ca3af;margin-bottom:1rem}.upload-dropzone:hover .upload-icon,.upload-dropzone.active .upload-icon{color:#3b82f6}.upload-text{margin:0 0 .5rem;color:#4b5563}.upload-text strong{color:#3b82f6}.upload-hint{margin:0;font-size:.875rem;color:#9ca3af}.uploads-list{padding-block:1rem;position:absolute;right:0;top:0;overflow-y:scroll;height:100%}.uploads-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;position:sticky;top:0}.uploads-header h2{margin:0;font-size:1.25rem;color:#374151}.uploads-stats{display:flex;align-items:center;gap:1rem}.stat{font-size:.875rem;padding:.25rem .75rem;border-radius:4px}.stat.success{background:#dcfce7;color:#16a34a}.stat.error{background:#fee2e2;color:#dc2626}.stat.pending{background:#fef3c7;color:#d97706}.clear-btn{padding:.375rem .75rem;background:#f3f4f6;border:1px solid #d1d5db;border-radius:4px;font-size:.75rem;cursor:pointer;color:#4b5563}.clear-btn:hover{background:#e5e7eb}.upload-items{display:flex;flex-direction:column;gap:.75rem}.upload-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#fff;border-radius:8px;border:1px solid #e5e7eb;transition:border-color .2s}.upload-item.success{border-color:#86efac;background:#f0fdf4}.upload-item.error{border-color:#fca5a5;background:#fef2f2}.upload-item.uploading{border-color:#fcd34d;background:#fffbeb}.upload-item-info{display:flex;align-items:center;gap:1rem;flex:1;min-width:0}.upload-item-icon{flex-shrink:0}.upload-item-details{min-width:0}.upload-item-name{margin:0;font-size:.875rem;font-weight:500;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.upload-item-size{margin:.25rem 0 0;font-size:.75rem;color:#6b7280}.upload-item-error{margin:.25rem 0 0;font-size:.75rem;color:#dc2626}.upload-item-actions{display:flex;align-items:center;gap:1rem}.upload-progress{width:100px;height:4px;background:#e5e7eb;border-radius:2px;overflow:hidden}.upload-progress-bar{height:100%;background:#3b82f6;border-radius:2px;transition:width .3s}.remove-btn{width:24px;height:24px;background:none;border:none;font-size:1.25rem;color:#9ca3af;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:4px}.remove-btn:hover{background:#f3f4f6;color:#4b5563}.login_view{margin-left:auto;margin-right:auto;border:1px solid #ccc;border-radius:.6rem;overflow:hidden}.app:has(.login_view){align-items:center}.login_view form{display:flex;flex-direction:column;padding:.6em 1.2em}.login_view form div:has(input){display:grid;grid-template-columns:1fr 1fr}.login_view form div:has(button){display:flex;align-items:center;justify-content:center;gap:.5rem;margin-block:1rem}.login_view header{background-color:#ccc;padding:.6em 1.2em;margin-bottom:1rem}.login_view>div{padding:.6em 1.2em;background-color:#eee}.login_view>div p{margin-block:0}.layout{width:100%}.photos-container{padding:2rem;max-width:1400px;margin:0 auto}.photos-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem}.photos-header h1{margin:0;font-size:2rem;color:#1f2937}.photos-stats{display:flex;align-items:center;gap:1rem}.stat{color:#6b7280;font-size:.875rem}.refresh-btn{padding:.5rem 1rem;background:#3b82f6;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.875rem;transition:background .2s}.refresh-btn:hover{background:#2563eb}.photos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:1.5rem}.photo-card{background:#fff;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000001a;border:1px solid #e5e7eb;position:relative;transition:transform .2s,box-shadow .2s}.photo-card:has(.photo-thumbnail:hover){transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.photo-thumbnail{position:relative;width:100%;background:#f3f4f6;overflow:hidden;cursor:pointer}.photo-thumbnail img{width:100%;object-fit:cover;transition:transform .3s;position:relative;z-index:2}.photo-thumbnail img.overlay,.photo-thumbnail img.hover{position:absolute;top:0;left:0;z-index:1}.photo-thumbnail img.hover{z-index:30}.photo-thumbnail img:has(+.overlay){opacity:.6}.photo-card:has(.photo-thumbnail:hover) .photo-thumbnail img{transform:scale(1.05)}.photo-source{position:absolute;top:8px;right:8px;padding:4px 8px;border-radius:4px;font-size:.75rem;font-weight:600;text-transform:uppercase}.photo-source.telegram{background:#08c;color:#fff}.photo-source.upload{background:#10b981;color:#fff}.photo-info>p{padding:1rem}.photo-actions{display:flex;justify-content:flex-end;position:absolute;top:0;right:0}.delete-btn{padding:.375rem .75rem;background:transparent;color:#fff;border:none;border-radius:0 4px;cursor:pointer;font-size:.75rem;transition:background .2s;opacity:.8}.delete-btn:hover:not(:disabled){opacity:1}.delete-btn:disabled{background:#9ca3af;cursor:not-allowed}.photo-filename{margin:0 0 .5rem;font-size:.875rem;font-weight:500;color:#1f2937;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-meta{margin:0;font-size:.75rem;color:#6b7280}.photos-loading,.photos-error,.photos-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:400px;gap:1rem}.loading-spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top-color:#3b82f6;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.photos-error h2{color:#dc2626;margin:0}.retry-btn{padding:.5rem 1.5rem;background:#3b82f6;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.875rem}.empty-hint{color:#9ca3af;font-size:.875rem}.photo-modal{position:fixed;inset:0;background:#000000e6;display:flex;align-items:center;justify-content:center;z-index:1000;padding:2rem}.photo-modal img{max-height:calc(100vh - 300px)}.modal-content{background:#fff;border-radius:8px;max-width:90vw;max-height:90vh;overflow:auto;position:relative}.modal-header{position:absolute;top:.25rem;right:.25rem;display:flex;gap:.5rem;z-index:10}.modal-delete-btn{position:absolute;top:.25rem;right:.25rem;background:transparent;color:#fff;border:none;border-radius:4px;cursor:pointer;font-size:.875rem;transition:background .2s}.modal-delete-btn:hover:not(:disabled){background:#b91c1c33}.modal-delete-btn:disabled{background:#9ca3af;cursor:not-allowed}.modal-close{width:32px;height:32px;background:#00000080;color:#fff;border:none;border-radius:50%;font-size:1.5rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}.modal-close:hover{background:#000000b3}.modal-image{max-width:100%;max-height:70vh;object-fit:contain;display:block}.modal-info{border-top:1px solid #e5e7eb;overflow:hidden;gap:0}.modal-info>img{display:block}.modal-info,.photo-info{display:flex;justify-content:space-between;align-items:center}.item-previews{display:flex}.item-previews img{height:60px;max-width:60px;display:block;object-fit:cover}.item-previews img.error{opacity:.2}.item-previews a:has(img.error){pointer-events:none}.modal-info h3{margin:0 0 1rem;font-size:1.125rem;color:#1f2937;word-break:break-all}.modal-info p{margin:0;font-size:.875rem;color:#4b5563;padding-inline:.5rem}.modal-info a{color:#3b82f6;text-decoration:none}.modal-info a:hover{text-decoration:underline}*{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;background:#f3f4f6}.app{display:flex;min-height:100vh;width:100%}.main-nav{width:240px;background:#fff;border-right:1px solid #e5e7eb;padding:1.5rem;position:fixed;height:100vh;overflow-y:auto}.nav-links{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:0rem}.nav-links a,.nav-links button{display:flex;align-items:center;gap:.75rem;padding:.5rem .75rem;color:#4b5563;text-decoration:none;font-weight:500;transition:all .2s}.nav-links a:hover{background:#f3f4f6;color:#1f2937}.nav-links a.active{background:#eff6ff;color:#3b82f6}.nav-links svg{flex-shrink:0}.user-info{font-size:.875rem;color:#6b7280;font-weight:400}.logout-btn{border-radius:0}.logout-btn:hover{border:1px solid transparent}.logout-btn:disabled{background:#9ca3af;cursor:not-allowed}.main-content{flex:1;margin-left:240px;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center}@media(max-width:768px){.main-nav{width:100%;position:relative;height:auto;border-right:none;border-bottom:1px solid #e5e7eb}.app{flex-direction:column}.main-content{margin-left:0}.nav-links{flex-direction:row;flex-wrap:wrap}}
