@import url('https://fonts.cdnfonts.com/css/neuropol');

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

body {
  transition: background 0.3s ease, color 0.3s ease;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  background: #fafafa;
  color: #1a1a1a;
  height: 100vh;
  font-weight: 400;
  overflow: hidden;
  padding-top: 56px;
}

#neuropolSplash {
  position: fixed;
  inset: 0;
  background: #03030b;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#neuropolSplash.visible {
  opacity: 1;
}

#neuropolSplash.fading {
  opacity: 0;
}

#neuropolSplash.mode-on .splash-text {
  color: #2ec074;
}

#neuropolSplash.mode-off {
  background: #050810;
}

#neuropolSplash.mode-off .splash-text {
  color: #8c52ff;
  text-shadow: 0 0 20px rgba(140, 82, 255, 0.6), 0 0 50px rgba(26, 26, 26, 0.7);
}

#neuropolSplash .splash-text {
  font-family: 'Neuropol', 'Segoe UI', sans-serif;
  color: #2ec074;
  font-size: 48px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(46, 192, 116, 0.6), 0 0 48px rgba(26, 26, 26, 0.8);
  animation: neuropolPulse 1.2s infinite;
}

@keyframes neuropolPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 16px rgba(46, 192, 116, 0.6), 0 0 30px rgba(46, 192, 116, 0.3);
  }
  50% {
    transform: scale(1.05);
    text-shadow: 0 0 32px rgba(46, 192, 116, 0.9), 0 0 60px rgba(46, 192, 116, 0.6);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 16px rgba(46, 192, 116, 0.6), 0 0 30px rgba(46, 192, 116, 0.3);
  }
}

body.name-required .layout,
body.name-required .overview-section {
  pointer-events: none;
  filter: blur(1px);
}

body.name-required .user-menu {
  pointer-events: none;
  opacity: 0.4;
}

body.name-required .user-name-block {
  pointer-events: auto;
  opacity: 1;
}

h1, h2, h3, h4 {
  margin: 0 0 8px;
}

p {
  margin: 0 0 12px;
}

button {
  background: #1a1a1a;
  border: none;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 2px;
  cursor: pointer;
  font-weight: 400;
  font-size: 13px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}

button:hover {
  background: #333333;
}

.theme-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  font-size: 16px;
  border: 1px solid #1a1a1a;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  background: #ffffff;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.3s ease, color 0.3s ease;
}

.theme-toggle-btn.active {
  background: #2ec074;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(46, 192, 116, 0.35);
  transform: translateY(-1px);
}

input, select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 2px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 14px;
  transition: border 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #999999;
}

label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.overview-card {
  background: #ffffff;
  border-right: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 24px 32px;
  text-align: center;
}

.overview-card:last-child {
  border-right: none;
}

.overview-label {
  font-size: 11px;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  font-weight: 500;
}

.overview-value {
  font-size: 32px;
  font-weight: 300;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.budget-bar-container {
  width: 100%;
  height: 4px;
  background: #f0f0f0;
  border-radius: 0;
  overflow: hidden;
  border: none;
  margin-top: 12px;
}

.budget-bar {
  height: 100%;
  background: #1a1a1a;
  transition: width 0.3s ease, background 0.3s ease;
  width: 0%;
}

.budget-bar.over-budget {
  background: #d32f2f;
}

.chart-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-card canvas {
  margin-top: 8px;
}

.scenario-bar {
  margin-top: 16px;
}

.scenario-bar h3 {
  margin-bottom: 12px;
}

.slider-group {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #1f3040;
  margin-bottom: 8px;
}

.slider-group label {
  font-size: 12px;
  color: #b5cad8;
}

.layout {
  display: grid;
  grid-template-columns: 360px 1fr 340px;
  gap: 0;
  padding: 0;
  height: calc(100vh - 118px);
  border-top: 1px solid #e0e0e0;
  overflow: hidden;
}

.left-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  height: 100%;
}

.panel {
  background: #ffffff;
  border: none;
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}

.map-panel {
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.panel h2, .panel h3 {
  font-weight: 300;
  font-size: 16px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
  color: #1a1a1a;
}

.settings .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ticket-tiers .list {
  display: grid;
  gap: 8px;
}

.tier-headers {
  display: grid;
  grid-template-columns: 2fr 0.8fr 0.8fr 48px;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7b8a98;
  margin: 6px 0 4px;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card {
  background: #0f2232;
  border: 1px solid #1f3040;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.tier {
  grid-template-columns: 2fr 0.8fr 0.8fr 48px;
  align-items: center;
}

.card.tier {
  border-radius: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

.tier input {
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  background: #ffffff;
  border: 1px solid #cfd6dd;
  border-radius: 0;
}

.delete-tier {
  width: 32px;
  height: 32px;
  border-radius: 0;
  border: 1px solid #d09a9a;
  background: #ffffff;
  color: #b44a4a;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.delete-tier:hover {
  border-color: #b44a4a;
}

.date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ticket-tier-sim {
  margin-top: 10px;
  padding: 10px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  border-radius: 0;
}

.revenue-grid {
  display: grid;
  gap: 8px;
}

.revenue-headers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 110px;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7b8a98;
  margin-bottom: 6px;
}

.revenue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 6px;
  align-items: center;
}

.revenue-row .row-inputs {
  grid-template-columns: 160px 110px;
}

.revenue-row input {
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  background: #ffffff;
  border: 1px solid #cfd6dd;
  border-radius: 0;
}

.merch-block {
  margin-top: 8px;
}

.merch-headers {
  margin-top: 8px;
}

.merch-row .row-inputs {
  grid-template-columns: 160px 110px;
}

.onsite-meta {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.onsite-meta label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #7b8a98;
}

.onsite-meta input {
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  background: #ffffff;
  border: 1px solid #cfd6dd;
  border-radius: 0;
}

.onsite-revenue-breakdown {
  display: grid;
  gap: 6px;
  margin: 8px 0;
}

.onsite-revenue-meta {
  font-size: 11px;
  color: #5f6c7a;
}

.onsite-revenue-line {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #1a1a1a;
}

.row-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.map-panel .toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}

.task-checklist {
  background: #0f2232;
  border: 1px solid #1f3040;
  padding: 10px;
  border-radius: 10px;
}

.task-checklist ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 4px;
}

.map {
  position: relative;
  background: #f9f9f9;
  border-radius: 0;
  border: none;
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;
  flex: 1;
  overflow: hidden;
  margin-bottom: 24px;
}

.map.show-grass {
  background: linear-gradient(135deg, #7cb342 0%, #689f38 50%, #558b2f 100%);
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(255,255,255,.03) 2px, rgba(255,255,255,.03) 4px),
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0,0,0,.03) 2px, rgba(0,0,0,.03) 4px),
    linear-gradient(135deg, #7cb342 0%, #689f38 50%, #558b2f 100%);
}

.map-background-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.7;
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

.map-background-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.map-infrastructure-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
}

.map-path {
  position: absolute;
  background: rgba(139, 90, 43, 0.6);
  border: 2px solid rgba(101, 67, 33, 0.8);
  cursor: move;
  z-index: 2;
  transition: background 0.2s;
}

.map-tree {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 64px;
  line-height: 1;
  cursor: move;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.1s;
  z-index: 3;
}

.map-tree:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.map-tree.selected {
  filter: drop-shadow(0 0 8px #ffd700);
}

.map-tent {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 32px;
  line-height: 1;
  cursor: move;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  transition: transform 0.1s;
  z-index: 3;
}

.map-tent:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.map-tent.selected {
  filter: drop-shadow(0 0 8px #ffd700);
}

.map-path:hover {
  background: rgba(139, 90, 43, 0.8);
}

.map-path.selected {
  border-color: #ffd700;
  box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.3);
}

.map-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: center;
}

.toolbar-toggle {
  padding: 8px 12px !important;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  flex-shrink: 0;
}

.toolbar-toggle:hover {
  background: #f5f5f5;
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.toolbar-toggle.active {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.toolbar-items {
  display: flex;
  gap: 8px;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-width 0.4s ease, opacity 0.3s ease;
}

.toolbar-items.expanded {
  max-width: 600px;
  opacity: 1;
}

.map-toolbar button {
  padding: 10px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  white-space: nowrap;
  min-width: 40px;
  min-height: 40px;
}

.map-toolbar button:hover {
  background: #f5f5f5;
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.map-toolbar button.active {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}

.layer-hidden {
  opacity: 0.2 !important;
  pointer-events: none !important;
}

.map-item {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 0;
  border: 2px solid transparent;
  cursor: grab;
  background: transparent;
  backdrop-filter: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.1s;
  z-index: 10 !important;
}

.map-item:active {
  cursor: grabbing;
}

.map-item.selected {
  border-color: #1a1a1a;
}

.map-item .visual {
  font-size: 48px;
  line-height: 1;
  background: transparent;
  border: none;
  padding: 8px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
}

.map-item .visual img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.map-item .label {
  font-weight: 400;
  font-size: 11px;
  color: #1a1a1a;
  padding: 4px 8px;
  border-radius: 0;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  transform: translateY(var(--label-offset, 0));
  transition: transform 0.12s ease;
  z-index: 50;
  margin-top: 0;
}

.map-item .meta {
  font-size: 10px;
  color: #999999;
  background: #ffffff;
  padding: 2px 6px;
  border: 1px solid #e0e0e0;
}

.side {
  display: grid;
  gap: 12px;
  grid-auto-rows: minmax(0, 1fr);
}

.side-section {
  background: #0f2232;
  border: 1px solid #1f3040;
  border-radius: 10px;
  padding: 12px;
  display: grid;
  gap: 8px;
}

#elementDetail form {
  display: grid;
  gap: 8px;
}

.stacked {
  display: grid;
  gap: 4px;
}

.dashboard {
  grid-auto-rows: min-content;
}

#dashboardMetrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric {
  background: #0c1722;
  border: 1px solid #1f3040;
  padding: 10px;
  border-radius: 10px;
}

.metric strong {
  display: block;
  color: #4dd0e1;
  margin-bottom: 4px;
}

.cashflow {
  background: #0c1722;
  border: 1px solid #1f3040;
  padding: 10px;
  border-radius: 10px;
}

.timeline-bar {
  height: 12px;
  width: 100%;
  background: #0a131c;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1f3040;
}

.timeline-fill {
  height: 100%;
  background: #2ec074;
  box-shadow: 0 0 12px rgba(46, 192, 116, 0.45);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.requirements ul, .requirementsList {
  list-style: none;
  padding: 0;
  margin: 0;
}

.requirements li {
  margin-bottom: 4px;
  font-size: 14px;
}

.staffing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.staffing-headers {
  display: grid;
  grid-template-columns: 2fr 1fr 0.9fr 0.9fr 1.1fr 1fr 48px;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7b8a98;
  margin-bottom: 6px;
}

.staffing-role {
  display: grid;
  grid-template-columns: 2fr 1fr 0.9fr 0.9fr 1.1fr 1fr 48px;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 8px;
  border-radius: 0;
  align-items: center;
}

.staffing-role input,
.staffing-role select {
  padding: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  background: #ffffff;
  border: 1px solid #cfd6dd;
  border-radius: 0;
}

.staffing-role input:disabled,
.staffing-role select:disabled,
#new-staff-rate:disabled {
  background: #f0f0f0;
  color: #7b8a98;
}

.staffing-role .staff-role-total {
  font-weight: 600;
  color: #1a1a1a;
}

.staff-role-multi {
  font-size: 11px;
  color: #7b8a98;
  margin-left: 4px;
}

.setlist-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 420px;
  max-width: 90%;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  z-index: 50;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  resize: both;
  overflow: hidden;
  min-width: 320px;
  min-height: 240px;
}

.setlist-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  font-size: 12px;
  font-weight: 600;
  cursor: grab;
}

.setlist-card-tabs {
  display: inline-flex;
  gap: 6px;
}

.setlist-card-tabs button {
  padding: 4px 8px;
  font-size: 11px;
  border: 1px solid #d0d5db;
  background: #ffffff;
  color: #1a1a1a;
}

.setlist-card-tabs button.active {
  background: #1a1a1a;
  color: #ffffff;
}

.setlist-card-window {
  padding: 6px 12px;
  font-size: 11px;
  color: #666666;
  border-bottom: 1px solid #e0e0e0;
}

.setlist-card-body {
  flex: 1;
  overflow: auto;
  padding: 10px 12px;
}

.setlist-grid {
  display: grid;
  gap: 10px;
}

.setlist-time-column {
  position: relative;
  width: 50px;
  font-size: 10px;
  color: #666666;
  padding-top: 24px;
}

.setlist-time-label {
  position: absolute;
  left: 0;
  transform: translateY(-50%);
}

.setlist-stage-columns {
  display: grid;
  gap: 10px;
  grid-auto-flow: column;
  grid-auto-columns: minmax(140px, 1fr);
}

.setlist-stage {
  border: 1px solid #e0e0e0;
  background: #fafafa;
  position: relative;
  min-height: 200px;
}

.setlist-stage-title {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  height: 24px;
  line-height: 16px;
  border-bottom: 1px solid #e0e0e0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.setlist-event {
  position: absolute;
  left: 6px;
  right: 6px;
  background: #1a1a1a;
  color: #f6f7ff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 0;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.setlist-event small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.9;
}

.activity-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 60;
}

.activity-panel-header {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-panel-controls {
  display: inline-flex;
  gap: 6px;
}

.activity-panel-controls button {
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 10px;
  padding: 2px 6px;
  cursor: pointer;
}

.activity-panel-line {
  flex: 1;
  font-size: 12px;
  color: #555555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.setlist-windows {
  display: grid;
  gap: 8px;
}

.setlist-window-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.setlist-window-row input {
  padding: 8px;
  border: 1px solid #cfd6dd;
  border-radius: 0;
  font-size: 13px;
}


.djset-row .edit-djset,
.djset-row .delete-djset {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.djset-row:hover .edit-djset,
.djset-row:hover .delete-djset {
  opacity: 1;
  pointer-events: auto;
}

.delete-staff-role {
  width: 32px;
  height: 32px;
  border-radius: 0;
  border: 1px solid #d09a9a;
  background: #ffffff;
  color: #b44a4a;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.delete-staff-role:hover {
  border-color: #b44a4a;
}

.staffing-total {
  margin-top: 10px;
  padding: 10px;
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  border-radius: 0;
}

.tag {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 2px 6px;
  display: inline-block;
  margin-right: 4px;
  font-size: 12px;
}

.compliance-item {
  background: #0f2232;
  border: 1px solid #1f3040;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.compliance-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.status-toggle {
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  min-width: 80px;
}

.compliance-details {
  font-size: 13px;
  color: #b5cad8;
  padding-left: 90px;
}

.compliance-details div {
  margin-bottom: 2px;
}

.actions-block {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.actions-block button {
  flex: 1;
}

.cost-breakdown {
  background: #0c1722;
  border: 1px solid #1f3040;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #1f3040;
  font-size: 14px;
}

.breakdown-item:last-child {
  border-bottom: none;
}

/* Infrastructure List */
.infrastructure-panel {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.infrastructure-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 20px;
}

.filter-btn {
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #e0e0e0;
  color: #999999;
  border-radius: 0;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 400;
}

.filter-btn:hover {
  background: transparent;
  color: #1a1a1a;
}

.filter-btn.active {
  background: transparent;
  color: #1a1a1a;
  border-color: #1a1a1a;
  font-weight: 400;
}

.infrastructure-list {
  overflow-y: auto;
  max-height: calc(100vh - 450px);
}

.infra-item {
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  padding: 16px 0;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
  cursor: pointer;
}

.infra-item:hover {
  background: #fafafa;
  border-bottom-color: #e0e0e0;
  transform: none;
}

.infra-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 50%;
}

.infra-details {
  flex: 1;
}

.infra-name {
  font-weight: 400;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.infra-meta {
  font-size: 12px;
  color: #999999;
}

.infra-cost {
  color: #1a1a1a;
  font-weight: 500;
}

.infra-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.infra-item:hover .infra-actions {
  opacity: 1;
}

.infra-edit,
.infra-delete {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  color: #999999;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  padding: 0;
}

.infra-edit:hover {
  background: #e3f2fd;
  color: #1976d2;
}

.infra-delete:hover {
  background: #ffebee;
  color: #d32f2f;
}

/* Map Panel */
.map-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.map-header {
  padding: 16px 24px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.map-header h2 {
  margin: 0;
}

/* Planner Controls */
.planner-panel {
  padding: 16px;
}

.add-infrastructure-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-section label {
  font-size: 13px;
  font-weight: 600;
  color: #b5cad8;
}

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

.infra-select,
.form-section input,
.form-section textarea {
  width: 100%;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  color: #1a1a1a;
  font-size: 14px;
}

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

.btn-primary {
  width: 100%;
  padding: 14px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 0;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: #333333;
  transform: none;
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  font-weight: 400;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #fafafa;
  border-color: #1a1a1a;
}

.btn-secondary.theme-toggle-btn {
  width: 34px;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
}

/* Production Summary */
.summary-panel {
  padding: 16px;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 13px;
  color: #666666;
}

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

.summary-row strong {
  color: #1a1a1a;
  font-weight: 500;
}

.left-column {
  border-right: 1px solid #e0e0e0;
}

.right-column {
  border-left: 1px solid #e0e0e0;
}

.infrastructure-panel {
  border-bottom: 1px solid #e0e0e0;
}

.planner-panel, .summary-panel {
  border-bottom: 1px solid #e0e0e0;
}

/* Visual Selection */
.visual-options {
  border: 1px solid #e0e0e0;
  border-radius: 0;
  overflow: hidden;
}

.visual-tabs {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
  background: #fafafa;
}

.visual-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  color: #999999;
  cursor: pointer;
  transition: all 0.2s;
}

.visual-tab:hover {
  color: #1a1a1a;
  background: #ffffff;
}

.visual-tab.active {
  color: #1a1a1a;
  background: #ffffff;
  border-bottom-color: #1a1a1a;
}

.visual-content {
  padding: 16px;
  background: #ffffff;
}

.visual-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emoji-quick-picks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.emoji-pick {
  width: 100%;
  aspect-ratio: 1;
  font-size: 32px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-pick:hover {
  background: #ffffff;
  border-color: #1a1a1a;
  transform: scale(1.05);
}

#imagePreview img {
  max-width: 100%;
  max-height: 120px;
  border: 1px solid #e0e0e0;
}

/* Category List */
.category-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.category-section {
  border-bottom: 1px solid #e0e0e0;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
}

.category-header:hover {
  background: #fafafa;
}

.category-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}

.category-emoji {
  font-size: 18px;
}

.category-toggle {
  font-size: 12px;
  color: #999999;
  transition: transform 0.2s;
}

.category-toggle.expanded {
  transform: rotate(180deg);
}

.category-content {
  display: none;
  padding-bottom: 8px;
}

.category-content.expanded {
  display: block;
}

.category-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 0 8px 0;
}

.category-item {
  display: grid;
  grid-template-columns: 1fr 90px 32px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: #fafafa;
  transition: background 0.2s;
}

.category-item:hover {
  background: #f0f0f0;
}

.item-name {
  font-size: 12px;
  color: #666666;
}

.item-cost {
  display: flex;
  align-items: center;
  gap: 4px;
}

.item-cost-input {
  width: 100%;
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  background: #ffffff;
}

.item-cost-input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.item-add-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  font-size: 16px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.item-add-btn:hover {
  background: #333333;
}

.item-add-btn.added {
  background: #8ac926;
}

.add-new-item {
  display: grid;
  grid-template-columns: 1fr 90px 32px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  margin-top: 4px;
  border-top: 1px dashed #e0e0e0;
}

.add-new-item input {
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  background: #ffffff;
}

.add-new-item input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.add-new-item input::placeholder {
  color: #cccccc;
  font-size: 11px;
}

/* Settings Toggle */
.settings-toggle {
  padding: 16px;
}

/* Advanced Settings Modal */
.advanced-settings {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 250, 0.98);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 120px 20px 24px;
}

.settings-content {
  max-width: 1100px;
  width: min(1100px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  padding: 40px;
}

.settings-content::-webkit-scrollbar {
  width: 8px;
}

.settings-content::-webkit-scrollbar-thumb {
  background: #d9d9d9;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.settings-header h2 {
  margin: 0;
  font-weight: 600;
  font-size: 22px;
}

.settings-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #666666;
}

.settings-body {
  display: block;
}

.settings-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.impact-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.impact-card {
  border: 1px solid #e0e0e0;
  padding: 14px 16px;
  background: #ffffff;
}

.impact-label {
  font-size: 11px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.impact-value {
  font-size: 20px;
  font-weight: 600;
  margin-top: 6px;
}

.impact-meta {
  font-size: 12px;
  color: #777777;
  margin-top: 6px;
}

.settings-card {
  text-align: left;
  padding: 18px 20px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #1a1a1a;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
}

.settings-card:hover {
  background: #ffffff;
  color: #1a1a1a;
  border-color: #1a1a1a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.settings-card.warning {
  border-color: #f0c674;
  background: #fff9e6;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}

.card-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #555555;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-line.ok {
  color: #1b5e20;
}

.status-line.warn {
  color: #b55400;
}

.settings-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 8px;
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
}

.panel-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.panel-header p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #666666;
}

.settings-back {
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #1a1a1a;
  padding: 6px 10px;
  font-size: 12px;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.settings-section {
  border: 1px solid #eaeaea;
  padding: 16px;
  background: #fcfcfc;
}

.settings-section h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.section-hint {
  margin-top: 10px;
  font-size: 12px;
  color: #777777;
}

.settings-section .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.slider-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.preset-chips {
  display: flex;
  gap: 8px;
}

.preset-chips button {
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #1a1a1a;
  padding: 4px 8px;
  font-size: 11px;
}

.scenario-bar {
  background: transparent;
  border: none;
  padding: 0;
}

.revenue-block,
.staffing-block,
.ticket-tiers {
  margin: 0;
}

@media (max-width: 980px) {
  .settings-dashboard,
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .revenue-headers {
    display: none;
  }

  .revenue-row {
    grid-template-columns: 1fr;
  }

  .revenue-row .row-inputs {
    grid-template-columns: 1fr 1fr;
  }

  .tier-headers {
    display: none;
  }

  .staffing-headers {
    display: none;
  }

  .staffing-role {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .team-dialog {
    min-width: auto;
  }

  .team-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

.btn-close {
  width: 32px;
  height: 32px;
  background: transparent;
  color: #999999;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

.advanced-block {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

/* Context Menu */
.context-menu {
  position: fixed;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  min-width: 180px;
  padding: 4px;
}

.context-menu-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 13px;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 2px;
}

.context-menu-item:hover {
  background: #f5f5f5;
}

.context-menu-item.danger {
  color: #ef476f;
}

.context-menu-item.danger:hover {
  background: #ffebef;
}

.context-menu-item.disabled {
  color: #cccccc;
  cursor: not-allowed;
}

.context-menu-item.disabled:hover {
  background: transparent;
}

.context-menu-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 4px 0;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(2px);
}

#appModal.modal-overlay {
  z-index: 10050;
}

.modal-overlay.hidden {
  display: none;
}

.modal-dialog {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 32px;
  min-width: 400px;
  max-width: 90vw;
}

.invite-dialog {
  min-width: 420px;
}

.invite-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.invite-subtitle {
  margin: 6px 0 0;
  color: #666666;
  font-size: 13px;
  line-height: 1.4;
}

.invite-body {
  margin-top: 8px;
}

.invite-code-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f7f7;
  border: 1px dashed #cfcfcf;
  padding: 10px 12px;
  font-size: 14px;
  color: #1a1a1a;
  justify-content: space-between;
}

.invite-success {
  margin-top: 12px;
  padding: 10px 12px;
  background: #e8f5e9;
  border: 1px solid #66bb6a;
  color: #1b5e20;
  font-size: 13px;
}

.team-dialog {
  min-width: 520px;
  max-width: 760px;
}

.team-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.team-subtitle {
  margin: 6px 0 0;
  color: #666666;
  font-size: 13px;
  line-height: 1.4;
}

.team-body {
  margin-top: 8px;
}

.team-loading {
  font-size: 13px;
  color: #666666;
}

.team-empty {
  font-size: 13px;
  color: #666666;
  padding: 8px 0;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
  padding-right: 4px;
}

.team-row {
  display: grid;
  grid-template-columns: 1.2fr 1.6fr 1fr 0.7fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  background: #fafafa;
}

.team-name {
  font-weight: 600;
  color: #1a1a1a;
}

.team-meta {
  font-size: 12px;
  color: #666666;
}

.team-role {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555555;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 4px 8px;
  width: fit-content;
}

.comment-indicator {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.comment-row {
  padding: 8px 10px;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
}

.comment-text {
  font-size: 13px;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.comment-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #777;
}

.comment-delete {
  border: none;
  background: transparent;
  color: #ef5350;
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
}

.comment-delete:hover {
  color: #c62828;
}

.app-modal-dialog {
  min-width: 420px;
}

.app-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.app-modal-message {
  margin: 0 0 16px;
  color: #333333;
  font-size: 14px;
  line-height: 1.5;
}

.app-modal-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-modal-input-row input {
  flex: 1;
}

.app-modal-clear {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  color: #ef5350;
  cursor: pointer;
  font-size: 16px;
}

.app-modal-clear:hover {
  background: #ffebee;
  border-color: #ef5350;
}

.intro-modal {
  align-items: flex-start;
  padding-top: 48px;
}

.intro-dialog {
  width: 100%;
  max-width: 580px;
  padding: 32px;
  box-shadow: 0 24px 50px rgba(10, 20, 30, 0.3);
}

.intro-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.intro-header h3 {
  font-size: 20px;
  margin: 0;
  font-weight: 500;
}

.intro-subtitle {
  margin: 4px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

.intro-step-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #555;
  margin-bottom: 16px;
}

.intro-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #f0f0f0;
  overflow: hidden;
}

.intro-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: #2ec074;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.intro-content {
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 24px;
}

.intro-content p {
  margin-bottom: 12px;
}

.intro-content ul,
.intro-content ol {
  margin: 8px 0 12px;
  padding-left: 18px;
  color: #333;
}

.intro-content li {
  margin-bottom: 6px;
}

.intro-image {
  margin: 12px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.intro-image img {
  width: 100%;
  height: auto;
  display: block;
}

.intro-image figcaption {
  font-size: 12px;
  padding: 8px 12px;
  background: #f8f8f8;
  color: #555;
}

.intro-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.modal-dialog h3 {
  margin: 0 0 24px;
  font-weight: 300;
  font-size: 18px;
  color: #1a1a1a;
}

.resize-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.resize-controls label {
  font-size: 13px;
  color: #666666;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

#size-value {
  font-weight: 500;
  color: #1a1a1a;
}

#size-slider {
  width: 100%;
  height: 4px;
  background: #e0e0e0;
  border: none;
  outline: none;
  -webkit-appearance: none;
}

#size-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #1a1a1a;
  cursor: pointer;
  border-radius: 50%;
}

#size-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #1a1a1a;
  cursor: pointer;
  border-radius: 50%;
  border: none;
}

.resize-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  padding: 32px;
  min-height: 150px;
}

.preview-item {
  font-size: 48px;
  line-height: 1;
  transition: transform 0.1s;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
}

.preview-item img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  justify-content: flex-end;
}

.btn-primary {
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #333333;
}

.btn-secondary {
  background: transparent;
  color: #666666;
  border: 1px solid #e0e0e0;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #f5f5f5;
  color: #1a1a1a;
}

/* Emoji Picker */
.emoji-picker-dialog {
  min-width: 500px;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.emoji-option {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  padding: 12px;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

.emoji-option:hover {
  background: #ffffff;
  border-color: #1a1a1a;
  transform: scale(1.1);
}

.emoji-option.selected {
  border-color: #1a1a1a;
  box-shadow: inset 0 0 0 2px #1a1a1a;
  background: #ffffff;
}

/* Details Editor */
.details-editor-dialog {
  min-width: 700px;
  max-width: 900px;
}

.details-form {
  display: flex;
  flex-direction: column;
}

.details-form.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.details-column {
  min-width: 0;
}

.details-column-right {
  border-left: 1px solid #f0f0f0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.details-column-right .notes-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.details-column-right textarea {
  flex: 1;
  min-height: 0;
}

.details-note-images {
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-images-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
  font-weight: 600;
}

.note-image-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 42px;
}

.note-image-thumbnails-empty {
  font-size: 12px;
  color: #999;
}

.note-image-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.note-image-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-image-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.note-image-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  padding: 16px;
}

.note-image-preview-dialog {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.note-image-preview-dialog img {
  max-width: 80vw;
  max-height: 75vh;
  border-radius: 4px;
  object-fit: contain;
}

.note-image-preview-meta {
  font-size: 12px;
  color: #555;
}

.note-image-preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #ffffff;
  color: #666;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.neuropol-theme {
  background: #03040a;
  color: #f5f6ff;
  font-family: 'Neuropol', 'Segoe UI', sans-serif;
  font-size: 1.3rem;
}

body.neuropol-theme button {
  font-family: 'Neuropol', 'Segoe UI', sans-serif;
  letter-spacing: 0.4px;
}

body.neuropol-theme .layout,
body.neuropol-theme .panel,
body.neuropol-theme .header-bar,
body.neuropol-theme .overview-section,
body.neuropol-theme .map-panel,
body.neuropol-theme .infrastructure-panel,
body.neuropol-theme .planner-panel,
body.neuropol-theme .summary-panel,
body.neuropol-theme .map-toolbar,
body.neuropol-theme .details-editor-dialog,
body.neuropol-theme .modal-dialog,
body.neuropol-theme .user-menu,
body.neuropol-theme .payment-card,
body.neuropol-theme .auth-form {
  background: #060713;
  border-color: #1a1e32;
  color: #f6f7ff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

body.neuropol-theme button:not(.btn-primary) {
  background: #1f243a;
  color: #f6f7ff;
  border-color: #373c60;
}

body.neuropol-theme button:hover {
  background: #2d3261;
}

body.neuropol-theme .btn-primary {
  background: #2ec074;
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(46, 192, 116, 0.45);
  font-family: 'Neuropol', 'Segoe UI', sans-serif;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-weight: 600;
}

body.neuropol-theme input,
body.neuropol-theme textarea,
body.neuropol-theme select {
  background: #0f122a;
  border-color: #2e3354;
  color: #fdfcff;
}

body.neuropol-theme .map-toolbar button.active {
  background: #1f243a;
  color: #f6f7ff;
  border-color: #22274a;
}

body.neuropol-theme .map,
body.neuropol-theme .map-grid {
  background: #02030b;
}

body.neuropol-theme .team-btn {
  background: #0b1021;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .team-dialog,
body.neuropol-theme .team-body {
  background: #02030b;
  border-color: #12162b;
  color: #f6f7ff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

body.neuropol-theme .team-row {
  background: #050713;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .team-meta {
  color: #f6f7ff;
}

body.neuropol-theme .team-role {
  background: #0b1021;
  border-color: #1c2037;
  color: #2ec074;
}

body.neuropol-theme .revenue-row,
body.neuropol-theme .revenue-row .row-inputs,
body.neuropol-theme .revenue-block,
body.neuropol-theme .merch-row,
body.neuropol-theme .onsite-revenue-breakdown,
body.neuropol-theme .ticket-tier-sim,
body.neuropol-theme .ticket-tiers,
body.neuropol-theme .ticket-tier-sim input,
body.neuropol-theme .staffing-block,
body.neuropol-theme .staffing-header,
body.neuropol-theme .staffing-role {
  background: #03040a;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .staffing-role input,
body.neuropol-theme .staffing-role select,
body.neuropol-theme .staffing-role button {
  background: #050713;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .map-item .label {
  background: rgba(5, 7, 16, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8f9ff;
}

body.neuropol-theme .map-item .visual {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
}

body.neuropol-theme .details-note-images,
body.neuropol-theme .comments-list,
body.neuropol-theme .auto-save-indicator,
body.neuropol-theme .budget-warning,
body.neuropol-theme .user-menu {
  background: #0c0f24;
  border-color: #1b1f3a;
  color: #f6f7ff;
}

body.neuropol-theme * {
  font-size: 1.05em;
  line-height: 1.3;
}

body.neuropol-theme * * {
  font-size: inherit;
}

body.neuropol-theme .map-toolbar {
  border-color: #171c32;
}

body.neuropol-theme .header-status {
  gap: 12px;
}

body.neuropol-theme .details-editor-dialog .details-column,
body.neuropol-theme .details-editor-dialog .details-column-right {
  background: transparent;
  border-color: transparent;
}

body.neuropol-theme .details-editor-dialog .details-column input,
body.neuropol-theme .details-editor-dialog .details-column select,
body.neuropol-theme .details-editor-dialog .details-column textarea,
body.neuropol-theme .details-editor-dialog .details-column-right textarea,
body.neuropol-theme .details-editor-dialog .details-column .add-subcost-row input {
  background: #0a0c1d;
  border-color: #1c2038;
  color: #f6f7ff;
}

body.neuropol-theme .details-editor-dialog .details-column label,
body.neuropol-theme .details-editor-dialog .details-column-right label {
  color: #f6f7ff;
}

body.neuropol-theme .details-editor-dialog .details-column .subcost-row,
body.neuropol-theme .details-editor-dialog .details-column .add-subcost-row,
body.neuropol-theme .details-editor-dialog .details-column .staffing-role,
body.neuropol-theme .details-editor-dialog .details-column .subcost-row button,
body.neuropol-theme .details-editor-dialog .details-column .subcost-row input {
  background: #050713;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .details-editor-dialog .details-column .subcost-row .set-subcost-url,
body.neuropol-theme .details-editor-dialog .details-column .subcost-row .delete-subcost,
body.neuropol-theme .details-editor-dialog .details-column .subcost-row .duplicate-subcost {
  background: #0c0f24;
  color: #f6f7ff;
  border-color: #1c2037;
}

body.neuropol-theme .details-editor-dialog .details-note-images,
body.neuropol-theme .details-editor-dialog .comments-list,
body.neuropol-theme .details-editor-dialog textarea {
  background: #050511;
}

body.neuropol-theme .note-image-preview-dialog {
  background: #02030b;
  border-color: #1b1f3a;
  color: #f6f7ff;
}

body.neuropol-theme .note-image-preview-close {
  background: #0b1021;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .note-image-preview-meta {
  color: #f6f7ff;
}

body.neuropol-theme .details-editor-dialog .details-column .subcost-row input,
body.neuropol-theme .details-editor-dialog .details-column .subcost-row textarea {
  background: #050713;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .details-editor-dialog input,
body.neuropol-theme .details-editor-dialog select,
body.neuropol-theme .details-editor-dialog textarea,
body.neuropol-theme .details-editor-dialog .details-column .add-subcost-row input,
body.neuropol-theme .details-editor-dialog .details-column .subcost-row input,
body.neuropol-theme .details-editor-dialog .details-column .subcost-row textarea,
body.neuropol-theme .details-editor-dialog .details-column-right textarea {
  background: #050713 !important;
  border-color: #1c2037 !important;
  color: #f6f7ff !important;
}

body.neuropol-theme .details-editor-dialog .details-column .subcost-row .subcost-row-entry span {
  color: #f6f7ff;
}

body.neuropol-theme .details-editor-dialog .modal-actions {
  border-top: 1px solid #1c2038;
}

body.neuropol-theme .details-editor-dialog .subcost-row > div {
  background: #050713;
  color: #f6f7ff;
  border: 1px solid #1c2037;
}

body.neuropol-theme .details-editor-dialog .subcost-row button {
  background: #0c0f24;
  border-color: #1c2037;
}

body.neuropol-theme .header-bar {
  background: #040511;
  border-color: #0d1124;
}

body.neuropol-theme .header-brand {
  color: #f6f7ff;
}

body.neuropol-theme .auto-save-indicator {
  background: #0c0f24;
  border-color: #1b1f3a;
  color: #f6f7ff;
}

body.neuropol-theme .btn-secondary {
  background: #101229;
  color: #f6f7ff;
  border-color: #1c2142;
}

body.neuropol-theme .btn-secondary:hover {
  background: #1c203c;
}

body.neuropol-theme .filter-btn,
body.neuropol-theme .filter-btn.active {
  color: #f6f7ff;
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

body.neuropol-theme .infra-item {
  background: #050712;
  border-bottom-color: #151a2d;
}

body.neuropol-theme .infra-item:hover {
  background: #0a0f1f;
}

body.neuropol-theme .infra-icon {
  background: #151a33;
  color: #f6f7ff;
}

body.neuropol-theme .infra-name,
body.neuropol-theme .infra-meta,
body.neuropol-theme .infra-cost {
  color: #f6f7ff;
}

body.neuropol-theme .category-section {
  border-color: #151a2d;
}

body.neuropol-theme .category-header,
body.neuropol-theme .category-item {
  background: #03050f;
  color: #f6f7ff;
}

body.neuropol-theme .category-header:hover,
body.neuropol-theme .category-item:hover {
  background: #080c1d;
}

body.neuropol-theme .category-title,
body.neuropol-theme .category-toggle,
body.neuropol-theme .item-name,
body.neuropol-theme .item-cost {
  color: #f6f7ff;
}

body.neuropol-theme .category-item input,
body.neuropol-theme .category-item button {
  background: #0b0f23;
  border-color: #1b1f3a;
  color: #f6f7ff;
}

body.neuropol-theme .overview-section {
  background: #03040a;
  border-bottom: 1px solid #151a2f;
}

body.neuropol-theme .overview-card {
  background: #050713;
  border: 1px solid #1b1f3a;
  box-shadow: none;
}

body.neuropol-theme .overview-label,
body.neuropol-theme .overview-value,
body.neuropol-theme .overview-card .profit-breakdown {
  color: #f6f7ff;
}

body.neuropol-theme .layout {
  background: #03040a;
}

body.neuropol-theme .left-column,
body.neuropol-theme .right-column {
  background: transparent;
}

body.neuropol-theme .infrastructure-panel,
body.neuropol-theme .planner-panel,
body.neuropol-theme .summary-panel,
body.neuropol-theme .map-panel,
body.neuropol-theme .map-toolbar,
body.neuropol-theme .category-list,
body.neuropol-theme .production-summary {
  background: #070a1d;
  border-color: #1b1f3a;
}

body.neuropol-theme .infrastructure-list,
body.neuropol-theme .infrastructure-panel h2,
body.neuropol-theme .panel h2,
body.neuropol-theme .panel h3 {
  color: #f6f7ff;
}

body.neuropol-theme .quick-add,
body.neuropol-theme .summary-row span,
body.neuropol-theme .summary-row strong {
  color: #f6f7ff;
}

body.neuropol-theme .setlist-card {
  background: #040511;
  border-color: #14182f;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

body.neuropol-theme .setlist-card-header,
body.neuropol-theme .setlist-card-window,
body.neuropol-theme .setlist-card-body {
  background: #040511;
  color: #f6f7ff;
  border-color: #14182f;
}

body.neuropol-theme .setlist-card-tabs button {
  background: #10142c;
  border-color: #1d213d;
  color: #f6f7ff;
}

body.neuropol-theme .setlist-card-tabs button.active {
  background: #2ec074;
  color: #010209;
  border-color: #1c2037;
  box-shadow: inset 0 0 0 1px rgba(46, 192, 116, 0.8), 0 0 10px rgba(46, 192, 116, 0.4);
}

body.neuropol-theme .setlist-card .setlist-time-column,
body.neuropol-theme .setlist-card .setlist-stage {
  background: #050717;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .setlist-card .setlist-stage {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

body.neuropol-theme .setlist-card .setlist-event {
  background: #0e1227;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f6f7ff;
  box-shadow: inset 0 -2px 6px rgba(0, 0, 0, 0.5);
}

body.neuropol-theme .setlist-card .setlist-stage-title,
body.neuropol-theme .setlist-card .setlist-stage small,
body.neuropol-theme .setlist-card .setlist-window-row,
body.neuropol-theme .setlist-card .setlist-window-row input {
  color: #f6f7ff;
}

body.neuropol-theme .setlist-card .setlist-stage-title {
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.neuropol-theme .setlist-card .setlist-event small {
  color: rgba(255, 255, 255, 0.65);
}

body.neuropol-theme .category-item,
body.neuropol-theme .category-content {
  background: #03050f;
  border-color: #1b1f3a;
  color: #f6f7ff;
}

body.neuropol-theme .category-item input,
body.neuropol-theme .category-item button,
body.neuropol-theme .quick-add input,
body.neuropol-theme .quick-add select,
body.neuropol-theme .summary-row span,
body.neuropol-theme .summary-row strong {
  background: #040713;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .production-summary,
body.neuropol-theme .summary-row {
  background: transparent;
}

body.neuropol-theme .comment-tooltip,
body.neuropol-theme .tooltip-comment {
  background: #050511;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .map-item .meta,
body.neuropol-theme .color-key-legend {
  background: rgba(3, 5, 13, 0.9);
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .setlist-card .setlist-window-row,
body.neuropol-theme .setlist-card .setlist-window-row input {
  background: #050715;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .setlist-card .setlist-stage,
body.neuropol-theme .setlist-card .setlist-stage-title,
body.neuropol-theme .setlist-card .setlist-stage small {
  background: #050715 !important;
  border-color: #1c2037 !important;
  color: #f6f7ff !important;
}

body.neuropol-theme .modal-dialog h2,
body.neuropol-theme .modal-dialog h3,
body.neuropol-theme .details-editor-dialog h3 {
  color: #2ec074;
  font-family: 'Neuropol', 'Segoe UI', sans-serif;
  letter-spacing: 0.4px;
}

body.neuropol-theme .modal-dialog h4,
body.neuropol-theme .modal-dialog h5,
body.neuropol-theme .details-editor-dialog h4 {
  color: #ff8c2a;
  font-family: 'Neuropol', 'Segoe UI', sans-serif;
  letter-spacing: 0.3px;
}

body.neuropol-theme .advanced-settings,
body.neuropol-theme .settings-content,
body.neuropol-theme .settings-dashboard,
body.neuropol-theme .settings-panel,
body.neuropol-theme .settings-card,
body.neuropol-theme .settings-section {
  background: #03040a;
  border-color: #101429;
  color: #f6f7ff;
}

body.neuropol-theme .settings-header,
body.neuropol-theme .settings-section h4,
body.neuropol-theme .panel-header p {
  color: #ff8c2a;
}

body.neuropol-theme .panel-header h3 {
  color: #2ec074;
}

body.neuropol-theme .section-hint,
body.neuropol-theme .panel p,
body.neuropol-theme .impact-meta,
body.neuropol-theme .category-title,
body.neuropol-theme .category-subtitle,
body.neuropol-theme .revenue-name,
body.neuropol-theme .section-hint,
body.neuropol-theme .staffing-headers span,
body.neuropol-theme .ticket-tiers .section-hint,
body.neuropol-theme .ticket-tier-sim,
body.neuropol-theme .card-status span,
body.neuropol-theme .status-line {
  color: #ffffff;
}

body.neuropol-theme .settings-header h2 {
  color: #2ec074;
}

body.neuropol-theme .impact-card,
body.neuropol-theme .card-status,
body.neuropol-theme .status-line {
  background: #050713;
  border-color: #12162b;
  color: #f6f7ff;
}

body.neuropol-theme .settings-actions button,
body.neuropol-theme .settings-back {
  background: #070b1d;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .settings-section .form-grid input,
body.neuropol-theme .settings-section .form-grid select,
body.neuropol-theme .settings-section .form-grid textarea,
body.neuropol-theme .settings-section .form-grid button {
  background: #03050f;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme #setlistWindows,
body.neuropol-theme .setlist-windows,
body.neuropol-theme .setlist-window {
  background: #050713;
  border: 1px solid #1c2037;
}

body.neuropol-theme .setlist-window-row {
  background: #050713;
  border-color: #1c2037;
}

body.neuropol-theme .ticket-tiers,
body.neuropol-theme .tier-header,
body.neuropol-theme .tier-headers,
body.neuropol-theme .tier-header h3,
body.neuropol-theme .ticket-tier-sim,
body.neuropol-theme .list,
body.neuropol-theme .card-tier {
  background: #03040a;
  border-color: #12162b;
  color: #f6f7ff;
}

body.neuropol-theme .tier-header h3 {
  color: #2ec074;
}

body.neuropol-theme .tier-header button,
body.neuropol-theme .tier-headers,
body.neuropol-theme .ticket-row input,
body.neuropol-theme .revenue-grid input,
body.neuropol-theme .revenue-row,
body.neuropol-theme .revenue-row input {
  background: #040513;
  border-color: #1c2037;
  color: #f6f7ff;
}

body.neuropol-theme .slider-row,
body.neuropol-theme .slider-group {
  background: #03040a;
  border: 1px solid #1c2037;
  border-radius: 10px;
  padding: 12px;
}

body.neuropol-theme .slider-row label,
body.neuropol-theme .slider-row span {
  color: #f6f7ff;
}

body.neuropol-theme input[type='range'] {
  background: transparent;
}

body.neuropol-theme .scenario-bar {
  background: #03040a;
  border: 1px solid #1c2037;
  border-radius: 14px;
  padding: 16px;
}

body.neuropol-theme input[type='range']::-webkit-slider-runnable-track {
  background: #0f8a37;
  height: 6px;
  border-radius: 3px;
}

body.neuropol-theme input[type='range']::-webkit-slider-thumb {
  background: #2ec074;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  margin-top: -6px;
}

body.neuropol-theme input[type='range']::-moz-range-track {
  background: #0f8a37;
  height: 6px;
  border-radius: 3px;
}

body.neuropol-theme input[type='range']::-moz-range-thumb {
  background: #2ec074;
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

body.neuropol-theme p,
body.neuropol-theme .panel p,
body.neuropol-theme label,
body.neuropol-theme .section-hint,
body.neuropol-theme .details-form label,
body.neuropol-theme .details-column label,
body.neuropol-theme .details-column-right label,
body.neuropol-theme .modal-dialog p,
body.neuropol-theme .modal-dialog label,
body.neuropol-theme .modal-dialog .app-modal-message,
body.neuropol-theme .tutorial-card .tutorial-body,
body.neuropol-theme .activity-panel-header,
body.neuropol-theme .activity-panel-line,
body.neuropol-theme .status-line span,
body.neuropol-theme .status-line,
body.neuropol-theme .production-summary,
body.neuropol-theme .setlist-card-window,
body.neuropol-theme .setlist-time-column,
body.neuropol-theme .setlist-stage small {
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

body.neuropol-theme .preset-chips button {
  background: #050713;
  border-color: #1c2037;
  color: #f6f7ff;
}
body.neuropol-theme .modal-dialog label,
body.neuropol-theme .modal-dialog h4,
body.neuropol-theme .details-editor-dialog label {
  color: #ff8c2a;
}

body.neuropol-theme .activity-panel {
  background: #010209;
  border-color: #05070f;
  color: #f6f7ff;
}

body.neuropol-theme .activity-panel-header {
  color: #f6f7ff;
}

body.neuropol-theme .activity-panel-controls button {
  background: #070b1d;
  color: #f6f7ff;
  border-color: #1c2037;
}

body.neuropol-theme .settings-dashboard,
body.neuropol-theme .settings-content,
body.neuropol-theme .control-room-panel {
  background: #03040a;
  border-color: #101429;
  color: #f6f7ff;
}

body.neuropol-theme .settings-panel {
  background: #040713;
  border-color: #12162b;
}

body.neuropol-theme .details-editor-dialog .details-column .subcost-row input,
body.neuropol-theme .details-editor-dialog .details-column .subcost-row textarea,
body.neuropol-theme .details-editor-dialog .details-column .add-subcost-row input,
body.neuropol-theme .details-editor-dialog .details-column-right textarea {
  background: #050713 !important;
  border-color: #1c2037 !important;
  color: #f6f7ff !important;
}

.subcost-row {
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.add-subcost-row input {
  border: 1px solid #e0e0e0;
  border-radius: 2px;
}

.add-subcost-row input:focus {
  outline: none;
  border-color: #1a1a1a;
}

/* Upload Progress Overlay */
.upload-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.upload-progress {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 40px;
  min-width: 400px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.upload-icon {
  font-size: 64px;
  margin-bottom: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.upload-text {
  font-size: 16px;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-weight: 500;
}

.upload-filename {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-left: auto;
  margin-right: auto;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-fill {
  height: 100%;
  background: #2ec074;
  box-shadow: inset 0 0 10px rgba(46, 192, 116, 0.3);
  width: 0%;
  transition: width 0.3s ease;
}

.upload-size {
  font-size: 12px;
  color: #999;
}

@media (max-width: 1200px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .scenario-bar {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .side, .map-panel, .settings {
    grid-column: 1 / -1;
  }
}

/* Authentication Modal */
.auth-modal {
  z-index: 10000;
}

.auth-dialog {
  width: 100%;
  max-width: 420px;
  padding: 40px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h2 {
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px;
  color: #1a1a1a;
}

.auth-header p {
  font-size: 13px;
  color: #666666;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: #1a1a1a;
}

.form-group input {
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 0;
  font-size: 14px;
  background: #ffffff;
  transition: border 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #1a1a1a;
}

.auth-btn {
  margin-top: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 500;
}

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #666666;
  margin: 0;
}

.auth-switch a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.auth-switch a:hover {
  opacity: 0.7;
}

.error-message {
  padding: 12px;
  background: #ffebee;
  border: 1px solid #ef5350;
  color: #c62828;
  font-size: 13px;
  border-radius: 0;
}

/* Auto-save Indicator */
.auto-save-indicator {
  padding: 6px 10px;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  font-size: 11px;
  color: #666666;
  transition: color 0.3s, border-color 0.3s;
  pointer-events: none;
}

.auto-save-indicator.success {
  color: #2e7d32;
  border-color: #4caf50;
}

.auto-save-indicator.error {
  color: #c62828;
  border-color: #ef5350;
}

/* User Menu */
.user-menu {
  position: static;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  box-shadow: none;
}

.user-info {
  font-size: 13px;
  color: #666666;
}

.user-menu .btn-secondary {
  width: auto;
  padding: 6px 10px;
  font-size: 11px;
}

.remote-cursor-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.remote-cursor {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #1a1a1a;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

.remote-cursor .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.header-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  z-index: 10000;
}

.header-brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #1a1a1a;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12px;
  width: auto;
  border-radius: 999px;
  white-space: nowrap;
}

.team-btn .team-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #101229;
  color: #f6f7ff;
  font-size: 11px;
  font-weight: 600;
}

.team-btn.has-members {
  background: #171c2f;
  border-color: #2ec074;
  color: #2ec074;
}

.team-btn.has-members .team-count {
  background: #2ec074;
  color: #010209;
}

.user-name-block {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff7e6;
  border: 1px solid #f0c674;
  padding: 6px 10px;
  border-radius: 6px;
}

.user-name-label {
  font-size: 11px;
  color: #6b4f00;
}

.user-name-input {
  width: 180px;
  padding: 6px 8px;
  font-size: 12px;
  border: 1px solid #e0e0e0;
}

.user-name-block .btn-primary {
  padding: 6px 10px;
  font-size: 11px;
}
#tutorialOverlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
  display: none;
  z-index: 10020;
  pointer-events: none;
  transition: background 0.3s ease;
}

#tutorialOverlay.active {
  display: block;
  pointer-events: auto;
}

.tutorial-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 1px solid #dedede;
  padding: 28px;
  width: min(640px, 90vw);
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Neuropol', 'Segoe UI', sans-serif;
  pointer-events: auto;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.tutorial-card h3 {
  margin: 0;
  color: #2ec074;
}

.tutorial-card .tutorial-step {
  font-size: 24px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.tutorial-card .tutorial-body {
  font-size: 14px;
  line-height: 1.6;
}

.tutorial-card .tutorial-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tutorial-card button {
  border-radius: 999px;
  width: auto;
  padding: 10px 20px;
  min-width: 94px;
}

body.neuropol-theme #tutorialOverlay {
  background: rgba(0, 0, 0, 0.95);
}

body.neuropol-theme #tutorialOverlay .tutorial-card {
  background: #010209;
  border-color: #1c2037;
  color: #f6f7ff;
}

.tutorial-highlight {
  outline: 2px solid #2ec074;
  box-shadow: 0 0 0 8px rgba(46, 192, 116, 0.25);
  position: relative;
  z-index: 10021;
}
