@font-face {
  font-family: 'Orbitron';
  src: url('Orbitron-Bold.ttf') format('truetype');
  font-weight: bold;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg-dark: #0a0a12;
  --bg-darker: #06060a;
  --bg-sidebar: #0f0f1a;
  --bg-input: #1a1a2e;
  --border: #2a2a4a;
  --text: #e0e0e0;
  --text-dim: #7a7a9a;
  --cyan: #00FFFF;
  --cyan-dim: #00cccc;
  --purple: #9b30ff;
  --purple-dark: #6a0dad;
  --glow: 0 0 20px rgba(0, 255, 255, 0.3);
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  background: var(--bg-dark);
  color: var(--text);
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: 1fr 24px;
}
body.with-sidebar { grid-template-columns: 56px 240px 1fr; }
body.with-sidebar.sidebar-collapsed { grid-template-columns: 56px 1fr; }

/* Activity Bar */
.activity-bar {
  background: linear-gradient(180deg, var(--bg-darker) 0%, #0d0d18 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  gap: 4px;
  border-right: 1px solid var(--border);
}
.activity-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.5));
}
.activity-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.5;
  position: relative;
  transition: all 0.2s;
  border-radius: 8px;
}
.activity-icon:hover { opacity: 1; background: rgba(0, 255, 255, 0.1); }
.activity-icon.active { opacity: 1; background: rgba(0, 255, 255, 0.15); }
.activity-icon.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--cyan);
  border-radius: 0 2px 2px 0;
  box-shadow: var(--glow);
}
.activity-icon svg { width: 24px; height: 24px; stroke: var(--cyan); }
.activity-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 56px;
  background: var(--bg-input);
  color: var(--cyan);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}
.activity-icon:hover::after { opacity: 1; }
.activity-spacer { flex: 1; }

/* Sidebar */
.sidebar {
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
body:not(.with-sidebar) .sidebar { display: none; }
body.sidebar-collapsed .sidebar { display: none; }
.sidebar-header {
  height: 40px;
  padding: 0 12px 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--cyan);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  white-space: nowrap;
}
.sidebar-toggle { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 16px; padding: 4px; }
.sidebar-toggle:hover { color: var(--text); }
.sidebar-expand { position: fixed; left: 57px; top: 50%; transform: translateY(-50%); z-index: 10; background: var(--bg-sidebar); border: 1px solid var(--border); border-left: none; border-radius: 0 4px 4px 0; padding: 8px 4px; cursor: pointer; color: var(--text-dim); display: none; }
.sidebar-expand:hover { color: var(--cyan); }
body.with-sidebar.sidebar-collapsed .sidebar-expand { display: block; }
.sidebar-content { flex: 1; overflow-y: auto; }
.sidebar-section { padding: 12px 0; }
.section-title {
  padding: 4px 20px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.empty-state {
  padding: 8px 20px;
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

/* Main */
.main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-dark) 0%, #0d0815 100%);
}
.tabs {
  height: 40px;
  background: var(--bg-darker);
  display: flex;
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  background: transparent;
  border-right: 1px solid var(--border);
  font-size: 13px;
  cursor: pointer;
  color: var(--text-dim);
  transition: all 0.2s;
}
.tab.active { 
  background: var(--bg-dark); 
  color: var(--cyan);
  border-top: 2px solid var(--cyan);
  box-shadow: inset 0 2px 10px rgba(0, 255, 255, 0.1);
}

.workspace { flex: 1; overflow: auto; padding: 24px; }
.panel { display: none; height: 100%; }
.panel.active { display: block; }
.panel-grid {
  display: flex;
  gap: 24px;
  height: 100%;
}
.panel-section {
  background: var(--bg-sidebar);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid var(--border);
  min-width: 340px;
}
.panel-section.output { min-height: 0; flex: 1; min-width: 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-header h3 { 
  font-size: 14px; 
  font-weight: 600;
  color: var(--text);
}
.header-actions { display: flex; gap: 4px; }

/* Input tabs */
.input-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.input-tab {
  flex: 1;
  padding: 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.input-tab:hover { border-color: var(--cyan); color: var(--text); }
.input-tab.active { 
  background: rgba(0, 255, 255, 0.1); 
  border-color: var(--cyan); 
  color: var(--cyan);
}

/* Dictation */
.dictation-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.dictation-status {
  padding: 10px;
  background: var(--bg-input);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.dictation-status.recording {
  color: #ff4444;
  animation: pulse 1.5s infinite;
}
.dictation-status.paused {
  color: #ffaa00;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Text input */
.text-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
}
.text-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(0, 255, 255, 0.02);
}
.drop-zone:hover, .drop-zone.drag {
  border-color: var(--cyan);
  background: rgba(0, 255, 255, 0.08);
  box-shadow: inset 0 0 30px rgba(0, 255, 255, 0.1);
}
.drop-zone.hidden { display: none; }
.drop-content svg { width: 48px; height: 48px; stroke: var(--cyan); opacity: 0.6; margin-bottom: 16px; }
.drop-content p { font-size: 14px; margin-bottom: 4px; color: var(--text); }
.drop-content span { font-size: 12px; color: var(--text-dim); }

/* File Preview */
.file-preview {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: var(--bg-input);
  border-radius: 8px;
  border: 1px solid var(--border);
}
.file-preview.show { display: flex; }
.file-icon { font-size: 28px; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 11px; color: var(--text-dim); }

/* Form */
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group select, .form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: all 0.2s;
}
.form-group select:focus, .form-group textarea:focus { 
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.15);
}
.form-group textarea { resize: vertical; width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn.primary { 
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.6) 0%, rgba(0, 180, 180, 0.6) 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}
.btn.primary:hover { 
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.3);
}
.btn.primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.secondary { background: var(--bg-input); color: var(--text); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--border); border-color: var(--cyan); }
.btn svg { width: 16px; height: 16px; }
.btn-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  opacity: 0.7;
  transition: all 0.2s;
  position: relative;
}
.btn-icon:hover { background: var(--bg-input); opacity: 1; border-color: var(--cyan); }
.btn-icon::after {
  content: attr(title);
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-input);
  color: var(--cyan);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 100;
  border: 1px solid var(--border);
}
.btn-icon:hover::after { opacity: 1; }

/* Badge */
.badge { 
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: #fff; 
  padding: 4px 10px; 
  border-radius: 12px; 
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(155, 48, 255, 0.3);
}

/* Knowledge info */
.knowledge-info { 
  background: var(--bg-dark); 
  padding: 14px; 
  border-radius: 8px; 
  font-size: 12px;
  border: 1px solid var(--border);
}
.knowledge-info p { margin: 6px 0; }
.knowledge-info code { 
  background: var(--bg-input); 
  padding: 3px 8px; 
  border-radius: 4px;
  color: var(--cyan);
  font-family: 'SF Mono', Consolas, monospace;
}
.knowledge-info .hint { color: var(--text-dim); margin-top: 10px; font-style: italic; }

/* Divider */
.divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }

/* Progress */
.progress-container { margin-top: 12px; }
.progress-bar { 
  height: 8px; 
  background: var(--bg-dark); 
  border-radius: 4px; 
  overflow: hidden;
  border: 1px solid var(--border);
}
.progress-fill { 
  height: 100%; 
  background: linear-gradient(90deg, var(--cyan), var(--purple)); 
  width: 0%; 
  transition: width 0.3s;
  box-shadow: 0 0 10px var(--cyan);
}
.progress-text { 
  font-size: 12px; 
  color: var(--cyan); 
  margin-top: 6px;
  font-family: 'SF Mono', Consolas, monospace;
}
.btn-link {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 8px;
}
.btn-link:hover { color: var(--cyan); }
.progress-log {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px;
  margin-top: 8px;
  max-height: 150px;
  overflow-y: auto;
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 11px;
  color: var(--text-dim);
}
.progress-log .log-item { padding: 2px 0; }
.progress-log .log-item.success { color: var(--cyan); }

/* Checkbox */
.checkbox-group { margin: 4px 0; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
  cursor: pointer;
}

/* Output */
.output-area { flex: 1; min-height: 0; }
.output-area textarea {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  color: var(--text);
  font-family: 'SF Mono', Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  resize: none;
}
.output-area textarea:focus { 
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.1);
}

/* Status Bar */
.status-bar {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, var(--purple-dark) 0%, var(--purple) 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  box-shadow: 0 -2px 10px rgba(155, 48, 255, 0.3);
}
.status-item { display: flex; align-items: center; gap: 8px; }

/* Settings */
.settings-container {
  max-width: 600px;
  margin: 0 auto;
}
.settings-container h2 {
  font-size: 20px;
  margin-bottom: 24px;
  color: var(--cyan);
}
.settings-section {
  margin-bottom: 24px;
}
.settings-section h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text);
}
.settings-card {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.usage-item {
  text-align: center;
}
.usage-label {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.usage-value {
  display: block;
  font-size: 28px;
  font-weight: 600;
  color: var(--cyan);
  font-family: 'Orbitron', sans-serif;
}
.usage-unit {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}
.api-status {
  margin-bottom: 16px;
}
.api-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.api-item:last-child { border-bottom: none; }
.api-badge {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.api-badge.online { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.api-badge.offline { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Help */
.help-container { max-width: 800px; }
.help-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.help-nav-btn {
  padding: 8px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.help-nav-btn:hover { border-color: var(--cyan); color: var(--text); }
.help-nav-btn.active { background: rgba(0, 255, 255, 0.1); border-color: var(--cyan); color: var(--cyan); }
.help-section { display: none; }
.help-section.active { display: block; }
.help-section h3 { color: var(--cyan); margin-bottom: 12px; }
.help-section h4 { color: var(--text); margin: 16px 0 8px; font-size: 14px; }
.help-section p { color: var(--text-muted); margin-bottom: 8px; line-height: 1.6; }
.help-section ul { margin: 0 0 12px 20px; color: var(--text-muted); }
.help-section li { margin-bottom: 6px; line-height: 1.5; }
.help-section strong { color: var(--text); }

/* Upload result */
.upload-result {
  margin-top: 16px;
  padding: 16px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  border-radius: 8px;
  text-align: center;
}
.upload-result a {
  color: var(--cyan);
  text-decoration: none;
}
.upload-result a:hover { text-decoration: underline; }

.progress-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: #00FFFF; box-shadow: 0 0 10px #00FFFF, 0 0 20px #00FFFF; width: 30%; animation: progress 1s ease-in-out infinite; }
@keyframes progress { 0% { width: 0; margin-left: 0; } 50% { width: 40%; } 100% { width: 0; margin-left: 100%; } }

#imgFilePreview { position: relative; }
#imgFilePreview img { max-width: 100%; max-height: 200px; border-radius: 8px; }

/* Image Editor */
.img-editor { display: flex; height: 100%; }
.img-toolbar { display: flex; flex-direction: column; gap: 4px; padding: 8px; background: var(--bg-sidebar); border-right: 1px solid var(--border); }
.tool-btn { width: 36px; height: 36px; border: none; background: transparent; color: var(--text); font-size: 18px; cursor: pointer; border-radius: 4px; display: flex; align-items: center; justify-content: center; }
.tool-btn:hover { background: var(--bg-input); }
.tool-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.tool-btn.active { background: rgba(0, 255, 255, 0.3); border: 1px solid var(--accent-cyan); }
.tool-separator { height: 1px; background: var(--border); margin: 4px 0; }

.img-canvas-area { flex: 1; display: flex; flex-direction: column; padding: 12px; padding-top: 0; }
.img-toolbar-top { min-height: 44px; display: flex; align-items: center; padding: 0 12px; background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%); border-bottom: 1px solid var(--border); margin: 0 -12px 12px -12px; }
.img-toolbar-top .tool-options { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.img-toolbar-top .tool-label { font-size: 12px; color: var(--text-dim); }
.img-toolbar-top .tool-icon { font-size: 14px; color: var(--accent-cyan); }
.img-toolbar-top .toolbar-hint { font-size: 13px; color: var(--accent-cyan); }
.img-toolbar-top .value-display { font-size: 12px; color: var(--accent-cyan); min-width: 35px; }
.img-toolbar-top .size-hint { font-size: 11px; color: var(--text-dim); margin-left: 8px; }
.img-toolbar-top .small-slider { width: 80px; height: 4px; }
.img-toolbar-top input[type="color"] { width: 28px; height: 28px; border: 2px solid var(--border); border-radius: 4px; cursor: pointer; padding: 0; }
.img-toolbar-top .small-select { padding: 4px 8px; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 12px; }
.img-toolbar-top .checkbox-label { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-dim); cursor: pointer; }
.img-toolbar-top .checkbox-label input { accent-color: var(--accent-cyan); }
.img-toolbar-top .toolbar-spacer { flex: 1; }
.img-toolbar-top .toolbar-actions { display: flex; gap: 8px; }
.img-canvas { flex: 1; display: flex; align-items: center; justify-content: center; background: #1a1a1a; border-radius: 8px; background-image: linear-gradient(45deg, #252525 25%, transparent 25%), linear-gradient(-45deg, #252525 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #252525 75%), linear-gradient(-45deg, transparent 75%, #252525 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px; position: relative; min-height: 300px; cursor: pointer; overflow: hidden; isolation: isolate; }
.img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--text-dim); }
.img-placeholder svg { width: 64px; height: 64px; opacity: 0.5; }
.img-placeholder.hidden { display: none; }
.img-canvas img { max-width: 100%; max-height: 100%; object-fit: contain; }
.img-canvas img[src=""] { display: none; }
.img-info { padding: 8px 0; font-size: 12px; color: var(--text-dim); text-align: center; }

.btn-group { display: flex; gap: 2px; }
.btn.small { padding: 4px 12px; font-size: 13px; min-width: 32px; border-radius: 4px; background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text); }
.btn.small:hover { border-color: var(--accent-cyan); }
.btn.small.toggle { background: #333 !important; border: 2px solid #fff !important; color: #fff !important; }
.btn.small.toggle.active { background: var(--accent-cyan) !important; border-color: var(--accent-cyan) !important; color: #000 !important; }
.btn-toggle { appearance: none; -webkit-appearance: none; padding: 6px 12px; font-size: 14px; border-radius: 4px; cursor: pointer; background: transparent; border: 1px solid #666; color: #888; transition: all 0.2s; }
.btn-toggle:hover { border-color: #aaa; color: #aaa; }
.btn-toggle.active { background: #00FFFF; border-color: #00FFFF; color: #000; box-shadow: 0 0 10px rgba(0, 255, 255, 0.5); }
.btn.small.primary { background: transparent; border: 1px solid var(--accent-cyan); color: var(--accent-cyan); }
.btn.small.primary:hover { background: var(--accent-cyan); color: #000; }
.btn.small.secondary { background: transparent; border: 1px solid var(--border); }
.btn.small.secondary:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); }

.tool-btn { position: relative; }
.tool-btn:hover::after { content: attr(title); position: absolute; left: 45px; top: 50%; transform: translateY(-50%); background: #000; color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 12px; white-space: nowrap; z-index: 100; }

.url-input-row { display: flex; gap: 8px; margin-top: 12px; width: 100%; max-width: 400px; }
.url-input-row input { flex: 1; padding: 8px 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 4px; color: var(--text); font-size: 13px; }
.url-input-row button { padding: 8px 16px; }

.crop-overlay { position: absolute; border: 2px dashed var(--accent-cyan); background: rgba(0,255,255,0.1); pointer-events: none; }

/* Tone sliders */
#toneGroup { margin-top: 8px; }
#rubricGroup { margin-top: 4px; }
#scriptLanguage { margin-bottom: 4px; }
.tone-sliders { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.tone-item { display: flex; align-items: center; gap: 10px; }
.tone-item span:first-child { width: 140px; font-size: 13px; }
.tone-item input[type="range"] { flex: 1; }
.tone-value { width: 40px; text-align: right; font-size: 12px; color: #888; }

/* Checkbox group */
.checkbox-group { margin-top: 8px; }

/* Prompt input */
#promptInput { margin-top: 4px; }

/* History items */
.history-item { padding: 10px; border-radius: 6px; cursor: pointer; margin-bottom: 6px; background: var(--bg-tertiary); }
.history-item:hover { background: var(--bg-hover); }
.history-name { font-weight: 500; font-size: 13px; margin-bottom: 2px; }
.history-date { font-size: 11px; color: #888; margin-bottom: 4px; }
.history-preview { font-size: 12px; color: #aaa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Collapsible sections */
.section-header.clickable { cursor: pointer; user-select: none; }
.section-header.clickable:hover { background: var(--bg-hover); margin: -8px -16px; padding: 8px 16px; border-radius: 6px; }
.collapse-icon { font-size: 12px; color: var(--text-dim); transition: transform 0.2s; }
.collapsible.collapsed .collapse-icon { transform: rotate(-90deg); }
.collapsible.collapsed .collapsible-content { display: none; }
.panel-section.collapsible.collapsed { min-width: auto; width: auto; flex: 0 0 auto; padding: 16px; }

/* Script history panel */
.panel-content { padding: 20px; height: 100%; display: flex; flex-direction: column; gap: 16px; }
.script-history-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.script-history-item { padding: 12px; border-radius: 8px; cursor: pointer; background: var(--bg-sidebar); border: 1px solid var(--border); }
.script-history-item:hover { background: var(--bg-hover); border-color: var(--cyan); }
.script-history-item .history-prompt { font-size: 13px; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.script-history-item .history-meta { font-size: 11px; color: var(--text-dim); }
.script-history-item .history-preview { font-size: 12px; color: #aaa; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Video panel */
.video-panel-content { padding: 20px; height: 100%; display: flex; flex-direction: column; gap: 16px; }
.video-input-section { display: flex; gap: 10px; }
.video-input-section input { flex: 1; text-align: center; }
.video-input-section input::placeholder { font-weight: 600; }
.video-preview-section { background: var(--bg-sidebar); border-radius: 8px; padding: 12px; max-width: 360px; margin: 0 auto; }
.video-preview-container { position: relative; padding-bottom: 56.25%; height: 0; border-radius: 6px; overflow: hidden; }
.video-preview-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.video-preview-info { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; }
.video-preview-info span:first-child { font-weight: 500; }
.video-queue-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.video-queue-header h3 { margin: 0; font-size: 14px; }
.queue-actions { display: flex; gap: 8px; align-items: center; }
.queue-actions select { padding: 6px 10px; font-size: 12px; }
.queue-actions .checkbox-inline { font-size: 12px; }
.video-queue { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.queue-item { display: flex; gap: 12px; padding: 10px; background: var(--bg-sidebar); border-radius: 8px; align-items: center; }
.queue-item-thumb { width: 120px; height: 68px; border-radius: 4px; object-fit: cover; background: #000; }
.queue-item-info { flex: 1; min-width: 0; }
.queue-item-title { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-item-status { font-size: 11px; color: var(--text-dim); margin-top: 4px; }
.queue-item-status.downloading { color: var(--cyan); }
.queue-item-status.done { color: #4ade80; }
.queue-item-status.error { color: #f87171; }
.queue-item-remove { background: none; border: none; color: var(--text-dim); cursor: pointer; font-size: 16px; padding: 4px; }
.queue-item-remove:hover { color: #f87171; }
.video-empty-state { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-dim); text-align: center; }
.video-empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
.video-empty-state p { font-weight: 600; }

/* Video history */
.video-history-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.video-history-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; background: var(--bg-sidebar); border: 1px solid var(--border); }
.video-history-item:hover { background: var(--bg-hover); border-color: var(--cyan); }
.video-history-item .history-title { flex: 1; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-history-item .history-meta { font-size: 11px; color: var(--text-dim); }
.video-history-item .history-link { text-decoration: none; font-size: 14px; }

/* Trends panel */
.trends-panel-content { padding: 20px; height: 100%; overflow-y: auto; }
.trends-form { background: var(--bg-sidebar); padding: 16px; border-radius: 8px; margin-bottom: 20px; }
.trends-form .form-row { display: flex; gap: 12px; margin-bottom: 12px; }
.trends-form .form-row .form-group { flex: 1; }
.trends-loading { text-align: center; padding: 40px; color: var(--text-dim); }
.trends-loading .spinner { width: 40px; height: 40px; border: 3px solid var(--border); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.trends-section { margin-bottom: 24px; }
.trends-section h3 { font-size: 14px; margin-bottom: 12px; color: var(--text); }
.trends-list, .ideas-list { display: flex; flex-direction: column; gap: 10px; }
.trend-item, .idea-item { background: var(--bg-sidebar); padding: 14px; border-radius: 8px; border-left: 3px solid var(--cyan); }
.trend-item .trend-topic { font-weight: 600; margin-bottom: 4px; }
.trend-item .trend-reason { font-size: 13px; color: var(--text-dim); }
.trend-item .trend-potential { font-size: 11px; margin-top: 6px; padding: 2px 8px; border-radius: 4px; display: inline-block; }
.trend-potential.high { background: #22c55e33; color: #22c55e; }
.trend-potential.medium { background: #eab30833; color: #eab308; }
.trend-potential.low { background: #64748b33; color: #64748b; }
.idea-item .idea-title { font-weight: 600; margin-bottom: 4px; }
.idea-item .idea-desc { font-size: 13px; color: var(--text-dim); margin-bottom: 8px; }
.idea-item .idea-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.idea-item .idea-tag { font-size: 11px; padding: 2px 8px; background: var(--bg-tertiary); border-radius: 4px; }
.idea-item .idea-format { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: var(--cyan); color: #000; margin-left: auto; }
.tags-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tags-list .tag { padding: 6px 12px; background: var(--bg-sidebar); border-radius: 6px; font-size: 13px; cursor: pointer; }
.tags-list .tag:hover { background: var(--cyan); color: #000; }
.top-videos-list { display: flex; flex-direction: column; gap: 8px; }
.top-video-item { display: flex; gap: 12px; padding: 10px; background: var(--bg-sidebar); border-radius: 8px; align-items: center; }
.top-video-item .video-title { flex: 1; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-video-item .video-stats { font-size: 11px; color: var(--text-dim); }

/* Deep analyze */
.trend-footer, .idea-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.btn-small { padding: 4px 10px; font-size: 11px; }
.modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal-content { background: var(--bg-main); border-radius: 12px; max-width: 900px; width: 90%; max-height: 85vh; display: flex; flex-direction: column; }
.modal-large { max-width: 1000px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; font-size: 16px; }
.modal-header .btn-icon { color: var(--cyan); font-size: 18px; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.deep-section { margin-bottom: 24px; }
.deep-section h4 { margin-bottom: 12px; font-size: 14px; }
.deep-videos-list { display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow-y: auto; }
.deep-video-item { display: flex; gap: 16px; padding: 12px; background: var(--bg-sidebar); border-radius: 8px; }
.deep-video-info { flex: 1; min-width: 0; }
.deep-video-title { font-size: 13px; font-weight: 500; color: var(--cyan); text-decoration: none; display: block; margin-bottom: 4px; }
.deep-video-title:hover { text-decoration: underline; }
.deep-video-channel { font-size: 11px; color: var(--text-dim); margin-bottom: 4px; }
.deep-video-desc { font-size: 12px; color: #888; margin-bottom: 6px; }
.deep-video-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.deep-video-tags span { font-size: 10px; padding: 2px 6px; background: var(--bg-tertiary); border-radius: 3px; }
.deep-video-stats { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--text-dim); min-width: 80px; text-align: right; }
#scenaristPromptText { width: 100%; background: var(--bg-sidebar); border: 1px solid var(--border); border-radius: 6px; padding: 12px; font-size: 12px; color: var(--text); resize: none; }
.prompt-actions { display: flex; gap: 10px; margin-top: 12px; justify-content: flex-end; }

/* Trends analytics in scenarist */
.analytics-label { display: flex; align-items: center; gap: 8px; background: var(--bg-tertiary); border: 1px solid var(--cyan); color: var(--text); padding: 8px 12px; border-radius: 6px; font-size: 13px; }
.analytics-label input { margin: 0; }
.btn-tiny { padding: 2px 6px; font-size: 12px; background: transparent; border: none; cursor: pointer; color: var(--text-dim); }
.btn-tiny:hover { color: var(--cyan); }

/* Web research in deep analyze */
.deep-web-list { display: flex; flex-direction: column; gap: 10px; }
.deep-web-item { padding: 12px; background: var(--bg-sidebar); border-radius: 8px; }
.deep-web-title { font-size: 13px; font-weight: 500; color: var(--cyan); text-decoration: none; display: block; margin-bottom: 6px; }
.deep-web-title:hover { text-decoration: underline; }
.deep-web-content { font-size: 12px; color: #888; line-height: 1.5; }

/* Thumbnail editor */
.component-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--bg-tertiary); border-radius: 4px; }
.component-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; background: #000; }
.component-item span { flex: 1; font-size: 12px; }
.component-item .type-badge { font-size: 10px; padding: 2px 6px; background: var(--bg-sidebar); border-radius: 3px; }
.component-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.component-grid-item { cursor: pointer; padding: 8px; background: var(--bg-sidebar); border-radius: 8px; text-align: center; transition: border 0.2s; border: 2px solid transparent; }
.component-grid-item:hover { border-color: var(--cyan); }
.component-grid-item img { width: 100%; height: 80px; object-fit: contain; background: #000; border-radius: 4px; margin-bottom: 6px; }
.component-grid-item span { font-size: 11px; }
.lib-btn { background: var(--cyan) !important; color: #000 !important; }

/* YouTube AI & Calendar */
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.title-suggestions { margin-top: 6px; background: var(--bg-sidebar); border-radius: 6px; overflow: hidden; }
.title-option { padding: 8px 12px; cursor: pointer; font-size: 13px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.title-option:hover { background: var(--bg-tertiary); }
.title-option:last-child { border-bottom: none; }
.seo-score { background: rgba(0, 255, 255, 0.15); color: cyan; border: 1px solid rgba(0, 255, 255, 0.3); border-radius: 4px; padding: 2px 6px; font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.upload-progress { display: flex; align-items: center; gap: 10px; }
.progress-bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #06b6d4); border-radius: 4px; transition: width 0.3s; width: 0%; }
.progress-text { font-size: 12px; color: var(--text-dim); min-width: 36px; }
.yt-advanced { margin-top: 4px; }
.yt-advanced summary { cursor: pointer; color: var(--text-dim); font-size: 13px; padding: 6px 0; }
.yt-advanced summary:hover { color: var(--text); }
.advanced-grid { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.file-list { display: flex; flex-direction: column; gap: 2px; min-height: 24px; }
.file-item a:hover { text-decoration: underline; }
.btn-link { background: none; border: none; color: var(--cyan); cursor: pointer; font-size: 12px; padding: 0; }
.btn-link:hover { text-decoration: underline; }

.calendar-container { padding: 20px; height: 100%; display: flex; flex-direction: column; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.calendar-header h3 { margin: 0; }
.calendar-actions { display: flex; gap: 8px; }
.best-times-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--bg-tertiary); border-radius: 8px; margin-bottom: 12px; }
.best-times-label { font-size: 12px; color: var(--text-dim); white-space: nowrap; }
.best-times-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.best-times-chips .chip { padding: 4px 10px; background: var(--cyan); color: #000; border-radius: 12px; font-size: 12px; font-weight: 500; }
.calendar-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.calendar-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.btn-link.danger { color: #f87171; }
.btn-link.danger:hover { color: #ef4444; }
.calendar-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-sidebar); border-radius: 8px; border-left: 3px solid var(--text-dim); }
.calendar-item.ready { border-left-color: var(--green); }
.calendar-item.published { border-left-color: var(--cyan); }
.cal-date { text-align: center; min-width: 60px; }
.cal-day { display: block; font-weight: bold; font-size: 14px; }
.cal-time { font-size: 11px; color: var(--text-dim); }
.cal-info { flex: 1; }
.cal-title { font-size: 14px; margin-bottom: 2px; }
.cal-topic { font-size: 11px; color: var(--text-dim); }
.cal-actions { display: flex; gap: 4px; }

.calendar-form { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--bg-main); padding: 20px; border-radius: 12px; width: 400px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 100; }
.calendar-form h4 { margin: 0 0 16px; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

/* Analysis info */
.analysis-info { padding: 8px 12px; background: var(--bg-tertiary); color: var(--cyan); font-size: 12px; border-bottom: 1px solid var(--border); }
.popular-tags-hint { padding: 8px 12px; background: var(--bg-tertiary); color: var(--text-dim); font-size: 11px; }

.channel-analytics { margin-top: 12px; }
.analytics-card { padding: 8px 12px; background: var(--bg-tertiary); border-radius: 6px; font-size: 12px; }
.analytics-label { color: var(--text-dim); margin-right: 8px; }

/* Loading spinner inline */
.loading-spinner { display: inline-flex; align-items: center; gap: 8px; }
.loading-spinner .spinner-small { width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; }

/* Analytics panel */
.analytics-container { padding: 24px; max-width: 900px; margin: 0 auto; }
.analytics-header { margin-bottom: 24px; }
.analytics-header h2 { margin: 0 0 8px; }
.analytics-controls { display: flex; gap: 16px; align-items: flex-end; margin-bottom: 24px; }
.analytics-controls .form-group { flex: 0 0 150px; }
.analytics-loading { text-align: center; padding: 60px 20px; }
.analytics-loading .spinner { width: 50px; height: 50px; border: 3px solid var(--border); border-top-color: var(--cyan); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
.council-progress { margin-top: 16px; font-size: 12px; color: var(--text-dim); }
.analytics-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--bg-sidebar); padding: 16px; border-radius: 8px; text-align: center; }
.stat-value { font-size: 24px; font-weight: bold; color: var(--cyan); }
.stat-label { font-size: 12px; color: var(--text-dim); margin-top: 4px; }
.council-section { background: var(--bg-sidebar); border-radius: 12px; padding: 20px; }
.council-section h3 { margin: 0 0 8px; }
.council-tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.council-tab { padding: 8px 16px; background: var(--bg-tertiary); border: none; border-radius: 6px; color: var(--text-dim); cursor: pointer; font-size: 13px; }
.council-tab:hover { color: var(--text); }
.council-tab.active { background: var(--cyan); color: #000; }
.council-content { background: var(--bg-main); border-radius: 8px; padding: 20px; white-space: pre-wrap; line-height: 1.6; font-size: 14px; max-height: 500px; overflow-y: auto; }


/* Script Council */
.council-input-section textarea { width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 8px; padding: 12px; color: var(--text); font-size: 14px; resize: vertical; }
.council-options { display: flex; gap: 12px; margin-top: 12px; align-items: center; }
.council-content-wrap { margin-top: 16px; }
.council-content-wrap textarea { width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: 8px; padding: 12px; color: var(--text); font-size: 14px; resize: vertical; }
.council-actions { display: flex; gap: 12px; margin-top: 12px; justify-content: flex-end; }
.council-progress { font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.council-progress div { margin: 4px 0; }

/* === KANBAN BOARD === */
.kanban-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.kanban-column { background: var(--bg-secondary, #1e1e2e); border-radius: 8px; padding: 12px; min-height: 300px; }
.kanban-column-header { font-weight: 600; padding: 8px 4px; margin-bottom: 8px; border-bottom: 1px solid var(--border, #333); font-size: 14px; }
.kanban-cards { display: flex; flex-direction: column; gap: 8px; }
.kanban-card { background: var(--bg-tertiary, #2a2a3e); border: 1px solid var(--border, #333); border-radius: 6px; padding: 10px 12px; cursor: pointer; transition: border-color 0.2s; }
.kanban-card:hover { border-color: var(--accent, #4a9eff); }
.kanban-card[draggable="true"] { cursor: grab; }
.kanban-card[draggable="true"]:active { cursor: grabbing; opacity: 0.7; }
.kanban-card-title { font-weight: 500; font-size: 13px; margin-bottom: 6px; }
.kanban-card-meta { font-size: 11px; color: var(--text-dim, #888); margin-top: 4px; }
.kanban-card-dates { display: flex; gap: 12px; font-size: 10px; color: var(--text-dim, #666); margin-top: 6px; }
.kanban-column.drag-over { background: rgba(74, 158, 255, 0.08); }

/* Task Modal */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.task-modal { background: var(--bg-primary, #161625); border: 1px solid var(--border, #333); border-radius: 12px; width: 640px; max-height: 85vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border, #333); }
.modal-header h3 { margin: 0; }
.btn-close { background: none; border: none; color: var(--text-dim, #888); font-size: 18px; cursor: pointer; padding: 4px 8px; }
.btn-close:hover { color: #fff; }
.modal-body { padding: 24px; }
.modal-body .form-group { margin-bottom: 18px; }
.modal-body .form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; }
.modal-body .form-group input,
.modal-body .form-group textarea,
.modal-body .form-group select { width: 100%; }
.form-row { display: flex; gap: 16px; }
.form-row .form-group { flex: 1; }
.modal-footer { display: flex; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border, #333); }
.btn.danger { background: #e53e3e; color: #fff; }
.btn.danger:hover { background: #c53030; }

.tasks-archive { margin-top: 16px; }
.tasks-archive .kanban-card { margin-bottom: 8px; }

/* === USER BAR & AVATARS === */
.tabs-row { display: flex; align-items: center; justify-content: space-between; }
.tabs-row .tabs { flex: 1; }
.user-bar { display: flex; align-items: center; gap: 10px; padding: 4px 12px; font-size: 13px; border: 1px solid var(--cyan, #00ffff); border-radius: 20px; margin-right: 12px; background: rgba(0, 255, 255, 0.05); }
.user-avatar-small { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.user-avatar-big { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cyan, #00ffff); }
.avatar-placeholder.user-avatar-big { border: 2px solid var(--cyan, #00ffff); }
.avatar-placeholder { background: var(--bg-secondary, #1e1e2e); display: flex; align-items: center; justify-content: center; border: 1px solid var(--border, #333); border-radius: 50%; }
.avatar-upload-btn { position: absolute; bottom: 0; right: 0; background: var(--bg-secondary, #1e1e2e); border: 1px solid var(--border, #333); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; }
.btn-logout { background: none; border: none; color: var(--text-dim, #888); cursor: pointer; font-size: 14px; padding: 2px 4px; }
.btn-logout:hover { color: #e53e3e; }

/* Profile panel */
.profile-card { max-width: 520px; margin: 40px auto; padding: 40px; border: 1px solid var(--cyan, #00ffff); border-radius: 12px; background: rgba(0, 255, 255, 0.03); }
.profile-card .form-group { margin-bottom: 22px; }
.profile-card .form-group label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-dim, #888); }

/* User management cards */
.user-card { background: var(--bg-tertiary, #2a2a3e); border: 1px solid var(--border, #333); border-radius: 10px; padding: 20px 24px; margin-bottom: 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: border-color 0.2s; }
.user-card:hover { border-color: var(--cyan, #00ffff); }
.user-card-info { display: flex; align-items: center; gap: 16px; }
.user-card-info .user-avatar-small { width: 40px; height: 40px; }
.user-card-name { font-size: 16px; font-weight: 600; }
.user-card-meta { font-size: 13px; color: var(--text-dim, #888); margin-top: 2px; }
.user-card-date { font-size: 12px; color: var(--text-dim, #666); }

.kanban-card-row { display: flex; justify-content: space-between; align-items: center; }
.kanban-assignee { position: relative; }
.kanban-assignee::after { content: attr(title); position: absolute; bottom: -28px; right: 0; background: var(--bg-darker, #0d0d18); color: var(--cyan, #00ffff); padding: 3px 8px; border-radius: 4px; font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; border: 1px solid var(--cyan, #00ffff); }
.kanban-assignee:hover::after { opacity: 1; }
.kanban-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cyan, #00ffff); margin: 8px; flex-shrink: 0; }
.kanban-avatar.avatar-placeholder { background: var(--bg-secondary, #1e1e2e); display: flex; align-items: center; justify-content: center; border: 2px solid var(--cyan, #00ffff); }
