/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Design Tokens ────────────────────────────────────────────────────────── */
:root {
  --bg:          #f8f9fc;
  --surface:     #ffffff;
  --surface-2:   #f1f3f9;
  --border:      #e4e7ef;
  --border-2:    #d1d5e0;

  --text-primary:   #111827;
  --text-secondary: #6b7280;
  --text-muted:     #9ca3af;

  --indigo:      #6366f1;
  --indigo-dark: #4f46e5;
  --indigo-light:#eef2ff;
  --indigo-mid:  #c7d2fe;

  --green:       #10b981;
  --green-light: #d1fae5;
  --green-dark:  #059669;

  --amber:       #f59e0b;
  --amber-light: #fef3c7;
  --amber-dark:  #d97706;

  --red:         #ef4444;
  --red-light:   #fee2e2;
  --red-dark:    #dc2626;

  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:   0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;

  --transition: all .2s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
}

/* ─── Scrollbar ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

/* ─── Typography ───────────────────────────────────────────────────────────── */
h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
h3 { font-size: 1rem;    font-weight: 600; }
p  { color: var(--text-secondary); }

/* ─── Layout ───────────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ─── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
}

.sidebar-logo-icon {
  width: 34px; height: 34px;
  background: var(--indigo);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
}

.sidebar-logo-sub {
  font-size: .68rem;
  color: var(--text-muted);
  font-weight: 400;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 12px 8px 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--indigo-light);
  color: var(--indigo);
  font-weight: 600;
}

.nav-item .icon {
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  opacity: .7;
}

.nav-item.active .icon { opacity: 1; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.user-avatar {
  width: 32px; height: 32px;
  background: var(--indigo-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  color: var(--indigo);
  flex-shrink: 0;
}

.user-name { font-size: .8rem; font-weight: 600; }
.user-role { font-size: .7rem; color: var(--text-muted); }

.btn-logout {
  margin-top: 8px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background: var(--red-light);
  color: var(--red);
  border-color: var(--red);
}

/* ─── Main Content ─────────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-left: 220px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Top Bar ──────────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,249,252,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left { display: flex; align-items: center; gap: 12px; }
.topbar-title { font-size: 1rem; font-weight: 700; }
.topbar-sub { font-size: .8rem; color: var(--text-muted); }

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

/* ─── Page Body ────────────────────────────────────────────────────────────── */
.page {
  display: none;
  padding: 32px;
  flex: 1;
}
.page.active { display: block; }

/* ─── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: inherit;
  line-height: 1;
  text-decoration: none;
}

.btn-primary {
  background: var(--indigo);
  color: white;
}
.btn-primary:hover {
  background: var(--indigo-dark);
  box-shadow: 0 4px 14px rgba(99,102,241,.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border-2);
}

.btn-danger {
  background: var(--red-light);
  color: var(--red);
}
.btn-danger:hover {
  background: var(--red);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: .8rem;
}

.btn-icon {
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* ─── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover { box-shadow: var(--shadow-md); }

/* ─── Status Badges ────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.4;
}

.badge-safe    { background: var(--green-light); color: var(--green-dark); }
.badge-warning { background: var(--amber-light); color: var(--amber-dark); }
.badge-critical { background: var(--red-light);  color: var(--red-dark); }

.badge-shot      { background: var(--surface-2); color: var(--text-secondary); }
.badge-editing   { background: var(--amber-light); color: var(--amber-dark); }
.badge-ready     { background: var(--indigo-light); color: var(--indigo); }
.badge-published { background: var(--green-light); color: var(--green-dark); }

/* ─── Dashboard ────────────────────────────────────────────────────────────── */
.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.summary-card .label {
  font-size: .75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.summary-card .value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text-primary);
  line-height: 1;
}

.summary-card .sub {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.summary-card.accent-indigo { border-top: 3px solid var(--indigo); }
.summary-card.accent-green  { border-top: 3px solid var(--green); }
.summary-card.accent-amber  { border-top: 3px solid var(--amber); }
.summary-card.accent-red    { border-top: 3px solid var(--red); }

/* ─── Brand Cards Grid ─────────────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.brand-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.brand-card-header {
  padding: 18px 20px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand-avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
  margin-right: 12px;
}

.brand-name {
  font-size: .95rem;
  font-weight: 700;
}

.brand-platform {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.brand-card-body {
  padding: 16px 20px;
}

.stock-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stock-number {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
}

.stock-label {
  font-size: .72rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.days-left {
  font-size: .85rem;
  font-weight: 600;
}

.progress-bar-wrap {
  height: 6px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-bar {
  height: 100%;
  border-radius: 99px;
  transition: width .6s cubic-bezier(.4,0,.2,1);
}

.brand-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
}

.next-publish {
  font-size: .78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.upcoming-dots {
  display: flex;
  gap: 4px;
}

.upcoming-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--indigo);
  opacity: .4;
}

.upcoming-dot.filled { opacity: 1; }

/* ─── Timeline Calendar ────────────────────────────────────────────────────── */
.calendar-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.calendar-nav h2 {
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 160px;
  text-align: center;
}

.timeline-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.timeline-header {
  display: grid;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.timeline-row {
  display: grid;
  border-bottom: 1px solid var(--border);
  min-height: 52px;
  align-items: center;
}

.timeline-row:last-child { border-bottom: none; }

.timeline-brand-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  position: sticky;
  left: 0;
  z-index: 10;
}

.timeline-brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.timeline-brand-name {
  font-size: .8rem;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-day-cell {
  min-height: 52px;
  padding: 4px;
  border-right: 1px solid var(--border);
  vertical-align: top;
  position: relative;
  transition: background .15s;
}

.timeline-day-cell:last-child { border-right: none; }
.timeline-day-cell:hover { background: var(--indigo-light); }

.timeline-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  font-size: .68rem;
  line-height: 1.3;
  border-right: 1px solid var(--border);
}

.timeline-day-header:last-child { border-right: none; }

.timeline-day-num {
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-day-name {
  font-size: .62rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.timeline-day-header.today .timeline-day-num {
  background: var(--indigo);
  color: white;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
}

.cal-video-block {
  border-radius: 4px;
  padding: 2px 5px;
  font-size: .65rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity .15s;
  display: block;
  margin-bottom: 2px;
}

.cal-video-block:hover { opacity: .85; }

/* ─── Video List Table ─────────────────────────────────────────────────────── */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.data-table thead {
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover { background: var(--surface-2); }

.table-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 600;
  color: white;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transition: var(--transition);
}

.data-table tbody tr:hover .table-actions { opacity: 1; }

/* ─── Filters ──────────────────────────────────────────────────────────────── */
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: 99px;
  font-size: .78rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.filter-chip:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.filter-chip.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: white;
}

.filter-select {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: .85rem;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* ─── Modal ────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalIn .2s cubic-bezier(.4,0,.2,1);
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 1.1rem; font-weight: 700; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.modal-close:hover { background: var(--red-light); color: var(--red); border-color: var(--red); }

.modal-body {
  padding: 20px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-footer {
  padding: 0 28px 24px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ─── Form Elements ────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  font-size: .875rem;
  font-family: inherit;
  transition: var(--transition);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

.form-textarea { resize: vertical; min-height: 80px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ─── Empty State ──────────────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .emoji { font-size: 2.5rem; margin-bottom: 12px; }
.empty-state h3 { font-size: .95rem; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p  { font-size: .82rem; }

/* ─── Toast ────────────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--text-primary);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: .85rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn .25s cubic-bezier(.4,0,.2,1);
  min-width: 240px;
  max-width: 360px;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: none; }
}

.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }
.toast.warning { background: var(--amber); color: var(--text-primary); }

/* ─── Alert Banner ─────────────────────────────────────────────────────────── */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: .875rem;
  font-weight: 500;
}

.alert-banner.warning {
  background: var(--amber-light);
  color: var(--amber-dark);
  border: 1px solid var(--amber);
}

.alert-banner.critical {
  background: var(--red-light);
  color: var(--red-dark);
  border: 1px solid var(--red);
}

/* ─── Login Page ───────────────────────────────────────────────────────────── */
#login-page {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #f8f9fc 50%, #e0f2fe 100%);
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-logo {
  width: 56px; height: 56px;
  background: var(--indigo);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin: 0 auto 20px;
}

.login-card h1 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.login-card p {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.login-error {
  background: var(--red-light);
  color: var(--red-dark);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .82rem;
  margin-top: 12px;
  display: none;
}

/* ─── Loading Spinner ──────────────────────────────────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}

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

/* ─── Colour-swatch input ──────────────────────────────────────────────────── */
.color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.color-swatch.selected,
.color-swatch:hover { border-color: var(--text-primary); transform: scale(1.15); }

/* ─── Frequency Selector ───────────────────────────────────────────────────── */
.freq-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.freq-btn {
  padding: 7px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  line-height: 1;
}

.freq-btn:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-light);
}

.freq-btn.active {
  border-color: var(--indigo);
  background: var(--indigo);
  color: white;
}

.freq-hint {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Shoot Recommendation Box ─────────────────────────────────────────────── */
.shoot-rec {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 12px;
}

.shoot-rec.urgent {
  background: #fff1f2;
  border-color: #fca5a5;
}

.shoot-rec-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

.shoot-rec-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #92400e;
  margin-bottom: 2px;
}

.shoot-rec.urgent .shoot-rec-label { color: #991b1b; }

.shoot-rec-dates {
  font-size: .88rem;
  font-weight: 700;
  color: #78350f;
}

.shoot-rec.urgent .shoot-rec-dates { color: #7f1d1d; }

.shoot-rec-sub {
  font-size: .72rem;
  color: #a16207;
  margin-top: 2px;
}

.shoot-rec.urgent .shoot-rec-sub { color: #b91c1c; }

/* ─── Week List ────────────────────────────────────────────────────────────── */
.week-list {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.week-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}

.week-item:last-child { border-bottom: none; }
.week-item:hover { background: var(--surface-2); }

.week-item.published {
  opacity: .55;
}

.week-cb {
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 2px solid var(--border-2);
  background: transparent;
  cursor: pointer;
  appearance: none;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
}

.week-cb:checked {
  background: var(--green);
  border-color: var(--green);
}

.week-cb:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.week-brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.week-title {
  flex: 1;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.week-item.published .week-title {
  text-decoration: line-through;
  color: var(--text-muted);
}

.week-date {
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.week-brand-name {
  font-size: .72rem;
  color: var(--text-muted);
  min-width: 100px;
}

/* ─── Calendar (bigger cells) ──────────────────────────────────────────────── */
.cal-day-col-w { --cdw: 80px; }

.timeline-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  font-size: .72rem;
  line-height: 1.4;
  border-right: 1px solid var(--border);
  min-width: 80px;
  height: 56px;
}

.timeline-day-cell {
  min-height: 72px;
  min-width: 80px;
  padding: 6px;
  border-right: 1px solid var(--border);
  vertical-align: top;
  transition: background .15s;
}

.timeline-day-cell.drag-over {
  background: var(--indigo-light);
  outline: 2px dashed var(--indigo);
  outline-offset: -2px;
}

/* ─── Calendar Video Block ─────────────────────────────────────────────────── */
.cal-video-block {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 5px 8px;
  color: white;
  cursor: grab;
  transition: opacity .15s, transform .15s;
  margin-bottom: 4px;
  min-height: 34px;
  user-select: none;
}

.cal-video-block:active { cursor: grabbing; }
.cal-video-block.is-dragging { opacity: .4; transform: scale(.97); }

.cal-video-block.is-published {
  opacity: .55;
}

.cal-cb {
  width: 15px; height: 15px;
  border-radius: 3px;
  border: 1.5px solid rgba(255,255,255,.7);
  background: transparent;
  cursor: pointer;
  appearance: none;
  flex-shrink: 0;
  transition: var(--transition);
  position: relative;
}

.cal-cb:checked {
  background: white;
  border-color: white;
}

.cal-cb:checked::after {
  content: '';
  position: absolute;
  top: 1px; left: 4px;
  width: 4px; height: 7px;
  border: 1.5px solid currentColor;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  color: #16a34a;
}

.cal-video-title {
  font-size: .72rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  cursor: text;
  outline: none;
  min-width: 0;
}

.cal-video-title:focus {
  background: rgba(255,255,255,.2);
  border-radius: 3px;
  padding: 1px 3px;
}

/* published state */
.cal-video-block.is-published .cal-video-title {
  text-decoration: line-through;
  opacity: .7;
}

/* ─── Stepper (shoot count) ────────────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stepper-btn {
  width: 48px; height: 56px;
  background: var(--surface-2);
  border: none;
  font-size: 1.3rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}

.stepper-btn:hover {
  background: var(--indigo-light);
  color: var(--indigo);
}

.stepper-val {
  flex: 1;
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--text-primary);
  border: none;
  background: none;
  font-family: inherit;
  width: 80px;
}

.stepper-val:focus { outline: none; }

/* ─── Info Box ─────────────────────────────────────────────────────────────── */
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--indigo-light);
  border: 1px solid var(--indigo-mid);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .82rem;
  color: var(--indigo-dark);
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { width: 60px; }
  .sidebar-logo-text, .sidebar-logo-sub, .nav-item span, .nav-label,
  .user-name, .user-role, .btn-logout { display: none; }
  .main-content { margin-left: 60px; }
  .topbar { padding: 0 16px; }
  .page { padding: 20px 16px; }
  .brands-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .dashboard-summary { grid-template-columns: 1fr 1fr; }
}

/* ═══ v2 additions ═══════════════════════════════════════════════════════════ */

/* Brand cards: equal height, aligned rows */
.brand-card { display: flex; flex-direction: column; }
.brand-card-header { align-items: center; gap: 10px; min-height: 76px; }
.brand-card-header > div:first-child { min-width: 0; flex: 1; }
.brand-card-header .brand-name,
.brand-card-header .brand-platform { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-card-header .badge { white-space: nowrap; flex-shrink: 0; }
.brand-card-body { flex: 1; display: flex; flex-direction: column; }
.brand-card-body .shoot-rec { margin-top: auto; }
.brand-card-body .shoot-rec-slot { margin-top: auto; padding-top: 12px; }
.brand-card-body .shoot-rec-slot .shoot-rec { margin-top: 0; }
.brand-meta { font-size: .72rem; color: var(--text-muted); margin-top: 4px; min-height: 1.1em; }

/* Upcoming shoots strip */
.shoot-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 32px;
}
.shoot-chip {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--c);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}
.shoot-chip:hover { box-shadow: var(--shadow-md); }
.shoot-chip.urgent { background: #fff1f2; border-color: #fca5a5; border-left-color: var(--red); }
.shoot-date {
  text-align: center; min-width: 46px; flex-shrink: 0;
  background: var(--surface-2); border-radius: var(--radius-sm); padding: 4px 6px;
}
.shoot-chip.urgent .shoot-date { background: var(--red-light); color: var(--red-dark); }
.shoot-date .d { font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.shoot-date .m { font-size: .65rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.shoot-chip .info { min-width: 0; }
.shoot-chip .name { font-weight: 700; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shoot-chip .sub { font-size: .72rem; color: var(--text-muted); }
.shoot-chip.urgent .sub { color: var(--red-dark); font-weight: 600; }

/* Month calendar (whole month on one screen) */
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 12px; font-size: .78rem; color: var(--text-secondary); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  user-select: none;
  position: relative;
}
.mg-head {
  padding: 8px 10px; font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text-muted); background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.mg-day {
  min-height: 112px; padding: 6px; min-width: 0;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.mg-day:nth-child(7n) { border-right: none; }
.mg-day.other { background: #fafbfd; }
.mg-day.other .mg-num { color: var(--border-2); }
.mg-day.weekend:not(.other) { background: #fcfcfe; }
.mg-day.today { background: var(--indigo-light); }
.mg-day.drop-target { background: var(--indigo-light); outline: 2px dashed var(--indigo); outline-offset: -3px; }
.mg-num { font-size: .75rem; font-weight: 700; color: var(--text-secondary); margin-bottom: 4px; }
.mg-day.today .mg-num {
  background: var(--indigo); color: #fff; border-radius: 99px;
  display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center;
}

.mg-day .cal-video-block { min-height: 26px; padding: 3px 6px; margin-bottom: 3px; cursor: grab; gap: 5px; }
.mg-day .cal-video-block .cal-brand { font-size: .62rem; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cal-video-block.selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--indigo); }
.cal-video-block.late { box-shadow: 0 0 0 2px var(--red); }
.cal-video-block.selected.late { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--indigo); }
.cal-video-block.ghosting { opacity: .35; }

.lasso {
  position: fixed; border: 1.5px solid var(--indigo); background: rgba(99,102,241,.12);
  border-radius: 4px; pointer-events: none; z-index: 50;
}
.drag-badge {
  position: fixed; z-index: 60; pointer-events: none;
  background: var(--indigo); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 99px; box-shadow: var(--shadow-md);
}
.cal-hint { font-size: .78rem; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }

.selection-bar {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120px);
  display: flex; align-items: center; gap: 8px; z-index: 40;
  background: var(--text-primary); color: #fff; padding: 8px 10px 8px 16px;
  border-radius: 99px; box-shadow: var(--shadow-lg); font-size: .85rem; font-weight: 600;
  transition: transform .2s;
}
.selection-bar.show { transform: translate(-50%, 0); }
.selection-bar .btn { border-radius: 99px; }

@media (max-width: 768px) {
  .mg-day { min-height: 80px; padding: 3px; }
  .mg-day .cal-video-block .cal-brand { display: none; }
}

/* v3: chip label + drop placeholders */
.mg-day .cal-video-block { justify-content: flex-start; }
.mg-day .cal-video-title { flex: 0 1 auto; }
.mg-day .cal-video-block .cal-brand { flex: 1 1 auto; min-width: 0; max-width: none; font-weight: 500; }
.cal-video-block.drop-ghost {
  opacity: .55; outline: 2px dashed rgba(255,255,255,.9); outline-offset: -3px;
  pointer-events: none;
}

/* v4: compact chips when a day has 3+ videos */
.mg-day.dense .cal-video-block { min-height: 20px; padding: 1px 5px; margin-bottom: 2px; gap: 4px; border-radius: 4px; }
.mg-day.dense .cal-video-title { font-size: .66rem; }
.mg-day.dense .cal-video-block .cal-brand { font-size: .58rem; }
.mg-day.dense .cal-cb { width: 12px; height: 12px; }
.mg-day.dense .cal-cb:checked::after { top: 0; left: 3px; width: 3px; height: 6px; }
.mg-day .cal-video-title { flex-shrink: 0; }

/* v5: multi-brand shoot modal */
.shoot-rows-head, .shoot-row {
  display: grid; grid-template-columns: 1fr 132px 150px; gap: 10px; align-items: center;
}
.shoot-rows-head { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: 0 12px 6px; }
.shoot-rows { display: flex; flex-direction: column; gap: 6px; }
.shoot-row {
  border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 8px 12px;
  transition: var(--transition); opacity: .6;
}
.shoot-row.on { opacity: 1; border-color: var(--indigo-mid); background: #fafaff; }
.sr-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .875rem; cursor: pointer; min-width: 0; }
.sr-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-brand i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.sr-brand input { width: 16px; height: 16px; accent-color: var(--indigo); flex-shrink: 0; }
.sr-count { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.sr-count button { width: 34px; border: none; background: var(--surface-2); font-size: 1rem; cursor: pointer; color: var(--text-secondary); }
.sr-count button:hover { background: var(--indigo-light); color: var(--indigo); }
.sr-count input { width: 100%; min-width: 0; border: none; text-align: center; font-weight: 700; font-size: .95rem; font-family: inherit; -moz-appearance: textfield; }
.sr-count input::-webkit-inner-spin-button { -webkit-appearance: none; }
.shoot-row .sr-start { padding: 7px 10px; font-size: .82rem; }
.sr-note { grid-column: 1 / -1; font-size: .74rem; color: var(--text-secondary); padding-left: 24px; }
.sr-note:empty { display: none; }
.sr-over { color: var(--red-dark); font-weight: 700; }

/* videos table selection */
.row-sel { width: 16px; height: 16px; accent-color: var(--indigo); cursor: pointer; }
.data-table tr.row-selected td { background: var(--indigo-light); }
@media (max-width: 640px) { .shoot-rows-head { display: none; } .shoot-row { grid-template-columns: 1fr 1fr; } .sr-brand { grid-column: 1 / -1; } }

/* v6: segmented toggle, manual mode, side panel, logs */
.seg { display: inline-flex; background: var(--surface-2); border-radius: var(--radius-sm); padding: 3px; gap: 3px; }
.seg button { border: none; background: transparent; padding: 7px 14px; border-radius: 6px; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--indigo); box-shadow: var(--shadow-sm); }
.shoot-rows.manual .shoot-row, .shoot-rows-head.manual { grid-template-columns: 1fr 132px; }
.shoot-rows.manual .sr-start, .shoot-rows-head.manual span:nth-child(3) { display: none; }

.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.cal-layout.has-panel { grid-template-columns: minmax(0, 1fr) 210px; }
.unsched:empty { display: none; }
.unsched {
  position: sticky; top: 80px; max-height: calc(100vh - 110px); overflow-y: auto;
  background: var(--surface); border: 1.5px dashed var(--indigo-mid); border-radius: var(--radius-lg);
  padding: 12px; user-select: none;
}
.unsched-title { font-weight: 700; font-size: .85rem; display: flex; justify-content: space-between; align-items: center; }
.unsched-title span { background: var(--indigo); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: .72rem; }
.unsched-hint { font-size: .7rem; color: var(--text-muted); margin: 4px 0 10px; line-height: 1.4; }
.unsched-group { margin-bottom: 10px; }
.unsched-brand {
  display: flex; align-items: center; gap: 6px; width: 100%; border: none; background: none; padding: 2px 0 6px;
  font: inherit; font-size: .75rem; font-weight: 700; color: var(--text-secondary); cursor: pointer; text-align: left;
}
.unsched-brand:hover { color: var(--indigo); }
.unsched-brand i { width: 9px; height: 9px; border-radius: 3px; }
.unsched-brand span { margin-left: auto; color: var(--text-muted); font-weight: 600; }
.unsched .cal-video-block { min-height: 26px; padding: 3px 8px; margin-bottom: 4px; display: inline-flex; margin-right: 4px; }
@media (max-width: 1000px) { .cal-layout.has-panel { grid-template-columns: 1fr; } .unsched { position: static; max-height: none; } }

/* v7: tidy, evenly aligned option grids */
.freq-options { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.freq-btn { width: 100%; text-align: center; justify-content: center; margin: 0 !important; }
.color-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; justify-items: center; }
.modal-body .form-group { margin-bottom: 18px; }

/* v8: uniform calendar chips everywhere, single-line shoot chips, hidden bar */
.mg-day .cal-video-block { min-height: 22px; padding: 2px 6px; margin-bottom: 3px; gap: 5px; border-radius: 5px; }
.mg-day .cal-video-title { font-size: .7rem; }
.mg-day .cal-video-block .cal-brand { font-size: .6rem; }
.mg-day .cal-cb { width: 12px; height: 12px; }
.mg-day .cal-cb:checked::after { top: 0; left: 3px; width: 3px; height: 6px; }
.mg-day { min-height: 118px; }
.shoot-chip .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selection-bar:not(.show) { visibility: hidden; }
.mg-day.dense .cal-video-block { min-height: 22px; padding: 2px 6px; margin-bottom: 3px; gap: 5px; border-radius: 5px; }
.mg-day.dense .cal-video-title { font-size: .7rem; }
.mg-day.dense .cal-video-block .cal-brand { font-size: .6rem; }

/* v9: API page */
.api-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 20px; align-items: start; }
.api-key-box { margin-top: 16px; background: #ecfdf5; border: 1.5px solid #6ee7b7; border-radius: var(--radius-md); padding: 14px; font-size: .82rem; color: #065f46; }
.api-key-row { display: flex; gap: 8px; align-items: center; }
.api-key-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: #fff; border: 1px solid #a7f3d0; border-radius: 6px; padding: 8px 10px; font-size: .78rem; color: var(--text-primary); user-select: all; }
.api-docs { font-size: .82rem; color: var(--text-secondary); line-height: 1.6; }
.api-docs p { margin-bottom: 8px; }
.api-docs pre { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .75rem; overflow-x: auto; margin-bottom: 10px; color: var(--text-primary); }
.api-docs code { background: var(--surface-2); border-radius: 4px; padding: 1px 5px; font-size: .75rem; }
@media (max-width: 1000px) { .api-grid { grid-template-columns: 1fr; } }
.card .form-group { margin-bottom: 16px; }

/* v10: Digimark branding + flat icons */
.sidebar-logo { flex-direction: column; align-items: flex-start; gap: 6px; }
.sidebar-brand-logo { width: 118px; height: auto; display: block; }
.sidebar-logo .sidebar-logo-text { font-size: .8rem; font-weight: 600; color: var(--text-secondary); letter-spacing: .02em; }
.login-brand-logo { width: 170px; height: auto; display: block; margin: 0 auto 18px; }
.nav-item .icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; color: var(--text-muted); font-size: 0; }
.nav-item.active .icon, .nav-item:hover .icon { color: inherit; }
.btn-logout { display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-logout svg { width: 16px; height: 16px; }
@media (max-width: 768px) { .sidebar-brand-logo { width: 40px; object-fit: cover; object-position: left; height: 22px; } }
.login-card .form-group { margin-bottom: 14px; }

/* v11: flat icons everywhere, bigger brand, centered user block */
.ic { flex-shrink: 0; display: inline-block; vertical-align: -3px; }
.filter-chip, .seg button, .modal-title, .next-publish, .brand-platform { display: inline-flex; align-items: center; gap: 6px; }
.modal-title { display: flex; }
.empty-state .emoji { color: var(--text-muted); display: flex; justify-content: center; }
.shoot-rec-icon { color: #b45309; display: flex; }
.shoot-rec.urgent .shoot-rec-icon { color: var(--red-dark); }
.toast { gap: 10px; align-items: center; }
.cal-hint .ic, .info-box .ic { vertical-align: -3px; }
.info-box { align-items: center; }
#manage-brands-grid .card > div:nth-child(2) > div { display: flex; align-items: center; gap: 6px; }
.table-actions .btn-icon { width: 32px; height: 32px; padding: 0; }

.sidebar-logo { padding: 26px 22px 20px; gap: 10px; }
.sidebar-brand-logo { width: 150px; }
.sidebar-logo .sidebar-logo-text { font-size: .95rem; font-weight: 700; color: var(--text-primary); letter-spacing: -.01em; }

.user-info { flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding: 6px 8px 14px; }
.user-avatar { width: 44px; height: 44px; font-size: .95rem; }
.user-name { font-size: .95rem; font-weight: 700; }
.user-role { font-size: .78rem; }
.sidebar-footer .btn-logout { font-size: .85rem; padding: 10px; }

/* v12: centered, full-width brand block */
.sidebar-logo { align-items: center; text-align: center; padding: 28px 18px 22px; gap: 12px; }
.sidebar-brand-logo { width: 100%; max-width: 176px; margin: 0 auto; }
.sidebar-logo .sidebar-logo-text { font-size: 1.05rem; text-align: center; width: 100%; }
