: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%}.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}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)}}.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 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-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}}
