:root{font-family:system-ui,-apple-system,sans-serif;line-height:1.5;color:#213547;background-color:#f5f5f5}*{box-sizing:border-box}body{margin:0;min-height:100vh}#app{min-height:100vh}.app-loading{display:flex;align-items:center;justify-content:center;min-height:100vh}.layout{display:flex;flex-direction:column;min-height:100vh}.header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1.5rem;background:#1a1a2e;color:#eee}.header nav{display:flex;gap:1.5rem}.header nav a{color:#b8c5d6;text-decoration:none}.header nav a:hover{color:#fff}.header-user{display:flex;align-items:center;gap:1rem}.header-user button{padding:.35rem .75rem;font-size:.9rem;background:#333;color:#eee;border:1px solid #555;border-radius:4px;cursor:pointer}.header-user button:hover{background:#444}.main{flex:1;padding:1.5rem;max-width:1200px;margin:0 auto;width:100%;color:#213547}.main button:not([style*=background]):not([class*=btn-]),.main button[style*="background: white"],.main button[style*="background: #fff"],.main input[type=text],.main input[type=password],.main input[type=number],.main input[type=search],.main input[type=date],.main textarea,.main select{color:#213547}.main button:not([style*=background]):not([class*=btn-]):hover,.main button:not([style*=background]):not([class*=btn-]):focus,.main button[style*="background: white"]:hover,.main button[style*="background: white"]:focus,.main button[style*="background: #fff"]:hover,.main button[style*="background: #fff"]:focus,.main input[type=text]:hover,.main input[type=text]:focus,.main input[type=password]:hover,.main input[type=password]:focus,.main input[type=number]:hover,.main input[type=number]:focus,.main input[type=search]:hover,.main input[type=search]:focus,.main input[type=date]:hover,.main input[type=date]:focus,.main textarea:hover,.main textarea:focus,.main select:hover,.main select:focus{color:#213547}.page{text-align:left}.page h1{margin-top:0;font-size:1.75rem}.card{background:#fff;border-radius:8px;padding:1.25rem;margin-bottom:1rem;box-shadow:0 1px 3px #00000014}.card h2{margin-top:0;font-size:1.15rem}label{display:block;margin-bottom:.5rem;font-weight:500}input[type=text],input[type=password],input[type=number],input[type=search],textarea,select{width:100%;max-width:400px;padding:.5rem;margin-bottom:1rem;border:1px solid #ccc;border-radius:4px;font:inherit}textarea{resize:vertical;min-height:60px}.required{color:#c00}button{padding:.5rem 1rem;margin-right:.5rem;margin-bottom:.5rem;font:inherit;border-radius:4px;border:1px solid #555;background:#444;color:#fff;cursor:pointer}button:hover{background:#555;color:#fff}button:focus{color:#fff}button[type=submit]{color:#fff!important}button[type=submit]:hover,button[type=submit]:focus{color:#fff!important}.main button[style*="background: #444"],.main button[style*="background: #555"],.main button[style*="background: #333"],.main button[style*="background:#444"],.main button[style*="background:#555"],.main button[style*="background:#333"],.main button:not([style*=background]):not(.btn-danger):not(.btn-primary):not(.btn-settings-notification):not(.btn-pagination){color:#fff!important}.main button[style*="background: #444"]:hover,.main button[style*="background: #444"]:focus,.main button[style*="background: #555"]:hover,.main button[style*="background: #555"]:focus,.main button[style*="background: #333"]:hover,.main button[style*="background: #333"]:focus,.main button[style*="background:#444"]:hover,.main button[style*="background:#444"]:focus,.main button[style*="background:#555"]:hover,.main button[style*="background:#555"]:focus,.main button[style*="background:#333"]:hover,.main button[style*="background:#333"]:focus,.main button:not([style*=background]):not(.btn-danger):not(.btn-primary):not(.btn-settings-notification):not(.btn-pagination):hover,.main button:not([style*=background]):not(.btn-danger):not(.btn-primary):not(.btn-settings-notification):not(.btn-pagination):focus{color:#fff!important}button.btn-danger{background:#8b2635;border-color:#6b1e2a}button.btn-danger:hover{background:#a02d3e}button:disabled{opacity:.7;cursor:not-allowed}button.btn-sm{padding:.3rem .6rem;font-size:.875rem;margin-right:0}button.btn-danger.btn-outline{background:transparent;color:#8b2635;border-color:#8b2635}button.btn-danger.btn-outline:hover{background:#fce4ec}.link-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.actions-cell{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.actions-cell a{white-space:nowrap}.login-page{max-width:360px;margin:2rem auto}.login-page form{margin-top:1.5rem}.error{color:#c00;margin:.5rem 0}.toast-container{position:fixed;top:1rem;right:1rem;z-index:9999;display:flex;flex-direction:column;gap:.5rem;pointer-events:none}.toast{padding:.75rem 1.25rem;background:#1a1a2e;color:#eee;border-radius:8px;box-shadow:0 4px 12px #00000026;font-size:.95rem;animation:toast-in .2s ease-out}@keyframes toast-in{0%{opacity:0;transform:translate(1rem)}to{opacity:1;transform:translate(0)}}.links-page-layout{display:flex;flex-direction:column;gap:1rem}.links-page-right{display:flex;flex-direction:column;gap:1rem;min-width:0}@media(min-width:992px){.links-page-layout{display:grid;grid-template-columns:320px 1fr;gap:1.5rem;align-items:start}}.create-link-form h2{margin-bottom:1rem}.create-link-form form{display:grid;gap:1rem;max-width:480px}.create-link-form label{margin-bottom:0}.create-link-form input[type=text],.create-link-form textarea{max-width:100%;margin-bottom:0}.create-link-form textarea{min-height:200px;resize:vertical}.create-link-form button[type=submit]{justify-self:start}.create-result{margin-top:1rem;padding-top:1rem;border-top:1px solid #eee}.link-url-row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:.5rem}.link-url-input{flex:1;min-width:0;max-width:none}.links-filters{display:flex;gap:1.5rem;flex-wrap:wrap}.links-filters label{margin-bottom:0}.links-table-wrap,.data-table{overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{padding:.5rem .75rem;text-align:left;border-bottom:1px solid #eee}th{font-weight:600;background:#f9f9f9}.status{display:inline-block;padding:.2rem .5rem;border-radius:4px;font-size:.85em}.status-created{background:#e3f2fd;color:#1565c0}.status-opened{background:#fff3e0;color:#e65100}.status-camera_granted{background:#f3e5f5;color:#6a1b9a}.status-verified{background:#e8f5e9;color:#2e7d32}.status-expired{background:#ffebee;color:#c62828}.status-revoked{background:#eceff1;color:#455a64}.status-active{background:#e8f5e9;color:#2e7d32}.status-paused{background:#fff8e1;color:#f57f17}.status-deleted{background:#ffebee;color:#c62828}.checkbox-col{width:2.5rem;vertical-align:middle}.checkbox-col input[type=checkbox]{width:1.1rem;height:1.1rem;cursor:pointer}.bulk-actions-bar{display:flex;align-items:center;gap:1rem;padding:.75rem 0;margin-bottom:.5rem;border-bottom:1px solid #eee}.bulk-actions-bar span{font-weight:500}.links-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;margin-top:1rem;padding-top:.75rem;border-top:1px solid #eee}.links-pagination-info{color:#666;font-size:.9rem}.links-pagination-buttons{display:flex;gap:.5rem}.links-pagination-buttons button{padding:.4rem .75rem;font:inherit;color:#000!important;cursor:pointer;border:1px solid #ccc;border-radius:4px;background:#fff}.links-pagination-buttons button:hover:not(:disabled){background:#f5f5f5;border-color:#999;color:#000!important}.links-pagination-buttons button:focus{color:#000!important}.links-pagination-buttons button:disabled{opacity:.5;cursor:not-allowed}.links-cards,.links-cards-header{display:none}.links-table-row{cursor:pointer}.links-table-row:hover{background:#f5f5f5}.note-cell{cursor:pointer;max-width:180px}.popover-row td{padding:.5rem .75rem;background:#f9f9f9;border-bottom:1px solid #eee;vertical-align:top}.row-popover{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.5rem 0;position:relative}.link-popover .link-url-input{flex:1;min-width:200px}.note-popover{flex-direction:column;align-items:flex-start}.note-popover-text{width:100%;max-width:400px;resize:vertical;padding:.5rem;font:inherit}.popover-close{position:absolute;top:.25rem;right:.25rem;background:none;border:none;font-size:1.25rem;cursor:pointer;color:#666;line-height:1;padding:.15rem}.popover-close:hover{color:#000}.link-detail-page dl{display:grid;grid-template-columns:auto 1fr;gap:.5rem 1.5rem}.link-detail-page dt{font-weight:600}.events-table{margin-top:.5rem}.screenshots-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.screenshot-wrap{border:1px solid #eee;border-radius:8px;overflow:hidden}.screenshot-label{display:block;padding:.5rem;font-size:.9rem;font-weight:500;background:#f9f9f9}.screenshot-img{display:block;width:100%;height:auto;max-height:320px;object-fit:contain;background:#000}.screenshot-placeholder{padding:2rem;background:#f5f5f5;border-radius:8px;color:#666}.screenshot-placeholder.screenshot-error{color:#c00;background:#fee}.muted{color:#666;margin:.5rem 0 0}.toolbar{margin-bottom:1rem}.modal-overlay{position:fixed;inset:0;z-index:9000;display:flex;align-items:center;justify-content:center;background:#00000080;padding:1rem}.modal-overlay .modal{background:#fff;border-radius:8px;padding:1.5rem;box-shadow:0 8px 24px #0003;max-width:400px;width:100%}.modal-overlay .modal h3{margin-top:0;margin-bottom:.75rem;font-size:1.15rem}.modal-overlay .modal p{margin:0 0 1.25rem;color:#333}.modal-actions{display:flex;gap:.5rem;justify-content:flex-end}.modal{position:relative;max-width:400px;margin-bottom:1rem}.modal form label{margin-bottom:.25rem}.account-page .card p{margin:.5rem 0}@media(max-width:768px){.header{flex-direction:column;align-items:flex-start;gap:.75rem;padding:.75rem 1rem}.header nav{flex-wrap:wrap;gap:.75rem}.header-user{width:100%;justify-content:space-between}.main{padding:1rem}.page h1{font-size:1.35rem}.card{padding:1rem;margin-bottom:.75rem}.card h2{font-size:1.05rem}input[type=text],input[type=password],input[type=number],input[type=search],textarea,select{max-width:100%;font-size:16px}.create-link-form form{max-width:100%}.link-url-row{flex-direction:column;align-items:stretch}.link-url-row .link-url-input{min-width:0}.link-url-row button{width:100%}.links-filters{flex-direction:column;gap:1rem}.links-filters label{width:100%}.links-filters select,.links-filters input{max-width:100%}.links-table-wrap{margin-left:-1rem;margin-right:-1rem;width:calc(100% + 2rem)}.links-table{display:none}.links-cards-header{display:block;padding:.5rem 0;margin-bottom:.5rem}.links-select-all{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-weight:500;margin:0}.links-select-all input[type=checkbox]{width:1.25rem;height:1.25rem;min-width:1.25rem;min-height:1.25rem}.links-cards{display:flex;flex-direction:column;gap:.75rem}.link-card{background:#f9f9f9;border:1px solid #eee;border-radius:8px;padding:1rem}.link-card-header{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;cursor:pointer}.link-card-checkbox{width:1.25rem;height:1.25rem;min-width:1.25rem;min-height:1.25rem;flex-shrink:0}.link-card-phone{font-weight:500}.link-card-note{margin-top:.5rem;font-size:.9rem;color:#555;cursor:pointer}.link-card-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.link-card-btn{min-height:44px;padding:.5rem 1rem}.link-card-popover{margin-top:.75rem;padding-top:.75rem;border-top:1px solid #eee}.bulk-actions-bar{position:sticky;top:0;z-index:100;background:#fff;margin:-1rem -1rem .5rem;padding:1rem}.bulk-actions-bar button{min-height:44px}.links-table{font-size:.9rem}th,td{padding:.4rem .5rem}.note-cell{max-width:100px}.row-popover{padding-right:2rem}.link-popover{flex-direction:column;align-items:stretch}.link-popover .link-url-input{min-width:0}.note-popover .note-popover-text{max-width:100%}.link-detail-page dl{grid-template-columns:1fr;gap:.25rem 0}.link-detail-page dt{margin-top:.5rem}.link-detail-page dt:first-child{margin-top:0}.modal{max-width:100%}.login-page{margin:1rem auto;padding:0 1rem}}.telegram-groups-page .groups-list{display:flex;flex-direction:column;gap:1rem}.telegram-groups-page .group-card{border:1px solid #e0e0e0}.telegram-groups-page .group-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid #f0f0f0}.telegram-groups-page .group-header h3{margin:0;font-size:1.25rem;color:#333}.telegram-groups-page .group-info{margin-bottom:1rem}.telegram-groups-page .group-info ul{list-style:none;padding:0;margin:.5rem 0 0}.telegram-groups-page .group-info li{padding:.5rem;background:#f9f9f9;margin-bottom:.5rem;border-radius:4px;border-left:3px solid #1a1a2e}.telegram-groups-page .edit-form{background:#f8f9fa;padding:1rem;border-radius:4px;margin-top:1rem}.telegram-groups-page .edit-form h4{margin-top:0;margin-bottom:1rem;font-size:1rem;color:#555}.telegram-groups-page .form-group{margin-bottom:1rem}.telegram-groups-page .form-group label{display:block;margin-bottom:.5rem;font-weight:500;color:#333}.telegram-groups-page .form-group textarea,.telegram-groups-page .form-group input{width:100%;max-width:600px}.telegram-groups-page .button-group{display:flex;gap:.5rem;margin-top:1rem}.telegram-groups-page .current-settings{margin-top:1rem;padding:.75rem;background:#e8f5e9;border-left:3px solid #4caf50;border-radius:4px}.telegram-groups-page .current-settings p{margin:.25rem 0}.telegram-groups-page .current-settings p:first-child{font-weight:600;margin-bottom:.5rem}.telegram-groups-page .add-accounts-form{background:#f0f8ff;padding:1rem;border-radius:4px;margin-top:1rem;border:1px solid #b3d9ff}.telegram-groups-page .add-accounts-form h4{margin-top:0;margin-bottom:1rem;font-size:1rem;color:#333}.telegram-groups-page .accounts-checklist{max-height:300px;overflow-y:auto;margin-bottom:1rem;border:1px solid #ddd;border-radius:4px;background:#fff}.telegram-groups-page .account-checkbox{display:flex;align-items:center;padding:.75rem;border-bottom:1px solid #f0f0f0;cursor:pointer;transition:background .2s}.telegram-groups-page .account-checkbox:hover{background:#f9f9f9}.telegram-groups-page .account-checkbox:last-child{border-bottom:none}.telegram-groups-page .account-checkbox input[type=checkbox]{margin:0 .75rem 0 0;width:auto;cursor:pointer}.telegram-groups-page .account-checkbox span:first-of-type{flex:1;font-weight:500}.telegram-groups-page .status-badge{padding:.25rem .5rem;border-radius:3px;font-size:.75rem;font-weight:600;text-transform:uppercase}.telegram-groups-page .status-badge.status-active{background:#e8f5e9;color:#2e7d32}.telegram-groups-page .status-badge.status-paused{background:#fff3e0;color:#e65100}.telegram-groups-page .status-badge.status-deleted{background:#ffebee;color:#c62828}.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;max-width:600px;width:90%;max-height:90vh;overflow-y:auto;box-shadow:0 4px 20px #0000004d}.modal-content h3{margin-top:0;margin-bottom:1.5rem;color:#333}.modal-content .form-group{margin-bottom:1rem}.modal-content label{display:block;font-weight:600;color:#333;margin-bottom:.25rem}.modal-content textarea,.modal-content input[type=number]{width:100%;padding:.5rem;border:1px solid #ddd;border-radius:4px;font-size:1rem;font-family:inherit}.modal-content textarea:focus,.modal-content input[type=number]:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.table-container{overflow-x:auto;margin-top:1rem}.data-table{width:100%;border-collapse:collapse;background:#fff;box-shadow:0 1px 3px #0000001a;border-radius:4px}.data-table thead{background:#f5f5f5;border-bottom:2px solid #ddd}.data-table th{padding:.75rem 1rem;text-align:left;font-weight:600;color:#333;white-space:nowrap}.data-table td{padding:.75rem 1rem;border-bottom:1px solid #eee;vertical-align:middle}.data-table tbody tr:hover{background:#f9f9f9}.data-table tbody tr:last-child td{border-bottom:none}.data-table input[type=text],.data-table input[type=number]{padding:.5rem;border:1px solid #ddd;border-radius:4px;font-size:.9rem}.data-table input[type=text]:focus,.data-table input[type=number]:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 3px #007bff1a}.btn-sm{padding:.4rem .8rem;font-size:.85rem;border:1px solid #ddd;background:#fff;color:#000;border-radius:4px;cursor:pointer;transition:all .2s}.btn-sm:hover:not(:disabled){background:#f5f5f5;border-color:#999}.main .btn-settings-notification,.main .btn-settings-notification:hover,.main .btn-settings-notification:focus,.btn-settings-notification,.btn-settings-notification:hover,.btn-settings-notification:focus{color:#213547!important}.btn-sm.btn-primary{background:#007bff;color:#fff;border-color:#007bff}.btn-sm.btn-primary:hover:not(:disabled){background:#0056b3;border-color:#0056b3}.btn-sm:disabled{opacity:.5;cursor:not-allowed}.my-groups-page .groups-list{display:flex;flex-direction:column;gap:1rem}.my-groups-page .group-card{background:#fff;padding:1.5rem;border-radius:8px;box-shadow:0 2px 4px #0000001a}.my-groups-page .group-header{display:flex;justify-content:space-between;align-items:center;gap:1rem}.my-groups-page .group-header h3{margin:0;font-size:1.2rem;color:#333}.my-groups-page .btn-primary{background:#007bff;color:#fff;border:none;padding:.5rem 1rem;border-radius:4px;cursor:pointer;font-size:1rem;transition:background .2s}.my-groups-page .btn-primary:hover:not(:disabled){background:#0056b3}.my-groups-page .btn-primary:disabled{opacity:.5;cursor:not-allowed}
