/* Auto-ported from portal.html, scoped under .drone-scope. Custom additions at bottom. */

.drone-scope * { margin: 0; padding: 0; box-sizing: border-box; }
/* On the marketing site the .drone-scope wrapper only hosts the upload-funnel
   modal, so it must NOT paint a full-screen background/glow over the page. */
.drone-scope {
    color: #fff;
}
.drone-scope::before { content: none; display: none; }
.drone-scope nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 6%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.drone-scope nav .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.drone-scope nav .logo .logo-mark { height: 44px; width: auto; filter: drop-shadow(0 0 9px rgba(60,224,230,0.45)); }
.drone-scope nav .logo .logo-word { font-family: 'Space Grotesk','Inter',sans-serif; font-weight: 500; font-size: 24px; letter-spacing: -0.02em; color: #EAF2F4; line-height: 1; }
.drone-scope nav .logo .logo-word b { font-weight: 600; }
.drone-scope nav .nav-right { display: flex; align-items: center; gap: 16px; }
.drone-scope nav .nav-email { font-size: 13px; opacity: 0.5; }
.drone-scope nav .btn-link {
    background: none; border: 0; color: rgba(255,255,255,0.7);
    font-size: 13px; cursor: pointer; padding: 8px 14px; border-radius: 18px;
    transition: 0.2s ease;
}
.drone-scope nav .btn-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.drone-scope .signin-wrap {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.drone-scope .signin-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 24px;
    padding: 40px;
}
.drone-scope .signin-card h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}
.drone-scope .signin-card .sub { font-size: 14px; opacity: 0.6; margin-bottom: 28px; line-height: 1.5; }
.drone-scope .field { margin-bottom: 16px; }
.drone-scope .field label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-bottom: 8px;
    font-weight: 600;
}
.drone-scope .field input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 16px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: 0.2s ease;
}
.drone-scope .field input:focus {
    outline: none;
    border-color: rgba(0,212,255,0.5);
    background: rgba(255,255,255,0.07);
}
.drone-scope .code-input {
    letter-spacing: 12px;
    text-align: center;
    font-size: 24px !important;
    font-weight: 700;
    font-family: monospace !important;
}
.drone-scope .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: 0.2s ease;
    text-decoration: none;
}
.drone-scope .btn-primary {
    background: linear-gradient(90deg, #00d4ff, #ff00c8);
    color: #fff;
    width: 100%;
}
.drone-scope .btn-primary:hover { opacity: 0.88; }
.drone-scope .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.drone-scope .btn-ghost {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
}
.drone-scope .btn-ghost:hover { background: rgba(255,255,255,0.05); color: #fff; }
.drone-scope .signin-msg {
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.drone-scope .msg-ok { background: rgba(0,255,150,0.08); border: 1px solid rgba(0,255,150,0.25); color: rgba(140,255,200,0.95); }
.drone-scope .msg-err { background: rgba(255,80,120,0.08); border: 1px solid rgba(255,80,120,0.3);  color: rgba(255,160,180,0.95); }
.drone-scope .linklike {
    background: none; border: 0; color: rgba(0,212,255,0.9);
    font-size: 13px; cursor: pointer; padding: 0; margin-top: 12px;
    font-family: inherit;
    display: block;
    text-align: center;
    width: 100%;
}
.drone-scope .linklike:hover { text-decoration: underline; }
.drone-scope .wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 6% 80px;
}
.drone-scope .top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.drone-scope .top h1 { font-size: 32px; font-weight: 800; }
.drone-scope .top .greet-sub { font-size: 14px; opacity: 0.55; margin-top: 4px; }
.drone-scope .portal-app-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 20px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, rgba(0,212,255,0.08), rgba(255,0,200,0.05));
    border: 1px solid rgba(0,212,255,0.25);
    border-radius: 14px;
    flex-wrap: wrap;
}
.drone-scope .portal-app-banner-text {
    display: flex; flex-direction: column; gap: 2px;
    font-size: 13px;
}
.drone-scope .portal-app-banner-text strong {
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}
.drone-scope .portal-app-banner-text span { opacity: 0.7; }
.drone-scope .portal-app-banner-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 24px;
    background: linear-gradient(90deg, #00d4ff, #ff00c8);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.2s ease;
}
.drone-scope .portal-app-banner-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.drone-scope .stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}
.drone-scope .stat {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 18px 20px;
}
.drone-scope .stat .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.55;
    margin-bottom: 8px;
}
.drone-scope .stat .val { font-size: 26px; font-weight: 800; color: #00d4ff; }
.drone-scope .stat .hint { font-size: 12px; opacity: 0.45; margin-top: 6px; }
.drone-scope .section-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
}
.drone-scope .section-head h2 { font-size: 18px; font-weight: 700; }
.drone-scope .shows-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.drone-scope .show {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 20px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 24px;
    align-items: center;
}
.drone-scope .show-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.drone-scope .show-meta {
    font-size: 13px;
    opacity: 0.6;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.drone-scope .show-meta .dot { opacity: 0.4; }
.drone-scope .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 10px;
}
.drone-scope .pill-draft { background: rgba(255,200,0,0.1); color: rgba(255,220,120,0.95); border: 1px solid rgba(255,200,0,0.2); }
.drone-scope .pill-paid { background: rgba(0,212,255,0.1); color: rgba(140,220,255,0.95); border: 1px solid rgba(0,212,255,0.25); }
.drone-scope .pill-ready { background: rgba(0,255,150,0.08); color: rgba(140,255,200,0.95); border: 1px solid rgba(0,255,150,0.25); }
.drone-scope .pill-upcoming { background: rgba(0,212,255,0.06); color: rgba(140,210,255,0.9); border: 1px solid rgba(0,212,255,0.2); }
.drone-scope .pill-live { background: rgba(255,0,200,0.1); color: rgba(255,140,220,0.95); border: 1px solid rgba(255,0,200,0.25); }
.drone-scope .pill-ended { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.1); }
.drone-scope .pill-cancelled { background: rgba(255,80,120,0.08); color: rgba(255,160,180,0.95); border: 1px solid rgba(255,80,120,0.25); }
.drone-scope .pill-archived { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5);  border: 1px solid rgba(255,255,255,0.1); }
.drone-scope .show-token {
    margin-top: 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 12px;
    grid-column: 1 / -1;
}
.drone-scope .show-token .url { flex: 1; opacity: 0.75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drone-scope .show-token .mini {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.85);
    cursor: pointer;
    font-family: inherit;
}
.drone-scope .show-token .mini:hover { background: rgba(255,255,255,0.1); }
.drone-scope .show-token .mini.copied { background: rgba(0,255,150,0.12); border-color: rgba(0,255,150,0.3); color: rgba(180,255,220,0.95); }
.drone-scope .qr-thumb {
    width: 86px; height: 86px;
    background: #fff;
    border-radius: 10px;
    padding: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: 0.2s ease;
}
.drone-scope .qr-thumb:hover { transform: scale(1.04); box-shadow: 0 0 18px rgba(0,212,255,0.25); }
.drone-scope .qr-thumb canvas {
    width: 100% !important; height: 100% !important;
    max-width: 100%; max-height: 100%;
    display: block;
}
.drone-scope .qr-detail { text-align: center; }
.drone-scope .qr-detail .qr-big {
    width: 280px; height: 280px;
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin: 8px auto 18px;
}
.drone-scope .qr-detail .qr-big canvas {
    width: 100% !important; height: 100% !important;
    max-width: 100%; max-height: 100%;
    display: block;
}
.drone-scope .qr-detail .qr-url {
    font-family: monospace; font-size: 12px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 12px;
    word-break: break-all;
    opacity: 0.8;
    margin-bottom: 8px;
}
.drone-scope .qr-detail .qr-name { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.drone-scope .qr-app-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.55;
    opacity: 0.9;
    text-align: center;
}
.drone-scope .qr-app-note a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,212,255,0.4);
    font-weight: 600;
}
.drone-scope .qr-app-note a:hover { border-bottom-color: #00d4ff; }
.drone-scope .show-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.drone-scope .version-toggle {
    grid-column: 1 / -1;
    margin-top: 12px;
    font-size: 12px;
    color: rgba(0,212,255,0.85);
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    align-self: flex-start;
    width: fit-content;
}
.drone-scope .version-toggle:hover { color: #00d4ff; }
.drone-scope .version-toggle .chev { transition: transform 0.2s ease; }
.drone-scope .version-toggle.open .chev { transform: rotate(180deg); }
.drone-scope .version-list {
    grid-column: 1 / -1;
    margin-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.drone-scope .version-row {
    display: grid;
    grid-template-columns: 56px 50px 1fr 110px 110px;
    gap: 14px;
    font-size: 13px;
    padding: 6px 0;
    align-items: center;
}
.drone-scope .version-row .qr-thumb {
    width: 50px; height: 50px;
    padding: 4px;
    border-radius: 8px;
}
.drone-scope .version-row .v-num { font-weight: 700; color: #00d4ff; }
.drone-scope .version-row .v-when { opacity: 0.75; }
.drone-scope .version-row .v-meta { opacity: 0.55; font-family: monospace; font-size: 12px; }
.drone-scope .version-row .v-current {
    font-size: 10px; text-transform: uppercase; letter-spacing: 1px;
    background: rgba(0,212,255,0.1);
    color: rgba(140,220,255,0.95);
    padding: 2px 8px; border-radius: 8px;
    border: 1px solid rgba(0,212,255,0.25);
    display: inline-block;
}
.drone-scope .version-row .v-trim { opacity: 0.6; font-size: 12px; font-family: monospace; }
.drone-scope .version-loading { font-size: 12px; opacity: 0.5; padding: 6px 0; }
.drone-scope .version-empty { font-size: 12px; opacity: 0.5; padding: 6px 0; }
.drone-scope .archived-toggle {
    display: inline-block;
    margin-top: 28px;
    color: rgba(0,212,255,0.85);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 18px;
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    transition: 0.2s ease;
}
.drone-scope .archived-toggle:hover { background: rgba(0,212,255,0.1); color: #00d4ff; }
.drone-scope .archived-toggle .chev { display: inline-block; margin-left: 6px; transition: transform 0.2s ease; }
.drone-scope .archived-toggle.open .chev { transform: rotate(180deg); }
.drone-scope .empty {
    text-align: center;
    padding: 60px 24px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 18px;
}
.drone-scope .empty h3 { font-size: 18px; margin-bottom: 8px; font-weight: 700; }
.drone-scope .empty p { font-size: 14px; opacity: 0.6; margin-bottom: 22px; }
.drone-scope .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(0,255,150,0.12);
    border: 1px solid rgba(0,255,150,0.3);
    color: rgba(180,255,220,0.95);
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
    z-index: 50;
}
.drone-scope .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.drone-scope .toast.err { background: rgba(255,80,120,0.12); border-color: rgba(255,80,120,0.35); color: rgba(255,170,190,0.95); }
.drone-scope .modal-bg {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.78);
    backdrop-filter: blur(8px);
    display: none; align-items: flex-start; justify-content: center;
    z-index: 100; padding: 40px 20px; overflow-y: auto;
}
.drone-scope .modal-bg.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.drone-scope .modal {
    background: #0c0c0c;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 36px;
    max-width: 640px;
    width: 100%;
    position: relative;
    margin: auto;
}
.drone-scope .modal-close {
    position: absolute; top: 10px; right: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    font-size: 24px; line-height: 1; cursor: pointer;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.15s ease;
    font-family: inherit;
    z-index: 10;
}
.drone-scope .modal-close:hover {
    background: rgba(255,80,120,0.15);
    border-color: rgba(255,80,120,0.4);
    color: #fff;
    transform: scale(1.08);
}
.drone-scope .modal h2 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.drone-scope .modal .modal-sub { font-size: 14px; opacity: 0.6; margin-bottom: 24px; line-height: 1.5; }
.drone-scope .funnel-card {
    text-align: left;
    position: relative;
}
.drone-scope .funnel-progress {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 28px; gap: 8px;
}
.drone-scope .funnel-progress .pip {
    flex: 1; height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
}
.drone-scope .funnel-progress .pip.active { background: linear-gradient(90deg, #00d4ff, #ff00c8); }
.drone-scope .funnel-progress .pip.done { background: rgba(0,212,255,0.5); }
.drone-scope .funnel-step { display: none; animation: stepIn 0.3s ease; }
.drone-scope .funnel-step.active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.drone-scope .funnel-card[data-mode="auth"] .anon-only { display: none !important; }
.drone-scope .funnel-card[data-mode="anon"] .auth-only { display: none !important; }
.drone-scope .funnel-card[data-mode="auth"] .funnel-step.anon-only { display: none !important; }
.drone-scope .funnel-card[data-mode="auth"] .funnel-progress .pip[data-step="4"] { display: none; }
.drone-scope .step-label {
    font-size: 11px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(0,212,255,0.8); margin-bottom: 10px;
}
.drone-scope .step-title {
    font-size: 26px; font-weight: 700; margin-bottom: 6px;
}
.drone-scope .upload-ip-note {
    margin-top: 22px;
    padding: 12px 16px;
    background: rgba(0,212,255,0.04);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.55;
    opacity: 0.85;
    text-align: center;
}
.drone-scope .upload-ip-note a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,212,255,0.4);
}
.drone-scope .upload-ip-note a:hover { border-bottom-color: #00d4ff; }
.drone-scope .help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(0,212,255,0.1);
    border: 1px solid rgba(0,212,255,0.35);
    color: rgba(0,212,255,0.95);
    font-size: 13px; font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    margin-left: 8px;
    vertical-align: middle;
    padding: 0;
    transition: 0.2s ease;
}
.drone-scope .help-btn:hover { background: rgba(0,212,255,0.2); border-color: rgba(0,212,255,0.6); }
.drone-scope .help-modal { max-width: 720px; max-height: 85vh; overflow-y: auto; }
.drone-scope .help-format {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.drone-scope .help-format:last-of-type { border-bottom: none; }
.drone-scope .help-format h3 {
    font-size: 16px; font-weight: 700;
    margin-bottom: 10px;
    color: rgba(0,212,255,0.95);
}
.drone-scope .help-desc {
    font-size: 14px; opacity: 0.78;
    margin-bottom: 10px; line-height: 1.6;
}
.drone-scope .help-desc code {
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.2);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: rgba(0,212,255,0.95);
}
.drone-scope .help-code {
    background: #000;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 12px 14px;
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
    overflow-x: auto;
    margin: 8px 0 4px;
    white-space: pre;
    color: rgba(255,255,255,0.85);
}
.drone-scope .help-note {
    margin-top: 18px;
    padding: 14px 18px;
    background: rgba(255,200,0,0.05);
    border: 1px solid rgba(255,200,0,0.2);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.95;
}
.drone-scope .help-note strong { color: rgba(255,220,120,0.95); }
.drone-scope .help-note a {
    color: #00d4ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,212,255,0.4);
}
.drone-scope .help-note a:hover { border-bottom-color: #00d4ff; }
.drone-scope .help-tips {
    margin-top: 14px;
    padding: 14px 18px;
    background: rgba(0,212,255,0.04);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 12px;
}
.drone-scope .help-tips h3 {
    font-size: 13px; margin: 0 0 8px;
    color: rgba(0,212,255,0.95);
    text-transform: uppercase;
    letter-spacing: 1px; font-weight: 700;
}
.drone-scope .help-tips ul { padding-left: 20px; margin: 0; }
.drone-scope .help-tips li { font-size: 13px; opacity: 0.85; line-height: 1.7; }
.drone-scope .step-desc {
    font-size: 14px; opacity: 0.65;
    margin-bottom: 22px; line-height: 1.55;
}
.drone-scope .dropzone {
    display: block;
    border: 2px dashed rgba(0,212,255,0.3);
    border-radius: 16px;
    padding: 38px 24px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s ease;
    background: rgba(0,212,255,0.02);
}
.drone-scope .dropzone:hover, .drone-scope .dropzone.dragging {
    border-color: rgba(0,212,255,0.65);
    background: rgba(0,212,255,0.05);
}
.drone-scope .dropzone-icon { font-size: 38px; margin-bottom: 12px; display: block; }
.drone-scope .dropzone-text { font-weight: 600; margin-bottom: 4px; }
.drone-scope .dropzone-hint { font-size: 12px; opacity: 0.5; }
.drone-scope .dropzone input[type="file"] { display: none; }
.drone-scope .file-chip {
    display: inline-flex; gap: 10px; align-items: center;
    background: rgba(0,212,255,0.08);
    border: 1px solid rgba(0,212,255,0.25);
    padding: 8px 14px; border-radius: 10px;
    font-family: monospace; font-size: 13px;
    margin-top: 14px;
}
.drone-scope .validate-progress {
    background: rgba(255,255,255,0.05); border-radius: 10px;
    overflow: hidden; height: 5px; margin: 22px 0 16px;
}
.drone-scope .validate-progress > div {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #00d4ff, #ff00c8);
    transition: width 0.3s ease;
}
.drone-scope .validate-line {
    display: flex; gap: 10px; align-items: center;
    font-family: monospace; font-size: 13px;
    opacity: 0.35; transition: opacity 0.3s; margin: 6px 0;
}
.drone-scope .validate-line.done { opacity: 1; }
.drone-scope .validate-line .tick { color: #00d4ff; font-weight: 700; }
.drone-scope .validate-summary {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px; margin: 22px 0;
}
.drone-scope .summary-tile {
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 12px; padding: 14px;
}
.drone-scope .summary-tile .k { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.55; margin-bottom: 4px; }
.drone-scope .summary-tile .v { font-size: 20px; font-weight: 700; color: #00d4ff; }
.drone-scope .summary-ok {
    background: rgba(0,255,150,0.08);
    border: 1px solid rgba(0,255,150,0.3);
    color: rgba(140,255,200,0.95);
    padding: 12px 16px; border-radius: 12px;
    font-size: 14px; font-weight: 600;
    margin: 18px 0;
}
.drone-scope .summary-err {
    background: rgba(255,80,120,0.08);
    border: 1px solid rgba(255,80,120,0.3);
    color: rgba(255,160,180,0.95);
    padding: 12px 16px; border-radius: 12px;
    font-size: 13px; margin: 18px 0;
    line-height: 1.5;
}
.drone-scope .summary-err strong { color: #ff7090; }
.drone-scope .funnel-card .field { margin-bottom: 16px; }
.drone-scope .funnel-card .field label {
    display: block; font-size: 12px; text-transform: uppercase;
    letter-spacing: 1px; opacity: 0.6; margin-bottom: 8px; font-weight: 600;
}
.drone-scope .funnel-card .field input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 13px 16px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    transition: 0.2s ease;
}
.drone-scope .funnel-card .field input:focus {
    outline: none;
    border-color: rgba(0,212,255,0.5);
    background: rgba(255,255,255,0.07);
}
.drone-scope .funnel-card .field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.drone-scope .funnel-card .field select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 13px 14px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
}
.drone-scope .funnel-card .field select:focus {
    outline: none;
    border-color: rgba(0,212,255,0.5);
}
.drone-scope .error-msg { color: #ff7090; font-size: 13px; margin-top: 8px; }
.drone-scope .qr-box { text-align: center; padding: 14px 0 6px; }
.drone-scope .qr-box .qr {
    width: 200px; height: 200px;
    background: #fff;
    border-radius: 14px;
    margin: 0 auto 14px;
    padding: 12px;
}
.drone-scope .qr-box .qr canvas {
    width: 100% !important; height: 100% !important;
    max-width: 100%; max-height: 100%;
    display: block;
}
.drone-scope .player {
    margin: 18px 0 4px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 12px;
}
.drone-scope .player canvas { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; display: block; }
.drone-scope .player-bar { display: flex; align-items: center; gap: 14px; margin-top: 10px; font-size: 13px; }
.drone-scope .player-bar .play-btn {
    background: linear-gradient(90deg, #00d4ff, #ff00c8);
    border: 0; color: #fff;
    width: 34px; height: 34px; border-radius: 50%;
    font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-family: inherit;
}
.drone-scope .player-bar .time { font-family: monospace; opacity: 0.75; min-width: 86px; }
.drone-scope .player-bar .speed {
    margin-left: auto;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff; padding: 6px 10px; border-radius: 8px;
    font-family: inherit; font-size: 12px;
}
.drone-scope .player-timeline { position: relative; margin-top: 12px; height: 26px; user-select: none; }
.drone-scope .player-timeline .track {
    position: absolute; left: 10px; right: 10px; top: 9px; height: 8px;
    background: rgba(255,255,255,0.08); border-radius: 4px;
}
.drone-scope .player-timeline .trim-fill {
    position: absolute; top: 0; bottom: 0;
    background: rgba(0,212,255,0.25);
    border-top: 1px solid rgba(0,212,255,0.6);
    border-bottom: 1px solid rgba(0,212,255,0.6);
}
.drone-scope .player-timeline .handle {
    position: absolute; top: -3px;
    width: 14px; height: 22px;
    background: linear-gradient(180deg, #00d4ff, #0099cc);
    border-radius: 4px;
    cursor: ew-resize;
    transform: translateX(-7px);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.drone-scope .player-timeline .handle::after {
    content: ""; display: block; width: 2px; height: 12px;
    background: rgba(255,255,255,0.5);
    margin: 5px auto;
}
.drone-scope .player-timeline .playhead {
    position: absolute; top: 4px; bottom: 4px; width: 2px;
    background: #fff; transform: translateX(-1px);
    pointer-events: none;
    box-shadow: 0 0 6px rgba(255,255,255,0.6);
}
.drone-scope .trim-labels {
    display: flex; justify-content: space-between;
    font-size: 12px; opacity: 0.7; margin-top: 14px;
    flex-wrap: wrap; gap: 8px;
}
.drone-scope .trim-labels strong { color: #00d4ff; font-family: monospace; }
.drone-scope .trim-reset {
    background: none; border: 0; color: rgba(0,212,255,0.85);
    font-size: 12px; cursor: pointer; font-family: inherit;
    text-decoration: underline; padding: 0;
}
.drone-scope .trim-reset:hover { color: #00d4ff; }
.drone-scope .btn-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.drone-scope .btn-row .btn { flex: 1; min-width: 120px; padding: 12px 18px; font-size: 14px; justify-content: center; }
.drone-scope .btn-row .btn-ghost { background: none; border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); cursor: pointer; }
.drone-scope .btn-row .btn-ghost:hover { background: rgba(255,255,255,0.04); }
@media (max-width: 600px) {
.drone-scope .show { grid-template-columns: 1fr; }
.drone-scope .show-actions { width: 100%; }
.drone-scope .modal { padding: 24px; }
}

/* ---- custom additions (classes the old portal styled inline) ---- */
.drone-scope .drone-page { max-width: 1100px; }
.drone-scope .show-main { display: flex; gap: 18px; align-items: center; }
.drone-scope .v-badge { opacity: 0.5; font-weight: 400; font-size: 13px; margin-left: 6px; }
.drone-scope .v-current { margin-left: 8px; }
.drone-scope .qr-payload { font-size: 13px; opacity: 0.55; font-family: monospace; margin-top: 12px; word-break: break-all; }
.drone-scope .btn.danger { color: #ff7090; border-color: rgba(255,80,120,0.35); }
.drone-scope .modal { max-height: 88vh; overflow-y: auto; }

/* ---- File-prep help modal (the "?" on the upload step) ---- */
/* Opened from inside the upload modal, so it must stack ABOVE it (both are
   .modal-bg at z-index 100; this one wins). */
.drone-scope #helpModal { z-index: 200; }
.drone-scope .help-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,212,255,0.1); border: 1px solid rgba(0,212,255,0.35);
  color: rgba(0,212,255,0.95); font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer; margin-left: 8px;
  vertical-align: middle; padding: 0; transition: 0.2s ease;
}
.drone-scope .help-btn:hover { background: rgba(0,212,255,0.2); border-color: rgba(0,212,255,0.6); }
.drone-scope .help-modal { max-width: 720px; max-height: 85vh; overflow-y: auto; }
.drone-scope .help-format {
  margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.drone-scope .help-format:last-of-type { border-bottom: none; }
.drone-scope .help-format h3 {
  font-size: 16px; font-weight: 700; margin-bottom: 10px; color: rgba(0,212,255,0.95);
}
.drone-scope .help-desc { font-size: 14px; opacity: 0.78; margin-bottom: 10px; line-height: 1.6; }
.drone-scope .help-desc code {
  background: rgba(0,212,255,0.08); border: 1px solid rgba(0,212,255,0.2);
  padding: 1px 6px; border-radius: 4px; font-size: 12px; color: rgba(0,212,255,0.95);
}
.drone-scope .help-code {
  background: #000; border: 1px solid rgba(255,255,255,0.08); border-radius: 8px;
  padding: 12px 14px; font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12px; line-height: 1.55; overflow-x: auto; margin: 8px 0 4px;
  white-space: pre; color: rgba(255,255,255,0.85);
}
.drone-scope .help-note {
  margin-top: 18px; padding: 14px 18px;
  background: rgba(255,200,0,0.05); border: 1px solid rgba(255,200,0,0.2);
  border-radius: 12px; font-size: 13px; line-height: 1.6; opacity: 0.95;
}
.drone-scope .help-note strong { color: rgba(255,220,120,0.95); }
.drone-scope .help-note a { color: #00d4ff; text-decoration: none; border-bottom: 1px solid rgba(0,212,255,0.4); }
.drone-scope .help-note a:hover { border-bottom-color: #00d4ff; }
.drone-scope .help-tips {
  margin-top: 14px; padding: 14px 18px;
  background: rgba(0,212,255,0.04); border: 1px solid rgba(0,212,255,0.15); border-radius: 12px;
}
.drone-scope .help-tips h3 {
  font-size: 13px; margin: 0 0 8px; color: rgba(0,212,255,0.95);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.drone-scope .help-tips ul { padding-left: 20px; margin: 0; }
.drone-scope .help-tips li { font-size: 13px; opacity: 0.85; line-height: 1.7; }
