/* HSPingal app theme: image. Loaded after the app's own styles. */
:root {
  --bg: var(--c-bg);
  --surface: #fff0e4;
  --card: #fff9f4;
  --card2: #ffffff;
  --border: rgba(43,20,48,.16);
  --border2: rgba(43,20,48,.16);
  --accent: #e8431f;
  --accent2: #7a2e8e;
  --on-accent: #ffffff;
  --text: var(--c-fg);
  --text2: var(--c-sub);
  --muted: #7d5c6c;
  --success: #0d7a4f;
  --ok: #0d7a4f;
  --danger: #c02717;
  --warn: #a15c00;
  --warning: #a15c00;
  --glow: rgba(232,67,31, .2);
  --app-w: 1060px;
  --app-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, sans-serif;
  color-scheme: light;
}

.app-mast { background: var(--c-bg); }

/* Soft and squishy: big radii and a warm tray. */
.app-mast { background: linear-gradient(180deg, #ffd2b4, var(--c-bg)); border-bottom: 0; }
.drop-zone { border: 2.5px dashed #e8431f !important; border-radius: 30px !important; background: #fff9f4; padding: 42px 22px; }
.drop-zone.over { background: #fff; }
.drop-text { color: var(--c-fg); font-weight: 700; font-size: 1.1rem; }
.panel { border-radius: 26px !important; padding: 20px !important; margin-top: 0 !important; }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.queue-bar { margin: 0 !important; }
.savings { margin: 0 !important; }
.grid { margin: 0 !important; }
.fmt-btn, .ratio-btn, .mode-btn, .btn { border-radius: 999px !important; }
.fmt-btn.active, .ratio-btn.active, .mode-btn.active { background: #e8431f !important; border-color: #e8431f !important; color: #fff !important; }
.item { border-radius: 22px !important; }
.item img { background: #fff0e4 !important; }
.item-remove { background: rgba(43,20,48,.72) !important; color: #fff !important; }
@media (min-width: 900px) {
  .app-body { grid-template-columns: 1fr 1fr; }
  .drop-zone, .queue-bar, .savings, .grid { grid-column: 1 / -1; }
  .panel:nth-of-type(n) { min-width: 0; }
  .panel:first-of-type { grid-column: 1 / -1; }
}
