/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: 'Public Sans', sans-serif;
    color: oklch(23% 0.02 260);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
::selection { background: oklch(85% 0.08 264); }
input::placeholder, textarea::placeholder { color: oklch(60% 0.01 260); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* === Public Page === */
.public-body { background: oklch(97.3% 0.005 260); }
.public-wrapper { min-height: 100vh; }

.public-header {
    position: sticky; top: 0; z-index: 20;
    background: oklch(99% 0.002 260 / 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid oklch(90% 0.012 260);
}
.public-header-inner {
    max-width: 1180px; margin: 0 auto; padding: 18px 32px;
    display: flex; align-items: center; gap: 14px;
}
.header-logo { height: 30px; width: auto; object-fit: contain; flex-shrink: 0; }
.header-divider { width: 1px; height: 24px; background: oklch(88% 0.012 260); }
.header-label { font-size: 13px; font-weight: 600; color: oklch(48% 0.02 260); letter-spacing: 0.01em; }

/* Notification Banner */
.notification-container { max-width: 1180px; margin: 0 auto; padding: 20px 32px 0; }
.notification-banner {
    display: flex; gap: 14px; align-items: flex-start;
    border-radius: 10px; padding: 16px 18px;
}
.notification-warning {
    background: oklch(96% 0.04 70); border: 1px solid oklch(88% 0.06 70);
}
.notification-info {
    background: oklch(96% 0.03 240); border: 1px solid oklch(88% 0.05 240);
}
.notification-success {
    background: oklch(96% 0.04 150); border: 1px solid oklch(88% 0.06 150);
}
.notification-icon { font-size: 18px; line-height: 1; }
.notification-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.notification-body { font-size: 13.5px; line-height: 1.55; color: oklch(38% 0.03 70); }
.notification-body p { margin: 0 0 6px; }
.notification-body p:last-child { margin-bottom: 0; }
.notification-body a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.notification-body code { font-size: 12px; padding: 1px 5px; background: oklch(0% 0 0 / 0.06); border-radius: 4px; }
.notification-info .notification-body { color: oklch(38% 0.03 240); }
.notification-success .notification-body { color: oklch(38% 0.03 150); }

/* Public Layout */
.public-layout {
    max-width: 1180px; margin: 0 auto;
    padding: 28px 32px 96px;
    display: grid; grid-template-columns: 260px 1fr; gap: 48px;
    align-items: start;
}

/* Sidebar */
.public-sidebar {
    position: sticky; top: 92px;
    display: flex; flex-direction: column; gap: 28px;
}
.search-wrapper { position: relative; }
.search-input {
    width: 100%; padding: 10px 14px 10px 36px;
    border-radius: 9px; border: 1px solid oklch(88% 0.012 260);
    background: white; font-size: 13.5px; font-family: 'Public Sans', sans-serif;
    color: oklch(23% 0.02 260); outline: none;
}
.search-input:focus { border-color: oklch(75% 0.06 264); }
.search-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    font-size: 14px; color: oklch(60% 0.01 260);
}

.filter-title {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: oklch(50% 0.02 260); margin-bottom: 10px;
}
.product-filters { display: flex; flex-direction: column; gap: 4px; }
.product-filter-btn {
    text-align: left; font-size: 13.5px; font-weight: 500; padding: 8px 10px;
    border-radius: 7px; border: none; background: transparent;
    color: oklch(30% 0.02 260); cursor: pointer; transition: background 0.15s;
}
.product-filter-btn:hover { background: oklch(94% 0.02 264); }
.product-filter-btn.active {
    font-weight: 700; background: oklch(93% 0.035 264); color: oklch(38% 0.15 264);
}

.tag-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-filter-btn {
    font-size: 11.5px; font-weight: 600; padding: 5px 10px;
    border-radius: 999px; cursor: pointer;
    border: 1px solid oklch(88% 0.012 260); background: white;
    color: oklch(40% 0.02 260); transition: all 0.15s;
}
.tag-filter-btn.active { border-color: transparent; }

.clear-filters-btn {
    align-self: flex-start; font-size: 12.5px; font-weight: 600;
    color: oklch(48% 0.16 264); background: none; border: none;
    padding: 0; cursor: pointer; text-decoration: underline;
    text-underline-offset: 2px;
}

.jump-section { border-top: 1px solid oklch(90% 0.012 260); padding-top: 20px; }
.jump-list {
    display: flex; flex-direction: column; gap: 7px;
    max-height: 320px; overflow-y: auto;
}
.jump-link {
    font-size: 12.5px; color: oklch(40% 0.02 260);
    text-decoration: none; transition: color 0.15s;
}
.jump-link:hover { color: oklch(48% 0.16 264); }

/* Main Content */
.main-header { margin-bottom: 40px; }
.main-title {
    font-family: 'Sora', sans-serif; font-size: 40px; font-weight: 800;
    letter-spacing: -0.02em; margin: 0 0 10px;
}
.main-subtitle {
    font-size: 15.5px; line-height: 1.6; color: oklch(42% 0.02 260);
    max-width: 620px; margin: 0;
}

.no-results { text-align: center; padding: 64px 20px; color: oklch(50% 0.02 260); }
.no-results-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.no-results-text { font-size: 13.5px; }

/* Timeline */
.timeline { position: relative; }
.timeline-line {
    position: absolute; left: 5px; top: 8px; bottom: 8px;
    width: 2px; background: oklch(90% 0.012 260);
}
.timeline-entry { position: relative; padding-left: 32px; margin-bottom: 36px; }
.timeline-dot {
    position: absolute; left: 0; top: 14px; width: 12px; height: 12px;
    border-radius: 50%; background: white; border: 3px solid oklch(48% 0.16 264);
}

/* Release Card */
.release-card {
    background: white; border: 1px solid oklch(90% 0.012 260);
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 1px 2px oklch(20% 0.02 260 / 0.04);
}
.release-product-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 28px; color: white;
}
.product-name {
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
}
.release-date { font-size: 12.5px; opacity: 0.85; font-weight: 500; }
.release-body { padding: 24px 28px; }
.release-version-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.release-version {
    font-family: 'Sora', sans-serif; font-size: 19px; font-weight: 700;
    margin: 0; letter-spacing: -0.01em;
}
.release-build { font-size: 13px; color: oklch(52% 0.02 260); font-family: 'Public Sans', monospace; }
.release-description { font-size: 13.5px; line-height: 1.6; color: oklch(38% 0.02 260); margin: 6px 0 16px; }
.release-description p { margin: 0 0 8px; }
.release-description p:last-child { margin-bottom: 0; }
.release-description a { color: oklch(48% 0.16 264); text-decoration: underline; text-underline-offset: 2px; }
.release-description ul, .release-description ol { margin: 4px 0 8px; padding-left: 20px; }
.release-description li { margin-bottom: 2px; }
.release-description code { font-size: 12px; padding: 1px 5px; background: oklch(95% 0.008 260); border-radius: 4px; }
.changes-list { display: flex; flex-direction: column; gap: 10px; }

.change-row {}
.change-main { display: flex; gap: 10px; align-items: flex-start; }
.change-badge {
    flex-shrink: 0; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.03em; padding: 3px 0; border-radius: 6px;
    white-space: nowrap; margin-top: 1px;
    width: 126px; text-align: center; display: inline-block;
}
.change-text { font-size: 13.5px; line-height: 1.55; padding-top: 1px; }
.change-text a { color: oklch(48% 0.16 264); text-decoration: underline; text-underline-offset: 2px; }
.change-text code { font-size: 12px; padding: 1px 5px; background: oklch(95% 0.008 260); border-radius: 4px; }

/* CVE Section */
.cve-section { margin: 10px 0 2px 30px; display: flex; flex-direction: column; gap: 10px; }
.cve-group-title {
    font-size: 11.5px; font-weight: 700; color: oklch(48% 0.02 260);
    text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 5px;
}
.cve-list { display: flex; flex-direction: column; gap: 4px; }
.cve-row {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 12.5px; background: oklch(97% 0.008 260);
    border: 1px solid oklch(91% 0.01 260); border-radius: 7px; padding: 6px 10px;
}
.cve-id { font-family: monospace; font-weight: 600; color: oklch(30% 0.02 260); display: inline-block; width: 120px; }
.cve-severity {
    font-weight: 700; font-size: 10.5px; text-transform: uppercase;
    letter-spacing: 0.03em; padding: 2px 8px; border-radius: 6px;
    color: white; min-width: 78px; text-align: center; display: inline-block;
}
.cve-label { color: oklch(45% 0.02 260); }

.public-footer {
    margin-top: 40px; padding-top: 24px;
    border-top: 1px solid oklch(90% 0.012 260);
    font-size: 12.5px; color: oklch(52% 0.02 260);
}

/* === Auth Pages === */
.auth-body { background: oklch(97.3% 0.005 260); }
.auth-container {
    min-height: 100vh; display: flex; align-items: center;
    justify-content: center; padding: 40px 20px;
}
.auth-card {
    background: white; border: 1px solid oklch(90% 0.012 260);
    border-radius: 10px; padding: 40px 36px;
    box-shadow: 0 1px 2px oklch(20% 0.02 260 / 0.04);
    width: 100%; max-width: 420px;
}
.auth-header { text-align: center; margin-bottom: 28px; }
.auth-logo { height: 32px; margin-bottom: 24px; }
.auth-title {
    font-family: 'Sora', sans-serif; font-size: 24px; font-weight: 800;
    letter-spacing: -0.02em; margin: 0 0 6px;
}
.auth-subtitle { font-size: 14px; color: oklch(50% 0.02 260); margin: 0; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-footer { text-align: center; margin-top: 20px; }
.auth-link { font-size: 13px; color: oklch(48% 0.16 264); font-weight: 600; }

/* === Admin Layout === */
.admin-body { background: oklch(97.3% 0.005 260); }
.admin-layout {
    min-height: 100vh; display: grid;
    grid-template-columns: 232px 1fr;
}

/* Sidebar */
.admin-sidebar {
    background: oklch(99% 0.002 260);
    border-right: 1px solid oklch(90% 0.012 260);
    display: flex; flex-direction: column; padding: 20px 14px;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-header {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px 20px;
}
.sidebar-logo { height: 22px; width: auto; object-fit: contain; }
.sidebar-label {
    font-size: 12px; font-weight: 600; color: oklch(50% 0.02 260);
    letter-spacing: 0.02em;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 18px; }
.nav-group-title {
    font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: oklch(58% 0.015 260);
    padding: 0 10px 6px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13.5px; font-weight: 500; padding: 8px 10px;
    border-radius: 7px; color: oklch(45% 0.02 260);
    transition: background 0.15s; text-decoration: none;
}
.nav-item:hover { background: oklch(94% 0.008 260); }
.nav-item.active {
    font-weight: 700; background: oklch(93% 0.035 264);
    color: oklch(38% 0.15 264);
}
.nav-icon { width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.sidebar-footer {
    margin-top: auto; padding: 12px 8px;
    border-top: 1px solid oklch(90% 0.012 260);
    display: flex; flex-direction: column; gap: 12px;
}
.btn-view-site {
    width: 100%; gap: 8px; font-size: 12.5px; font-weight: 600;
    color: oklch(40% 0.02 260); padding: 8px 12px;
}
.btn-view-site:hover { background: oklch(94% 0.008 260); filter: none; }
.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 8px; border-radius: 8px;
    background: oklch(96.5% 0.008 260);
}
.sidebar-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: oklch(93% 0.035 264); color: oklch(38% 0.15 264);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
}
.sidebar-user-info {
    display: flex; flex-direction: column; flex: 1; min-width: 0;
}
.user-name {
    font-size: 12.5px; font-weight: 700; color: oklch(30% 0.02 260);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-role { font-size: 11px; color: oklch(55% 0.02 260); }
.logout-form { flex-shrink: 0; }
.logout-btn {
    width: 30px; height: 30px; border-radius: 6px;
    background: none; border: 1px solid oklch(88% 0.012 260);
    color: oklch(50% 0.02 260); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.logout-btn:hover {
    background: oklch(93% 0.05 25); color: oklch(44% 0.16 25);
    border-color: oklch(88% 0.06 25);
}

/* Admin Main */
.admin-main { overflow-y: auto; min-height: 100vh; }
.admin-content { max-width: 900px; margin: 0 auto; padding: 40px 32px; }

.content-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.breadcrumb { font-size: 12.5px; font-weight: 600; color: oklch(48% 0.16 264); margin-bottom: 8px; }
.page-title {
    font-family: 'Sora', sans-serif; font-size: 30px; font-weight: 800;
    letter-spacing: -0.02em; margin: 0;
}
.back-link {
    font-size: 12.5px; font-weight: 600; color: oklch(48% 0.16 264);
    text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* === Shared Components === */

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 13.5px; font-weight: 700; padding: 9px 18px;
    border-radius: 8px; border: none; cursor: pointer;
    text-decoration: none; transition: filter 0.15s;
}
.btn:hover { filter: brightness(1.05); }
.btn-primary {
    background: linear-gradient(155deg, oklch(52% 0.17 264), oklch(38% 0.16 270));
    color: white; box-shadow: 0 2px 8px oklch(48% 0.16 264 / 0.3);
}
.btn-secondary {
    background: white; color: oklch(35% 0.02 260); font-weight: 600;
    border: 1px solid oklch(88% 0.012 260);
}
.btn-secondary:hover { background: oklch(96% 0.008 260); filter: none; }
.btn-danger {
    background: oklch(93% 0.05 25); color: oklch(44% 0.16 25);
    font-weight: 600; border: 1px solid oklch(88% 0.06 25);
}
.btn-danger:hover { background: oklch(90% 0.07 25); filter: none; }
.btn-full { width: 100%; }
.btn-full-width { width: 100%; text-align: left; }

/* Form Elements */
.form-group { margin-bottom: 16px; }
.form-label {
    display: block; font-size: 12.5px; font-weight: 700;
    color: oklch(38% 0.02 260); margin-bottom: 7px;
}
.label-optional { font-weight: 500; color: oklch(55% 0.02 260); }
.form-input {
    width: 100%; padding: 9px 12px; border-radius: 8px;
    border: 1px solid oklch(88% 0.012 260); font-size: 13.5px;
    font-family: 'Public Sans', sans-serif;
    color: oklch(23% 0.02 260); outline: none;
    transition: border-color 0.15s;
}
.form-input:focus { border-color: oklch(75% 0.06 264); }
.form-input-mono { font-family: 'Public Sans', monospace; }
.form-textarea { resize: vertical; line-height: 1.55; }
.form-select {
    padding: 7px 8px; border-radius: 6px;
    border: 1px solid oklch(88% 0.012 260); background: white;
    font-size: 12px; font-weight: 600; color: oklch(35% 0.02 260);
    outline: none; flex-shrink: 0;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.form-hint { font-size: 12px; color: oklch(55% 0.02 260); margin-top: 6px; }
.form-actions { margin-top: 20px; }

/* Segmented Picker */
.segmented-picker { display: flex; gap: 6px; }
.seg-btn {
    font-size: 13px; font-weight: 500; padding: 8px 14px;
    border-radius: 7px; cursor: pointer;
    border: 1px solid oklch(88% 0.012 260); background: white;
    color: oklch(35% 0.02 260); transition: all 0.15s;
}
.seg-btn.active {
    font-weight: 700; border-color: transparent;
    background: oklch(93% 0.035 264); color: oklch(38% 0.15 264);
}

/* Cards */
.card {
    background: white; border: 1px solid oklch(90% 0.012 260);
    border-radius: 10px; overflow: hidden;
    box-shadow: 0 1px 2px oklch(20% 0.02 260 / 0.04);
}
.card-body { padding: 28px; }
.card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 28px; background: oklch(97.5% 0.006 260);
    border-top: 1px solid oklch(92% 0.01 260);
}
.card-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 28px; border-bottom: 1px solid oklch(92% 0.01 260);
}
.card-section-title {
    font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; margin: 0;
}
.status-text { font-size: 12.5px; color: oklch(52% 0.02 260); }
.footer-actions { display: flex; gap: 10px; }

/* Tables */
.table-header {
    display: grid; gap: 12px; padding: 10px 20px;
    background: oklch(97.5% 0.006 260);
    border-bottom: 1px solid oklch(90% 0.012 260);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; color: oklch(50% 0.02 260);
    align-items: center;
}
.table-row {
    display: grid; gap: 12px; padding: 14px 20px;
    align-items: center;
    border-bottom: 1px solid oklch(93% 0.008 260);
}
.table-row:last-child { border-bottom: none; }
.table-empty { text-align: center; padding: 40px; color: oklch(55% 0.02 260); font-size: 13.5px; }

/* Releases table */
.releases-row, .table-header:has(+ .releases-row), .card > .table-header:first-child {
    grid-template-columns: 100px 1fr 140px 80px 100px;
}
/* Fallback for releases table header */
.card > .table-header { grid-template-columns: 100px 1fr 140px 80px 100px; }

.cell-version { font-size: 13.5px; font-weight: 600; }
.cell-date { font-size: 12.5px; color: oklch(52% 0.02 260); }
.cell-actions { display: flex; gap: 6px; justify-content: flex-end; }
.releases-row .product-chip { width: 86px; text-align: center; }
.inline-form { display: inline; }

/* Users table */
.users-table-header, .users-row {
    grid-template-columns: 44px 1fr 1fr 100px 90px 90px;
}
.cell-name { font-size: 13.5px; font-weight: 600; }
.cell-email { font-size: 13px; color: oklch(45% 0.02 260); }
.cell-role { font-size: 12.5px; font-weight: 600; color: oklch(35% 0.02 260); }

.user-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: oklch(93% 0.035 264); color: oklch(38% 0.15 264);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700;
}

/* Chips & Badges */
.product-chip {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; padding: 3px 9px; border-radius: 6px;
    width: fit-content; display: inline-block;
}
.status-chip {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.04em; padding: 3px 9px; border-radius: 6px;
    width: fit-content; display: inline-block;
}
.status-active { background: oklch(93% 0.05 150); color: oklch(48% 0.11 150); }
.status-invited { background: oklch(93% 0.05 80); color: oklch(42% 0.12 70); }
.status-inactive { background: oklch(92% 0.01 260); color: oklch(45% 0.02 260); }

/* Icon Buttons */
.icon-btn {
    width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid oklch(88% 0.012 260); background: white;
    color: oklch(40% 0.02 260); cursor: pointer; font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    transition: all 0.15s; text-decoration: none; line-height: 1;
}
.icon-btn:hover { background: oklch(96% 0.008 260); }
.icon-btn-danger:hover {
    background: oklch(93% 0.05 25); color: oklch(44% 0.16 25);
    border-color: oklch(88% 0.06 25);
}
.icon-btn-sm { width: 24px; height: 24px; border-radius: 5px; font-size: 12px; }

/* Products List */
.products-list { display: flex; flex-direction: column; gap: 10px; }
.product-card {
    background: white; border: 1px solid oklch(90% 0.012 260);
    border-radius: 10px; padding: 16px 20px;
    display: flex; align-items: center; gap: 14px;
    box-shadow: 0 1px 2px oklch(20% 0.02 260 / 0.04);
}

/* Toggle Switch */
.toggle-switch {
    width: 42px; height: 24px; border-radius: 999px; border: none;
    cursor: pointer; padding: 2px; background: oklch(85% 0.012 260);
    display: flex; align-items: center; justify-content: flex-start;
    transition: all 0.2s;
}
.toggle-switch.active {
    background: oklch(48% 0.16 264); justify-content: flex-end;
}
.toggle-knob {
    width: 20px; height: 20px; border-radius: 50%; background: white;
    box-shadow: 0 1px 2px oklch(20% 0.02 260 / 0.3);
    display: block;
}
.toggle-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: oklch(97.5% 0.006 260);
    border-radius: 8px;
}
.toggle-label { font-size: 13px; font-weight: 600; }
.toggle-hint { font-size: 12px; color: oklch(52% 0.02 260); }

/* Modals */
.modal-backdrop {
    position: fixed; inset: 0;
    background: oklch(20% 0.02 260 / 0.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 50;
}
.modal-panel {
    background: white; border-radius: 10px;
    width: 420px; max-width: 90vw;
    box-shadow: 0 12px 40px oklch(20% 0.02 260 / 0.25);
}
.modal-header { padding: 20px 24px; border-bottom: 1px solid oklch(92% 0.01 260); }
.modal-breadcrumb { font-size: 12.5px; font-weight: 600; color: oklch(48% 0.16 264); margin-bottom: 4px; }
.modal-title { font-size: 17px; font-weight: 700; font-family: 'Sora', sans-serif; }
.modal-subtitle { font-size: 12.5px; color: oklch(52% 0.02 260); margin-top: 2px; }
.modal-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 16px 24px; border-top: 1px solid oklch(92% 0.01 260);
}

/* Colour Swatches */
.colour-swatches { display: flex; gap: 8px; }
.colour-swatch {
    width: 32px; height: 32px; border-radius: 8px;
    border: 1px solid oklch(88% 0.012 260); cursor: pointer;
    transition: all 0.15s;
}
.colour-swatch.selected { border-width: 2px; box-shadow: 0 0 0 2px white inset; }

/* Changes Editor */
.changes-editor { border-top: 1px solid oklch(92% 0.01 260); padding-top: 20px; }
.changes-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px;
}
.changes-header .form-label { margin-bottom: 0; }
.add-link {
    font-size: 12.5px; font-weight: 600; color: oklch(48% 0.16 264);
    background: none; border: none; padding: 0; cursor: pointer;
}

.change-editor-row {
    display: flex; gap: 8px; align-items: flex-start;
    background: oklch(97.5% 0.006 260);
    border: 1px solid oklch(91% 0.01 260);
    border-radius: 8px; padding: 10px 12px; margin-bottom: 10px;
}
.change-tag-select { width: 130px; }
.change-editor-body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.change-input-row { display: flex; gap: 8px; }
.change-input-row .form-input { flex: 1; }

/* CVE Editor */
.cve-editor { display: flex; flex-direction: column; gap: 6px; padding-left: 4px; }
.cve-editor-row { display: flex; gap: 6px; align-items: center; }
.cve-id-input { width: 150px !important; font-size: 12px !important; font-family: monospace !important; padding: 6px 9px !important; flex: 0 0 auto !important; }
.cve-sev-select { width: 110px; font-size: 11.5px !important; }
.cve-editor-row .form-input { flex: 1; font-size: 12px !important; padding: 6px 9px !important; }
.cve-rows { display: flex; flex-direction: column; gap: 6px; }

.empty-state-dashed {
    text-align: center; padding: 20px; color: oklch(55% 0.02 260);
    font-size: 13px; border: 1px dashed oklch(88% 0.012 260);
    border-radius: 8px;
}

/* Flash Messages */
.flash-message {
    padding: 12px 20px; border-radius: 8px; margin: 16px 32px 0;
    font-size: 13.5px; font-weight: 500;
    display: flex; align-items: center; justify-content: space-between;
}
.flash-error { background: oklch(93% 0.05 25); color: oklch(38% 0.17 20); }
.flash-success { background: oklch(93% 0.05 150); color: oklch(42% 0.11 150); }
.flash-info { background: oklch(93% 0.035 264); color: oklch(38% 0.15 264); }
.flash-close {
    background: none; border: none; font-size: 18px; cursor: pointer;
    color: inherit; opacity: 0.6; padding: 0 0 0 12px;
}

/* Security Page */
.mfa-description { font-size: 14px; line-height: 1.6; color: oklch(42% 0.02 260); margin: 0; }
.mfa-setup { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.qr-code {
    padding: 16px; background: white; border: 1px solid oklch(90% 0.012 260);
    border-radius: 10px;
}
.mfa-secret { display: flex; flex-direction: column; gap: 4px; }
.secret-code {
    font-family: monospace; font-size: 14px; font-weight: 600;
    padding: 8px 12px; background: oklch(97% 0.008 260);
    border: 1px solid oklch(90% 0.012 260); border-radius: 6px;
    letter-spacing: 0.05em; user-select: all;
}
.recovery-codes-section {
    margin-top: 24px; padding: 20px; background: oklch(96% 0.04 70);
    border: 1px solid oklch(88% 0.06 70); border-radius: 10px;
}
.recovery-codes-title {
    font-family: 'Sora', sans-serif; font-size: 15px; font-weight: 700; margin: 0 0 8px;
}
.recovery-codes-warning { font-size: 13px; line-height: 1.55; color: oklch(38% 0.03 70); margin: 0 0 16px; }
.recovery-codes-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.recovery-code {
    font-family: monospace; font-size: 13px; font-weight: 600;
    padding: 6px 10px; background: white; border-radius: 6px;
    text-align: center; border: 1px solid oklch(90% 0.012 260);
    letter-spacing: 0.04em;
}

/* Action buttons section */
.action-buttons-section { display: flex; flex-direction: column; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
    .public-layout { grid-template-columns: 1fr; }
    .public-sidebar { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed; left: -232px; width: 232px; z-index: 40;
        transition: left 0.3s;
    }
    .admin-sidebar.open { left: 0; }
    .form-grid { grid-template-columns: 1fr; }
}
