:root {
    --brand-red: #de0000;
    --primary: #1e40af;       /* Deep Cobalt Blue */
    --primary-hover: #1e3a8a;
    --dark: #0f172a;
    --text: #334155;
    --text-muted: #64748b;
    --bg-soft: #f8fafc;
    --border: #e2e8f0;
    --mono: ui-monospace, 'SFMono-Regular', 'Menlo', Consolas, monospace;

    /* Status Semantic Colors */
    --status-amber-bg: #fffbeb;
    --status-amber-border: #f59e0b;
    --status-amber-text: #92400e;
    --status-green-border: #16a34a;
    --status-red-border: #de0000;
    --status-purple-border: #7c3aed;
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-soft);
    color: var(--text);
    margin: 0;
    line-height: 1.6;
}

/* Optional top bar matching FlexBV6 navbar */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    margin-bottom: 2.5rem;
}

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

.nav-brand {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--dark);
    text-decoration: none;
}

.nav-back {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.nav-back:hover {
    color: var(--brand-red);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.container {
    max-width: 900px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem;
}

.card-panel {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem 3rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

@media (max-width: 640px) {
    .card-panel { padding: 1.5rem; }
}

.tech-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.tech-label::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 1.2em;
    background: var(--primary);
}

h1, h2, h3 {
    color: var(--dark);
    margin-top: 0;
}

h2 {
    font-size: 1.85rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

/* Pre-Submission Gatekeeper (matches .disclaimer-gate from main site) */
.friction-box {
    margin: 0 0 2.25rem;
    padding: 1.75rem;
    background: var(--bg-soft);
    border-radius: 12px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand-red);
    transition: all 0.25s ease;
}

.friction-box.all-checked {
    border-color: var(--primary);
    border-left: 4px solid var(--primary);
    background: rgba(30, 64, 175, 0.03);
}

.friction-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.friction-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 1.25rem;
}

.gate-label {
    display: flex;
    gap: 14px;
    cursor: pointer;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text);
    user-select: none;
}

.gate-label:last-child { margin-bottom: 0; }

.gate-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}

/* Form Layout & Inputs (matches .registration-form from main site) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; gap: 0; }
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label, .field-label {
    display: block;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--dark);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #ffffff;
    color: var(--dark);
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
}

input::placeholder, textarea::placeholder {
    color: #94a3b8;
}

textarea {
    height: 120px;
    resize: vertical;
    font-family: var(--mono);
    font-size: 0.88rem;
}

input[type="file"] {
    width: 100%;
    padding: 0.85rem;
    background: var(--bg-soft);
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Buttons matching .btn-main */
.btn-main, button[type="submit"] {
    background: var(--dark);
    color: #ffffff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-main:hover, button[type="submit"]:hover {
    background: var(--primary);
}

.btn-full {
    width: 100%;
    padding: 1.15rem;
    font-size: 1.05rem;
}

/* Pre / Code outputs matching #changelog-content */
pre {
    color: var(--dark);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    white-space: pre-wrap;
    margin-top: 0.4rem;
    margin-bottom: 1.5rem;
}

/* Status & Callout Boxes */
.ownership-highlight, .status-box {
    background: rgba(30, 64, 175, 0.04);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    margin-bottom: 2rem;
    color: var(--dark);
}

.admin-notes {
    background: var(--status-amber-bg);
    border: 1px solid #fde68a;
    color: var(--status-amber-text);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

/* Status Left-Border Overrides */
.status-Pending       { border-left-color: var(--status-amber-border) !important; }
.status-Investigating { border-left-color: var(--status-purple-border) !important; }
.status-User          { border-left-color: var(--status-red-border) !important; }
.status-Rejected      { border-left-color: var(--status-red-border) !important; }
.status-Resolved      { border-left-color: var(--status-green-border) !important; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--dark);
}

.badge-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { color: var(--brand-red); text-decoration: underline; }
