/* =====================================================================
   MRK – Virtual DJ Plugins · Design system
   Shared by the public site (includes/header.php) and the admin area
   (includes/admin-header.php).

   To change the accent colour across the whole site, edit --brand,
   --brand-hover and --brand-soft below AND the "brand" palette in
   includes/theme-head.php (used by Tailwind classes like bg-brand-500).
   ===================================================================== */

:root {
    /* Surfaces */
    --bg:          #0B0C0F;
    --surface-1:   #111317;
    --surface-2:   #16181D;
    --surface-3:   #1D1F25;
    --line:        #23262D;
    --line-strong: #30333B;

    /* Text */
    --text:        #F3F4F6;
    --text-2:      #B3B6BF;
    --text-3:      #80848E;

    /* Brand (taken from the MRK logo) */
    --brand:       #F23A63;
    --brand-hover: #FF5479;
    --brand-soft:  rgba(242, 58, 99, .12);
    --brand-line:  rgba(242, 58, 99, .35);
    --brand-gradient: linear-gradient(95deg, #FF4A2B 0%, #F23A63 38%, #9B5BFF 72%, #2F8CFF 100%);

    /* Status */
    --ok:      #34D399;  --ok-soft:   rgba(52, 211, 153, .12);
    --warn:    #FBBF24;  --warn-soft: rgba(251, 191, 36, .12);
    --danger:  #F87171;  --danger-soft: rgba(248, 113, 113, .12);
    --info:    #60A5FA;  --info-soft: rgba(96, 165, 250, .12);

    /* Shape */
    --r-sm: 8px;
    --r:    12px;
    --r-lg: 16px;
    --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.03);

    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Sora", "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --container: 1240px;
    color-scheme: dark;
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .font-display { font-family: var(--font-display); letter-spacing: -0.02em; }
code, kbd, .font-mono { font-family: var(--font-mono); }
::selection { background: rgba(242, 58, 99, .35); color: #fff; }
[x-cloak] { display: none !important; }
img { max-width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Thin, quiet scrollbars */
* { scrollbar-width: thin; scrollbar-color: #2C2F36 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #2C2F36; border-radius: 10px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Layout ---------- */
.container-x { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 640px) { .container-x { padding-inline: 32px; } }

.section { padding-block: 64px; }
@media (min-width: 1024px) { .section { padding-block: 96px; } }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--brand);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--brand-gradient); }

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.muted   { color: var(--text-2); }
.muted-2 { color: var(--text-3); }

/* ---------- Buttons ---------- */
.btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-danger {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    height: 44px; padding: 0 20px;
    border-radius: 10px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
    cursor: pointer; text-decoration: none;
}
.btn:active, .btn-primary:active, .btn-secondary:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface-2); border-color: var(--line-strong); color: var(--text) !important; }
.btn-secondary:hover { border-color: #4A4E58; background: var(--surface-3); }
.btn-ghost { background: transparent; color: var(--text-2) !important; }
.btn-ghost:hover { color: var(--text) !important; background: var(--surface-2); }
.btn-danger { background: var(--danger-soft); border-color: rgba(248,113,113,.3); color: var(--danger) !important; }
.btn-danger:hover { background: rgba(248,113,113,.2); }
.btn-sm { height: 36px !important; padding: 0 14px !important; font-size: 14px !important; border-radius: 8px !important; }
.btn-lg { height: 52px !important; padding: 0 26px !important; font-size: 16px !important; }
.btn-block { width: 100%; }
.btn[disabled], .btn-primary[disabled], .btn-secondary[disabled], .btn-danger[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Cards / surfaces ---------- */
.card, .card-glass, .stat-card, .feature-tile, .plugin-card {
    background: var(--surface-1);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.card-hover { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.card-header h2, .card-header h3 { font-size: 15px; font-weight: 600; color: var(--text); font-family: var(--font-sans); letter-spacing: 0; }
.card-body { padding: 20px; }
.glass, .admin-glass { background: var(--surface-1); }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    height: 24px; padding: 0 9px; border-radius: 999px;
    font-size: 12px; font-weight: 600; white-space: nowrap;
    background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line-strong);
}
.badge-brand  { background: var(--brand-soft);  color: #FF8AA4; border-color: var(--brand-line); }
.badge-ok     { background: var(--ok-soft);     color: var(--ok);     border-color: rgba(52,211,153,.3); }
.badge-warn   { background: var(--warn-soft);   color: var(--warn);   border-color: rgba(251,191,36,.3); }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(248,113,113,.3); }
.badge-info   { background: var(--info-soft);   color: var(--info);   border-color: rgba(96,165,250,.3); }
.badge-purple { background: rgba(155,91,255,.14); color: #C4A1FF; border-color: rgba(155,91,255,.38); }
.dot { width: 7px; height: 7px; border-radius: 99px; background: currentColor; display: inline-block; }

/* ---------- Forms ---------- */
.field-label { display: block; font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field-hint  { font-size: 13px; color: var(--text-3); margin-top: 6px; }
.field-error { font-size: 13px; color: var(--danger); margin-top: 6px; }

.input, .input-glass,
main input[type="text"], main input[type="email"], main input[type="password"], main input[type="search"],
main input[type="number"], main input[type="url"], main input[type="tel"], main input[type="date"],
main input[type="datetime-local"], main input:not([type]), main select, main textarea {
    background-color: var(--surface-2) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--text) !important;
    border-radius: var(--r-sm) !important;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
main input[type="text"], main input[type="email"], main input[type="password"], main input[type="search"],
main input[type="number"], main input[type="url"], main input[type="tel"], main input[type="date"],
main input[type="datetime-local"], main input:not([type]), main select, .input {
    min-height: 44px;
}
.input { width: 100%; padding: 0 14px; }
textarea.input { padding: 12px 14px; min-height: 120px; }
main input::placeholder, main textarea::placeholder { color: var(--text-3) !important; }
.input:focus, .input-glass:focus,
main input:focus, main select:focus, main textarea:focus {
    outline: none !important;
    border-color: var(--brand) !important;
    box-shadow: 0 0 0 3px rgba(242, 58, 99, .18) !important;
}
main input[type="checkbox"], main input[type="radio"] { accent-color: var(--brand); width: 16px; height: 16px; }
main select { padding-right: 36px; }
main input[type="file"] { color: var(--text-2); font-size: 14px; }
main input[type="file"]::file-selector-button {
    margin-right: 12px; height: 36px; padding: 0 14px; border-radius: 8px;
    border: 1px solid var(--line-strong); background: var(--surface-3); color: var(--text); font-weight: 600; cursor: pointer;
}

/* ---------- Tables ---------- */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
main table { width: 100%; border-collapse: collapse; font-size: 14px; }
main table thead th {
    text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    color: var(--text-3) !important; background: var(--surface-1);
    padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
main table tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
main table tbody tr:last-child td { border-bottom: 0; }
main table tbody tr { transition: background-color .12s ease; }
main table tbody tr:hover { background: rgba(255,255,255,.02); }

/* Long code / licence keys never push the page sideways */
main pre { max-width: 100%; overflow-x: auto; }
main code { overflow-wrap: anywhere; }
main .flex > code, main .flex > div > code { min-width: 0; }

/* On phones, give data tables room and let them scroll sideways instead of squashing columns */
@media (max-width: 767px) {
    main table:not(.table-fit) { min-width: 640px; }
}

/* ---------- Pagination (render_pagination) ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; }
.pagination a, .pagination span.page {
    min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; border: 1px solid var(--line); background: var(--surface-1); color: var(--text-2); font-size: 14px; font-weight: 500;
}
.pagination a:hover { border-color: var(--line-strong); color: var(--text); }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .gap { color: var(--text-3); padding: 0 4px; }

/* ---------- Media / product cards ---------- */
.media-frame {
    position: relative; overflow: hidden; border-radius: var(--r);
    background: radial-gradient(120% 120% at 0% 0%, #1B1D23 0%, #0E0F12 70%);
    border: 1px solid var(--line);
}
.media-frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.group:hover .media-frame img { transform: scale(1.035); }

.product-card { display: flex; flex-direction: column; height: 100%; background: var(--surface-1); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.product-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card .media-frame { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }

/* ---------- Prose (long descriptions) ---------- */
.prose-mrk { color: var(--text-2); font-size: 16px; line-height: 1.75; }
.prose-mrk p + p { margin-top: 1em; }
.prose-mrk strong { color: var(--text); }
.prose-mrk a { color: #FF8AA4; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Public header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 12, 15, .78);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(11, 12, 15, .92); }
.site-header::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--brand-gradient); opacity: .9; }
.nav-link {
    position: relative; display: inline-flex; align-items: center; height: 40px; padding: 0 12px;
    font-size: 15px; font-weight: 500; color: var(--text-2); border-radius: 8px; transition: color .15s ease, background-color .15s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; border-radius: 2px; background: var(--brand);
}

.menu-panel {
    background: var(--surface-1); border: 1px solid var(--line-strong); border-radius: var(--r);
    box-shadow: 0 20px 50px -12px rgba(0,0,0,.75);
}
.menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: var(--text-2); }
.menu-item:hover { background: var(--surface-3); color: var(--text); }
.menu-item i { width: 16px; text-align: center; color: var(--text-3); }

/* Mobile drawer */
.drawer-link { display: flex; align-items: center; gap: 14px; padding: 14px 4px; font-size: 17px; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line); }
.drawer-link i { width: 20px; text-align: center; color: var(--text-3); }
.drawer-link[aria-current="page"] { color: #FF8AA4; }
.drawer-link[aria-current="page"] i { color: var(--brand); }

/* Toasts */
.toast { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-strong); background: var(--surface-2); box-shadow: 0 20px 50px -12px rgba(0,0,0,.75); font-size: 14px; }
.toast-success { border-left: 3px solid var(--ok); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-warning { border-left: 3px solid var(--warn); }

/* ---------- Admin shell ---------- */
.admin-sidebar { background: #0E0F12; border-right: 1px solid var(--line); }
.admin-nav-group { padding: 18px 12px 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #5F636D; }
.admin-nav-link {
    display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 8px;
    font-size: 14px; font-weight: 500; color: var(--text-2); transition: background-color .12s ease, color .12s ease;
}
.admin-nav-link i { width: 18px; text-align: center; font-size: 14px; color: var(--text-3); transition: color .12s ease; }
.admin-nav-link:hover { background: var(--surface-2); color: var(--text); }
.admin-nav-link:hover i { color: var(--text-2); }
.admin-nav-link[aria-current="page"] { background: var(--brand-soft); color: #fff; box-shadow: inset 2px 0 0 var(--brand); }
.admin-nav-link[aria-current="page"] i { color: var(--brand); }
.admin-topbar { background: rgba(11,12,15,.85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }

.stat { padding: 20px; border-radius: var(--r); background: var(--surface-1); border: 1px solid var(--line); }
.stat-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--text-2); }
.stat-icon { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.stat-value { margin-top: 14px; font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: 4px; font-size: 13px; color: var(--text-3); }

/* =====================================================================
   Legacy normalisation
   Older pages were built with Tailwind's default grey scale and a mix of
   radii/glows. These rules bring them in line with the new system
   without editing every page.
   ===================================================================== */
.bg-gray-950 { background-color: var(--bg) !important; }
.bg-gray-900 { background-color: var(--surface-1) !important; }
.bg-gray-800 { background-color: var(--surface-2) !important; }
.bg-gray-700 { background-color: var(--surface-3) !important; }
.bg-gray-800\/50, .bg-gray-900\/50 { background-color: rgba(22, 24, 29, .6) !important; }
.hover\:bg-gray-700:hover, .hover\:bg-gray-800:hover { background-color: var(--surface-3) !important; }
.border-gray-800 { border-color: var(--line) !important; }
.border-gray-700 { border-color: var(--line-strong) !important; }
.border-gray-600 { border-color: #3A3D46 !important; }
.divide-gray-800 > :not([hidden]) ~ :not([hidden]),
.divide-gray-700 > :not([hidden]) ~ :not([hidden]) { border-color: var(--line) !important; }
.text-gray-300 { color: #C9CCD3 !important; }
.text-gray-400 { color: var(--text-2) !important; }
.text-gray-500 { color: var(--text-3) !important; }

.rounded-3xl, .rounded-2xl { border-radius: var(--r-lg) !important; }
.rounded-xl { border-radius: var(--r) !important; }

/* Remove coloured glows/blobs from older designs */
[class*="shadow-brand-"], [class*="shadow-accent-"], [class*="shadow-purple-"], [class*="shadow-emerald-"] { box-shadow: none !important; }
.shine-border::before, .hero-mesh, .hero-grid-bg, .orbit-dot { display: none !important; }

/* Old gradient buttons → flat brand */
a[class*="bg-gradient-to-"][class*="from-brand-"],
button[class*="bg-gradient-to-"][class*="from-brand-"] { background: var(--brand) !important; color: #fff !important; }

/* Headings inside admin/legacy pages use the UI font, not the display font, at small sizes */
main h3, main h4 { font-family: var(--font-sans); letter-spacing: -0.005em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Admin forms: plugin create / edit / upload
   ===================================================================== */
.form-section { scroll-margin-top: 140px; }
.card-header p { font-size: 13px; color: var(--text-3); margin-top: 2px; font-weight: 400; }

/* Toggle switch: <label class="switch"><input type="checkbox"><span class="switch-ui"></span> Label</label> */
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; font-size: 14px; color: var(--text); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { position: relative; width: 38px; height: 22px; flex-shrink: 0; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-strong); transition: background-color .15s ease, border-color .15s ease; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 99px; background: #9A9DA6; transition: transform .18s ease, background-color .15s ease; }
.switch input:checked + .switch-ui { background: var(--brand); border-color: var(--brand); }
.switch input:checked + .switch-ui::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Option tile: a whole-card checkbox */
.option-tile { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.option-tile:hover { border-color: #4A4E58; }
.option-tile:has(input:checked) { border-color: var(--brand-line); background: var(--brand-soft); }
.option-tile input { margin-top: 2px; }

/* Drop zones */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
    padding: 28px 20px; border-radius: 14px; border: 1.5px dashed #3A3D46; background: rgba(255,255,255,.015); color: var(--text-2); cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease; }
.dropzone:hover { border-color: #565A64; background: rgba(255,255,255,.03); }
.dropzone.is-over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--surface-3); color: var(--text-2); font-size: 18px; }

.progress { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--brand-gradient); transition: width .2s ease; }

/* Image tiles */
.img-tile { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.img-tile.is-cover { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.img-tile.is-dragging { opacity: .4; }
.img-tile .img-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 6px; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
    background: rgba(11,12,15,.75); color: #E6E7EA; border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.icon-btn:hover { background: rgba(11,12,15,.95); color: #fff; }
.icon-btn.danger:hover { background: rgba(248,113,113,.9); color: #fff; }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }

/* Sticky section tabs + save bar */
.section-tabs { position: sticky; top: 64px; z-index: 20; background: rgba(11,12,15,.9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.section-tab { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 4px; margin-right: 18px; font-size: 14px; font-weight: 500; color: var(--text-3); border-bottom: 2px solid transparent; }
.section-tab:hover { color: var(--text); }
.section-tab.is-active { color: var(--text); border-bottom-color: var(--brand); }
.save-bar { position: sticky; bottom: 0; z-index: 25; background: rgba(11,12,15,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.save-bar .dirty-dot { display: none; }
.save-bar.is-dirty .dirty-dot { display: inline-flex; }
.save-bar.is-dirty .clean-label { display: none; }

.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.callout i { margin-top: 2px; }
.callout-warn { background: var(--warn-soft); border: 1px solid rgba(251,191,36,.3); color: #FCD34D; }
.callout-info { background: var(--info-soft); border: 1px solid rgba(96,165,250,.28); color: #93C5FD; }
.callout-danger { background: var(--danger-soft); border: 1px solid rgba(248,113,113,.3); color: #FCA5A5; }

/* A row followed by a full-width "details" row (e.g. release notes) reads as one item */
main table tbody tr:has(+ tr > td[colspan]) > td { border-bottom: 0; }

/* ---------- Release-notes line editor (tag dropdown + text) ---------- */
main select.cl-tag[id] {
    min-height: 0 !important; height: 28px; width: 108px; padding: 0 26px 0 11px !important;
    border-radius: 999px !important; font-size: 12px; font-weight: 600;
    background-color: var(--surface-3) !important; border: 1px solid var(--line-strong) !important; color: var(--text-2) !important;
}
main select.cl-tag[id].badge-ok     { background-color: var(--ok-soft) !important;    border-color: rgba(52,211,153,.35) !important;  color: var(--ok) !important; }
main select.cl-tag[id].badge-info   { background-color: var(--info-soft) !important;  border-color: rgba(96,165,250,.35) !important;  color: var(--info) !important; }
main select.cl-tag[id].badge-brand  { background-color: var(--brand-soft) !important; border-color: var(--brand-line) !important;       color: #FF8AA4 !important; }
main select.cl-tag[id].badge-purple { background-color: rgba(155,91,255,.14) !important; border-color: rgba(155,91,255,.4) !important; color: #C4A1FF !important; }
main select.cl-tag[id].badge-warn   { background-color: var(--warn-soft) !important;  border-color: rgba(251,191,36,.35) !important;  color: var(--warn) !important; }
main select.cl-tag[id]:focus { box-shadow: 0 0 0 3px rgba(242,58,99,.18) !important; }
main select.cl-tag option { color: var(--text); background: var(--surface-2); }
main input.cl-input[type], main input.cl-input {
    min-height: 0 !important; height: 36px; padding: 0 8px;
    background: transparent !important; border: 0 !important; box-shadow: none !important; font-size: 14px;
}
main input.cl-input:focus { box-shadow: none !important; border: 0 !important; }
