:root {
    --bg-main: #080c14;
    --bg-card: rgba(15, 23, 42, 0.85);
    --bg-card-hover: rgba(30, 41, 59, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-highlight: rgba(245, 158, 11, 0.4);
    
    /* Hollywood Cinema Gold / Tungsten Accent (Zero Purple) */
    --primary: #f59e0b;
    --primary-glow: rgba(245, 158, 11, 0.28);
    --primary-hover: #d97706;
    
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --text-dim: #94a3b8;
    
    --risk-critical: #ef4444;
    --risk-critical-bg: rgba(239, 68, 68, 0.12);
    --risk-high: #f97316;
    --risk-high-bg: rgba(249, 115, 22, 0.12);
    --risk-medium: #eab308;
    --risk-medium-bg: rgba(234, 179, 8, 0.12);
    --risk-low: #10b981;
    --risk-low-bg: rgba(16, 185, 129, 0.12);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(245, 158, 11, 0.05) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(14, 165, 233, 0.04) 0%, transparent 45%);
}

/* Navigation */
.top-nav {
    border-bottom: 1px solid var(--border-color);
    background: rgba(8, 12, 20, 0.92);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: 800;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.3);
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.brand-title .highlight {
    color: #f59e0b;
    margin-left: 2px;
}

.brand-tag {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-dim);
}

.status-badges {
    display: flex;
    gap: 12px;
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.status-pill.parallel {
    border-color: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

.status-pill.judge-vip {
    cursor: pointer;
    transition: all 0.2s ease;
    border-color: rgba(234, 179, 8, 0.3);
    color: #fef08a;
    background: rgba(234, 179, 8, 0.08);
}

.status-pill.judge-vip:hover {
    transform: translateY(-1px);
    border-color: rgba(234, 179, 8, 0.6);
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.2);
}

.status-pill.judge-vip.active-vip {
    border-color: rgba(34, 197, 94, 0.4);
    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
}

.status-pill.judge-vip.active-vip .pulse-dot {
    background-color: #22c55e;
    box-shadow: 0 0 8px #22c55e;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--risk-low);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--risk-low);
}

.pulse-dot.active {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Modal Overlay & Card */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 7, 13, 0.82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    width: 100%;
    max-width: 480px;
    padding: 24px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(99, 102, 241, 0.2);
    background: #0b0f19;
    border-radius: var(--radius-lg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.modal-icon {
    font-size: 1.6rem;
}

.modal-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}

.modal-close:hover {
    color: #fff;
}

/* Main Container */
.main-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1;
    width: 100%;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 36px;
    padding-top: 8px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 20px;
    color: #fbbf24;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.15);
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 14px;
    color: #ffffff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 760px;
    margin: 0 auto 24px;
    line-height: 1.55;
}

.hero-subtitle strong {
    color: #f59e0b;
    font-weight: 700;
}

/* Studio Telemetry Stats Ticker */
.stats-ticker {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 30px;
    padding: 12px 26px;
    max-width: 980px;
    margin: 0 auto;
    backdrop-filter: blur(16px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.08);
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
}

.ticker-icon {
    font-size: 0.95rem;
}

.ticker-bold {
    font-weight: 700;
    color: #f8fafc;
}

.ticker-muted {
    color: #94a3b8;
    font-size: 0.76rem;
}

.ticker-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
}

/* Cards & Glassmorphism */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.submission-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.badge-num {
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.input-field {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 32px 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 20px;
}

.drop-zone:hover, .drop-zone.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 12px;
}

.drop-text {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.drop-subtext {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 14px;
}

.selected-file {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: #fde68a;
    font-family: 'JetBrains Mono', monospace;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #080c14;
    border: none;
    border-radius: var(--radius-md);
    padding: 13px 20px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24, #ea580c);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn-download {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    transition: transform 0.15s;
}

.btn-download:hover {
    transform: translateY(-1px);
}

/* Sample Library List */
.sample-intro {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.sample-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sample-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.sample-item:hover, .sample-item.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.sample-type-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.sample-type-badge.image { background: #3b82f6; color: #fff; }
.sample-type-badge.script { background: #f59e0b; color: #000; font-weight: 800; }
.sample-type-badge.text { background: #0284c7; color: #fff; }

.sample-info {
    flex: 1;
}

.sample-info h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.sample-info p {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.btn-sample-run {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-sample-run svg {
    color: inherit;
}

.btn-sample-run:hover,
.sample-item.active .btn-sample-run {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-color: #f59e0b;
    color: #080c14;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transform: translateY(-1px);
}

.sample-item.active {
    border-color: rgba(245, 158, 11, 0.5);
    background: rgba(245, 158, 11, 0.06);
}

.partner-callout {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: var(--radius-md);
    padding: 10px 14px;
}

.partner-logo {
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.15);
    padding: 4px 8px;
    border-radius: 4px;
}

.partner-callout p {
    font-size: 0.75rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Processing View */
.processing-container {
    text-align: center;
    padding: 48px 24px;
    margin-bottom: 36px;
}

.spinner-wrapper {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.radar-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(99, 102, 241, 0.15);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.processing-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.processing-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.pipeline-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dim);
}

.step-item.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px var(--primary-glow);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-dim);
}

.step-item.active .step-label {
    color: var(--text-main);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 12px;
    margin-bottom: 24px;
}

/* Results View */
.results-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.results-title {
    font-size: 1.6rem;
    font-weight: 800;
}

.results-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-edl {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid #475569;
    color: #f1f5f9;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-edl:hover {
    background: rgba(51, 65, 85, 1);
    border-color: #94a3b8;
    transform: translateY(-1px);
}

/* Media Viewport with SVG Bounding Box Overlay */
.media-viewport-container {
    background: #020617;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 28px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.viewport-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    line-height: 0;
}

.preview-img {
    max-height: 480px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    display: block;
}

.bbox-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bbox-svg-overlay rect {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.bbox-svg-overlay text {
    font-family: 'Inter', system-ui, sans-serif;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Underwriter Clearance Assessment Banner */
.underwriter-cert-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-lg);
    padding: 22px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 24px rgba(245, 158, 11, 0.1);
    backdrop-filter: blur(16px);
}

.cert-seal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(16, 185, 129, 0.15));
    border: 2px solid #10b981;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.cert-info {
    flex: 1;
}

.cert-status-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.cert-status-badge.warning {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.4);
    color: #fbbf24;
}

.cert-status-badge.danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

.cert-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 4px;
}

.cert-subtitle {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.45;
}

.cert-score-container {
    text-align: center;
    flex-shrink: 0;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.score-dial {
    font-size: 2.2rem;
    font-weight: 900;
    color: #10b981;
    line-height: 1;
    margin-bottom: 4px;
    text-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.score-subtext {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Risk Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: transform 0.2s;
}

.metric-card:hover {
    transform: translateY(-2px);
}

.metric-val {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.metric-name {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.metric-card.total .metric-val { color: #f8fafc; }
.metric-card.critical .metric-val { color: var(--risk-critical); }
.metric-card.high .metric-val { color: var(--risk-high); }
.metric-card.medium .metric-val { color: var(--risk-medium); }
.metric-card.low .metric-val { color: var(--risk-low); }

/* Filter Bar */
.filter-bar {
    margin-bottom: 20px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-tab:hover, .filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

/* Flag Cards */
.flags-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flag-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: border-color 0.2s, background 0.2s;
}

.flag-card.risk-CRITICAL { border-left-color: var(--risk-critical); }
.flag-card.risk-HIGH { border-left-color: var(--risk-high); }
.flag-card.risk-MEDIUM { border-left-color: var(--risk-medium); }
.flag-card.risk-LOW { border-left-color: var(--risk-low); }

.flag-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.flag-title-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag-timecode {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #93c5fd;
}

.flag-category {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.flag-risk-badge {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
}

.flag-risk-badge.CRITICAL { background: var(--risk-critical-bg); color: var(--risk-critical); border: 1px solid rgba(239, 68, 68, 0.3); }
.flag-risk-badge.HIGH { background: var(--risk-high-bg); color: var(--risk-high); border: 1px solid rgba(249, 115, 22, 0.3); }
.flag-risk-badge.MEDIUM { background: var(--risk-medium-bg); color: var(--risk-medium); border: 1px solid rgba(234, 179, 8, 0.3); }
.flag-risk-badge.LOW { background: var(--risk-low-bg); color: var(--risk-low); border: 1px solid rgba(34, 197, 94, 0.3); }

.flag-entity-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.flag-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* Parallel Grounding Box */
.grounding-box {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
}

.grounding-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #38bdf8;
}

.grounding-query {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.grounding-statutory {
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.45;
    margin-bottom: 10px;
}

.grounding-meta-row {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-dim);
    flex-wrap: wrap;
}

.grounding-meta-row strong {
    color: var(--text-muted);
}

/* Fair Use Scorecard Box */
.fair-use-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
}

.fair-use-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}

.defense-pill {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
}

.defense-pill.strong { background: rgba(34, 197, 94, 0.15); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.defense-pill.moderate { background: rgba(234, 179, 8, 0.15); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.3); }
.defense-pill.risk { background: rgba(239, 68, 68, 0.15); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }

.fair-use-factors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
}

.factor-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.factor-score {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.factor-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.35;
}

/* Multi-Territory Compliance Box */
.territory-box {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
}

.territory-header {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 10px;
}

.territory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.territory-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.territory-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
}

.territory-status {
    font-size: 0.7rem;
    font-weight: 700;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    align-self: flex-start;
}

.territory-statute {
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: #94a3b8;
}

.territory-notes {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.3;
}

/* AWCPA Architectural Box */
.arch-box {
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
    font-size: 0.8rem;
}

.arch-box.safe {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.arch-box.restricted {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.arch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 700;
    color: #e2e8f0;
    flex-wrap: wrap;
    gap: 8px;
}

.arch-badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.arch-badge.safe { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.arch-badge.restricted { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.arch-statute { color: #94a3b8; font-size: 0.75rem; margin-bottom: 4px; }
.arch-restrictions { color: var(--text-muted); font-size: 0.75rem; line-height: 1.35; margin-bottom: 6px; }
.arch-recommendation { color: #f1f5f9; font-size: 0.78rem; }

/* Mitigation Directive Box */
.mitigation-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mitigation-icon {
    color: var(--primary);
    margin-top: 2px;
}

.mitigation-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
}

/* Remediation Deliverables Section */
.remediation-section {
    margin-top: 36px;
    background: var(--bg-card);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.remediation-header {
    margin-bottom: 20px;
}

.remediation-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.remediation-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.remediation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.remediation-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.remediation-card.vfx { border-top: 3px solid #38bdf8; }
.remediation-card.legal { border-top: 3px solid #0ea5e9; }
.remediation-card.script { border-top: 3px solid #f59e0b; }
.remediation-card.music { border-top: 3px solid #ec4899; }

.rem-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.rem-badge.vfx { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.rem-badge.legal { background: rgba(14, 165, 233, 0.15); color: #38bdf8; }
.rem-badge.script { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.rem-badge.music { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.rem-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.rem-details {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.rem-code {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #e2e8f0;
    max-height: 160px;
    overflow-y: auto;
    white-space: pre-wrap;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    background: rgba(9, 13, 22, 0.95);
    padding: 24px 0;
    margin-top: 48px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

.hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .submission-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 1.8rem;
    }
}
