:root {
  color-scheme: light;
  --c-paper: 244 239 237;
  --c-surface: 255 255 255;
  --c-ink: 26 18 19;
  --c-muted: 124 112 113;
  --c-line: 236 229 227;
  --c-amber-soft: 255 244 226;
  --c-grass-soft: 231 246 238;
  --c-wine: 152 38 38;
  --c-wine-dark: 106 22 22;
  --c-wine-light: 189 74 74;
  --c-amber: 180 83 9;
  --c-grass: 21 128 61;
  --c-error: 217 48 37;
  --c-error-soft: 253 236 234;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --c-paper: 22 22 22;
    --c-surface: 35 35 35;
    --c-ink: 237 237 237;
    --c-muted: 163 163 163;
    --c-line: 56 56 56;
    --c-amber-soft: 58 42 16;
    --c-grass-soft: 18 48 31;
    --c-wine: 189 74 74;
    --c-wine-dark: 122 31 43;
    --c-wine-light: 214 120 120;
    --c-amber: 217 145 35;
    --c-grass: 61 173 110;
    --c-error: 224 92 82;
    --c-error-soft: 58 24 22;
  }
}

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: rgb(var(--c-ink));
  background: rgb(var(--c-paper));
  margin: 0;
  padding: 0 0 2.5rem;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
}

/* Wide enough that it's a real browser window, not a phone (matches the
 * step-label breakpoint below) — gives the two side-by-side Nr./Name/Art
 * column blocks (`.preview-cells`, `.jump-grouping-cells`) room to sit next
 * to each other instead of wrapping onto separate lines the way the 720px
 * mobile-first width otherwise forces even on a wide desktop window. */
@media (min-width: 700px) {
  .page {
    max-width: 1040px;
  }
}

.page > h1,
.page > .intro {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.page > h1 {
  position: relative;
  margin: 0 0 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(
    135deg,
    rgb(var(--c-wine)),
    rgb(var(--c-wine-dark))
  );
  border-radius: 0 0 1.25rem 1.25rem;
}

.auth-links {
  margin: 1rem 1.25rem 0;
  font-size: 0.9rem;
  color: rgb(var(--c-muted));
}

.auth-links a {
  color: rgb(var(--c-wine));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Burger menu (page-header nav, see index/admin-lifte/admin-benutzer.html) ---- */

.menu-button {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0.6rem;
  color: #fff;
  cursor: pointer;
}

.menu-button:active {
  transform: translateY(-50%) scale(0.95);
}

.menu-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.menu-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% - 0.6rem);
  right: 0.75rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 13rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 0.35rem;
}

.menu-dropdown a,
.menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  color: rgb(var(--c-ink));
  background: transparent;
  border: none;
  text-decoration: none;
  cursor: pointer;
}

.menu-dropdown a:hover,
.menu-dropdown a:focus-visible,
.menu-dropdown button:hover,
.menu-dropdown button:focus-visible {
  background: rgb(var(--c-paper));
  outline: none;
}

.menu-divider {
  height: 1px;
  margin: 0.35rem 0.5rem;
  background: rgb(var(--c-line));
}

.page > form,
.page > section:not(.hidden) {
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Wizard step indicator ---- */

.wizard-steps {
  margin: 0 1.25rem 1.5rem;
}

.wizard-steps ol {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.wizard-step {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.wizard-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: calc(50% + 1.2rem);
  right: calc(-50% + 1.2rem);
  height: 2px;
  background: rgb(var(--c-line));
}

.wizard-step.completed:not(:last-child)::after {
  background: rgb(var(--c-muted));
}

.step-marker {
  position: relative;
  z-index: 1;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  background: rgb(var(--c-surface));
  border: 2px solid rgb(var(--c-line));
  color: rgb(var(--c-muted));
}

.wizard-step.active .step-marker {
  border-color: rgb(var(--c-wine));
  background: rgb(var(--c-wine));
  color: #fff;
}

.wizard-step.completed .step-marker {
  border-color: rgb(var(--c-muted));
  background: rgb(var(--c-muted));
  color: #fff;
}

.step-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgb(var(--c-muted));
  max-width: 6.5rem;
  line-height: 1.15;
}

.wizard-step.active .step-label {
  color: rgb(var(--c-ink));
  font-weight: 700;
}

.wizard-step.completed .step-label {
  color: rgb(var(--c-muted));
}

@media (max-width: 480px) {
  .step-label {
    display: none;
  }

  .wizard-step.active .step-label {
    display: block;
    position: absolute;
    top: 2.4rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    max-width: none;
  }
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.upload-form h2 {
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.photo-picker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.photo-picker-button {
  margin-left: 0;
}

.photo-picker-filename {
  font-size: 0.85rem;
  color: rgb(var(--c-ink) / 0.7);
}

input[type="file"],
input[type="date"],
input[type="text"],
input[type="email"],
input[type="password"] {
  font: inherit;
  color: rgb(var(--c-ink));
  background: rgb(var(--c-paper));
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.6rem;
  padding: 0.55rem 0.75rem;
}

input[type="file"]:focus-visible,
input[type="date"]:focus-visible,
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
input[type="password"]:focus-visible {
  outline: 2px solid rgb(var(--c-wine));
  outline-offset: 1px;
}

button {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  background: linear-gradient(
    135deg,
    rgb(var(--c-wine)),
    rgb(var(--c-wine-dark))
  );
  color: #fff;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 0.1s ease;
}

button:active {
  transform: scale(0.98);
}

button.secondary {
  background: rgb(var(--c-paper));
  color: rgb(var(--c-wine));
  border: 1px solid rgb(var(--c-line));
  margin-left: 0.75rem;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-button .button-icon {
  width: 1.1rem;
  height: 1.1rem;
}

.submit-button {
  align-self: flex-end;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
}

.message.error {
  background: rgb(var(--c-error-soft));
  border: 1px solid rgb(var(--c-error));
  color: rgb(var(--c-error));
}

.message.success {
  background: rgb(var(--c-grass-soft));
  border: 1px solid rgb(var(--c-grass));
  color: rgb(var(--c-grass));
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.progress-bar-wrapper {
  height: 0.5rem;
  border-radius: 999px;
  background: rgb(var(--c-line));
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgb(var(--c-wine)),
    rgb(var(--c-wine-dark))
  );
  transition: width 0.3s ease;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid rgb(var(--c-line));
  border-top-color: rgb(var(--c-wine));
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

.preview {
  margin-top: 1.5rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.preview h2 {
  margin-top: 0;
}

.preview-hint {
  margin: -0.5rem 0 1rem;
  font-size: 0.9rem;
  color: rgb(var(--c-muted));
}

.crops-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.transfer-section {
  margin-top: 1.5rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.transfer-section h2 {
  margin-top: 0;
}

.transfer-summary {
  font-size: 0.95rem;
  color: rgb(var(--c-muted));
}

.transfer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.transfer-actions button.secondary {
  margin-left: 0;
}

.transfer-actions-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.preview-header img {
  max-width: 100%;
  max-height: 100px;
  display: block;
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.5rem;
}

.preview-cells {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.preview-table {
  border-collapse: collapse;
}

.preview-table th,
.preview-table td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgb(var(--c-line));
}

.preview-cell-image {
  max-width: 140px;
  max-height: 60px;
  object-fit: contain;
  display: block;
  border-radius: 0.4rem;
}

.preview-cell-empty {
  font-size: 0.85rem;
  color: rgb(var(--c-muted));
  font-style: italic;
}

.preview-cell-text {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.preview-cell-text.needs-review {
  background: rgb(var(--c-amber-soft));
  border-left: 4px solid rgb(var(--c-amber));
  border-radius: 0 0.3rem 0.3rem 0;
  padding-left: 0.4rem;
}

.preview-header-load-number {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.preview-cell-text-editable {
  cursor: pointer;
  border-radius: 3px;
  border-bottom: 1px dashed rgb(var(--c-line));
}

.preview-cell-text-editable:hover,
.preview-cell-text-editable:focus-visible {
  background: rgba(var(--c-wine), 0.08);
  outline: none;
}

.preview-cell-text-input {
  width: 100%;
  max-width: 140px;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.1rem 0.3rem;
  border: 1px solid rgb(var(--c-wine));
  border-radius: 0.3rem;
  box-sizing: border-box;
  background: rgb(var(--c-surface));
  color: rgb(var(--c-ink));
}

.preview-cell-button {
  display: block;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 0.4rem;
}

.preview-cell-button:hover,
.preview-cell-button:focus-visible {
  outline: 2px solid rgb(var(--c-wine));
  outline-offset: 2px;
}

/* ---- Cell crop-adjustment dialog ---- */

.cell-crop-dialog {
  border: 1px solid rgb(var(--c-line));
  border-radius: 1rem;
  padding: 1.5rem;
  max-width: min(90vw, 640px);
  background: rgb(var(--c-surface));
  color: rgb(var(--c-ink));
}

.cell-crop-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.cell-crop-dialog h2 {
  margin-top: 0;
}

.cell-crop-intro {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: rgb(var(--c-muted));
}

.cell-crop-canvas-wrapper {
  max-width: 100%;
  cursor: grab;
  touch-action: none;
}

.cell-crop-canvas-wrapper.dragging {
  cursor: grabbing;
}

#cell-crop-canvas {
  display: block;
  max-width: 100%;
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.5rem;
}

.cell-crop-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cell-crop-actions button {
  min-width: 6rem;
}

#cell-crop-cancel-button {
  background: rgb(var(--c-paper));
  color: rgb(var(--c-wine));
  border: 1px solid rgb(var(--c-line));
}

#error-result {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

#error-result button {
  background: rgb(var(--c-paper));
  color: rgb(var(--c-wine));
  border: 1px solid rgb(var(--c-line));
}

.board-preview-figure {
  margin: 0.75rem 0 0;
  padding: 0;
}

.board-preview-figure img {
  max-width: 100%;
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.5rem;
  display: block;
}

.board-preview-figure figcaption {
  font-size: 0.8rem;
  color: rgb(var(--c-muted));
  margin-top: 0.3rem;
}

/* ---- Sprünge festlegen ---- */

.jump-grouping-section {
  margin-top: 1.5rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.jump-grouping-section h2 {
  margin-top: 0;
}

.jump-grouping-hint {
  margin: -0.5rem 0 1rem;
  font-size: 0.9rem;
  color: rgb(var(--c-muted));
}

.jump-grouping-cells {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.jump-grouping-table {
  border-collapse: collapse;
  -webkit-user-select: none;
  user-select: none;
}

.jump-grouping-table th,
.jump-grouping-table td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid rgb(var(--c-line));
}

.jump-entry {
  cursor: pointer;
}

.jump-entry:hover {
  background: rgba(var(--c-wine), 0.06);
}

.jump-entry.selected {
  background: rgba(128, 128, 128, 0.35);
  outline: 1px solid rgba(128, 128, 128, 0.6);
  outline-offset: -1px;
}

.jump-drop-before {
  box-shadow: inset 0 2px 0 0 rgb(var(--c-wine));
}

.jump-drop-after {
  box-shadow: inset 0 -2px 0 0 rgb(var(--c-wine));
}

.jump-drag-handle {
  width: 1.6rem;
  padding: 0 !important;
  text-align: center;
  vertical-align: middle;
  font-size: 0.85rem;
  letter-spacing: -0.15rem;
  color: rgb(var(--c-muted));
  cursor: grab;
  /* Own gesture surface, separate from row click/long-press: no scroll or
   * text-selection interference while dragging via touch. */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.jump-drag-handle:active {
  cursor: grabbing;
  color: rgb(var(--c-wine));
}

.jump-smiley-cell {
  width: 1.6rem;
  padding: 0 !important;
  text-align: center;
  vertical-align: middle;
  font-size: 1.1rem;
}

.jump-bracket-cell {
  width: 0.9rem;
  padding: 0 !important;
  position: relative;
}

.jump-bracket-member::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 3px solid rgb(var(--c-wine));
}

.jump-bracket-member.jump-bracket-start::before {
  top: 50%;
  border-top-left-radius: 0.5rem;
  border-top: 3px solid rgb(var(--c-wine));
}

.jump-bracket-member.jump-bracket-end::before {
  bottom: 50%;
  border-bottom-left-radius: 0.5rem;
  border-bottom: 3px solid rgb(var(--c-wine));
}

.jump-bracket-connector::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px dashed rgba(var(--c-wine), 0.4);
}

.jump-grouping-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.jump-grouping-actions button.secondary {
  margin-left: 0;
}

/* ---- Sprung context menu (desktop right-click) ---- */

.jump-context-menu {
  position: fixed;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-width: 10rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.6rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  padding: 0.35rem;
}

.jump-context-menu button {
  align-self: stretch;
  background: none;
  color: rgb(var(--c-ink));
  border: none;
  border-radius: 0.4rem;
  text-align: left;
  font-weight: 500;
  padding: 0.5rem 0.6rem;
}

.jump-context-menu button:hover,
.jump-context-menu button:focus-visible {
  background: rgba(var(--c-wine), 0.1);
}

/* ---- Sprung mobile action bar (touch long-press fallback) ---- */

.jump-mobile-actionbar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.75rem;
  padding: 0.6rem 0.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.jump-mobile-actionbar span {
  font-size: 0.85rem;
  color: rgb(var(--c-muted));
}

.jump-mobile-actionbar-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.jump-mobile-actionbar-buttons button.secondary {
  margin-left: auto;
}

.jump-mobile-actionbar button {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
}

/* ---- Corner editor ---- */

.corner-editor {
  margin-top: 1.5rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.corner-editor h2 {
  margin-top: 0;
}

.corner-editor-intro {
  margin: 0.5rem 0 0.75rem;
  font-size: 0.9rem;
  color: rgb(var(--c-muted));
}

.corner-editor-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.corner-editor-actions button.secondary {
  margin-left: 0;
}

.canvas-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
  cursor: crosshair;
  touch-action: none; /* prevent scroll-interference while dragging */
}

#corner-canvas {
  display: block;
  max-width: 100%;
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.5rem;
}

.rotate-button {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid rgb(var(--c-line));
  border-radius: 50%;
  background: rgb(var(--c-paper) / 0.85);
  color: rgb(var(--c-wine));
  cursor: pointer;
}

.rotate-button .button-icon {
  width: 1.2rem;
  height: 1.2rem;
}

.rotate-button:hover,
.rotate-button:focus-visible {
  outline: 2px solid rgb(var(--c-wine));
  outline-offset: 1px;
}

.corner-magnifier {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid rgb(var(--c-wine));
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
  background: rgb(var(--c-paper));
}

#corner-magnifier-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- Lifte admin overview ---- */

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 1.25rem 1.5rem;
}

.admin-toolbar-field {
  flex: 1;
  min-width: 12rem;
  max-width: 24rem;
}

.admin-toolbar-field input[type="search"] {
  font: inherit;
  color: rgb(var(--c-ink));
  background: rgb(var(--c-paper));
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.6rem;
  padding: 0.55rem 0.75rem;
}

.admin-toolbar-field input[type="search"]:focus-visible {
  outline: 2px solid rgb(var(--c-wine));
  outline-offset: 1px;
}

.admin-table-wrapper {
  margin: 0 1.25rem 1.5rem;
  background: rgb(var(--c-surface));
  border: 1px solid rgb(var(--c-line));
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
}

.admin-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: rgb(var(--c-muted));
}

.admin-table tbody tr:hover {
  background: rgba(var(--c-wine), 0.05);
}

.admin-lift-dialog {
  max-width: min(90vw, 960px);
}

.admin-lift-json {
  max-height: 40vh;
  overflow: auto;
  background: rgb(var(--c-paper));
  border: 1px solid rgb(var(--c-line));
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
}
