:root {
--bg: #1a1a2e;
--bg-secondary: #16213e;
--bg-tertiary: #0f1729;
--text: #e8e8e8;
--text-secondary: #a0a0a0;
--accent: #6366f1;
--accent-hover: #818cf8;
--border: #2a2a4a;
--success: #22c55e;
--warning: #eab308;
--error: #ef4444;
--info: #3b82f6;
}
@media (prefers-color-scheme: light) {
:root {
--bg: #ffffff;
--bg-secondary: #f5f5f5;
--bg-tertiary: #e8e8e8;
--text: #1a1a1a;
--text-secondary: #666666;
--border: #e0e0e0;
}
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
background: var(--bg);
color: var(--text);
padding: 16px;
min-height: 100vh;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid var(--border);
}
h1 {
font-size: 18px;
font-weight: 600;
}
.stats {
font-size: 12px;
color: var(--text-secondary);
margin-top: 4px;
}
.add-btn {
padding: 8px 16px;
background: var(--accent);
color: white;
border: none;
border-radius: 6px;
font-size: 13px;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
}
.add-btn:hover {
background: var(--accent-hover);
}
.add-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
/* Hint banner */
.hint-banner {
background: var(--bg-secondary);
border: 1px solid var(--border);
padding: 10px 14px;
border-radius: 6px;
margin-bottom: 16px;
font-size: 12px;
color: var(--text-secondary);
}
.hint-banner strong {
color: var(--text);
}
.hint-banner code {
background: var(--bg-tertiary);
padding: 1px 4px;
border-radius: 3px;
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 11px;
color: var(--accent);
}
/* Override warning banner */
.override-banner {
background: var(--warning);
color: #000;
padding: 10px 14px;
border-radius: 6px;
margin-bottom: 16px;
font-size: 13px;
display: none;
}
.override-banner.visible {
display: block;
}
.override-banner strong {
font-weight: 600;
}
/* Directory list */
.directory-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.directory-card {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
padding: 12px 14px;
display: flex;
align-items: center;
gap: 12px;
}
.directory-card.readonly {
opacity: 0.8;
}
.lock-icon {
font-size: 14px;
color: var(--text-secondary);
}
.directory-info {
flex: 1;
min-width: 0;
}
.directory-path {
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 13px;
word-break: break-all;
}
.directory-meta {
display: flex;
align-items: center;
gap: 8px;
margin-top: 4px;
}
.source-badge {
font-size: 10px;
padding: 2px 6px;
border-radius: 4px;
text-transform: uppercase;
font-weight: 600;
}
.source-badge.cli {
background: var(--info);
color: white;
}
.source-badge.env {
background: #9333ea;
color: white;
}
.source-badge.config {
background: var(--success);
color: white;
}
.type-badge {
font-size: 10px;
padding: 2px 6px;
border-radius: 4px;
text-transform: uppercase;
font-weight: 600;
}
.type-badge.local {
background: #6b7280;
color: white;
}
.type-badge.github {
background: #1f2937;
color: white;
}
.blocked-badge {
font-size: 10px;
padding: 2px 6px;
border-radius: 4px;
text-transform: uppercase;
font-weight: 600;
background: var(--error);
color: white;
}
.directory-card.blocked {
border-color: var(--error);
opacity: 0.8;
}
.skill-count {
font-size: 11px;
color: var(--text-secondary);
}
.validity-icon {
font-size: 14px;
}
.validity-icon.valid {
color: var(--success);
}
.validity-icon.invalid {
color: var(--error);
}
.remove-btn {
padding: 6px 12px;
background: transparent;
color: var(--error);
border: 1px solid var(--error);
border-radius: 4px;
font-size: 12px;
cursor: pointer;
}
.remove-btn:hover {
background: var(--error);
color: white;
}
/* Section header for sub-sections */
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 24px;
margin-bottom: 12px;
padding-top: 16px;
border-top: 1px solid var(--border);
}
.section-header h2 {
font-size: 15px;
font-weight: 600;
}
.section-hint {
font-size: 11px;
color: var(--text-secondary);
margin-top: 2px;
}
/* Allowed orgs/users list */
.allowed-list {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.allowed-item {
display: inline-flex;
align-items: center;
gap: 8px;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 6px;
padding: 6px 10px;
}
.allowed-name {
font-size: 13px;
font-family: 'Fira Code', 'Consolas', monospace;
}
.remove-org-btn {
padding: 2px 8px;
background: transparent;
color: var(--text-secondary);
border: 1px solid var(--border);
border-radius: 4px;
font-size: 11px;
cursor: pointer;
}
.remove-org-btn:hover {
background: var(--error);
border-color: var(--error);
color: white;
}
/* Empty state */
.empty-state {
text-align: center;
padding: 40px 20px;
color: var(--text-secondary);
}
.empty-state.small {
padding: 16px;
font-size: 12px;
}
.empty-state p {
margin-bottom: 16px;
}
/* Loading state */
.loading {
text-align: center;
padding: 40px;
color: var(--text-secondary);
}
/* Modal */
.modal-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
z-index: 100;
justify-content: center;
align-items: center;
}
.modal-overlay.active {
display: flex;
}
.modal {
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 12px;
width: 90%;
max-width: 500px;
max-height: 90vh;
overflow-y: auto;
}
.modal-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14px 18px;
border-bottom: 1px solid var(--border);
}
.modal-header h2 {
font-size: 16px;
font-weight: 600;
}
.modal-close {
background: none;
border: none;
font-size: 22px;
color: var(--text-secondary);
cursor: pointer;
line-height: 1;
}
.modal-body {
padding: 18px;
}
.form-group {
margin-bottom: 14px;
}
.form-group label {
display: block;
font-size: 13px;
margin-bottom: 6px;
color: var(--text);
}
.form-group input {
width: 100%;
padding: 10px 12px;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 6px;
color: var(--text);
font-size: 13px;
font-family: 'Fira Code', 'Consolas', monospace;
}
.form-group input:focus {
outline: none;
border-color: var(--accent);
}
.form-hint {
font-size: 11px;
color: var(--text-secondary);
margin-top: 4px;
line-height: 1.5;
}
.form-hint code {
background: var(--bg-tertiary);
padding: 1px 4px;
border-radius: 3px;
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 10px;
}
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 10px;
padding: 14px 18px;
border-top: 1px solid var(--border);
}
.btn {
padding: 10px 18px;
border-radius: 6px;
font-size: 13px;
cursor: pointer;
border: none;
}
.btn-primary {
background: var(--accent);
color: white;
}
.btn-primary:hover {
background: var(--accent-hover);
}
.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-secondary {
background: var(--bg);
color: var(--text);
border: 1px solid var(--border);
}
.btn-secondary:hover {
background: var(--border);
}
.btn-danger {
background: var(--error);
color: white;
}
.btn-danger:hover {
background: #dc2626;
}
.modal-small {
max-width: 400px;
}
.confirm-path {
font-family: 'Fira Code', 'Consolas', monospace;
font-size: 12px;
background: var(--bg);
padding: 8px 12px;
border-radius: 4px;
word-break: break-all;
margin-top: 8px;
}
/* Toast */
.toast {
position: fixed;
bottom: 20px;
right: 20px;
padding: 12px 18px;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
font-size: 13px;
z-index: 200;
display: none;
max-width: 300px;
}
.toast.success {
border-color: var(--success);
color: var(--success);
}
.toast.error {
border-color: var(--error);
color: var(--error);
}
.toast.visible {
display: block;
animation: slideIn 0.3s ease;
}
@keyframes slideIn {
from {
transform: translateX(100%);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
/* Settings section */
.settings-section {
margin-top: 24px;
padding-top: 16px;
border-top: 1px solid var(--border);
}
.settings-section h2 {
font-size: 14px;
font-weight: 600;
margin-bottom: 12px;
color: var(--text-secondary);
}
.setting-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 12px 14px;
background: var(--bg-secondary);
border: 1px solid var(--border);
border-radius: 8px;
}
.setting-info {
flex: 1;
}
.setting-info label {
font-size: 13px;
font-weight: 500;
display: block;
margin-bottom: 4px;
}
.setting-hint {
font-size: 11px;
color: var(--text-secondary);
line-height: 1.4;
}
/* Toggle switch */
.toggle-switch {
position: relative;
display: inline-block;
width: 44px;
height: 24px;
flex-shrink: 0;
}
.toggle-switch input {
opacity: 0;
width: 0;
height: 0;
}
.toggle-slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: var(--border);
transition: 0.2s;
border-radius: 24px;
}
.toggle-slider:before {
position: absolute;
content: "";
height: 18px;
width: 18px;
left: 3px;
bottom: 3px;
background-color: var(--text);
transition: 0.2s;
border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
background-color: var(--accent);
}
.toggle-switch input:checked + .toggle-slider:before {
transform: translateX(20px);
background-color: white;
}
.toggle-switch input:disabled + .toggle-slider {
opacity: 0.5;
cursor: not-allowed;
}