/* ============================================
   LSB Console — Admin Dashboard
   ============================================ */

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-hover: #1a1a25;
  --bg-panel: #0f0f17;
  --border: #1e1e2e;
  --text: #e8e8ed;
  --text-dim: #8888a0;
  --accent: #2e7d5b;
  --accent-light: #7fc8a9;
  --danger: #ef4444;
  --radius: 8px;
  --radius-sm: 4px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* Login */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  width: 100%;
  max-width: 360px;
}

.login-card h1 {
  color: var(--accent-light);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.login-subtitle {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.login-card input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.login-card input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-card button {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
}

.login-card button:hover { opacity: 0.9; }
.login-card button:disabled { opacity: 0.5; cursor: not-allowed; }

.error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left { display: flex; align-items: center; gap: 1rem; }

.header h1 {
  font-size: 1.125rem;
  color: var(--accent-light);
}

.lead-count {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-toggle {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.view-btn {
  padding: 0.4rem 0.75rem;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
}

.view-btn.active {
  background: var(--accent);
  color: white;
}

.filters {
  display: flex;
  gap: 0.5rem;
}

.filters select {
  padding: 0.4rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8rem;
}

/* Main content */
.main-content {
  padding: 1rem;
  overflow: auto;
  height: calc(100vh - 57px);
}

/* Kanban view pills */
.kanban-pills {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.kanban-pill {
  padding: 0.35rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.15s;
}
.kanban-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.kanban-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Kanban */
.kanban-board {
  display: flex;
  gap: 0.75rem;
  height: calc(100% - 2.5rem);
  overflow-x: scroll;
  overflow-y: auto;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

.kanban-board::-webkit-scrollbar {
  height: 8px;
}

.kanban-board::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.kanban-board::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

.kanban-column {
  min-width: 200px;
  width: 200px;
  flex: 0 0 200px;
  background: var(--bg-panel);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.kanban-column.inactive { opacity: 0.6; }

.kanban-header {
  padding: 0.75rem;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  cursor: help;
}

.kanban-step {
  font-size: 0.6rem;
  font-weight: 700;
  background: var(--bg);
  color: var(--text-dim);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kanban-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  flex: 1;
}

.kanban-count {
  font-size: 0.7rem;
  background: var(--bg);
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  color: var(--text-dim);
}

.kanban-cards {
  padding: 0 0.5rem 0.5rem;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kanban-empty {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.75rem;
  padding: 1rem 0;
}

.kanban-board-inactive {
  min-height: auto;
}

/* Lead cards */
.lead-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s;
}

.lead-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.lead-card[draggable="true"] {
  cursor: grab;
}

.lead-card.dragging {
  opacity: 0.4;
  cursor: grabbing;
}

/* Drop zone feedback */
.kanban-cards.drop-hover {
  background: rgba(46, 125, 91, 0.08);
  border-radius: var(--radius-sm);
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.card-name {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
}

.card-location {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.category-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.source-badge {
  font-size: 0.55rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.source-manual { background: #3b82f6; color: white; }
.source-scraped { background: #f59e0b; color: #1e293b; }

.card-action {
  font-size: 0.65rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* Status badge */
.status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Follow-up badge */
.followup-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: var(--danger);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.followup-badge-large {
  display: inline-block;
  background: var(--danger);
  color: white;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  margin-left: 0.5rem;
}

/* Table */
.table-wrapper {
  overflow-x: auto;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.leads-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.leads-table th.sortable {
  cursor: pointer;
}

.leads-table th.sortable:hover {
  color: var(--text);
}

.leads-table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.leads-table tr {
  cursor: pointer;
}

.leads-table tr:hover td {
  background: var(--bg-hover);
}

.leads-table tr.needs-followup {
  background: rgba(239, 68, 68, 0.05);
}

.lead-name { font-weight: 600; }

.last-action {
  font-size: 0.7rem;
  color: var(--text-dim);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-link {
  color: var(--accent-light);
  text-decoration: none;
  font-size: 0.75rem;
}

.demo-link:hover { text-decoration: underline; }

/* Inactive section */
.inactive-section {
  margin-top: 1rem;
  padding: 0.75rem;
}

.inactive-section summary {
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.8rem;
}

/* Detail panel */
.detail-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: 420px;
  height: 100vh;
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  z-index: 100;
  padding: 1.25rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.panel-header h2 {
  font-size: 1.1rem;
  flex: 1;
}

.panel-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.panel-close:hover { color: var(--text); }

.panel-loading, .panel-error {
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
}

/* Panel actions */
.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn:hover { border-color: var(--accent); background: var(--bg-hover); }

.btn-preview { border-color: var(--accent); color: var(--accent-light); }
.btn-preview-staging { border-color: #6b7280; color: #9ca3af; }
.btn-status { border-color: #3b82f6; color: #93c5fd; }
.btn-outreach { border-color: #f59e0b; color: #fcd34d; }
.btn-edit { border-color: #8b5cf6; color: #c4b5fd; }
.btn-wa { background: #25d366; color: white; border-color: #25d366; }
.btn-email { background: #3b82f6; color: white; border-color: #3b82f6; }
.btn-sent { background: var(--accent); color: white; border-color: var(--accent); }
.btn-save { background: var(--accent); color: white; border-color: var(--accent); }
.btn-cancel { color: var(--text-dim); }

/* Panel sections */
.panel-section {
  margin-bottom: 1.25rem;
}

.panel-section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.detail-grid {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.detail-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.detail-label {
  color: var(--text-dim);
  min-width: 80px;
  flex-shrink: 0;
}

.detail-value {
  color: var(--text);
  word-break: break-word;
}

.detail-value a {
  color: var(--accent-light);
  text-decoration: none;
}

.color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 0.25rem;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeline-event {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.35rem;
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.timeline-note {
  font-size: 0.75rem;
}

.timeline-time {
  font-size: 0.65rem;
  color: var(--text-dim);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.modal h4 {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 1rem 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Status options in modal */
.status-options {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.status-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-size: 0.8rem;
}

.status-option:hover { background: var(--bg-hover); border-color: var(--accent); }
.status-option.current { opacity: 0.4; cursor: default; }

.status-current {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.status-current strong { color: var(--text); }

.status-next {
  border-left-width: 4px !important;
  background: rgba(46, 125, 91, 0.1);
}

.status-prev {
  border-left-width: 4px !important;
  opacity: 0.7;
}

.status-inactive-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.status-inactive {
  font-size: 0.75rem;
  opacity: 0.7;
}

.status-inactive:hover { opacity: 1; }

/* Outreach modal */
.outreach-channel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.outreach-phone, .outreach-email {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.outreach-warning {
  color: var(--danger);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.outreach-note {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.outreach-preview {
  margin: 1rem 0;
}

.outreach-preview a {
  color: var(--accent-light);
  font-size: 0.8rem;
  word-break: break-all;
}

.outreach-actions {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

/* Edit form */
.edit-form fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}

.edit-form legend {
  font-size: 0.75rem;
  color: var(--accent-light);
  padding: 0 0.3rem;
  font-weight: 600;
}

.edit-form label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.edit-form input, .edit-form textarea {
  display: block;
  width: 100%;
  padding: 0.4rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.edit-form input:focus, .edit-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.edit-form input[type="color"] {
  height: 32px;
  padding: 2px;
  cursor: pointer;
}

.edit-form textarea {
  min-height: 60px;
  resize: vertical;
  font-family: inherit;
}

.edit-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-success { background: var(--accent); color: white; }
.toast-error { background: var(--danger); color: white; }
.toast-info { background: #3b82f6; color: white; }

/* Mobile */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .kanban-board {
    flex-direction: column;
    min-height: auto;
  }

  .kanban-column {
    min-width: 100%;
    max-width: 100%;
  }

  .detail-panel {
    width: 100%;
  }

  .modal {
    width: 95%;
    max-height: 90vh;
  }

  .compare-view { flex-direction: column; }
  .compare-frame { min-height: 300px; }
}

/* Extra button colors */
.btn-regen { border-color: #10b981; color: #6ee7b7; }
.btn-compare { border-color: #6366f1; color: #a5b4fc; }
.btn-revert { border-color: var(--danger); color: #fca5a5; margin-left: auto; }

/* Compare modal — wider */
.modal:has(.compare-view) {
  max-width: 95vw;
  width: 95vw;
  height: 80vh;
  display: flex;
  flex-direction: column;
}

.compare-controls {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.compare-tab.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.compare-view {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  min-height: 0;
}

.compare-frame {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  min-height: 400px;
}

.compare-split .compare-frame {
  flex: 1;
  width: 50%;
}

.compare-loading, .compare-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 2rem;
}

/* Payment */
.btn-payment { border-color: #10b981; color: #6ee7b7; background: rgba(16, 185, 129, 0.1); }
.btn-payment:hover { background: rgba(16, 185, 129, 0.2); }

.payment-link-box {
  display: flex;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.payment-url-input {
  flex: 1;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.75rem;
}

.btn-copy {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  flex-shrink: 0;
}

.payment-info {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.payment-send-options {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.payment-generating {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-dim);
}

.payment-error {
  color: var(--danger);
  font-size: 0.85rem;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 1rem auto;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Payment timeline highlight */
.timeline-payment {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin: 0.15rem 0;
}

.timeline-payment .timeline-dot {
  background: #10b981;
  width: 10px;
  height: 10px;
}

.timeline-payment .timeline-note {
  color: #6ee7b7;
  font-weight: 600;
}

/* Confirmation modal */
.confirm-warning {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}
.confirm-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.btn-danger {
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
}
.btn-danger:hover { background: #dc2626; }

/* Re-contact button */
.btn-recontact {
  border-color: #22c55e;
  color: #86efac;
  background: rgba(34, 197, 94, 0.1);
}
.btn-recontact:hover { background: rgba(34, 197, 94, 0.2); }

/* Paid lead card */
.lead-card.lead-paid {
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.15);
}

/* Go Live */
.btn-golive { border-color: #22c55e; color: #86efac; background: rgba(34, 197, 94, 0.1); }
.btn-golive:hover { background: rgba(34, 197, 94, 0.2); }

.golive-info {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
}

.golive-slug { margin-bottom: 1rem; }

.golive-slug label {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.3rem;
}

.golive-url-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.golive-slug-input {
  flex: 1;
  padding: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  font-family: monospace;
}

.golive-slug-input:focus { outline: none; border-color: var(--accent); }

.golive-suffix {
  padding: 0.5rem 0.6rem;
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: monospace;
}

.golive-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-golive-confirm {
  background: #22c55e;
  color: white;
  border-color: #22c55e;
  font-weight: 600;
}

/* OFFLINE column */
.kanban-column-offline { opacity: 0.85; }
.kanban-column-offline .kanban-header { border-top-color: #64748b !important; }

/* Offline sub-status badge */
.offline-badge {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timer badges on cards */
.card-timer {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  margin-top: 4px;
  display: inline-block;
}
.card-timer.timer-urgent {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  font-weight: 600;
}
.card-timer.timer-ready {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

/* Expired timer list */
.expired-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.expired-list li {
  padding: 0.5rem 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  color: #fca5a5;
}

/* Offline detail display */
.offline-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.offline-badge-large {
  padding: 3px 10px;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.offline-reason { color: #94a3b8; font-size: 0.85rem; }
.offline-date { color: #64748b; font-size: 0.8rem; }

/* Panel timer */
.panel-timer {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}
.panel-timer.timer-urgent { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.panel-timer.timer-ready { background: rgba(34, 197, 94, 0.15); color: #22c55e; }

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
}

.lightbox-overlay.active {
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-meta {
  color: #ccc;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.4;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav.prev {
  left: 1rem;
}

.lightbox-nav.next {
  right: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 0.7;
}

.lightbox-actions {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Tweak station layout */
.tweak-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 60px);
}

.tweak-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  flex-shrink: 0;
}

.tweak-header h2 {
  flex: 1;
  font-size: 1.1rem;
}

.tweak-header-actions {
  display: flex;
  gap: 0.5rem;
}

.cms-split {
  display: flex;
  flex: 1;
  min-height: 0;
}

.cms-split > .cms-split {
  flex-direction: row;
}

.cms-split-panel {
  width: 280px;
  min-width: 280px;
  overflow-y: auto;
  padding: 1rem;
  border-right: 1px solid var(--border);
  background: var(--bg-panel);
  flex-shrink: 0;
}

.cms-split-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
  flex-shrink: 0;
}

.preview-url {
  display: none;
}

#preview-iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

/* build:1773892828 */
