body {
  font-family: 'Inter', system-ui, sans-serif;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.grid-bg {
  background-color: #070a12;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 10px 10px, 10px 10px, 50px 50px, 50px 50px;
  background-position: 0 0, 0 0, 0 0, 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
  border: none;
  outline: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.modal {
  max-width: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.modal[open] {
  display: grid;
  place-items: center;
}

.modal-box {
  position: relative;
  z-index: 2;
  background: rgba(2, 6, 23, 0.92);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.modal-backdrop button {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: default;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

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

input.editable {
  background: transparent;
  border: 1px dashed transparent;
  transition: border-color 0.2s, background-color 0.2s;
  text-overflow: ellipsis;
  border-radius: 4px;
  padding: 2px 4px;
  margin: -2px -4px;
}

input.editable:hover {
  border-color: rgba(100, 116, 139, 0.35);
  background-color: rgba(100, 116, 139, 0.04);
}

input.editable:focus {
  border-color: rgba(14, 165, 233, 0.6);
  background-color: rgba(14, 165, 233, 0.05);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.exporting .no-export {
  display: none !important;
}

.exporting input.editable {
  border-color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.exporting .tearoff-bg {
  overflow: visible !important;
}

.exporting .tearoff-bg p,
.exporting .tearoff-bg .truncate {
  overflow: visible !important;
  text-overflow: clip !important;
}

.ticket-band-title-export {
  display: none;
}

.exporting .ticket-band-title-screen {
  display: none !important;
}

.exporting .ticket-band-title-export {
  display: block !important;
}

.exporting .ticket-band-icon {
  transform: rotate(-90deg) !important;
  transform-origin: 50% 50% !important;
}

.special-message-label-export {
  display: none;
}

.exporting .special-message-label-screen {
  display: none !important;
}

.exporting .special-message-label-export {
  display: block !important;
  height: 16px !important;
}

.color-picker-wrapper {
  position: relative;
  overflow: hidden;
}

.color-picker-wrapper input[type="color"] {
  position: absolute;
  inset: -8px;
  width: calc(100% + 16px);
  height: calc(100% + 16px);
  cursor: pointer;
  border: none;
  padding: 0;
}

.ticket-shadow {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04),
    0 0 0 1px rgba(0, 0, 0, 0.02);
}

.drag-zone {
  cursor: grab;
}

.drag-zone:active {
  cursor: grabbing;
}

.dotted-separator {
  width: 0;
  border-left: 3px dotted #94a3b8;
  position: absolute;
  top: 12px;
  bottom: 12px;
  z-index: 5;
}

.tearoff-bg {
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(0, 0, 0, 0.015) 20px, rgba(0, 0, 0, 0.015) 40px);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
