:root {
  --font-display: Nunito, "Segoe UI", sans-serif;
  --font-body: Nunito, "Segoe UI", sans-serif;
  --bg: #f6f3fb;
  --bg-2: #efeaf8;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #1b1b1b;
  --muted: #6b6475;
  --line: rgba(111, 70, 229, 0.12);
  --blue: #1db8a6;
  --purple: #8b63f6;
  --red: #c2186b;
  --accent: #8b63f6;
  --accent-deep: #6f46e5;
  --button: #8b63f6;
  --button-hover: #6f46e5;
  --danger: #ff5c6c;
  --success: #1db8a6;
  --input-bg: #ffffff;
  --shadow: 0 8px 24px rgba(111, 70, 229, 0.08);
  --glow: 0 10px 24px rgba(139, 99, 246, 0.22);
  --radius: 1.25rem;
  --gradient: linear-gradient(135deg, #1db8a6 0%, #8b63f6 48%, #e84a8a 100%);
  --nav-bg: #ffffff;
  --hero-wave: linear-gradient(90deg, #8b63f6 0%, #e84a8a 100%);
  --tile: #8b63f6;
  --login-wash: #1db8a6;
  --option-bg: #ffffff;
  --select-chevron: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%231b1b1b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  color-scheme: light;
}

  html {
    font-size: 16px;
  }

html,
body {
  min-height: 100%;
}

body.talent-app {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  margin: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, .sidebar-brand, .login-brand, .stat-value, .dash-hero h1 {
  font-family: var(--font-display);
}

a {
  color: var(--accent);
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--blue);
}

.text-muted {
  color: var(--muted) !important;
}

.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: drift 18s ease-in-out infinite;
}

.orb-a {
  width: 42vw;
  height: 42vw;
  left: -12vw;
  top: -10vw;
  background: var(--blue);
}

.orb-b {
  width: 38vw;
  height: 38vw;
  right: -10vw;
  top: 12vh;
  background: var(--purple);
  animation-delay: -6s;
}

.orb-c {
  width: 44vw;
  height: 44vw;
  left: 22vw;
  bottom: -18vw;
  background: var(--red);
  animation-delay: -12s;
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, 6%, 0) scale(1.08); }
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
  position: relative;
  z-index: 1;
  transition: grid-template-columns 0.28s ease;
}

body.modal-open .app-shell {
  z-index: auto;
}

.app-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 1.4rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--nav-bg);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(22px);
  z-index: 20;
  overflow: hidden;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text) !important;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1.15rem;
}

.brand-text,
.sidebar-link span,
.btn-sign-out span {
  overflow: hidden;
  white-space: nowrap;
  max-width: 12rem;
  opacity: 1;
  transition: max-width 0.28s ease, opacity 0.2s ease, margin 0.28s ease;
}

.moxie-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.moxie-x {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.sidebar-link,
.sidebar-collapse,
.btn-sign-out {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem 0.9rem;
  border-radius: 0.9rem;
  color: var(--muted) !important;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, padding 0.28s ease, justify-content 0.28s ease;
}

.sidebar-link svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #eee8fb;
  color: var(--accent) !important;
}

.sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-sign-out {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 0.75rem;
}

.btn-sign-out svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn-sign-out:hover {
  color: #fff;
  border-color: transparent;
  background: var(--button);
}

.sidebar-collapse {
  width: 100%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 0.75rem;
}

.sidebar-collapse svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.28s ease;
}

.sidebar-collapse:hover {
  color: var(--accent);
  background: #eee8fb;
}

html.nav-collapsed .app-shell {
  grid-template-columns: 84px minmax(0, 1fr);
}

html.nav-collapsed .app-sidebar {
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

html.nav-collapsed .sidebar-brand {
  justify-content: center;
}

html.nav-collapsed .brand-text,
html.nav-collapsed .sidebar-link span,
html.nav-collapsed .btn-sign-out span,
html.nav-collapsed .sidebar-collapse span {
  max-width: 0;
  opacity: 0;
  margin: 0;
}

html.nav-collapsed .sidebar-link,
html.nav-collapsed .btn-sign-out,
html.nav-collapsed .sidebar-collapse {
  justify-content: center;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

html.nav-collapsed .sidebar-collapse svg {
  transform: rotate(180deg);
}

.app-main {
  min-width: 0;
}

.app-topbar {
  display: none;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem 0.25rem;
}

.topbar-title h1 {
  font-size: 1.05rem;
  margin: 0;
}

.topbar-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.sidebar-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
}

.sidebar-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.app-content {
  padding: 1.5rem 1.75rem 3rem;
  max-width: 66.666%;
  margin-left: auto;
  margin-right: auto;
}

.app-content-wide {
  max-width: 66.666%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.app-content-full {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.page-enter {
  animation: rise 0.45s ease;
}

@keyframes rise {
  from { opacity: 0.35; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.dash-hero {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  padding: 1.6rem 1.7rem;
  border-radius: calc(var(--radius) + 0.15rem);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  margin-bottom: 1.35rem;
  position: relative;
  overflow: hidden;
}

.dash-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -50% -10%;
  height: 90px;
  background: var(--hero-wave);
  opacity: 0.85;
}

.dash-hero-copy,
.dash-hero-photo {
  position: relative;
  z-index: 1;
}

.dash-kicker {
  color: #e84a8a;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.dash-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  margin: 0;
}

.dash-sub {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.dot-sep {
  margin: 0 0.4rem;
}

.dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 700;
}

.chip-live {
  background: rgba(52, 211, 153, 0.16);
  color: var(--success);
  border-color: transparent;
}

.chip-alert {
  background: rgba(244, 63, 94, 0.16);
  color: var(--danger);
  border-color: transparent;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.1rem 1.15rem 1.05rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text) !important;
  text-decoration: none;
  box-shadow: var(--shadow);
  animation: rise 0.6s ease both;
}

.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.18s; }

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
  color: var(--text) !important;
}

.stat-label,
.stat-hint {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

.stat-alert {
  outline: 1px solid rgba(244, 63, 94, 0.45);
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.9fr);
  gap: 1rem;
}

.dash-panel,
.card,
.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.dash-panel {
  padding: 1.15rem 1.2rem 1.25rem;
}

.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dash-panel-head h2 {
  font-size: 1.15rem;
  margin: 0;
  font-weight: 800;
}

.dash-panel-head p,
.empty-copy {
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.text-link {
  font-weight: 800;
  white-space: nowrap;
}

.spotlight-list,
.shortcut-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.spotlight-row,
.shortcut {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: #f7f4fd;
  border: 1px solid var(--line);
  color: var(--text) !important;
  text-decoration: none;
}

.spotlight-row:hover,
.shortcut:hover {
  transform: translateY(-2px);
  color: var(--text) !important;
}

.spotlight-row h3,
.shortcut strong {
  font-size: 0.98rem;
  margin: 0 0 0.2rem;
}

.spotlight-row p,
.shortcut small {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-row.has-changes {
  border-color: rgba(244, 63, 94, 0.45);
}

.shortcut {
  justify-content: flex-start;
}

.shortcut-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  flex: none;
}

.shortcut-icon svg {
  width: 20px;
  height: 20px;
}

.page-head {
  margin-bottom: 1.25rem;
}

.page-kicker {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.page-head h1,
.page-head .h1 {
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.page-lead {
  color: var(--muted);
  margin: 0;
}

.profile-photo {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--glow);
}

.profile-photo-placeholder {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
}

.profile-photo-wrap {
  position: relative;
  display: inline-block;
}

.profile-photo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem 1.3rem;
  margin-bottom: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.profile-resume-col {
  position: sticky;
  top: 1rem;
}

.skill-card-cat {
  margin: 0.85rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.skill-card-cat:first-of-type {
  margin-top: 0.25rem;
}

.skill-chip {
  display: inline-block;
  margin: 0 0.35rem 0.35rem 0;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #eee8fb;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.skills-modal .modal-dialog {
  max-height: calc(100vh - 2rem);
}

.skills-modal .modal-content {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow);
}

.skills-modal .modal-header {
  border-bottom: 1px solid var(--line);
  gap: 0.75rem;
}

.skills-back {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 800;
  padding: 0;
}

.skills-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.skills-category-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 0.95rem 1rem;
}

.skills-category-btn strong {
  font-size: 1rem;
  color: var(--text);
}

.skills-category-btn span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.skills-category-btn:hover {
  border-color: var(--accent);
  background: #eee8fb;
}

.skills-pick-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skills-pick {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
}

.skills-pick.is-on {
  border-color: var(--accent);
  background: #f7f3ff;
}

.skills-pick-name {
  margin: 0 0 0.55rem;
  font-weight: 800;
}

.skills-levels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skills-level {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.skills-level.is-active {
  background: var(--button);
  border-color: var(--button);
  color: #fff;
}

@media (min-width: 576px) {
  .skills-category-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.profile-photo-form {
  flex: none;
}

.profile-photo-hit {
  display: block;
  cursor: pointer;
  position: relative;
}

.profile-photo-hit .profile-photo,
.profile-photo-hit .profile-photo-placeholder {
  margin: 0;
  width: 112px;
  height: 112px;
  font-size: 1.05rem;
}

.profile-photo-edit {
  position: absolute;
  inset: auto 0 0;
  padding: 0.35rem 0 0.45rem;
  border-radius: 0 0 50% 50%;
  background: rgba(28, 16, 48, 0.62);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.profile-photo-hit:hover .profile-photo-edit,
.profile-photo-hit:focus-within .profile-photo-edit {
  opacity: 1;
}

.resume-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.resume-viewer {
  border: 1px dashed var(--line);
  border-radius: 1rem;
  overflow: hidden;
  background: #faf8ff;
  min-height: 280px;
}

.resume-viewer iframe {
  width: 100%;
  height: min(70vh, 720px);
  border: 0;
  display: block;
  background: #fff;
}

.resume-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: 800;
}

.resume-empty-hint {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}

.resume-open {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  font-weight: 800;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.profile-data-deletion {
  position: fixed;
  right: 1.75rem;
  bottom: 1.25rem;
  z-index: 5;
  margin: 0;
  width: fit-content;
}

.profile-data-deletion a {
  color: var(--muted);
  text-decoration: underline;
}

.profile-data-deletion a:hover {
  color: var(--text);
}

.moxie-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem 2.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.moxie-hero::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -40px;
  height: 90px;
  background: var(--hero-wave);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.moxie-hero .profile-photo,
.moxie-hero .profile-photo-placeholder,
.moxie-hero h1,
.moxie-hero p,
.moxie-hero form {
  position: relative;
  z-index: 1;
}

.gallery-thumb {
  height: 180px;
  object-fit: cover;
}

.gallery-category {
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin: 1.75rem 0 0.75rem;
}

.gallery-category:first-of-type {
  margin-top: 0.35rem;
}

.gallery-section {
  margin-bottom: 1.75rem;
}

.gallery-section-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.gallery-section-head h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.gallery-section-count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 180px);
  gap: 0.75rem;
  align-items: start;
}

.gallery-item {
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.gallery-tile {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  animation: rise 0.5s ease both;
  cursor: grab;
}

.gallery-section.is-drop-target {
  outline: 2px dashed var(--accent);
  outline-offset: 6px;
  border-radius: 1rem;
}

.gallery-drop-hint {
  width: 180px;
  height: 180px;
  border-radius: 1rem;
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.55);
}

.gallery-move {
  width: 180px;
  margin: 0;
}

.gallery-move .form-select {
  font-size: 0.78rem;
  padding: 0.28rem 1.6rem 0.28rem 0.5rem;
}

.gallery-tile-body {
  padding: 0.9rem 0.85rem 1rem;
}

.gallery-tile-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  word-break: break-word;
}

.gallery-tile-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 0.75rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}

.gallery-tile audio {
  width: 100%;
  margin-top: 0.4rem;
}

.gallery-open {
  display: block;
  width: 180px;
  height: 180px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
}

.gallery-open img,
.gallery-video-thumb,
.gallery-video-fallback {
  width: 180px;
  height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.gallery-video-fallback {
  background: #1c1630;
}

.gallery-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(12, 8, 24, 0.28);
}

.gallery-play svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

.gallery-audio-tile {
  width: 180px;
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 0.5rem;
  background: linear-gradient(180deg, #f4efff 0%, #fff 100%);
}

.gallery-audio-note {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--button);
  color: #fff;
}

.gallery-audio-note svg {
  width: 30px;
  height: 30px;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 8, 18, 0.82);
  animation: rise 0.25s ease;
}

.media-lightbox[hidden] {
  display: none;
}

.media-lightbox img,
.media-lightbox video {
  max-width: min(92vw, 1200px);
  max-height: 88vh;
  border-radius: 1rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  background: #000;
}

.media-lightbox video {
  width: min(88vw, 1100px);
  min-height: 320px;
}

.media-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 1.6rem;
  line-height: 1;
  z-index: 1;
}

.gallery-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--danger);
  color: #fff;
  z-index: 1;
}

.gallery-pick-label {
  font-weight: 800;
  margin: 0.75rem 0 0.4rem;
}

.gallery-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, 96px);
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.gallery-pick {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid var(--line);
  cursor: pointer;
  margin: 0;
}

.gallery-pick img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-pick input {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 1;
  margin: 0;
}

.gallery-pick:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(139, 99, 246, 0.25);
}

.gallery-pick-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #eee8fb;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
}

.casting-card-deadline {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.casting-filters.nav-pills .nav-link {
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.casting-filters.nav-pills .nav-link.active {
  background: var(--button);
  border-color: transparent;
  color: #fff;
}

.casting-filters .badge {
  background: rgba(139, 92, 246, 0.16);
  color: var(--text);
}

.casting-filters.nav-pills .nav-link.active .badge {
  background: #fff;
  color: var(--accent-deep);
}

.casting-filters .badge-changes {
  background: var(--danger);
  color: #fff;
}

a.casting-card,
a.casting-card:hover,
a.casting-card:focus {
  color: var(--text);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  display: block;
}

a.casting-card:hover {
  transform: translateY(-3px);
}

.casting-card .card-body {
  padding: 1.55rem 1.7rem 1.5rem;
}

.casting-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.55rem;
}

.casting-card h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 0.3rem;
}

.casting-card-due {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.casting-card-due.due-soon {
  color: var(--danger);
}

.casting-card-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.casting-card-changes {
  outline: 1px solid var(--danger);
}

.status-badge {
  display: inline-block;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  color: var(--text);
}

.status-changes {
  background: var(--danger);
  color: #fff;
}

.change-request-banner {
  background: rgba(244, 63, 94, 0.12);
  border-left: 4px solid var(--danger);
  padding: 1rem 1.25rem;
  border-radius: 0 0.75rem 0.75rem 0;
}

.change-request-excerpt {
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 700;
}

.casting-description {
  white-space: pre-wrap;
}

.casting-titlebar {
  background: var(--gradient);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.casting-titlebar h1 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}

.casting-titlebar a {
  color: #fff;
}

.btn-primary {
  background: var(--button);
  background-image: none;
  border: 0;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--glow);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--button-hover);
  background-image: none;
  filter: none;
  border: 0;
  color: #fff;
}

.btn-outline-primary {
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.btn-outline-danger {
  color: var(--danger);
  border-color: var(--danger);
}

.btn-outline-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-moxie-submit {
  background: var(--button);
  background-image: none;
  color: #fff;
  border: 0;
  font-weight: 800;
  width: 100%;
  padding: 0.85rem;
  border-radius: 0.9rem;
}

.btn-moxie-submit:hover {
  color: #fff;
  background: var(--button-hover);
  filter: none;
}

.form-control,
.form-select {
  background-color: var(--input-bg);
  border-color: var(--line);
  color: var(--text);
}

.form-select {
  background-image: var(--select-chevron);
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

.form-select option,
.form-select optgroup {
  background-color: var(--option-bg);
  color: var(--text);
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 0.2rem rgba(139, 92, 246, 0.22);
  background-color: var(--input-bg);
  color: var(--text);
}

.form-check-input:checked {
  background-color: var(--purple);
  border-color: var(--purple);
}

.alert {
  border: 0;
  border-radius: 1rem;
}

body.talent-app.login-body,
body.talent-app.login-body.login-verify {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #fff;
}

body.login-body .aurora-bg {
  display: none;
}

.login-shell {
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
  position: relative;
  z-index: 1;
}

.login-card {
  background: #fff;
  backdrop-filter: none;
  border: 1px solid #d7d0e4;
  box-shadow: none;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.login-brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.login-card h1 {
  font-weight: 800;
  font-size: 1.75rem;
}

body.talent-app.login-body.login-splash {
  background: #000;
}

body.login-splash .login-shell {
  max-width: 28rem;
  text-align: center;
}

.splash-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
}

.splash-login {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
}

.otp-input {
  letter-spacing: 0.45em;
  font-weight: 800;
  font-size: 1.45rem;
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 991.98px) {
  .app-shell {
    grid-template-columns: 1fr;
    z-index: auto;
  }

  .app-main {
    position: relative;
    z-index: 1;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(84vw, 300px);
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    z-index: 40;
    pointer-events: none;
  }

  body.sidebar-open {
    overflow: hidden;
  }

  body.sidebar-open .app-sidebar {
    transform: none;
    pointer-events: auto;
  }

  .app-topbar {
    display: flex;
  }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 30;
  }

  .sidebar-backdrop[hidden] {
    display: none;
  }

  .app-content,
  .app-content-wide,
  .app-content-full {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .sidebar-collapse {
    display: none;
  }

  html.nav-collapsed .app-shell {
    grid-template-columns: 1fr;
  }

  .casting-titlebar {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .dash-stats,
  .dash-grid {
    grid-template-columns: 1fr 1fr;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-resume-col {
    position: static;
  }
}

@media (max-width: 640px) {
  .dash-hero,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .dash-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }

  .stat-card {
    padding: 0.9rem 0.85rem 0.85rem;
  }

  .stat-value {
    font-size: 1.55rem;
  }

  .stat-label,
  .stat-hint {
    font-size: 0.72rem;
  }

  .dash-hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .app-content {
    padding: 1rem 1rem 5rem;
  }

  .app-content-wide,
  .app-content-full {
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .casting-card .card-body {
    padding: 1.15rem 1.15rem 1.1rem;
  }

  .casting-card h2 {
    font-size: 1.15rem;
  }

  .skills-category-grid {
    grid-template-columns: 1fr;
  }

  .profile-data-deletion {
    position: static;
    right: auto;
    bottom: auto;
    margin-top: 1.5rem;
    text-align: right;
  }

  .page-head h1 {
    font-size: 1.7rem;
  }

  .otp-input {
    letter-spacing: 0.28em;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
