/* shadcn preset b7qlug1fbG · unified shell revision 2 */
@font-face {
  font-family: "Nunito Sans Preset";
  src: url("/assets/nunito-sans-preset.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans Preset";
  src: url("/assets/instrument-sans-preset.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: oklch(1 0 0);
  --foreground: oklch(0.148 0.004 228.8);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.148 0.004 228.8);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.148 0.004 228.8);
  --primary: oklch(0.218 0.008 223.9);
  --primary-foreground: oklch(0.987 0.002 197.1);
  --secondary: oklch(0.963 0.002 197.1);
  --secondary-foreground: oklch(0.218 0.008 223.9);
  --muted: oklch(0.963 0.002 197.1);
  --muted-foreground: oklch(0.56 0.021 213.5);
  --accent: oklch(0.963 0.002 197.1);
  --accent-foreground: oklch(0.218 0.008 223.9);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.925 0.005 214.3);
  --input: oklch(0.925 0.005 214.3);
  --ring: oklch(0.723 0.014 214.4);
  --radius: 0.625rem;
  --panel: var(--card);
  --ink: var(--foreground);
  --soft: var(--muted);
}

html.dark,
body.dark,
.dark {
  color-scheme: dark;
  --background: oklch(0.148 0.004 228.8);
  --foreground: oklch(0.987 0.002 197.1);
  --card: oklch(0.218 0.008 223.9);
  --card-foreground: oklch(0.987 0.002 197.1);
  --popover: oklch(0.218 0.008 223.9);
  --popover-foreground: oklch(0.987 0.002 197.1);
  --primary: oklch(0.925 0.005 214.3);
  --primary-foreground: oklch(0.218 0.008 223.9);
  --secondary: oklch(0.275 0.011 216.9);
  --secondary-foreground: oklch(0.987 0.002 197.1);
  --muted: oklch(0.275 0.011 216.9);
  --muted-foreground: oklch(0.723 0.014 214.4);
  --accent: oklch(0.275 0.011 216.9);
  --accent-foreground: oklch(0.987 0.002 197.1);
  --destructive: oklch(0.704 0.191 22.216);
  --border: oklch(1 0 0 / 10%);
  --input: oklch(1 0 0 / 15%);
  --ring: oklch(0.56 0.021 213.5);
  --panel: var(--card);
  --ink: var(--foreground);
  --soft: var(--muted);
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Nunito Sans Preset", ui-sans-serif, system-ui, sans-serif !important;
}

h1,
h2,
h3,
.brand,
[class*="font-display"] {
  font-family: "Instrument Sans Preset", "Nunito Sans Preset", ui-sans-serif, system-ui, sans-serif !important;
  letter-spacing: -0.025em;
}

/* The shell and legacy workspace now share the preset's geometry and surfaces. */
.app,
.workspace,
.view,
.tool-card {
  color: var(--foreground);
}

.status,
.actions,
.pdf-controls,
.barcode-controls,
.preview,
.sales-summary,
.pdf-list,
.stress-grid,
.fidget-panel,
.typing-panel,
.bubble-panel,
.fish-panel,
table {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--card-foreground) !important;
  background: var(--card) !important;
  background-image: none !important;
  box-shadow: 0 1px 2px oklch(0.148 0.004 228.8 / 0.05) !important;
}

.dropzone {
  border: 1px dashed color-mix(in oklch, var(--border), var(--foreground) 18%) !important;
  border-radius: var(--radius) !important;
  color: var(--muted-foreground) !important;
  background: var(--muted) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-over {
  border-color: var(--ring) !important;
  color: var(--accent-foreground) !important;
  background: var(--accent) !important;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring), transparent 78%) !important;
}

html.dark .dropzone,
body.dark .dropzone,
.dark .dropzone {
  color: var(--muted-foreground) !important;
  background: var(--muted) !important;
  background-image: none !important;
}

.tool-button,
.subtab,
.tabs button,
.menu button,
.barcode-list button,
.pdf-list button,
button:not([class*="absolute"]):not([class*="rounded-full"]) {
  border-radius: calc(var(--radius) * 0.8) !important;
}

.tool-button,
.subtab,
.tabs button,
.menu button,
.barcode-list button,
.pdf-list button {
  border: 1px solid var(--border) !important;
  color: var(--secondary-foreground) !important;
  background: var(--secondary) !important;
  background-image: none !important;
  box-shadow: none !important;
}

.tool-button:hover,
.subtab:hover,
.tabs button:hover,
.menu button:hover,
.barcode-list button:hover,
.pdf-list button:hover {
  border-color: var(--border) !important;
  color: var(--accent-foreground) !important;
  background: var(--accent) !important;
  transform: none !important;
}

.tool-button.process,
.subtab.active,
.tabs button.active,
.tool-button.process:hover {
  border-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
  background: var(--primary) !important;
}

input,
select,
textarea,
.compact-field {
  border-color: var(--input) !important;
  border-radius: calc(var(--radius) * 0.8) !important;
  color: var(--foreground) !important;
  background: var(--background) !important;
  background-image: none !important;
  box-shadow: none !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-foreground) !important;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--ring) !important;
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring), transparent 72%) !important;
}

.status {
  color: var(--foreground) !important;
  background: var(--card) !important;
}

.log {
  color: var(--foreground) !important;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace !important;
}

.summary,
th {
  border-color: var(--border) !important;
  color: var(--muted-foreground) !important;
  background: var(--muted) !important;
}

.summary strong,
.pdf-detail,
.meter-label,
.fish-result {
  color: var(--muted-foreground) !important;
}

.animal-stage {
  border: 1px solid var(--border) !important;
  border-radius: calc(var(--radius) * 0.8) !important;
  color: var(--foreground) !important;
  background: var(--muted) !important;
  background-image: none !important;
}

td,
tbody tr:nth-child(even) td,
tbody tr:hover td {
  border-color: var(--border) !important;
  color: var(--foreground) !important;
  background: var(--card) !important;
}

/* Preserve real-world cheque output while keeping its surrounding controls themed. */
.cheque-paper {
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
