/* eufyMake E1 Print Cost Calculator – standalone styles (shares base look with Ink Gauge) */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --muted: #f5f5f5;
  --muted-foreground: #737373;
  --border: #e5e5e5;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --eufy: #fb923c;
  --emerald-600: #ea580c;
  --emerald-500: #f97316;
  --radius: 0.5rem;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.dark {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #0a0a0a;
  --muted: #262626;
  --muted-foreground: #a3a3a3;
  --border: #262626;
  --popover: #0a0a0a;
  --popover-foreground: #fafafa;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* Ambient gradient */
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 9999px; filter: blur(80px); }
.blob-top { top: -10rem; left: 50%; transform: translateX(-50%); width: 24rem; height: 24rem; background: rgba(251, 146, 60, 0.10); }
.blob-right { top: 33%; right: -5rem; width: 20rem; height: 20rem; background: rgba(251, 146, 60, 0.05); }

.container {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
@media (min-width: 640px) { .container { padding: 3rem 1.25rem; } }

/* Header */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.header { display: flex; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .header { margin-bottom: 2rem; } }
.brand { display: flex; align-items: center; gap: 0.625rem; min-width: 0; }
@media (min-width: 640px) { .brand { gap: 0.75rem; } }
.logo {
  display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 1rem;
  background: linear-gradient(to bottom right, #fb923c, #ea580c);
  color: #fff; box-shadow: 0 10px 15px -3px rgba(251, 146, 60, 0.3);
  flex-shrink: 0;
}
@media (min-width: 640px) { .logo { width: 2.75rem; height: 2.75rem; } .logo svg { width: 30px; height: 30px; } }
.brand-text { min-width: 0; }
.brand-text h1 { margin: 0; font-size: 1.375rem; font-weight: 600; line-height: 1.25; white-space: pre-line; }
@media (min-width: 640px) { .brand-text h1 { font-size: 1.75rem; } }
.subtitle { margin: 0; font-size: 0.75rem; color: var(--muted-foreground); }
@media (min-width: 640px) { .subtitle { font-size: 0.875rem; } }

.controls { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; border-radius: 9999px;
  border: 1px solid var(--border); background: rgba(245,245,245,0.6);
  color: var(--foreground); cursor: pointer; transition: background 0.15s;
}
.dark .icon-btn { background: rgba(38,38,38,0.6); }
.icon-btn:hover { background: var(--muted); }
.icon-btn svg { width: 16px; height: 16px; }

.lang-wrap { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.375rem;
  border-radius: 9999px; border: 1px solid var(--border);
  background: rgba(245,245,245,0.6); color: var(--foreground);
  padding: 0.375rem 0.5rem; font-size: 0.75rem; font-weight: 500; cursor: pointer;
  font-family: var(--font); transition: background 0.15s;
}
.dark .lang-btn { background: rgba(38,38,38,0.6); }
.lang-btn:hover { background: var(--muted); }
.lang-btn .globe { width: 14px; height: 14px; color: var(--eufy); }
.lang-btn .chev { width: 14px; height: 14px; color: var(--muted-foreground); transition: transform 0.15s; }
.lang-btn.open .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 0.375rem);
  width: 11rem; border: 1px solid var(--border); background: var(--popover);
  color: var(--popover-foreground); border-radius: 0.75rem; padding: 0.25rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3); z-index: 30;
}
.lang-item {
  display: flex; align-items: center; gap: 0.5rem; width: 100%;
  padding: 0.5rem 0.625rem; border: none; background: transparent;
  color: inherit; font-size: 0.875rem; text-align: left; cursor: pointer;
  border-radius: 0.5rem; font-family: var(--font);
}
.lang-item:hover { background: var(--muted); }
.lang-item.active { background: rgba(251, 146, 60, 0.15); }
.lang-item .check { width: 14px; height: 14px; color: var(--eufy); margin-left: auto; }

/* Card */
.card {
  border: 1px solid var(--border); background: var(--card);
  border-radius: 1.5rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; gap: 1.25rem;
}
@media (min-width: 640px) { .card { padding: 1.75rem; } }

.field { display: flex; flex-direction: column; }
.label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }

/* Cartridge grid */
.cart-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.5rem; }
@media (min-width: 640px) { .cart-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.cart-btn {
  display: flex; align-items: center; gap: 0.5rem; text-align: left;
  border: 1px solid var(--border); background: rgba(245,245,245,0.5); color: var(--foreground);
  border-radius: 0.75rem; padding: 0.625rem 0.75rem; cursor: pointer; transition: all 0.15s;
  font-family: var(--font);
}
.dark .cart-btn { background: rgba(38,38,38,0.5); }
.cart-btn:hover { background: var(--muted); }
.cart-btn.active { box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.cart-dot { width: 0.75rem; height: 0.75rem; border-radius: 9999px; flex-shrink: 0; }
.cart-label { display: block; font-weight: 500; font-size: 0.875rem; }
.cart-meta { display: block; font-size: 0.75rem; color: var(--muted-foreground); }
.cart-weight { text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }

/* Input */
.input {
  width: 100%; border: 1px solid var(--border); background: var(--background);
  color: var(--foreground); border-radius: 0.75rem; padding: 0.75rem 1rem;
  font-size: 1.125rem; font-family: var(--font); outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--muted-foreground); opacity: 0.7; }
.input:focus { border-color: rgba(251, 146, 60, 0.5); box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.2); }

/* Actions */
.actions { display: flex; gap: 0.75rem; }
.btn {
  border: none; cursor: pointer; font-family: var(--font); font-weight: 600;
  border-radius: 0.75rem; padding: 0.75rem 1rem; font-size: 0.875rem; transition: all 0.15s;
}
.btn-primary {
  flex: 1; color: #fff; background: linear-gradient(to right, var(--eufy), var(--emerald-600));
  box-shadow: 0 10px 15px -3px rgba(251, 146, 60, 0.3); display: flex; align-items: center; justify-content: center;
}
.btn-primary:hover { background: linear-gradient(to right, var(--eufy), var(--emerald-500)); }
.btn-ghost {
  display: flex; align-items: center; gap: 0.375rem; border: 1px solid var(--border);
  background: rgba(245,245,245,0.5); color: var(--foreground);
}
.dark .btn-ghost { background: rgba(38,38,38,0.5); }
.btn-ghost:hover { background: var(--muted); }

/* Result */
.result-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.result-empty {
  border: 1px solid var(--border); background: rgba(245,245,245,0.4);
  border-radius: 1rem; padding: 2rem; text-align: center; color: var(--muted-foreground);
}
.dark .result-empty { background: rgba(38,38,38,0.4); }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem; }
.result-cell { border: 1px solid var(--border); background: rgba(245,245,245,0.4); border-radius: 1rem; padding: 1rem; text-align: center; }
.dark .result-cell { background: rgba(38,38,38,0.4); }
.result-cell-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.result-cell-value { margin-top: 0.25rem; font-size: 1.875rem; font-weight: 600; line-height: 1; }
.result-unit { margin-left: 0.25rem; font-size: 1rem; font-weight: 400; color: var(--muted-foreground); }
.progress { height: 0.75rem; width: 100%; border-radius: 9999px; background: var(--muted); overflow: hidden; margin-top: 0.25rem; }
.progress-bar { height: 100%; border-radius: 9999px; background: var(--eufy); transition: width 0.5s; }
.formula-box { margin-top: 0.5rem; border: 1px solid var(--border); background: rgba(245,245,245,0.3); border-radius: 1rem; padding: 1rem; }
.dark .formula-box { background: rgba(38,38,38,0.3); }
.formula-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.formula-text { margin-top: 0.375rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.875rem; word-break: break-word; }
@media (min-width: 640px) { .formula-text { font-size: 1rem; } }

/* Note */
.note {
  margin-top: 1.25rem; display: flex; align-items: flex-start; gap: 0.5rem;
  border: 1px solid rgba(251, 146, 60, 0.2); background: rgba(251, 146, 60, 0.05);
  border-radius: 1rem; padding: 1rem;
}
.note[hidden] { display: none; }
.note-icon { color: var(--eufy); flex-shrink: 0; margin-top: 0.125rem; }
.note-text { margin: 0; font-size: 0.75rem; line-height: 1.6; color: var(--foreground); opacity: 0.8; }

/* Counter */
.counter { margin-top: 1rem; text-align: center; font-size: 0.75rem; color: var(--muted-foreground); }
.counter-value { font-weight: 500; color: var(--foreground); }

/* Section cards */
.section-title { margin: 0 0 1rem; font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.section-title .badge {
  font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--muted-foreground); border: 1px solid var(--border); border-radius: 9999px;
  padding: 0.0625rem 0.5rem;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.75rem; }
@media (max-width: 480px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.field-sm .label { font-size: 0.75rem; color: var(--muted-foreground); font-weight: 400; margin-bottom: 0.25rem; }
.input-sm { padding: 0.5rem 0.625rem; font-size: 0.9375rem; }
.input-suffix-wrap { position: relative; }
.input-suffix-wrap .input { padding-right: 2.5rem; }
.input-suffix { position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); font-size: 0.8125rem; color: var(--muted-foreground); pointer-events: none; }

/* Currency select in topbar */
.currency-select {
  border-radius: 9999px; border: 1px solid var(--border);
  background: rgba(245,245,245,0.6); color: var(--foreground);
  padding: 0.375rem 0.5rem; font-size: 0.75rem; font-weight: 500; cursor: pointer;
  font-family: var(--font);
}
.dark .currency-select { background: rgba(38,38,38,0.6); }

/* Unit toggle (mm / inches) */
.unit-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 0.75rem; padding: 0.1875rem; gap: 0.1875rem; width: fit-content; }
.unit-btn {
  border: none; background: none; padding: 0.375rem 0.75rem; border-radius: 0.5rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--muted-foreground); cursor: pointer; font-family: var(--font);
}
.unit-btn.active { background: var(--eufy); color: #0a0a0a; }

/* Layer counts per ink step (Ink Mode) */
.layer-wrap { margin-top: 0.75rem; }
.layer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.layer-step {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem 0.25rem 0.75rem;
  border: 1px solid var(--border); border-radius: 0.625rem; background: rgba(245,245,245,0.5);
}
.dark .layer-step { background: rgba(38,38,38,0.5); }
.layer-name { font-size: 0.8125rem; color: var(--muted-foreground); }
.layer-input {
  width: 2.75rem; border: none; background: transparent; color: var(--foreground);
  font-family: var(--font); font-size: 0.9375rem; font-weight: 600; text-align: right; outline: none;
}
.layer-arrow { color: var(--muted-foreground); font-size: 0.875rem; }
.layer-wrap .subtitle { margin: 0.5rem 0 0; }

/* Bulk price quick-fill */
.bulk-price-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.bulk-price-row .input { flex: 1; }
.bulk-price-row .btn { flex-shrink: 0; white-space: nowrap; }

/* Ink cost rows */
.ink-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border);
}
.ink-row:last-child { border-bottom: none; }
.ink-row-name { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; min-width: 0; }
.ink-row-cost { font-size: 0.875rem; font-weight: 600; text-align: right; min-width: 3.5rem; }
@media (max-width: 480px) {
  .ink-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; row-gap: 0.5rem; padding: 0.75rem 0 1.25rem; }
  .ink-row:last-child { padding-bottom: 0.5rem; }
  .ink-row-name { grid-column: 1 / -1; }
  .ink-row-cost { min-width: 3.25rem; }
  .ink-row .input-sm { font-size: 0.875rem; padding: 0.5rem 0.5rem; }
  /* Größeneinheit in eigener Zeile, Breite und Höhe nebeneinander */
  .field-unit { grid-column: 1 / -1; }
  .mode-grid select.input-sm { font-size: 0.875rem; padding: 0.5rem 0.25rem 0.5rem 0.5rem; }
}

/* Handwerksmodus schmaler, damit der Tintenmodus mit langen Namen lesbar bleibt */
.mode-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
@media (max-width: 399px) { .mode-grid { grid-template-columns: 1fr; } }

/* Divider between sub-groups inside one card */
.subsection { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px dashed var(--border); }
.subsection:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* Checkbox row */
.check-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; cursor: pointer; }
.check-row input[type="checkbox"] { width: 1.125rem; height: 1.125rem; accent-color: var(--eufy); cursor: pointer; }

/* Image upload */
.upload-box {
  border: 2px dashed var(--border); border-radius: 1rem; padding: 1.5rem; text-align: center;
  cursor: pointer; transition: border-color 0.15s; color: var(--muted-foreground); font-size: 0.875rem;
}
.upload-box:hover, .upload-box.drag { border-color: var(--eufy); color: var(--foreground); }
.upload-preview { display: flex; align-items: center; gap: 0.75rem; }
.upload-preview[hidden] { display: none; }
.upload-preview img { width: 3.5rem; height: 3.5rem; object-fit: cover; border-radius: 0.5rem; border: 1px solid var(--border); }
.upload-preview-info { font-size: 0.8125rem; color: var(--muted-foreground); flex: 1; min-width: 0; }
.link-btn {
  background: none; border: none; padding: 0; color: var(--eufy); font-size: 0.8125rem;
  font-family: var(--font); cursor: pointer; text-decoration: underline;
}

/* Result breakdown */
.breakdown { display: flex; flex-direction: column; gap: 0.5rem; }
.breakdown-row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.875rem; padding: 0.375rem 0; }
.breakdown-row.total { border-top: 1px solid var(--border); margin-top: 0.25rem; padding-top: 0.625rem; font-weight: 600; font-size: 1rem; }
.breakdown-label { color: var(--muted-foreground); }
.breakdown-row.total .breakdown-label { color: var(--foreground); }
.hero-result { text-align: center; padding: 0.5rem 0 1rem; }
.hero-result-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); }
.hero-result-value { font-size: 2.5rem; font-weight: 700; line-height: 1.1; margin-top: 0.25rem; }
.hero-result-sub { font-size: 0.8125rem; color: var(--muted-foreground); margin-top: 0.375rem; }

/* Back link + tool footer */
.back-link {
  display: inline-block; font-size: 0.8125rem;
  color: var(--muted-foreground); text-decoration: none; flex-shrink: 0;
}
.back-link:hover { color: var(--foreground); text-decoration: underline; }
.support-line {
  margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 0.375rem; font-size: 0.8125rem; color: var(--muted-foreground);
}
.support-line svg { flex-shrink: 0; color: var(--eufy); }
.support-line a { color: var(--eufy); font-weight: 500; text-decoration: none; }
.support-line a:hover { text-decoration: underline; }
.tool-footer {
  margin-top: 1rem; text-align: center; font-size: 0.75rem;
  color: var(--muted-foreground); display: flex; justify-content: center;
  gap: 0.5rem; flex-wrap: wrap;
}
.tool-footer a { color: inherit; text-decoration: none; }
.tool-footer a:hover { text-decoration: underline; color: var(--foreground); }
/* Preisanzeige pro kg unter der Rollenangabe */
.spool-price-per-g { font-size: 0.875rem; color: var(--muted-foreground); }
.spool-price-per-g::before { content: none; }

/* Bestand & Sichern */
.summary-line { margin: 0; font-size: 0.875rem; color: var(--muted-foreground); }
.spool-list { display: flex; flex-direction: column; }
.spool-row { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.spool-row:last-child { border-bottom: none; }
.spool-name { font-size: 0.9375rem; font-weight: 600; }
.spool-meta { font-size: 0.8125rem; color: var(--muted-foreground); }
.spool-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.spool-remaining { display: flex; align-items: center; gap: 0.375rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.spool-remaining .input { width: 6rem; }
.spool-value { font-size: 0.8125rem; color: var(--muted-foreground); }
.spool-actions { display: flex; align-items: center; gap: 0.5rem; }
.btn-small { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-danger { color: #f87171; }
.empty-state {
  border: 1px dashed var(--border); border-radius: 1rem; padding: 1.25rem;
  text-align: center; color: var(--muted-foreground); font-size: 0.875rem;
}
.backup-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.status { min-height: 1.25em; margin: 0; font-size: 0.8125rem; color: var(--eufy); }
.status.error { color: #f87171; }

.spool-use { display: flex; align-items: center; gap: 0.5rem; }
.spool-use .input { flex: 1; min-width: 0; max-width: 11rem; }

/* Farbe & Lagerplatz */
.palette { display: grid; grid-template-columns: repeat(auto-fill, minmax(2rem, 1fr)); gap: 0.5rem; padding-top: 0.25rem; }
.palette-row { margin-top: 0.25rem; }
.palette-swatch { width: 2rem; height: 2rem; border-radius: 9999px; border: 1px solid var(--border); padding: 0; cursor: pointer; }
.palette-swatch[aria-pressed="true"] { outline: 2px solid var(--eufy); outline-offset: 2px; }
.spool-head { display: flex; align-items: center; gap: 0.75rem; }
.spool-head > div { min-width: 0; }
.spool-color { width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 9999px; border: 1px solid var(--border); cursor: pointer; flex-shrink: 0; }
.spool-location { display: flex; }
.spool-location .input { flex: 1; min-width: 0; }
.palette-custom { position: relative; overflow: hidden; display: block; }
.palette-custom input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }

.grid-name { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 0.75rem; }

.material-custom { margin-top: 0.5rem; }

/* Tabs */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 0 0 1.25rem; }
.tab-btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.375rem; padding: 0.75rem 0.5rem;
  border: 1px solid var(--border); border-radius: 1rem; background: var(--card); color: var(--muted-foreground);
  font-family: var(--font); font-size: 0.8125rem; cursor: pointer;
}
.tab-btn[aria-selected="true"] { color: var(--eufy); border-color: var(--eufy); }
.card[hidden] { display: none; }

/* Statistik */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.stat-cell { border: 1px solid var(--border); border-radius: 1rem; padding: 0.75rem; }
.stat-label { font-size: 0.75rem; color: var(--muted-foreground); }
.stat-value { margin-top: 0.25rem; font-size: 1.25rem; font-weight: 600; }
.stat-heading { margin: 1.25rem 0 0.5rem; font-size: 0.875rem; font-weight: 600; }

/* Kompakte Bestandsliste */
.spool-search { margin-bottom: 0.5rem; }
.spool-row { display: flex; flex-direction: column; padding: 0; gap: 0; }
.spool-summary {
  display: flex; align-items: center; gap: 0.625rem; width: 100%; padding: 0.625rem 0.25rem;
  background: none; border: none; color: inherit; font-family: var(--font); font-size: 0.875rem;
  text-align: left; cursor: pointer;
}
.spool-summary[aria-expanded="true"] { color: var(--eufy); }
.spool-dot { width: 1.125rem; height: 1.125rem; border-radius: 9999px; border: 1px solid var(--border); flex-shrink: 0; }
.spool-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spool-meta-inline { color: var(--muted-foreground); font-size: 0.8125rem; }
.spool-bar { width: 3.5rem; height: 0.375rem; border-radius: 9999px; background: var(--muted); overflow: hidden; flex-shrink: 0; }
.spool-bar > span { display: block; height: 100%; background: var(--eufy); border-radius: 9999px; }
.spool-pct { width: 2.75rem; text-align: right; font-size: 0.75rem; color: var(--muted-foreground); flex-shrink: 0; }
.spool-details { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0.25rem 0.25rem 0.875rem; }
.spool-details .palette { width: 100%; }
.spool-details .spool-controls, .spool-details .spool-use, .spool-details .spool-location { width: 100%; }

/* Shop-Links und Hinweis bei fast leerer Rolle */
.shop-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.shop-link {
  display: block; padding: 0.625rem 0.875rem; border: 1px solid var(--eufy); border-radius: 0.75rem;
  color: var(--eufy); font-size: 0.875rem; font-weight: 600; text-align: center; text-decoration: none;
}
.shop-links .shop-link { flex: 1 1 auto; }
.shop-link:hover { background: rgba(251, 146, 60, 0.1); }
.shop-overlay { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, 0.6); }
.shop-overlay[hidden] { display: none; }
.shop-dialog { position: relative; width: 100%; max-width: 26rem; background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem; }
.shop-dialog h3 { margin: 0 2rem 0.5rem 0; font-size: 1.125rem; font-weight: 700; }
.shop-dialog p { margin: 0 0 1rem; font-size: 0.875rem; color: var(--muted-foreground); }
.shop-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 2rem; height: 2rem; border: none; border-radius: 9999px; background: transparent; color: var(--muted-foreground); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.shop-close:hover { background: var(--muted); color: var(--foreground); }
.shop-list { display: flex; flex-direction: column; gap: 0.5rem; }
.shop-link span { display: block; }
.shop-link-code { font-size: 0.75rem; font-weight: 400; margin-top: 0.25rem; opacity: 0.85; }
.shop-logo { display: block; height: 2.25rem; width: auto; margin: 0 auto 0.375rem; padding: 0.25rem 0.5rem; background: #fff; border-radius: 0.375rem; }
