.header{height:var(--header-height);background:linear-gradient(135deg,#63c5bc,#187389,#63c5bc);display:flex;align-items:center;justify-content:space-between;padding:0 1.5rem;position:fixed;top:0;left:0;right:0;z-index:100;box-shadow:0 2px 8px #0000001a}.header-left{display:flex;align-items:center;gap:.75rem}.header-logo{height:36px;width:auto;filter:brightness(0) invert(1)}.header h1{font-size:1.25rem;color:#fff;font-weight:600}.header-right{display:flex;align-items:center;gap:.85rem;color:#fff}.header-meta{font-size:.8rem;opacity:.92}.beta{background:#fff3;border:1px solid rgba(255,255,255,.45);border-radius:999px;padding:.1rem .55rem;font-size:.7rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.user-avatar-container{position:relative}.user-avatar{width:40px;height:40px;border-radius:50%;background:#fff3;border:2px solid rgba(255,255,255,.5);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:600;cursor:pointer;transition:all .2s ease}.user-avatar:hover{background:#ffffff4d;border-color:#fff}.user-avatar.is-error{background:#b91c1c;border-color:#fecaca}.user-avatar.is-error svg{width:20px;height:20px}.user-avatar.is-loading{cursor:default}.avatar-spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:avatar-spin .7s linear infinite}@keyframes avatar-spin{to{transform:rotate(360deg)}}.user-tooltip{position:absolute;top:calc(100% + 10px);right:0;background:#fff;border-radius:8px;box-shadow:0 4px 20px #00000026;padding:.875rem 1rem;min-width:220px;opacity:0;visibility:hidden;transform:translateY(-5px);transition:all .2s ease;z-index:1000;color:var(--text);text-align:left}.user-tooltip:before{content:"";position:absolute;top:-6px;right:14px;width:12px;height:12px;background:#fff;transform:rotate(45deg);box-shadow:-2px -2px 4px #0000000d}.user-avatar-container:hover .user-tooltip,.user-avatar-container.open .user-tooltip{opacity:1;visibility:visible;transform:translateY(0)}.tooltip-name{font-size:.9375rem;font-weight:600;color:var(--text);margin-bottom:.25rem}.tooltip-email{font-size:.8125rem;color:var(--text-muted);margin-bottom:.5rem;word-break:break-all}.tooltip-role{font-size:.75rem;color:#fff;background:var(--primary);padding:.25rem .5rem;border-radius:4px;display:inline-block}.tooltip-firm{font-size:.8125rem;color:var(--text);margin-top:.55rem}.tooltip-actions{display:flex;flex-direction:column;width:calc(100% + .75rem);margin:.75rem -.375rem 0;padding-top:.5rem;border-top:1px solid var(--border)}.tooltip-action{display:flex;align-items:center;width:100%;margin:0;padding:.45rem .375rem;border:none;background:transparent;color:var(--text);font-size:.8125rem;font-weight:500;cursor:pointer;text-align:left}.tooltip-action:hover{background:#0d948814;color:var(--primary-dark)}.notice{margin-top:.55rem;color:var(--primary-dark);font-size:.875rem}.tooltip-logout{display:flex;align-items:center;gap:.5rem;width:calc(100% + .75rem);margin:.75rem -.375rem -.25rem;padding:.5rem .375rem;border:none;border-top:1px solid var(--border);background:transparent;color:var(--primary);font-size:.8125rem;font-weight:500;cursor:pointer}.tooltip-logout svg{width:16px;height:16px}.tooltip-logout:hover{background:#0d948814}.app{padding:calc(var(--header-height) + 1.5rem) 1.5rem 2.5rem;max-width:1320px;margin:0 auto}.page-title{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,380px);gap:1rem;align-items:center;margin-bottom:1.25rem}.page-title h2{font-size:1.5rem;font-weight:650;margin:0;line-height:1.2}.page-title .lede{color:var(--text-muted);margin:0;line-height:1.2}.video-search{display:flex;align-items:center;justify-content:center;gap:.55rem;min-width:0;width:100%}.video-search input[type=search]{width:min(360px,100%);height:38px;border:1px solid var(--border);border-radius:999px;padding:0 1rem;background:#fff;color:inherit}.video-search input[type=search]:focus{outline:0;border-color:var(--primary);box-shadow:0 0 0 3px #0d94881f}.search-count{color:var(--text-muted);font-size:.78rem;font-weight:600}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,380px);gap:1rem;align-items:start}.side-stack{display:flex;flex-direction:column;gap:1rem}.player-card{min-height:0}.player-card.is-max{position:fixed;inset:calc(var(--header-height) + .75rem) .75rem .75rem;z-index:80;max-height:none}.player-tools,.icon-btn{display:inline-flex;align-items:center;gap:.4rem}.icon-btn{border:1px solid var(--border);background:#fff;color:var(--text);border-radius:6px;width:32px;height:32px;padding:0;justify-content:center;cursor:pointer}.icon-btn svg{width:16px;height:16px}.icon-btn:hover{background:#f8fafc}.player-empty{min-height:420px;height:min(56vh,560px);display:flex;align-items:center;justify-content:center;color:var(--text-muted);background:#f8fafc;border:1px dashed var(--border);border-radius:8px}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:1.15rem 1.25rem;box-shadow:0 1px 2px #0f172a0a}.card h3{font-size:1rem;margin-bottom:.85rem}.card-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.65rem}.card-head h3{margin-bottom:0}.link-btn{border:0;background:transparent;color:var(--primary);font-size:.75rem;font-weight:600;cursor:pointer;padding:0}.audit-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem;max-height:220px;overflow:auto}.audit-list.is-modal{max-height:min(60vh,480px)}.audit-modal{width:min(640px,100%)}.audit-list li{padding-bottom:.5rem;border-bottom:1px solid var(--border)}.audit-list li:last-child{border-bottom:0;padding-bottom:0}.audit-summary{font-size:.8rem;font-weight:600;line-height:1.3}.audit-meta{margin-top:.15rem;font-size:.72rem;color:var(--text-muted);line-height:1.35}.audit-link{display:inline;margin:0;padding:0;border:0;background:transparent;font:inherit;font-weight:600;color:var(--primary);text-decoration:none;cursor:pointer}.audit-link:hover{text-decoration:underline}.btn{display:inline-flex;align-items:center;justify-content:center;padding:.5rem 1rem;border:none;border-radius:6px;font-size:.875rem;font-weight:500;cursor:pointer;gap:.5rem}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--primary-dark)}.btn-secondary{background:#fff;color:var(--text);border:1px solid var(--border)}.btn-secondary:hover:not(:disabled){background:#f8fafc}.btn-danger{background:#b91c1c;color:#fff}.btn-danger:hover:not(:disabled){background:#991b1b}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:200;padding:1rem;overflow:auto}.modal{width:min(420px,100%);max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);overflow:hidden;background:#fff;border-radius:12px;box-shadow:0 16px 40px #0f172a33;padding:1.25rem 1.35rem 1.15rem}.modal-body{padding:1.25rem 1.35rem 1.15rem;overflow:auto;max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem)}.modal h3{font-size:1.1rem;margin-bottom:.4rem}.modal-actions{display:flex;justify-content:flex-end;gap:.6rem;margin-top:1.15rem;flex-shrink:0}.dropzone{display:block;border:1.5px dashed var(--border);border-radius:10px;padding:1.4rem 1rem;text-align:center;color:var(--text-muted);background:#fbfdfe;cursor:pointer}.dropzone-hint{margin-top:.35rem;font-size:.8rem}.dropzone.is-dragover{border-color:var(--primary);background:#0d948814}.dropzone strong{color:var(--primary)}.progress{height:8px;background:var(--border);border-radius:99px;overflow:hidden;margin-top:.75rem}.progress>span{display:block;height:100%;background:var(--primary)}.video-list{display:flex;flex-direction:column;gap:.55rem}.video-row{display:flex;align-items:center;justify-content:space-between;gap:.5rem;border:1px solid var(--border);border-radius:8px;padding:.55rem .65rem;background:#fff;text-align:left;width:100%}.video-row-main{flex:1;border:0;background:transparent;text-align:left;cursor:pointer;padding:0;display:flex;align-items:center;gap:.65rem;min-width:0}.video-thumb{width:72px;height:42px;border-radius:6px;object-fit:cover;background:#0f172a;flex-shrink:0}.video-thumb.is-empty{display:inline-block;background:linear-gradient(135deg,#cbd5e1,#94a3b8)}.video-copy{min-width:0}.btn-delete{border:0;background:transparent;color:#94a3b8;cursor:pointer;padding:.3rem;border-radius:6px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.btn-delete svg{width:16px;height:16px}.btn-delete:hover,.btn-delete:focus-visible{color:#b91c1c;background:#fef2f2}.video-row.active{border-color:var(--primary);box-shadow:0 0 0 3px #0d94881f}.video-row .name{font-weight:600}.video-row .meta{color:var(--text-muted);font-size:.8rem}.status{font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em;border-radius:999px;padding:.15rem .5rem}.status.uploaded{background:#eff6ff;color:#1d4ed8}.status.processing{background:#fff7ed;color:#c2410c}.status.scanning{background:#f5f3ff;color:#6d28d9}.status.ready{background:#ecfdf5;color:#047857}.status.failed{background:#fef2f2;color:#b91c1c}.stage-bar{margin-top:.35rem;height:4px;border-radius:999px;background:var(--border);overflow:hidden}.stage-bar span{display:block;height:100%;width:40%;border-radius:999px;animation:stage-slide 1.1s ease-in-out infinite}.stage-bar.is-uploaded span{background:#2563eb}.stage-bar.is-processing span{background:#ea580c}.stage-bar.is-scanning span{background:#7c3aed}@keyframes stage-slide{0%{transform:translate(-120%)}to{transform:translate(280%)}}.player{width:100%;min-height:420px;height:min(56vh,560px);max-height:none;background:#0f172a;border-radius:8px}.player-card.is-max .player{max-height:calc(100vh - 180px);min-height:420px}.popout{min-height:100vh;background:#0f172a;display:flex;flex-direction:column}.popout-bar{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.55rem .75rem;background:#fff;border-bottom:1px solid var(--border)}.popout-bar h1{font-size:.95rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.popout .player,.popout .player-empty{flex:1;width:100%;min-height:0;height:auto;max-height:none;border-radius:0}.details{margin-top:.9rem;padding-top:.85rem;border-top:1px solid var(--border)}.details h4{font-size:.78rem;font-weight:650;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted);margin-bottom:.65rem}.details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem 1.25rem}.details-grid div{min-width:0}.details-grid span{display:block;font-size:.72rem;color:var(--text-muted)}.details-grid strong{display:block;margin-top:.12rem;font-size:.84rem;font-weight:600;line-height:1.3}.details-grid em{display:block;margin-top:.1rem;font-style:normal;font-size:.78rem;color:var(--text-muted)}.details-span{grid-column:1 / -1}.details-grid label{display:block;font-size:.72rem;color:var(--text-muted);margin-bottom:.2rem}.details-grid input,.details-grid textarea{width:100%;border:1px solid var(--border);border-radius:8px;padding:.45rem .6rem;font:inherit;color:inherit;background:#fff}.details-grid textarea{resize:vertical;min-height:72px}.details-actions{margin-top:.85rem}.request-modal{width:min(520px,100%);display:flex;flex-direction:column;min-height:0;padding:0}.request-panel{margin-top:.85rem;display:flex;flex-direction:column;gap:.45rem}.request-panel label{font-size:.72rem;color:var(--text-muted)}.request-panel input,.request-panel textarea{width:100%;border:1px solid var(--border);border-radius:8px;padding:.45rem .6rem;font:inherit;background:#fff}.party-list{display:flex;flex-direction:column;gap:.65rem}.party-group{display:flex;flex-direction:column;gap:.35rem}.party-group-label{font-size:.72rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.party-choice{display:flex;flex-direction:column;gap:.45rem;margin:0;padding:.55rem .65rem;border:1px solid var(--border);border-radius:8px;background:#fff}.party-choice.is-affiliated{margin-left:1rem}.party-choice.is-selected{border-color:var(--primary);background:#0d948814}.party-choice-main{display:flex;align-items:flex-start;gap:.55rem;margin:0;cursor:pointer;font-size:inherit;color:inherit}.party-choice-main input{width:auto;margin-top:.2rem;accent-color:var(--primary)}.party-choice strong,.party-choice em{display:block}.party-choice em{font-style:normal;color:var(--text-muted);font-size:.75rem}.request-history{margin-top:1.15rem;padding-top:.85rem;border-top:1px solid var(--border);min-height:0;display:flex;flex-direction:column}.request-history h4{margin:0 0 .45rem;font-size:.78rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em}.request-history .empty{margin:0;font-size:.8rem;color:var(--text-muted)}.request-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.65rem}.request-card{margin:0;padding:.75rem .8rem .7rem;border:1px solid var(--border);border-radius:10px;background:#fff}.request-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem}.request-card-who{min-width:0}.request-card-who strong,.request-card-who span{display:block}.request-card-who strong{font-size:.9rem;line-height:1.3}.request-card-who span{margin-top:.12rem;color:var(--text-muted);font-size:.75rem;word-break:break-all}.request-card-meta{margin-top:.28rem;color:var(--text-muted);font-size:.75rem}.request-card-tools{display:flex;align-items:center;gap:.35rem;flex:none}.request-icon-btn{width:28px;height:28px;border:0;background:transparent;color:var(--primary)}.request-icon-btn svg{width:15px;height:15px}.request-icon-btn.is-danger{color:#b91c1c}.request-icon-btn:disabled{opacity:.5;cursor:not-allowed}.submit-page{min-height:100vh;padding:1rem;max-width:560px;margin:0 auto}.submit-bar{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.submit-bar img{height:36px}.submit-bar h1{font-size:1.15rem}.submit-bar p{color:var(--text-muted);font-size:.85rem}.submit-note{background:#f8fafc;border:1px solid var(--border);border-radius:8px;padding:.85rem;margin-bottom:.85rem}.submit-comment{display:block;font-size:.78rem;color:var(--text-muted);margin-bottom:.3rem}.submit-page input[type=text],.submit-page textarea{width:100%;border:1px solid var(--border);border-radius:8px;padding:.55rem .7rem;font:inherit;margin-bottom:.85rem}.empty{color:var(--text-muted);padding:1.5rem .25rem;text-align:center}.inline-spinner{display:inline-block;width:14px;height:14px;margin-right:.4rem;border:2px solid var(--border);border-top-color:var(--primary);border-radius:50%;vertical-align:-2px;animation:avatar-spin .7s linear infinite}.error{color:var(--error);margin-top:.75rem}#toast-container{position:fixed;top:calc(var(--header-height) + .85rem);right:1.25rem;display:flex;flex-direction:column;gap:.65rem;z-index:1001;pointer-events:none}.toast{pointer-events:auto;display:flex;align-items:flex-start;gap:.75rem;width:min(380px,calc(100vw - 2rem));background:#fff;color:var(--text);border:1px solid var(--border);border-left-width:4px;border-radius:10px;box-shadow:0 10px 30px #0f172a1f;padding:.85rem .75rem .85rem .9rem;animation:toast-slide-in .25s ease}.toast.success{border-left-color:var(--success)}.toast.error{border-left-color:var(--error)}.toast.warning{border-left-color:var(--warning)}.toast.info{border-left-color:var(--primary)}.toast-icon{display:flex;align-items:center;justify-content:center;width:1.35rem;height:1.35rem;flex-shrink:0;margin-top:.05rem}.toast-icon svg{width:18px;height:18px}.toast.success .toast-icon{color:var(--success)}.toast.error .toast-icon{color:var(--error)}.toast.warning .toast-icon{color:#d97706}.toast.info .toast-icon{color:var(--primary)}.toast-body{flex:1;min-width:0}.toast-title{font-size:.8125rem;font-weight:650;line-height:1.2}.toast-message{margin-top:.2rem;font-size:.8125rem;color:var(--text-muted);line-height:1.4}.toast-close{border:0;background:transparent;color:var(--text-muted);font-size:1.15rem;line-height:1;cursor:pointer;padding:0 .2rem}.toast-close:hover{color:var(--text)}@keyframes toast-slide-in{0%{transform:translate(16px);opacity:0}to{transform:translate(0);opacity:1}}.gate{min-height:calc(100vh - var(--header-height));display:flex;align-items:center;justify-content:center;padding:calc(var(--header-height) + 2rem) 1rem 2rem;background:radial-gradient(1200px 400px at 50% -10%,rgba(99,197,188,.28),transparent 60%),var(--bg)}.gate-card{width:min(420px,100%);background:#fff;border:1px solid var(--border);border-radius:16px;box-shadow:0 18px 40px #0f172a14;padding:2rem 1.5rem 1.6rem;text-align:center}.gate-mark{width:56px;height:56px;margin:0 auto 1rem;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#63c5bc,#187389);color:#fff}.gate-mark svg{width:26px;height:26px}.gate-spinner{width:22px;height:22px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:avatar-spin .7s linear infinite}.gate.is-error .gate-mark{background:#b91c1c}.gate-card h3{font-size:1.2rem;margin-bottom:.35rem}@media(max-width:900px){.header{padding:0 .85rem}.header h1{font-size:1.05rem}.header-logo{height:28px}.app{padding:calc(var(--header-height) + .85rem) .75rem 1.5rem}.layout,.page-title{grid-template-columns:1fr}.video-search,.video-search input[type=search]{width:100%;min-width:0}.player,.player-empty{min-height:220px;height:min(42vh,360px)}.details-grid{grid-template-columns:1fr}.video-row{flex-wrap:wrap}.modal-backdrop{align-items:flex-start}.request-modal{max-height:calc(100vh - 1.5rem);max-height:calc(100dvh - 1.5rem)}.icon-btn,.btn-delete,.user-avatar{min-width:44px;min-height:44px}}@media(max-width:520px){.beta,.header-meta{display:none}}*{margin:0;padding:0;box-sizing:border-box}:root{--primary: #0d9488;--primary-dark: #0f766e;--secondary: #64748b;--success: #22c55e;--warning: #f59e0b;--error: #ef4444;--bg: #f8fafc;--card: #ffffff;--border: #e2e8f0;--text: #1e293b;--text-muted: #64748b;--header-height: 60px}html,body,#root{min-height:100vh}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,sans-serif;background:var(--bg);color:var(--text);line-height:1.5}
