/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[2].use[1]!./node_modules/next/dist/build/webpack/loaders/next-font-loader/index.js??ruleSet[1].rules[14].oneOf[2].use[2]!./node_modules/next/font/google/target.css?{"path":"app\\layout.tsx","import":"Atkinson_Hyperlegible","arguments":[{"subsets":["latin"],"weight":["400","700"],"display":"swap"}],"variableName":"font"} ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/d57a24ec54448a8e-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/_next/static/media/bc08e10e1c60a660-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/7c309a1f4c99f6b1-s.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/_next/static/media/9816a0e0ed309b6c-s.p.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}@font-face {font-family: 'Atkinson Hyperlegible Fallback';src: local("Arial");ascent-override: 95.60%;descent-override: 29.18%;line-gap-override: 0.00%;size-adjust: 99.37%
}.__className_de0309 {font-family: 'Atkinson Hyperlegible', 'Atkinson Hyperlegible Fallback';font-style: normal
}

/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --frost: #EEF3F6;
  --surface: #FFFFFF;
  --ink: #14233A;
  --steel: #5B6B7F;
  --line: #D3DDE5;
  --action: #1E4E8C;
  --action-ink: #FFFFFF;
  --ok: #1F7A4D;
  --caution: #9A6400;
  --stop: #B42318;
  --verdict-ink: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --frost: #0E1826;
    --surface: #16243A;
    --ink: #E7EEF5;
    --steel: #9AA9BA;
    --line: #26374F;
    --action: #7FB0EE;
    --action-ink: #0E1826;
    --ok: #2E9C63;
    --caution: #C98A1B;
    --stop: #D9453A;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  background: var(--frost);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}

.app {
  max-width: 34rem;
  min-height: 100%;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 1rem) 1.25rem calc(env(safe-area-inset-bottom) + 1.25rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.topbar { display: flex; justify-content: space-between; align-items: baseline; }
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; margin: 0; }

.linkbutton {
  background: none; border: none; color: var(--action); font: inherit;
  padding: 0.5rem 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

.lead { margin: 0; color: var(--steel); max-width: 30ch; }

.spacer { flex: 1 1; }

/* Knapparna ligger längst ner, där tummen når dem i affären */
.actions { display: flex; flex-direction: column; gap: 0.75rem; }

.button {
  display: flex; align-items: center; justify-content: center;
  min-height: 3.5rem; padding: 0.75rem 1.25rem;
  border-radius: 14px; border: 2px solid var(--action);
  background: var(--action); color: var(--action-ink);
  font: inherit; font-weight: 700; cursor: pointer; text-align: center;
}
.button.secondary { background: transparent; color: var(--action); }
.button:disabled { opacity: 0.5; cursor: default; }
.button:focus-visible, .linkbutton:focus-visible, input:focus-visible {
  outline: 3px solid var(--action); outline-offset: 3px;
}

.row { display: flex; gap: 0.5rem; }
.row > input { flex: 1 1; min-width: 0; }

input[type="text"], input[type="password"], input[inputmode] {
  min-height: 3.5rem; padding: 0 1rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 14px;
}

.hidden-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.preview {
  width: 100%; max-height: 38vh; object-fit: contain;
  border-radius: 14px; background: var(--surface);
}

.status { display: flex; align-items: center; gap: 0.75rem; color: var(--steel); margin: 0; }
.status::before {
  content: ""; width: 1rem; height: 1rem; flex: none;
  border: 3px solid var(--line); border-top-color: var(--action); border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status::before { animation-duration: 3s; } }

.notice {
  margin: 0; padding: 0.9rem 1rem; border-radius: 14px;
  background: var(--surface); border-left: 5px solid var(--caution);
}
.error { border-left-color: var(--stop); }

/* Beskedet: det enda stora på skärmen */
.verdict {
  margin: 0 -1.25rem; padding: 1.5rem 1.25rem 1.75rem;
  color: var(--verdict-ink);
}
.verdict.GREEN { background: var(--ok); }
.verdict.YELLOW { background: var(--caution); }
.verdict.RED { background: var(--stop); }
.verdict-word {
  display: block; font-size: clamp(3.5rem, 22vw, 6.5rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.03em;
}
.verdict-sub { display: block; margin-top: 0.5rem; font-size: 1.05rem; opacity: 0.92; }

.reasoning { margin: 0; white-space: pre-line; max-width: 60ch; }

.product { margin: 0; color: var(--steel); font-size: 0.95rem; }
.product strong { color: var(--ink); }
details { color: var(--steel); font-size: 0.95rem; }
summary { cursor: pointer; padding: 0.25rem 0; }
details p { white-space: pre-line; margin: 0.5rem 0 0; }

.settings-list { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 0.25rem 1rem; gap: 0.25rem 1rem; margin: 0; padding: 0; border: none; }
.settings-list legend { font-weight: 700; margin-bottom: 0.5rem; }
.check { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; cursor: pointer; }
.check input { width: 1.4rem; height: 1.4rem; accent-color: var(--action); }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 700; }
.hint { color: var(--steel); font-size: 0.9rem; margin: 0; }

/* Streckkodsläsaren */
.scanner {
  position: relative; width: 100%; aspect-ratio: 3 / 4; max-height: 60vh;
  border-radius: 14px; overflow: hidden; background: #000;
}
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame {
  position: absolute; left: 10%; right: 10%; top: 35%; bottom: 35%;
  border: 3px solid rgba(255, 255, 255, 0.9); border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
}
.status-plain { margin: 0; color: var(--steel); }

textarea {
  width: 100%; padding: 0.75rem 1rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 2px solid var(--line); border-radius: 14px; resize: vertical;
}
textarea:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; }

