/* =============================================
   embraceband – Design System 2.0
   "Editorial Light" — clean, warm, modern
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&display=swap');

:root {
  /* Brand */
  --primary:       #4F46E5;
  --primary-dark:  #4338CA;
  --primary-light: #EEF2FF;
  --primary-ring:  rgba(79,70,229,.2);

  /* Semantic */
  --success:   #10B981;
  --danger:    #EF4444;
  --warning:   #F59E0B;
  --secondary: #06B6D4;

  /* Surfaces */
  --bg:        #F7F7FB;
  --surface:   #FFFFFF;
  --surface-2: #FAFAFD;

  /* Text */
  --text:       #0F172A;
  --text-muted: #64748B;
  --text-xmuted:#94A3B8;

  /* Borders */
  --border:        #E2E8F0;
  --border-subtle: #F1F5F9;

  /* Radius scale */
  --radius:    12px;
  --radius-sm:  8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows — warm-neutral tint */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.03);
  --shadow:    0 4px 16px rgba(15,23,42,.06), 0 1px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 16px 40px rgba(15,23,42,.09), 0 2px 8px rgba(15,23,42,.05);

  /* Focus */
  --focus-ring: 0 0 0 3px var(--primary-ring);

  /* Motion */
  --ease: cubic-bezier(.4,0,.2,1);
  --t:   150ms var(--ease);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11" 1, "ss01" 1;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 40px;
  padding: .55rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-family: inherit; font-size: .875rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  letter-spacing: 0;
  transition: background var(--t), box-shadow var(--t), transform var(--t), border-color var(--t), color var(--t);
}
.btn svg { flex-shrink: 0; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(200,241,53,.45); }
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary {
  background: #111318; color: #fff; border-color: #111318;
  box-shadow: 0 1px 2px rgba(15,23,42,.16);
}
.btn-primary:hover {
  background: #24272E; border-color: #24272E;
  box-shadow: 0 4px 12px rgba(15,23,42,.18);
}
.btn-secondary {
  background: var(--accent, #C8F135); color: #111318;
  border-color: var(--accent, #C8F135); box-shadow: none;
}
.btn-secondary:hover { background: #B8DF2F; border-color: #B8DF2F; filter: none; }
.btn-outline {
  background: var(--surface); border-color: var(--border);
  color: var(--text); box-shadow: none;
}
.btn-outline:hover { border-color: #111318; color: #111318; background: #F8FAFC; }
.btn-danger { background: #DC2626; border-color: #DC2626; color: #fff; }
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; filter: none; }
.btn-ghost {
  min-height: 36px;
  background: transparent; color: var(--text-muted);
  border-color: transparent; box-shadow: none;
}
.btn-ghost:hover { background: var(--border-subtle); color: var(--text); }
.btn-sm { min-height: 34px; padding: .35rem .7rem; font-size: .8rem; border-radius: 7px; }
.w-full { width: 100%; }

/* --- Alerts --- */
.alert { padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .875rem; border: 1px solid transparent; }
.alert-error   { background: #FFF5F5; color: #C62828; border-color: #FED7D7; }
.alert-success { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.alert-warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }

/* --- Auth page --- */
.auth-page .container { max-width: 420px; }
.auth-card {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-top: 3rem;
  border: 1px solid var(--border-subtle);
}
.auth-card h1 { margin-bottom: 1.5rem; font-size: 1.5rem; letter-spacing: -.03em; font-weight: 800; }
.registration-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


/* --- Company accounts --- */
.account-grid {
  display: grid;
  gap: .75rem;
}
.account-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.account-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-card-main { min-width: 0; }
.account-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
}
.account-card-main p {
  overflow: hidden;
  margin: .1rem 0 0;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-categories { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.account-card-actions { display: flex; align-items: center; gap: .35rem; }
.account-card-actions form { margin: 0; }
.account-form-card { max-width: 720px; }

@media (max-width: 640px) {
  .account-card { grid-template-columns: 48px minmax(0, 1fr); }
  .account-card-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

.voice-admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.voice-admin-layout .form-card { max-width: none; }
.voice-admin-layout .form-card h2 { margin-bottom: 1rem; font-size: 1rem; }
.voice-admin-list { display: flex; flex-direction: column; gap: .65rem; }
.voice-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: .75rem 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.voice-admin-card > div:first-child { display: flex; min-width: 0; flex-direction: column; }
.voice-admin-card span,
.voice-admin-card p { color: var(--text-muted); font-size: .72rem; }
.voice-admin-card audio { width: 100%; height: 36px; }
.voice-admin-actions {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: flex-end;
  gap: .4rem;
}
.voice-admin-actions form { margin: 0; }
.admin-credit-settings { max-width: 720px; }
.admin-credit-settings label small {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.admin-credit-actions {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
}
@media (max-width: 760px) {
  .voice-admin-layout,
  .voice-admin-card { grid-template-columns: 1fr; }
}

/* --- Workflow steps --- */
.workflow-steps { display: flex; flex-direction: column; gap: .5rem; margin: 1.5rem 0; }
.workflow-step {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface);
  border-radius: var(--radius); border: 1.5px solid var(--border);
  padding: .9rem 1.1rem;
  text-decoration: none; color: inherit;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.workflow-step:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-1px); }
.workflow-step.done   { border-color: #86EFAC; background: #F0FDF4; }
.workflow-step.active { border-color: var(--primary); background: var(--primary-light); }
.ws-icon {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; background: var(--bg); border: 2px solid var(--border);
}
.workflow-step.done .ws-icon   { background: #DCFCE7; border-color: #86EFAC; }
.workflow-step.active .ws-icon { background: var(--primary-light); border-color: var(--primary); }
.ws-body  { flex: 1; }
.ws-title { font-weight: 600; font-size: .9rem; letter-spacing: -.01em; }
.ws-desc  { font-size: .78rem; color: var(--text-muted); margin-top: .1rem; }
.ws-badge {
  font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px;
  background: var(--bg); color: var(--text-muted); border: 1px solid var(--border);
  letter-spacing: .01em;
}
.workflow-step.done .ws-badge   { background: #DCFCE7; color: #16A34A; border-color: #86EFAC; }
.workflow-step.active .ws-badge { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

/* --- Empty CTA --- */
.empty-cta {
  text-align: center; padding: 3.5rem 2rem;
  background: var(--surface); border-radius: var(--radius-lg);
  border: 2px dashed var(--border);
}
.empty-cta-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.empty-cta h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; letter-spacing: -.01em; }
.empty-cta p { color: var(--text-muted); font-size: .875rem; margin-bottom: 1.5rem; }

/* --- Stats grid --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  position: relative; overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--primary); letter-spacing: -.04em; line-height: 1.1; }
.stat-label { font-size: .75rem; color: var(--text-muted); margin-top: .35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat-sub   { font-size: .72rem; color: var(--text-xmuted); margin-top: .1rem; }

/* --- Quick actions --- */
.quick-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }

/* --- Cards & list --- */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: box-shadow var(--t), border-color var(--t), transform var(--t);
}
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { box-shadow: var(--shadow); border-color: #C7D2FE; transform: translateY(-1px); }
.card-list  { display: flex; flex-direction: column; gap: .6rem; }
.card-body  { flex: 1; }
.card-actions { display: flex; gap: .5rem; }
.card-arrow { color: var(--text-xmuted); font-size: 1.1rem; }

/* --- Page header --- */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem;
}
.page-header h1 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }

/* --- Table --- */
.table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  font-size: .875rem;
}
.table th, .table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.table th {
  background: var(--bg);
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted);
}
.table tr:last-child td { border-bottom: none; }
.table .actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.row-disabled td { opacity: .45; }

/* --- Badges / Pills --- */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700;
  background: var(--primary); color: #fff;
  margin-left: .4rem; letter-spacing: .01em;
}
.badge-warning { background: var(--warning); }
.pill { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.pill-green { background: #DCFCE7; color: #15803D; }
.pill-gray  { background: var(--border-subtle); color: var(--text-muted); border: 1px solid var(--border); }
.pill-red   { background: #FEE2E2; color: var(--danger); }
.pill-blue  { background: var(--primary-light); color: var(--primary); }

/* --- panel-pill aliases (assign panel) --- */
.panel-pill { display: inline-flex; align-items: center; padding: .2rem .65rem; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .03em; }


/* --- Suggestion box --- */
.suggestion-box {
  background: var(--surface); border-left: 3px solid var(--secondary);
  padding: 1.5rem; border-radius: var(--radius); margin-top: 1.5rem; box-shadow: var(--shadow);
}
.suggestion-box h2, .suggestion-box h3 { margin-bottom: .5rem; }

/* --- KI page --- */
.credits-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .3rem 1rem; font-size: .875rem; margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm); font-weight: 500;
}
.step-label  { font-weight: 700; font-size: .9375rem; margin-bottom: 1rem; color: var(--primary); }
.cost-hint   { font-weight: 400; color: var(--text-muted); font-size: .82rem; }


/* --- Slot-usage bar --- */
.slot-bar-wrap  { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.slot-bar-track { flex: 1; height: 5px; background: var(--border); border-radius: 999px; overflow: hidden; max-width: 300px; }
.slot-bar-fill  { height: 100%; border-radius: 999px; background: var(--primary); transition: width .4s ease; }
.slot-bar-warn  { background: var(--warning); }
.slot-bar-full  { background: var(--danger); }
.slot-bar-label { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }

/* --- Section eyebrow heading --- */
.section-eyebrow {
  font-size: .7rem; font-weight: 700; color: var(--text-xmuted);
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: .5rem;
}

/* --- Employee role label --- */
.emp-role { font-size: .78rem; color: var(--text-muted); font-weight: 400; margin-left: .25rem; }

/* --- Admin cards --- */
.admin-list { display: flex; flex-direction: column; gap: .65rem; }
.admin-card {
  background: var(--surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: box-shadow var(--t), border-color var(--t);
}
.admin-card:hover { box-shadow: var(--shadow); border-color: var(--border); }
.admin-card-inactive { opacity: .6; }
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle); flex-wrap: wrap;
}
.admin-card-info     { display: flex; flex-direction: column; gap: .1rem; }
.admin-company-name  { font-weight: 700; font-size: .9375rem; letter-spacing: -.01em; }
.admin-card-badges   { display: flex; gap: .4rem; flex-wrap: wrap; }
.admin-card-stats {
  display: flex; gap: 2rem; padding: .65rem 1.25rem;
  background: var(--bg); border-bottom: 1px solid var(--border-subtle);
}
.admin-stat     { display: flex; flex-direction: column; }
.admin-stat-val { font-size: 1rem; font-weight: 700; color: var(--primary); letter-spacing: -.01em; }
.admin-stat-lbl { font-size: .68rem; color: var(--text-xmuted); text-transform: uppercase; letter-spacing: .05em; margin-top: .1rem; }
.admin-card-actions { display: flex; align-items: center; gap: .65rem; padding: .75rem 1.25rem; flex-wrap: wrap; }
.admin-action-form  { display: flex; align-items: center; gap: .35rem; }
.admin-select {
  padding: .3rem .6rem; border: 1.5px solid var(--border); border-radius: 7px;
  font-size: .8125rem; background: var(--surface); color: var(--text);
  transition: border-color var(--t);
}
.admin-select:focus   { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }
.admin-num-input {
  width: 72px; padding: .3rem .6rem;
  border: 1.5px solid var(--border); border-radius: 7px;
  font-size: .8125rem; background: var(--surface); color: var(--text);
  transition: border-color var(--t);
}
.admin-num-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus-ring); }

/* --- Utility --- */
.text-muted   { color: var(--text-muted); }
.text-xmuted  { color: var(--text-xmuted); }
.text-center  { text-align: center; }
.small        { font-size: .8125rem; }
.mt-1  { margin-top: .75rem; }
.mt-2  { margin-top: 1.5rem; }
.mb-1  { margin-bottom: .75rem; }

/* --- Footer --- */
.footer { text-align: center; padding: 2rem; color: var(--text-xmuted); font-size: .8rem; }

/* =============================================
   Settings page
   ============================================= */
.settings-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  max-width: 720px;
}
.settings-card-head {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg);
}
.settings-card-title { font-size: .9375rem; font-weight: 700; margin: 0 0 .2rem; letter-spacing: -.01em; }
.settings-card-sub   { font-size: .8rem; color: var(--text-muted); margin: 0; }
.settings-card-body  { padding: 1.25rem 1.5rem; }
.settings-category-layout {
  display: grid;
  gap: 1rem;
}
.settings-category-form {
  display: flex;
  gap: .55rem;
  align-items: center;
  flex-wrap: wrap;
}
.settings-category-form input[type="text"] {
  min-width: min(100%, 240px);
  flex: 1;
}
.settings-category-list {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.settings-category-row {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .28rem .35rem .28rem .28rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-2);
}

/* --- Logo upload --- */
.logo-preview-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.logo-preview-img {
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
  border-radius: 4px;
}
.logo-delete-btn { color: var(--danger); }
.logo-delete-btn:hover { background: #FEE2E2; color: var(--danger); }

.logo-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1.5rem 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--t), background var(--t);
  /* override global label styles */
  font-size: 1rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  margin-bottom: 0;
}
.logo-upload-label:hover { border-color: var(--primary); background: var(--primary-light); }
.logo-upload-icon { font-size: 1.75rem; line-height: 1; }
.logo-upload-text { font-size: .9rem; font-weight: 600; color: var(--text); }
.logo-upload-input { display: none; }

/* --- Color palette --- */
.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.color-swatch-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  cursor: pointer;
  /* override global label */
  font-size: .72rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  margin-bottom: 0;
}
.color-swatch-label input[type=radio] { display: none; }
.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid transparent;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  position: relative;
}
.color-swatch-default {
  background: linear-gradient(135deg, #0BE9CE 0%, #B27BFF 52%, #FF3399 100%);
}
.color-swatch-check {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity .15s;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.color-swatch-label input[type=radio]:checked + .color-swatch {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text);
  transform: scale(1.1);
}
.color-swatch-label input[type=radio]:checked + .color-swatch .color-swatch-check { opacity: 1; }
.color-swatch-label:hover .color-swatch { transform: scale(1.08); }
.color-swatch-name { white-space: nowrap; }

/* --- Player mini-preview --- */
.player-preview {
  --pp-accent: #0D0E10;
  --pp-accent-light: rgba(13,14,16,.1);
  width: min(100%, 360px);
  padding: .75rem;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(11,233,206,.16), transparent 12rem),
    radial-gradient(circle at 90% 12%, rgba(255,51,153,.1), transparent 10rem),
    #E6E6EE;
  box-shadow: 0 18px 54px rgba(13,14,16,.1);
  overflow: hidden;
  font-size: .875rem;
}
.pp-header {
  padding: .95rem .8rem 1rem;
  text-align: center;
}
.pp-logo {
  max-width: 160px;
  margin: 0 auto .65rem;
  color: rgba(13,14,16,.62);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pp-logo-img { max-height: 30px; max-width: 140px; object-fit: contain; display: block; margin: 0 auto; }
.pp-greeting {
  color: #0D0E10;
  font-size: 1.2rem;
  font-weight: 520;
  letter-spacing: -.04em;
}
.pp-greeting strong { color: inherit; }
.pp-sub {
  margin-top: .35rem;
  color: rgba(13,14,16,.56);
  font-size: .76rem;
  font-weight: 520;
}
.pp-track {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 20px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 12px 34px rgba(13,14,16,.08);
}
.pp-track-summary {
  display: flex;
  align-items: center;
  gap: .62rem;
  min-height: 58px;
  padding: .78rem .85rem;
}
.pp-track-number {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 50%;
  background: var(--pp-accent);
  color: #fff;
  box-shadow: 0 8px 20px var(--pp-accent-light);
  font-weight: 800;
  font-size: .74rem;
}
.pp-track-title {
  flex: 1;
  color: #0D0E10;
  font-weight: 680;
  font-size: .84rem;
}
.pp-chevron {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(13,14,16,.08);
  border-radius: 50%;
  background: rgba(255,255,255,.58);
  color: rgba(13,14,16,.64);
}
.pp-chevron svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pp-controls {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .75rem .85rem .9rem;
  border-top: 1px solid rgba(13,14,16,.07);
}
.pp-progress-wrap {
  flex: 1;
  height: 5px;
  background: rgba(13,14,16,.12);
  border-radius: 999px;
  overflow: hidden;
}
.pp-progress-bar {
  height: 100%;
  width: 46%;
  background: var(--pp-accent);
  border-radius: 999px;
  transition: background .3s;
}
.pp-play {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pp-accent);
  color: #fff;
}
.pp-play svg {
  width: 15px;
  height: 15px;
  margin-left: 2px;
  fill: currentColor;
}
.pp-time {
  min-width: 34px;
  color: rgba(13,14,16,.56);
  font-size: .7rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* --- Prompt-Vorlagen Chips --- */
.template-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.chip {
  display: inline-flex; align-items: center;
  padding: .3rem .85rem;
  background: var(--surface-2, #F1F5F9);
  border: 1px solid var(--border, #CBD5E1);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  color: var(--text, #1E293B);
}
.chip:hover { background: var(--primary, #4F46E5); color: #fff; border-color: var(--primary, #4F46E5); }

/* --- Template manager layout --- */
.tpl-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 760px) {
  .tpl-layout { grid-template-columns: 1fr; }
}

/* List column */
.tpl-list-col {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.tpl-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  cursor: pointer;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  user-select: none;
}
.tpl-row:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.tpl-row-active {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow);
}
.tpl-row-inactive { opacity: .55; }
.tpl-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.tpl-row-title { font-weight: 600; font-size: .9rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-row-preview { font-size: .75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-row-meta { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.tpl-row-chevron { font-size: 1.1rem; color: var(--text-xmuted); line-height: 1; }

/* Form column */
.tpl-form-col { position: sticky; top: 72px; }
.tpl-form-card {
  background: var(--surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.75rem 1.5rem;
  min-height: 320px;
}
.tpl-form-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 0; }
.tpl-form-heading { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 1.25rem; margin-top: .25rem; }
.tpl-placeholder-hints { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: -.25rem; }
.tpl-hint-label { font-size: .72rem; font-weight: 600; color: var(--text-xmuted); text-transform: uppercase; letter-spacing: .05em; }
.chip-xs { padding: .2rem .65rem; font-size: .75rem; }
.tpl-toggle-label {
  flex-direction: row !important;
  align-items: center !important;
  gap: .5rem !important;
  font-size: .8125rem !important;
  font-weight: 600 !important;
  color: var(--text-muted) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

/* =============================================
   Dashboard Figma Redesign
   ============================================= */

/* ── Navbar: three-column layout (brand | center nav | user) ── */
@media (min-width: 961px) {
  .navbar { gap: 0; justify-content: flex-start; }
  .nav-links { flex: 1; justify-content: space-between; padding: 0 .5rem; }
  .nav-items {
    display: flex; align-items: center; gap: .25rem;
    flex: 1; justify-content: center;
  }
  .nav-items a:not(.btn) {
    color: var(--text-muted); text-decoration: none;
    font-size: .875rem; font-weight: 500;
    padding: .35rem .7rem; border-radius: var(--radius-sm);
    transition: color var(--t), background var(--t);
    position: relative;
  }
  .nav-items a:not(.btn):hover { color: var(--text); background: var(--border-subtle); }
  /* Active: Figma green underline, no background */
  .nav-items a:not(.btn).nav-active,
  .nav-links a:not(.btn).nav-active {
    color: var(--text); background: transparent; font-weight: 600;
  }
  .nav-items a:not(.btn).nav-active::after,
  .nav-links a:not(.btn).nav-active::after {
    content: ''; position: absolute;
    bottom: -3px; left: .5rem; right: .5rem;
    height: 2.5px; background: var(--accent); border-radius: 2px;
  }
}

.user-menu,
.notification-menu { position: relative; flex-shrink: 0; }
.user-menu > summary { list-style: none; }
.user-menu > summary::-webkit-details-marker { display: none; }
.notification-menu > summary { list-style: none; }
.notification-menu > summary::-webkit-details-marker { display: none; }
.notification-trigger {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--t), background var(--t);
}
.notification-trigger:hover,
.notification-menu[open] .notification-trigger {
  border-color: #111318;
  background: #F8FAFC;
}
.notification-dot {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--accent, #C8F135);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  line-height: 1;
}
.notification-popover {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  z-index: 220;
  width: 320px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: .8rem;
  font-weight: 700;
}
.notification-read-all {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
}
.notification-read-all:hover { text-decoration: underline; }
.notification-list {
  max-height: 360px;
  overflow-y: auto;
}
.notification-item {
  display: grid;
  width: 100%;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: .75rem;
  padding: .85rem 1rem;
  border: 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: var(--surface-2); }
.notification-item-unread { background: #F8FAFC; }
.notification-kind {
  width: 8px;
  height: 8px;
  margin-top: .35rem;
  border-radius: 50%;
  background: var(--primary);
}
.notification-kind-success { background: var(--success); }
.notification-kind-warning { background: var(--warning); }
.notification-kind-error { background: var(--danger); }
.notification-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .15rem;
}
.notification-content strong {
  overflow: hidden;
  font-size: .78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notification-content > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .72rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.notification-content time {
  margin-top: .15rem;
  color: var(--text-xmuted);
  font-size: .65rem;
}
.notification-empty {
  padding: 1.25rem 1rem;
  color: var(--text-muted);
  font-size: .8rem;
  text-align: center;
}
.user-menu-trigger {
  min-width: 132px;
  min-height: 44px;
  padding: 3px 5px;
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.user-menu-avatar {
  grid-area: 1 / 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}
.user-menu-identity {
  display: flex;
  min-width: 0;
  max-width: 100px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1px;
  overflow: hidden;
}
.user-menu-picture {
  display: grid;
  grid-template: 28px / 28px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  flex-shrink: 0;
  place-items: center;
}
.user-menu-picture .user-menu-icon {
  grid-area: 1 / 1;
  align-self: center;
  justify-self: center;
}
.user-menu-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}
.user-menu-role {
  display: block;
  color: var(--primary);
  font-size: .625rem;
  font-weight: 600;
  line-height: 1.2;
}
.user-menu-chevron {
  margin-left: auto;
  flex-shrink: 0;
  transition: transform var(--t);
}
.user-menu[open] .user-menu-chevron { transform: rotate(180deg); }
.user-menu-trigger:hover,
.user-menu[open] .user-menu-trigger,
.user-menu-active .user-menu-trigger {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.user-menu-popover {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 220;
  min-width: 170px;
  padding: .35rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.user-menu-popover a {
  display: flex !important; align-items: center; gap: .55rem;
  width: 100%; padding: .55rem .65rem !important;
  border-radius: 6px !important;
  color: var(--text) !important;
  text-decoration: none;
  font-size: .85rem !important; font-weight: 600 !important;
}
.user-menu-popover a:hover { background: var(--border-subtle) !important; }

/* =============================================
   Audio Hub
   ============================================= */


:root {
  --accent:        #C8F135;
  --surface-dark:  #0F0F1A;
  --radius-2xl:    24px;
}

/* --- Brand star --- */
.brand { display: flex; align-items: center; gap: .45rem; }
.brand-star { flex-shrink: 0; }

/* --- Wide container override --- */
.container-wide { max-width: 1200px; }

.audio-hub-card,
.people-bands-card,
.places-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

@media (max-width: 600px) {
  .audio-hub-card,
  .people-bands-card,
  .places-card { padding: 1rem; }
}

/* --- Places + Bands --- */
.places-sub {
  margin-top: .2rem;
  color: var(--text-muted);
  font-size: .875rem;
}
.places-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.places-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  table-layout: fixed;
}
.places-table th {
  padding: .55rem .8rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: .68rem; font-weight: 700;
  text-align: left; text-transform: uppercase;
  letter-spacing: .07em;
}
.places-table th:first-child { width: 24%; }
.places-table th:last-child { width: 54px; text-align: center; }
.places-table td {
  padding: .8rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: .82rem;
  vertical-align: top;
}
.places-table tr:last-child td { border-bottom: none; }
.places-table tbody tr:hover td { background: var(--surface-2); }
.places-title {
  display: block;
  color: var(--text);
  font-size: .875rem; font-weight: 700;
  text-decoration: none;
}
.places-title:hover { color: var(--primary); }
.places-description {
  display: -webkit-box;
  margin-top: .2rem;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .72rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.places-actions { text-align: center; }
.pb-filter-btn,
.pb-add-btn,
.pb-circle-btn,
.dnd-action-btn {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: none;
}
.pb-filter-btn:hover,
.pb-filter-btn.active,
.pb-add-btn:hover,
.pb-circle-btn:hover,
.dnd-action-btn:hover {
  border-color: #111318;
  background: #F8FAFC;
  color: #111318;
}
.pb-filter-btn.active {
  background: #111318;
  color: #fff;
}
.chip:hover,
.add-btn:hover {
  background: var(--accent, #C8F135);
  border-color: var(--accent, #C8F135);
  color: #111318;
}
.user-menu-trigger:hover,
.user-menu[open] .user-menu-trigger,
.user-menu-active .user-menu-trigger {
  border-color: #111318;
  background: #F8FAFC;
  color: #111318;
}


/* =============================================
   AI Studio workbench
   ============================================= */
.studio-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 2.15rem 1.85rem 3rem;
  flex: 1;
}
.studio-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 1rem;
}
.studio-heading h1 { margin: 0; }
.studio-eyebrow,
.studio-section-label {
  display: block;
  color: var(--text-muted);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .38rem;
  margin: 0;
  padding: 0;
  border-bottom: 0;
}
.studio-tabs a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: .38rem;
  padding: .34rem .68rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: .74rem;
  font-weight: 700;
  text-decoration: none;
}
.studio-tabs a.active {
  border-color: var(--accent, #C8F135);
  background: rgba(200,241,53,.13);
  color: var(--text);
}
.studio-tab-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--border-subtle);
  font-size: .54rem;
}
.studio-tabs a.active .studio-tab-icon { background: var(--accent, #C8F135); }
.studio-context-row { max-width: 320px; margin-bottom: 1rem; }
.studio-context-row label { margin: 0; }
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 390px);
  gap: 1rem;
  align-items: start;
}
.studio-workbench,
.studio-editor,
.studio-custom-module {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.studio-workbench { min-height: 620px; padding: 1.25rem; }
.studio-templates { min-height: 92px; }
.studio-template-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .6rem;
}
.studio-template {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: .75rem;
  padding: .45rem .7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
}
.studio-template:hover { border-color: #111318; }
.studio-template span { font-size: 1rem; }
.studio-divider { height: 1px; margin: 1rem 0; background: var(--border); }
.studio-playlist-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .8rem;
}
.studio-playlist-head select {
  min-width: 230px;
  margin-top: .35rem;
  padding: .45rem .75rem;
}
.studio-new-playlist-button {
  width: 30px;
  height: 30px;
  margin-left: .25rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.studio-new-playlist-button:hover { border-color: #111318; }
.studio-module-list { display: flex; flex-direction: column; gap: .45rem; }
.studio-module {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 22px 26px minmax(0, 1fr) 30px;
  align-items: center;
  gap: .45rem;
  padding: .45rem .65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.studio-module:hover { background: var(--surface-2); }
.studio-module.active {
  border-color: var(--accent, #C8F135);
  box-shadow: 0 0 0 1px var(--accent, #C8F135);
}
.studio-drag { color: var(--text-xmuted); cursor: grab; }
.studio-module-number { font-size: .72rem; font-weight: 800; }
.studio-module-title {
  overflow: hidden;
  font-size: .78rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-module-status {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--text-xmuted);
  font-weight: 800;
}
.studio-module-status.generated { color: var(--success); background: #ECFDF5; }
.studio-add-row {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
}
.studio-add-row[hidden] { display: none; }
.studio-add-row input { flex: 1; }
.studio-save-note { margin: .85rem 0 0; color: var(--text-muted); font-size: .7rem; }
.studio-empty-playlist {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}
.studio-empty-playlist p { color: var(--text-muted); font-size: .82rem; }
.studio-empty-playlist > div { display: flex; gap: .5rem; margin-top: .8rem; }
.studio-editor {
  position: sticky;
  top: 84px;
  min-height: 620px;
  padding: 1rem;
}
.studio-editor-empty {
  display: flex;
  min-height: 540px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--text-muted);
  text-align: center;
}
.studio-editor-empty[hidden],
#studio-editor-content[hidden] {
  display: none !important;
}
.studio-editor-empty span { max-width: 250px; font-size: .8rem; }
.studio-editor-head { display: flex; flex-direction: column; margin-bottom: .8rem; }
.studio-editor-head span { color: var(--text-muted); font-size: .68rem; }
.studio-editor-head strong { font-size: .95rem; }
.studio-field { margin-bottom: .75rem; }
.studio-field textarea { min-height: 220px; resize: vertical; line-height: 1.65; }
.studio-char-count {
  align-self: flex-end;
  color: var(--text-xmuted);
  font-size: .65rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.studio-editor-actions { display: flex; justify-content: space-between; gap: .5rem; }
.studio-cost {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: .1rem .4rem;
  border-radius: 999px;
  background: var(--border-subtle);
  color: var(--text-muted);
  font-size: .6rem;
  font-weight: 700;
  white-space: nowrap;
}
.studio-cost-dark {
  background: rgba(17,19,24,.12);
  color: #111318;
}
.studio-assist,
.studio-voice-settings {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.studio-assist-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
}
.studio-assist-heading p {
  max-width: 250px;
  margin: .18rem 0 0;
  color: var(--text-muted);
  font-size: .68rem;
  line-height: 1.4;
}
.studio-assist-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .55rem; }
.studio-assist-buttons button {
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-muted);
  font: inherit;
  font-size: .65rem;
  font-weight: 700;
  cursor: pointer;
}
.studio-assist-buttons button:hover { border-color: #111318; color: var(--text); }
.studio-custom-instruction { display: flex; gap: .35rem; margin-top: .5rem; }
.studio-custom-instruction input { min-width: 0; flex: 1; font-size: .75rem; }
.studio-custom-instruction button {
  width: 38px;
  border: 0;
  border-radius: var(--radius-sm);
  background: #111318;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}
.studio-voice-settings label { margin: .55rem 0; }
.studio-preview-button,
.studio-generate-audio { width: 100%; margin-top: .45rem; }
.studio-message { margin-top: .75rem; margin-bottom: 0; }
.studio-custom-module {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
}
.studio-custom-title { display: flex; align-items: center; gap: .65rem; margin-bottom: .75rem; }
.studio-custom-title > div { display: flex; flex-direction: column; }
.studio-custom-title span { color: var(--text-muted); font-size: .72rem; }
.studio-custom-title .brand-star-small { color: var(--accent, #C8F135); font-size: 1.25rem; }
.studio-custom-module textarea { width: 100%; margin-bottom: .55rem; resize: vertical; }
.studio-custom-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.studio-custom-actions select { min-width: 180px; }

@media (max-width: 980px) {
  .studio-layout { grid-template-columns: 1fr; }
  .studio-editor { position: static; min-height: 0; }
  .studio-editor-empty { min-height: 180px; }
}
@media (max-width: 640px) {
  .studio-shell { padding: 1rem .75rem 2rem; }
  .studio-heading { align-items: flex-start; flex-direction: column; }
  .studio-tabs { display: grid; grid-template-columns: repeat(3, 1fr); }
  .studio-tabs a { justify-content: center; padding: .4rem; }
  .studio-playlist-head { align-items: stretch; flex-direction: column; }
  .studio-playlist-head select { width: 100%; min-width: 0; }
  .studio-assist-buttons { grid-template-columns: 1fr; }
  .studio-custom-actions { align-items: stretch; flex-direction: column; }
  .studio-custom-actions select { width: 100%; }
}

/* --- Dashboard greeting --- */
.dashboard-greeting { margin-bottom: 1.5rem; }
.dashboard-greeting h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.04em; margin-bottom: .2rem; }
.dashboard-greeting p  { font-size: .875rem; color: var(--text-muted); }

/* --- 3-column grid --- */
.dashboard-layout {
  display: grid;
  grid-template-columns: 290px 1fr 260px;
  gap: 1.25rem;
  align-items: start;
}

/* --- Analytics card (dark) --- */
.analytics-card {
  background: var(--surface-dark);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.analytics-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(200,241,53,.14) 0%, transparent 70%);
  pointer-events: none;
}
.analytics-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.analytics-card-title {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: rgba(255,255,255,.5);
}
.analytics-period-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: .2rem .7rem;
  font-size: .72rem; font-weight: 600;
  color: rgba(255,255,255,.6);
}
.analytics-main-value {
  font-size: 2.75rem; font-weight: 800;
  letter-spacing: -.06em; line-height: 1;
  margin-bottom: .3rem;
}
.analytics-trend {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.analytics-chart {
  width: 100%; height: 80px;
  margin-bottom: 1.25rem;
  display: block;
}
.analytics-stats-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .85rem;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1rem;
}
.analytics-stat-value {
  font-size: 1.15rem; font-weight: 700;
  letter-spacing: -.02em; color: #fff;
}
.analytics-stat-label {
  display: flex; align-items: center; gap: .3rem;
  font-size: .67rem;
  color: rgba(255,255,255,.4);
  text-transform: uppercase; letter-spacing: .05em;
  margin-top: .15rem;
}
.analytics-view-all {
  display: flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.4); font-size: .78rem; font-weight: 500;
  text-decoration: none; margin-top: 1rem;
  transition: color .15s;
}
.analytics-view-all:hover { color: rgba(255,255,255,.75); }

/* --- Center content section --- */
.content-section { display: flex; flex-direction: column; gap: 1.25rem; }

.dash-section-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title {
  font-size: .9375rem; font-weight: 700; letter-spacing: -.02em;
}
.section-view-all {
  display: flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: color .15s;
}
.section-view-all:hover { color: var(--primary); }

/* --- Action cards (inspo style) --- */
.action-cards-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.action-card {
  border-radius: var(--radius-lg);
  padding: 1rem .85rem;
  display: flex; flex-direction: column;
  min-height: 140px;
  text-decoration: none; color: #fff;
  position: relative; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}
.action-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.action-card--audio    { background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%); }
.action-card--ai       { background: linear-gradient(135deg, #0D9488 0%, #06B6D4 100%); }
.action-card--employee { background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%); }
.action-card-icon  { font-size: 1.5rem; margin-bottom: auto; }
.action-card-tag {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 4px; padding: .15rem .45rem;
  margin-bottom: .35rem; display: inline-block; align-self: flex-start;
}
.action-card-title { font-size: .8rem; font-weight: 700; line-height: 1.3; }
.action-card-bookmark { position: absolute; bottom: .75rem; right: .75rem; opacity: .7; }
.action-card--add {
  background: transparent;
  border: 2px dashed var(--border);
  color: var(--text-muted);
  align-items: center; justify-content: center; gap: .4rem;
  cursor: pointer; min-height: 140px;
}
.action-card--add:hover {
  border-color: var(--primary); color: var(--primary);
  background: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow);
}
.action-card-add-icon  { font-size: 1.5rem; line-height: 1; }
.action-card-add-label { font-size: .78rem; font-weight: 600; }

/* --- History sidebar --- */
.history-sidebar {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
}
.history-sidebar-header { margin-bottom: 1rem; }
.history-sidebar-title {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em;
  color: var(--text-muted);
}
.history-list { display: flex; flex-direction: column; gap: .9rem; }
.history-item { display: flex; gap: .75rem; align-items: flex-start; }
.history-icon {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: .85rem;
}
.history-icon-green { background: #DCFCE7; }
.history-icon-blue  { background: var(--primary-light); }
.history-icon-amber { background: #FEF9C3; }
.history-icon-gray  { background: var(--bg); border: 1px solid var(--border); }
.history-content { flex: 1; }
.history-text { font-size: .8125rem; font-weight: 500; color: var(--text); line-height: 1.4; }
.history-time { font-size: .7rem; color: var(--text-xmuted); margin-top: .1rem; }
.history-view-all {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; margin-top: 1.25rem;
  transition: color .15s;
}
.history-view-all:hover { color: var(--primary); }

.place-audio-card {
  margin-top: 1rem;
}
.place-audio-list {
  display: grid;
  gap: .5rem;
}
.place-audio-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .65rem .75rem;
  background: var(--bg);
  cursor: pointer;
}
.place-audio-row span {
  font-size: .9rem;
  color: var(--text);
}
.place-image-preview {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: .45rem 0 .65rem;
}
.access-settings {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
@media (max-width: 680px) {
  .access-settings {
    grid-template-columns: 1fr;
  }
}

/* --- Responsive dashboard --- */
@media (max-width: 1150px) {
  .dashboard-layout { grid-template-columns: 270px 1fr; }
  .history-sidebar  { display: none; }
}
@media (max-width: 860px) {
  .dashboard-layout   { grid-template-columns: 1fr; }
  .action-cards-grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dashboard-greeting h1 { font-size: 1.4rem; }
}

/* =============================================
   Embraceband visual refresh - dashboard system
   Palette source: #0BE9CE, #FF3399, #B27BFF, #0D0E10, #E6E6EE
   ============================================= */
:root {
  --eb-teal: #0BE9CE;
  --eb-pink: #FF3399;
  --eb-violet: #B27BFF;
  --eb-ink: #0D0E10;
  --eb-bg: #E6E6EE;
  --eb-bg-soft: #F3F3F8;
  --eb-panel: rgba(255,255,255,.58);
  --eb-panel-solid: #F8F8FB;
  --eb-border: rgba(255,255,255,.72);
  --eb-line: rgba(13,14,16,.08);
  --eb-muted: rgba(13,14,16,.52);
  --eb-gradient: linear-gradient(145deg, #0BE9CE 0%, #B27BFF 52%, #FF3399 100%);
  --primary: var(--eb-violet);
  --primary-dark: #8F5DE4;
  --primary-light: rgba(178,123,255,.16);
  --secondary: var(--eb-teal);
  --accent: var(--eb-teal);
  --bg: var(--eb-bg);
  --surface: rgba(255,255,255,.72);
  --surface-2: rgba(255,255,255,.42);
  --text: var(--eb-ink);
  --text-muted: var(--eb-muted);
  --border: rgba(13,14,16,.11);
  --border-subtle: rgba(255,255,255,.66);
  --radius-sm: 18px;
  --radius: 24px;
  --radius-lg: 30px;
  --shadow-sm: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 22px rgba(13,14,16,.04);
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 18px 44px rgba(13,14,16,.07);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.72) inset, 0 26px 72px rgba(13,14,16,.11);
  --focus-ring: 0 0 0 3px rgba(11,233,206,.26);
}

body {
  background: var(--eb-bg);
  color: var(--eb-ink);
  letter-spacing: 0;
}

.footer { display: none; }
.brand-star { display: none; }
.brand {
  position: relative;
  width: max-content;
  color: var(--eb-ink);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.07em;
}
.brand::after {
  content: "";
  position: absolute;
  left: 58%;
  right: 1px;
  top: 54%;
  height: 2px;
  border-radius: 999px;
  background: var(--eb-gradient);
  transform: translateY(-50%);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
}
.btn-primary {
  background: var(--eb-ink);
  border-color: var(--eb-ink);
}
.btn-primary:hover {
  background: #25262B;
  border-color: #25262B;
}
.btn-secondary {
  background: var(--eb-gradient);
  border-color: transparent;
  color: #fff;
}
.btn-outline {
  background: rgba(255,255,255,.45);
  border-color: rgba(13,14,16,.13);
}

@media (min-width: 961px) {
  body:has(.navbar .nav-links) {
    display: block;
    min-height: 100vh;
    padding-left: 230px;
  }
  .navbar:has(.nav-links) {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 300;
    width: 230px;
    min-height: 100vh;
    align-items: stretch;
    justify-content: flex-start;
    flex-direction: column;
    gap: 3.2rem;
    padding: 2rem 1.2rem 1.5rem;
    border: 0;
    background: transparent;
  }
  .navbar:has(.nav-links)::before { display: none; }
  .nav-links {
    display: flex;
    min-height: calc(100vh - 120px);
    align-items: stretch;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
  }
  .nav-items {
    display: flex;
    flex-direction: column;
    gap: .64rem;
  }
  .nav-items a:not(.btn),
  .nav-links a:not(.btn) {
    position: relative;
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: .68rem;
    padding: .48rem .78rem;
    border-radius: 999px;
    color: var(--eb-ink);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    background: transparent;
  }
  .nav-items a:not(.btn)::before {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    place-items: center;
    color: currentColor;
    font-size: 1rem;
    line-height: 1;
  }
  .nav-items a[href*="dashboard"]::before { content: "▦"; }
  .nav-items a[href*="employees"]::before { content: "●●"; font-size: .72rem; letter-spacing: -.18rem; }
  .nav-items a[href*="places"]::before { content: "◉"; }
  .nav-items a[href*="studio"]::before { content: "✦"; }
  .nav-items a[href*="audio"]::before { content: "▥"; }
  .nav-items a[href*="billing"]::before { content: "↗"; }
  .nav-items a[href*="settings"]::before { content: "⚙"; }
  .nav-items a:not(.btn):hover,
  .nav-links a:not(.btn):hover {
    background: rgba(255,255,255,.34);
    color: var(--eb-ink);
  }
  .nav-items a:not(.btn).nav-active,
  .nav-links a:not(.btn).nav-active {
    background: var(--eb-ink);
    color: #fff;
  }
  .nav-items a:not(.btn).nav-active::after,
  .nav-links a:not(.btn).nav-active::after {
    display: none;
  }
  .notification-menu {
    position: fixed;
    top: 1.55rem;
    right: 5.95rem;
  }
  .user-menu {
    position: fixed;
    top: 1.55rem;
    right: 1.75rem;
  }
  .notification-trigger {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255,255,255,.65);
    background: rgba(255,255,255,.48);
    box-shadow: var(--shadow-sm);
  }
  .notification-dot {
    top: 9px;
    right: 9px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    background: var(--eb-teal);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
  }
  .user-menu-trigger {
    min-width: 52px;
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50%;
    background: rgba(255,255,255,.48);
    box-shadow: var(--shadow-sm);
  }
  .user-menu-picture,
  .user-menu-avatar {
    width: 44px;
    height: 44px;
    grid-template: 44px / 44px;
  }
  .user-menu-picture .user-menu-icon {
    width: 24px;
    height: 24px;
  }
  .user-menu-identity,
  .user-menu-chevron {
    display: none;
  }
  .user-menu-popover,
  .notification-popover {
    top: calc(100% + .8rem);
    border-radius: 20px;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
  }
  .container {
    max-width: none;
    margin: 0;
    padding: 2.15rem 1.85rem 3rem;
  }
  .container-wide {
    max-width: none;
  }
}

.dashboard-main {
  width: 100%;
}
.app-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 3.9rem 0 1.45rem;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
}
.app-page-heading h1 {
  margin: 0;
  color: var(--eb-ink);
  font-size: clamp(1.95rem, 3vw, 3.05rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.03;
  text-wrap: balance;
}
.app-page-heading p {
  margin: .25rem 0 0;
  color: var(--eb-muted);
  font-size: .92rem;
  font-weight: 600;
}
.app-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .48rem;
}
.app-page-actions .btn,
.app-page-actions .credits-badge {
  min-height: 34px;
}
.app-page-actions .credits-badge {
  margin-bottom: 0;
  border: 1px solid rgba(13,14,16,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  color: var(--eb-ink);
  box-shadow: var(--shadow-sm);
}
.app-page-actions .credits-badge strong {
  color: var(--eb-pink);
}
.page-header {
  align-items: flex-start;
  margin: 0 0 1.05rem;
  padding: 1.05rem 0 .85rem;
  border-bottom: 1px solid rgba(13,14,16,.08);
}
.page-header h1 {
  margin: 0;
  color: var(--eb-ink);
  font-size: clamp(1.35rem, 2.1vw, 1.95rem);
  font-weight: 560;
  letter-spacing: -.055em;
  line-height: 1.04;
}
.page-header p,
.page-header .text-muted,
.page-header .audio-edit-sub {
  color: var(--eb-muted);
  font-size: .86rem;
  font-weight: 560;
}
.auth-page {
  background: var(--eb-bg);
}
.auth-page .navbar {
  display: none;
}
.auth-page .container {
  display: grid;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 3rem);
  place-items: center;
}
.auth-shell {
  display: grid;
  width: min(980px, 100%);
  grid-template-columns: minmax(0, .95fr) minmax(320px, .72fr);
  gap: .75rem;
  align-items: stretch;
}
.auth-intro,
.auth-card-modern {
  border: 1px solid var(--eb-border);
  border-radius: 28px;
  background: var(--eb-panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.12);
}
.auth-intro {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 2rem;
}
.auth-intro::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -90px;
  width: 210px;
  height: 300px;
  border: 42px solid rgba(255,255,255,.22);
  border-radius: 999px;
  transform: rotate(24deg);
}
.auth-brand {
  margin-bottom: min(20vh, 8rem);
}
.auth-intro h1 {
  max-width: 10ch;
  margin: .5rem 0 0;
  color: var(--eb-ink);
  font-size: clamp(2.25rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .98;
}
.auth-intro p {
  max-width: 34ch;
  margin-top: 1rem;
  color: var(--eb-muted);
  font-weight: 600;
}
.auth-card-modern {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 1.65rem;
}
.auth-card-modern h1 {
  margin: .25rem 0 1.35rem;
  color: var(--eb-ink);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -.055em;
}
.auth-card-modern label {
  color: var(--eb-muted);
  text-transform: none;
  letter-spacing: 0;
}
.auth-card-modern input {
  min-height: 46px;
  border-color: rgba(13,14,16,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
}
.auth-card-modern .btn-primary {
  min-height: 46px;
}
.auth-card-modern a {
  color: var(--eb-pink);
  font-weight: 700;
}
.form-card,
.audio-edit-card,
.dash-section-card,
.empty-cta {
  border-color: var(--eb-border);
  border-radius: 22px;
  background: var(--eb-panel);
  box-shadow: var(--shadow);
}
.audio-hub-card,
.people-bands-card,
.places-card {
  border: 1px solid var(--eb-border);
  border-radius: 22px;
  background: var(--eb-panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.12);
}
.audio-hub-card .app-page-heading,
.people-bands-card .app-page-heading,
.places-card .app-page-heading {
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--eb-line);
}
.people-bands-card .pb-filter-panel,
.people-bands-card .pb-table-wrap,
.places-card .places-table-wrap,
.audio-hub-card .ah-toolbar,
.audio-hub-card .ah-new-folder-form,
.audio-hub-card .ah-file-card,
.studio-workbench,
.studio-editor,
.studio-tabs a,
.studio-context-row,
.studio-empty-playlist {
  border-color: rgba(13,14,16,.08);
  background-color: rgba(255,255,255,.46);
}
.people-bands-card .pb-filter-panel {
  justify-content: flex-start;
  padding: .75rem;
  border-radius: 18px;
}
.people-bands-card .pb-pf-input,
.people-bands-card .pb-pf-select,
.audio-hub-card .ah-folder-input {
  border-color: rgba(13,14,16,.1);
  border-radius: 999px;
  background-color: rgba(255,255,255,.56);
}
.places-card .places-table th,
.people-bands-card .pb-thead th {
  background: rgba(13,14,16,.035);
}
.places-card .places-table tbody tr:hover td,
.people-bands-card .pb-row:hover td {
  background: rgba(255,255,255,.42);
}
.audio-hub-card .slot-bar-track,
.audio-hub-card .slot-bar-fill {
  border-radius: 999px;
}
