:root {
    --bg-primary: #090d16;
    --bg-secondary: #111827;
    --panel-bg: rgba(30, 41, 59, 0.45);
    --panel-border: rgba(148, 163, 184, 0.12);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #0ea5e9;
    --accent-hover: #38bdf8;
    --accent-gradient: linear-gradient(135deg, #06b6d4, #0ea5e9);
    --success: #10b981;
    --danger: #ef4444;
    --danger-hover: #f87171;
    --border-radius: 12px;
    --font-sans: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.app-header {
    min-height: 56px;
    height: auto;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 8px 24px;
    z-index: 100;
    gap: 8px;
    flex: 0 0 auto;
}

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

.accent-icon {
    font-size: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo h1 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.accent-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

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

/* Layout Selector */
.layout-selector-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.layout-label {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.select-input {
    background-color: var(--panel-bg);
    color: var(--text-primary);
    border: 1px solid var(--panel-border);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-family: var(--font-sans);
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-input:hover, .select-input:focus {
    border-color: var(--accent);
    background-color: rgba(30, 41, 59, 0.7);
}

.select-input option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* Mobile Tab Nav */
.mobile-tab-nav {
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--panel-border);
    overflow-x: auto;
}

.mobile-tab-nav.hidden {
    display: none !important;
}

.mobile-tab-btn {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    background-color: rgba(30, 41, 59, 0.4);
    color: var(--text-secondary);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.mobile-tab-btn:hover {
    color: var(--text-primary);
    background-color: rgba(30, 41, 59, 0.7);
}

.mobile-tab-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

/* Badges and Buttons */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-loading {
    background-color: rgba(234, 179, 8, 0.15);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-ready {
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-secondary {
    background-color: var(--panel-bg);
    color: var(--text-primary);
    border: 1px solid var(--panel-border);
}

.btn-secondary:hover {
    background-color: rgba(148, 163, 184, 0.2);
    border-color: var(--text-secondary);
}

/* Lock Button States */
.btn-lock.unlocked {
    background-color: rgba(14, 165, 233, 0.2);
    border-color: var(--accent);
    color: var(--accent-hover);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.08);
}

/* Mobile Section Resizers */
.mobile-section-resizer {
    display: none;
    height: 18px;
    background: rgba(15, 23, 42, 0.6);
    border-top: 1px solid var(--panel-border);
    justify-content: center;
    align-items: center;
    cursor: ns-resize;
    user-select: none;
    touch-action: none;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.mobile-section-resizer:hover, .mobile-section-resizer.dragging {
    background-color: rgba(14, 165, 233, 0.25);
}

.mobile-grip-handle {
    font-size: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

.mobile-section-resizer:hover .mobile-grip-handle,
.mobile-section-resizer.dragging .mobile-grip-handle {
    color: var(--accent-hover);
}

/* Only display mobile resizers when in mode-mobile AND resize is UNLOCKED */
.app-layout.mode-mobile:not(.resize-locked) .mobile-section-resizer {
    display: flex;
}

/* Layout */
/* Layout */
.app-layout {
    flex: 1 1 0%;
    min-height: 0;
    display: flex;
    padding: 12px;
    gap: 8px;
    overflow: hidden;
    position: relative;
}

.panel {
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: min-height 0.25s ease, height 0.25s ease;
}

.panel.is-collapsed {
    min-height: 48px !important;
    height: 48px !important;
    flex: none !important;
    box-shadow: none;
}

.panel.is-collapsed .panel-body {
    display: none !important;
}

.btn-toggle-panel {
    padding: 2px 6px !important;
    margin-right: 4px;
    color: var(--text-secondary);
}

.btn-toggle-panel:hover {
    color: var(--accent-hover);
}

.panel.is-collapsed .btn-toggle-panel i {
    transform: rotate(-90deg);
}

.btn-toggle-panel i {
    transition: transform 0.2s ease;
}

.panel-header {
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.panel-header:hover {
    background-color: rgba(15, 23, 42, 0.65);
}

.panel-header h2 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-body {
    flex: 1 1 0%;
    min-height: 0;
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Layout Modes */

/* 1. Mobile Stacked View */
.app-layout.mode-mobile {
    flex-direction: column !important;
    overflow-y: auto !important;
    gap: 12px !important;
    padding: 8px !important;
}

.app-layout.mode-mobile .left-column,
.app-layout.mode-mobile .right-column {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    flex: none !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 12px !important;
}

.app-layout.mode-mobile .resizer {
    display: none !important;
}

.app-layout.mode-mobile .panel:not(.is-collapsed) {
    flex: none !important;
    width: 100% !important;
    min-height: 220px !important;
}

/* Reordering Mobile Panel Stack: Plot -> Workspace -> Script -> Console */
.app-layout.mode-mobile .right-column {
    order: 1;
}

.app-layout.mode-mobile .left-column {
    order: 2;
}

.app-layout.mode-mobile .plot-panel {
    order: 1;
}

.app-layout.mode-mobile .plot-panel:not(.is-collapsed) {
    min-height: 280px !important;
}

.app-layout.mode-mobile .workspace-panel {
    order: 2;
}

.app-layout.mode-mobile .script-panel {
    order: 1;
}

.app-layout.mode-mobile .console-panel {
    order: 2;
}


/* 2. Mobile Tabbed View */
.app-layout.mode-tabbed {
    flex-direction: column !important;
    padding: 8px !important;
}

.app-layout.mode-tabbed .left-column,
.app-layout.mode-tabbed .right-column {
    display: contents !important;
}

.app-layout.mode-tabbed .resizer {
    display: none !important;
}

.app-layout.mode-tabbed .panel {
    display: none !important;
}

.app-layout.mode-tabbed .panel.tab-active {
    display: flex !important;
    flex: 1 1 0% !important;
    height: 100% !important;
    width: 100% !important;
}

/* Responsive Header Tweaks for Mobile */
@media (max-width: 768px) {
    .app-header {
        padding: 6px 12px;
    }
    .logo h1 {
        font-size: 15px;
    }
    .header-controls {
        gap: 6px;
    }
    .layout-label {
        font-size: 11px;
    }
    .select-input {
        padding: 4px 8px;
        font-size: 11px;
    }
    .btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    .btn span {
        display: inline-block;
    }
}

/* Left Column & Panels */
.left-column {
    flex: 1 1 0%;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

.script-panel {
    flex: 1.1 1 0%;
    min-height: 120px;
}

.console-panel {
    flex: 0.9 1 0%;
    min-height: 120px;
}

/* Resizer Splitters */
.resizer {
    background-color: rgba(148, 163, 184, 0.15);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    touch-action: none;
    z-index: 50;
    flex-shrink: 0;
}

.resizer:hover, .resizer.dragging {
    background-color: var(--accent);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.6);
}

.resizer-col {
    width: 6px;
    cursor: col-resize;
    border-radius: 3px;
    align-self: stretch;
}

.resizer-row {
    height: 6px;
    cursor: row-resize;
    border-radius: 3px;
    width: 100%;
}

.panel-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.45);
    filter: brightness(1.1);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.editor-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.editor-container {
    flex: 1;
    display: flex;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.editor-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.line-numbers {
    width: 38px;
    padding: 10px 6px;
    background-color: rgba(15, 23, 42, 0.6);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    text-align: right;
    user-select: none;
    border-right: 1px solid var(--panel-border);
    overflow: hidden;
    box-sizing: border-box;
}

#script-editor-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    padding: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    resize: none;
    tab-size: 4;
    white-space: pre;
    overflow-y: auto;
    overflow-x: auto;
    box-sizing: border-box;
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.shortcut-tip strong {
    color: var(--accent-hover);
}

.editor-info {
    font-family: var(--font-mono);
}

.console-output-area {
    flex: 1;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Monospace Console Styling */
.console-entry {
    border-left: 3px solid transparent;
    padding-left: 8px;
}

.entry-input {
    color: var(--text-secondary);
}

.entry-input::before {
    content: ">> ";
    color: var(--accent);
    font-weight: bold;
}

.entry-output {
    color: var(--text-primary);
    white-space: pre-wrap;
    background-color: rgba(15, 23, 42, 0.2);
    padding: 8px;
    border-radius: 6px;
    margin-top: 4px;
}

.entry-error {
    color: var(--danger-hover);
    font-weight: 500;
    background-color: rgba(239, 68, 68, 0.08);
    border-left: 3px solid var(--danger);
    padding: 8px;
    border-radius: 6px;
    margin-top: 4px;
}

.console-input-row {
    height: 40px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.2s ease;
}

.console-input-row:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}

.prompt-symbol {
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: bold;
    margin-right: 8px;
    user-select: none;
}

#console-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    outline: none;
}

/* Right Column */
.right-column {
    flex: 1.2 1 0%;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

/* Workspace panel */
.workspace-panel {
    flex: 0.8 1 0%;
    min-height: 120px;
}

.table-container {
    flex: 1;
    overflow-y: auto;
}

#workspace-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

#workspace-table th, 
#workspace-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--panel-border);
}

#workspace-table th {
    background-color: rgba(15, 23, 42, 0.25);
    color: var(--text-secondary);
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 10;
}

#workspace-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 24px !important;
}

.var-badge {
    font-family: var(--font-mono);
    font-weight: bold;
    color: var(--accent-hover);
}

.type-badge {
    background-color: rgba(148, 163, 184, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
}

.expr-display {
    font-family: var(--font-mono);
    color: var(--text-primary);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Custom Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 20px;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--text-secondary);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: rgba(255, 255, 255, 0.18);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Plot panel */
.plot-panel {
    flex: 1.2;
    min-height: 250px;
}

.sample-count-badge {
    background-color: rgba(14, 165, 233, 0.12);
    color: var(--accent-hover);
    border: 1px solid rgba(14, 165, 233, 0.25);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.sample-count-badge.clickable {
    cursor: pointer;
    transition: all 0.2s ease;
}

.sample-count-badge.clickable:hover {
    background-color: rgba(14, 165, 233, 0.25);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(14, 165, 233, 0.4);
}

.sample-count-badge .edit-icon {
    font-size: 10px;
    opacity: 0.7;
    margin-left: 2px;
}

.sample-count-badge.clickable:hover .edit-icon {
    opacity: 1;
    color: #ffffff;
}

/* Modal Small & Preset Styles */
.modal-content.modal-sm {
    width: 420px;
}

.preset-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.preset-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.preset-btn {
    background-color: rgba(30, 41, 59, 0.5);
    color: var(--text-secondary);
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background-color: rgba(14, 165, 233, 0.15);
    color: var(--accent-hover);
    border-color: rgba(14, 165, 233, 0.3);
}

.preset-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.custom-pts-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--panel-border);
}

.custom-pts-row label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.custom-pts-row input[type="number"] {
    width: 120px;
}

.plot-body {
    padding: 8px;
}

.plotly-container {
    width: 100%;
    height: 100%;
    min-height: 200px;
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.4);
}

/* Modal Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.25s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--panel-border);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 600px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modal-enter 0.3s ease;
}

@keyframes modal-enter {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    height: 56px;
    padding: 0 20px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.3);
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.btn-icon-only {
    padding: 8px 10px !important;
    font-size: 14px;
}

.modal-content.modal-lg {
    width: 680px;
    max-width: 92vw;
}

.modal-footer {
    height: 54px;
    padding: 0 20px;
    border-top: 1px solid var(--panel-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(15, 23, 42, 0.3);
    flex-shrink: 0;
}

.modal-body {
    flex: 1 1 auto;
    max-height: calc(85vh - 110px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    box-sizing: border-box;
}

.ops-help-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ops-section {
    background-color: rgba(30, 41, 59, 0.25);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 14px 16px;
}

.ops-section h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-hover);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding-bottom: 6px;
}

.ops-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.ops-section ul li {
    color: var(--text-primary);
    line-height: 1.5;
}

.ops-section code {
    background-color: rgba(15, 23, 42, 0.6);
    color: var(--accent-hover);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
}

.modal-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.section-title {
    border-top: 1px solid var(--panel-border);
    padding-top: 20px;
    margin-top: 20px;
}

.attributions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attribution-item {
    background-color: rgba(30, 41, 59, 0.25);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 12px 16px;
}

.attribution-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.lib-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}

.license-badge {
    background-color: rgba(14, 165, 233, 0.12);
    color: var(--accent-hover);
    border: 1px solid rgba(14, 165, 233, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.lib-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.lib-link {
    font-size: 11px;
    color: var(--accent-hover);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.lib-link:hover {
    color: var(--text-primary);
}
