:root {
  --bg: #1a1a2e;
  --surface: #2a2a3e;
  --border: #3a3a5e;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #64ffda;
  --danger: #e17055;
  --warning: #fdcb6e;
  --col-left-w: 320px;
  --col-right-w: 180px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, sans-serif;
  font-size: 14px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at top left, rgba(100, 255, 218, 0.12), transparent 32%),
    linear-gradient(160deg, #151523 0%, #1a1a2e 60%, #12121d 100%);
}

.login-card {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(42, 42, 62, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.login-card h1 {
  font-size: 28px;
  line-height: 1.1;
}

.login-kicker,
.login-copy,
.login-error,
.user-chip {
  color: var(--text-muted);
}

.login-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}

.login-label input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.login-error {
  min-height: 18px;
  color: #ff9f7d;
}

.login-submit {
  margin-top: 6px;
}

#force-password-screen,
#reset-screen {
  z-index: 5;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 6px;
}

header { background: var(--surface); border-bottom: 1px solid var(--border); flex-shrink: 0; }

.tabs {
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 4px;
}

.tab {
  padding: 10px 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-size: 14px;
}

.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.app-title {
  margin-left: 12px;
  font-weight: bold;
  color: var(--text-muted);
  font-size: 13px;
}

.user-chip {
  margin-left: auto;
  font-size: 12px;
}

.locale-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 12px;
}

.locale-switch select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 6px;
}

.help-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12px;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
}

.help-link:hover {
  color: var(--accent);
  border-color: var(--border);
}

.tab-content { display: none; flex: 1; overflow: hidden; }
.tab-content.active { display: flex; flex-direction: column; }

/* ============================================================
   Match Tab Layout
   ============================================================ */

.match-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  height: 100%;
  overflow: hidden;
}

/* Bildbereich: Thumbnails + Canvas nebeneinander */
.match-image-area {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Thumbnail-Spalte */
.match-thumbs {
  width: 96px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}

.match-thumbs .thumbnail-grid {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: none;
}

.match-thumbs .thumb-item {
  width: 100%;
  aspect-ratio: 1;
  flex-shrink: 0;
}

.match-thumbs .thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.btn-upload-side {
  display: block;
  text-align: center;
  padding: 8px 4px;
  font-size: 11px;
  flex-shrink: 0;
  border-top: 1px solid var(--border);
  cursor: pointer;
  color: var(--accent);
}

/* Canvas-Bereich innerhalb match-left */
.match-canvas-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* Linke Spalte: Toolbar + Bildbereich */
.match-left {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 0 0 0;
  border-right: 1px solid var(--border);
  gap: 6px;
}

.match-left .match-toolbar {
  padding: 0 10px;
}

.match-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
}

.cluster-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px 6px;
  flex-wrap: wrap;
}

.cluster-strip-copy {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cluster-limit-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.cluster-limit-select {
  min-width: 64px;
}

.cluster-shift-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.cluster-grid {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cluster-swatch {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.cluster-swatch.active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.toolbar-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  color: var(--text-muted);
}

.match-temperature-control {
  flex: 1;
  min-width: 240px;
}

.temperature-slider-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  min-height: 33px;
}

.temperature-slider-wrap input[type="range"] {
  flex: 1;
  min-width: 120px;
}

.temperature-side,
.temperature-value {
  font-size: 11px;
  white-space: nowrap;
}

.temperature-value {
  color: var(--accent);
  min-width: 58px;
  text-align: right;
}

#btn-match {
  margin-left: auto;
  align-self: flex-end;
}

.toolbar-label select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 13px;
}

/* Zoom-fähiger Canvas-Container — nimmt allen verbleibenden Platz */
.canvas-wrapper {
  flex: 1;
  overflow: auto;
  background: var(--surface);
  border-radius: 6px;
  min-height: 0;
  min-width: 0;
}

.match-canvas-col .image-bar {
  padding: 4px 10px;
  flex-shrink: 0;
}

.canvas-wrapper canvas {
  display: block;
  transform-origin: top left;
  cursor: crosshair;
}

/* Zoom-Leiste + Upload-Button in einer Zeile */
.image-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.image-bar-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.zoom-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

#zoom-label { min-width: 38px; text-align: center; }

.thumbnail-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  max-height: 80px;
  overflow-y: auto;
}

/* Rechte Spalte: Ergebnis + gespeicherte Mixes */
.match-right {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 10px;
  gap: 0;
}

.panel-section {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.panel-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

/* Zielfarbe neben Tubes */
.target-display-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.target-display-small {
  width: 32px;
  min-height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
  align-self: stretch;
}

/* Gespeicherte Mixes Grid */
.saved-mixes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 0;
}

.saved-mix-item {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  cursor: pointer;
  touch-action: manipulation;
  border: 2px solid transparent;
  transition: border-color 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.saved-mix-item:hover { border-color: var(--accent); transform: scale(1.08); }
.saved-mix-item.active-marker { border-color: #ff4757; box-shadow: 0 0 0 2px #ff475744; }

.saved-mix-swatch {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.saved-mix-del {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 11px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.saved-mix-item:hover .saved-mix-del { display: flex; }
.saved-mix-del:hover { color: var(--danger); border-color: var(--danger); }

.empty-hint {
  font-size: 12px;
  color: var(--text-muted);
  padding: 8px 0;
}

.col-header {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.toolbar label { font-size: 13px; color: var(--text-muted); }
.toolbar select, select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 4px 8px;
  border-radius: 4px;
}

/* Buttons */
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
}

.btn-primary:disabled { opacity: 0.4; cursor: default; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.btn-danger {
  background: var(--danger);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
}

.full-width { width: 100%; margin-top: 8px; }

/* Canvas — Größe wird per JS/Zoom gesetzt, kein CSS-Scaling mehr */
#image-canvas {
  display: block;
  cursor: crosshair;
}

/* Target info */
.target-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* Image Library */
.image-library { margin-top: 12px; }

.library-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.btn-upload {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.thumb-item {
  position: relative;
  cursor: pointer;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
}

.thumb-item.active { border-color: var(--accent); }

.thumb-item img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  display: block;
}

.thumb-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0,0,0,0.7);
  color: var(--danger);
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.thumb-item:hover .thumb-delete { display: flex; }

/* Mix Result */
.mix-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  color: var(--text-muted);
  text-align: center;
  background: var(--surface);
  border-radius: 8px;
  padding: 16px;
}

.empty-icon { font-size: 28px; margin-bottom: 8px; }

.tube-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px;
  background: var(--surface);
  border-radius: 6px;
}

.tube-color {
  width: 36px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.tube-info { flex: 1; min-width: 0; }
.tube-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tube-line { font-size: 11px; color: var(--text-muted); }
.tube-ratio { font-size: 13px; color: var(--accent); font-weight: bold; min-width: 40px; text-align: right; }

.mix-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.delta-e-bar {
  margin-top: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.de-good { color: #55efc4; }
.de-ok   { color: var(--warning); }
.de-bad  { color: var(--danger); }

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

.tint-white-select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  cursor: pointer;
}

.tint-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.tint-label { font-size: 10px; color: var(--text-muted); width: 32px; text-align: right; }

.tint-swatch {
  flex: 1;
  height: 26px;
  border-radius: 4px;
  border: 2px solid transparent;
}

.tint-swatch.current { border-color: var(--accent); }

.target-display {
  width: 100%;
  height: 40px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
}

/* Palette Builder */
.palette-builder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 16px;
  height: 100%;
  overflow: auto;
}

.palette-editor-left, .palette-editor-right { display: flex; flex-direction: column; gap: 8px; }

.filter-row { display: flex; gap: 8px; }
.filter-row select { flex: 1; }

.search-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
}

.paint-result-item, .palette-paint-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: var(--surface);
  border-radius: 6px;
  margin-bottom: 4px;
}

.paint-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.1);
}

.paint-item-info { flex: 1; min-width: 0; }
.paint-item-name { font-size: 13px; }
.paint-item-line { font-size: 11px; color: var(--text-muted); }

.palette-header-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.palette-header-row select { flex: 1; }

h3 { font-size: 14px; color: var(--text-muted); font-weight: 600; }

#paint-search-results, #active-palette-paints {
  overflow-y: auto;
  flex: 1;
}

/* ============================================================
   Admin Tab
   ============================================================ */

.admin-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 16px;
  gap: 16px;
}

.admin-panel {
  background: var(--surface);
  border-radius: 8px;
  padding: 16px;
  flex-shrink: 0;
}

.admin-customer-form {
  margin-bottom: 12px;
}

.admin-title {
  font-size: 15px;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 600;
}

/* Sub-Tabs */
.admin-subtabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.admin-subtab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 16px;
  font-size: 13px;
}

.admin-subtab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.admin-subtab-content { display: none; }
.admin-subtab-content.active { display: block; }

/* Form */
.admin-form { display: flex; flex-direction: column; gap: 10px; }

.admin-form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.admin-form-row label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-form-row label input {
  min-width: 220px;
}

.admin-form-row input[type="text"],
.admin-form-row select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  min-width: 180px;
}

.admin-file-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-file-label input[type="file"] {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.admin-hint {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.admin-hint code {
  color: var(--accent);
  font-size: 11px;
}

/* Status */
.admin-status {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border);
}

.admin-status.success { border-color: #55efc4; color: #55efc4; background: rgba(85,239,196,0.07); }
.admin-status.error   { border-color: var(--danger); color: var(--danger); background: rgba(225,112,85,0.07); }
.admin-status.info    { border-color: var(--accent); color: var(--accent); background: rgba(100,255,218,0.07); }

.customer-name-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customer-subline {
  font-size: 12px;
  color: var(--text-muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge.active {
  color: var(--accent);
  border-color: rgba(100,255,218,0.35);
  background: rgba(100,255,218,0.08);
}

.status-badge.blocked,
.status-badge.deactivated {
  color: #ffb0a1;
  border-color: rgba(225,112,85,0.3);
  background: rgba(225,112,85,0.12);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

/* Preview Panel */
.admin-preview-panel {
  flex: 1;
  background: var(--surface);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.admin-preview-header h3 {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
  margin-right: auto;
}

.admin-preview-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-count {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.btn-sm {
  padding: 4px 10px !important;
  font-size: 12px !important;
}

/* Table */
.admin-table-wrap {
  overflow: auto;
  flex: 1;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  background: var(--bg);
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table td {
  padding: 5px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:hover td { background: rgba(255,255,255,0.03); }
.admin-table tr.selected td { background: rgba(100,255,218,0.05); }

.admin-swatch-cell {
  width: 36px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  display: inline-block;
}

.admin-table input[type="text"] {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text);
  padding: 3px 6px;
  border-radius: 3px;
  font-size: 13px;
  width: 100%;
  min-width: 160px;
}

.admin-table input[type="text"]:focus {
  background: var(--bg);
  border-color: var(--accent);
  outline: none;
}

.admin-table input[type="text"].pigment {
  min-width: 110px;
  color: var(--text-muted);
  font-size: 12px;
}

.admin-table td.hex-cell {
  font-family: monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.admin-table td .btn-row-del {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 2px 6px;
  border-radius: 3px;
}

.admin-table td .btn-row-del:hover { color: var(--danger); }

/* ============================================================
   iOS Safari / iPad Fix
   ============================================================ */

/* Verhindert dass 100vh die Browser-Toolbar einrechnet */
html {
  height: -webkit-fill-available;
}

body {
  min-height: -webkit-fill-available;
}

/* Tabs horizontal scrollbar auf kleinen Screens */
@media (max-width: 768px) {
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding: 0 8px;
  }

  .tab {
    flex-shrink: 0;
    padding: 10px 14px;
    font-size: 13px;
  }

  .app-title {
    flex-shrink: 0;
  }

  .match-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .match-toolbar {
    flex-wrap: wrap;
  }

  .match-temperature-control {
    min-width: 100%;
  }

  #btn-match {
    margin-left: 0;
  }

  .match-right {
    max-height: 280px;
    border-top: 1px solid var(--border);
    border-right: none;
  }
}
